Skip to content

Commit 707c54a

Browse files
1 parent 2f74e82 commit 707c54a

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/CloudAlloyDBAdmin/Cluster.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ class Cluster extends \Google\Model
115115
* The cluster is being promoted.
116116
*/
117117
public const STATE_PROMOTING = 'PROMOTING';
118+
/**
119+
* The cluster has entered switchover state. All updates on cluster and its
120+
* associated instances are restricted while the cluster is in this state.
121+
*/
122+
public const STATE_SWITCHOVER = 'SWITCHOVER';
118123
/**
119124
* This is an unknown subscription type. By default, the subscription type is
120125
* STANDARD.
@@ -862,7 +867,7 @@ public function getSslConfig()
862867
* Output only. The current serving state of the cluster.
863868
*
864869
* Accepted values: STATE_UNSPECIFIED, READY, STOPPED, EMPTY, CREATING,
865-
* DELETING, FAILED, BOOTSTRAPPING, MAINTENANCE, PROMOTING
870+
* DELETING, FAILED, BOOTSTRAPPING, MAINTENANCE, PROMOTING, SWITCHOVER
866871
*
867872
* @param self::STATE_* $state
868873
*/

src/CloudAlloyDBAdmin/Instance.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ class Instance extends \Google\Collection
102102
* The instance is being promoted.
103103
*/
104104
public const STATE_PROMOTING = 'PROMOTING';
105+
/**
106+
* The instance has entered switchover state. All updates on instance are
107+
* restricted while the instance is in this state.
108+
*/
109+
public const STATE_SWITCHOVER = 'SWITCHOVER';
105110
protected $collection_key = 'outboundPublicIpAddresses';
106111
/**
107112
* Optional. Specifies whether an instance needs to spin up. Once the instance
@@ -780,7 +785,7 @@ public function getSatisfiesPzs()
780785
* Output only. The current serving state of the instance.
781786
*
782787
* Accepted values: STATE_UNSPECIFIED, READY, STOPPED, CREATING, DELETING,
783-
* MAINTENANCE, FAILED, BOOTSTRAPPING, PROMOTING
788+
* MAINTENANCE, FAILED, BOOTSTRAPPING, PROMOTING, SWITCHOVER
784789
*
785790
* @param self::STATE_* $state
786791
*/

0 commit comments

Comments
 (0)