Reference documentation and code samples for the Google Cloud Memorystore for Redis V1beta1 API module Google::Cloud::Redis::V1beta1::FailoverInstanceRequest::DataProtectionMode.
Specifies different modes of operation in relation to the data retention.
Constants
DATA_PROTECTION_MODE_UNSPECIFIED
value: 0 Defaults to LIMITED_DATA_LOSS if a data protection mode is not
specified.
LIMITED_DATA_LOSS
value: 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
value: 2 Instance failover will be performed without data loss control.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Memorystore for Redis V1beta1 API - Module Google::Cloud::Redis::V1beta1::FailoverInstanceRequest::DataProtectionMode (v0.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.17.0 (latest)](/ruby/docs/reference/google-cloud-redis-v1beta1/latest/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.16.1](/ruby/docs/reference/google-cloud-redis-v1beta1/0.16.1/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.15.0](/ruby/docs/reference/google-cloud-redis-v1beta1/0.15.0/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.14.0](/ruby/docs/reference/google-cloud-redis-v1beta1/0.14.0/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.13.2](/ruby/docs/reference/google-cloud-redis-v1beta1/0.13.2/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.12.2](/ruby/docs/reference/google-cloud-redis-v1beta1/0.12.2/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.11.0](/ruby/docs/reference/google-cloud-redis-v1beta1/0.11.0/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.10.1](/ruby/docs/reference/google-cloud-redis-v1beta1/0.10.1/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.9.0](/ruby/docs/reference/google-cloud-redis-v1beta1/0.9.0/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.8.0](/ruby/docs/reference/google-cloud-redis-v1beta1/0.8.0/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.7.0](/ruby/docs/reference/google-cloud-redis-v1beta1/0.7.0/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.6.0](/ruby/docs/reference/google-cloud-redis-v1beta1/0.6.0/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode)\n- [0.5.1](/ruby/docs/reference/google-cloud-redis-v1beta1/0.5.1/Google-Cloud-Redis-V1beta1-FailoverInstanceRequest-DataProtectionMode) \nReference documentation and code samples for the Google Cloud Memorystore for Redis V1beta1 API module Google::Cloud::Redis::V1beta1::FailoverInstanceRequest::DataProtectionMode.\n\nSpecifies different modes of operation in relation to the data retention.\n\nConstants\n---------\n\n### DATA_PROTECTION_MODE_UNSPECIFIED\n\n**value:** 0 \nDefaults to LIMITED_DATA_LOSS if a data protection mode is not\nspecified.\n\n### LIMITED_DATA_LOSS\n\n**value:** 1 \nInstance failover will be protected with data loss control. More\nspecifically, the failover will only be performed if the current\nreplication offset diff between primary and replica is under a certain\nthreshold.\n\n### FORCE_DATA_LOSS\n\n**value:** 2 \nInstance failover will be performed without data loss control."]]