# Google Cloud Gke Backup V1 Client - Class VolumeDataRestorePolicyOverride (1.3.3)

1.3.3 (latest) 1.3.2 1.2.1 1.0.3 0.8.1 0.7.2 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class VolumeDataRestorePolicyOverride.

Defines an override to apply a VolumeDataRestorePolicy for scoped resources.

Generated from protobuf message `google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride`

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ policy` | `int` Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope. |
| `↳ selected_pvcs` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.NamespacedNames` A list of PVCs to apply the policy override to. |

### getPolicy

Required. The VolumeDataRestorePolicy to apply when restoring volumes in
scope.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [VolumeDataRestorePolicy](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RestoreConfig.VolumeDataRestorePolicy). |

### setPolicy

Required. The VolumeDataRestorePolicy to apply when restoring volumes in
scope.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [VolumeDataRestorePolicy](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RestoreConfig.VolumeDataRestorePolicy). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSelectedPvcs

A list of PVCs to apply the policy override to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.NamespacedNames|null` |   |

### hasSelectedPvcs

### setSelectedPvcs

A list of PVCs to apply the policy override to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.NamespacedNames` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getScope

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |