# Google Cloud Net App V1 Client - Class RestoreParameters (1.12.0)

1.12.0 (latest) 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.4.0 1.3.1 1.2.1 1.1.1 1.0.1 0.3.1 0.2.6 0.1.1 Reference documentation and code samples for the Google Cloud Net App V1 Client class RestoreParameters.

The RestoreParameters if volume is created from a snapshot or backup.

Generated from protobuf message `google.cloud.netapp.v1.RestoreParameters`

## Namespace

Google \\ Cloud \\ NetApp \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_snapshot` | `string` Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot} |
| `↳ source_backup` | `string` Full name of the backup resource. Format for standard backup: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id} Format for BackupDR backup: projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup} |

### getSourceSnapshot

Full name of the snapshot resource.

Format:
projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

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

### hasSourceSnapshot

### setSourceSnapshot

Full name of the snapshot resource.

Format:
projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getSourceBackup

Full name of the backup resource.

Format for standard backup:
projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
Format for BackupDR backup:
projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}

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

### hasSourceBackup

### setSourceBackup

Full name of the backup resource.

Format for standard backup:
projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
Format for BackupDR backup:
projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getSource

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