com.pulumi.googlenative.gkebackup.v1.enums.RestoreConfigClusterResourceConflictPolicy Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.gkebackup.v1.enums;
import com.pulumi.core.annotations.EnumType;
import java.lang.String;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster. This MUST be set to a value other than CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if cluster_resource_restore_scope is not empty.
*
*/
@EnumType
public enum RestoreConfigClusterResourceConflictPolicy {
/**
* Unspecified. Only allowed if no cluster-scoped resources will be restored.
*
*/
ClusterResourceConflictPolicyUnspecified("CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED"),
/**
* Do not attempt to restore the conflicting resource.
*
*/
UseExistingVersion("USE_EXISTING_VERSION"),
/**
* Delete the existing version before re-creating it from the Backup. Note that 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.
*
*/
UseBackupVersion("USE_BACKUP_VERSION");
private final String value;
RestoreConfigClusterResourceConflictPolicy(String value) {
this.value = Objects.requireNonNull(value);
}
@EnumType.Converter
public String getValue() {
return this.value;
}
@Override
public String toString() {
return new StringJoiner(", ", "RestoreConfigClusterResourceConflictPolicy[", "]")
.add("value='" + this.value + "'")
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy