# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::VolumeDataRestorePolicyOverride (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::VolumeDataRestorePolicyOverride.

Defines an override to apply a VolumeDataRestorePolicy for scoped resources.

## 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.

### #selected_pvcs

    def selected_pvcs() -> ::Google::Cloud::GkeBackup::V1::NamespacedNames

**Returns**

- ([::Google::Cloud::GkeBackup::V1::NamespacedNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-NamespacedNames)) --- A list of PVCs to apply the policy override to.

### #selected_pvcs=

    def selected_pvcs=(value) -> ::Google::Cloud::GkeBackup::V1::NamespacedNames

**Parameter**

- **value** ([::Google::Cloud::GkeBackup::V1::NamespacedNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-NamespacedNames)) --- A list of PVCs to apply the policy override to.
**Returns**

- ([::Google::Cloud::GkeBackup::V1::NamespacedNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-NamespacedNames)) --- A list of PVCs to apply the policy override to.