source: vendor/google/apiclient-services/src/Compute/RouterNat.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 7.3 KB
Line 
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\Compute;
19
20class RouterNat extends \Google\Collection
21{
22 protected $collection_key = 'subnetworks';
23 /**
24 * @var string
25 */
26 public $autoNetworkTier;
27 /**
28 * @var string[]
29 */
30 public $drainNatIps;
31 /**
32 * @var bool
33 */
34 public $enableDynamicPortAllocation;
35 /**
36 * @var bool
37 */
38 public $enableEndpointIndependentMapping;
39 /**
40 * @var string[]
41 */
42 public $endpointTypes;
43 /**
44 * @var int
45 */
46 public $icmpIdleTimeoutSec;
47 protected $logConfigType = RouterNatLogConfig::class;
48 protected $logConfigDataType = '';
49 /**
50 * @var int
51 */
52 public $maxPortsPerVm;
53 /**
54 * @var int
55 */
56 public $minPortsPerVm;
57 /**
58 * @var string
59 */
60 public $name;
61 /**
62 * @var string
63 */
64 public $natIpAllocateOption;
65 /**
66 * @var string[]
67 */
68 public $natIps;
69 protected $rulesType = RouterNatRule::class;
70 protected $rulesDataType = 'array';
71 /**
72 * @var string
73 */
74 public $sourceSubnetworkIpRangesToNat;
75 protected $subnetworksType = RouterNatSubnetworkToNat::class;
76 protected $subnetworksDataType = 'array';
77 /**
78 * @var int
79 */
80 public $tcpEstablishedIdleTimeoutSec;
81 /**
82 * @var int
83 */
84 public $tcpTimeWaitTimeoutSec;
85 /**
86 * @var int
87 */
88 public $tcpTransitoryIdleTimeoutSec;
89 /**
90 * @var string
91 */
92 public $type;
93 /**
94 * @var int
95 */
96 public $udpIdleTimeoutSec;
97
98 /**
99 * @param string
100 */
101 public function setAutoNetworkTier($autoNetworkTier)
102 {
103 $this->autoNetworkTier = $autoNetworkTier;
104 }
105 /**
106 * @return string
107 */
108 public function getAutoNetworkTier()
109 {
110 return $this->autoNetworkTier;
111 }
112 /**
113 * @param string[]
114 */
115 public function setDrainNatIps($drainNatIps)
116 {
117 $this->drainNatIps = $drainNatIps;
118 }
119 /**
120 * @return string[]
121 */
122 public function getDrainNatIps()
123 {
124 return $this->drainNatIps;
125 }
126 /**
127 * @param bool
128 */
129 public function setEnableDynamicPortAllocation($enableDynamicPortAllocation)
130 {
131 $this->enableDynamicPortAllocation = $enableDynamicPortAllocation;
132 }
133 /**
134 * @return bool
135 */
136 public function getEnableDynamicPortAllocation()
137 {
138 return $this->enableDynamicPortAllocation;
139 }
140 /**
141 * @param bool
142 */
143 public function setEnableEndpointIndependentMapping($enableEndpointIndependentMapping)
144 {
145 $this->enableEndpointIndependentMapping = $enableEndpointIndependentMapping;
146 }
147 /**
148 * @return bool
149 */
150 public function getEnableEndpointIndependentMapping()
151 {
152 return $this->enableEndpointIndependentMapping;
153 }
154 /**
155 * @param string[]
156 */
157 public function setEndpointTypes($endpointTypes)
158 {
159 $this->endpointTypes = $endpointTypes;
160 }
161 /**
162 * @return string[]
163 */
164 public function getEndpointTypes()
165 {
166 return $this->endpointTypes;
167 }
168 /**
169 * @param int
170 */
171 public function setIcmpIdleTimeoutSec($icmpIdleTimeoutSec)
172 {
173 $this->icmpIdleTimeoutSec = $icmpIdleTimeoutSec;
174 }
175 /**
176 * @return int
177 */
178 public function getIcmpIdleTimeoutSec()
179 {
180 return $this->icmpIdleTimeoutSec;
181 }
182 /**
183 * @param RouterNatLogConfig
184 */
185 public function setLogConfig(RouterNatLogConfig $logConfig)
186 {
187 $this->logConfig = $logConfig;
188 }
189 /**
190 * @return RouterNatLogConfig
191 */
192 public function getLogConfig()
193 {
194 return $this->logConfig;
195 }
196 /**
197 * @param int
198 */
199 public function setMaxPortsPerVm($maxPortsPerVm)
200 {
201 $this->maxPortsPerVm = $maxPortsPerVm;
202 }
203 /**
204 * @return int
205 */
206 public function getMaxPortsPerVm()
207 {
208 return $this->maxPortsPerVm;
209 }
210 /**
211 * @param int
212 */
213 public function setMinPortsPerVm($minPortsPerVm)
214 {
215 $this->minPortsPerVm = $minPortsPerVm;
216 }
217 /**
218 * @return int
219 */
220 public function getMinPortsPerVm()
221 {
222 return $this->minPortsPerVm;
223 }
224 /**
225 * @param string
226 */
227 public function setName($name)
228 {
229 $this->name = $name;
230 }
231 /**
232 * @return string
233 */
234 public function getName()
235 {
236 return $this->name;
237 }
238 /**
239 * @param string
240 */
241 public function setNatIpAllocateOption($natIpAllocateOption)
242 {
243 $this->natIpAllocateOption = $natIpAllocateOption;
244 }
245 /**
246 * @return string
247 */
248 public function getNatIpAllocateOption()
249 {
250 return $this->natIpAllocateOption;
251 }
252 /**
253 * @param string[]
254 */
255 public function setNatIps($natIps)
256 {
257 $this->natIps = $natIps;
258 }
259 /**
260 * @return string[]
261 */
262 public function getNatIps()
263 {
264 return $this->natIps;
265 }
266 /**
267 * @param RouterNatRule[]
268 */
269 public function setRules($rules)
270 {
271 $this->rules = $rules;
272 }
273 /**
274 * @return RouterNatRule[]
275 */
276 public function getRules()
277 {
278 return $this->rules;
279 }
280 /**
281 * @param string
282 */
283 public function setSourceSubnetworkIpRangesToNat($sourceSubnetworkIpRangesToNat)
284 {
285 $this->sourceSubnetworkIpRangesToNat = $sourceSubnetworkIpRangesToNat;
286 }
287 /**
288 * @return string
289 */
290 public function getSourceSubnetworkIpRangesToNat()
291 {
292 return $this->sourceSubnetworkIpRangesToNat;
293 }
294 /**
295 * @param RouterNatSubnetworkToNat[]
296 */
297 public function setSubnetworks($subnetworks)
298 {
299 $this->subnetworks = $subnetworks;
300 }
301 /**
302 * @return RouterNatSubnetworkToNat[]
303 */
304 public function getSubnetworks()
305 {
306 return $this->subnetworks;
307 }
308 /**
309 * @param int
310 */
311 public function setTcpEstablishedIdleTimeoutSec($tcpEstablishedIdleTimeoutSec)
312 {
313 $this->tcpEstablishedIdleTimeoutSec = $tcpEstablishedIdleTimeoutSec;
314 }
315 /**
316 * @return int
317 */
318 public function getTcpEstablishedIdleTimeoutSec()
319 {
320 return $this->tcpEstablishedIdleTimeoutSec;
321 }
322 /**
323 * @param int
324 */
325 public function setTcpTimeWaitTimeoutSec($tcpTimeWaitTimeoutSec)
326 {
327 $this->tcpTimeWaitTimeoutSec = $tcpTimeWaitTimeoutSec;
328 }
329 /**
330 * @return int
331 */
332 public function getTcpTimeWaitTimeoutSec()
333 {
334 return $this->tcpTimeWaitTimeoutSec;
335 }
336 /**
337 * @param int
338 */
339 public function setTcpTransitoryIdleTimeoutSec($tcpTransitoryIdleTimeoutSec)
340 {
341 $this->tcpTransitoryIdleTimeoutSec = $tcpTransitoryIdleTimeoutSec;
342 }
343 /**
344 * @return int
345 */
346 public function getTcpTransitoryIdleTimeoutSec()
347 {
348 return $this->tcpTransitoryIdleTimeoutSec;
349 }
350 /**
351 * @param string
352 */
353 public function setType($type)
354 {
355 $this->type = $type;
356 }
357 /**
358 * @return string
359 */
360 public function getType()
361 {
362 return $this->type;
363 }
364 /**
365 * @param int
366 */
367 public function setUdpIdleTimeoutSec($udpIdleTimeoutSec)
368 {
369 $this->udpIdleTimeoutSec = $udpIdleTimeoutSec;
370 }
371 /**
372 * @return int
373 */
374 public function getUdpIdleTimeoutSec()
375 {
376 return $this->udpIdleTimeoutSec;
377 }
378}
379
380// Adding a class alias for backwards compatibility with the previous class name.
381class_alias(RouterNat::class, 'Google_Service_Compute_RouterNat');
Note: See TracBrowser for help on using the repository browser.