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

ImageImportJob describes the progress and result of an image import.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cloud_storage_uri` | `string` Output only. The path to the Cloud Storage file from which the image should be imported. |
| `↳ disk_image_target_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DiskImageTargetDetails` Output only. Target details used to import a disk image. |
| `↳ machine_image_target_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.MachineImageTargetDetails` Output only. Target details used to import a machine image. |
| `↳ name` | `string` Output only. The resource path of the ImageImportJob. |
| `↳ created_resources` | `string[]` Output only. The resource paths of the resources created by the image import job. |
| `↳ state` | `int` Output only. The state of the image import. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the image import was created (as an API call, not when it was actually created in the target). |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the image import was ended. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` Output only. Provides details on the error that led to the image import state in case of an error. |
| `↳ warnings` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.MigrationWarning>` Output only. Warnings that occurred during the image import. |
| `↳ steps` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ImageImportStep>` Output only. The image import steps list representing its progress. |

### getCloudStorageUri

Output only. The path to the Cloud Storage file from which the image
should be imported.

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

### hasCloudStorageUri

### setCloudStorageUri

Output only. The path to the Cloud Storage file from which the image
should be imported.

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

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

### getDiskImageTargetDetails

Output only. Target details used to import a disk image.

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

### hasDiskImageTargetDetails

### setDiskImageTargetDetails

Output only. Target details used to import a disk image.

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

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

### getMachineImageTargetDetails

Output only. Target details used to import a machine image.

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

### hasMachineImageTargetDetails

### setMachineImageTargetDetails

Output only. Target details used to import a machine image.

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

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

### getName

Output only. The resource path of the ImageImportJob.

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

### setName

Output only. The resource path of the ImageImportJob.

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

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

### getCreatedResources

Output only. The resource paths of the resources created by the image
import job.

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

### setCreatedResources

Output only. The resource paths of the resources created by the image
import job.

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

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

### getState

Output only. The state of the image import.

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

### setState

Output only. The state of the image import.

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

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

### getCreateTime

Output only. The time the image import was created (as an API call, not
when it was actually created in the target).

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time the image import was created (as an API call, not
when it was actually created in the target).

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

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

### getEndTime

Output only. The time the image import was ended.

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

### hasEndTime

### clearEndTime

### setEndTime

Output only. The time the image import was ended.

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

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

### getErrors

Output only. Provides details on the error that led to the image import
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 error that led to the image import
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` |   |

### getWarnings

Output only. Warnings that occurred during the image import.

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

### setWarnings

Output only. Warnings that occurred during the image import.

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

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

### getSteps

Output only. The image import 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.ImageImportStep>` |   |

### setSteps

Output only. The image import steps list representing its progress.

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

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

### getSource

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

### getTargetDetails

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