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

MigratingVm describes the VM that will be migrated from a Source environment
and its replication state.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #aws_source_vm_details

    def aws_source_vm_details() -> ::Google::Cloud::VMMigration::V1::AwsSourceVmDetails

**Returns**

- ([::Google::Cloud::VMMigration::V1::AwsSourceVmDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-AwsSourceVmDetails)) --- Output only. Details of the VM from an AWS source.


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

### #azure_source_vm_details

    def azure_source_vm_details() -> ::Google::Cloud::VMMigration::V1::AzureSourceVmDetails

**Returns**

- ([::Google::Cloud::VMMigration::V1::AzureSourceVmDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-AzureSourceVmDetails)) --- Output only. Details of the VM from an Azure source.


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

### #compute_engine_disks_target_defaults

    def compute_engine_disks_target_defaults() -> ::Google::Cloud::VMMigration::V1::ComputeEngineDisksTargetDefaults

**Returns**

- ([::Google::Cloud::VMMigration::V1::ComputeEngineDisksTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineDisksTargetDefaults)) --- Details of the target Persistent Disks in Compute Engine.


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

### #compute_engine_disks_target_defaults=

    def compute_engine_disks_target_defaults=(value) -> ::Google::Cloud::VMMigration::V1::ComputeEngineDisksTargetDefaults

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::ComputeEngineDisksTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineDisksTargetDefaults)) --- Details of the target Persistent Disks in Compute Engine.


  Note: The following fields are mutually exclusive: `compute_engine_disks_target_defaults`, `compute_engine_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::ComputeEngineDisksTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineDisksTargetDefaults)) --- Details of the target Persistent Disks in Compute Engine.


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

### #compute_engine_target_defaults

    def compute_engine_target_defaults() -> ::Google::Cloud::VMMigration::V1::ComputeEngineTargetDefaults

**Returns**

- ([::Google::Cloud::VMMigration::V1::ComputeEngineTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineTargetDefaults)) --- Details of the target VM in Compute Engine.


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

### #compute_engine_target_defaults=

    def compute_engine_target_defaults=(value) -> ::Google::Cloud::VMMigration::V1::ComputeEngineTargetDefaults

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::ComputeEngineTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineTargetDefaults)) --- Details of the target VM in Compute Engine.


  Note: The following fields are mutually exclusive: `compute_engine_target_defaults`, `compute_engine_disks_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::ComputeEngineTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineTargetDefaults)) --- Details of the target VM in Compute Engine.


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

### #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 migrating VM was created (this refers to this resource and not to the time it was installed in the source).

### #current_sync_info

    def current_sync_info() -> ::Google::Cloud::VMMigration::V1::ReplicationCycle

**Returns**

- ([::Google::Cloud::VMMigration::V1::ReplicationCycle](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ReplicationCycle)) --- Output only. Details of the current running replication cycle.

### #cutover_forecast

    def cutover_forecast() -> ::Google::Cloud::VMMigration::V1::CutoverForecast

**Returns**

- ([::Google::Cloud::VMMigration::V1::CutoverForecast](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-CutoverForecast)) --- Output only. Provides details of future CutoverJobs of a MigratingVm. Set to empty when cutover forecast is unavailable.

### #description

    def description() -> ::String

**Returns**

- (::String) --- The description attached to the migrating VM by the user.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- The description attached to the migrating VM by the user.
**Returns**

- (::String) --- The description attached to the migrating VM by the user.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The display name attached to the MigratingVm by the user.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The display name attached to the MigratingVm by the user.
**Returns**

- (::String) --- The display name attached to the MigratingVm by the user.

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Rpc-Status)) --- Output only. Provides details on the state of the Migrating VM in case of an error in replication.

### #expiration

    def expiration() -> ::Google::Cloud::VMMigration::V1::MigratingVm::Expiration

**Returns**

- ([::Google::Cloud::VMMigration::V1::MigratingVm::Expiration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MigratingVm-Expiration)) --- Output only. Provides details about the expiration state of the migrating VM.

### #group

    def group() -> ::String

**Returns**

- (::String) --- Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate [Group](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-Group "Google::Cloud::VMMigration::V1::Group (class)") resource.

### #labels

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

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- The labels of the migrating VM.

### #labels=

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

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- The labels of the migrating VM.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- The labels of the migrating VM.

### #last_replication_cycle

    def last_replication_cycle() -> ::Google::Cloud::VMMigration::V1::ReplicationCycle

**Returns**

- ([::Google::Cloud::VMMigration::V1::ReplicationCycle](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ReplicationCycle)) --- Output only. Details of the last replication cycle. This will be updated whenever a replication cycle is finished and is not to be confused with last_sync which is only updated on successful replication cycles.

### #last_sync

    def last_sync() -> ::Google::Cloud::VMMigration::V1::ReplicationSync

**Returns**

- ([::Google::Cloud::VMMigration::V1::ReplicationSync](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ReplicationSync)) --- Output only. The most updated snapshot created time in the source that finished replication.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The identifier of the MigratingVm.

### #policy

    def policy() -> ::Google::Cloud::VMMigration::V1::SchedulePolicy

**Returns**

- ([::Google::Cloud::VMMigration::V1::SchedulePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SchedulePolicy)) --- The replication schedule policy.

### #policy=

    def policy=(value) -> ::Google::Cloud::VMMigration::V1::SchedulePolicy

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::SchedulePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SchedulePolicy)) --- The replication schedule policy.
**Returns**

- ([::Google::Cloud::VMMigration::V1::SchedulePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SchedulePolicy)) --- The replication schedule policy.

### #recent_clone_jobs

    def recent_clone_jobs() -> ::Array<::Google::Cloud::VMMigration::V1::CloneJob>

**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::CloneJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-CloneJob)\>) --- Output only. The recent [clone jobs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-CloneJob "Google::Cloud::VMMigration::V1::CloneJob (class)") performed on the migrating VM. This field holds the vm's last completed clone job and the vm's running clone job, if one exists. Note: To have this field populated you need to explicitly request it via the "view" parameter of the Get/List request.

### #recent_cutover_jobs

    def recent_cutover_jobs() -> ::Array<::Google::Cloud::VMMigration::V1::CutoverJob>

**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::CutoverJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-CutoverJob)\>) --- Output only. The recent cutover jobs performed on the migrating VM. This field holds the vm's last completed cutover job and the vm's running cutover job, if one exists. Note: To have this field populated you need to explicitly request it via the "view" parameter of the Get/List request.

### #source_vm_id

    def source_vm_id() -> ::String

**Returns**

- (::String) --- The unique ID of the VM in the source. The VM's name in vSphere can be changed, so this is not the VM's name but rather its moRef id. This id is of the form vm-

### #source_vm_id=

    def source_vm_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The unique ID of the VM in the source. The VM's name in vSphere can be changed, so this is not the VM's name but rather its moRef id. This id is of the form vm-
**Returns**

- (::String) --- The unique ID of the VM in the source. The VM's name in vSphere can be changed, so this is not the VM's name but rather its moRef id. This id is of the form vm-

### #state

    def state() -> ::Google::Cloud::VMMigration::V1::MigratingVm::State

**Returns**

- ([::Google::Cloud::VMMigration::V1::MigratingVm::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MigratingVm-State)) --- Output only. State of the MigratingVm.

### #state_time

    def state_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 last time the migrating VM state was updated.

### #update_time

    def update_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 last time the migrating VM resource was updated.

### #vmware_source_vm_details

    def vmware_source_vm_details() -> ::Google::Cloud::VMMigration::V1::VmwareSourceVmDetails

**Returns**

- ([::Google::Cloud::VMMigration::V1::VmwareSourceVmDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-VmwareSourceVmDetails)) --- Output only. Details of the VM from a Vmware source.


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