Class: Google::Apis::SqladminV1beta4::FailoverContext

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 instance failover context.

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) ⇒ FailoverContext

Returns a new instance of FailoverContext



945
946
947
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 945

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


937
938
939
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 937

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)


943
944
945
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 943

def settings_version
  @settings_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



950
951
952
953
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 950

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