VpnGatewayVpnGatewayInterface.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. namespace Google\Service\Compute;
  18. class VpnGatewayVpnGatewayInterface extends \Google\Model
  19. {
  20. /**
  21. * Output only. [Output Only] Numeric identifier for this VPN interface
  22. * associated with the VPN gateway.
  23. *
  24. * @var string
  25. */
  26. public $id;
  27. /**
  28. * URL of the VLAN attachment (interconnectAttachment) resource for this VPN
  29. * gateway interface. When the value of this field is present, the VPN gateway
  30. * is used for HA VPN over Cloud Interconnect; all egress or ingress traffic
  31. * for this VPN gateway interface goes through the specified VLAN attachment
  32. * resource.
  33. *
  34. * @var string
  35. */
  36. public $interconnectAttachment;
  37. /**
  38. * Output only. [Output Only] IP address for this VPN interface associated
  39. * with the VPN gateway. The IP address could be either a regional external IP
  40. * address or a regional internal IP address. The two IP addresses for a VPN
  41. * gateway must be all regional external or regional internal IP addresses.
  42. * There cannot be a mix of regional external IP addresses and regional
  43. * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses
  44. * for both interfaces could either be regional internal IP addresses or
  45. * regional external IP addresses. For regular (non HA VPN over Cloud
  46. * Interconnect) HA VPN tunnels, the IP address must be a regional external IP
  47. * address.
  48. *
  49. * @var string
  50. */
  51. public $ipAddress;
  52. /**
  53. * Output only. [Output Only] IPv6 address for this VPN interface associated
  54. * with the VPN gateway. The IPv6 address must be a regional external IPv6
  55. * address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
  56. *
  57. * @var string
  58. */
  59. public $ipv6Address;
  60. /**
  61. * Output only. [Output Only] Numeric identifier for this VPN interface
  62. * associated with the VPN gateway.
  63. *
  64. * @param string $id
  65. */
  66. public function setId($id)
  67. {
  68. $this->id = $id;
  69. }
  70. /**
  71. * @return string
  72. */
  73. public function getId()
  74. {
  75. return $this->id;
  76. }
  77. /**
  78. * URL of the VLAN attachment (interconnectAttachment) resource for this VPN
  79. * gateway interface. When the value of this field is present, the VPN gateway
  80. * is used for HA VPN over Cloud Interconnect; all egress or ingress traffic
  81. * for this VPN gateway interface goes through the specified VLAN attachment
  82. * resource.
  83. *
  84. * @param string $interconnectAttachment
  85. */
  86. public function setInterconnectAttachment($interconnectAttachment)
  87. {
  88. $this->interconnectAttachment = $interconnectAttachment;
  89. }
  90. /**
  91. * @return string
  92. */
  93. public function getInterconnectAttachment()
  94. {
  95. return $this->interconnectAttachment;
  96. }
  97. /**
  98. * Output only. [Output Only] IP address for this VPN interface associated
  99. * with the VPN gateway. The IP address could be either a regional external IP
  100. * address or a regional internal IP address. The two IP addresses for a VPN
  101. * gateway must be all regional external or regional internal IP addresses.
  102. * There cannot be a mix of regional external IP addresses and regional
  103. * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses
  104. * for both interfaces could either be regional internal IP addresses or
  105. * regional external IP addresses. For regular (non HA VPN over Cloud
  106. * Interconnect) HA VPN tunnels, the IP address must be a regional external IP
  107. * address.
  108. *
  109. * @param string $ipAddress
  110. */
  111. public function setIpAddress($ipAddress)
  112. {
  113. $this->ipAddress = $ipAddress;
  114. }
  115. /**
  116. * @return string
  117. */
  118. public function getIpAddress()
  119. {
  120. return $this->ipAddress;
  121. }
  122. /**
  123. * Output only. [Output Only] IPv6 address for this VPN interface associated
  124. * with the VPN gateway. The IPv6 address must be a regional external IPv6
  125. * address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
  126. *
  127. * @param string $ipv6Address
  128. */
  129. public function setIpv6Address($ipv6Address)
  130. {
  131. $this->ipv6Address = $ipv6Address;
  132. }
  133. /**
  134. * @return string
  135. */
  136. public function getIpv6Address()
  137. {
  138. return $this->ipv6Address;
  139. }
  140. }
  141. // Adding a class alias for backwards compatibility with the previous class name.
  142. class_alias(VpnGatewayVpnGatewayInterface::class, 'Google_Service_Compute_VpnGatewayVpnGatewayInterface');