Class: Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest

Inherits:
Object
  • Object
show all
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 demote master request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstancesDemoteMasterRequest

Returns a new instance of InstancesDemoteMasterRequest



1165
1166
1167
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1165

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#demote_master_contextGoogle::Apis::SqladminV1beta4::DemoteMasterContext

Database instance demote master context. Corresponds to the JSON property demoteMasterContext



1163
1164
1165
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1163

def demote_master_context
  @demote_master_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1170
1171
1172
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1170

def update!(**args)
  @demote_master_context = args[:demote_master_context] if args.key?(:demote_master_context)
end