# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::ImageImport (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::ImageImport.

ImageImport describes the configuration of the image import to run.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cloud_storage_uri

    def cloud_storage_uri() -> ::String

**Returns**

- (::String) --- Immutable. The path to the Cloud Storage file from which the image should be imported.

### #cloud_storage_uri=

    def cloud_storage_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. The path to the Cloud Storage file from which the image should be imported.
**Returns**

- (::String) --- Immutable. The path to the Cloud Storage file from which the image should be imported.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time the image import was created.

### #disk_image_target_defaults

    def disk_image_target_defaults() -> ::Google::Cloud::VMMigration::V1::DiskImageTargetDetails

**Returns**

- ([::Google::Cloud::VMMigration::V1::DiskImageTargetDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DiskImageTargetDetails)) --- Immutable. Target details for importing a disk image, will be used by ImageImportJob.


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

### #disk_image_target_defaults=

    def disk_image_target_defaults=(value) -> ::Google::Cloud::VMMigration::V1::DiskImageTargetDetails

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::DiskImageTargetDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DiskImageTargetDetails)) --- Immutable. Target details for importing a disk image, will be used by ImageImportJob.


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

- ([::Google::Cloud::VMMigration::V1::DiskImageTargetDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DiskImageTargetDetails)) --- Immutable. Target details for importing a disk image, will be used by ImageImportJob.


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

### #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 details used by the image import process during the image adaptation for Compute Engine.

### #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 details used by the image import process during the image adaptation for Compute Engine.
**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 details used by the image import process during the image adaptation for Compute Engine.

### #machine_image_target_defaults

    def machine_image_target_defaults() -> ::Google::Cloud::VMMigration::V1::MachineImageTargetDetails

**Returns**

- ([::Google::Cloud::VMMigration::V1::MachineImageTargetDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MachineImageTargetDetails)) --- Immutable. Target details for importing a machine image, will be used by ImageImportJob.


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

### #machine_image_target_defaults=

    def machine_image_target_defaults=(value) -> ::Google::Cloud::VMMigration::V1::MachineImageTargetDetails

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::MachineImageTargetDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MachineImageTargetDetails)) --- Immutable. Target details for importing a machine image, will be used by ImageImportJob.


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

- ([::Google::Cloud::VMMigration::V1::MachineImageTargetDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MachineImageTargetDetails)) --- Immutable. Target details for importing a machine image, will be used by ImageImportJob.


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

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The resource path of the ImageImport.

### #recent_image_import_jobs

    def recent_image_import_jobs() -> ::Array<::Google::Cloud::VMMigration::V1::ImageImportJob>

**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::ImageImportJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ImageImportJob)\>) --- Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.