Bucket.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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\CloudObservability;
  18. class Bucket extends \Google\Model
  19. {
  20. protected $cmekSettingsType = CmekSettings::class;
  21. protected $cmekSettingsDataType = '';
  22. /**
  23. * Output only. Create timestamp.
  24. *
  25. * @var string
  26. */
  27. public $createTime;
  28. /**
  29. * Output only. Delete timestamp.
  30. *
  31. * @var string
  32. */
  33. public $deleteTime;
  34. /**
  35. * Optional. Description of the bucket.
  36. *
  37. * @var string
  38. */
  39. public $description;
  40. /**
  41. * Optional. User friendly display name.
  42. *
  43. * @var string
  44. */
  45. public $displayName;
  46. /**
  47. * Identifier. Name of the bucket. The format is:
  48. * projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
  49. *
  50. * @var string
  51. */
  52. public $name;
  53. /**
  54. * Output only. Timestamp when the bucket in soft-deleted state is purged.
  55. *
  56. * @var string
  57. */
  58. public $purgeTime;
  59. /**
  60. * Output only. Update timestamp.
  61. *
  62. * @var string
  63. */
  64. public $updateTime;
  65. /**
  66. * Optional. Settings for configuring CMEK on a bucket.
  67. *
  68. * @param CmekSettings $cmekSettings
  69. */
  70. public function setCmekSettings(CmekSettings $cmekSettings)
  71. {
  72. $this->cmekSettings = $cmekSettings;
  73. }
  74. /**
  75. * @return CmekSettings
  76. */
  77. public function getCmekSettings()
  78. {
  79. return $this->cmekSettings;
  80. }
  81. /**
  82. * Output only. Create timestamp.
  83. *
  84. * @param string $createTime
  85. */
  86. public function setCreateTime($createTime)
  87. {
  88. $this->createTime = $createTime;
  89. }
  90. /**
  91. * @return string
  92. */
  93. public function getCreateTime()
  94. {
  95. return $this->createTime;
  96. }
  97. /**
  98. * Output only. Delete timestamp.
  99. *
  100. * @param string $deleteTime
  101. */
  102. public function setDeleteTime($deleteTime)
  103. {
  104. $this->deleteTime = $deleteTime;
  105. }
  106. /**
  107. * @return string
  108. */
  109. public function getDeleteTime()
  110. {
  111. return $this->deleteTime;
  112. }
  113. /**
  114. * Optional. Description of the bucket.
  115. *
  116. * @param string $description
  117. */
  118. public function setDescription($description)
  119. {
  120. $this->description = $description;
  121. }
  122. /**
  123. * @return string
  124. */
  125. public function getDescription()
  126. {
  127. return $this->description;
  128. }
  129. /**
  130. * Optional. User friendly display name.
  131. *
  132. * @param string $displayName
  133. */
  134. public function setDisplayName($displayName)
  135. {
  136. $this->displayName = $displayName;
  137. }
  138. /**
  139. * @return string
  140. */
  141. public function getDisplayName()
  142. {
  143. return $this->displayName;
  144. }
  145. /**
  146. * Identifier. Name of the bucket. The format is:
  147. * projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
  148. *
  149. * @param string $name
  150. */
  151. public function setName($name)
  152. {
  153. $this->name = $name;
  154. }
  155. /**
  156. * @return string
  157. */
  158. public function getName()
  159. {
  160. return $this->name;
  161. }
  162. /**
  163. * Output only. Timestamp when the bucket in soft-deleted state is purged.
  164. *
  165. * @param string $purgeTime
  166. */
  167. public function setPurgeTime($purgeTime)
  168. {
  169. $this->purgeTime = $purgeTime;
  170. }
  171. /**
  172. * @return string
  173. */
  174. public function getPurgeTime()
  175. {
  176. return $this->purgeTime;
  177. }
  178. /**
  179. * Output only. Update timestamp.
  180. *
  181. * @param string $updateTime
  182. */
  183. public function setUpdateTime($updateTime)
  184. {
  185. $this->updateTime = $updateTime;
  186. }
  187. /**
  188. * @return string
  189. */
  190. public function getUpdateTime()
  191. {
  192. return $this->updateTime;
  193. }
  194. }
  195. // Adding a class alias for backwards compatibility with the previous class name.
  196. class_alias(Bucket::class, 'Google_Service_CloudObservability_Bucket');