Class: Google::Cloud::Redis::V1::FailoverInstanceRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/redis/v1/doc/google/cloud/redis/v1/cloud_redis.rb

Overview

Request for Failover.

Defined Under Namespace

Modules: DataProtectionMode

Instance Attribute Summary collapse

Instance Attribute Details

#data_protection_modeGoogle::Cloud::Redis::V1::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:



324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
# File 'lib/google/cloud/redis/v1/doc/google/cloud/redis/v1/cloud_redis.rb', line 324

class FailoverInstanceRequest
  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 master 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

#nameString

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.



324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
# File 'lib/google/cloud/redis/v1/doc/google/cloud/redis/v1/cloud_redis.rb', line 324

class FailoverInstanceRequest
  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 master 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