# MachineImageTargetDetails

- [JSON representation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#SCHEMA_REPRESENTATION)
- [SkipOsAdaptation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#SkipOsAdaptation)
- [MachineImageParametersOverrides](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#MachineImageParametersOverrides)
  - [JSON representation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#MachineImageParametersOverrides.SCHEMA_REPRESENTATION)
- [ServiceAccount](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#ServiceAccount)
  - [JSON representation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#ServiceAccount.SCHEMA_REPRESENTATION)
- [ShieldedInstanceConfig](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#ShieldedInstanceConfig)
  - [JSON representation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#ShieldedInstanceConfig.SCHEMA_REPRESENTATION)
- [SecureBoot](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#SecureBoot)

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

| JSON representation |
|---|
| ``` { "machineImageName": string, "targetProject": string, "description": string, "singleRegionStorage": boolean, "encryption": { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/Encryption`) }, "machineImageParametersOverrides": { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#MachineImageParametersOverrides`) }, "serviceAccount": { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#ServiceAccount`) }, "additionalLicenses": [ string ], "labels": { string: string, ... }, "tags": [ string ], "shieldedInstanceConfig": { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#ShieldedInstanceConfig`) }, "networkInterfaces": [ { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/NetworkInterface`) } ], // Union field `os_adaptation_config` can be only one of the following: "osAdaptationParameters": { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/ImageImportOsAdaptationParameters`) }, "skipOsAdaptation": { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#SkipOsAdaptation`) } // End of list of possible types for union field `os_adaptation_config`. } ``` |

| Fields ||
|---|---|
| `machineImageName` | `string` Required. The name of the machine image to be created. |
| `targetProject` | `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. |
| `singleRegionStorage` | `boolean` 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` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/Encryption`)`` Immutable. The encryption to apply to the machine image. |
| `machineImageParametersOverrides` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#MachineImageParametersOverrides`)`` Optional. Parameters overriding decisions based on the source machine image configurations. |
| `serviceAccount` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#ServiceAccount`)`` Optional. The service account to assign to the instance created by the machine image. |
| `additionalLicenses[]` | `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` | `map (key: string, value: string)` Optional. The labels to apply to the instance created by the machine image. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `tags[]` | `string` Optional. The tags to apply to the instance created by the machine image. |
| `shieldedInstanceConfig` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#ShieldedInstanceConfig`)`` Optional. Shielded instance configuration. |
| `networkInterfaces[]` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/NetworkInterface`)`` Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses are ignored for machine image import. |
| Union field `os_adaptation_config`. `os_adaptation_config` can be only one of the following: ||
| `osAdaptationParameters` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/ImageImportOsAdaptationParameters`)`` Optional. Use to set the parameters relevant for the OS adaptation process. |
| `skipOsAdaptation` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#SkipOsAdaptation`)`` Optional. Use to skip OS adaptation process. |

## SkipOsAdaptation

This type has no fields.
Mentions that the machine image import is not using OS adaptation process.

## MachineImageParametersOverrides

Parameters overriding decisions based on the source machine image configurations.

| JSON representation |
|---|
| ``` { "machineType": string } ``` |

| Fields ||
|---|---|
| `machineType` | `string` Optional. The machine type to create the MachineImage with. If empty, the service will choose a relevant machine type based on the information from the source image. For more information about machine types, please refer to <https://cloud.google.com/compute/docs/machine-resource>. |

## ServiceAccount

Service account to assign to the instance created by the machine image.

| JSON representation |
|---|
| ``` { "email": string, "scopes": [ string ] } ``` |

| Fields ||
|---|---|
| `email` | `string` Required. The email address of the service account. |
| `scopes[]` | `string` Optional. The list of scopes to be made available for this service account. |

## ShieldedInstanceConfig

Shielded instance configuration.

| JSON representation |
|---|
| ``` { "secureBoot": enum (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#SecureBoot`), "enableVtpm": boolean, "enableIntegrityMonitoring": boolean } ``` |

| Fields ||
|---|---|
| `secureBoot` | ``enum (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/MachineImageTargetDetails#SecureBoot`)`` Optional. Defines whether the instance created by the machine image has Secure Boot enabled. This can be set to true only if the image boot option is EFI. |
| `enableVtpm` | `boolean` Optional. Defines whether the instance created by the machine image has vTPM enabled. This can be set to true only if the image boot option is EFI. |
| `enableIntegrityMonitoring` | `boolean` Optional. Defines whether the instance created by the machine image has integrity monitoring enabled. This can be set to true only if the image boot option is EFI, and vTPM is enabled. |

## SecureBoot

Possible values for secure boot.

| Enums ||
|---|---|
| `SECURE_BOOT_UNSPECIFIED` | No explicit value is selected. Will use the configuration of the source (if exists, otherwise the default will be false). |
| `TRUE` | Use secure boot. This can be set to true only if the image boot option is EFI. |
| `FALSE` | Do not use secure boot. |