Cloud SQL Admin V1 API - Class Google::Cloud::Sql::V1::DemoteMasterContext (v0.1.0)

Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::DemoteMasterContext.

Database instance demote primary instance context.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#kind

def kind() -> ::String
Returns
  • (::String) — This is always sql#demoteMasterContext.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — This is always sql#demoteMasterContext.
Returns
  • (::String) — This is always sql#demoteMasterContext.

#master_instance_name

def master_instance_name() -> ::String
Returns
  • (::String) — The name of the instance which will act as on-premises primary instance in the replication setup.

#master_instance_name=

def master_instance_name=(value) -> ::String
Parameter
  • value (::String) — The name of the instance which will act as on-premises primary instance in the replication setup.
Returns
  • (::String) — The name of the instance which will act as on-premises primary instance in the replication setup.

#replica_configuration

def replica_configuration() -> ::Google::Cloud::Sql::V1::DemoteMasterConfiguration
Returns

#replica_configuration=

def replica_configuration=(value) -> ::Google::Cloud::Sql::V1::DemoteMasterConfiguration
Parameter
Returns

#skip_replication_setup

def skip_replication_setup() -> ::Boolean
Returns
  • (::Boolean) — Flag to skip replication setup on the instance.

#skip_replication_setup=

def skip_replication_setup=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Flag to skip replication setup on the instance.
Returns
  • (::Boolean) — Flag to skip replication setup on the instance.

#verify_gtid_consistency

def verify_gtid_consistency() -> ::Google::Protobuf::BoolValue
Returns
  • (::Google::Protobuf::BoolValue) — Verify the GTID consistency for demote operation. Default value: True. Setting this flag to false enables you to bypass the GTID consistency check between on-premises primary instance and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.

#verify_gtid_consistency=

def verify_gtid_consistency=(value) -> ::Google::Protobuf::BoolValue
Parameter
  • value (::Google::Protobuf::BoolValue) — Verify the GTID consistency for demote operation. Default value: True. Setting this flag to false enables you to bypass the GTID consistency check between on-premises primary instance and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
Returns
  • (::Google::Protobuf::BoolValue) — Verify the GTID consistency for demote operation. Default value: True. Setting this flag to false enables you to bypass the GTID consistency check between on-premises primary instance and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.