Enum RestoreConfig.ClusterResourceConflictPolicy (0.30.0)

public enum RestoreConfig.ClusterResourceConflictPolicy extends Enum<RestoreConfig.ClusterResourceConflictPolicy> implements ProtocolMessageEnum

Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster.

Protobuf enum google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy

Implements

ProtocolMessageEnum

Static Fields

NameDescription
CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED

Unspecified. Only allowed if no cluster-scoped resources will be restored.

CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED = 0;

CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED_VALUE

Unspecified. Only allowed if no cluster-scoped resources will be restored.

CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED = 0;

UNRECOGNIZED
USE_BACKUP_VERSION

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.

USE_BACKUP_VERSION = 2;

USE_BACKUP_VERSION_VALUE

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.

USE_BACKUP_VERSION = 2;

USE_EXISTING_VERSION

Do not attempt to restore the conflicting resource.

USE_EXISTING_VERSION = 1;

USE_EXISTING_VERSION_VALUE

Do not attempt to restore the conflicting resource.

USE_EXISTING_VERSION = 1;

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()