ServiceAttachmentConnectedEndpoint.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 ServiceAttachmentConnectedEndpoint extends \Google\Collection
  19. {
  20. /**
  21. * The connection has been accepted by the producer.
  22. */
  23. public const STATUS_ACCEPTED = 'ACCEPTED';
  24. /**
  25. * The connection has been closed by the producer.
  26. */
  27. public const STATUS_CLOSED = 'CLOSED';
  28. /**
  29. * The connection has been accepted by the producer, but the producer needs to
  30. * take further action before the forwarding rule can serve traffic.
  31. */
  32. public const STATUS_NEEDS_ATTENTION = 'NEEDS_ATTENTION';
  33. /**
  34. * The connection is pending acceptance by the producer.
  35. */
  36. public const STATUS_PENDING = 'PENDING';
  37. /**
  38. * The consumer is still connected but not using the connection.
  39. */
  40. public const STATUS_REJECTED = 'REJECTED';
  41. public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
  42. protected $collection_key = 'natIps';
  43. /**
  44. * The url of the consumer network.
  45. *
  46. * @var string
  47. */
  48. public $consumerNetwork;
  49. /**
  50. * The url of a connected endpoint.
  51. *
  52. * @var string
  53. */
  54. public $endpoint;
  55. /**
  56. * NAT IPs of the connected PSC endpoint and those of other endpoints
  57. * propagated from it.
  58. *
  59. * @var string[]
  60. */
  61. public $natIps;
  62. /**
  63. * The number of consumer Network Connectivity Center spokes that the
  64. * connected Private Service Connect endpoint has propagated to.
  65. *
  66. * @var string
  67. */
  68. public $propagatedConnectionCount;
  69. /**
  70. * The PSC connection id of the connected endpoint.
  71. *
  72. * @var string
  73. */
  74. public $pscConnectionId;
  75. /**
  76. * The status of a connected endpoint to this service attachment.
  77. *
  78. * @var string
  79. */
  80. public $status;
  81. /**
  82. * The url of the consumer network.
  83. *
  84. * @param string $consumerNetwork
  85. */
  86. public function setConsumerNetwork($consumerNetwork)
  87. {
  88. $this->consumerNetwork = $consumerNetwork;
  89. }
  90. /**
  91. * @return string
  92. */
  93. public function getConsumerNetwork()
  94. {
  95. return $this->consumerNetwork;
  96. }
  97. /**
  98. * The url of a connected endpoint.
  99. *
  100. * @param string $endpoint
  101. */
  102. public function setEndpoint($endpoint)
  103. {
  104. $this->endpoint = $endpoint;
  105. }
  106. /**
  107. * @return string
  108. */
  109. public function getEndpoint()
  110. {
  111. return $this->endpoint;
  112. }
  113. /**
  114. * NAT IPs of the connected PSC endpoint and those of other endpoints
  115. * propagated from it.
  116. *
  117. * @param string[] $natIps
  118. */
  119. public function setNatIps($natIps)
  120. {
  121. $this->natIps = $natIps;
  122. }
  123. /**
  124. * @return string[]
  125. */
  126. public function getNatIps()
  127. {
  128. return $this->natIps;
  129. }
  130. /**
  131. * The number of consumer Network Connectivity Center spokes that the
  132. * connected Private Service Connect endpoint has propagated to.
  133. *
  134. * @param string $propagatedConnectionCount
  135. */
  136. public function setPropagatedConnectionCount($propagatedConnectionCount)
  137. {
  138. $this->propagatedConnectionCount = $propagatedConnectionCount;
  139. }
  140. /**
  141. * @return string
  142. */
  143. public function getPropagatedConnectionCount()
  144. {
  145. return $this->propagatedConnectionCount;
  146. }
  147. /**
  148. * The PSC connection id of the connected endpoint.
  149. *
  150. * @param string $pscConnectionId
  151. */
  152. public function setPscConnectionId($pscConnectionId)
  153. {
  154. $this->pscConnectionId = $pscConnectionId;
  155. }
  156. /**
  157. * @return string
  158. */
  159. public function getPscConnectionId()
  160. {
  161. return $this->pscConnectionId;
  162. }
  163. /**
  164. * The status of a connected endpoint to this service attachment.
  165. *
  166. * Accepted values: ACCEPTED, CLOSED, NEEDS_ATTENTION, PENDING, REJECTED,
  167. * STATUS_UNSPECIFIED
  168. *
  169. * @param self::STATUS_* $status
  170. */
  171. public function setStatus($status)
  172. {
  173. $this->status = $status;
  174. }
  175. /**
  176. * @return self::STATUS_*
  177. */
  178. public function getStatus()
  179. {
  180. return $this->status;
  181. }
  182. }
  183. // Adding a class alias for backwards compatibility with the previous class name.
  184. class_alias(ServiceAttachmentConnectedEndpoint::class, 'Google_Service_Compute_ServiceAttachmentConnectedEndpoint');