Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class ClusterResourceConflictPolicy.
Defines the behavior for handling the situation where cluster-scoped
resources being restored already exist in the target cluster.
Protobuf type google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy
Namespace
Google \ Cloud \ GkeBackup \ V1 \ RestoreConfig
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED
Value: 0
Unspecified. Only allowed if no cluster-scoped resources will be
restored.
Generated from protobuf enum CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED = 0;
USE_EXISTING_VERSION
Value: 1
Do not attempt to restore the conflicting resource.
Generated from protobuf enum USE_EXISTING_VERSION = 1;
USE_BACKUP_VERSION
Value: 2
Delete the existing version before re-creating it from the Backup.
This is a dangerous option which could cause unintentional
data loss if used inappropriately. For example, deleting a CRD will
cause Kubernetes to delete all CRs of that type.
Generated from protobuf enum USE_BACKUP_VERSION = 2;
[[["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-04 UTC."],[],[],null,["# Google Cloud Gke Backup V1 Client - Class ClusterResourceConflictPolicy (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-gke-backup/latest/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [1.2.0](/php/docs/reference/cloud-gke-backup/1.2.0/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [1.0.3](/php/docs/reference/cloud-gke-backup/1.0.3/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [0.8.1](/php/docs/reference/cloud-gke-backup/0.8.1/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [0.7.2](/php/docs/reference/cloud-gke-backup/0.7.2/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [0.6.0](/php/docs/reference/cloud-gke-backup/0.6.0/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [0.5.3](/php/docs/reference/cloud-gke-backup/0.5.3/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [0.4.0](/php/docs/reference/cloud-gke-backup/0.4.0/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [0.3.1](/php/docs/reference/cloud-gke-backup/0.3.1/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [0.2.0](/php/docs/reference/cloud-gke-backup/0.2.0/V1.RestoreConfig.ClusterResourceConflictPolicy)\n- [0.1.7](/php/docs/reference/cloud-gke-backup/0.1.7/V1.RestoreConfig.ClusterResourceConflictPolicy) \nReference documentation and code samples for the Google Cloud Gke Backup V1 Client class ClusterResourceConflictPolicy.\n\nDefines the behavior for handling the situation where cluster-scoped\nresources being restored already exist in the target cluster.\n\nProtobuf type `google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeBackup \\\\ V1 \\\\ RestoreConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED\n\n Value: 0\n\nUnspecified. Only allowed if no cluster-scoped resources will be\nrestored.\n\nGenerated from protobuf enum `CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED = 0;`\n\n### USE_EXISTING_VERSION\n\n Value: 1\n\nDo not attempt to restore the conflicting resource.\n\nGenerated from protobuf enum `USE_EXISTING_VERSION = 1;`\n\n### USE_BACKUP_VERSION\n\n Value: 2\n\nDelete the existing version before re-creating it from the Backup.\n\nThis is a dangerous option which could cause unintentional\ndata loss if used inappropriately. For example, deleting a CRD will\ncause Kubernetes to delete all CRs of that type.\n\nGenerated from protobuf enum `USE_BACKUP_VERSION = 2;`"]]