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 VpnTunnel extends \Google\Collection
21{
22  protected $collection_key = 'remoteTrafficSelector';
23  /**
24   * @var string
25   */
26  public $creationTimestamp;
27  /**
28   * @var string
29   */
30  public $description;
31  /**
32   * @var string
33   */
34  public $detailedStatus;
35  /**
36   * @var string
37   */
38  public $id;
39  /**
40   * @var int
41   */
42  public $ikeVersion;
43  /**
44   * @var string
45   */
46  public $kind;
47  /**
48   * @var string[]
49   */
50  public $localTrafficSelector;
51  /**
52   * @var string
53   */
54  public $name;
55  /**
56   * @var string
57   */
58  public $peerExternalGateway;
59  /**
60   * @var int
61   */
62  public $peerExternalGatewayInterface;
63  /**
64   * @var string
65   */
66  public $peerGcpGateway;
67  /**
68   * @var string
69   */
70  public $peerIp;
71  /**
72   * @var string
73   */
74  public $region;
75  /**
76   * @var string[]
77   */
78  public $remoteTrafficSelector;
79  /**
80   * @var string
81   */
82  public $router;
83  /**
84   * @var string
85   */
86  public $selfLink;
87  /**
88   * @var string
89   */
90  public $sharedSecret;
91  /**
92   * @var string
93   */
94  public $sharedSecretHash;
95  /**
96   * @var string
97   */
98  public $status;
99  /**
100   * @var string
101   */
102  public $targetVpnGateway;
103  /**
104   * @var string
105   */
106  public $vpnGateway;
107  /**
108   * @var int
109   */
110  public $vpnGatewayInterface;
111
112  /**
113   * @param string
114   */
115  public function setCreationTimestamp($creationTimestamp)
116  {
117    $this->creationTimestamp = $creationTimestamp;
118  }
119  /**
120   * @return string
121   */
122  public function getCreationTimestamp()
123  {
124    return $this->creationTimestamp;
125  }
126  /**
127   * @param string
128   */
129  public function setDescription($description)
130  {
131    $this->description = $description;
132  }
133  /**
134   * @return string
135   */
136  public function getDescription()
137  {
138    return $this->description;
139  }
140  /**
141   * @param string
142   */
143  public function setDetailedStatus($detailedStatus)
144  {
145    $this->detailedStatus = $detailedStatus;
146  }
147  /**
148   * @return string
149   */
150  public function getDetailedStatus()
151  {
152    return $this->detailedStatus;
153  }
154  /**
155   * @param string
156   */
157  public function setId($id)
158  {
159    $this->id = $id;
160  }
161  /**
162   * @return string
163   */
164  public function getId()
165  {
166    return $this->id;
167  }
168  /**
169   * @param int
170   */
171  public function setIkeVersion($ikeVersion)
172  {
173    $this->ikeVersion = $ikeVersion;
174  }
175  /**
176   * @return int
177   */
178  public function getIkeVersion()
179  {
180    return $this->ikeVersion;
181  }
182  /**
183   * @param string
184   */
185  public function setKind($kind)
186  {
187    $this->kind = $kind;
188  }
189  /**
190   * @return string
191   */
192  public function getKind()
193  {
194    return $this->kind;
195  }
196  /**
197   * @param string[]
198   */
199  public function setLocalTrafficSelector($localTrafficSelector)
200  {
201    $this->localTrafficSelector = $localTrafficSelector;
202  }
203  /**
204   * @return string[]
205   */
206  public function getLocalTrafficSelector()
207  {
208    return $this->localTrafficSelector;
209  }
210  /**
211   * @param string
212   */
213  public function setName($name)
214  {
215    $this->name = $name;
216  }
217  /**
218   * @return string
219   */
220  public function getName()
221  {
222    return $this->name;
223  }
224  /**
225   * @param string
226   */
227  public function setPeerExternalGateway($peerExternalGateway)
228  {
229    $this->peerExternalGateway = $peerExternalGateway;
230  }
231  /**
232   * @return string
233   */
234  public function getPeerExternalGateway()
235  {
236    return $this->peerExternalGateway;
237  }
238  /**
239   * @param int
240   */
241  public function setPeerExternalGatewayInterface($peerExternalGatewayInterface)
242  {
243    $this->peerExternalGatewayInterface = $peerExternalGatewayInterface;
244  }
245  /**
246   * @return int
247   */
248  public function getPeerExternalGatewayInterface()
249  {
250    return $this->peerExternalGatewayInterface;
251  }
252  /**
253   * @param string
254   */
255  public function setPeerGcpGateway($peerGcpGateway)
256  {
257    $this->peerGcpGateway = $peerGcpGateway;
258  }
259  /**
260   * @return string
261   */
262  public function getPeerGcpGateway()
263  {
264    return $this->peerGcpGateway;
265  }
266  /**
267   * @param string
268   */
269  public function setPeerIp($peerIp)
270  {
271    $this->peerIp = $peerIp;
272  }
273  /**
274   * @return string
275   */
276  public function getPeerIp()
277  {
278    return $this->peerIp;
279  }
280  /**
281   * @param string
282   */
283  public function setRegion($region)
284  {
285    $this->region = $region;
286  }
287  /**
288   * @return string
289   */
290  public function getRegion()
291  {
292    return $this->region;
293  }
294  /**
295   * @param string[]
296   */
297  public function setRemoteTrafficSelector($remoteTrafficSelector)
298  {
299    $this->remoteTrafficSelector = $remoteTrafficSelector;
300  }
301  /**
302   * @return string[]
303   */
304  public function getRemoteTrafficSelector()
305  {
306    return $this->remoteTrafficSelector;
307  }
308  /**
309   * @param string
310   */
311  public function setRouter($router)
312  {
313    $this->router = $router;
314  }
315  /**
316   * @return string
317   */
318  public function getRouter()
319  {
320    return $this->router;
321  }
322  /**
323   * @param string
324   */
325  public function setSelfLink($selfLink)
326  {
327    $this->selfLink = $selfLink;
328  }
329  /**
330   * @return string
331   */
332  public function getSelfLink()
333  {
334    return $this->selfLink;
335  }
336  /**
337   * @param string
338   */
339  public function setSharedSecret($sharedSecret)
340  {
341    $this->sharedSecret = $sharedSecret;
342  }
343  /**
344   * @return string
345   */
346  public function getSharedSecret()
347  {
348    return $this->sharedSecret;
349  }
350  /**
351   * @param string
352   */
353  public function setSharedSecretHash($sharedSecretHash)
354  {
355    $this->sharedSecretHash = $sharedSecretHash;
356  }
357  /**
358   * @return string
359   */
360  public function getSharedSecretHash()
361  {
362    return $this->sharedSecretHash;
363  }
364  /**
365   * @param string
366   */
367  public function setStatus($status)
368  {
369    $this->status = $status;
370  }
371  /**
372   * @return string
373   */
374  public function getStatus()
375  {
376    return $this->status;
377  }
378  /**
379   * @param string
380   */
381  public function setTargetVpnGateway($targetVpnGateway)
382  {
383    $this->targetVpnGateway = $targetVpnGateway;
384  }
385  /**
386   * @return string
387   */
388  public function getTargetVpnGateway()
389  {
390    return $this->targetVpnGateway;
391  }
392  /**
393   * @param string
394   */
395  public function setVpnGateway($vpnGateway)
396  {
397    $this->vpnGateway = $vpnGateway;
398  }
399  /**
400   * @return string
401   */
402  public function getVpnGateway()
403  {
404    return $this->vpnGateway;
405  }
406  /**
407   * @param int
408   */
409  public function setVpnGatewayInterface($vpnGatewayInterface)
410  {
411    $this->vpnGatewayInterface = $vpnGatewayInterface;
412  }
413  /**
414   * @return int
415   */
416  public function getVpnGatewayInterface()
417  {
418    return $this->vpnGatewayInterface;
419  }
420}
421
422// Adding a class alias for backwards compatibility with the previous class name.
423class_alias(VpnTunnel::class, 'Google_Service_Compute_VpnTunnel');
424