Class: Google::Cloud::Redis::V1beta1::FailoverInstanceRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb

Overview

Request for Failover.

Defined Under Namespace

Modules: DataProtectionMode

Instance Attribute Summary collapse

Instance Attribute Details

#data_protection_mode::Google::Cloud::Redis::V1beta1::FailoverInstanceRequest::DataProtectionMode

Returns Optional. Available data protection modes that the user can choose. If it's unspecified, data protection mode will be LIMITED_DATA_LOSS by default.

Returns:



692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
# File 'proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb', line 692

class FailoverInstanceRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies different modes of operation in relation to the data retention.
  module DataProtectionMode
    # Defaults to LIMITED_DATA_LOSS if a data protection mode is not
    # specified.
    DATA_PROTECTION_MODE_UNSPECIFIED = 0

    # Instance failover will be protected with data loss control. More
    # specifically, the failover will only be performed if the current
    # replication offset diff between primary and replica is under a certain
    # threshold.
    LIMITED_DATA_LOSS = 1

    # Instance failover will be performed without data loss control.
    FORCE_DATA_LOSS = 2
  end
end

#name::String

Returns Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

Returns:

  • (::String)

    Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.



692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
# File 'proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb', line 692

class FailoverInstanceRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies different modes of operation in relation to the data retention.
  module DataProtectionMode
    # Defaults to LIMITED_DATA_LOSS if a data protection mode is not
    # specified.
    DATA_PROTECTION_MODE_UNSPECIFIED = 0

    # Instance failover will be protected with data loss control. More
    # specifically, the failover will only be performed if the current
    # replication offset diff between primary and replica is under a certain
    # threshold.
    LIMITED_DATA_LOSS = 1

    # Instance failover will be performed without data loss control.
    FORCE_DATA_LOSS = 2
  end
end