SavedDisk.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 SavedDisk extends \Google\Model
  19. {
  20. /**
  21. * Default value indicating Architecture is not set.
  22. */
  23. public const ARCHITECTURE_ARCHITECTURE_UNSPECIFIED = 'ARCHITECTURE_UNSPECIFIED';
  24. /**
  25. * Machines with architecture ARM64
  26. */
  27. public const ARCHITECTURE_ARM64 = 'ARM64';
  28. /**
  29. * Machines with architecture X86_64
  30. */
  31. public const ARCHITECTURE_X86_64 = 'X86_64';
  32. public const STORAGE_BYTES_STATUS_UPDATING = 'UPDATING';
  33. public const STORAGE_BYTES_STATUS_UP_TO_DATE = 'UP_TO_DATE';
  34. /**
  35. * Output only. [Output Only] The architecture of the attached disk.
  36. *
  37. * @var string
  38. */
  39. public $architecture;
  40. /**
  41. * Output only. [Output Only] Type of the resource. Always compute#savedDisk
  42. * for attached disks.
  43. *
  44. * @var string
  45. */
  46. public $kind;
  47. /**
  48. * Output only. Specifies a URL of the disk attached to the source instance.
  49. *
  50. * @var string
  51. */
  52. public $sourceDisk;
  53. /**
  54. * Output only. [Output Only] Size of the individual disk snapshot used by
  55. * this machine image.
  56. *
  57. * @var string
  58. */
  59. public $storageBytes;
  60. /**
  61. * Output only. [Output Only] An indicator whether storageBytes is in a stable
  62. * state or it is being adjusted as a result of shared storage reallocation.
  63. * This status can either be UPDATING, meaning the size of the snapshot is
  64. * being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-
  65. * date.
  66. *
  67. * @var string
  68. */
  69. public $storageBytesStatus;
  70. /**
  71. * Output only. [Output Only] The architecture of the attached disk.
  72. *
  73. * Accepted values: ARCHITECTURE_UNSPECIFIED, ARM64, X86_64
  74. *
  75. * @param self::ARCHITECTURE_* $architecture
  76. */
  77. public function setArchitecture($architecture)
  78. {
  79. $this->architecture = $architecture;
  80. }
  81. /**
  82. * @return self::ARCHITECTURE_*
  83. */
  84. public function getArchitecture()
  85. {
  86. return $this->architecture;
  87. }
  88. /**
  89. * Output only. [Output Only] Type of the resource. Always compute#savedDisk
  90. * for attached disks.
  91. *
  92. * @param string $kind
  93. */
  94. public function setKind($kind)
  95. {
  96. $this->kind = $kind;
  97. }
  98. /**
  99. * @return string
  100. */
  101. public function getKind()
  102. {
  103. return $this->kind;
  104. }
  105. /**
  106. * Output only. Specifies a URL of the disk attached to the source instance.
  107. *
  108. * @param string $sourceDisk
  109. */
  110. public function setSourceDisk($sourceDisk)
  111. {
  112. $this->sourceDisk = $sourceDisk;
  113. }
  114. /**
  115. * @return string
  116. */
  117. public function getSourceDisk()
  118. {
  119. return $this->sourceDisk;
  120. }
  121. /**
  122. * Output only. [Output Only] Size of the individual disk snapshot used by
  123. * this machine image.
  124. *
  125. * @param string $storageBytes
  126. */
  127. public function setStorageBytes($storageBytes)
  128. {
  129. $this->storageBytes = $storageBytes;
  130. }
  131. /**
  132. * @return string
  133. */
  134. public function getStorageBytes()
  135. {
  136. return $this->storageBytes;
  137. }
  138. /**
  139. * Output only. [Output Only] An indicator whether storageBytes is in a stable
  140. * state or it is being adjusted as a result of shared storage reallocation.
  141. * This status can either be UPDATING, meaning the size of the snapshot is
  142. * being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-
  143. * date.
  144. *
  145. * Accepted values: UPDATING, UP_TO_DATE
  146. *
  147. * @param self::STORAGE_BYTES_STATUS_* $storageBytesStatus
  148. */
  149. public function setStorageBytesStatus($storageBytesStatus)
  150. {
  151. $this->storageBytesStatus = $storageBytesStatus;
  152. }
  153. /**
  154. * @return self::STORAGE_BYTES_STATUS_*
  155. */
  156. public function getStorageBytesStatus()
  157. {
  158. return $this->storageBytesStatus;
  159. }
  160. }
  161. // Adding a class alias for backwards compatibility with the previous class name.
  162. class_alias(SavedDisk::class, 'Google_Service_Compute_SavedDisk');