class Google::Apis::SqladminV1beta4::DemoteMasterContext
Database
instance demote primary instance context.
Attributes
This is always `sql#demoteMasterContext`. Corresponds to the JSON property `kind` @return [String]
The name of the instance which will act as on-premises primary instance in the replication setup. Corresponds to the JSON property `masterInstanceName` @return [String]
Read-replica configuration for connecting to the on-premises primary instance. Corresponds to the JSON property `replicaConfiguration` @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
Flag
to skip replication setup on the instance. Corresponds to the JSON property `skipReplicationSetup` @return [Boolean]
Flag
to skip replication setup on the instance. Corresponds to the JSON property `skipReplicationSetup` @return [Boolean]
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. Corresponds to the JSON property `verifyGtidConsistency` @return [Boolean]
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. Corresponds to the JSON property `verifyGtidConsistency` @return [Boolean]
Public Class Methods
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 999 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 1004 def update!(**args) @kind = args[:kind] if args.key?(:kind) @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name) @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration) @skip_replication_setup = args[:skip_replication_setup] if args.key?(:skip_replication_setup) @verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency) end