Class: Google::Apis::RedisV1::FailoverInstanceRequest

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

Overview

Request for Failover.

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

Returns a new instance of FailoverInstanceRequest.



73
74
75
# File 'generated/google/apis/redis_v1/classes.rb', line 73

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

Instance Attribute Details

#data_protection_modeString

Optional. Available data protection modes that the user can choose. If it's unspecified, data protection mode will be LIMITED_DATA_LOSS by default. Corresponds to the JSON property dataProtectionMode

Returns:

  • (String)


71
72
73
# File 'generated/google/apis/redis_v1/classes.rb', line 71

def data_protection_mode
  @data_protection_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



78
79
80
# File 'generated/google/apis/redis_v1/classes.rb', line 78

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