public static enum RestoreConfig.VolumeDataRestorePolicy extends Enum<RestoreConfig.VolumeDataRestorePolicy> implements com.google.protobuf.ProtocolMessageEnum
Defines how volume data should be restored.Protobuf enum
google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy| Enum Constant and Description |
|---|
NO_VOLUME_DATA_RESTORATION
For each PVC to be restored, create PVC without any particular
action to restore data.
|
RESTORE_VOLUME_DATA_FROM_BACKUP
For each PVC to be restored, create a new underlying volume and PV
from the corresponding VolumeBackup contained within the Backup.
|
REUSE_VOLUME_HANDLE_FROM_BACKUP
For each PVC to be restored, attempt to reuse the original PV contained
in the Backup (with its original underlying volume).
|
UNRECOGNIZED |
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED
Unspecified (illegal).
|
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_VOLUME_DATA_RESTORATION_VALUE
For each PVC to be restored, create PVC without any particular
action to restore data.
|
static int |
RESTORE_VOLUME_DATA_FROM_BACKUP_VALUE
For each PVC to be restored, create a new underlying volume and PV
from the corresponding VolumeBackup contained within the Backup.
|
static int |
REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUE
For each PVC to be restored, attempt to reuse the original PV contained
in the Backup (with its original underlying volume).
|
static int |
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUE
Unspecified (illegal).
|
| Modifier and Type | Method and Description |
|---|---|
static RestoreConfig.VolumeDataRestorePolicy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<RestoreConfig.VolumeDataRestorePolicy> |
internalGetValueMap() |
static RestoreConfig.VolumeDataRestorePolicy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RestoreConfig.VolumeDataRestorePolicy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RestoreConfig.VolumeDataRestorePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestoreConfig.VolumeDataRestorePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestoreConfig.VolumeDataRestorePolicy VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED
Unspecified (illegal).
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;public static final RestoreConfig.VolumeDataRestorePolicy RESTORE_VOLUME_DATA_FROM_BACKUP
For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.
RESTORE_VOLUME_DATA_FROM_BACKUP = 1;public static final RestoreConfig.VolumeDataRestorePolicy REUSE_VOLUME_HANDLE_FROM_BACKUP
For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). This option is likely only usable when restoring a workload to its original cluster.
REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;public static final RestoreConfig.VolumeDataRestorePolicy NO_VOLUME_DATA_RESTORATION
For each PVC to be restored, create PVC without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs.
NO_VOLUME_DATA_RESTORATION = 3;public static final RestoreConfig.VolumeDataRestorePolicy UNRECOGNIZED
public static final int VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUE
Unspecified (illegal).
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;public static final int RESTORE_VOLUME_DATA_FROM_BACKUP_VALUE
For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.
RESTORE_VOLUME_DATA_FROM_BACKUP = 1;public static final int REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUE
For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). This option is likely only usable when restoring a workload to its original cluster.
REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;public static final int NO_VOLUME_DATA_RESTORATION_VALUE
For each PVC to be restored, create PVC without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs.
NO_VOLUME_DATA_RESTORATION = 3;public static RestoreConfig.VolumeDataRestorePolicy[] values()
for (RestoreConfig.VolumeDataRestorePolicy c : RestoreConfig.VolumeDataRestorePolicy.values()) System.out.println(c);
public static RestoreConfig.VolumeDataRestorePolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static RestoreConfig.VolumeDataRestorePolicy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RestoreConfig.VolumeDataRestorePolicy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RestoreConfig.VolumeDataRestorePolicy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RestoreConfig.VolumeDataRestorePolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.