# Google Cloud Vm Migration V1 Client - Class PersistentDisk (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class PersistentDisk.

Details of a created Persistent Disk.

Generated from protobuf message `google.cloud.vmmigration.v1.PersistentDisk`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_disk_number` | `int` The ordinal number of the source VM disk. |
| `↳ disk_uri` | `string` The URI of the Persistent Disk. |

### getSourceDiskNumber

The ordinal number of the source VM disk.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setSourceDiskNumber

The ordinal number of the source VM disk.

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

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

### getDiskUri

The URI of the Persistent Disk.

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

### setDiskUri

The URI of the Persistent Disk.

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

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