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\TPU;
19
20class Node extends \Google\Collection
21{
22  protected $collection_key = 'symptoms';
23  /**
24   * @var string
25   */
26  public $acceleratorType;
27  /**
28   * @var string
29   */
30  public $apiVersion;
31  /**
32   * @var string
33   */
34  public $cidrBlock;
35  /**
36   * @var string
37   */
38  public $createTime;
39  /**
40   * @var string
41   */
42  public $description;
43  /**
44   * @var string
45   */
46  public $health;
47  /**
48   * @var string
49   */
50  public $healthDescription;
51  /**
52   * @var string
53   */
54  public $ipAddress;
55  /**
56   * @var string[]
57   */
58  public $labels;
59  /**
60   * @var string
61   */
62  public $name;
63  /**
64   * @var string
65   */
66  public $network;
67  protected $networkEndpointsType = NetworkEndpoint::class;
68  protected $networkEndpointsDataType = 'array';
69  /**
70   * @var string
71   */
72  public $port;
73  protected $schedulingConfigType = SchedulingConfig::class;
74  protected $schedulingConfigDataType = '';
75  /**
76   * @var string
77   */
78  public $serviceAccount;
79  /**
80   * @var string
81   */
82  public $state;
83  protected $symptomsType = Symptom::class;
84  protected $symptomsDataType = 'array';
85  /**
86   * @var string
87   */
88  public $tensorflowVersion;
89  /**
90   * @var bool
91   */
92  public $useServiceNetworking;
93
94  /**
95   * @param string
96   */
97  public function setAcceleratorType($acceleratorType)
98  {
99    $this->acceleratorType = $acceleratorType;
100  }
101  /**
102   * @return string
103   */
104  public function getAcceleratorType()
105  {
106    return $this->acceleratorType;
107  }
108  /**
109   * @param string
110   */
111  public function setApiVersion($apiVersion)
112  {
113    $this->apiVersion = $apiVersion;
114  }
115  /**
116   * @return string
117   */
118  public function getApiVersion()
119  {
120    return $this->apiVersion;
121  }
122  /**
123   * @param string
124   */
125  public function setCidrBlock($cidrBlock)
126  {
127    $this->cidrBlock = $cidrBlock;
128  }
129  /**
130   * @return string
131   */
132  public function getCidrBlock()
133  {
134    return $this->cidrBlock;
135  }
136  /**
137   * @param string
138   */
139  public function setCreateTime($createTime)
140  {
141    $this->createTime = $createTime;
142  }
143  /**
144   * @return string
145   */
146  public function getCreateTime()
147  {
148    return $this->createTime;
149  }
150  /**
151   * @param string
152   */
153  public function setDescription($description)
154  {
155    $this->description = $description;
156  }
157  /**
158   * @return string
159   */
160  public function getDescription()
161  {
162    return $this->description;
163  }
164  /**
165   * @param string
166   */
167  public function setHealth($health)
168  {
169    $this->health = $health;
170  }
171  /**
172   * @return string
173   */
174  public function getHealth()
175  {
176    return $this->health;
177  }
178  /**
179   * @param string
180   */
181  public function setHealthDescription($healthDescription)
182  {
183    $this->healthDescription = $healthDescription;
184  }
185  /**
186   * @return string
187   */
188  public function getHealthDescription()
189  {
190    return $this->healthDescription;
191  }
192  /**
193   * @param string
194   */
195  public function setIpAddress($ipAddress)
196  {
197    $this->ipAddress = $ipAddress;
198  }
199  /**
200   * @return string
201   */
202  public function getIpAddress()
203  {
204    return $this->ipAddress;
205  }
206  /**
207   * @param string[]
208   */
209  public function setLabels($labels)
210  {
211    $this->labels = $labels;
212  }
213  /**
214   * @return string[]
215   */
216  public function getLabels()
217  {
218    return $this->labels;
219  }
220  /**
221   * @param string
222   */
223  public function setName($name)
224  {
225    $this->name = $name;
226  }
227  /**
228   * @return string
229   */
230  public function getName()
231  {
232    return $this->name;
233  }
234  /**
235   * @param string
236   */
237  public function setNetwork($network)
238  {
239    $this->network = $network;
240  }
241  /**
242   * @return string
243   */
244  public function getNetwork()
245  {
246    return $this->network;
247  }
248  /**
249   * @param NetworkEndpoint[]
250   */
251  public function setNetworkEndpoints($networkEndpoints)
252  {
253    $this->networkEndpoints = $networkEndpoints;
254  }
255  /**
256   * @return NetworkEndpoint[]
257   */
258  public function getNetworkEndpoints()
259  {
260    return $this->networkEndpoints;
261  }
262  /**
263   * @param string
264   */
265  public function setPort($port)
266  {
267    $this->port = $port;
268  }
269  /**
270   * @return string
271   */
272  public function getPort()
273  {
274    return $this->port;
275  }
276  /**
277   * @param SchedulingConfig
278   */
279  public function setSchedulingConfig(SchedulingConfig $schedulingConfig)
280  {
281    $this->schedulingConfig = $schedulingConfig;
282  }
283  /**
284   * @return SchedulingConfig
285   */
286  public function getSchedulingConfig()
287  {
288    return $this->schedulingConfig;
289  }
290  /**
291   * @param string
292   */
293  public function setServiceAccount($serviceAccount)
294  {
295    $this->serviceAccount = $serviceAccount;
296  }
297  /**
298   * @return string
299   */
300  public function getServiceAccount()
301  {
302    return $this->serviceAccount;
303  }
304  /**
305   * @param string
306   */
307  public function setState($state)
308  {
309    $this->state = $state;
310  }
311  /**
312   * @return string
313   */
314  public function getState()
315  {
316    return $this->state;
317  }
318  /**
319   * @param Symptom[]
320   */
321  public function setSymptoms($symptoms)
322  {
323    $this->symptoms = $symptoms;
324  }
325  /**
326   * @return Symptom[]
327   */
328  public function getSymptoms()
329  {
330    return $this->symptoms;
331  }
332  /**
333   * @param string
334   */
335  public function setTensorflowVersion($tensorflowVersion)
336  {
337    $this->tensorflowVersion = $tensorflowVersion;
338  }
339  /**
340   * @return string
341   */
342  public function getTensorflowVersion()
343  {
344    return $this->tensorflowVersion;
345  }
346  /**
347   * @param bool
348   */
349  public function setUseServiceNetworking($useServiceNetworking)
350  {
351    $this->useServiceNetworking = $useServiceNetworking;
352  }
353  /**
354   * @return bool
355   */
356  public function getUseServiceNetworking()
357  {
358    return $this->useServiceNetworking;
359  }
360}
361
362// Adding a class alias for backwards compatibility with the previous class name.
363class_alias(Node::class, 'Google_Service_TPU_Node');
364