# Google Cloud Vm Migration V1 Client - Class ComputeEngineDisk (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 ComputeEngineDisk.

Compute Engine disk target details.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ disk_id` | `string` Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk. |
| `↳ zone` | `string` Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone} |
| `↳ replica_zones` | `string[]` Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported. |
| `↳ disk_type` | `int` Required. The disk type to use. |

### getDiskId

Optional. Target Compute Engine Disk ID.

This is the resource ID segment of the Compute Engine Disk to create.
In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
"disk1" is the resource ID for the disk.

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

### setDiskId

Optional. Target Compute Engine Disk ID.

This is the resource ID segment of the Compute Engine Disk to create.
In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
"disk1" is the resource ID for the disk.

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

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

### getZone

Required. The Compute Engine zone in which to create the disk. Should be of
the form: projects/{target-project}/locations/{zone}

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

### setZone

Required. The Compute Engine zone in which to create the disk. Should be of
the form: projects/{target-project}/locations/{zone}

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

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

### getReplicaZones

Optional. Replication zones of the regional disk. Should be of the form:
projects/{target-project}/locations/{replica-zone}
Currently only one replica zone is supported.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setReplicaZones

Optional. Replication zones of the regional disk. Should be of the form:
projects/{target-project}/locations/{replica-zone}
Currently only one replica zone is supported.

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

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

### getDiskType

Required. The disk type to use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ComputeEngineDiskType](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ComputeEngineDiskType). |

### setDiskType

Required. The disk type to use.

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

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