InstanceBackup.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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\Looker;
  18. class InstanceBackup extends \Google\Model
  19. {
  20. /**
  21. * The state of the backup is unknown.
  22. */
  23. public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  24. /**
  25. * The backup is being created.
  26. */
  27. public const STATE_CREATING = 'CREATING';
  28. /**
  29. * The backup is being deleted.
  30. */
  31. public const STATE_DELETING = 'DELETING';
  32. /**
  33. * The backup is active and ready to use.
  34. */
  35. public const STATE_ACTIVE = 'ACTIVE';
  36. /**
  37. * The backup failed.
  38. */
  39. public const STATE_FAILED = 'FAILED';
  40. /**
  41. * Output only. The time when the backup was started.
  42. *
  43. * @var string
  44. */
  45. public $createTime;
  46. protected $encryptionConfigType = EncryptionConfig::class;
  47. protected $encryptionConfigDataType = '';
  48. /**
  49. * Output only. The time when the backup will be deleted.
  50. *
  51. * @var string
  52. */
  53. public $expireTime;
  54. /**
  55. * Immutable. The relative resource name of the backup, in the following form:
  56. * `projects/{project_number}/locations/{location_id}/instances/{instance_id}/
  57. * backups/{backup}`
  58. *
  59. * @var string
  60. */
  61. public $name;
  62. /**
  63. * Output only. The current state of the backup.
  64. *
  65. * @var string
  66. */
  67. public $state;
  68. /**
  69. * Output only. The time when the backup was started.
  70. *
  71. * @param string $createTime
  72. */
  73. public function setCreateTime($createTime)
  74. {
  75. $this->createTime = $createTime;
  76. }
  77. /**
  78. * @return string
  79. */
  80. public function getCreateTime()
  81. {
  82. return $this->createTime;
  83. }
  84. /**
  85. * Output only. Current status of the CMEK encryption
  86. *
  87. * @param EncryptionConfig $encryptionConfig
  88. */
  89. public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
  90. {
  91. $this->encryptionConfig = $encryptionConfig;
  92. }
  93. /**
  94. * @return EncryptionConfig
  95. */
  96. public function getEncryptionConfig()
  97. {
  98. return $this->encryptionConfig;
  99. }
  100. /**
  101. * Output only. The time when the backup will be deleted.
  102. *
  103. * @param string $expireTime
  104. */
  105. public function setExpireTime($expireTime)
  106. {
  107. $this->expireTime = $expireTime;
  108. }
  109. /**
  110. * @return string
  111. */
  112. public function getExpireTime()
  113. {
  114. return $this->expireTime;
  115. }
  116. /**
  117. * Immutable. The relative resource name of the backup, in the following form:
  118. * `projects/{project_number}/locations/{location_id}/instances/{instance_id}/
  119. * backups/{backup}`
  120. *
  121. * @param string $name
  122. */
  123. public function setName($name)
  124. {
  125. $this->name = $name;
  126. }
  127. /**
  128. * @return string
  129. */
  130. public function getName()
  131. {
  132. return $this->name;
  133. }
  134. /**
  135. * Output only. The current state of the backup.
  136. *
  137. * Accepted values: STATE_UNSPECIFIED, CREATING, DELETING, ACTIVE, FAILED
  138. *
  139. * @param self::STATE_* $state
  140. */
  141. public function setState($state)
  142. {
  143. $this->state = $state;
  144. }
  145. /**
  146. * @return self::STATE_*
  147. */
  148. public function getState()
  149. {
  150. return $this->state;
  151. }
  152. }
  153. // Adding a class alias for backwards compatibility with the previous class name.
  154. class_alias(InstanceBackup::class, 'Google_Service_Looker_InstanceBackup');