# Class VmMigrationClient (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

    VmMigrationClient(
        *,
        credentials: typing.Optional[google.auth.credentials.Credentials] = None,
        transport: typing.Optional[
            typing.Union[
                str,
                google.cloud.vmmigration_v1.services.vm_migration.transports.base.VmMigrationTransport,
                typing.Callable[
                    [...],
                    google.cloud.vmmigration_v1.services.vm_migration.transports.base.VmMigrationTransport,
                ],
            ]
        ] = None,
        client_options: typing.Optional[
            typing.Union[google.api_core.client_options.ClientOptions, dict]
        ] = None,
        client_info: google.api_core.gapic_v1.client_info.ClientInfo = google.api_core.gapic_v1.client_info.ClientInfo
    )

VM Migration Service

## Properties

### api_endpoint

Return the API endpoint used by the client instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `str` | The API endpoint used by the client instance. |

### transport

Returns the transport used by the client instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VmMigrationTransport` | The transport used by the client instance. |

### universe_domain

Return the universe domain used by the client instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `str` | The universe domain used by the client instance. |

## Methods

### VmMigrationClient

    VmMigrationClient(
        *,
        credentials: typing.Optional[google.auth.credentials.Credentials] = None,
        transport: typing.Optional[
            typing.Union[
                str,
                google.cloud.vmmigration_v1.services.vm_migration.transports.base.VmMigrationTransport,
                typing.Callable[
                    [...],
                    google.cloud.vmmigration_v1.services.vm_migration.transports.base.VmMigrationTransport,
                ],
            ]
        ] = None,
        client_options: typing.Optional[
            typing.Union[google.api_core.client_options.ClientOptions, dict]
        ] = None,
        client_info: google.api_core.gapic_v1.client_info.ClientInfo = google.api_core.gapic_v1.client_info.ClientInfo
    )

Instantiates the vm migration client.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `credentials` | `Optional[google.auth.credentials.Credentials]` The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment. |
| `transport` | `Optional[Union[str,VmMigrationTransport,Callable[..., VmMigrationTransport]]]` The transport to use, or a Callable that constructs and returns a new transport. If a Callable is given, it will be called with the same set of initialization arguments as used in the VmMigrationTransport constructor. If set to None, a transport is chosen automatically. |
| `client_options` | `Optional[Union[google.api_core.client_options.ClientOptions, dict]]` Custom options for the client. 1. The `api_endpoint` property can be used to override the default endpoint provided by the client when `transport` is not explicitly provided. Only if this property is not set and `transport` was not explicitly provided, the endpoint is determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment variable, which have one of the following values: "always" (always use the default mTLS endpoint), "never" (always use the default regular endpoint) and "auto" (auto-switch to the default mTLS endpoint if client certificate is present; this is the default value). 2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is "true", then the `client_cert_source` property can be used to provide a client certificate for mTLS transport. If not provided, the default SSL client certificate will be used if present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not set, no client certificate will be used. 3. The `universe_domain` property can be used to override the default "googleapis.com" universe. Note that the `api_endpoint` property still takes precedence; and `universe_domain` is currently not supported for mTLS. |
| `client_info` | `google.api_core.gapic_v1.client_info.ClientInfo` The client info used to send a user-agent string along with API requests. If `None`, then default info will be used. Generally, you only need to set this if you're developing your own client library. |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `google.auth.exceptions.MutualTLSChannelError` | If mutual TLS transport creation failed for any reason. |

### __exit__

    __exit__(type, value, traceback)

Releases underlying transport's resources.

> [!WARNING]
> **Warning:** ONLY use as a context manager if the transport is NOT shared with other clients! Exiting the with block will CLOSE the transport and may cause errors in other clients!

### add_group_migration

    add_group_migration(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.AddGroupMigrationRequest, dict
            ]
        ] = None,
        *,
        group: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Adds a MigratingVm to a Group.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_add_group_migration():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.AddGroupMigrationRequest.html(
            group="group_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_add_group_migration(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.AddGroupMigrationRequest, dict]` The request object. Request message for 'AddGroupMigration' request. |
| `group` | `str` Required. The full path name of the Group to add to. This corresponds to the `group` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [AddGroupMigrationResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.AddGroupMigrationResponse) Response message for 'AddGroupMigration' request. |

### cancel_clone_job

    cancel_clone_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CancelCloneJobRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Initiates the cancellation of a running clone job.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_cancel_clone_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelCloneJobRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_cancel_clone_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelCloneJobRequest, dict]` The request object. Request message for 'CancelCloneJob' request. |
| `name` | `str` Required. The clone job id This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [CancelCloneJobResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelCloneJobResponse) Response message for 'CancelCloneJob' request. |

### cancel_cutover_job

    cancel_cutover_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CancelCutoverJobRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Initiates the cancellation of a running cutover job.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_cancel_cutover_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelCutoverJobRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_cancel_cutover_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelCutoverJobRequest, dict]` The request object. Request message for 'CancelCutoverJob' request. |
| `name` | `str` Required. The cutover job id This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [CancelCutoverJobResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelCutoverJobResponse) Response message for 'CancelCutoverJob' request. |

### cancel_disk_migration_job

    cancel_disk_migration_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CancelDiskMigrationJobRequest,
                dict,
            ]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Cancels the disk migration job.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_cancel_disk_migration_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelDiskMigrationJobRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_cancel_disk_migration_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelDiskMigrationJobRequest, dict]` The request object. Request message for 'CancelDiskMigrationJob' request. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [CancelDiskMigrationJobResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelDiskMigrationJobResponse) Response message for 'CancelDiskMigrationJob' request. |

### cancel_image_import_job

    cancel_image_import_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CancelImageImportJobRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Initiates the cancellation of a running
ImageImportJob.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_cancel_image_import_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelImageImportJobRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_cancel_image_import_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelImageImportJobRequest, dict]` The request object. Request message for 'CancelImageImportJob' request. |
| `name` | `str` Required. The image import job id. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [CancelImageImportJobResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CancelImageImportJobResponse) Response message for 'CancelImageImportJob' request. |

### cancel_operation

    cancel_operation(
        request: typing.Optional[
            typing.Union[google.longrunning.operations_pb2.CancelOperationRequest, dict]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> None

Starts asynchronous cancellation on a long-running operation.

The server makes a best effort to cancel the operation, but success
is not guaranteed. If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `` `.operations_pb2.CancelOperationRequest` `` The request object. Request message for `CancelOperation` method. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

### clone_job_path

    clone_job_path(
        project: str, location: str, source: str, migrating_vm: str, clone_job: str
    ) -> str

Returns a fully-qualified clone_job string.

### common_billing_account_path

    common_billing_account_path(billing_account: str) -> str

Returns a fully-qualified billing_account string.

### common_folder_path

    common_folder_path(folder: str) -> str

Returns a fully-qualified folder string.

### common_location_path

    common_location_path(project: str, location: str) -> str

Returns a fully-qualified location string.

### common_organization_path

    common_organization_path(organization: str) -> str

Returns a fully-qualified organization string.

### common_project_path

    common_project_path(project: str) -> str

Returns a fully-qualified project string.

### create_clone_job

    create_clone_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateCloneJobRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        clone_job: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.CloneJob
        ] = None,
        clone_job_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Initiates a Clone of a specific migrating VM.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_clone_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateCloneJobRequest.html(
            parent="parent_value",
            clone_job_id="clone_job_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_clone_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateCloneJobRequest, dict]` The request object. Request message for 'CreateCloneJob' request. |
| `parent` | `str` Required. The Clone's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `clone_job` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CloneJob` Required. The clone request body. This corresponds to the `clone_job` field on the `request` instance; if `request` is provided, this should not be set. |
| `clone_job_id` | `str` Required. The clone job identifier. This corresponds to the `clone_job_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [CloneJob](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CloneJob) CloneJob describes the process of creating a clone of a MigratingVM to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone. |

### create_cutover_job

    create_cutover_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateCutoverJobRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        cutover_job: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.CutoverJob
        ] = None,
        cutover_job_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Initiates a Cutover of a specific migrating VM.
The returned LRO is completed when the cutover job
resource is created and the job is initiated.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_cutover_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateCutoverJobRequest.html(
            parent="parent_value",
            cutover_job_id="cutover_job_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_cutover_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateCutoverJobRequest, dict]` The request object. Request message for 'CreateCutoverJob' request. |
| `parent` | `str` Required. The Cutover's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `cutover_job` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CutoverJob` Required. The cutover request body. This corresponds to the `cutover_job` field on the `request` instance; if `request` is provided, this should not be set. |
| `cutover_job_id` | `str` Required. The cutover job identifier. This corresponds to the `cutover_job_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [CutoverJob](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CutoverJob) CutoverJob message describes a cutover of a migrating VM. The CutoverJob is the operation of shutting down the VM, creating a snapshot and cloning the VM using the replicated snapshot. |

### create_datacenter_connector

    create_datacenter_connector(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateDatacenterConnectorRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        datacenter_connector: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.DatacenterConnector
        ] = None,
        datacenter_connector_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new DatacenterConnector in a given Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_datacenter_connector():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateDatacenterConnectorRequest.html(
            parent="parent_value",
            datacenter_connector_id="datacenter_connector_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_datacenter_connector(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateDatacenterConnectorRequest, dict]` The request object. Request message for 'CreateDatacenterConnector' request. |
| `parent` | `str` Required. The DatacenterConnector's parent. Required. The Source in where the new DatacenterConnector will be created. For example: `projects/my-project/locations/us-central1/sources/my-source` This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `datacenter_connector` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DatacenterConnector` Required. The create request body. This corresponds to the `datacenter_connector` field on the `request` instance; if `request` is provided, this should not be set. |
| `datacenter_connector_id` | `str` Required. The datacenterConnector identifier. This corresponds to the `datacenter_connector_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [DatacenterConnector](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DatacenterConnector) DatacenterConnector message describes a connector between the Source and Google Cloud, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to Google Cloud and support vm migration data transfer. |

### create_disk_migration_job

    create_disk_migration_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateDiskMigrationJobRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        disk_migration_job: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.DiskMigrationJob
        ] = None,
        disk_migration_job_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new disk migration job in a given Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_disk_migration_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        disk_migration_job = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DiskMigrationJob.html()
        disk_migration_job.aws_source_disk_details.volume_id = "volume_id_value"
        disk_migration_job.target_details.target_disk.zone = "zone_value"
        disk_migration_job.target_details.target_disk.disk_type = "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED"
        disk_migration_job.target_details.target_project = "target_project_value"

        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateDiskMigrationJobRequest.html(
            parent="parent_value",
            disk_migration_job_id="disk_migration_job_id_value",
            disk_migration_job=disk_migration_job,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_disk_migration_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateDiskMigrationJobRequest, dict]` The request object. Request message for 'CreateDiskMigrationJob' request. |
| `parent` | `str` Required. The DiskMigrationJob's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `disk_migration_job` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DiskMigrationJob` Required. The create request body. This corresponds to the `disk_migration_job` field on the `request` instance; if `request` is provided, this should not be set. |
| `disk_migration_job_id` | `str` Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen. This corresponds to the `disk_migration_job_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [DiskMigrationJob](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DiskMigrationJob) Describes the disk which will be migrated from the source environment. The source disk has to be unattached. |

### create_group

    create_group(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateGroupRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        group: typing.Optional[google.cloud.vmmigration_v1.types.vmmigration.Group] = None,
        group_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new Group in a given project and location.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_group():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateGroupRequest.html(
            parent="parent_value",
            group_id="group_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_group(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateGroupRequest, dict]` The request object. Request message for 'CreateGroup' request. |
| `parent` | `str` Required. The Group's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `group` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Group` Required. The create request body. This corresponds to the `group` field on the `request` instance; if `request` is provided, this should not be set. |
| `group_id` | `str` Required. The group identifier. This corresponds to the `group_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Group](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Group) Describes message for 'Group' resource. The Group is a collections of several MigratingVms. |

### create_image_import

    create_image_import(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateImageImportRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        image_import: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.ImageImport
        ] = None,
        image_import_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new ImageImport in a given project.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_image_import():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        image_import = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ImageImport.html()
        image_import.cloud_storage_uri = "cloud_storage_uri_value"
        image_import.disk_image_target_defaults.image_name = "image_name_value"
        image_import.disk_image_target_defaults.target_project = "target_project_value"

        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateImageImportRequest.html(
            parent="parent_value",
            image_import_id="image_import_id_value",
            image_import=image_import,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_image_import(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateImageImportRequest, dict]` The request object. Request message for 'CreateImageImport' request. |
| `parent` | `str` Required. The ImageImport's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `image_import` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ImageImport` Required. The create request body. This corresponds to the `image_import` field on the `request` instance; if `request` is provided, this should not be set. |
| `image_import_id` | `str` Required. The image import identifier. This value maximum length is 63 characters, and valid characters are /`a-z][0-9]`-/. It must start with an english letter and must not end with a hyphen. This corresponds to the `image_import_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [ImageImport](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ImageImport) ImageImport describes the configuration of the image import to run. |

### create_migrating_vm

    create_migrating_vm(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateMigratingVmRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        migrating_vm: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.MigratingVm
        ] = None,
        migrating_vm_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new MigratingVm in a given Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_migrating_vm():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateMigratingVmRequest.html(
            parent="parent_value",
            migrating_vm_id="migrating_vm_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_migrating_vm(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateMigratingVmRequest, dict]` The request object. Request message for 'CreateMigratingVm' request. |
| `parent` | `str` Required. The MigratingVm's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `migrating_vm` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.MigratingVm` Required. The create request body. This corresponds to the `migrating_vm` field on the `request` instance; if `request` is provided, this should not be set. |
| `migrating_vm_id` | `str` Required. The migratingVm identifier. This corresponds to the `migrating_vm_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [MigratingVm](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.MigratingVm) MigratingVm describes the VM that will be migrated from a Source environment and its replication state. |

### create_source

    create_source(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateSourceRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        source: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.Source
        ] = None,
        source_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new Source in a given project and location.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_source():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateSourceRequest.html(
            parent="parent_value",
            source_id="source_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_source(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateSourceRequest, dict]` The request object. Request message for 'CreateSource' request. |
| `parent` | `str` Required. The Source's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `source` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Source` Required. The create request body. This corresponds to the `source` field on the `request` instance; if `request` is provided, this should not be set. |
| `source_id` | `str` Required. The source identifier. This corresponds to the `source_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Source](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Source) Source message describes a specific vm migration Source resource. It contains the source environment information. |

### create_target_project

    create_target_project(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateTargetProjectRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        target_project: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.TargetProject
        ] = None,
        target_project_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new TargetProject in a given project.

NOTE: TargetProject is a global resource; hence the only
supported value for location is `global`.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_target_project():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        target_project = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.TargetProject.html()
        target_project.project = "project_value"

        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateTargetProjectRequest.html(
            parent="parent_value",
            target_project_id="target_project_id_value",
            target_project=target_project,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_target_project(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateTargetProjectRequest, dict]` The request object. Request message for 'CreateTargetProject' request. |
| `parent` | `str` Required. The TargetProject's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `target_project` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.TargetProject` Required. The create request body. This corresponds to the `target_project` field on the `request` instance; if `request` is provided, this should not be set. |
| `target_project_id` | `str` Required. The target_project identifier. This corresponds to the `target_project_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [TargetProject](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.TargetProject) TargetProject message represents a target Compute Engine project for a migration or a clone. |

### create_utilization_report

    create_utilization_report(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.CreateUtilizationReportRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        utilization_report: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.UtilizationReport
        ] = None,
        utilization_report_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new UtilizationReport.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_create_utilization_report():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateUtilizationReportRequest.html(
            parent="parent_value",
            utilization_report_id="utilization_report_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_create_utilization_report(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CreateUtilizationReportRequest, dict]` The request object. Request message for 'CreateUtilizationReport' request. |
| `parent` | `str` Required. The Utilization Report's parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `utilization_report` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UtilizationReport` Required. The report to create. This corresponds to the `utilization_report` field on the `request` instance; if `request` is provided, this should not be set. |
| `utilization_report_id` | `str` Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /`a-z][0-9]`-/. It must start with an english letter and must not end with a hyphen. This corresponds to the `utilization_report_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [UtilizationReport](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UtilizationReport) Utilization report details the utilization (CPU, memory, etc.) of selected source VMs. |

### crypto_key_path

    crypto_key_path(project: str, location: str, key_ring: str, crypto_key: str) -> str

Returns a fully-qualified crypto_key string.

### cutover_job_path

    cutover_job_path(
        project: str, location: str, source: str, migrating_vm: str, cutover_job: str
    ) -> str

Returns a fully-qualified cutover_job string.

### datacenter_connector_path

    datacenter_connector_path(
        project: str, location: str, source: str, datacenter_connector: str
    ) -> str

Returns a fully-qualified datacenter_connector string.

### delete_datacenter_connector

    delete_datacenter_connector(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.DeleteDatacenterConnectorRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a single DatacenterConnector.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_delete_datacenter_connector():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteDatacenterConnectorRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_delete_datacenter_connector(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteDatacenterConnectorRequest, dict]` The request object. Request message for 'DeleteDatacenterConnector' request. |
| `name` | `str` Required. The DatacenterConnector name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_disk_migration_job

    delete_disk_migration_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.DeleteDiskMigrationJobRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a single DiskMigrationJob.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_delete_disk_migration_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteDiskMigrationJobRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_delete_disk_migration_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteDiskMigrationJobRequest, dict]` The request object. Request message for 'DeleteDiskMigrationJob' request. |
| `name` | `str` Required. The name of the DiskMigrationJob. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_group

    delete_group(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.DeleteGroupRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a single Group.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_delete_group():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteGroupRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_delete_group(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteGroupRequest, dict]` The request object. Request message for 'DeleteGroup' request. |
| `name` | `str` Required. The Group name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_image_import

    delete_image_import(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.DeleteImageImportRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a single ImageImport.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_delete_image_import():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteImageImportRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_delete_image_import(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteImageImportRequest, dict]` The request object. Request message for 'DeleteImageImport' request. |
| `name` | `str` Required. The ImageImport name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_migrating_vm

    delete_migrating_vm(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.DeleteMigratingVmRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a single MigratingVm.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_delete_migrating_vm():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteMigratingVmRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_delete_migrating_vm(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteMigratingVmRequest, dict]` The request object. Request message for 'DeleteMigratingVm' request. |
| `name` | `str` Required. The name of the MigratingVm. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_operation

    delete_operation(
        request: typing.Optional[
            typing.Union[google.longrunning.operations_pb2.DeleteOperationRequest, dict]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> None

Deletes a long-running operation.

This method indicates that the client is no longer interested
in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `` `.operations_pb2.DeleteOperationRequest` `` The request object. Request message for `DeleteOperation` method. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

### delete_source

    delete_source(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.DeleteSourceRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a single Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_delete_source():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteSourceRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_delete_source(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteSourceRequest, dict]` The request object. Request message for 'DeleteSource' request. |
| `name` | `str` Required. The Source name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_target_project

    delete_target_project(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.DeleteTargetProjectRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a single TargetProject.

NOTE: TargetProject is a global resource; hence the only
supported value for location is `global`.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_delete_target_project():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteTargetProjectRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_delete_target_project(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteTargetProjectRequest, dict]` The request object. Request message for 'DeleteTargetProject' request. |
| `name` | `str` Required. The TargetProject name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_utilization_report

    delete_utilization_report(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.DeleteUtilizationReportRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a single Utilization Report.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_delete_utilization_report():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteUtilizationReportRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_delete_utilization_report(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DeleteUtilizationReportRequest, dict]` The request object. Request message for 'DeleteUtilizationReport' request. |
| `name` | `str` Required. The Utilization Report name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### disk_migration_job_path

    disk_migration_job_path(
        project: str, location: str, source: str, disk_migration_job: str
    ) -> str

Returns a fully-qualified disk_migration_job string.

### extend_migration

    extend_migration(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ExtendMigrationRequest, dict
            ]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Extend the migrating VM time to live.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_extend_migration():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ExtendMigrationRequest.html(
            migrating_vm="migrating_vm_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_extend_migration(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ExtendMigrationRequest, dict]` The request object. Request message for 'ExtendMigrationRequest' request. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [ExtendMigrationResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ExtendMigrationResponse) Response message for 'ExtendMigration' request. |

### fetch_inventory

    fetch_inventory(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.FetchInventoryRequest, dict
            ]
        ] = None,
        *,
        source: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.FetchInventoryResponse

List remote source's inventory of VMs.
The remote source is the onprem vCenter (remote in the
sense it's not in Compute Engine). The inventory
describes the list of existing VMs in that source. Note
that this operation lists the VMs on the remote source,
as opposed to listing the MigratingVms resources in the
vmmigration service.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_fetch_inventory():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FetchInventoryRequest.html(
            source="source_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_fetch_inventory(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FetchInventoryRequest, dict]` The request object. Request message for fetchInventory. |
| `source` | `str` Required. The name of the Source. This corresponds to the `source` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FetchInventoryResponse` | Response message for fetchInventory. |

### fetch_storage_inventory

    fetch_storage_inventory(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.FetchStorageInventoryRequest,
                dict,
            ]
        ] = None,
        *,
        source: typing.Optional[str] = None,
        type_: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.FetchStorageInventoryRequest.StorageType
        ] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> (
        google.cloud.vmmigration_v1.services.vm_migration.pagers.FetchStorageInventoryPager
    )

List remote source's inventory of storage resources.
The remote source is another cloud vendor (e.g. AWS,
Azure). The inventory describes the list of existing
storage resources in that source. Note that this
operation lists the resources on the remote source, as
opposed to listing the MigratingVms resources in the
vmmigration service.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_fetch_storage_inventory():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FetchStorageInventoryRequest.html(
            source="source_value",
            type_="SNAPSHOTS",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_fetch_storage_inventory(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FetchStorageInventoryRequest, dict]` The request object. Request message for fetchStorageInventory. |
| `source` | `str` Required. The name of the Source. This corresponds to the `source` field on the `request` instance; if `request` is provided, this should not be set. |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FetchStorageInventoryRequest.StorageType` Required. The type of the storage inventory to fetch. This corresponds to the `type_` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.FetchStorageInventoryPager` | Response message for fetchStorageInventory. Iterating over this object will yield results and resolve additional pages automatically. |

### finalize_migration

    finalize_migration(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.FinalizeMigrationRequest, dict
            ]
        ] = None,
        *,
        migrating_vm: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Marks a migration as completed, deleting migration
resources that are no longer being used. Only applicable
after cutover is done.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_finalize_migration():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FinalizeMigrationRequest.html(
            migrating_vm="migrating_vm_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_finalize_migration(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FinalizeMigrationRequest, dict]` The request object. Request message for 'FinalizeMigration' request. |
| `migrating_vm` | `str` Required. The name of the MigratingVm. This corresponds to the `migrating_vm` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [FinalizeMigrationResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.FinalizeMigrationResponse) Response message for 'FinalizeMigration' request. |

### from_service_account_file

    from_service_account_file(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials
file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `filename` | `str` The path to the service account private key json file. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VmMigrationClient` | The constructed client. |

### from_service_account_info

    from_service_account_info(info: dict, *args, **kwargs)

Creates an instance of this client using the provided credentials
info.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `info` | `dict` The service account private key info. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VmMigrationClient` | The constructed client. |

### from_service_account_json

    from_service_account_json(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials
file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `filename` | `str` The path to the service account private key json file. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VmMigrationClient` | The constructed client. |

### get_clone_job

    get_clone_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetCloneJobRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.CloneJob

Gets details of a single CloneJob.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_clone_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetCloneJobRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_clone_job(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetCloneJobRequest, dict]` The request object. Request message for 'GetCloneJob' request. |
| `name` | `str` Required. The name of the CloneJob. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CloneJob` | CloneJob describes the process of creating a clone of a MigratingVM to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone. |

### get_cutover_job

    get_cutover_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetCutoverJobRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.CutoverJob

Gets details of a single CutoverJob.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_cutover_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetCutoverJobRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_cutover_job(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetCutoverJobRequest, dict]` The request object. Request message for 'GetCutoverJob' request. |
| `name` | `str` Required. The name of the CutoverJob. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.CutoverJob` | CutoverJob message describes a cutover of a migrating VM. The CutoverJob is the operation of shutting down the VM, creating a snapshot and cloning the VM using the replicated snapshot. |

### get_datacenter_connector

    get_datacenter_connector(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetDatacenterConnectorRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.DatacenterConnector

Gets details of a single DatacenterConnector.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_datacenter_connector():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetDatacenterConnectorRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_datacenter_connector(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetDatacenterConnectorRequest, dict]` The request object. Request message for 'GetDatacenterConnector' request. |
| `name` | `str` Required. The name of the DatacenterConnector. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DatacenterConnector` | DatacenterConnector message describes a connector between the Source and Google Cloud, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to Google Cloud and support vm migration data transfer. |

### get_disk_migration_job

    get_disk_migration_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetDiskMigrationJobRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.DiskMigrationJob

Gets details of a single DiskMigrationJob.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_disk_migration_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetDiskMigrationJobRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_disk_migration_job(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetDiskMigrationJobRequest, dict]` The request object. Request message for 'GetDiskMigrationJob' request. |
| `name` | `str` Required. The name of the DiskMigrationJob. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DiskMigrationJob` | Describes the disk which will be migrated from the source environment. The source disk has to be unattached. |

### get_group

    get_group(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetGroupRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.Group

Gets details of a single Group.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_group():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetGroupRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_group(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetGroupRequest, dict]` The request object. Request message for 'GetGroup' request. |
| `name` | `str` Required. The group name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Group` | Describes message for 'Group' resource. The Group is a collections of several MigratingVms. |

### get_image_import

    get_image_import(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetImageImportRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.ImageImport

Gets details of a single ImageImport.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_image_import():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetImageImportRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_image_import(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetImageImportRequest, dict]` The request object. Request message for 'GetImageImport' call. |
| `name` | `str` Required. The ImageImport name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ImageImport` | ImageImport describes the configuration of the image import to run. |

### get_image_import_job

    get_image_import_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetImageImportJobRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.ImageImportJob

Gets details of a single ImageImportJob.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_image_import_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetImageImportJobRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_image_import_job(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetImageImportJobRequest, dict]` The request object. Request message for 'GetImageImportJob' call. |
| `name` | `str` Required. The ImageImportJob name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ImageImportJob` | ImageImportJob describes the progress and result of an image import. |

### get_location

    get_location(
        request: typing.Optional[
            typing.Union[google.cloud.location.locations_pb2.GetLocationRequest, dict]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.location.locations_pb2.Location

Gets information about a location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `` `.location_pb2.GetLocationRequest` `` The request object. Request message for `GetLocation` method. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `` `.location_pb2.Location` `` | Location object. |

### get_migrating_vm

    get_migrating_vm(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetMigratingVmRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.MigratingVm

Gets details of a single MigratingVm.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_migrating_vm():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetMigratingVmRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_migrating_vm(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetMigratingVmRequest, dict]` The request object. Request message for 'GetMigratingVm' request. |
| `name` | `str` Required. The name of the MigratingVm. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.MigratingVm` | MigratingVm describes the VM that will be migrated from a Source environment and its replication state. |

### get_mtls_endpoint_and_cert_source

    get_mtls_endpoint_and_cert_source(
        client_options: typing.Optional[
            google.api_core.client_options.ClientOptions
        ] = None,
    )

Deprecated. Return the API endpoint and client cert source for mutual TLS.

The client cert source is determined in the following order:
(1) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is not "true", the
client cert source is None.
(2) if `client_options.client_cert_source` is provided, use the provided one; if the
default client cert source exists, use the default one; otherwise the client cert
source is None.

The API endpoint is determined in the following order:
(1) if `client_options.api_endpoint` if provided, use the provided one.
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
default mTLS endpoint; if the environment variable is "never", use the default API
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
use the default API endpoint.

More details can be found at <https://google.aip.dev/auth/4114>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `client_options` | `google.api_core.client_options.ClientOptions` Custom options for the client. Only the `api_endpoint` and `client_cert_source` properties may be used in this method. |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `google.auth.exceptions.MutualTLSChannelError` | If any errors happen. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Tuple[str, Callable[[], Tuple[bytes, bytes]]]` | returns the API endpoint and the client cert source to use. |

### get_operation

    get_operation(
        request: typing.Optional[
            typing.Union[google.longrunning.operations_pb2.GetOperationRequest, dict]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.longrunning.operations_pb2.Operation

Gets the latest state of a long-running operation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `` `.operations_pb2.GetOperationRequest` `` The request object. Request message for `GetOperation` method. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `` `.operations_pb2.Operation` `` | An `Operation` object. |

### get_replication_cycle

    get_replication_cycle(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetReplicationCycleRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.ReplicationCycle

Gets details of a single ReplicationCycle.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_replication_cycle():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetReplicationCycleRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_replication_cycle(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetReplicationCycleRequest, dict]` The request object. Request message for 'GetReplicationCycle' request. |
| `name` | `str` Required. The name of the ReplicationCycle. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ReplicationCycle` | ReplicationCycle contains information about the current replication cycle status. |

### get_source

    get_source(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetSourceRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.Source

Gets details of a single Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_source():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetSourceRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_source(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetSourceRequest, dict]` The request object. Request message for 'GetSource' request. |
| `name` | `str` Required. The Source name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Source` | Source message describes a specific vm migration Source resource. It contains the source environment information. |

### get_target_project

    get_target_project(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetTargetProjectRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.TargetProject

Gets details of a single TargetProject.

NOTE: TargetProject is a global resource; hence the only
supported value for location is `global`.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_target_project():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetTargetProjectRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_target_project(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetTargetProjectRequest, dict]` The request object. Request message for 'GetTargetProject' call. |
| `name` | `str` Required. The TargetProject name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.TargetProject` | TargetProject message represents a target Compute Engine project for a migration or a clone. |

### get_utilization_report

    get_utilization_report(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.GetUtilizationReportRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.types.vmmigration.UtilizationReport

Gets a single Utilization Report.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_get_utilization_report():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetUtilizationReportRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_get_utilization_report(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.GetUtilizationReportRequest, dict]` The request object. Request message for 'GetUtilizationReport' request. |
| `name` | `str` Required. The Utilization Report name. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UtilizationReport` | Utilization report details the utilization (CPU, memory, etc.) of selected source VMs. |

### group_path

    group_path(project: str, location: str, group: str) -> str

Returns a fully-qualified group string.

### image_import_job_path

    image_import_job_path(project: str, location: str, job: str, result: str) -> str

Returns a fully-qualified image_import_job string.

### image_import_path

    image_import_path(project: str, location: str, job: str) -> str

Returns a fully-qualified image_import string.

### image_path

    image_path(project: str, image: str) -> str

Returns a fully-qualified image string.

### list_clone_jobs

    list_clone_jobs(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListCloneJobsRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.services.vm_migration.pagers.ListCloneJobsPager

Lists the CloneJobs of a migrating VM. Only 25 most
recent CloneJobs are listed.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_clone_jobs():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListCloneJobsRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_clone_jobs(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListCloneJobsRequest, dict]` The request object. Request message for 'ListCloneJobsRequest' request. |
| `parent` | `str` Required. The parent, which owns this collection of source VMs. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListCloneJobsPager` | Response message for 'ListCloneJobs' request. Iterating over this object will yield results and resolve additional pages automatically. |

### list_cutover_jobs

    list_cutover_jobs(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListCutoverJobsRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.services.vm_migration.pagers.ListCutoverJobsPager

Lists the CutoverJobs of a migrating VM. Only 25 most
recent CutoverJobs are listed.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_cutover_jobs():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListCutoverJobsRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_cutover_jobs(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListCutoverJobsRequest, dict]` The request object. Request message for 'ListCutoverJobsRequest' request. |
| `parent` | `str` Required. The parent, which owns this collection of migrating VMs. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListCutoverJobsPager` | Response message for 'ListCutoverJobs' request. Iterating over this object will yield results and resolve additional pages automatically. |

### list_datacenter_connectors

    list_datacenter_connectors(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListDatacenterConnectorsRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> (
        google.cloud.vmmigration_v1.services.vm_migration.pagers.ListDatacenterConnectorsPager
    )

Lists DatacenterConnectors in a given Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_datacenter_connectors():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListDatacenterConnectorsRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_datacenter_connectors(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListDatacenterConnectorsRequest, dict]` The request object. Request message for 'ListDatacenterConnectors' request. |
| `parent` | `str` Required. The parent, which owns this collection of connectors. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListDatacenterConnectorsPager` | Response message for 'ListDatacenterConnectors' request. Iterating over this object will yield results and resolve additional pages automatically. |

### list_disk_migration_jobs

    list_disk_migration_jobs(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListDiskMigrationJobsRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> (
        google.cloud.vmmigration_v1.services.vm_migration.pagers.ListDiskMigrationJobsPager
    )

Lists DiskMigrationJobs in a given Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_disk_migration_jobs():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListDiskMigrationJobsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_disk_migration_jobs(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListDiskMigrationJobsRequest, dict]` The request object. Request message for 'ListDiskMigrationJobsRequest' request. |
| `parent` | `str` Required. The parent, which owns this collection of DiskMigrationJobs. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListDiskMigrationJobsPager` | Response message for 'ListDiskMigrationJobs' request. Iterating over this object will yield results and resolve additional pages automatically. |

### list_groups

    list_groups(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListGroupsRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.services.vm_migration.pagers.ListGroupsPager

Lists Groups in a given project and location.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_groups():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListGroupsRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_groups(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListGroupsRequest, dict]` The request object. Request message for 'ListGroups' request. |
| `parent` | `str` Required. The parent, which owns this collection of groups. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListGroupsPager` | Response message for 'ListGroups' request. Iterating over this object will yield results and resolve additional pages automatically. |

### list_image_import_jobs

    list_image_import_jobs(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListImageImportJobsRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.services.vm_migration.pagers.ListImageImportJobsPager

Lists ImageImportJobs in a given project.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_image_import_jobs():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListImageImportJobsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_image_import_jobs(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListImageImportJobsRequest, dict]` The request object. Request message for 'ListImageImportJobs' call. |
| `parent` | `str` Required. The parent, which owns this collection of targets. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListImageImportJobsPager` | Response message for 'ListImageImportJobs' call. Iterating over this object will yield results and resolve additional pages automatically. |

### list_image_imports

    list_image_imports(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListImageImportsRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.services.vm_migration.pagers.ListImageImportsPager

Lists ImageImports in a given project.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_image_imports():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListImageImportsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_image_imports(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListImageImportsRequest, dict]` The request object. Request message for 'ListImageImports' call. |
| `parent` | `str` Required. The parent, which owns this collection of targets. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListImageImportsPager` | Response message for 'ListImageImports' call. Iterating over this object will yield results and resolve additional pages automatically. |

### list_locations

    list_locations(
        request: typing.Optional[
            typing.Union[google.cloud.location.locations_pb2.ListLocationsRequest, dict]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.location.locations_pb2.ListLocationsResponse

Lists information about the supported locations for this service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `` `.location_pb2.ListLocationsRequest` `` The request object. Request message for `ListLocations` method. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `` `.location_pb2.ListLocationsResponse` `` | Response message for `ListLocations` method. |

### list_migrating_vms

    list_migrating_vms(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListMigratingVmsRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.services.vm_migration.pagers.ListMigratingVmsPager

Lists MigratingVms in a given Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_migrating_vms():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListMigratingVmsRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_migrating_vms(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListMigratingVmsRequest, dict]` The request object. Request message for 'LisMigratingVmsRequest' request. |
| `parent` | `str` Required. The parent, which owns this collection of MigratingVms. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListMigratingVmsPager` | Response message for 'ListMigratingVms' request. Iterating over this object will yield results and resolve additional pages automatically. |

### list_operations

    list_operations(
        request: typing.Optional[
            typing.Union[google.longrunning.operations_pb2.ListOperationsRequest, dict]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.longrunning.operations_pb2.ListOperationsResponse

Lists operations that match the specified filter in the request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `` `.operations_pb2.ListOperationsRequest` `` The request object. Request message for `ListOperations` method. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `` `.operations_pb2.ListOperationsResponse` `` | Response message for `ListOperations` method. |

### list_replication_cycles

    list_replication_cycles(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListReplicationCyclesRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> (
        google.cloud.vmmigration_v1.services.vm_migration.pagers.ListReplicationCyclesPager
    )

Lists ReplicationCycles in a given MigratingVM.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_replication_cycles():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListReplicationCyclesRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_replication_cycles(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListReplicationCyclesRequest, dict]` The request object. Request message for 'LisReplicationCyclesRequest' request. |
| `parent` | `str` Required. The parent, which owns this collection of ReplicationCycles. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListReplicationCyclesPager` | Response message for 'ListReplicationCycles' request. Iterating over this object will yield results and resolve additional pages automatically. |

### list_sources

    list_sources(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListSourcesRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.services.vm_migration.pagers.ListSourcesPager

Lists Sources in a given project and location.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_sources():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListSourcesRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_sources(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListSourcesRequest, dict]` The request object. Request message for 'ListSources' request. |
| `parent` | `str` Required. The parent, which owns this collection of sources. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListSourcesPager` | Response message for 'ListSources' request. Iterating over this object will yield results and resolve additional pages automatically. |

### list_target_projects

    list_target_projects(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListTargetProjectsRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.vmmigration_v1.services.vm_migration.pagers.ListTargetProjectsPager

Lists TargetProjects in a given project.

NOTE: TargetProject is a global resource; hence the only
supported value for location is `global`.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_target_projects():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListTargetProjectsRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_target_projects(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListTargetProjectsRequest, dict]` The request object. Request message for 'ListTargetProjects' call. |
| `parent` | `str` Required. The parent, which owns this collection of targets. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListTargetProjectsPager` | Response message for 'ListTargetProjects' call. Iterating over this object will yield results and resolve additional pages automatically. |

### list_utilization_reports

    list_utilization_reports(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ListUtilizationReportsRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> (
        google.cloud.vmmigration_v1.services.vm_migration.pagers.ListUtilizationReportsPager
    )

Lists Utilization Reports of the given Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_list_utilization_reports():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListUtilizationReportsRequest.html(
            parent="parent_value",
            page_token="page_token_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_list_utilization_reports(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ListUtilizationReportsRequest, dict]` The request object. Request message for 'ListUtilizationReports' request. |
| `parent` | `str` Required. The Utilization Reports parent. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.pagers.ListUtilizationReportsPager` | Response message for 'ListUtilizationReports' request. Iterating over this object will yield results and resolve additional pages automatically. |

### migrating_vm_path

    migrating_vm_path(
        project: str, location: str, source: str, migrating_vm: str
    ) -> str

Returns a fully-qualified migrating_vm string.

### parse_clone_job_path

    parse_clone_job_path(path: str) -> typing.Dict[str, str]

Parses a clone_job path into its component segments.

### parse_common_billing_account_path

    parse_common_billing_account_path(path: str) -> typing.Dict[str, str]

Parse a billing_account path into its component segments.

### parse_common_folder_path

    parse_common_folder_path(path: str) -> typing.Dict[str, str]

Parse a folder path into its component segments.

### parse_common_location_path

    parse_common_location_path(path: str) -> typing.Dict[str, str]

Parse a location path into its component segments.

### parse_common_organization_path

    parse_common_organization_path(path: str) -> typing.Dict[str, str]

Parse a organization path into its component segments.

### parse_common_project_path

    parse_common_project_path(path: str) -> typing.Dict[str, str]

Parse a project path into its component segments.

### parse_crypto_key_path

    parse_crypto_key_path(path: str) -> typing.Dict[str, str]

Parses a crypto_key path into its component segments.

### parse_cutover_job_path

    parse_cutover_job_path(path: str) -> typing.Dict[str, str]

Parses a cutover_job path into its component segments.

### parse_datacenter_connector_path

    parse_datacenter_connector_path(path: str) -> typing.Dict[str, str]

Parses a datacenter_connector path into its component segments.

### parse_disk_migration_job_path

    parse_disk_migration_job_path(path: str) -> typing.Dict[str, str]

Parses a disk_migration_job path into its component segments.

### parse_group_path

    parse_group_path(path: str) -> typing.Dict[str, str]

Parses a group path into its component segments.

### parse_image_import_job_path

    parse_image_import_job_path(path: str) -> typing.Dict[str, str]

Parses a image_import_job path into its component segments.

### parse_image_import_path

    parse_image_import_path(path: str) -> typing.Dict[str, str]

Parses a image_import path into its component segments.

### parse_image_path

    parse_image_path(path: str) -> typing.Dict[str, str]

Parses a image path into its component segments.

### parse_migrating_vm_path

    parse_migrating_vm_path(path: str) -> typing.Dict[str, str]

Parses a migrating_vm path into its component segments.

### parse_replication_cycle_path

    parse_replication_cycle_path(path: str) -> typing.Dict[str, str]

Parses a replication_cycle path into its component segments.

### parse_service_account_path

    parse_service_account_path(path: str) -> typing.Dict[str, str]

Parses a service_account path into its component segments.

### parse_source_path

    parse_source_path(path: str) -> typing.Dict[str, str]

Parses a source path into its component segments.

### parse_target_project_path

    parse_target_project_path(path: str) -> typing.Dict[str, str]

Parses a target_project path into its component segments.

### parse_utilization_report_path

    parse_utilization_report_path(path: str) -> typing.Dict[str, str]

Parses a utilization_report path into its component segments.

### pause_migration

    pause_migration(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.PauseMigrationRequest, dict
            ]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Pauses a migration for a VM. If cycle tasks are
running they will be cancelled, preserving source task
data. Further replication cycles will not be triggered
while the VM is paused.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_pause_migration():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.PauseMigrationRequest.html(
            migrating_vm="migrating_vm_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_pause_migration(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.PauseMigrationRequest, dict]` The request object. Request message for 'PauseMigration' request. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [PauseMigrationResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.PauseMigrationResponse) Response message for 'PauseMigration' request. |

### remove_group_migration

    remove_group_migration(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.RemoveGroupMigrationRequest,
                dict,
            ]
        ] = None,
        *,
        group: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Removes a MigratingVm from a Group.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_remove_group_migration():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.RemoveGroupMigrationRequest.html(
            group="group_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_remove_group_migration(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.RemoveGroupMigrationRequest, dict]` The request object. Request message for 'RemoveMigration' request. |
| `group` | `str` Required. The name of the Group. This corresponds to the `group` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [RemoveGroupMigrationResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.RemoveGroupMigrationResponse) Response message for 'RemoveMigration' request. |

### replication_cycle_path

    replication_cycle_path(
        project: str, location: str, source: str, migrating_vm: str, replication_cycle: str
    ) -> str

Returns a fully-qualified replication_cycle string.

### resume_migration

    resume_migration(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.ResumeMigrationRequest, dict
            ]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Resumes a migration for a VM. When called on a paused
migration, will start the process of uploading data and
creating snapshots; when called on a completed cut-over
migration, will update the migration to active state and
start the process of uploading data and creating
snapshots.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_resume_migration():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ResumeMigrationRequest.html(
            migrating_vm="migrating_vm_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_resume_migration(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ResumeMigrationRequest, dict]` The request object. Request message for 'ResumeMigration' request. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [ResumeMigrationResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ResumeMigrationResponse) Response message for 'ResumeMigration' request. |

### run_disk_migration_job

    run_disk_migration_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.RunDiskMigrationJobRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Runs the disk migration job.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_run_disk_migration_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.RunDiskMigrationJobRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_run_disk_migration_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.RunDiskMigrationJobRequest, dict]` The request object. Request message for 'RunDiskMigrationJobRequest' request. |
| `name` | `str` Required. The name of the DiskMigrationJob. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [RunDiskMigrationJobResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.RunDiskMigrationJobResponse) Response message for 'RunDiskMigrationJob' request. |

### service_account_path

    service_account_path(project: str, service_account: str) -> str

Returns a fully-qualified service_account string.

### source_path

    source_path(project: str, location: str, source: str) -> str

Returns a fully-qualified source string.

### start_migration

    start_migration(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.StartMigrationRequest, dict
            ]
        ] = None,
        *,
        migrating_vm: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Starts migration for a VM. Starts the process of
uploading data and creating snapshots, in replication
cycles scheduled by the policy.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_start_migration():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.StartMigrationRequest.html(
            migrating_vm="migrating_vm_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_start_migration(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.StartMigrationRequest, dict]` The request object. Request message for 'StartMigrationRequest' request. |
| `migrating_vm` | `str` Required. The name of the MigratingVm. This corresponds to the `migrating_vm` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [StartMigrationResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.StartMigrationResponse) Response message for 'StartMigration' request. |

### target_project_path

    target_project_path(project: str, location: str, target_project: str) -> str

Returns a fully-qualified target_project string.

### update_disk_migration_job

    update_disk_migration_job(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.UpdateDiskMigrationJobRequest,
                dict,
            ]
        ] = None,
        *,
        disk_migration_job: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.DiskMigrationJob
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates the parameters of a single DiskMigrationJob.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_update_disk_migration_job():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        disk_migration_job = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DiskMigrationJob.html()
        disk_migration_job.aws_source_disk_details.volume_id = "volume_id_value"
        disk_migration_job.target_details.target_disk.zone = "zone_value"
        disk_migration_job.target_details.target_disk.disk_type = "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED"
        disk_migration_job.target_details.target_project = "target_project_value"

        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateDiskMigrationJobRequest.html(
            disk_migration_job=disk_migration_job,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_update_disk_migration_job(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateDiskMigrationJobRequest, dict]` The request object. Request message for 'UpdateDiskMigrationJob' request. |
| `disk_migration_job` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DiskMigrationJob` Required. The update request body. This corresponds to the `disk_migration_job` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Optional. Field mask is used to specify the fields to be overwritten in the DiskMigrationJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask, then a mask equivalent to all fields that are populated (have a non-empty value), will be implied. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [DiskMigrationJob](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.DiskMigrationJob) Describes the disk which will be migrated from the source environment. The source disk has to be unattached. |

### update_group

    update_group(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.UpdateGroupRequest, dict
            ]
        ] = None,
        *,
        group: typing.Optional[google.cloud.vmmigration_v1.types.vmmigration.Group] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates the parameters of a single Group.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_update_group():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateGroupRequest.html(
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_update_group(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateGroupRequest, dict]` The request object. Update message for 'UpdateGroups' request. |
| `group` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Group` Required. The update request body. This corresponds to the `group` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Field mask is used to specify the fields to be overwritten in the Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Group](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Group) Describes message for 'Group' resource. The Group is a collections of several MigratingVms. |

### update_migrating_vm

    update_migrating_vm(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.UpdateMigratingVmRequest, dict
            ]
        ] = None,
        *,
        migrating_vm: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.MigratingVm
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates the parameters of a single MigratingVm.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_update_migrating_vm():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateMigratingVmRequest.html(
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_update_migrating_vm(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateMigratingVmRequest, dict]` The request object. Request message for 'UpdateMigratingVm' request. |
| `migrating_vm` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.MigratingVm` Required. The update request body. This corresponds to the `migrating_vm` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Field mask is used to specify the fields to be overwritten in the MigratingVm resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [MigratingVm](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.MigratingVm) MigratingVm describes the VM that will be migrated from a Source environment and its replication state. |

### update_source

    update_source(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.UpdateSourceRequest, dict
            ]
        ] = None,
        *,
        source: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.Source
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates the parameters of a single Source.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_update_source():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateSourceRequest.html(
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_update_source(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateSourceRequest, dict]` The request object. Update message for 'UpdateSources' request. |
| `source` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Source` Required. The update request body. This corresponds to the `source` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Field mask is used to specify the fields to be overwritten in the Source resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Source](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.Source) Source message describes a specific vm migration Source resource. It contains the source environment information. |

### update_target_project

    update_target_project(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.UpdateTargetProjectRequest,
                dict,
            ]
        ] = None,
        *,
        target_project: typing.Optional[
            google.cloud.vmmigration_v1.types.vmmigration.TargetProject
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates the parameters of a single TargetProject.

NOTE: TargetProject is a global resource; hence the only
supported value for location is `global`.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_update_target_project():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        target_project = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.TargetProject.html()
        target_project.project = "project_value"

        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateTargetProjectRequest.html(
            target_project=target_project,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_update_target_project(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpdateTargetProjectRequest, dict]` The request object. Update message for 'UpdateTargetProject' request. |
| `target_project` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.TargetProject` Required. The update request body. This corresponds to the `target_project` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Field mask is used to specify the fields to be overwritten in the TargetProject resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [TargetProject](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.TargetProject) TargetProject message represents a target Compute Engine project for a migration or a clone. |

### upgrade_appliance

    upgrade_appliance(
        request: typing.Optional[
            typing.Union[
                google.cloud.vmmigration_v1.types.vmmigration.UpgradeApplianceRequest, dict
            ]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Upgrades the appliance relate to this
DatacenterConnector to the in-place updateable version.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/vmmigration/latest

    def sample_upgrade_appliance():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/vmmigration/latest.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpgradeApplianceRequest.html(
            datacenter_connector="datacenter_connector_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.services.vm_migration.VmMigrationClient.html#google_cloud_vmmigration_v1_services_vm_migration_VmMigrationClient_upgrade_appliance(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpgradeApplianceRequest, dict]` The request object. Request message for 'UpgradeAppliance' request. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [UpgradeApplianceResponse](https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.UpgradeApplianceResponse) Response message for 'UpgradeAppliance' request. |

### utilization_report_path

    utilization_report_path(
        project: str, location: str, source: str, utilization_report: str
    ) -> str

Returns a fully-qualified utilization_report string.