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\TPU;
|
---|
19 |
|
---|
20 | class Node extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'tags';
|
---|
23 | protected $acceleratorConfigType = AcceleratorConfig::class;
|
---|
24 | protected $acceleratorConfigDataType = '';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $acceleratorType;
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $apiVersion;
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $cidrBlock;
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $createTime;
|
---|
41 | protected $dataDisksType = AttachedDisk::class;
|
---|
42 | protected $dataDisksDataType = 'array';
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $description;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $health;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $healthDescription;
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $id;
|
---|
59 | /**
|
---|
60 | * @var string[]
|
---|
61 | */
|
---|
62 | public $labels;
|
---|
63 | /**
|
---|
64 | * @var string[]
|
---|
65 | */
|
---|
66 | public $metadata;
|
---|
67 | /**
|
---|
68 | * @var bool
|
---|
69 | */
|
---|
70 | public $multisliceNode;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $name;
|
---|
75 | protected $networkConfigType = NetworkConfig::class;
|
---|
76 | protected $networkConfigDataType = '';
|
---|
77 | protected $networkEndpointsType = NetworkEndpoint::class;
|
---|
78 | protected $networkEndpointsDataType = 'array';
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $queuedResource;
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $runtimeVersion;
|
---|
87 | protected $schedulingConfigType = SchedulingConfig::class;
|
---|
88 | protected $schedulingConfigDataType = '';
|
---|
89 | protected $serviceAccountType = ServiceAccount::class;
|
---|
90 | protected $serviceAccountDataType = '';
|
---|
91 | protected $shieldedInstanceConfigType = ShieldedInstanceConfig::class;
|
---|
92 | protected $shieldedInstanceConfigDataType = '';
|
---|
93 | /**
|
---|
94 | * @var string
|
---|
95 | */
|
---|
96 | public $state;
|
---|
97 | protected $symptomsType = Symptom::class;
|
---|
98 | protected $symptomsDataType = 'array';
|
---|
99 | /**
|
---|
100 | * @var string[]
|
---|
101 | */
|
---|
102 | public $tags;
|
---|
103 |
|
---|
104 | /**
|
---|
105 | * @param AcceleratorConfig
|
---|
106 | */
|
---|
107 | public function setAcceleratorConfig(AcceleratorConfig $acceleratorConfig)
|
---|
108 | {
|
---|
109 | $this->acceleratorConfig = $acceleratorConfig;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return AcceleratorConfig
|
---|
113 | */
|
---|
114 | public function getAcceleratorConfig()
|
---|
115 | {
|
---|
116 | return $this->acceleratorConfig;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param string
|
---|
120 | */
|
---|
121 | public function setAcceleratorType($acceleratorType)
|
---|
122 | {
|
---|
123 | $this->acceleratorType = $acceleratorType;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return string
|
---|
127 | */
|
---|
128 | public function getAcceleratorType()
|
---|
129 | {
|
---|
130 | return $this->acceleratorType;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param string
|
---|
134 | */
|
---|
135 | public function setApiVersion($apiVersion)
|
---|
136 | {
|
---|
137 | $this->apiVersion = $apiVersion;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return string
|
---|
141 | */
|
---|
142 | public function getApiVersion()
|
---|
143 | {
|
---|
144 | return $this->apiVersion;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string
|
---|
148 | */
|
---|
149 | public function setCidrBlock($cidrBlock)
|
---|
150 | {
|
---|
151 | $this->cidrBlock = $cidrBlock;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string
|
---|
155 | */
|
---|
156 | public function getCidrBlock()
|
---|
157 | {
|
---|
158 | return $this->cidrBlock;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param string
|
---|
162 | */
|
---|
163 | public function setCreateTime($createTime)
|
---|
164 | {
|
---|
165 | $this->createTime = $createTime;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return string
|
---|
169 | */
|
---|
170 | public function getCreateTime()
|
---|
171 | {
|
---|
172 | return $this->createTime;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param AttachedDisk[]
|
---|
176 | */
|
---|
177 | public function setDataDisks($dataDisks)
|
---|
178 | {
|
---|
179 | $this->dataDisks = $dataDisks;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return AttachedDisk[]
|
---|
183 | */
|
---|
184 | public function getDataDisks()
|
---|
185 | {
|
---|
186 | return $this->dataDisks;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setDescription($description)
|
---|
192 | {
|
---|
193 | $this->description = $description;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getDescription()
|
---|
199 | {
|
---|
200 | return $this->description;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setHealth($health)
|
---|
206 | {
|
---|
207 | $this->health = $health;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getHealth()
|
---|
213 | {
|
---|
214 | return $this->health;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param string
|
---|
218 | */
|
---|
219 | public function setHealthDescription($healthDescription)
|
---|
220 | {
|
---|
221 | $this->healthDescription = $healthDescription;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return string
|
---|
225 | */
|
---|
226 | public function getHealthDescription()
|
---|
227 | {
|
---|
228 | return $this->healthDescription;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param string
|
---|
232 | */
|
---|
233 | public function setId($id)
|
---|
234 | {
|
---|
235 | $this->id = $id;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return string
|
---|
239 | */
|
---|
240 | public function getId()
|
---|
241 | {
|
---|
242 | return $this->id;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param string[]
|
---|
246 | */
|
---|
247 | public function setLabels($labels)
|
---|
248 | {
|
---|
249 | $this->labels = $labels;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return string[]
|
---|
253 | */
|
---|
254 | public function getLabels()
|
---|
255 | {
|
---|
256 | return $this->labels;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param string[]
|
---|
260 | */
|
---|
261 | public function setMetadata($metadata)
|
---|
262 | {
|
---|
263 | $this->metadata = $metadata;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return string[]
|
---|
267 | */
|
---|
268 | public function getMetadata()
|
---|
269 | {
|
---|
270 | return $this->metadata;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param bool
|
---|
274 | */
|
---|
275 | public function setMultisliceNode($multisliceNode)
|
---|
276 | {
|
---|
277 | $this->multisliceNode = $multisliceNode;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return bool
|
---|
281 | */
|
---|
282 | public function getMultisliceNode()
|
---|
283 | {
|
---|
284 | return $this->multisliceNode;
|
---|
285 | }
|
---|
286 | /**
|
---|
287 | * @param string
|
---|
288 | */
|
---|
289 | public function setName($name)
|
---|
290 | {
|
---|
291 | $this->name = $name;
|
---|
292 | }
|
---|
293 | /**
|
---|
294 | * @return string
|
---|
295 | */
|
---|
296 | public function getName()
|
---|
297 | {
|
---|
298 | return $this->name;
|
---|
299 | }
|
---|
300 | /**
|
---|
301 | * @param NetworkConfig
|
---|
302 | */
|
---|
303 | public function setNetworkConfig(NetworkConfig $networkConfig)
|
---|
304 | {
|
---|
305 | $this->networkConfig = $networkConfig;
|
---|
306 | }
|
---|
307 | /**
|
---|
308 | * @return NetworkConfig
|
---|
309 | */
|
---|
310 | public function getNetworkConfig()
|
---|
311 | {
|
---|
312 | return $this->networkConfig;
|
---|
313 | }
|
---|
314 | /**
|
---|
315 | * @param NetworkEndpoint[]
|
---|
316 | */
|
---|
317 | public function setNetworkEndpoints($networkEndpoints)
|
---|
318 | {
|
---|
319 | $this->networkEndpoints = $networkEndpoints;
|
---|
320 | }
|
---|
321 | /**
|
---|
322 | * @return NetworkEndpoint[]
|
---|
323 | */
|
---|
324 | public function getNetworkEndpoints()
|
---|
325 | {
|
---|
326 | return $this->networkEndpoints;
|
---|
327 | }
|
---|
328 | /**
|
---|
329 | * @param string
|
---|
330 | */
|
---|
331 | public function setQueuedResource($queuedResource)
|
---|
332 | {
|
---|
333 | $this->queuedResource = $queuedResource;
|
---|
334 | }
|
---|
335 | /**
|
---|
336 | * @return string
|
---|
337 | */
|
---|
338 | public function getQueuedResource()
|
---|
339 | {
|
---|
340 | return $this->queuedResource;
|
---|
341 | }
|
---|
342 | /**
|
---|
343 | * @param string
|
---|
344 | */
|
---|
345 | public function setRuntimeVersion($runtimeVersion)
|
---|
346 | {
|
---|
347 | $this->runtimeVersion = $runtimeVersion;
|
---|
348 | }
|
---|
349 | /**
|
---|
350 | * @return string
|
---|
351 | */
|
---|
352 | public function getRuntimeVersion()
|
---|
353 | {
|
---|
354 | return $this->runtimeVersion;
|
---|
355 | }
|
---|
356 | /**
|
---|
357 | * @param SchedulingConfig
|
---|
358 | */
|
---|
359 | public function setSchedulingConfig(SchedulingConfig $schedulingConfig)
|
---|
360 | {
|
---|
361 | $this->schedulingConfig = $schedulingConfig;
|
---|
362 | }
|
---|
363 | /**
|
---|
364 | * @return SchedulingConfig
|
---|
365 | */
|
---|
366 | public function getSchedulingConfig()
|
---|
367 | {
|
---|
368 | return $this->schedulingConfig;
|
---|
369 | }
|
---|
370 | /**
|
---|
371 | * @param ServiceAccount
|
---|
372 | */
|
---|
373 | public function setServiceAccount(ServiceAccount $serviceAccount)
|
---|
374 | {
|
---|
375 | $this->serviceAccount = $serviceAccount;
|
---|
376 | }
|
---|
377 | /**
|
---|
378 | * @return ServiceAccount
|
---|
379 | */
|
---|
380 | public function getServiceAccount()
|
---|
381 | {
|
---|
382 | return $this->serviceAccount;
|
---|
383 | }
|
---|
384 | /**
|
---|
385 | * @param ShieldedInstanceConfig
|
---|
386 | */
|
---|
387 | public function setShieldedInstanceConfig(ShieldedInstanceConfig $shieldedInstanceConfig)
|
---|
388 | {
|
---|
389 | $this->shieldedInstanceConfig = $shieldedInstanceConfig;
|
---|
390 | }
|
---|
391 | /**
|
---|
392 | * @return ShieldedInstanceConfig
|
---|
393 | */
|
---|
394 | public function getShieldedInstanceConfig()
|
---|
395 | {
|
---|
396 | return $this->shieldedInstanceConfig;
|
---|
397 | }
|
---|
398 | /**
|
---|
399 | * @param string
|
---|
400 | */
|
---|
401 | public function setState($state)
|
---|
402 | {
|
---|
403 | $this->state = $state;
|
---|
404 | }
|
---|
405 | /**
|
---|
406 | * @return string
|
---|
407 | */
|
---|
408 | public function getState()
|
---|
409 | {
|
---|
410 | return $this->state;
|
---|
411 | }
|
---|
412 | /**
|
---|
413 | * @param Symptom[]
|
---|
414 | */
|
---|
415 | public function setSymptoms($symptoms)
|
---|
416 | {
|
---|
417 | $this->symptoms = $symptoms;
|
---|
418 | }
|
---|
419 | /**
|
---|
420 | * @return Symptom[]
|
---|
421 | */
|
---|
422 | public function getSymptoms()
|
---|
423 | {
|
---|
424 | return $this->symptoms;
|
---|
425 | }
|
---|
426 | /**
|
---|
427 | * @param string[]
|
---|
428 | */
|
---|
429 | public function setTags($tags)
|
---|
430 | {
|
---|
431 | $this->tags = $tags;
|
---|
432 | }
|
---|
433 | /**
|
---|
434 | * @return string[]
|
---|
435 | */
|
---|
436 | public function getTags()
|
---|
437 | {
|
---|
438 | return $this->tags;
|
---|
439 | }
|
---|
440 | }
|
---|
441 |
|
---|
442 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
443 | class_alias(Node::class, 'Google_Service_TPU_Node');
|
---|