# Class MigratingVm (1.17.0)

1.17.0 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.3 1.10.0 1.9.1 1.8.5 1.7.0 1.6.2 1.5.1 1.4.0 1.3.3 1.2.0 1.1.2 1.0.0 0.1.0

    MigratingVm(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `compute_engine_target_defaults` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ComputeEngineTargetDefaults` Details of the target VM in Compute Engine. This field is a member of `oneof`_ `target_vm_defaults`. |
| `compute_engine_disks_target_defaults` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ComputeEngineDisksTargetDefaults` Details of the target Persistent Disks in Compute Engine. This field is a member of `oneof`_ `target_vm_defaults`. |
| `vmware_source_vm_details` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.VmwareSourceVmDetails` Output only. Details of the VM from a Vmware source. This field is a member of `oneof`_ `source_vm_details`. |
| `aws_source_vm_details` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.AwsSourceVmDetails` Output only. Details of the VM from an AWS source. This field is a member of `oneof`_ `source_vm_details`. |
| `azure_source_vm_details` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.AzureSourceVmDetails` Output only. Details of the VM from an Azure source. This field is a member of `oneof`_ `source_vm_details`. |
| `name` | `str` Output only. The identifier of the MigratingVm. |
| `source_vm_id` | `str` 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- |
| `display_name` | `str` The display name attached to the MigratingVm by the user. |
| `description` | `str` The description attached to the migrating VM by the user. |
| `policy` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.SchedulePolicy` The replication schedule policy. |
| `create_time` | `google.protobuf.timestamp_pb2.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). |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The last time the migrating VM resource was updated. |
| `last_sync` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ReplicationSync` Output only. The most updated snapshot created time in the source that finished replication. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.MigratingVm.State` Output only. State of the MigratingVm. |
| `state_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The last time the migrating VM state was updated. |
| `current_sync_info` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ReplicationCycle` Output only. Details of the current running replication cycle. |
| `last_replication_cycle` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.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. |
| `group` | `str` Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource. |
| `labels` | `MutableMapping[str, str]` The labels of the migrating VM. |
| `recent_clone_jobs` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CloneJob]` 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. |
| `error` | `google.rpc.status_pb2.Status` Output only. Provides details on the state of the Migrating VM in case of an error in replication. |
| `recent_cutover_jobs` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.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. |
| `cutover_forecast` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CutoverForecast` Output only. Provides details of future CutoverJobs of a MigratingVm. Set to empty when cutover forecast is unavailable. |
| `expiration` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.MigratingVm.Expiration` Output only. Provides details about the expiration state of the migrating VM. |

## Classes

### Expiration

    Expiration(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Expiration holds information about the expiration of a
MigratingVm.

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### State

    State(value)

The possible values of the state/health of source VM.