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

The target details of the image resource that will be created by the import
job.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ os_adaptation_parameters` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ImageImportOsAdaptationParameters` Optional. Use to set the parameters relevant for the OS adaptation process. |
| `↳ data_disk_image_import` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.DataDiskImageImport` Optional. Use to skip OS adaptation process. |
| `↳ image_name` | `string` Required. The name of the image to be created. |
| `↳ target_project` | `string` Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created. |
| `↳ description` | `string` Optional. An optional description of the image. |
| `↳ family_name` | `string` Optional. The name of the image family to which the new image belongs. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. A map of labels to associate with the image. |
| `↳ additional_licenses` | `string[]` Optional. Additional licenses to assign to the image. Format: <https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME> Or <https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME> |
| `↳ single_region_storage` | `bool` Optional. Set to true to set the image storageLocations to the single region of the import job. When false, the closest multi-region is selected. |
| `↳ encryption` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.Encryption` Immutable. The encryption to apply to the image. |

### getOsAdaptationParameters

Optional. Use to set the parameters relevant for the OS adaptation
process.

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

### hasOsAdaptationParameters

### setOsAdaptationParameters

Optional. Use to set the parameters relevant for the OS adaptation
process.

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

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

### getDataDiskImageImport

Optional. Use to skip OS adaptation process.

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

### hasDataDiskImageImport

### setDataDiskImageImport

Optional. Use to skip OS adaptation process.

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

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

### getImageName

Required. The name of the image to be created.

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

### setImageName

Required. The name of the image to be created.

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

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

### getTargetProject

Required. Reference to the TargetProject resource that represents the
target project in which the imported image will be created.

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

### setTargetProject

Required. Reference to the TargetProject resource that represents the
target project in which the imported image will be created.

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

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

### getDescription

Optional. An optional description of the image.

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

### setDescription

Optional. An optional description of the image.

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

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

### getFamilyName

Optional. The name of the image family to which the new image belongs.

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

### setFamilyName

Optional. The name of the image family to which the new image belongs.

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

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

### getLabels

Optional. A map of labels to associate with the image.

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

### setLabels

Optional. A map of labels to associate with the image.

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

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

### getAdditionalLicenses

Optional. Additional licenses to assign to the image.

Format:
<https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME>
Or
<https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME>

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

### setAdditionalLicenses

Optional. Additional licenses to assign to the image.

Format:
<https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME>
Or
<https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME>

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

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

### getSingleRegionStorage

Optional. Set to true to set the image storageLocations to the single
region of the import job. When false, the closest multi-region is selected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSingleRegionStorage

Optional. Set to true to set the image storageLocations to the single
region of the import job. When false, the closest multi-region is selected.

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

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

### getEncryption

Immutable. The encryption to apply to the image.

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

### hasEncryption

### clearEncryption

### setEncryption

Immutable. The encryption to apply to the image.

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

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

### getOsAdaptationConfig

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