/vendor/google/apiclient-services/src/Compute/AttachedDiskInitializeParams.php

https://gitlab.com/Japang-Jawara/jawara-penilaian · PHP · 257 lines · 126 code · 4 blank · 127 comment · 0 complexity · fc213793411a1bff5aaaf49220864a2a MD5 · raw file

  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 AttachedDiskInitializeParams extends \Google\Collection
  19. {
  20. protected $collection_key = 'resourcePolicies';
  21. /**
  22. * @var string
  23. */
  24. public $description;
  25. /**
  26. * @var string
  27. */
  28. public $diskName;
  29. /**
  30. * @var string
  31. */
  32. public $diskSizeGb;
  33. /**
  34. * @var string
  35. */
  36. public $diskType;
  37. /**
  38. * @var string[]
  39. */
  40. public $labels;
  41. /**
  42. * @var string[]
  43. */
  44. public $licenses;
  45. /**
  46. * @var string
  47. */
  48. public $onUpdateAction;
  49. /**
  50. * @var string
  51. */
  52. public $provisionedIops;
  53. /**
  54. * @var string[]
  55. */
  56. public $resourcePolicies;
  57. /**
  58. * @var string
  59. */
  60. public $sourceImage;
  61. protected $sourceImageEncryptionKeyType = CustomerEncryptionKey::class;
  62. protected $sourceImageEncryptionKeyDataType = '';
  63. /**
  64. * @var string
  65. */
  66. public $sourceSnapshot;
  67. protected $sourceSnapshotEncryptionKeyType = CustomerEncryptionKey::class;
  68. protected $sourceSnapshotEncryptionKeyDataType = '';
  69. /**
  70. * @param string
  71. */
  72. public function setDescription($description)
  73. {
  74. $this->description = $description;
  75. }
  76. /**
  77. * @return string
  78. */
  79. public function getDescription()
  80. {
  81. return $this->description;
  82. }
  83. /**
  84. * @param string
  85. */
  86. public function setDiskName($diskName)
  87. {
  88. $this->diskName = $diskName;
  89. }
  90. /**
  91. * @return string
  92. */
  93. public function getDiskName()
  94. {
  95. return $this->diskName;
  96. }
  97. /**
  98. * @param string
  99. */
  100. public function setDiskSizeGb($diskSizeGb)
  101. {
  102. $this->diskSizeGb = $diskSizeGb;
  103. }
  104. /**
  105. * @return string
  106. */
  107. public function getDiskSizeGb()
  108. {
  109. return $this->diskSizeGb;
  110. }
  111. /**
  112. * @param string
  113. */
  114. public function setDiskType($diskType)
  115. {
  116. $this->diskType = $diskType;
  117. }
  118. /**
  119. * @return string
  120. */
  121. public function getDiskType()
  122. {
  123. return $this->diskType;
  124. }
  125. /**
  126. * @param string[]
  127. */
  128. public function setLabels($labels)
  129. {
  130. $this->labels = $labels;
  131. }
  132. /**
  133. * @return string[]
  134. */
  135. public function getLabels()
  136. {
  137. return $this->labels;
  138. }
  139. /**
  140. * @param string[]
  141. */
  142. public function setLicenses($licenses)
  143. {
  144. $this->licenses = $licenses;
  145. }
  146. /**
  147. * @return string[]
  148. */
  149. public function getLicenses()
  150. {
  151. return $this->licenses;
  152. }
  153. /**
  154. * @param string
  155. */
  156. public function setOnUpdateAction($onUpdateAction)
  157. {
  158. $this->onUpdateAction = $onUpdateAction;
  159. }
  160. /**
  161. * @return string
  162. */
  163. public function getOnUpdateAction()
  164. {
  165. return $this->onUpdateAction;
  166. }
  167. /**
  168. * @param string
  169. */
  170. public function setProvisionedIops($provisionedIops)
  171. {
  172. $this->provisionedIops = $provisionedIops;
  173. }
  174. /**
  175. * @return string
  176. */
  177. public function getProvisionedIops()
  178. {
  179. return $this->provisionedIops;
  180. }
  181. /**
  182. * @param string[]
  183. */
  184. public function setResourcePolicies($resourcePolicies)
  185. {
  186. $this->resourcePolicies = $resourcePolicies;
  187. }
  188. /**
  189. * @return string[]
  190. */
  191. public function getResourcePolicies()
  192. {
  193. return $this->resourcePolicies;
  194. }
  195. /**
  196. * @param string
  197. */
  198. public function setSourceImage($sourceImage)
  199. {
  200. $this->sourceImage = $sourceImage;
  201. }
  202. /**
  203. * @return string
  204. */
  205. public function getSourceImage()
  206. {
  207. return $this->sourceImage;
  208. }
  209. /**
  210. * @param CustomerEncryptionKey
  211. */
  212. public function setSourceImageEncryptionKey(CustomerEncryptionKey $sourceImageEncryptionKey)
  213. {
  214. $this->sourceImageEncryptionKey = $sourceImageEncryptionKey;
  215. }
  216. /**
  217. * @return CustomerEncryptionKey
  218. */
  219. public function getSourceImageEncryptionKey()
  220. {
  221. return $this->sourceImageEncryptionKey;
  222. }
  223. /**
  224. * @param string
  225. */
  226. public function setSourceSnapshot($sourceSnapshot)
  227. {
  228. $this->sourceSnapshot = $sourceSnapshot;
  229. }
  230. /**
  231. * @return string
  232. */
  233. public function getSourceSnapshot()
  234. {
  235. return $this->sourceSnapshot;
  236. }
  237. /**
  238. * @param CustomerEncryptionKey
  239. */
  240. public function setSourceSnapshotEncryptionKey(CustomerEncryptionKey $sourceSnapshotEncryptionKey)
  241. {
  242. $this->sourceSnapshotEncryptionKey = $sourceSnapshotEncryptionKey;
  243. }
  244. /**
  245. * @return CustomerEncryptionKey
  246. */
  247. public function getSourceSnapshotEncryptionKey()
  248. {
  249. return $this->sourceSnapshotEncryptionKey;
  250. }
  251. }
  252. // Adding a class alias for backwards compatibility with the previous class name.
  253. class_alias(AttachedDiskInitializeParams::class, 'Google_Service_Compute_AttachedDiskInitializeParams');