# VM Migration v1 API - Class MigratingVm (2.9.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.9.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.8.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.7.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.6.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.5.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.4.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.3.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.2.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.1.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.0.0/Google.Cloud.VMMigration.V1.MigratingVm)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/1.0.0/Google.Cloud.VMMigration.V1.MigratingVm)

    public sealed class MigratingVm : IMessage<MigratingVm>, IEquatable<MigratingVm>, IDeepCloneable<MigratingVm>, IBufferMessage, IMessage

Reference documentation and code samples for the VM Migration v1 API class MigratingVm.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> MigratingVm

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MigratingVm](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MigratingVm](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MigratingVm](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.VMMigration.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1)

## Assembly

Google.Cloud.VMMigration.V1.dll

## Constructors

### MigratingVm()

    public MigratingVm()

### MigratingVm(MigratingVm)

    public MigratingVm(MigratingVm other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm` |

## Properties

### AwsSourceVmDetails

    public AwsSourceVmDetails AwsSourceVmDetails { get; set; }

Output only. Details of the VM from an AWS source.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.AwsSourceVmDetails` |   |

### AzureSourceVmDetails

    public AzureSourceVmDetails AzureSourceVmDetails { get; set; }

Output only. Details of the VM from an Azure source.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.AzureSourceVmDetails` |   |

### ComputeEngineDisksTargetDefaults

    public ComputeEngineDisksTargetDefaults ComputeEngineDisksTargetDefaults { get; set; }

Details of the target Persistent Disks in Compute Engine.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ComputeEngineDisksTargetDefaults` |   |

### ComputeEngineTargetDefaults

    public ComputeEngineTargetDefaults ComputeEngineTargetDefaults { get; set; }

Details of the target VM in Compute Engine.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### CurrentSyncInfo

    public ReplicationCycle CurrentSyncInfo { get; set; }

Output only. Details of the current running replication cycle.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ReplicationCycle` |   |

### CutoverForecast

    public CutoverForecast CutoverForecast { get; set; }

Output only. Provides details of future CutoverJobs of a MigratingVm.
Set to empty when cutover forecast is unavailable.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.CutoverForecast` |   |

### Description

    public string Description { get; set; }

The description attached to the migrating VM by the user.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DisplayName

    public string DisplayName { get; set; }

The display name attached to the MigratingVm by the user.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Error

    public Status Error { get; set; }

Output only. Provides details on the state of the Migrating VM in case of
an error in replication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Status.html` |   |

### Expiration

    public MigratingVm.Types.Expiration Expiration { get; set; }

Output only. Provides details about the expiration state of the migrating
VM.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVmhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm.Types.Expiration` |   |

### Group

    public string Group { get; set; }

Output only. The group this migrating vm is included in, if any. The group
is represented by the full path of the appropriate
\[Group\]\[google.cloud.vmmigration.v1.Group\] resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### GroupAsLocationName

    public LocationName GroupAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Group](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm#Google_Cloud_VMMigration_V1_MigratingVm_Group) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### Labels

    public MapField<string, string> Labels { get; }

The labels of the migrating VM.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### LastReplicationCycle

    public ReplicationCycle LastReplicationCycle { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ReplicationCycle` |   |

### LastSync

    public ReplicationSync LastSync { get; set; }

Output only. The most updated snapshot created time in the source that
finished replication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ReplicationSync` |   |

### MigratingVmName

    public MigratingVmName MigratingVmName { get; set; }

[MigratingVmName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVmName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm#Google_Cloud_VMMigration_V1_MigratingVm_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVmName` |   |

### Name

    public string Name { get; set; }

Output only. The identifier of the MigratingVm.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Policy

    public SchedulePolicy Policy { get; set; }

The replication schedule policy.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.SchedulePolicy` |   |

### RecentCloneJobs

    public RepeatedField<CloneJob> RecentCloneJobs { get; }

Output only. The recent \[clone jobs\]\[google.cloud.vmmigration.v1.CloneJob\]
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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.CloneJob` |   |

### RecentCutoverJobs

    public RepeatedField<CutoverJob> RecentCutoverJobs { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.CutoverJob` |   |

### SourceVmDetailsCase

    public MigratingVm.SourceVmDetailsOneofCase SourceVmDetailsCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVmhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm.SourceVmDetailsOneofCase` |   |

### SourceVmId

    public string SourceVmId { get; set; }

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-\<num\>.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### State

    public MigratingVm.Types.State State { get; set; }

Output only. State of the MigratingVm.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVmhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm.Types.State` |   |

### StateTime

    public Timestamp StateTime { get; set; }

Output only. The last time the migrating VM state was updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### TargetVmDefaultsCase

    public MigratingVm.TargetVmDefaultsOneofCase TargetVmDefaultsCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVmhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.MigratingVm.TargetVmDefaultsOneofCase` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The last time the migrating VM resource was updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### VmwareSourceVmDetails

    public VmwareSourceVmDetails VmwareSourceVmDetails { get; set; }

Output only. Details of the VM from a Vmware source.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.VmwareSourceVmDetails` |   |