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 IPAllocationPolicy extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $additionalPodRangesConfigType = AdditionalPodRangesConfig::class;
|
---|
23 | protected $additionalPodRangesConfigDataType = '';
|
---|
24 | /**
|
---|
25 | * @var string
|
---|
26 | */
|
---|
27 | public $clusterIpv4Cidr;
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $clusterIpv4CidrBlock;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $clusterSecondaryRangeName;
|
---|
36 | /**
|
---|
37 | * @var bool
|
---|
38 | */
|
---|
39 | public $createSubnetwork;
|
---|
40 | public $defaultPodIpv4RangeUtilization;
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $ipv6AccessType;
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $nodeIpv4Cidr;
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $nodeIpv4CidrBlock;
|
---|
53 | protected $podCidrOverprovisionConfigType = PodCIDROverprovisionConfig::class;
|
---|
54 | protected $podCidrOverprovisionConfigDataType = '';
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $servicesIpv4Cidr;
|
---|
59 | /**
|
---|
60 | * @var string
|
---|
61 | */
|
---|
62 | public $servicesIpv4CidrBlock;
|
---|
63 | /**
|
---|
64 | * @var string
|
---|
65 | */
|
---|
66 | public $servicesIpv6CidrBlock;
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $servicesSecondaryRangeName;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $stackType;
|
---|
75 | /**
|
---|
76 | * @var string
|
---|
77 | */
|
---|
78 | public $subnetIpv6CidrBlock;
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $subnetworkName;
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $tpuIpv4CidrBlock;
|
---|
87 | /**
|
---|
88 | * @var bool
|
---|
89 | */
|
---|
90 | public $useIpAliases;
|
---|
91 | /**
|
---|
92 | * @var bool
|
---|
93 | */
|
---|
94 | public $useRoutes;
|
---|
95 |
|
---|
96 | /**
|
---|
97 | * @param AdditionalPodRangesConfig
|
---|
98 | */
|
---|
99 | public function setAdditionalPodRangesConfig(AdditionalPodRangesConfig $additionalPodRangesConfig)
|
---|
100 | {
|
---|
101 | $this->additionalPodRangesConfig = $additionalPodRangesConfig;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @return AdditionalPodRangesConfig
|
---|
105 | */
|
---|
106 | public function getAdditionalPodRangesConfig()
|
---|
107 | {
|
---|
108 | return $this->additionalPodRangesConfig;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @param string
|
---|
112 | */
|
---|
113 | public function setClusterIpv4Cidr($clusterIpv4Cidr)
|
---|
114 | {
|
---|
115 | $this->clusterIpv4Cidr = $clusterIpv4Cidr;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @return string
|
---|
119 | */
|
---|
120 | public function getClusterIpv4Cidr()
|
---|
121 | {
|
---|
122 | return $this->clusterIpv4Cidr;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @param string
|
---|
126 | */
|
---|
127 | public function setClusterIpv4CidrBlock($clusterIpv4CidrBlock)
|
---|
128 | {
|
---|
129 | $this->clusterIpv4CidrBlock = $clusterIpv4CidrBlock;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @return string
|
---|
133 | */
|
---|
134 | public function getClusterIpv4CidrBlock()
|
---|
135 | {
|
---|
136 | return $this->clusterIpv4CidrBlock;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @param string
|
---|
140 | */
|
---|
141 | public function setClusterSecondaryRangeName($clusterSecondaryRangeName)
|
---|
142 | {
|
---|
143 | $this->clusterSecondaryRangeName = $clusterSecondaryRangeName;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @return string
|
---|
147 | */
|
---|
148 | public function getClusterSecondaryRangeName()
|
---|
149 | {
|
---|
150 | return $this->clusterSecondaryRangeName;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @param bool
|
---|
154 | */
|
---|
155 | public function setCreateSubnetwork($createSubnetwork)
|
---|
156 | {
|
---|
157 | $this->createSubnetwork = $createSubnetwork;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @return bool
|
---|
161 | */
|
---|
162 | public function getCreateSubnetwork()
|
---|
163 | {
|
---|
164 | return $this->createSubnetwork;
|
---|
165 | }
|
---|
166 | public function setDefaultPodIpv4RangeUtilization($defaultPodIpv4RangeUtilization)
|
---|
167 | {
|
---|
168 | $this->defaultPodIpv4RangeUtilization = $defaultPodIpv4RangeUtilization;
|
---|
169 | }
|
---|
170 | public function getDefaultPodIpv4RangeUtilization()
|
---|
171 | {
|
---|
172 | return $this->defaultPodIpv4RangeUtilization;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param string
|
---|
176 | */
|
---|
177 | public function setIpv6AccessType($ipv6AccessType)
|
---|
178 | {
|
---|
179 | $this->ipv6AccessType = $ipv6AccessType;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return string
|
---|
183 | */
|
---|
184 | public function getIpv6AccessType()
|
---|
185 | {
|
---|
186 | return $this->ipv6AccessType;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setNodeIpv4Cidr($nodeIpv4Cidr)
|
---|
192 | {
|
---|
193 | $this->nodeIpv4Cidr = $nodeIpv4Cidr;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getNodeIpv4Cidr()
|
---|
199 | {
|
---|
200 | return $this->nodeIpv4Cidr;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setNodeIpv4CidrBlock($nodeIpv4CidrBlock)
|
---|
206 | {
|
---|
207 | $this->nodeIpv4CidrBlock = $nodeIpv4CidrBlock;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getNodeIpv4CidrBlock()
|
---|
213 | {
|
---|
214 | return $this->nodeIpv4CidrBlock;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param PodCIDROverprovisionConfig
|
---|
218 | */
|
---|
219 | public function setPodCidrOverprovisionConfig(PodCIDROverprovisionConfig $podCidrOverprovisionConfig)
|
---|
220 | {
|
---|
221 | $this->podCidrOverprovisionConfig = $podCidrOverprovisionConfig;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return PodCIDROverprovisionConfig
|
---|
225 | */
|
---|
226 | public function getPodCidrOverprovisionConfig()
|
---|
227 | {
|
---|
228 | return $this->podCidrOverprovisionConfig;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param string
|
---|
232 | */
|
---|
233 | public function setServicesIpv4Cidr($servicesIpv4Cidr)
|
---|
234 | {
|
---|
235 | $this->servicesIpv4Cidr = $servicesIpv4Cidr;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return string
|
---|
239 | */
|
---|
240 | public function getServicesIpv4Cidr()
|
---|
241 | {
|
---|
242 | return $this->servicesIpv4Cidr;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param string
|
---|
246 | */
|
---|
247 | public function setServicesIpv4CidrBlock($servicesIpv4CidrBlock)
|
---|
248 | {
|
---|
249 | $this->servicesIpv4CidrBlock = $servicesIpv4CidrBlock;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return string
|
---|
253 | */
|
---|
254 | public function getServicesIpv4CidrBlock()
|
---|
255 | {
|
---|
256 | return $this->servicesIpv4CidrBlock;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param string
|
---|
260 | */
|
---|
261 | public function setServicesIpv6CidrBlock($servicesIpv6CidrBlock)
|
---|
262 | {
|
---|
263 | $this->servicesIpv6CidrBlock = $servicesIpv6CidrBlock;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return string
|
---|
267 | */
|
---|
268 | public function getServicesIpv6CidrBlock()
|
---|
269 | {
|
---|
270 | return $this->servicesIpv6CidrBlock;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param string
|
---|
274 | */
|
---|
275 | public function setServicesSecondaryRangeName($servicesSecondaryRangeName)
|
---|
276 | {
|
---|
277 | $this->servicesSecondaryRangeName = $servicesSecondaryRangeName;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return string
|
---|
281 | */
|
---|
282 | public function getServicesSecondaryRangeName()
|
---|
283 | {
|
---|
284 | return $this->servicesSecondaryRangeName;
|
---|
285 | }
|
---|
286 | /**
|
---|
287 | * @param string
|
---|
288 | */
|
---|
289 | public function setStackType($stackType)
|
---|
290 | {
|
---|
291 | $this->stackType = $stackType;
|
---|
292 | }
|
---|
293 | /**
|
---|
294 | * @return string
|
---|
295 | */
|
---|
296 | public function getStackType()
|
---|
297 | {
|
---|
298 | return $this->stackType;
|
---|
299 | }
|
---|
300 | /**
|
---|
301 | * @param string
|
---|
302 | */
|
---|
303 | public function setSubnetIpv6CidrBlock($subnetIpv6CidrBlock)
|
---|
304 | {
|
---|
305 | $this->subnetIpv6CidrBlock = $subnetIpv6CidrBlock;
|
---|
306 | }
|
---|
307 | /**
|
---|
308 | * @return string
|
---|
309 | */
|
---|
310 | public function getSubnetIpv6CidrBlock()
|
---|
311 | {
|
---|
312 | return $this->subnetIpv6CidrBlock;
|
---|
313 | }
|
---|
314 | /**
|
---|
315 | * @param string
|
---|
316 | */
|
---|
317 | public function setSubnetworkName($subnetworkName)
|
---|
318 | {
|
---|
319 | $this->subnetworkName = $subnetworkName;
|
---|
320 | }
|
---|
321 | /**
|
---|
322 | * @return string
|
---|
323 | */
|
---|
324 | public function getSubnetworkName()
|
---|
325 | {
|
---|
326 | return $this->subnetworkName;
|
---|
327 | }
|
---|
328 | /**
|
---|
329 | * @param string
|
---|
330 | */
|
---|
331 | public function setTpuIpv4CidrBlock($tpuIpv4CidrBlock)
|
---|
332 | {
|
---|
333 | $this->tpuIpv4CidrBlock = $tpuIpv4CidrBlock;
|
---|
334 | }
|
---|
335 | /**
|
---|
336 | * @return string
|
---|
337 | */
|
---|
338 | public function getTpuIpv4CidrBlock()
|
---|
339 | {
|
---|
340 | return $this->tpuIpv4CidrBlock;
|
---|
341 | }
|
---|
342 | /**
|
---|
343 | * @param bool
|
---|
344 | */
|
---|
345 | public function setUseIpAliases($useIpAliases)
|
---|
346 | {
|
---|
347 | $this->useIpAliases = $useIpAliases;
|
---|
348 | }
|
---|
349 | /**
|
---|
350 | * @return bool
|
---|
351 | */
|
---|
352 | public function getUseIpAliases()
|
---|
353 | {
|
---|
354 | return $this->useIpAliases;
|
---|
355 | }
|
---|
356 | /**
|
---|
357 | * @param bool
|
---|
358 | */
|
---|
359 | public function setUseRoutes($useRoutes)
|
---|
360 | {
|
---|
361 | $this->useRoutes = $useRoutes;
|
---|
362 | }
|
---|
363 | /**
|
---|
364 | * @return bool
|
---|
365 | */
|
---|
366 | public function getUseRoutes()
|
---|
367 | {
|
---|
368 | return $this->useRoutes;
|
---|
369 | }
|
---|
370 | }
|
---|
371 |
|
---|
372 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
373 | class_alias(IPAllocationPolicy::class, 'Google_Service_Container_IPAllocationPolicy');
|
---|