InterconnectGroup.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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 InterconnectGroup extends \Google\Model
  19. {
  20. protected $configuredType = InterconnectGroupConfigured::class;
  21. protected $configuredDataType = '';
  22. /**
  23. * Output only. [Output Only] Creation timestamp inRFC3339 text format.
  24. *
  25. * @var string
  26. */
  27. public $creationTimestamp;
  28. /**
  29. * An optional description of this resource. Provide this property when you
  30. * create the resource.
  31. *
  32. * @var string
  33. */
  34. public $description;
  35. /**
  36. * Opaque system-generated token that uniquely identifies the configuration.
  37. * If provided when patching a configuration in update mode, the provided
  38. * token must match the current token or the update is rejected. This provides
  39. * a reliable means of doing read-modify-write (optimistic locking) as
  40. * described by AIP 154.
  41. *
  42. * @var string
  43. */
  44. public $etag;
  45. /**
  46. * Output only. [Output Only] The unique identifier for the resource type. The
  47. * server generates this identifier.
  48. *
  49. * @var string
  50. */
  51. public $id;
  52. protected $intentType = InterconnectGroupIntent::class;
  53. protected $intentDataType = '';
  54. protected $interconnectsType = InterconnectGroupInterconnect::class;
  55. protected $interconnectsDataType = 'map';
  56. /**
  57. * Output only. [Output Only] Type of the resource. Always
  58. * compute#InterconnectGroup
  59. *
  60. * @var string
  61. */
  62. public $kind;
  63. /**
  64. * Name of the resource. Provided by the client when the resource is created.
  65. * The name must be 1-63 characters long, and comply withRFC1035.
  66. * Specifically, the name must be 1-63 characters long and match the regular
  67. * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
  68. * must be a lowercase letter, and all following characters must be a dash,
  69. * lowercase letter, or digit, except the last character, which cannot be a
  70. * dash.
  71. *
  72. * @var string
  73. */
  74. public $name;
  75. protected $physicalStructureType = InterconnectGroupPhysicalStructure::class;
  76. protected $physicalStructureDataType = '';
  77. /**
  78. * Output only. [Output Only] Server-defined URL for the resource.
  79. *
  80. * @var string
  81. */
  82. public $selfLink;
  83. /**
  84. * @param InterconnectGroupConfigured $configured
  85. */
  86. public function setConfigured(InterconnectGroupConfigured $configured)
  87. {
  88. $this->configured = $configured;
  89. }
  90. /**
  91. * @return InterconnectGroupConfigured
  92. */
  93. public function getConfigured()
  94. {
  95. return $this->configured;
  96. }
  97. /**
  98. * Output only. [Output Only] Creation timestamp inRFC3339 text format.
  99. *
  100. * @param string $creationTimestamp
  101. */
  102. public function setCreationTimestamp($creationTimestamp)
  103. {
  104. $this->creationTimestamp = $creationTimestamp;
  105. }
  106. /**
  107. * @return string
  108. */
  109. public function getCreationTimestamp()
  110. {
  111. return $this->creationTimestamp;
  112. }
  113. /**
  114. * An optional description of this resource. Provide this property when you
  115. * create the resource.
  116. *
  117. * @param string $description
  118. */
  119. public function setDescription($description)
  120. {
  121. $this->description = $description;
  122. }
  123. /**
  124. * @return string
  125. */
  126. public function getDescription()
  127. {
  128. return $this->description;
  129. }
  130. /**
  131. * Opaque system-generated token that uniquely identifies the configuration.
  132. * If provided when patching a configuration in update mode, the provided
  133. * token must match the current token or the update is rejected. This provides
  134. * a reliable means of doing read-modify-write (optimistic locking) as
  135. * described by AIP 154.
  136. *
  137. * @param string $etag
  138. */
  139. public function setEtag($etag)
  140. {
  141. $this->etag = $etag;
  142. }
  143. /**
  144. * @return string
  145. */
  146. public function getEtag()
  147. {
  148. return $this->etag;
  149. }
  150. /**
  151. * Output only. [Output Only] The unique identifier for the resource type. The
  152. * server generates this identifier.
  153. *
  154. * @param string $id
  155. */
  156. public function setId($id)
  157. {
  158. $this->id = $id;
  159. }
  160. /**
  161. * @return string
  162. */
  163. public function getId()
  164. {
  165. return $this->id;
  166. }
  167. /**
  168. * @param InterconnectGroupIntent $intent
  169. */
  170. public function setIntent(InterconnectGroupIntent $intent)
  171. {
  172. $this->intent = $intent;
  173. }
  174. /**
  175. * @return InterconnectGroupIntent
  176. */
  177. public function getIntent()
  178. {
  179. return $this->intent;
  180. }
  181. /**
  182. * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified
  183. * strings. Users are encouraged, but not required, to use their preferred
  184. * format for resource links as keys. Note that there are add-members and
  185. * remove-members methods in gcloud. The size of this map is limited by an
  186. * "Interconnects per group" quota.
  187. *
  188. * @param InterconnectGroupInterconnect[] $interconnects
  189. */
  190. public function setInterconnects($interconnects)
  191. {
  192. $this->interconnects = $interconnects;
  193. }
  194. /**
  195. * @return InterconnectGroupInterconnect[]
  196. */
  197. public function getInterconnects()
  198. {
  199. return $this->interconnects;
  200. }
  201. /**
  202. * Output only. [Output Only] Type of the resource. Always
  203. * compute#InterconnectGroup
  204. *
  205. * @param string $kind
  206. */
  207. public function setKind($kind)
  208. {
  209. $this->kind = $kind;
  210. }
  211. /**
  212. * @return string
  213. */
  214. public function getKind()
  215. {
  216. return $this->kind;
  217. }
  218. /**
  219. * Name of the resource. Provided by the client when the resource is created.
  220. * The name must be 1-63 characters long, and comply withRFC1035.
  221. * Specifically, the name must be 1-63 characters long and match the regular
  222. * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
  223. * must be a lowercase letter, and all following characters must be a dash,
  224. * lowercase letter, or digit, except the last character, which cannot be a
  225. * dash.
  226. *
  227. * @param string $name
  228. */
  229. public function setName($name)
  230. {
  231. $this->name = $name;
  232. }
  233. /**
  234. * @return string
  235. */
  236. public function getName()
  237. {
  238. return $this->name;
  239. }
  240. /**
  241. * @param InterconnectGroupPhysicalStructure $physicalStructure
  242. */
  243. public function setPhysicalStructure(InterconnectGroupPhysicalStructure $physicalStructure)
  244. {
  245. $this->physicalStructure = $physicalStructure;
  246. }
  247. /**
  248. * @return InterconnectGroupPhysicalStructure
  249. */
  250. public function getPhysicalStructure()
  251. {
  252. return $this->physicalStructure;
  253. }
  254. /**
  255. * Output only. [Output Only] Server-defined URL for the resource.
  256. *
  257. * @param string $selfLink
  258. */
  259. public function setSelfLink($selfLink)
  260. {
  261. $this->selfLink = $selfLink;
  262. }
  263. /**
  264. * @return string
  265. */
  266. public function getSelfLink()
  267. {
  268. return $this->selfLink;
  269. }
  270. }
  271. // Adding a class alias for backwards compatibility with the previous class name.
  272. class_alias(InterconnectGroup::class, 'Google_Service_Compute_InterconnectGroup');