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

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

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

## 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. |
| `↳ skip_os_adaptation` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.SkipOsAdaptation` Optional. Use to skip OS adaptation process. |
| `↳ machine_image_name` | `string` Required. The name of the machine image to be created. |
| `↳ target_project` | `string` Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created. |
| `↳ description` | `string` Optional. An optional description of the machine image. |
| `↳ single_region_storage` | `bool` Optional. Set to true to set the machine 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 machine image. If the Image Import resource has an encryption, this field must be set to the same encryption key. |
| `↳ machine_image_parameters_overrides` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.MachineImageParametersOverrides` Optional. Parameters overriding decisions based on the source machine image configurations. |
| `↳ service_account` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ServiceAccount` Optional. The service account to assign to the instance created by the machine image. |
| `↳ additional_licenses` | `string[]` Optional. Additional licenses to assign to the instance created by the machine 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> |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. The labels to apply to the instance created by the machine image. |
| `↳ tags` | `string[]` Optional. The tags to apply to the instance created by the machine image. |
| `↳ shielded_instance_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ShieldedInstanceConfig` Optional. Shielded instance configuration. |
| `↳ network_interfaces` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.NetworkInterface>` Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import. |

### 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` |   |

### getSkipOsAdaptation

Optional. Use to skip OS adaptation process.

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

### hasSkipOsAdaptation

### setSkipOsAdaptation

Optional. Use to skip OS adaptation process.

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

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

### getMachineImageName

Required. The name of the machine image to be created.

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

### setMachineImageName

Required. The name of the machine 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 machine image will be created.

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

### setTargetProject

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

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

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

### getDescription

Optional. An optional description of the machine image.

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

### setDescription

Optional. An optional description of the machine image.

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

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

### getSingleRegionStorage

Optional. Set to true to set the machine 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 machine 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 machine image.

If the Image Import resource has an encryption, this field must be set to
the same encryption key.

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

If the Image Import resource has an encryption, this field must be set to
the same encryption key.

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

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

### getMachineImageParametersOverrides

Optional. Parameters overriding decisions based on the source machine image
configurations.

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

### hasMachineImageParametersOverrides

### clearMachineImageParametersOverrides

### setMachineImageParametersOverrides

Optional. Parameters overriding decisions based on the source machine image
configurations.

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

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

### getServiceAccount

Optional. The service account to assign to the instance created by the
machine image.

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

### hasServiceAccount

### clearServiceAccount

### setServiceAccount

Optional. The service account to assign to the instance created by the
machine image.

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

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

### getAdditionalLicenses

Optional. Additional licenses to assign to the instance created by the
machine 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 instance created by the
machine 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` |   |

### getLabels

Optional. The labels to apply to the instance created by the machine image.

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

### setLabels

Optional. The labels to apply to the instance created by the machine image.

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

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

### getTags

Optional. The tags to apply to the instance created by the machine image.

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

### setTags

Optional. The tags to apply to the instance created by the machine image.

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

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

### getShieldedInstanceConfig

Optional. Shielded instance configuration.

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

### hasShieldedInstanceConfig

### clearShieldedInstanceConfig

### setShieldedInstanceConfig

Optional. Shielded instance configuration.

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

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

### getNetworkInterfaces

Optional. The network interfaces to create with the instance created by the
machine image. Internal and external IP addresses, and network tiers are
ignored for machine 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.NetworkInterface>` |   |

### setNetworkInterfaces

Optional. The network interfaces to create with the instance created by the
machine image. Internal and external IP addresses, and network tiers are
ignored for machine image import.

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

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

### getOsAdaptationConfig

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