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

Describes the disk which will be migrated from the source environment.

The source disk has to be unattached.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ aws_source_disk_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDiskDetails` Details of the unattached AWS source disk. |
| `↳ name` | `string` Output only. Identifier. The identifier of the DiskMigrationJob. |
| `↳ target_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DiskMigrationJobTargetDetails` Required. Details of the target Disk in Compute Engine. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the DiskMigrationJob resource was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The last time the DiskMigrationJob resource was updated. |
| `↳ state` | `int` Output only. State of the DiskMigrationJob. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` Output only. Provides details on the errors that led to the disk migration job's state in case of an error. |
| `↳ steps` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DiskMigrationStep>` Output only. The disk migration steps list representing its progress. |

### getAwsSourceDiskDetails

Details of the unattached AWS source disk.

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

### hasAwsSourceDiskDetails

### setAwsSourceDiskDetails

Details of the unattached AWS source disk.

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

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

### getName

Output only. Identifier. The identifier of the DiskMigrationJob.

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

### setName

Output only. Identifier. The identifier of the DiskMigrationJob.

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

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

### getTargetDetails

Required. Details of the target Disk in Compute Engine.

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

### hasTargetDetails

### clearTargetDetails

### setTargetDetails

Required. Details of the target Disk in Compute Engine.

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

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

### getCreateTime

Output only. The time the DiskMigrationJob resource was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time the DiskMigrationJob resource was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The last time the DiskMigrationJob resource was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The last time the DiskMigrationJob resource was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getState

Output only. State of the DiskMigrationJob.

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

### setState

Output only. State of the DiskMigrationJob.

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

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

### getErrors

Output only. Provides details on the errors that led to the disk migration
job's state in case of an error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |   |

### setErrors

Output only. Provides details on the errors that led to the disk migration
job's state in case of an error.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |

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

### getSteps

Output only. The disk migration steps list representing its progress.

| **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.DiskMigrationStep>` |   |

### setSteps

Output only. The disk migration steps list representing its progress.

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

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

### getSourceDiskDetails

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