Class FailoverInstanceRequest (2.15.2)

FailoverInstanceRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request for Failover.

Attributes

NameDescription
name str
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.
data_protection_mode google.cloud.redis_v1beta1.types.FailoverInstanceRequest.DataProtectionMode
Optional. Available data protection modes that the user can choose. If it's unspecified, data protection mode will be LIMITED_DATA_LOSS by default.

Classes

DataProtectionMode

DataProtectionMode(value)

Specifies different modes of operation in relation to the data retention.

Values: DATA_PROTECTION_MODE_UNSPECIFIED (0): Defaults to LIMITED_DATA_LOSS if a data protection mode is not specified. LIMITED_DATA_LOSS (1): 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. FORCE_DATA_LOSS (2): Instance failover will be performed without data loss control.