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 ForwardingRule extends \Google\Collection
21{
22  protected $collection_key = 'serviceDirectoryRegistrations';
23  protected $internal_gapi_mappings = [
24        "iPAddress" => "IPAddress",
25        "iPProtocol" => "IPProtocol",
26  ];
27  /**
28   * @var string
29   */
30  public $iPAddress;
31  /**
32   * @var string
33   */
34  public $iPProtocol;
35  /**
36   * @var bool
37   */
38  public $allPorts;
39  /**
40   * @var bool
41   */
42  public $allowGlobalAccess;
43  /**
44   * @var string
45   */
46  public $backendService;
47  /**
48   * @var string
49   */
50  public $creationTimestamp;
51  /**
52   * @var string
53   */
54  public $description;
55  /**
56   * @var string
57   */
58  public $fingerprint;
59  /**
60   * @var string
61   */
62  public $id;
63  /**
64   * @var string
65   */
66  public $ipVersion;
67  /**
68   * @var bool
69   */
70  public $isMirroringCollector;
71  /**
72   * @var string
73   */
74  public $kind;
75  /**
76   * @var string
77   */
78  public $labelFingerprint;
79  /**
80   * @var string[]
81   */
82  public $labels;
83  /**
84   * @var string
85   */
86  public $loadBalancingScheme;
87  protected $metadataFiltersType = MetadataFilter::class;
88  protected $metadataFiltersDataType = 'array';
89  /**
90   * @var string
91   */
92  public $name;
93  /**
94   * @var string
95   */
96  public $network;
97  /**
98   * @var string
99   */
100  public $networkTier;
101  /**
102   * @var string
103   */
104  public $portRange;
105  /**
106   * @var string[]
107   */
108  public $ports;
109  /**
110   * @var string
111   */
112  public $pscConnectionId;
113  /**
114   * @var string
115   */
116  public $pscConnectionStatus;
117  /**
118   * @var string
119   */
120  public $region;
121  /**
122   * @var string
123   */
124  public $selfLink;
125  protected $serviceDirectoryRegistrationsType = ForwardingRuleServiceDirectoryRegistration::class;
126  protected $serviceDirectoryRegistrationsDataType = 'array';
127  /**
128   * @var string
129   */
130  public $serviceLabel;
131  /**
132   * @var string
133   */
134  public $serviceName;
135  /**
136   * @var string
137   */
138  public $subnetwork;
139  /**
140   * @var string
141   */
142  public $target;
143
144  /**
145   * @param string
146   */
147  public function setIPAddress($iPAddress)
148  {
149    $this->iPAddress = $iPAddress;
150  }
151  /**
152   * @return string
153   */
154  public function getIPAddress()
155  {
156    return $this->iPAddress;
157  }
158  /**
159   * @param string
160   */
161  public function setIPProtocol($iPProtocol)
162  {
163    $this->iPProtocol = $iPProtocol;
164  }
165  /**
166   * @return string
167   */
168  public function getIPProtocol()
169  {
170    return $this->iPProtocol;
171  }
172  /**
173   * @param bool
174   */
175  public function setAllPorts($allPorts)
176  {
177    $this->allPorts = $allPorts;
178  }
179  /**
180   * @return bool
181   */
182  public function getAllPorts()
183  {
184    return $this->allPorts;
185  }
186  /**
187   * @param bool
188   */
189  public function setAllowGlobalAccess($allowGlobalAccess)
190  {
191    $this->allowGlobalAccess = $allowGlobalAccess;
192  }
193  /**
194   * @return bool
195   */
196  public function getAllowGlobalAccess()
197  {
198    return $this->allowGlobalAccess;
199  }
200  /**
201   * @param string
202   */
203  public function setBackendService($backendService)
204  {
205    $this->backendService = $backendService;
206  }
207  /**
208   * @return string
209   */
210  public function getBackendService()
211  {
212    return $this->backendService;
213  }
214  /**
215   * @param string
216   */
217  public function setCreationTimestamp($creationTimestamp)
218  {
219    $this->creationTimestamp = $creationTimestamp;
220  }
221  /**
222   * @return string
223   */
224  public function getCreationTimestamp()
225  {
226    return $this->creationTimestamp;
227  }
228  /**
229   * @param string
230   */
231  public function setDescription($description)
232  {
233    $this->description = $description;
234  }
235  /**
236   * @return string
237   */
238  public function getDescription()
239  {
240    return $this->description;
241  }
242  /**
243   * @param string
244   */
245  public function setFingerprint($fingerprint)
246  {
247    $this->fingerprint = $fingerprint;
248  }
249  /**
250   * @return string
251   */
252  public function getFingerprint()
253  {
254    return $this->fingerprint;
255  }
256  /**
257   * @param string
258   */
259  public function setId($id)
260  {
261    $this->id = $id;
262  }
263  /**
264   * @return string
265   */
266  public function getId()
267  {
268    return $this->id;
269  }
270  /**
271   * @param string
272   */
273  public function setIpVersion($ipVersion)
274  {
275    $this->ipVersion = $ipVersion;
276  }
277  /**
278   * @return string
279   */
280  public function getIpVersion()
281  {
282    return $this->ipVersion;
283  }
284  /**
285   * @param bool
286   */
287  public function setIsMirroringCollector($isMirroringCollector)
288  {
289    $this->isMirroringCollector = $isMirroringCollector;
290  }
291  /**
292   * @return bool
293   */
294  public function getIsMirroringCollector()
295  {
296    return $this->isMirroringCollector;
297  }
298  /**
299   * @param string
300   */
301  public function setKind($kind)
302  {
303    $this->kind = $kind;
304  }
305  /**
306   * @return string
307   */
308  public function getKind()
309  {
310    return $this->kind;
311  }
312  /**
313   * @param string
314   */
315  public function setLabelFingerprint($labelFingerprint)
316  {
317    $this->labelFingerprint = $labelFingerprint;
318  }
319  /**
320   * @return string
321   */
322  public function getLabelFingerprint()
323  {
324    return $this->labelFingerprint;
325  }
326  /**
327   * @param string[]
328   */
329  public function setLabels($labels)
330  {
331    $this->labels = $labels;
332  }
333  /**
334   * @return string[]
335   */
336  public function getLabels()
337  {
338    return $this->labels;
339  }
340  /**
341   * @param string
342   */
343  public function setLoadBalancingScheme($loadBalancingScheme)
344  {
345    $this->loadBalancingScheme = $loadBalancingScheme;
346  }
347  /**
348   * @return string
349   */
350  public function getLoadBalancingScheme()
351  {
352    return $this->loadBalancingScheme;
353  }
354  /**
355   * @param MetadataFilter[]
356   */
357  public function setMetadataFilters($metadataFilters)
358  {
359    $this->metadataFilters = $metadataFilters;
360  }
361  /**
362   * @return MetadataFilter[]
363   */
364  public function getMetadataFilters()
365  {
366    return $this->metadataFilters;
367  }
368  /**
369   * @param string
370   */
371  public function setName($name)
372  {
373    $this->name = $name;
374  }
375  /**
376   * @return string
377   */
378  public function getName()
379  {
380    return $this->name;
381  }
382  /**
383   * @param string
384   */
385  public function setNetwork($network)
386  {
387    $this->network = $network;
388  }
389  /**
390   * @return string
391   */
392  public function getNetwork()
393  {
394    return $this->network;
395  }
396  /**
397   * @param string
398   */
399  public function setNetworkTier($networkTier)
400  {
401    $this->networkTier = $networkTier;
402  }
403  /**
404   * @return string
405   */
406  public function getNetworkTier()
407  {
408    return $this->networkTier;
409  }
410  /**
411   * @param string
412   */
413  public function setPortRange($portRange)
414  {
415    $this->portRange = $portRange;
416  }
417  /**
418   * @return string
419   */
420  public function getPortRange()
421  {
422    return $this->portRange;
423  }
424  /**
425   * @param string[]
426   */
427  public function setPorts($ports)
428  {
429    $this->ports = $ports;
430  }
431  /**
432   * @return string[]
433   */
434  public function getPorts()
435  {
436    return $this->ports;
437  }
438  /**
439   * @param string
440   */
441  public function setPscConnectionId($pscConnectionId)
442  {
443    $this->pscConnectionId = $pscConnectionId;
444  }
445  /**
446   * @return string
447   */
448  public function getPscConnectionId()
449  {
450    return $this->pscConnectionId;
451  }
452  /**
453   * @param string
454   */
455  public function setPscConnectionStatus($pscConnectionStatus)
456  {
457    $this->pscConnectionStatus = $pscConnectionStatus;
458  }
459  /**
460   * @return string
461   */
462  public function getPscConnectionStatus()
463  {
464    return $this->pscConnectionStatus;
465  }
466  /**
467   * @param string
468   */
469  public function setRegion($region)
470  {
471    $this->region = $region;
472  }
473  /**
474   * @return string
475   */
476  public function getRegion()
477  {
478    return $this->region;
479  }
480  /**
481   * @param string
482   */
483  public function setSelfLink($selfLink)
484  {
485    $this->selfLink = $selfLink;
486  }
487  /**
488   * @return string
489   */
490  public function getSelfLink()
491  {
492    return $this->selfLink;
493  }
494  /**
495   * @param ForwardingRuleServiceDirectoryRegistration[]
496   */
497  public function setServiceDirectoryRegistrations($serviceDirectoryRegistrations)
498  {
499    $this->serviceDirectoryRegistrations = $serviceDirectoryRegistrations;
500  }
501  /**
502   * @return ForwardingRuleServiceDirectoryRegistration[]
503   */
504  public function getServiceDirectoryRegistrations()
505  {
506    return $this->serviceDirectoryRegistrations;
507  }
508  /**
509   * @param string
510   */
511  public function setServiceLabel($serviceLabel)
512  {
513    $this->serviceLabel = $serviceLabel;
514  }
515  /**
516   * @return string
517   */
518  public function getServiceLabel()
519  {
520    return $this->serviceLabel;
521  }
522  /**
523   * @param string
524   */
525  public function setServiceName($serviceName)
526  {
527    $this->serviceName = $serviceName;
528  }
529  /**
530   * @return string
531   */
532  public function getServiceName()
533  {
534    return $this->serviceName;
535  }
536  /**
537   * @param string
538   */
539  public function setSubnetwork($subnetwork)
540  {
541    $this->subnetwork = $subnetwork;
542  }
543  /**
544   * @return string
545   */
546  public function getSubnetwork()
547  {
548    return $this->subnetwork;
549  }
550  /**
551   * @param string
552   */
553  public function setTarget($target)
554  {
555    $this->target = $target;
556  }
557  /**
558   * @return string
559   */
560  public function getTarget()
561  {
562    return $this->target;
563  }
564}
565
566// Adding a class alias for backwards compatibility with the previous class name.
567class_alias(ForwardingRule::class, 'Google_Service_Compute_ForwardingRule');
568