source: vendor/google/apiclient-services/src/Batch/AllocationPolicy.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 3.0 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Batch;
19
20class AllocationPolicy extends \Google\Collection
21{
22 protected $collection_key = 'tags';
23 protected $instancesType = InstancePolicyOrTemplate::class;
24 protected $instancesDataType = 'array';
25 /**
26 * @var string[]
27 */
28 public $labels;
29 protected $locationType = LocationPolicy::class;
30 protected $locationDataType = '';
31 protected $networkType = NetworkPolicy::class;
32 protected $networkDataType = '';
33 protected $placementType = PlacementPolicy::class;
34 protected $placementDataType = '';
35 protected $serviceAccountType = ServiceAccount::class;
36 protected $serviceAccountDataType = '';
37 /**
38 * @var string[]
39 */
40 public $tags;
41
42 /**
43 * @param InstancePolicyOrTemplate[]
44 */
45 public function setInstances($instances)
46 {
47 $this->instances = $instances;
48 }
49 /**
50 * @return InstancePolicyOrTemplate[]
51 */
52 public function getInstances()
53 {
54 return $this->instances;
55 }
56 /**
57 * @param string[]
58 */
59 public function setLabels($labels)
60 {
61 $this->labels = $labels;
62 }
63 /**
64 * @return string[]
65 */
66 public function getLabels()
67 {
68 return $this->labels;
69 }
70 /**
71 * @param LocationPolicy
72 */
73 public function setLocation(LocationPolicy $location)
74 {
75 $this->location = $location;
76 }
77 /**
78 * @return LocationPolicy
79 */
80 public function getLocation()
81 {
82 return $this->location;
83 }
84 /**
85 * @param NetworkPolicy
86 */
87 public function setNetwork(NetworkPolicy $network)
88 {
89 $this->network = $network;
90 }
91 /**
92 * @return NetworkPolicy
93 */
94 public function getNetwork()
95 {
96 return $this->network;
97 }
98 /**
99 * @param PlacementPolicy
100 */
101 public function setPlacement(PlacementPolicy $placement)
102 {
103 $this->placement = $placement;
104 }
105 /**
106 * @return PlacementPolicy
107 */
108 public function getPlacement()
109 {
110 return $this->placement;
111 }
112 /**
113 * @param ServiceAccount
114 */
115 public function setServiceAccount(ServiceAccount $serviceAccount)
116 {
117 $this->serviceAccount = $serviceAccount;
118 }
119 /**
120 * @return ServiceAccount
121 */
122 public function getServiceAccount()
123 {
124 return $this->serviceAccount;
125 }
126 /**
127 * @param string[]
128 */
129 public function setTags($tags)
130 {
131 $this->tags = $tags;
132 }
133 /**
134 * @return string[]
135 */
136 public function getTags()
137 {
138 return $this->tags;
139 }
140}
141
142// Adding a class alias for backwards compatibility with the previous class name.
143class_alias(AllocationPolicy::class, 'Google_Service_Batch_AllocationPolicy');
Note: See TracBrowser for help on using the repository browser.