AutonomousDatabaseStandbySummary.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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\OracleDatabase;
  18. class AutonomousDatabaseStandbySummary extends \Google\Model
  19. {
  20. /**
  21. * Default unspecified value.
  22. */
  23. public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  24. /**
  25. * Indicates that the Autonomous Database is in provisioning state.
  26. */
  27. public const STATE_PROVISIONING = 'PROVISIONING';
  28. /**
  29. * Indicates that the Autonomous Database is in available state.
  30. */
  31. public const STATE_AVAILABLE = 'AVAILABLE';
  32. /**
  33. * Indicates that the Autonomous Database is in stopping state.
  34. */
  35. public const STATE_STOPPING = 'STOPPING';
  36. /**
  37. * Indicates that the Autonomous Database is in stopped state.
  38. */
  39. public const STATE_STOPPED = 'STOPPED';
  40. /**
  41. * Indicates that the Autonomous Database is in starting state.
  42. */
  43. public const STATE_STARTING = 'STARTING';
  44. /**
  45. * Indicates that the Autonomous Database is in terminating state.
  46. */
  47. public const STATE_TERMINATING = 'TERMINATING';
  48. /**
  49. * Indicates that the Autonomous Database is in terminated state.
  50. */
  51. public const STATE_TERMINATED = 'TERMINATED';
  52. /**
  53. * Indicates that the Autonomous Database is in unavailable state.
  54. */
  55. public const STATE_UNAVAILABLE = 'UNAVAILABLE';
  56. /**
  57. * Indicates that the Autonomous Database restore is in progress.
  58. */
  59. public const STATE_RESTORE_IN_PROGRESS = 'RESTORE_IN_PROGRESS';
  60. /**
  61. * Indicates that the Autonomous Database failed to restore.
  62. */
  63. public const STATE_RESTORE_FAILED = 'RESTORE_FAILED';
  64. /**
  65. * Indicates that the Autonomous Database backup is in progress.
  66. */
  67. public const STATE_BACKUP_IN_PROGRESS = 'BACKUP_IN_PROGRESS';
  68. /**
  69. * Indicates that the Autonomous Database scale is in progress.
  70. */
  71. public const STATE_SCALE_IN_PROGRESS = 'SCALE_IN_PROGRESS';
  72. /**
  73. * Indicates that the Autonomous Database is available but needs attention
  74. * state.
  75. */
  76. public const STATE_AVAILABLE_NEEDS_ATTENTION = 'AVAILABLE_NEEDS_ATTENTION';
  77. /**
  78. * Indicates that the Autonomous Database is in updating state.
  79. */
  80. public const STATE_UPDATING = 'UPDATING';
  81. /**
  82. * Indicates that the Autonomous Database's maintenance is in progress state.
  83. */
  84. public const STATE_MAINTENANCE_IN_PROGRESS = 'MAINTENANCE_IN_PROGRESS';
  85. /**
  86. * Indicates that the Autonomous Database is in restarting state.
  87. */
  88. public const STATE_RESTARTING = 'RESTARTING';
  89. /**
  90. * Indicates that the Autonomous Database is in recreating state.
  91. */
  92. public const STATE_RECREATING = 'RECREATING';
  93. /**
  94. * Indicates that the Autonomous Database's role change is in progress state.
  95. */
  96. public const STATE_ROLE_CHANGE_IN_PROGRESS = 'ROLE_CHANGE_IN_PROGRESS';
  97. /**
  98. * Indicates that the Autonomous Database is in upgrading state.
  99. */
  100. public const STATE_UPGRADING = 'UPGRADING';
  101. /**
  102. * Indicates that the Autonomous Database is in inaccessible state.
  103. */
  104. public const STATE_INACCESSIBLE = 'INACCESSIBLE';
  105. /**
  106. * Indicates that the Autonomous Database is in standby state.
  107. */
  108. public const STATE_STANDBY = 'STANDBY';
  109. /**
  110. * Output only. The date and time the Autonomous Data Guard role was switched
  111. * for the standby Autonomous Database.
  112. *
  113. * @var string
  114. */
  115. public $dataGuardRoleChangedTime;
  116. /**
  117. * Output only. The date and time the Disaster Recovery role was switched for
  118. * the standby Autonomous Database.
  119. *
  120. * @var string
  121. */
  122. public $disasterRecoveryRoleChangedTime;
  123. /**
  124. * Output only. The amount of time, in seconds, that the data of the standby
  125. * database lags in comparison to the data of the primary database.
  126. *
  127. * @var string
  128. */
  129. public $lagTimeDuration;
  130. /**
  131. * Output only. The additional details about the current lifecycle state of
  132. * the Autonomous Database.
  133. *
  134. * @var string
  135. */
  136. public $lifecycleDetails;
  137. /**
  138. * Output only. The current lifecycle state of the Autonomous Database.
  139. *
  140. * @var string
  141. */
  142. public $state;
  143. /**
  144. * Output only. The date and time the Autonomous Data Guard role was switched
  145. * for the standby Autonomous Database.
  146. *
  147. * @param string $dataGuardRoleChangedTime
  148. */
  149. public function setDataGuardRoleChangedTime($dataGuardRoleChangedTime)
  150. {
  151. $this->dataGuardRoleChangedTime = $dataGuardRoleChangedTime;
  152. }
  153. /**
  154. * @return string
  155. */
  156. public function getDataGuardRoleChangedTime()
  157. {
  158. return $this->dataGuardRoleChangedTime;
  159. }
  160. /**
  161. * Output only. The date and time the Disaster Recovery role was switched for
  162. * the standby Autonomous Database.
  163. *
  164. * @param string $disasterRecoveryRoleChangedTime
  165. */
  166. public function setDisasterRecoveryRoleChangedTime($disasterRecoveryRoleChangedTime)
  167. {
  168. $this->disasterRecoveryRoleChangedTime = $disasterRecoveryRoleChangedTime;
  169. }
  170. /**
  171. * @return string
  172. */
  173. public function getDisasterRecoveryRoleChangedTime()
  174. {
  175. return $this->disasterRecoveryRoleChangedTime;
  176. }
  177. /**
  178. * Output only. The amount of time, in seconds, that the data of the standby
  179. * database lags in comparison to the data of the primary database.
  180. *
  181. * @param string $lagTimeDuration
  182. */
  183. public function setLagTimeDuration($lagTimeDuration)
  184. {
  185. $this->lagTimeDuration = $lagTimeDuration;
  186. }
  187. /**
  188. * @return string
  189. */
  190. public function getLagTimeDuration()
  191. {
  192. return $this->lagTimeDuration;
  193. }
  194. /**
  195. * Output only. The additional details about the current lifecycle state of
  196. * the Autonomous Database.
  197. *
  198. * @param string $lifecycleDetails
  199. */
  200. public function setLifecycleDetails($lifecycleDetails)
  201. {
  202. $this->lifecycleDetails = $lifecycleDetails;
  203. }
  204. /**
  205. * @return string
  206. */
  207. public function getLifecycleDetails()
  208. {
  209. return $this->lifecycleDetails;
  210. }
  211. /**
  212. * Output only. The current lifecycle state of the Autonomous Database.
  213. *
  214. * Accepted values: STATE_UNSPECIFIED, PROVISIONING, AVAILABLE, STOPPING,
  215. * STOPPED, STARTING, TERMINATING, TERMINATED, UNAVAILABLE,
  216. * RESTORE_IN_PROGRESS, RESTORE_FAILED, BACKUP_IN_PROGRESS, SCALE_IN_PROGRESS,
  217. * AVAILABLE_NEEDS_ATTENTION, UPDATING, MAINTENANCE_IN_PROGRESS, RESTARTING,
  218. * RECREATING, ROLE_CHANGE_IN_PROGRESS, UPGRADING, INACCESSIBLE, STANDBY
  219. *
  220. * @param self::STATE_* $state
  221. */
  222. public function setState($state)
  223. {
  224. $this->state = $state;
  225. }
  226. /**
  227. * @return self::STATE_*
  228. */
  229. public function getState()
  230. {
  231. return $this->state;
  232. }
  233. }
  234. // Adding a class alias for backwards compatibility with the previous class name.
  235. class_alias(AutonomousDatabaseStandbySummary::class, 'Google_Service_OracleDatabase_AutonomousDatabaseStandbySummary');