VM Migration v1 API - Class VmMigrationClient (2.3.0)

Stay organized with collections Save and categorize content based on your preferences.
public abstract class VmMigrationClient

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

VmMigration client wrapper, for convenient use.

Inheritance

Object > VmMigrationClient

Derived Types

Namespace

Google.Cloud.VMMigration.V1

Assembly

Google.Cloud.VMMigration.V1.dll

Remarks

VM Migration Service

Properties

AddGroupMigrationOperationsClient

public virtual OperationsClient AddGroupMigrationOperationsClient { get; }

The long-running operations client for AddGroupMigration.

Property Value
TypeDescription
OperationsClient

CancelCloneJobOperationsClient

public virtual OperationsClient CancelCloneJobOperationsClient { get; }

The long-running operations client for CancelCloneJob.

Property Value
TypeDescription
OperationsClient

CancelCutoverJobOperationsClient

public virtual OperationsClient CancelCutoverJobOperationsClient { get; }

The long-running operations client for CancelCutoverJob.

Property Value
TypeDescription
OperationsClient

CreateCloneJobOperationsClient

public virtual OperationsClient CreateCloneJobOperationsClient { get; }

The long-running operations client for CreateCloneJob.

Property Value
TypeDescription
OperationsClient

CreateCutoverJobOperationsClient

public virtual OperationsClient CreateCutoverJobOperationsClient { get; }

The long-running operations client for CreateCutoverJob.

Property Value
TypeDescription
OperationsClient

CreateDatacenterConnectorOperationsClient

public virtual OperationsClient CreateDatacenterConnectorOperationsClient { get; }

The long-running operations client for CreateDatacenterConnector.

Property Value
TypeDescription
OperationsClient

CreateGroupOperationsClient

public virtual OperationsClient CreateGroupOperationsClient { get; }

The long-running operations client for CreateGroup.

Property Value
TypeDescription
OperationsClient

CreateMigratingVmOperationsClient

public virtual OperationsClient CreateMigratingVmOperationsClient { get; }

The long-running operations client for CreateMigratingVm.

Property Value
TypeDescription
OperationsClient

CreateSourceOperationsClient

public virtual OperationsClient CreateSourceOperationsClient { get; }

The long-running operations client for CreateSource.

Property Value
TypeDescription
OperationsClient

CreateTargetProjectOperationsClient

public virtual OperationsClient CreateTargetProjectOperationsClient { get; }

The long-running operations client for CreateTargetProject.

Property Value
TypeDescription
OperationsClient

CreateUtilizationReportOperationsClient

public virtual OperationsClient CreateUtilizationReportOperationsClient { get; }

The long-running operations client for CreateUtilizationReport.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the VmMigration service, which is a host of "vmmigration.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default VmMigration scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default VmMigration scopes are:

DeleteDatacenterConnectorOperationsClient

public virtual OperationsClient DeleteDatacenterConnectorOperationsClient { get; }

The long-running operations client for DeleteDatacenterConnector.

Property Value
TypeDescription
OperationsClient

DeleteGroupOperationsClient

public virtual OperationsClient DeleteGroupOperationsClient { get; }

The long-running operations client for DeleteGroup.

Property Value
TypeDescription
OperationsClient

DeleteMigratingVmOperationsClient

public virtual OperationsClient DeleteMigratingVmOperationsClient { get; }

The long-running operations client for DeleteMigratingVm.

Property Value
TypeDescription
OperationsClient

DeleteSourceOperationsClient

public virtual OperationsClient DeleteSourceOperationsClient { get; }

The long-running operations client for DeleteSource.

Property Value
TypeDescription
OperationsClient

DeleteTargetProjectOperationsClient

public virtual OperationsClient DeleteTargetProjectOperationsClient { get; }

The long-running operations client for DeleteTargetProject.

Property Value
TypeDescription
OperationsClient

DeleteUtilizationReportOperationsClient

public virtual OperationsClient DeleteUtilizationReportOperationsClient { get; }

The long-running operations client for DeleteUtilizationReport.

Property Value
TypeDescription
OperationsClient

FinalizeMigrationOperationsClient

public virtual OperationsClient FinalizeMigrationOperationsClient { get; }

The long-running operations client for FinalizeMigration.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual VmMigration.VmMigrationClient GrpcClient { get; }

The underlying gRPC VmMigration client

Property Value
TypeDescription
VmMigration.VmMigrationClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

PauseMigrationOperationsClient

public virtual OperationsClient PauseMigrationOperationsClient { get; }

The long-running operations client for PauseMigration.

Property Value
TypeDescription
OperationsClient

RemoveGroupMigrationOperationsClient

public virtual OperationsClient RemoveGroupMigrationOperationsClient { get; }

The long-running operations client for RemoveGroupMigration.

Property Value
TypeDescription
OperationsClient

ResumeMigrationOperationsClient

public virtual OperationsClient ResumeMigrationOperationsClient { get; }

The long-running operations client for ResumeMigration.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

StartMigrationOperationsClient

public virtual OperationsClient StartMigrationOperationsClient { get; }

The long-running operations client for StartMigration.

Property Value
TypeDescription
OperationsClient

UpdateGroupOperationsClient

public virtual OperationsClient UpdateGroupOperationsClient { get; }

The long-running operations client for UpdateGroup.

Property Value
TypeDescription
OperationsClient

UpdateMigratingVmOperationsClient

public virtual OperationsClient UpdateMigratingVmOperationsClient { get; }

The long-running operations client for UpdateMigratingVm.

Property Value
TypeDescription
OperationsClient

UpdateSourceOperationsClient

public virtual OperationsClient UpdateSourceOperationsClient { get; }

The long-running operations client for UpdateSource.

Property Value
TypeDescription
OperationsClient

UpdateTargetProjectOperationsClient

public virtual OperationsClient UpdateTargetProjectOperationsClient { get; }

The long-running operations client for UpdateTargetProject.

Property Value
TypeDescription
OperationsClient

UpgradeApplianceOperationsClient

public virtual OperationsClient UpgradeApplianceOperationsClient { get; }

The long-running operations client for UpgradeAppliance.

Property Value
TypeDescription
OperationsClient

Methods

AddGroupMigration(AddGroupMigrationRequest, CallSettings)

public virtual Operation<AddGroupMigrationResponse, OperationMetadata> AddGroupMigration(AddGroupMigrationRequest request, CallSettings callSettings = null)

Adds a MigratingVm to a Group.

Parameters
NameDescription
requestAddGroupMigrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AddGroupMigrationResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
AddGroupMigrationRequest request = new AddGroupMigrationRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = vmMigrationClient.AddGroupMigration(request);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceAddGroupMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

AddGroupMigration(GroupName, CallSettings)

public virtual Operation<AddGroupMigrationResponse, OperationMetadata> AddGroupMigration(GroupName group, CallSettings callSettings = null)

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupGroupName

Required. The full path name of the Group to add to.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AddGroupMigrationResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = vmMigrationClient.AddGroupMigration(group);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceAddGroupMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

AddGroupMigration(String, CallSettings)

public virtual Operation<AddGroupMigrationResponse, OperationMetadata> AddGroupMigration(string group, CallSettings callSettings = null)

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupString

Required. The full path name of the Group to add to.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AddGroupMigrationResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = vmMigrationClient.AddGroupMigration(group);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceAddGroupMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

AddGroupMigrationAsync(AddGroupMigrationRequest, CallSettings)

public virtual Task<Operation<AddGroupMigrationResponse, OperationMetadata>> AddGroupMigrationAsync(AddGroupMigrationRequest request, CallSettings callSettings = null)

Adds a MigratingVm to a Group.

Parameters
NameDescription
requestAddGroupMigrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
AddGroupMigrationRequest request = new AddGroupMigrationRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.AddGroupMigrationAsync(request);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceAddGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

AddGroupMigrationAsync(AddGroupMigrationRequest, CancellationToken)

public virtual Task<Operation<AddGroupMigrationResponse, OperationMetadata>> AddGroupMigrationAsync(AddGroupMigrationRequest request, CancellationToken cancellationToken)

Adds a MigratingVm to a Group.

Parameters
NameDescription
requestAddGroupMigrationRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
AddGroupMigrationRequest request = new AddGroupMigrationRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.AddGroupMigrationAsync(request);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceAddGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

AddGroupMigrationAsync(GroupName, CallSettings)

public virtual Task<Operation<AddGroupMigrationResponse, OperationMetadata>> AddGroupMigrationAsync(GroupName group, CallSettings callSettings = null)

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupGroupName

Required. The full path name of the Group to add to.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.AddGroupMigrationAsync(group);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceAddGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

AddGroupMigrationAsync(GroupName, CancellationToken)

public virtual Task<Operation<AddGroupMigrationResponse, OperationMetadata>> AddGroupMigrationAsync(GroupName group, CancellationToken cancellationToken)

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupGroupName

Required. The full path name of the Group to add to.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.AddGroupMigrationAsync(group);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceAddGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

AddGroupMigrationAsync(String, CallSettings)

public virtual Task<Operation<AddGroupMigrationResponse, OperationMetadata>> AddGroupMigrationAsync(string group, CallSettings callSettings = null)

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupString

Required. The full path name of the Group to add to.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.AddGroupMigrationAsync(group);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceAddGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

AddGroupMigrationAsync(String, CancellationToken)

public virtual Task<Operation<AddGroupMigrationResponse, OperationMetadata>> AddGroupMigrationAsync(string group, CancellationToken cancellationToken)

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupString

Required. The full path name of the Group to add to.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<AddGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.AddGroupMigrationAsync(group);

// Poll until the returned long-running operation is complete
Operation<AddGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AddGroupMigrationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AddGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceAddGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AddGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJob(CancelCloneJobRequest, CallSettings)

public virtual Operation<CancelCloneJobResponse, OperationMetadata> CancelCloneJob(CancelCloneJobRequest request, CallSettings callSettings = null)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
requestCancelCloneJobRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCloneJobResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CancelCloneJobRequest request = new CancelCloneJobRequest
{
    CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = vmMigrationClient.CancelCloneJob(request);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCancelCloneJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJob(CloneJobName, CallSettings)

public virtual Operation<CancelCloneJobResponse, OperationMetadata> CancelCloneJob(CloneJobName name, CallSettings callSettings = null)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameCloneJobName

Required. The clone job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCloneJobResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CloneJobName name = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]");
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = vmMigrationClient.CancelCloneJob(name);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCancelCloneJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJob(String, CallSettings)

public virtual Operation<CancelCloneJobResponse, OperationMetadata> CancelCloneJob(string name, CallSettings callSettings = null)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameString

Required. The clone job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCloneJobResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]/cloneJobs/[CLONE_JOB]";
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = vmMigrationClient.CancelCloneJob(name);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCancelCloneJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJobAsync(CancelCloneJobRequest, CallSettings)

public virtual Task<Operation<CancelCloneJobResponse, OperationMetadata>> CancelCloneJobAsync(CancelCloneJobRequest request, CallSettings callSettings = null)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
requestCancelCloneJobRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CancelCloneJobRequest request = new CancelCloneJobRequest
{
    CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCloneJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJobAsync(CancelCloneJobRequest, CancellationToken)

public virtual Task<Operation<CancelCloneJobResponse, OperationMetadata>> CancelCloneJobAsync(CancelCloneJobRequest request, CancellationToken cancellationToken)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
requestCancelCloneJobRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CancelCloneJobRequest request = new CancelCloneJobRequest
{
    CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCloneJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJobAsync(CloneJobName, CallSettings)

public virtual Task<Operation<CancelCloneJobResponse, OperationMetadata>> CancelCloneJobAsync(CloneJobName name, CallSettings callSettings = null)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameCloneJobName

Required. The clone job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CloneJobName name = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]");
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCloneJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJobAsync(CloneJobName, CancellationToken)

public virtual Task<Operation<CancelCloneJobResponse, OperationMetadata>> CancelCloneJobAsync(CloneJobName name, CancellationToken cancellationToken)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameCloneJobName

Required. The clone job id

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CloneJobName name = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]");
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCloneJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJobAsync(String, CallSettings)

public virtual Task<Operation<CancelCloneJobResponse, OperationMetadata>> CancelCloneJobAsync(string name, CallSettings callSettings = null)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameString

Required. The clone job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]/cloneJobs/[CLONE_JOB]";
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCloneJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCloneJobAsync(String, CancellationToken)

public virtual Task<Operation<CancelCloneJobResponse, OperationMetadata>> CancelCloneJobAsync(string name, CancellationToken cancellationToken)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameString

Required. The clone job id

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]/cloneJobs/[CLONE_JOB]";
// Make the request
Operation<CancelCloneJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCloneJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<CancelCloneJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCloneJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCloneJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCloneJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCutoverJob(CancelCutoverJobRequest, CallSettings)

public virtual Operation<CancelCutoverJobResponse, OperationMetadata> CancelCutoverJob(CancelCutoverJobRequest request, CallSettings callSettings = null)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
requestCancelCutoverJobRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCutoverJobResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CancelCutoverJobRequest request = new CancelCutoverJobRequest
{
    CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
Operation<CancelCutoverJobResponse, OperationMetadata> response = vmMigrationClient.CancelCutoverJob(request);

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CancelCutoverJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCutoverJobResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCancelCutoverJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCutoverJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCutoverJob(CutoverJobName, CallSettings)

public virtual Operation<CancelCutoverJobResponse, OperationMetadata> CancelCutoverJob(CutoverJobName name, CallSettings callSettings = null)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameCutoverJobName

Required. The cutover job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCutoverJobResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CutoverJobName name = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]");
// Make the request
Operation<CancelCutoverJobResponse, OperationMetadata> response = vmMigrationClient.CancelCutoverJob(name);

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CancelCutoverJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCutoverJobResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCancelCutoverJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCutoverJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCutoverJob(String, CallSettings)

public virtual Operation<CancelCutoverJobResponse, OperationMetadata> CancelCutoverJob(string name, CallSettings callSettings = null)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameString

Required. The cutover job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCutoverJobResponse, OperationMetadata>

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]/cutoverJobs/[CUTOVER_JOB]";
// Make the request
Operation<CancelCutoverJobResponse, OperationMetadata> response = vmMigrationClient.CancelCutoverJob(name);

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CancelCutoverJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCutoverJobResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCancelCutoverJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCutoverJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCutoverJobAsync(CancelCutoverJobRequest, CallSettings)

public virtual Task<Operation<CancelCutoverJobResponse, OperationMetadata>> CancelCutoverJobAsync(CancelCutoverJobRequest request, CallSettings callSettings = null)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
requestCancelCutoverJobRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CancelCutoverJobRequest request = new CancelCutoverJobRequest
{
    CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
Operation<CancelCutoverJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCutoverJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCutoverJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCutoverJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCutoverJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCutoverJobAsync(CancelCutoverJobRequest, CancellationToken)

public virtual Task<Operation<CancelCutoverJobResponse, OperationMetadata>> CancelCutoverJobAsync(CancelCutoverJobRequest request, CancellationToken cancellationToken)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
requestCancelCutoverJobRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CancelCutoverJobRequest request = new CancelCutoverJobRequest
{
    CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
Operation<CancelCutoverJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCutoverJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCutoverJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCutoverJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCutoverJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCutoverJobAsync(CutoverJobName, CallSettings)

public virtual Task<Operation<CancelCutoverJobResponse, OperationMetadata>> CancelCutoverJobAsync(CutoverJobName name, CallSettings callSettings = null)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameCutoverJobName

Required. The cutover job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CutoverJobName name = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]");
// Make the request
Operation<CancelCutoverJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCutoverJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCutoverJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCutoverJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCutoverJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCutoverJobAsync(CutoverJobName, CancellationToken)

public virtual Task<Operation<CancelCutoverJobResponse, OperationMetadata>> CancelCutoverJobAsync(CutoverJobName name, CancellationToken cancellationToken)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameCutoverJobName

Required. The cutover job id

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CutoverJobName name = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]");
// Make the request
Operation<CancelCutoverJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCutoverJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CancelCutoverJobResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CancelCutoverJobResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCancelCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CancelCutoverJobResponse retrievedResult = retrievedResponse.Result;
}

CancelCutoverJobAsync(String, CallSettings)

public virtual Task<Operation<CancelCutoverJobResponse, OperationMetadata>> CancelCutoverJobAsync(string name, CallSettings callSettings = null)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameString

Required. The cutover job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]/cutoverJobs/[CUTOVER_JOB]";
// Make the request
Operation<CancelCutoverJobResponse, OperationMetadata> response = await vmMigrationClient.CancelCutoverJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retriev