Saas.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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\SaaSServiceManagement;
  18. class Saas extends \Google\Collection
  19. {
  20. protected $collection_key = 'locations';
  21. /**
  22. * Optional. Annotations is an unstructured key-value map stored with a
  23. * resource that may be set by external tools to store and retrieve arbitrary
  24. * metadata. They are not queryable and should be preserved when modifying
  25. * objects. More info: https://kubernetes.io/docs/user-guide/annotations
  26. *
  27. * @var string[]
  28. */
  29. public $annotations;
  30. /**
  31. * Output only. The timestamp when the resource was created.
  32. *
  33. * @var string
  34. */
  35. public $createTime;
  36. /**
  37. * Output only. An opaque value that uniquely identifies a version or
  38. * generation of a resource. It can be used to confirm that the client and
  39. * server agree on the ordering of a resource being written.
  40. *
  41. * @var string
  42. */
  43. public $etag;
  44. /**
  45. * Optional. The labels on the resource, which can be used for categorization.
  46. * similar to Kubernetes resource labels.
  47. *
  48. * @var string[]
  49. */
  50. public $labels;
  51. protected $locationsType = Location::class;
  52. protected $locationsDataType = 'array';
  53. /**
  54. * Identifier. The resource name (full URI of the resource) following the
  55. * standard naming scheme:
  56. * "projects/{project}/locations/{location}/saas/{saas}"
  57. *
  58. * @var string
  59. */
  60. public $name;
  61. /**
  62. * Output only. The unique identifier of the resource. UID is unique in the
  63. * time and space for this resource within the scope of the service. It is
  64. * typically generated by the server on successful creation of a resource and
  65. * must not be changed. UID is used to uniquely identify resources with
  66. * resource name reuses. This should be a UUID4.
  67. *
  68. * @var string
  69. */
  70. public $uid;
  71. /**
  72. * Output only. The timestamp when the resource was last updated. Any change
  73. * to the resource made by users must refresh this value. Changes to a
  74. * resource made by the service should refresh this value.
  75. *
  76. * @var string
  77. */
  78. public $updateTime;
  79. /**
  80. * Optional. Annotations is an unstructured key-value map stored with a
  81. * resource that may be set by external tools to store and retrieve arbitrary
  82. * metadata. They are not queryable and should be preserved when modifying
  83. * objects. More info: https://kubernetes.io/docs/user-guide/annotations
  84. *
  85. * @param string[] $annotations
  86. */
  87. public function setAnnotations($annotations)
  88. {
  89. $this->annotations = $annotations;
  90. }
  91. /**
  92. * @return string[]
  93. */
  94. public function getAnnotations()
  95. {
  96. return $this->annotations;
  97. }
  98. /**
  99. * Output only. The timestamp when the resource was created.
  100. *
  101. * @param string $createTime
  102. */
  103. public function setCreateTime($createTime)
  104. {
  105. $this->createTime = $createTime;
  106. }
  107. /**
  108. * @return string
  109. */
  110. public function getCreateTime()
  111. {
  112. return $this->createTime;
  113. }
  114. /**
  115. * Output only. An opaque value that uniquely identifies a version or
  116. * generation of a resource. It can be used to confirm that the client and
  117. * server agree on the ordering of a resource being written.
  118. *
  119. * @param string $etag
  120. */
  121. public function setEtag($etag)
  122. {
  123. $this->etag = $etag;
  124. }
  125. /**
  126. * @return string
  127. */
  128. public function getEtag()
  129. {
  130. return $this->etag;
  131. }
  132. /**
  133. * Optional. The labels on the resource, which can be used for categorization.
  134. * similar to Kubernetes resource labels.
  135. *
  136. * @param string[] $labels
  137. */
  138. public function setLabels($labels)
  139. {
  140. $this->labels = $labels;
  141. }
  142. /**
  143. * @return string[]
  144. */
  145. public function getLabels()
  146. {
  147. return $this->labels;
  148. }
  149. /**
  150. * Optional. List of locations that the service is available in. Rollout
  151. * refers to the list to generate a rollout plan.
  152. *
  153. * @param Location[] $locations
  154. */
  155. public function setLocations($locations)
  156. {
  157. $this->locations = $locations;
  158. }
  159. /**
  160. * @return Location[]
  161. */
  162. public function getLocations()
  163. {
  164. return $this->locations;
  165. }
  166. /**
  167. * Identifier. The resource name (full URI of the resource) following the
  168. * standard naming scheme:
  169. * "projects/{project}/locations/{location}/saas/{saas}"
  170. *
  171. * @param string $name
  172. */
  173. public function setName($name)
  174. {
  175. $this->name = $name;
  176. }
  177. /**
  178. * @return string
  179. */
  180. public function getName()
  181. {
  182. return $this->name;
  183. }
  184. /**
  185. * Output only. The unique identifier of the resource. UID is unique in the
  186. * time and space for this resource within the scope of the service. It is
  187. * typically generated by the server on successful creation of a resource and
  188. * must not be changed. UID is used to uniquely identify resources with
  189. * resource name reuses. This should be a UUID4.
  190. *
  191. * @param string $uid
  192. */
  193. public function setUid($uid)
  194. {
  195. $this->uid = $uid;
  196. }
  197. /**
  198. * @return string
  199. */
  200. public function getUid()
  201. {
  202. return $this->uid;
  203. }
  204. /**
  205. * Output only. The timestamp when the resource was last updated. Any change
  206. * to the resource made by users must refresh this value. Changes to a
  207. * resource made by the service should refresh this value.
  208. *
  209. * @param string $updateTime
  210. */
  211. public function setUpdateTime($updateTime)
  212. {
  213. $this->updateTime = $updateTime;
  214. }
  215. /**
  216. * @return string
  217. */
  218. public function getUpdateTime()
  219. {
  220. return $this->updateTime;
  221. }
  222. }
  223. // Adding a class alias for backwards compatibility with the previous class name.
  224. class_alias(Saas::class, 'Google_Service_SaaSServiceManagement_Saas');