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

ComputeEngineDisksTargetDefaults is a collection of details for creating
Persistent Disks in a target Compute Engine project.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ zone` | `string` The zone in which to create the Persistent Disks. |
| `↳ disks_target_defaults` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DisksMigrationDisksTargetDefaults` Details of the disk only migration target. |
| `↳ vm_target_defaults` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DisksMigrationVmTargetDefaults` Details of the VM migration target. |
| `↳ target_project` | `string` The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks. |
| `↳ disks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.PersistentDiskDefaults>` The details of each Persistent Disk to create. |

### getZone

The zone in which to create the Persistent Disks.

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

### hasZone

### setZone

The zone in which to create the Persistent Disks.

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

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

### getDisksTargetDefaults

Details of the disk only migration target.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DisksMigrationDisksTargetDefaults|null` |   |

### hasDisksTargetDefaults

### setDisksTargetDefaults

Details of the disk only migration target.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DisksMigrationDisksTargetDefaults` |

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

### getVmTargetDefaults

Details of the VM migration target.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DisksMigrationVmTargetDefaults|null` |   |

### hasVmTargetDefaults

### setVmTargetDefaults

Details of the VM migration target.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DisksMigrationVmTargetDefaults` |

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

### getTargetProject

The full path of the resource of type TargetProject which represents the
Compute Engine project in which to create the Persistent Disks.

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

### setTargetProject

The full path of the resource of type TargetProject which represents the
Compute Engine project in which to create the Persistent Disks.

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

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

### getDisks

The details of each Persistent Disk to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.PersistentDiskDefaults>` |   |

### setDisks

The details of each Persistent Disk to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.PersistentDiskDefaults>` |

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

### getLocation

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

### getVmTarget

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