Class: Google::Apis::SqladminV1::FailoverContext

Inherits:
Object
  • Object
show all
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 instance failover context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FailoverContext

Returns a new instance of FailoverContext.



2332
2333
2334
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2332

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

Instance Attribute Details

#kindString

This is always sql#failoverContext. Corresponds to the JSON property kind

Returns:

  • (String)


2324
2325
2326
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2324

def kind
  @kind
end

#settings_versionFixnum

The current settings version of this instance. Request will be rejected if this version doesn't match the current settings version. Corresponds to the JSON property settingsVersion

Returns:

  • (Fixnum)


2330
2331
2332
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2330

def settings_version
  @settings_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2337
2338
2339
2340
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2337

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