Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class VolumeDataRestorePolicy.
Defines how volume data should be restored.
Protobuf type google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy
Namespace
Google \ Cloud \ GkeBackup \ V1 \ RestoreConfig
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED
Value: 0
Unspecified (illegal).
Generated from protobuf enum VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;
RESTORE_VOLUME_DATA_FROM_BACKUP
Value: 1
For each PVC to be restored, create a new underlying volume and PV
from the corresponding VolumeBackup contained within the Backup.
Generated from protobuf enum RESTORE_VOLUME_DATA_FROM_BACKUP = 1;
REUSE_VOLUME_HANDLE_FROM_BACKUP
Value: 2
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.
Generated from protobuf enum REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;
NO_VOLUME_DATA_RESTORATION
Value: 3
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.
Generated from protobuf enum NO_VOLUME_DATA_RESTORATION = 3;
[[["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 VolumeDataRestorePolicy (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-gke-backup/latest/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [1.2.0](/php/docs/reference/cloud-gke-backup/1.2.0/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [1.0.3](/php/docs/reference/cloud-gke-backup/1.0.3/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [0.8.1](/php/docs/reference/cloud-gke-backup/0.8.1/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [0.7.2](/php/docs/reference/cloud-gke-backup/0.7.2/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [0.6.0](/php/docs/reference/cloud-gke-backup/0.6.0/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [0.5.3](/php/docs/reference/cloud-gke-backup/0.5.3/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [0.4.0](/php/docs/reference/cloud-gke-backup/0.4.0/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [0.3.1](/php/docs/reference/cloud-gke-backup/0.3.1/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [0.2.0](/php/docs/reference/cloud-gke-backup/0.2.0/V1.RestoreConfig.VolumeDataRestorePolicy)\n- [0.1.7](/php/docs/reference/cloud-gke-backup/0.1.7/V1.RestoreConfig.VolumeDataRestorePolicy) \nReference documentation and code samples for the Google Cloud Gke Backup V1 Client class VolumeDataRestorePolicy.\n\nDefines how volume data should be restored.\n\nProtobuf type `google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy`\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### VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED\n\n Value: 0\n\nUnspecified (illegal).\n\nGenerated from protobuf enum `VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;`\n\n### RESTORE_VOLUME_DATA_FROM_BACKUP\n\n Value: 1\n\nFor each PVC to be restored, create a new underlying volume and PV\nfrom the corresponding VolumeBackup contained within the Backup.\n\nGenerated from protobuf enum `RESTORE_VOLUME_DATA_FROM_BACKUP = 1;`\n\n### REUSE_VOLUME_HANDLE_FROM_BACKUP\n\n Value: 2\n\nFor each PVC to be restored, attempt to reuse the original PV contained\nin the Backup (with its original underlying volume). This option\nis likely only usable when restoring a workload to its original cluster.\n\nGenerated from protobuf enum `REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;`\n\n### NO_VOLUME_DATA_RESTORATION\n\n Value: 3\n\nFor each PVC to be restored, create PVC without any particular\naction to restore data. In this case, the normal Kubernetes provisioning\nlogic would kick in, and this would likely result in either dynamically\nprovisioning blank PVs or binding to statically provisioned PVs.\n\nGenerated from protobuf enum `NO_VOLUME_DATA_RESTORATION = 3;`"]]