# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::RestoreConfig::VolumeDataRestorePolicyBinding (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Backup for GKE V1 API class Google::Cloud::GkeBackup::V1::RestoreConfig::VolumeDataRestorePolicyBinding.

Binds resources in the scope to the given VolumeDataRestorePolicy.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #policy

    def policy() -> ::Google::Cloud::GkeBackup::V1::RestoreConfig::VolumeDataRestorePolicy

**Returns**

- ([::Google::Cloud::GkeBackup::V1::RestoreConfig::VolumeDataRestorePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig-VolumeDataRestorePolicy)) --- Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

### #policy=

    def policy=(value) -> ::Google::Cloud::GkeBackup::V1::RestoreConfig::VolumeDataRestorePolicy

**Parameter**

- **value** ([::Google::Cloud::GkeBackup::V1::RestoreConfig::VolumeDataRestorePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig-VolumeDataRestorePolicy)) --- Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.
**Returns**

- ([::Google::Cloud::GkeBackup::V1::RestoreConfig::VolumeDataRestorePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig-VolumeDataRestorePolicy)) --- Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

### #volume_type

    def volume_type() -> ::Google::Cloud::GkeBackup::V1::VolumeTypeEnum::VolumeType

**Returns**

- ([::Google::Cloud::GkeBackup::V1::VolumeTypeEnum::VolumeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-VolumeTypeEnum-VolumeType)) --- The volume type, as determined by the PVC's bound PV, to apply the policy to.

### #volume_type=

    def volume_type=(value) -> ::Google::Cloud::GkeBackup::V1::VolumeTypeEnum::VolumeType

**Parameter**

- **value** ([::Google::Cloud::GkeBackup::V1::VolumeTypeEnum::VolumeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-VolumeTypeEnum-VolumeType)) --- The volume type, as determined by the PVC's bound PV, to apply the policy to.
**Returns**

- ([::Google::Cloud::GkeBackup::V1::VolumeTypeEnum::VolumeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-VolumeTypeEnum-VolumeType)) --- The volume type, as determined by the PVC's bound PV, to apply the policy to.