Zone.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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 Zone extends \Google\Collection
  19. {
  20. public const STATUS_DOWN = 'DOWN';
  21. public const STATUS_UP = 'UP';
  22. protected $collection_key = 'availableCpuPlatforms';
  23. /**
  24. * [Output Only] Available cpu/platform selections for the zone.
  25. *
  26. * @var string[]
  27. */
  28. public $availableCpuPlatforms;
  29. /**
  30. * [Output Only] Creation timestamp inRFC3339 text format.
  31. *
  32. * @var string
  33. */
  34. public $creationTimestamp;
  35. protected $deprecatedType = DeprecationStatus::class;
  36. protected $deprecatedDataType = '';
  37. /**
  38. * [Output Only] Textual description of the resource.
  39. *
  40. * @var string
  41. */
  42. public $description;
  43. /**
  44. * [Output Only] The unique identifier for the resource. This identifier is
  45. * defined by the server.
  46. *
  47. * @var string
  48. */
  49. public $id;
  50. /**
  51. * Output only. [Output Only] Type of the resource. Always compute#zone for
  52. * zones.
  53. *
  54. * @var string
  55. */
  56. public $kind;
  57. /**
  58. * [Output Only] Name of the resource.
  59. *
  60. * @var string
  61. */
  62. public $name;
  63. /**
  64. * [Output Only] Full URL reference to the region which hosts the zone.
  65. *
  66. * @var string
  67. */
  68. public $region;
  69. /**
  70. * [Output Only] Server-defined URL for the resource.
  71. *
  72. * @var string
  73. */
  74. public $selfLink;
  75. /**
  76. * [Output Only] Status of the zone, either UP orDOWN.
  77. *
  78. * @var string
  79. */
  80. public $status;
  81. /**
  82. * Output only. [Output Only] Reserved for future use.
  83. *
  84. * @var bool
  85. */
  86. public $supportsPzs;
  87. /**
  88. * [Output Only] Available cpu/platform selections for the zone.
  89. *
  90. * @param string[] $availableCpuPlatforms
  91. */
  92. public function setAvailableCpuPlatforms($availableCpuPlatforms)
  93. {
  94. $this->availableCpuPlatforms = $availableCpuPlatforms;
  95. }
  96. /**
  97. * @return string[]
  98. */
  99. public function getAvailableCpuPlatforms()
  100. {
  101. return $this->availableCpuPlatforms;
  102. }
  103. /**
  104. * [Output Only] Creation timestamp inRFC3339 text format.
  105. *
  106. * @param string $creationTimestamp
  107. */
  108. public function setCreationTimestamp($creationTimestamp)
  109. {
  110. $this->creationTimestamp = $creationTimestamp;
  111. }
  112. /**
  113. * @return string
  114. */
  115. public function getCreationTimestamp()
  116. {
  117. return $this->creationTimestamp;
  118. }
  119. /**
  120. * [Output Only] The deprecation status associated with this zone.
  121. *
  122. * @param DeprecationStatus $deprecated
  123. */
  124. public function setDeprecated(DeprecationStatus $deprecated)
  125. {
  126. $this->deprecated = $deprecated;
  127. }
  128. /**
  129. * @return DeprecationStatus
  130. */
  131. public function getDeprecated()
  132. {
  133. return $this->deprecated;
  134. }
  135. /**
  136. * [Output Only] Textual description of the resource.
  137. *
  138. * @param string $description
  139. */
  140. public function setDescription($description)
  141. {
  142. $this->description = $description;
  143. }
  144. /**
  145. * @return string
  146. */
  147. public function getDescription()
  148. {
  149. return $this->description;
  150. }
  151. /**
  152. * [Output Only] The unique identifier for the resource. This identifier is
  153. * defined by the server.
  154. *
  155. * @param string $id
  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. * Output only. [Output Only] Type of the resource. Always compute#zone for
  170. * zones.
  171. *
  172. * @param string $kind
  173. */
  174. public function setKind($kind)
  175. {
  176. $this->kind = $kind;
  177. }
  178. /**
  179. * @return string
  180. */
  181. public function getKind()
  182. {
  183. return $this->kind;
  184. }
  185. /**
  186. * [Output Only] Name of the resource.
  187. *
  188. * @param string $name
  189. */
  190. public function setName($name)
  191. {
  192. $this->name = $name;
  193. }
  194. /**
  195. * @return string
  196. */
  197. public function getName()
  198. {
  199. return $this->name;
  200. }
  201. /**
  202. * [Output Only] Full URL reference to the region which hosts the zone.
  203. *
  204. * @param string $region
  205. */
  206. public function setRegion($region)
  207. {
  208. $this->region = $region;
  209. }
  210. /**
  211. * @return string
  212. */
  213. public function getRegion()
  214. {
  215. return $this->region;
  216. }
  217. /**
  218. * [Output Only] Server-defined URL for the resource.
  219. *
  220. * @param string $selfLink
  221. */
  222. public function setSelfLink($selfLink)
  223. {
  224. $this->selfLink = $selfLink;
  225. }
  226. /**
  227. * @return string
  228. */
  229. public function getSelfLink()
  230. {
  231. return $this->selfLink;
  232. }
  233. /**
  234. * [Output Only] Status of the zone, either UP orDOWN.
  235. *
  236. * Accepted values: DOWN, UP
  237. *
  238. * @param self::STATUS_* $status
  239. */
  240. public function setStatus($status)
  241. {
  242. $this->status = $status;
  243. }
  244. /**
  245. * @return self::STATUS_*
  246. */
  247. public function getStatus()
  248. {
  249. return $this->status;
  250. }
  251. /**
  252. * Output only. [Output Only] Reserved for future use.
  253. *
  254. * @param bool $supportsPzs
  255. */
  256. public function setSupportsPzs($supportsPzs)
  257. {
  258. $this->supportsPzs = $supportsPzs;
  259. }
  260. /**
  261. * @return bool
  262. */
  263. public function getSupportsPzs()
  264. {
  265. return $this->supportsPzs;
  266. }
  267. }
  268. // Adding a class alias for backwards compatibility with the previous class name.
  269. class_alias(Zone::class, 'Google_Service_Compute_Zone');