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 |
|
---|
18 | namespace Google\Service\Container;
|
---|
19 |
|
---|
20 | class NodePool extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'locations';
|
---|
23 | protected $autoscalingType = NodePoolAutoscaling::class;
|
---|
24 | protected $autoscalingDataType = '';
|
---|
25 | protected $bestEffortProvisioningType = BestEffortProvisioning::class;
|
---|
26 | protected $bestEffortProvisioningDataType = '';
|
---|
27 | protected $conditionsType = StatusCondition::class;
|
---|
28 | protected $conditionsDataType = 'array';
|
---|
29 | protected $configType = NodeConfig::class;
|
---|
30 | protected $configDataType = '';
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $etag;
|
---|
35 | /**
|
---|
36 | * @var int
|
---|
37 | */
|
---|
38 | public $initialNodeCount;
|
---|
39 | /**
|
---|
40 | * @var string[]
|
---|
41 | */
|
---|
42 | public $instanceGroupUrls;
|
---|
43 | /**
|
---|
44 | * @var string[]
|
---|
45 | */
|
---|
46 | public $locations;
|
---|
47 | protected $managementType = NodeManagement::class;
|
---|
48 | protected $managementDataType = '';
|
---|
49 | protected $maxPodsConstraintType = MaxPodsConstraint::class;
|
---|
50 | protected $maxPodsConstraintDataType = '';
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $name;
|
---|
55 | protected $networkConfigType = NodeNetworkConfig::class;
|
---|
56 | protected $networkConfigDataType = '';
|
---|
57 | protected $placementPolicyType = PlacementPolicy::class;
|
---|
58 | protected $placementPolicyDataType = '';
|
---|
59 | /**
|
---|
60 | * @var int
|
---|
61 | */
|
---|
62 | public $podIpv4CidrSize;
|
---|
63 | protected $queuedProvisioningType = QueuedProvisioning::class;
|
---|
64 | protected $queuedProvisioningDataType = '';
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $selfLink;
|
---|
69 | /**
|
---|
70 | * @var string
|
---|
71 | */
|
---|
72 | public $status;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $statusMessage;
|
---|
77 | protected $updateInfoType = UpdateInfo::class;
|
---|
78 | protected $updateInfoDataType = '';
|
---|
79 | protected $upgradeSettingsType = UpgradeSettings::class;
|
---|
80 | protected $upgradeSettingsDataType = '';
|
---|
81 | /**
|
---|
82 | * @var string
|
---|
83 | */
|
---|
84 | public $version;
|
---|
85 |
|
---|
86 | /**
|
---|
87 | * @param NodePoolAutoscaling
|
---|
88 | */
|
---|
89 | public function setAutoscaling(NodePoolAutoscaling $autoscaling)
|
---|
90 | {
|
---|
91 | $this->autoscaling = $autoscaling;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @return NodePoolAutoscaling
|
---|
95 | */
|
---|
96 | public function getAutoscaling()
|
---|
97 | {
|
---|
98 | return $this->autoscaling;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @param BestEffortProvisioning
|
---|
102 | */
|
---|
103 | public function setBestEffortProvisioning(BestEffortProvisioning $bestEffortProvisioning)
|
---|
104 | {
|
---|
105 | $this->bestEffortProvisioning = $bestEffortProvisioning;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @return BestEffortProvisioning
|
---|
109 | */
|
---|
110 | public function getBestEffortProvisioning()
|
---|
111 | {
|
---|
112 | return $this->bestEffortProvisioning;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @param StatusCondition[]
|
---|
116 | */
|
---|
117 | public function setConditions($conditions)
|
---|
118 | {
|
---|
119 | $this->conditions = $conditions;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @return StatusCondition[]
|
---|
123 | */
|
---|
124 | public function getConditions()
|
---|
125 | {
|
---|
126 | return $this->conditions;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @param NodeConfig
|
---|
130 | */
|
---|
131 | public function setConfig(NodeConfig $config)
|
---|
132 | {
|
---|
133 | $this->config = $config;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @return NodeConfig
|
---|
137 | */
|
---|
138 | public function getConfig()
|
---|
139 | {
|
---|
140 | return $this->config;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @param string
|
---|
144 | */
|
---|
145 | public function setEtag($etag)
|
---|
146 | {
|
---|
147 | $this->etag = $etag;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @return string
|
---|
151 | */
|
---|
152 | public function getEtag()
|
---|
153 | {
|
---|
154 | return $this->etag;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @param int
|
---|
158 | */
|
---|
159 | public function setInitialNodeCount($initialNodeCount)
|
---|
160 | {
|
---|
161 | $this->initialNodeCount = $initialNodeCount;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @return int
|
---|
165 | */
|
---|
166 | public function getInitialNodeCount()
|
---|
167 | {
|
---|
168 | return $this->initialNodeCount;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @param string[]
|
---|
172 | */
|
---|
173 | public function setInstanceGroupUrls($instanceGroupUrls)
|
---|
174 | {
|
---|
175 | $this->instanceGroupUrls = $instanceGroupUrls;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @return string[]
|
---|
179 | */
|
---|
180 | public function getInstanceGroupUrls()
|
---|
181 | {
|
---|
182 | return $this->instanceGroupUrls;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @param string[]
|
---|
186 | */
|
---|
187 | public function setLocations($locations)
|
---|
188 | {
|
---|
189 | $this->locations = $locations;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @return string[]
|
---|
193 | */
|
---|
194 | public function getLocations()
|
---|
195 | {
|
---|
196 | return $this->locations;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @param NodeManagement
|
---|
200 | */
|
---|
201 | public function setManagement(NodeManagement $management)
|
---|
202 | {
|
---|
203 | $this->management = $management;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @return NodeManagement
|
---|
207 | */
|
---|
208 | public function getManagement()
|
---|
209 | {
|
---|
210 | return $this->management;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @param MaxPodsConstraint
|
---|
214 | */
|
---|
215 | public function setMaxPodsConstraint(MaxPodsConstraint $maxPodsConstraint)
|
---|
216 | {
|
---|
217 | $this->maxPodsConstraint = $maxPodsConstraint;
|
---|
218 | }
|
---|
219 | /**
|
---|
220 | * @return MaxPodsConstraint
|
---|
221 | */
|
---|
222 | public function getMaxPodsConstraint()
|
---|
223 | {
|
---|
224 | return $this->maxPodsConstraint;
|
---|
225 | }
|
---|
226 | /**
|
---|
227 | * @param string
|
---|
228 | */
|
---|
229 | public function setName($name)
|
---|
230 | {
|
---|
231 | $this->name = $name;
|
---|
232 | }
|
---|
233 | /**
|
---|
234 | * @return string
|
---|
235 | */
|
---|
236 | public function getName()
|
---|
237 | {
|
---|
238 | return $this->name;
|
---|
239 | }
|
---|
240 | /**
|
---|
241 | * @param NodeNetworkConfig
|
---|
242 | */
|
---|
243 | public function setNetworkConfig(NodeNetworkConfig $networkConfig)
|
---|
244 | {
|
---|
245 | $this->networkConfig = $networkConfig;
|
---|
246 | }
|
---|
247 | /**
|
---|
248 | * @return NodeNetworkConfig
|
---|
249 | */
|
---|
250 | public function getNetworkConfig()
|
---|
251 | {
|
---|
252 | return $this->networkConfig;
|
---|
253 | }
|
---|
254 | /**
|
---|
255 | * @param PlacementPolicy
|
---|
256 | */
|
---|
257 | public function setPlacementPolicy(PlacementPolicy $placementPolicy)
|
---|
258 | {
|
---|
259 | $this->placementPolicy = $placementPolicy;
|
---|
260 | }
|
---|
261 | /**
|
---|
262 | * @return PlacementPolicy
|
---|
263 | */
|
---|
264 | public function getPlacementPolicy()
|
---|
265 | {
|
---|
266 | return $this->placementPolicy;
|
---|
267 | }
|
---|
268 | /**
|
---|
269 | * @param int
|
---|
270 | */
|
---|
271 | public function setPodIpv4CidrSize($podIpv4CidrSize)
|
---|
272 | {
|
---|
273 | $this->podIpv4CidrSize = $podIpv4CidrSize;
|
---|
274 | }
|
---|
275 | /**
|
---|
276 | * @return int
|
---|
277 | */
|
---|
278 | public function getPodIpv4CidrSize()
|
---|
279 | {
|
---|
280 | return $this->podIpv4CidrSize;
|
---|
281 | }
|
---|
282 | /**
|
---|
283 | * @param QueuedProvisioning
|
---|
284 | */
|
---|
285 | public function setQueuedProvisioning(QueuedProvisioning $queuedProvisioning)
|
---|
286 | {
|
---|
287 | $this->queuedProvisioning = $queuedProvisioning;
|
---|
288 | }
|
---|
289 | /**
|
---|
290 | * @return QueuedProvisioning
|
---|
291 | */
|
---|
292 | public function getQueuedProvisioning()
|
---|
293 | {
|
---|
294 | return $this->queuedProvisioning;
|
---|
295 | }
|
---|
296 | /**
|
---|
297 | * @param string
|
---|
298 | */
|
---|
299 | public function setSelfLink($selfLink)
|
---|
300 | {
|
---|
301 | $this->selfLink = $selfLink;
|
---|
302 | }
|
---|
303 | /**
|
---|
304 | * @return string
|
---|
305 | */
|
---|
306 | public function getSelfLink()
|
---|
307 | {
|
---|
308 | return $this->selfLink;
|
---|
309 | }
|
---|
310 | /**
|
---|
311 | * @param string
|
---|
312 | */
|
---|
313 | public function setStatus($status)
|
---|
314 | {
|
---|
315 | $this->status = $status;
|
---|
316 | }
|
---|
317 | /**
|
---|
318 | * @return string
|
---|
319 | */
|
---|
320 | public function getStatus()
|
---|
321 | {
|
---|
322 | return $this->status;
|
---|
323 | }
|
---|
324 | /**
|
---|
325 | * @param string
|
---|
326 | */
|
---|
327 | public function setStatusMessage($statusMessage)
|
---|
328 | {
|
---|
329 | $this->statusMessage = $statusMessage;
|
---|
330 | }
|
---|
331 | /**
|
---|
332 | * @return string
|
---|
333 | */
|
---|
334 | public function getStatusMessage()
|
---|
335 | {
|
---|
336 | return $this->statusMessage;
|
---|
337 | }
|
---|
338 | /**
|
---|
339 | * @param UpdateInfo
|
---|
340 | */
|
---|
341 | public function setUpdateInfo(UpdateInfo $updateInfo)
|
---|
342 | {
|
---|
343 | $this->updateInfo = $updateInfo;
|
---|
344 | }
|
---|
345 | /**
|
---|
346 | * @return UpdateInfo
|
---|
347 | */
|
---|
348 | public function getUpdateInfo()
|
---|
349 | {
|
---|
350 | return $this->updateInfo;
|
---|
351 | }
|
---|
352 | /**
|
---|
353 | * @param UpgradeSettings
|
---|
354 | */
|
---|
355 | public function setUpgradeSettings(UpgradeSettings $upgradeSettings)
|
---|
356 | {
|
---|
357 | $this->upgradeSettings = $upgradeSettings;
|
---|
358 | }
|
---|
359 | /**
|
---|
360 | * @return UpgradeSettings
|
---|
361 | */
|
---|
362 | public function getUpgradeSettings()
|
---|
363 | {
|
---|
364 | return $this->upgradeSettings;
|
---|
365 | }
|
---|
366 | /**
|
---|
367 | * @param string
|
---|
368 | */
|
---|
369 | public function setVersion($version)
|
---|
370 | {
|
---|
371 | $this->version = $version;
|
---|
372 | }
|
---|
373 | /**
|
---|
374 | * @return string
|
---|
375 | */
|
---|
376 | public function getVersion()
|
---|
377 | {
|
---|
378 | return $this->version;
|
---|
379 | }
|
---|
380 | }
|
---|
381 |
|
---|
382 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
383 | class_alias(NodePool::class, 'Google_Service_Container_NodePool');
|
---|