Class: Google::Apis::SqladminV1beta4::DemoteMasterContext
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SqladminV1beta4::DemoteMasterContext
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta4/classes.rb,
 generated/google/apis/sqladmin_v1beta4/representations.rb,
 generated/google/apis/sqladmin_v1beta4/representations.rb
Overview
Database instance demote master context.
Instance Attribute Summary collapse
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is always sql#demoteMasterContext. 
- 
  
    
      #master_instance_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the instance which will act as on-premises master in the replication setup. 
- 
  
    
      #replica_configuration  ⇒ Google::Apis::SqladminV1beta4::DemoteMasterConfiguration 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Read-replica configuration for connecting to the on-premises master. 
- 
  
    
      #verify_gtid_consistency  ⇒ Boolean 
    
    
      (also: #verify_gtid_consistency?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Verify GTID consistency for demote operation. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ DemoteMasterContext 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of DemoteMasterContext. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DemoteMasterContext
Returns a new instance of DemoteMasterContext
| 699 700 701 | # File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 699 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#kind ⇒ String
This is always sql#demoteMasterContext.
Corresponds to the JSON property kind
| 674 675 676 | # File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 674 def kind @kind end | 
#master_instance_name ⇒ String
The name of the instance which will act as on-premises master in the
replication setup.
Corresponds to the JSON property masterInstanceName
| 680 681 682 | # File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 680 def master_instance_name @master_instance_name end | 
#replica_configuration ⇒ Google::Apis::SqladminV1beta4::DemoteMasterConfiguration
Read-replica configuration for connecting to the on-premises master.
Corresponds to the JSON property replicaConfiguration
| 685 686 687 | # File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 685 def replica_configuration @replica_configuration end | 
#verify_gtid_consistency ⇒ Boolean Also known as: verify_gtid_consistency?
Verify GTID consistency for demote operation. Default value: True. Second
Generation instances only. Setting this flag to false enables you to bypass
GTID consistency check between on-premises master 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
| 696 697 698 | # File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 696 def verify_gtid_consistency @verify_gtid_consistency end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 704 705 706 707 708 709 | # File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 704 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) @verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency) end |