Class: Google::Apis::SqladminV1::InstancesDemoteMasterRequest
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::InstancesDemoteMasterRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb
Overview
Database demote primary instance request.
Instance Attribute Summary collapse
-
#demote_master_context ⇒ Google::Apis::SqladminV1::DemoteMasterContext
Database instance demote primary instance context.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstancesDemoteMasterRequest
constructor
A new instance of InstancesDemoteMasterRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstancesDemoteMasterRequest
Returns a new instance of InstancesDemoteMasterRequest.
3051 3052 3053 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3051 def initialize(**args) update!(**args) end |
Instance Attribute Details
#demote_master_context ⇒ Google::Apis::SqladminV1::DemoteMasterContext
Database instance demote primary instance context.
Corresponds to the JSON property demoteMasterContext
3049 3050 3051 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3049 def demote_master_context @demote_master_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3056 3057 3058 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3056 def update!(**args) @demote_master_context = args[:demote_master_context] if args.key?(:demote_master_context) end |