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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb

Overview

Database demote primary instance request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstancesDemoteMasterRequest

Returns a new instance of InstancesDemoteMasterRequest.



2362
2363
2364
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2362

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

Instance Attribute Details

#demote_master_contextGoogle::Apis::SqladminV1beta4::DemoteMasterContext

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



2360
2361
2362
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2360

def demote_master_context
  @demote_master_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2367
2368
2369
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2367

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