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\Container;
19
20class NodePool extends \Google\Collection
21{
22  protected $collection_key = 'locations';
23  protected $autoscalingType = NodePoolAutoscaling::class;
24  protected $autoscalingDataType = '';
25  protected $conditionsType = StatusCondition::class;
26  protected $conditionsDataType = 'array';
27  protected $configType = NodeConfig::class;
28  protected $configDataType = '';
29  /**
30   * @var int
31   */
32  public $initialNodeCount;
33  /**
34   * @var string[]
35   */
36  public $instanceGroupUrls;
37  /**
38   * @var string[]
39   */
40  public $locations;
41  protected $managementType = NodeManagement::class;
42  protected $managementDataType = '';
43  protected $maxPodsConstraintType = MaxPodsConstraint::class;
44  protected $maxPodsConstraintDataType = '';
45  /**
46   * @var string
47   */
48  public $name;
49  protected $networkConfigType = NodeNetworkConfig::class;
50  protected $networkConfigDataType = '';
51  /**
52   * @var int
53   */
54  public $podIpv4CidrSize;
55  /**
56   * @var string
57   */
58  public $selfLink;
59  /**
60   * @var string
61   */
62  public $status;
63  /**
64   * @var string
65   */
66  public $statusMessage;
67  protected $upgradeSettingsType = UpgradeSettings::class;
68  protected $upgradeSettingsDataType = '';
69  /**
70   * @var string
71   */
72  public $version;
73
74  /**
75   * @param NodePoolAutoscaling
76   */
77  public function setAutoscaling(NodePoolAutoscaling $autoscaling)
78  {
79    $this->autoscaling = $autoscaling;
80  }
81  /**
82   * @return NodePoolAutoscaling
83   */
84  public function getAutoscaling()
85  {
86    return $this->autoscaling;
87  }
88  /**
89   * @param StatusCondition[]
90   */
91  public function setConditions($conditions)
92  {
93    $this->conditions = $conditions;
94  }
95  /**
96   * @return StatusCondition[]
97   */
98  public function getConditions()
99  {
100    return $this->conditions;
101  }
102  /**
103   * @param NodeConfig
104   */
105  public function setConfig(NodeConfig $config)
106  {
107    $this->config = $config;
108  }
109  /**
110   * @return NodeConfig
111   */
112  public function getConfig()
113  {
114    return $this->config;
115  }
116  /**
117   * @param int
118   */
119  public function setInitialNodeCount($initialNodeCount)
120  {
121    $this->initialNodeCount = $initialNodeCount;
122  }
123  /**
124   * @return int
125   */
126  public function getInitialNodeCount()
127  {
128    return $this->initialNodeCount;
129  }
130  /**
131   * @param string[]
132   */
133  public function setInstanceGroupUrls($instanceGroupUrls)
134  {
135    $this->instanceGroupUrls = $instanceGroupUrls;
136  }
137  /**
138   * @return string[]
139   */
140  public function getInstanceGroupUrls()
141  {
142    return $this->instanceGroupUrls;
143  }
144  /**
145   * @param string[]
146   */
147  public function setLocations($locations)
148  {
149    $this->locations = $locations;
150  }
151  /**
152   * @return string[]
153   */
154  public function getLocations()
155  {
156    return $this->locations;
157  }
158  /**
159   * @param NodeManagement
160   */
161  public function setManagement(NodeManagement $management)
162  {
163    $this->management = $management;
164  }
165  /**
166   * @return NodeManagement
167   */
168  public function getManagement()
169  {
170    return $this->management;
171  }
172  /**
173   * @param MaxPodsConstraint
174   */
175  public function setMaxPodsConstraint(MaxPodsConstraint $maxPodsConstraint)
176  {
177    $this->maxPodsConstraint = $maxPodsConstraint;
178  }
179  /**
180   * @return MaxPodsConstraint
181   */
182  public function getMaxPodsConstraint()
183  {
184    return $this->maxPodsConstraint;
185  }
186  /**
187   * @param string
188   */
189  public function setName($name)
190  {
191    $this->name = $name;
192  }
193  /**
194   * @return string
195   */
196  public function getName()
197  {
198    return $this->name;
199  }
200  /**
201   * @param NodeNetworkConfig
202   */
203  public function setNetworkConfig(NodeNetworkConfig $networkConfig)
204  {
205    $this->networkConfig = $networkConfig;
206  }
207  /**
208   * @return NodeNetworkConfig
209   */
210  public function getNetworkConfig()
211  {
212    return $this->networkConfig;
213  }
214  /**
215   * @param int
216   */
217  public function setPodIpv4CidrSize($podIpv4CidrSize)
218  {
219    $this->podIpv4CidrSize = $podIpv4CidrSize;
220  }
221  /**
222   * @return int
223   */
224  public function getPodIpv4CidrSize()
225  {
226    return $this->podIpv4CidrSize;
227  }
228  /**
229   * @param string
230   */
231  public function setSelfLink($selfLink)
232  {
233    $this->selfLink = $selfLink;
234  }
235  /**
236   * @return string
237   */
238  public function getSelfLink()
239  {
240    return $this->selfLink;
241  }
242  /**
243   * @param string
244   */
245  public function setStatus($status)
246  {
247    $this->status = $status;
248  }
249  /**
250   * @return string
251   */
252  public function getStatus()
253  {
254    return $this->status;
255  }
256  /**
257   * @param string
258   */
259  public function setStatusMessage($statusMessage)
260  {
261    $this->statusMessage = $statusMessage;
262  }
263  /**
264   * @return string
265   */
266  public function getStatusMessage()
267  {
268    return $this->statusMessage;
269  }
270  /**
271   * @param UpgradeSettings
272   */
273  public function setUpgradeSettings(UpgradeSettings $upgradeSettings)
274  {
275    $this->upgradeSettings = $upgradeSettings;
276  }
277  /**
278   * @return UpgradeSettings
279   */
280  public function getUpgradeSettings()
281  {
282    return $this->upgradeSettings;
283  }
284  /**
285   * @param string
286   */
287  public function setVersion($version)
288  {
289    $this->version = $version;
290  }
291  /**
292   * @return string
293   */
294  public function getVersion()
295  {
296    return $this->version;
297  }
298}
299
300// Adding a class alias for backwards compatibility with the previous class name.
301class_alias(NodePool::class, 'Google_Service_Container_NodePool');
302