# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::MachineImageTargetDetails (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::MachineImageTargetDetails.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #additional_licenses

    def additional_licenses() -> ::Array<::String>

**Returns**

- (::Array\<::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

### #additional_licenses=

    def additional_licenses=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::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
**Returns**

- (::Array\<::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

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. An optional description of the machine image.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. An optional description of the machine image.
**Returns**

- (::String) --- Optional. An optional description of the machine image.

### #encryption

    def encryption() -> ::Google::Cloud::VMMigration::V1::Encryption

**Returns**

- ([::Google::Cloud::VMMigration::V1::Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-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.

### #encryption=

    def encryption=(value) -> ::Google::Cloud::VMMigration::V1::Encryption

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-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.
**Returns**

- ([::Google::Cloud::VMMigration::V1::Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-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.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The labels to apply to the instance created by the machine image.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The labels to apply to the instance created by the machine image.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The labels to apply to the instance created by the machine image.

### #machine_image_name

    def machine_image_name() -> ::String

**Returns**

- (::String) --- Required. The name of the machine image to be created.

### #machine_image_name=

    def machine_image_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the machine image to be created.
**Returns**

- (::String) --- Required. The name of the machine image to be created.

### #machine_image_parameters_overrides

    def machine_image_parameters_overrides() -> ::Google::Cloud::VMMigration::V1::MachineImageParametersOverrides

**Returns**

- ([::Google::Cloud::VMMigration::V1::MachineImageParametersOverrides](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MachineImageParametersOverrides)) --- Optional. Parameters overriding decisions based on the source machine image configurations.

### #machine_image_parameters_overrides=

    def machine_image_parameters_overrides=(value) -> ::Google::Cloud::VMMigration::V1::MachineImageParametersOverrides

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::MachineImageParametersOverrides](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MachineImageParametersOverrides)) --- Optional. Parameters overriding decisions based on the source machine image configurations.
**Returns**

- ([::Google::Cloud::VMMigration::V1::MachineImageParametersOverrides](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MachineImageParametersOverrides)) --- Optional. Parameters overriding decisions based on the source machine image configurations.

### #network_interfaces

    def network_interfaces() -> ::Array<::Google::Cloud::VMMigration::V1::NetworkInterface>

**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::NetworkInterface](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-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.

### #network_interfaces=

    def network_interfaces=(value) -> ::Array<::Google::Cloud::VMMigration::V1::NetworkInterface>

**Parameter**

- **value** (::Array\<[::Google::Cloud::VMMigration::V1::NetworkInterface](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-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.
**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::NetworkInterface](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-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.

### #os_adaptation_parameters

    def os_adaptation_parameters() -> ::Google::Cloud::VMMigration::V1::ImageImportOsAdaptationParameters

**Returns**

- ([::Google::Cloud::VMMigration::V1::ImageImportOsAdaptationParameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ImageImportOsAdaptationParameters)) --- Optional. Use to set the parameters relevant for the OS adaptation process.


  Note: The following fields are mutually exclusive: `os_adaptation_parameters`, `skip_os_adaptation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #os_adaptation_parameters=

    def os_adaptation_parameters=(value) -> ::Google::Cloud::VMMigration::V1::ImageImportOsAdaptationParameters

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::ImageImportOsAdaptationParameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ImageImportOsAdaptationParameters)) --- Optional. Use to set the parameters relevant for the OS adaptation process.


  Note: The following fields are mutually exclusive: `os_adaptation_parameters`, `skip_os_adaptation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::VMMigration::V1::ImageImportOsAdaptationParameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ImageImportOsAdaptationParameters)) --- Optional. Use to set the parameters relevant for the OS adaptation process.


  Note: The following fields are mutually exclusive: `os_adaptation_parameters`, `skip_os_adaptation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #service_account

    def service_account() -> ::Google::Cloud::VMMigration::V1::ServiceAccount

**Returns**

- ([::Google::Cloud::VMMigration::V1::ServiceAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ServiceAccount)) --- Optional. The service account to assign to the instance created by the machine image.

### #service_account=

    def service_account=(value) -> ::Google::Cloud::VMMigration::V1::ServiceAccount

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::ServiceAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ServiceAccount)) --- Optional. The service account to assign to the instance created by the machine image.
**Returns**

- ([::Google::Cloud::VMMigration::V1::ServiceAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ServiceAccount)) --- Optional. The service account to assign to the instance created by the machine image.

### #shielded_instance_config

    def shielded_instance_config() -> ::Google::Cloud::VMMigration::V1::ShieldedInstanceConfig

**Returns**

- ([::Google::Cloud::VMMigration::V1::ShieldedInstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ShieldedInstanceConfig)) --- Optional. Shielded instance configuration.

### #shielded_instance_config=

    def shielded_instance_config=(value) -> ::Google::Cloud::VMMigration::V1::ShieldedInstanceConfig

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::ShieldedInstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ShieldedInstanceConfig)) --- Optional. Shielded instance configuration.
**Returns**

- ([::Google::Cloud::VMMigration::V1::ShieldedInstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ShieldedInstanceConfig)) --- Optional. Shielded instance configuration.

### #single_region_storage

    def single_region_storage() -> ::Boolean

**Returns**

- (::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.

### #single_region_storage=

    def single_region_storage=(value) -> ::Boolean

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #skip_os_adaptation

    def skip_os_adaptation() -> ::Google::Cloud::VMMigration::V1::SkipOsAdaptation

**Returns**

- ([::Google::Cloud::VMMigration::V1::SkipOsAdaptation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SkipOsAdaptation)) --- Optional. Use to skip OS adaptation process.


  Note: The following fields are mutually exclusive: `skip_os_adaptation`, `os_adaptation_parameters`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #skip_os_adaptation=

    def skip_os_adaptation=(value) -> ::Google::Cloud::VMMigration::V1::SkipOsAdaptation

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::SkipOsAdaptation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SkipOsAdaptation)) --- Optional. Use to skip OS adaptation process.


  Note: The following fields are mutually exclusive: `skip_os_adaptation`, `os_adaptation_parameters`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::VMMigration::V1::SkipOsAdaptation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SkipOsAdaptation)) --- Optional. Use to skip OS adaptation process.


  Note: The following fields are mutually exclusive: `skip_os_adaptation`, `os_adaptation_parameters`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #tags

    def tags() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. The tags to apply to the instance created by the machine image.

### #tags=

    def tags=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. The tags to apply to the instance created by the machine image.
**Returns**

- (::Array\<::String\>) --- Optional. The tags to apply to the instance created by the machine image.

### #target_project

    def target_project() -> ::String

**Returns**

- (::String) --- Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.

### #target_project=

    def target_project=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.
**Returns**

- (::String) --- Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.