# Google Cloud Gke Backup V1 Client - Class VolumeDataRestorePolicyBinding (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 VolumeDataRestorePolicyBinding.

Binds resources in the scope to the given VolumeDataRestorePolicy.

Generated from protobuf message `google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding`

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1 \\ RestoreConfig

## 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. |
| `↳ volume_type` | `int` The volume type, as determined by the PVC's bound PV, to apply the policy 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` |   |

### getVolumeType

The volume type, as determined by the PVC's bound PV,
to apply the policy to.

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

### hasVolumeType

### setVolumeType

The volume type, as determined by the PVC's bound PV,
to apply the policy to.

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

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

### getScope

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