Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::SqlInstancesPromoteReplicaRequest.
Instance promote replica request.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#failover
def failover() -> ::Boolean
Returns
- (::Boolean) — Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
#failover=
def failover=(value) -> ::Boolean
Parameter
- value (::Boolean) — Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
Returns
- (::Boolean) — Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
#instance
def instance() -> ::String
Returns
- (::String) — Cloud SQL read replica instance name.
#instance=
def instance=(value) -> ::String
Parameter
- value (::String) — Cloud SQL read replica instance name.
Returns
- (::String) — Cloud SQL read replica instance name.
#project
def project() -> ::String
Returns
- (::String) — ID of the project that contains the read replica.
#project=
def project=(value) -> ::String
Parameter
- value (::String) — ID of the project that contains the read replica.
Returns
- (::String) — ID of the project that contains the read replica.