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

ImageImport describes the configuration of the image import to run.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cloud_storage_uri` | `string` Immutable. The path to the Cloud Storage file from which the image should be imported. |
| `↳ disk_image_target_defaults` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DiskImageTargetDetails` Immutable. Target details for importing a disk image, will be used by ImageImportJob. |
| `↳ machine_image_target_defaults` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.MachineImageTargetDetails` Immutable. Target details for importing a machine image, will be used by ImageImportJob. |
| `↳ name` | `string` Output only. The resource path of the ImageImport. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the image import was created. |
| `↳ recent_image_import_jobs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ImageImportJob>` Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs. |
| `↳ encryption` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.Encryption` Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine. |

### getCloudStorageUri

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

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

### hasCloudStorageUri

### setCloudStorageUri

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

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

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

### getDiskImageTargetDefaults

Immutable. Target details for importing a disk image, will be used by
ImageImportJob.

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

### hasDiskImageTargetDefaults

### setDiskImageTargetDefaults

Immutable. Target details for importing a disk image, will be used by
ImageImportJob.

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

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

### getMachineImageTargetDefaults

Immutable. Target details for importing a machine image, will be used by
ImageImportJob.

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

### hasMachineImageTargetDefaults

### setMachineImageTargetDefaults

Immutable. Target details for importing a machine image, will be used by
ImageImportJob.

| **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 ImageImport.

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

### setName

Output only. The resource path of the ImageImport.

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

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

### getCreateTime

Output only. The time the image import was created.

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

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

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

### getRecentImageImportJobs

Output only. The result of the most recent runs for this ImageImport. All
jobs for this ImageImport can be listed via ListImageImportJobs.

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

### setRecentImageImportJobs

Output only. The result of the most recent runs for this ImageImport. All
jobs for this ImageImport can be listed via ListImageImportJobs.

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

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

### getEncryption

Immutable. The encryption details used by the image import process during
the image adaptation for Compute Engine.

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

### hasEncryption

### clearEncryption

### setEncryption

Immutable. The encryption details used by the image import process during
the image adaptation for Compute Engine.

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

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

### getSource

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

### getTargetDefaults

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