VM Migration v1 API - Class VmMigrationClient (2.5.0)

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
IReadOnlyListstring
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
VmMigrationVmMigrationClient

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
OperationAddGroupMigrationResponseOperationMetadata

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
OperationAddGroupMigrationResponseOperationMetadata

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
OperationAddGroupMigrationResponseOperationMetadata

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
TaskOperationAddGroupMigrationResponseOperationMetadata

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
TaskOperationAddGroupMigrationResponseOperationMetadata

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
TaskOperationAddGroupMigrationResponseOperationMetadata

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
TaskOperationAddGroupMigrationResponseOperationMetadata

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
TaskOperationAddGroupMigrationResponseOperationMetadata

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
TaskOperationAddGroupMigrationResponseOperationMetadata

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
OperationCancelCloneJobResponseOperationMetadata

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
OperationCancelCloneJobResponseOperationMetadata

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
OperationCancelCloneJobResponseOperationMetadata

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
TaskOperationCancelCloneJobResponseOperationMetadata

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
TaskOperationCancelCloneJobResponseOperationMetadata

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
TaskOperationCancelCloneJobResponseOperationMetadata

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
TaskOperationCancelCloneJobResponseOperationMetadata

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
TaskOperationCancelCloneJobResponseOperationMetadata

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
TaskOperationCancelCloneJobResponseOperationMetadata

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
OperationCancelCutoverJobResponseOperationMetadata

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
OperationCancelCutoverJobResponseOperationMetadata

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
OperationCancelCutoverJobResponseOperationMetadata

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
TaskOperationCancelCutoverJobResponseOperationMetadata

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
TaskOperationCancelCutoverJobResponseOperationMetadata

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
TaskOperationCancelCutoverJobResponseOperationMetadata

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
TaskOperationCancelCutoverJobResponseOperationMetadata

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
TaskOperationCancelCutoverJobResponseOperationMetadata

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();
// 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, CancellationToken)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
namestring

Required. The cutover job id

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCancelCutoverJobResponseOperationMetadata

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();
// 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;
}

Create()

public static VmMigrationClient Create()

Synchronously creates a VmMigrationClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use VmMigrationClientBuilder.

Returns
TypeDescription
VmMigrationClient

The created VmMigrationClient.

CreateAsync(CancellationToken)

public static Task<VmMigrationClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a VmMigrationClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use VmMigrationClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskVmMigrationClient

The task representing the created VmMigrationClient.

CreateCloneJob(CreateCloneJobRequest, CallSettings)

public virtual Operation<CloneJob, OperationMetadata> CreateCloneJob(CreateCloneJobRequest request, CallSettings callSettings = null)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
requestCreateCloneJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCloneJobOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateCloneJobRequest request = new CreateCloneJobRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    CloneJobId = "",
    CloneJob = new CloneJob(),
    RequestId = "",
};
// Make the request
Operation<CloneJob, OperationMetadata> response = vmMigrationClient.CreateCloneJob(request);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateCloneJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCloneJob(MigratingVmName, CloneJob, string, CallSettings)

public virtual Operation<CloneJob, OperationMetadata> CreateCloneJob(MigratingVmName parent, CloneJob cloneJob, string cloneJobId, CallSettings callSettings = null)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
parentMigratingVmName

Required. The Clone's parent.

cloneJobCloneJob

Required. The clone request body.

cloneJobIdstring

Required. The clone job identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCloneJobOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
CloneJob cloneJob = new CloneJob();
string cloneJobId = "";
// Make the request
Operation<CloneJob, OperationMetadata> response = vmMigrationClient.CreateCloneJob(parent, cloneJob, cloneJobId);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateCloneJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCloneJob(string, CloneJob, string, CallSettings)

public virtual Operation<CloneJob, OperationMetadata> CreateCloneJob(string parent, CloneJob cloneJob, string cloneJobId, CallSettings callSettings = null)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
parentstring

Required. The Clone's parent.

cloneJobCloneJob

Required. The clone request body.

cloneJobIdstring

Required. The clone job identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCloneJobOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
CloneJob cloneJob = new CloneJob();
string cloneJobId = "";
// Make the request
Operation<CloneJob, OperationMetadata> response = vmMigrationClient.CreateCloneJob(parent, cloneJob, cloneJobId);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateCloneJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCloneJobAsync(CreateCloneJobRequest, CallSettings)

public virtual Task<Operation<CloneJob, OperationMetadata>> CreateCloneJobAsync(CreateCloneJobRequest request, CallSettings callSettings = null)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
requestCreateCloneJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCloneJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateCloneJobRequest request = new CreateCloneJobRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    CloneJobId = "",
    CloneJob = new CloneJob(),
    RequestId = "",
};
// Make the request
Operation<CloneJob, OperationMetadata> response = await vmMigrationClient.CreateCloneJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCloneJobAsync(CreateCloneJobRequest, CancellationToken)

public virtual Task<Operation<CloneJob, OperationMetadata>> CreateCloneJobAsync(CreateCloneJobRequest request, CancellationToken cancellationToken)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
requestCreateCloneJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCloneJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateCloneJobRequest request = new CreateCloneJobRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    CloneJobId = "",
    CloneJob = new CloneJob(),
    RequestId = "",
};
// Make the request
Operation<CloneJob, OperationMetadata> response = await vmMigrationClient.CreateCloneJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCloneJobAsync(MigratingVmName, CloneJob, string, CallSettings)

public virtual Task<Operation<CloneJob, OperationMetadata>> CreateCloneJobAsync(MigratingVmName parent, CloneJob cloneJob, string cloneJobId, CallSettings callSettings = null)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
parentMigratingVmName

Required. The Clone's parent.

cloneJobCloneJob

Required. The clone request body.

cloneJobIdstring

Required. The clone job identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCloneJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
CloneJob cloneJob = new CloneJob();
string cloneJobId = "";
// Make the request
Operation<CloneJob, OperationMetadata> response = await vmMigrationClient.CreateCloneJobAsync(parent, cloneJob, cloneJobId);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCloneJobAsync(MigratingVmName, CloneJob, string, CancellationToken)

public virtual Task<Operation<CloneJob, OperationMetadata>> CreateCloneJobAsync(MigratingVmName parent, CloneJob cloneJob, string cloneJobId, CancellationToken cancellationToken)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
parentMigratingVmName

Required. The Clone's parent.

cloneJobCloneJob

Required. The clone request body.

cloneJobIdstring

Required. The clone job identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCloneJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
CloneJob cloneJob = new CloneJob();
string cloneJobId = "";
// Make the request
Operation<CloneJob, OperationMetadata> response = await vmMigrationClient.CreateCloneJobAsync(parent, cloneJob, cloneJobId);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCloneJobAsync(string, CloneJob, string, CallSettings)

public virtual Task<Operation<CloneJob, OperationMetadata>> CreateCloneJobAsync(string parent, CloneJob cloneJob, string cloneJobId, CallSettings callSettings = null)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
parentstring

Required. The Clone's parent.

cloneJobCloneJob

Required. The clone request body.

cloneJobIdstring

Required. The clone job identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCloneJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
CloneJob cloneJob = new CloneJob();
string cloneJobId = "";
// Make the request
Operation<CloneJob, OperationMetadata> response = await vmMigrationClient.CreateCloneJobAsync(parent, cloneJob, cloneJobId);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCloneJobAsync(string, CloneJob, string, CancellationToken)

public virtual Task<Operation<CloneJob, OperationMetadata>> CreateCloneJobAsync(string parent, CloneJob cloneJob, string cloneJobId, CancellationToken cancellationToken)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
parentstring

Required. The Clone's parent.

cloneJobCloneJob

Required. The clone request body.

cloneJobIdstring

Required. The clone job identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCloneJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
CloneJob cloneJob = new CloneJob();
string cloneJobId = "";
// Make the request
Operation<CloneJob, OperationMetadata> response = await vmMigrationClient.CreateCloneJobAsync(parent, cloneJob, cloneJobId);

// Poll until the returned long-running operation is complete
Operation<CloneJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CloneJob 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<CloneJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCloneJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CloneJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJob(CreateCutoverJobRequest, CallSettings)

public virtual Operation<CutoverJob, OperationMetadata> CreateCutoverJob(CreateCutoverJobRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestCreateCutoverJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCutoverJobOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateCutoverJobRequest request = new CreateCutoverJobRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    CutoverJobId = "",
    CutoverJob = new CutoverJob(),
    RequestId = "",
};
// Make the request
Operation<CutoverJob, OperationMetadata> response = vmMigrationClient.CreateCutoverJob(request);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateCutoverJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJob(MigratingVmName, CutoverJob, string, CallSettings)

public virtual Operation<CutoverJob, OperationMetadata> CreateCutoverJob(MigratingVmName parent, CutoverJob cutoverJob, string cutoverJobId, CallSettings callSettings = null)

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.

Parameters
NameDescription
parentMigratingVmName

Required. The Cutover's parent.

cutoverJobCutoverJob

Required. The cutover request body.

cutoverJobIdstring

Required. The cutover job identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCutoverJobOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
CutoverJob cutoverJob = new CutoverJob();
string cutoverJobId = "";
// Make the request
Operation<CutoverJob, OperationMetadata> response = vmMigrationClient.CreateCutoverJob(parent, cutoverJob, cutoverJobId);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateCutoverJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJob(string, CutoverJob, string, CallSettings)

public virtual Operation<CutoverJob, OperationMetadata> CreateCutoverJob(string parent, CutoverJob cutoverJob, string cutoverJobId, CallSettings callSettings = null)

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.

Parameters
NameDescription
parentstring

Required. The Cutover's parent.

cutoverJobCutoverJob

Required. The cutover request body.

cutoverJobIdstring

Required. The cutover job identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCutoverJobOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
CutoverJob cutoverJob = new CutoverJob();
string cutoverJobId = "";
// Make the request
Operation<CutoverJob, OperationMetadata> response = vmMigrationClient.CreateCutoverJob(parent, cutoverJob, cutoverJobId);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateCutoverJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJobAsync(CreateCutoverJobRequest, CallSettings)

public virtual Task<Operation<CutoverJob, OperationMetadata>> CreateCutoverJobAsync(CreateCutoverJobRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestCreateCutoverJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCutoverJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateCutoverJobRequest request = new CreateCutoverJobRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    CutoverJobId = "",
    CutoverJob = new CutoverJob(),
    RequestId = "",
};
// Make the request
Operation<CutoverJob, OperationMetadata> response = await vmMigrationClient.CreateCutoverJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJobAsync(CreateCutoverJobRequest, CancellationToken)

public virtual Task<Operation<CutoverJob, OperationMetadata>> CreateCutoverJobAsync(CreateCutoverJobRequest request, CancellationToken cancellationToken)

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.

Parameters
NameDescription
requestCreateCutoverJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCutoverJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateCutoverJobRequest request = new CreateCutoverJobRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    CutoverJobId = "",
    CutoverJob = new CutoverJob(),
    RequestId = "",
};
// Make the request
Operation<CutoverJob, OperationMetadata> response = await vmMigrationClient.CreateCutoverJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJobAsync(MigratingVmName, CutoverJob, string, CallSettings)

public virtual Task<Operation<CutoverJob, OperationMetadata>> CreateCutoverJobAsync(MigratingVmName parent, CutoverJob cutoverJob, string cutoverJobId, CallSettings callSettings = null)

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.

Parameters
NameDescription
parentMigratingVmName

Required. The Cutover's parent.

cutoverJobCutoverJob

Required. The cutover request body.

cutoverJobIdstring

Required. The cutover job identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCutoverJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
CutoverJob cutoverJob = new CutoverJob();
string cutoverJobId = "";
// Make the request
Operation<CutoverJob, OperationMetadata> response = await vmMigrationClient.CreateCutoverJobAsync(parent, cutoverJob, cutoverJobId);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJobAsync(MigratingVmName, CutoverJob, string, CancellationToken)

public virtual Task<Operation<CutoverJob, OperationMetadata>> CreateCutoverJobAsync(MigratingVmName parent, CutoverJob cutoverJob, string cutoverJobId, CancellationToken cancellationToken)

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.

Parameters
NameDescription
parentMigratingVmName

Required. The Cutover's parent.

cutoverJobCutoverJob

Required. The cutover request body.

cutoverJobIdstring

Required. The cutover job identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCutoverJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
CutoverJob cutoverJob = new CutoverJob();
string cutoverJobId = "";
// Make the request
Operation<CutoverJob, OperationMetadata> response = await vmMigrationClient.CreateCutoverJobAsync(parent, cutoverJob, cutoverJobId);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJobAsync(string, CutoverJob, string, CallSettings)

public virtual Task<Operation<CutoverJob, OperationMetadata>> CreateCutoverJobAsync(string parent, CutoverJob cutoverJob, string cutoverJobId, CallSettings callSettings = null)

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.

Parameters
NameDescription
parentstring

Required. The Cutover's parent.

cutoverJobCutoverJob

Required. The cutover request body.

cutoverJobIdstring

Required. The cutover job identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCutoverJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
CutoverJob cutoverJob = new CutoverJob();
string cutoverJobId = "";
// Make the request
Operation<CutoverJob, OperationMetadata> response = await vmMigrationClient.CreateCutoverJobAsync(parent, cutoverJob, cutoverJobId);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateCutoverJobAsync(string, CutoverJob, string, CancellationToken)

public virtual Task<Operation<CutoverJob, OperationMetadata>> CreateCutoverJobAsync(string parent, CutoverJob cutoverJob, string cutoverJobId, CancellationToken cancellationToken)

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.

Parameters
NameDescription
parentstring

Required. The Cutover's parent.

cutoverJobCutoverJob

Required. The cutover request body.

cutoverJobIdstring

Required. The cutover job identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCutoverJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
CutoverJob cutoverJob = new CutoverJob();
string cutoverJobId = "";
// Make the request
Operation<CutoverJob, OperationMetadata> response = await vmMigrationClient.CreateCutoverJobAsync(parent, cutoverJob, cutoverJobId);

// Poll until the returned long-running operation is complete
Operation<CutoverJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CutoverJob 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<CutoverJob, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateCutoverJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CutoverJob retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnector(CreateDatacenterConnectorRequest, CallSettings)

public virtual Operation<DatacenterConnector, OperationMetadata> CreateDatacenterConnector(CreateDatacenterConnectorRequest request, CallSettings callSettings = null)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
requestCreateDatacenterConnectorRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationDatacenterConnectorOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateDatacenterConnectorRequest request = new CreateDatacenterConnectorRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    DatacenterConnectorId = "",
    DatacenterConnector = new DatacenterConnector(),
    RequestId = "",
};
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = vmMigrationClient.CreateDatacenterConnector(request);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnector(SourceName, DatacenterConnector, string, CallSettings)

public virtual Operation<DatacenterConnector, OperationMetadata> CreateDatacenterConnector(SourceName parent, DatacenterConnector datacenterConnector, string datacenterConnectorId, CallSettings callSettings = null)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
parentSourceName

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

datacenterConnectorDatacenterConnector

Required. The create request body.

datacenterConnectorIdstring

Required. The datacenterConnector identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationDatacenterConnectorOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
DatacenterConnector datacenterConnector = new DatacenterConnector();
string datacenterConnectorId = "";
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = vmMigrationClient.CreateDatacenterConnector(parent, datacenterConnector, datacenterConnectorId);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnector(string, DatacenterConnector, string, CallSettings)

public virtual Operation<DatacenterConnector, OperationMetadata> CreateDatacenterConnector(string parent, DatacenterConnector datacenterConnector, string datacenterConnectorId, CallSettings callSettings = null)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
parentstring

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

datacenterConnectorDatacenterConnector

Required. The create request body.

datacenterConnectorIdstring

Required. The datacenterConnector identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationDatacenterConnectorOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
DatacenterConnector datacenterConnector = new DatacenterConnector();
string datacenterConnectorId = "";
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = vmMigrationClient.CreateDatacenterConnector(parent, datacenterConnector, datacenterConnectorId);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnectorAsync(CreateDatacenterConnectorRequest, CallSettings)

public virtual Task<Operation<DatacenterConnector, OperationMetadata>> CreateDatacenterConnectorAsync(CreateDatacenterConnectorRequest request, CallSettings callSettings = null)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
requestCreateDatacenterConnectorRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationDatacenterConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateDatacenterConnectorRequest request = new CreateDatacenterConnectorRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    DatacenterConnectorId = "",
    DatacenterConnector = new DatacenterConnector(),
    RequestId = "",
};
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = await vmMigrationClient.CreateDatacenterConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnectorAsync(CreateDatacenterConnectorRequest, CancellationToken)

public virtual Task<Operation<DatacenterConnector, OperationMetadata>> CreateDatacenterConnectorAsync(CreateDatacenterConnectorRequest request, CancellationToken cancellationToken)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
requestCreateDatacenterConnectorRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationDatacenterConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateDatacenterConnectorRequest request = new CreateDatacenterConnectorRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    DatacenterConnectorId = "",
    DatacenterConnector = new DatacenterConnector(),
    RequestId = "",
};
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = await vmMigrationClient.CreateDatacenterConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnectorAsync(SourceName, DatacenterConnector, string, CallSettings)

public virtual Task<Operation<DatacenterConnector, OperationMetadata>> CreateDatacenterConnectorAsync(SourceName parent, DatacenterConnector datacenterConnector, string datacenterConnectorId, CallSettings callSettings = null)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
parentSourceName

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

datacenterConnectorDatacenterConnector

Required. The create request body.

datacenterConnectorIdstring

Required. The datacenterConnector identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationDatacenterConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
DatacenterConnector datacenterConnector = new DatacenterConnector();
string datacenterConnectorId = "";
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = await vmMigrationClient.CreateDatacenterConnectorAsync(parent, datacenterConnector, datacenterConnectorId);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnectorAsync(SourceName, DatacenterConnector, string, CancellationToken)

public virtual Task<Operation<DatacenterConnector, OperationMetadata>> CreateDatacenterConnectorAsync(SourceName parent, DatacenterConnector datacenterConnector, string datacenterConnectorId, CancellationToken cancellationToken)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
parentSourceName

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

datacenterConnectorDatacenterConnector

Required. The create request body.

datacenterConnectorIdstring

Required. The datacenterConnector identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationDatacenterConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
DatacenterConnector datacenterConnector = new DatacenterConnector();
string datacenterConnectorId = "";
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = await vmMigrationClient.CreateDatacenterConnectorAsync(parent, datacenterConnector, datacenterConnectorId);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnectorAsync(string, DatacenterConnector, string, CallSettings)

public virtual Task<Operation<DatacenterConnector, OperationMetadata>> CreateDatacenterConnectorAsync(string parent, DatacenterConnector datacenterConnector, string datacenterConnectorId, CallSettings callSettings = null)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
parentstring

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

datacenterConnectorDatacenterConnector

Required. The create request body.

datacenterConnectorIdstring

Required. The datacenterConnector identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationDatacenterConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
DatacenterConnector datacenterConnector = new DatacenterConnector();
string datacenterConnectorId = "";
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = await vmMigrationClient.CreateDatacenterConnectorAsync(parent, datacenterConnector, datacenterConnectorId);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateDatacenterConnectorAsync(string, DatacenterConnector, string, CancellationToken)

public virtual Task<Operation<DatacenterConnector, OperationMetadata>> CreateDatacenterConnectorAsync(string parent, DatacenterConnector datacenterConnector, string datacenterConnectorId, CancellationToken cancellationToken)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
parentstring

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

datacenterConnectorDatacenterConnector

Required. The create request body.

datacenterConnectorIdstring

Required. The datacenterConnector identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationDatacenterConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
DatacenterConnector datacenterConnector = new DatacenterConnector();
string datacenterConnectorId = "";
// Make the request
Operation<DatacenterConnector, OperationMetadata> response = await vmMigrationClient.CreateDatacenterConnectorAsync(parent, datacenterConnector, datacenterConnectorId);

// Poll until the returned long-running operation is complete
Operation<DatacenterConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatacenterConnector 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<DatacenterConnector, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatacenterConnector retrievedResult = retrievedResponse.Result;
}

CreateGroup(LocationName, Group, string, CallSettings)

public virtual Operation<Group, OperationMetadata> CreateGroup(LocationName parent, Group group, string groupId, CallSettings callSettings = null)

Creates a new Group in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The Group's parent.

groupGroup

Required. The create request body.

groupIdstring

Required. The group identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = vmMigrationClient.CreateGroup(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroup(CreateGroupRequest, CallSettings)

public virtual Operation<Group, OperationMetadata> CreateGroup(CreateGroupRequest request, CallSettings callSettings = null)

Creates a new Group in a given project and location.

Parameters
NameDescription
requestCreateGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateGroupRequest request = new CreateGroupRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GroupId = "",
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = vmMigrationClient.CreateGroup(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroup(string, Group, string, CallSettings)

public virtual Operation<Group, OperationMetadata> CreateGroup(string parent, Group group, string groupId, CallSettings callSettings = null)

Creates a new Group in a given project and location.

Parameters
NameDescription
parentstring

Required. The Group's parent.

groupGroup

Required. The create request body.

groupIdstring

Required. The group identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = vmMigrationClient.CreateGroup(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(LocationName, Group, string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(LocationName parent, Group group, string groupId, CallSettings callSettings = null)

Creates a new Group in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The Group's parent.

groupGroup

Required. The create request body.

groupIdstring

Required. The group identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.CreateGroupAsync(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(LocationName, Group, string, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(LocationName parent, Group group, string groupId, CancellationToken cancellationToken)

Creates a new Group in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The Group's parent.

groupGroup

Required. The create request body.

groupIdstring

Required. The group identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.CreateGroupAsync(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(CreateGroupRequest, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(CreateGroupRequest request, CallSettings callSettings = null)

Creates a new Group in a given project and location.

Parameters
NameDescription
requestCreateGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateGroupRequest request = new CreateGroupRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GroupId = "",
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.CreateGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(CreateGroupRequest, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(CreateGroupRequest request, CancellationToken cancellationToken)

Creates a new Group in a given project and location.

Parameters
NameDescription
requestCreateGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateGroupRequest request = new CreateGroupRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GroupId = "",
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.CreateGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(string, Group, string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(string parent, Group group, string groupId, CallSettings callSettings = null)

Creates a new Group in a given project and location.

Parameters
NameDescription
parentstring

Required. The Group's parent.

groupGroup

Required. The create request body.

groupIdstring

Required. The group identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.CreateGroupAsync(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(string, Group, string, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(string parent, Group group, string groupId, CancellationToken cancellationToken)

Creates a new Group in a given project and location.

Parameters
NameDescription
parentstring

Required. The Group's parent.

groupGroup

Required. The create request body.

groupIdstring

Required. The group identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.CreateGroupAsync(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateMigratingVm(CreateMigratingVmRequest, CallSettings)

public virtual Operation<MigratingVm, OperationMetadata> CreateMigratingVm(CreateMigratingVmRequest request, CallSettings callSettings = null)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
requestCreateMigratingVmRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMigratingVmOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateMigratingVmRequest request = new CreateMigratingVmRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    MigratingVmId = "",
    MigratingVm = new MigratingVm(),
    RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = vmMigrationClient.CreateMigratingVm(request);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateMigratingVm(SourceName, MigratingVm, string, CallSettings)

public virtual Operation<MigratingVm, OperationMetadata> CreateMigratingVm(SourceName parent, MigratingVm migratingVm, string migratingVmId, CallSettings callSettings = null)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
parentSourceName

Required. The MigratingVm's parent.

migratingVmMigratingVm

Required. The create request body.

migratingVmIdstring

Required. The migratingVm identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMigratingVmOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
MigratingVm migratingVm = new MigratingVm();
string migratingVmId = "";
// Make the request
Operation<MigratingVm, OperationMetadata> response = vmMigrationClient.CreateMigratingVm(parent, migratingVm, migratingVmId);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateMigratingVm(string, MigratingVm, string, CallSettings)

public virtual Operation<MigratingVm, OperationMetadata> CreateMigratingVm(string parent, MigratingVm migratingVm, string migratingVmId, CallSettings callSettings = null)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
parentstring

Required. The MigratingVm's parent.

migratingVmMigratingVm

Required. The create request body.

migratingVmIdstring

Required. The migratingVm identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMigratingVmOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
MigratingVm migratingVm = new MigratingVm();
string migratingVmId = "";
// Make the request
Operation<MigratingVm, OperationMetadata> response = vmMigrationClient.CreateMigratingVm(parent, migratingVm, migratingVmId);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateMigratingVmAsync(CreateMigratingVmRequest, CallSettings)

public virtual Task<Operation<MigratingVm, OperationMetadata>> CreateMigratingVmAsync(CreateMigratingVmRequest request, CallSettings callSettings = null)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
requestCreateMigratingVmRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMigratingVmOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateMigratingVmRequest request = new CreateMigratingVmRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    MigratingVmId = "",
    MigratingVm = new MigratingVm(),
    RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.CreateMigratingVmAsync(request);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateMigratingVmAsync(CreateMigratingVmRequest, CancellationToken)

public virtual Task<Operation<MigratingVm, OperationMetadata>> CreateMigratingVmAsync(CreateMigratingVmRequest request, CancellationToken cancellationToken)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
requestCreateMigratingVmRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationMigratingVmOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateMigratingVmRequest request = new CreateMigratingVmRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    MigratingVmId = "",
    MigratingVm = new MigratingVm(),
    RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.CreateMigratingVmAsync(request);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateMigratingVmAsync(SourceName, MigratingVm, string, CallSettings)

public virtual Task<Operation<MigratingVm, OperationMetadata>> CreateMigratingVmAsync(SourceName parent, MigratingVm migratingVm, string migratingVmId, CallSettings callSettings = null)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
parentSourceName

Required. The MigratingVm's parent.

migratingVmMigratingVm

Required. The create request body.

migratingVmIdstring

Required. The migratingVm identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMigratingVmOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
MigratingVm migratingVm = new MigratingVm();
string migratingVmId = "";
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.CreateMigratingVmAsync(parent, migratingVm, migratingVmId);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateMigratingVmAsync(SourceName, MigratingVm, string, CancellationToken)

public virtual Task<Operation<MigratingVm, OperationMetadata>> CreateMigratingVmAsync(SourceName parent, MigratingVm migratingVm, string migratingVmId, CancellationToken cancellationToken)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
parentSourceName

Required. The MigratingVm's parent.

migratingVmMigratingVm

Required. The create request body.

migratingVmIdstring

Required. The migratingVm identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationMigratingVmOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
MigratingVm migratingVm = new MigratingVm();
string migratingVmId = "";
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.CreateMigratingVmAsync(parent, migratingVm, migratingVmId);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateMigratingVmAsync(string, MigratingVm, string, CallSettings)

public virtual Task<Operation<MigratingVm, OperationMetadata>> CreateMigratingVmAsync(string parent, MigratingVm migratingVm, string migratingVmId, CallSettings callSettings = null)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
parentstring

Required. The MigratingVm's parent.

migratingVmMigratingVm

Required. The create request body.

migratingVmIdstring

Required. The migratingVm identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMigratingVmOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
MigratingVm migratingVm = new MigratingVm();
string migratingVmId = "";
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.CreateMigratingVmAsync(parent, migratingVm, migratingVmId);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateMigratingVmAsync(string, MigratingVm, string, CancellationToken)

public virtual Task<Operation<MigratingVm, OperationMetadata>> CreateMigratingVmAsync(string parent, MigratingVm migratingVm, string migratingVmId, CancellationToken cancellationToken)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
parentstring

Required. The MigratingVm's parent.

migratingVmMigratingVm

Required. The create request body.

migratingVmIdstring

Required. The migratingVm identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationMigratingVmOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
MigratingVm migratingVm = new MigratingVm();
string migratingVmId = "";
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.CreateMigratingVmAsync(parent, migratingVm, migratingVmId);

// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm 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<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MigratingVm retrievedResult = retrievedResponse.Result;
}

CreateSource(LocationName, Source, string, CallSettings)

public virtual Operation<Source, OperationMetadata> CreateSource(LocationName parent, Source source, string sourceId, CallSettings callSettings = null)

Creates a new Source in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The Source's parent.

sourceSource

Required. The create request body.

sourceIdstring

Required. The source identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.CreateSource(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSource(CreateSourceRequest, CallSettings)

public virtual Operation<Source, OperationMetadata> CreateSource(CreateSourceRequest request, CallSettings callSettings = null)

Creates a new Source in a given project and location.

Parameters
NameDescription
requestCreateSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SourceId = "",
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.CreateSource(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSource(string, Source, string, CallSettings)

public virtual Operation<Source, OperationMetadata> CreateSource(string parent, Source source, string sourceId, CallSettings callSettings = null)

Creates a new Source in a given project and location.

Parameters
NameDescription
parentstring

Required. The Source's parent.

sourceSource

Required. The create request body.

sourceIdstring

Required. The source identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.CreateSource(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(LocationName, Source, string, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(LocationName parent, Source source, string sourceId, CallSettings callSettings = null)

Creates a new Source in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The Source's parent.

sourceSource

Required. The create request body.

sourceIdstring

Required. The source identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(LocationName, Source, string, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(LocationName parent, Source source, string sourceId, CancellationToken cancellationToken)

Creates a new Source in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The Source's parent.

sourceSource

Required. The create request body.

sourceIdstring

Required. The source identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(CreateSourceRequest, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(CreateSourceRequest request, CallSettings callSettings = null)

Creates a new Source in a given project and location.

Parameters
NameDescription
requestCreateSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SourceId = "",
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(CreateSourceRequest, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(CreateSourceRequest request, CancellationToken cancellationToken)

Creates a new Source in a given project and location.

Parameters
NameDescription
requestCreateSourceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SourceId = "",
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(string, Source, string, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(string parent, Source source, string sourceId, CallSettings callSettings = null)

Creates a new Source in a given project and location.

Parameters
NameDescription
parentstring

Required. The Source's parent.

sourceSource

Required. The create request body.

sourceIdstring

Required. The source identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(string, Source, string, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(string parent, Source source, string sourceId, CancellationToken cancellationToken)

Creates a new Source in a given project and location.

Parameters
NameDescription
parentstring

Required. The Source's parent.

sourceSource

Required. The create request body.

sourceIdstring

Required. The source identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateTargetProject(LocationName, TargetProject, string, CallSettings)

public virtual Operation<TargetProject, OperationMetadata> CreateTargetProject(LocationName parent, TargetProject targetProject, string targetProjectId, CallSettings callSettings = null)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
parentLocationName

Required. The TargetProject's parent.

targetProjectTargetProject

Required. The create request body.

targetProjectIdstring

Required. The target_project identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationTargetProjectOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.CreateTargetProject(parent, targetProject, targetProjectId);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateTargetProject(CreateTargetProjectRequest, CallSettings)

public virtual Operation<TargetProject, OperationMetadata> CreateTargetProject(CreateTargetProjectRequest request, CallSettings callSettings = null)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
requestCreateTargetProjectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationTargetProjectOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateTargetProjectRequest request = new CreateTargetProjectRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetProjectId = "",
    TargetProject = new TargetProject(),
    RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.CreateTargetProject(request);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateTargetProject(string, TargetProject, string, CallSettings)

public virtual Operation<TargetProject, OperationMetadata> CreateTargetProject(string parent, TargetProject targetProject, string targetProjectId, CallSettings callSettings = null)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
parentstring

Required. The TargetProject's parent.

targetProjectTargetProject

Required. The create request body.

targetProjectIdstring

Required. The target_project identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationTargetProjectOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.CreateTargetProject(parent, targetProject, targetProjectId);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateTargetProjectAsync(LocationName, TargetProject, string, CallSettings)

public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(LocationName parent, TargetProject targetProject, string targetProjectId, CallSettings callSettings = null)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
parentLocationName

Required. The TargetProject's parent.

targetProjectTargetProject

Required. The create request body.

targetProjectIdstring

Required. The target_project identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationTargetProjectOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(parent, targetProject, targetProjectId);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateTargetProjectAsync(LocationName, TargetProject, string, CancellationToken)

public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(LocationName parent, TargetProject targetProject, string targetProjectId, CancellationToken cancellationToken)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
parentLocationName

Required. The TargetProject's parent.

targetProjectTargetProject

Required. The create request body.

targetProjectIdstring

Required. The target_project identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationTargetProjectOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(parent, targetProject, targetProjectId);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateTargetProjectAsync(CreateTargetProjectRequest, CallSettings)

public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(CreateTargetProjectRequest request, CallSettings callSettings = null)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
requestCreateTargetProjectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationTargetProjectOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateTargetProjectRequest request = new CreateTargetProjectRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetProjectId = "",
    TargetProject = new TargetProject(),
    RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(request);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateTargetProjectAsync(CreateTargetProjectRequest, CancellationToken)

public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(CreateTargetProjectRequest request, CancellationToken cancellationToken)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
requestCreateTargetProjectRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationTargetProjectOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateTargetProjectRequest request = new CreateTargetProjectRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetProjectId = "",
    TargetProject = new TargetProject(),
    RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(request);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateTargetProjectAsync(string, TargetProject, string, CallSettings)

public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(string parent, TargetProject targetProject, string targetProjectId, CallSettings callSettings = null)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
parentstring

Required. The TargetProject's parent.

targetProjectTargetProject

Required. The create request body.

targetProjectIdstring

Required. The target_project identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationTargetProjectOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(parent, targetProject, targetProjectId);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateTargetProjectAsync(string, TargetProject, string, CancellationToken)

public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(string parent, TargetProject targetProject, string targetProjectId, CancellationToken cancellationToken)

Creates a new TargetProject in a given project.

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

Parameters
NameDescription
parentstring

Required. The TargetProject's parent.

targetProjectTargetProject

Required. The create request body.

targetProjectIdstring

Required. The target_project identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationTargetProjectOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(parent, targetProject, targetProjectId);

// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject 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<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TargetProject retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReport(CreateUtilizationReportRequest, CallSettings)

public virtual Operation<UtilizationReport, OperationMetadata> CreateUtilizationReport(CreateUtilizationReportRequest request, CallSettings callSettings = null)

Creates a new UtilizationReport.

Parameters
NameDescription
requestCreateUtilizationReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationUtilizationReportOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateUtilizationReportRequest request = new CreateUtilizationReportRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    UtilizationReport = new UtilizationReport(),
    UtilizationReportId = "",
    RequestId = "",
};
// Make the request
Operation<UtilizationReport, OperationMetadata> response = vmMigrationClient.CreateUtilizationReport(request);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReport(SourceName, UtilizationReport, string, CallSettings)

public virtual Operation<UtilizationReport, OperationMetadata> CreateUtilizationReport(SourceName parent, UtilizationReport utilizationReport, string utilizationReportId, CallSettings callSettings = null)

Creates a new UtilizationReport.

Parameters
NameDescription
parentSourceName

Required. The Utilization Report's parent.

utilizationReportUtilizationReport

Required. The report to create.

utilizationReportIdstring

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationUtilizationReportOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = vmMigrationClient.CreateUtilizationReport(parent, utilizationReport, utilizationReportId);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReport(string, UtilizationReport, string, CallSettings)

public virtual Operation<UtilizationReport, OperationMetadata> CreateUtilizationReport(string parent, UtilizationReport utilizationReport, string utilizationReportId, CallSettings callSettings = null)

Creates a new UtilizationReport.

Parameters
NameDescription
parentstring

Required. The Utilization Report's parent.

utilizationReportUtilizationReport

Required. The report to create.

utilizationReportIdstring

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationUtilizationReportOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = vmMigrationClient.CreateUtilizationReport(parent, utilizationReport, utilizationReportId);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReportAsync(CreateUtilizationReportRequest, CallSettings)

public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(CreateUtilizationReportRequest request, CallSettings callSettings = null)

Creates a new UtilizationReport.

Parameters
NameDescription
requestCreateUtilizationReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationUtilizationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateUtilizationReportRequest request = new CreateUtilizationReportRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    UtilizationReport = new UtilizationReport(),
    UtilizationReportId = "",
    RequestId = "",
};
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(request);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReportAsync(CreateUtilizationReportRequest, CancellationToken)

public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(CreateUtilizationReportRequest request, CancellationToken cancellationToken)

Creates a new UtilizationReport.

Parameters
NameDescription
requestCreateUtilizationReportRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationUtilizationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateUtilizationReportRequest request = new CreateUtilizationReportRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    UtilizationReport = new UtilizationReport(),
    UtilizationReportId = "",
    RequestId = "",
};
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(request);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReportAsync(SourceName, UtilizationReport, string, CallSettings)

public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(SourceName parent, UtilizationReport utilizationReport, string utilizationReportId, CallSettings callSettings = null)

Creates a new UtilizationReport.

Parameters
NameDescription
parentSourceName

Required. The Utilization Report's parent.

utilizationReportUtilizationReport

Required. The report to create.

utilizationReportIdstring

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationUtilizationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(parent, utilizationReport, utilizationReportId);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReportAsync(SourceName, UtilizationReport, string, CancellationToken)

public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(SourceName parent, UtilizationReport utilizationReport, string utilizationReportId, CancellationToken cancellationToken)

Creates a new UtilizationReport.

Parameters
NameDescription
parentSourceName

Required. The Utilization Report's parent.

utilizationReportUtilizationReport

Required. The report to create.

utilizationReportIdstring

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationUtilizationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(parent, utilizationReport, utilizationReportId);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReportAsync(string, UtilizationReport, string, CallSettings)

public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(string parent, UtilizationReport utilizationReport, string utilizationReportId, CallSettings callSettings = null)

Creates a new UtilizationReport.

Parameters
NameDescription
parentstring

Required. The Utilization Report's parent.

utilizationReportUtilizationReport

Required. The report to create.

utilizationReportIdstring

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationUtilizationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(parent, utilizationReport, utilizationReportId);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

CreateUtilizationReportAsync(string, UtilizationReport, string, CancellationToken)

public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(string parent, UtilizationReport utilizationReport, string utilizationReportId, CancellationToken cancellationToken)

Creates a new UtilizationReport.

Parameters
NameDescription
parentstring

Required. The Utilization Report's parent.

utilizationReportUtilizationReport

Required. The report to create.

utilizationReportIdstring

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationUtilizationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(parent, utilizationReport, utilizationReportId);

// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport 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<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UtilizationReport retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnector(DatacenterConnectorName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDatacenterConnector(DatacenterConnectorName name, CallSettings callSettings = null)

Deletes a single DatacenterConnector.

Parameters
NameDescription
nameDatacenterConnectorName

Required. The DatacenterConnector name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteDatacenterConnector(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnector(DeleteDatacenterConnectorRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDatacenterConnector(DeleteDatacenterConnectorRequest request, CallSettings callSettings = null)

Deletes a single DatacenterConnector.

Parameters
NameDescription
requestDeleteDatacenterConnectorRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteDatacenterConnectorRequest request = new DeleteDatacenterConnectorRequest
{
    DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteDatacenterConnector(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnector(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDatacenterConnector(string name, CallSettings callSettings = null)

Deletes a single DatacenterConnector.

Parameters
NameDescription
namestring

Required. The DatacenterConnector name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteDatacenterConnector(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnectorAsync(DatacenterConnectorName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(DatacenterConnectorName name, CallSettings callSettings = null)

Deletes a single DatacenterConnector.

Parameters
NameDescription
nameDatacenterConnectorName

Required. The DatacenterConnector name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnectorAsync(DatacenterConnectorName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(DatacenterConnectorName name, CancellationToken cancellationToken)

Deletes a single DatacenterConnector.

Parameters
NameDescription
nameDatacenterConnectorName

Required. The DatacenterConnector name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest request, CallSettings callSettings = null)

Deletes a single DatacenterConnector.

Parameters
NameDescription
requestDeleteDatacenterConnectorRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteDatacenterConnectorRequest request = new DeleteDatacenterConnectorRequest
{
    DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest request, CancellationToken cancellationToken)

Deletes a single DatacenterConnector.

Parameters
NameDescription
requestDeleteDatacenterConnectorRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteDatacenterConnectorRequest request = new DeleteDatacenterConnectorRequest
{
    DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnectorAsync(string, CallSettings)

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

Deletes a single DatacenterConnector.

Parameters
NameDescription
namestring

Required. The DatacenterConnector name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

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]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatacenterConnectorAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(string name, CancellationToken cancellationToken)

Deletes a single DatacenterConnector.

Parameters
NameDescription
namestring

Required. The DatacenterConnector name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

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]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroup(DeleteGroupRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGroup(DeleteGroupRequest request, CallSettings callSettings = null)

Deletes a single Group.

Parameters
NameDescription
requestDeleteGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteGroup(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroup(GroupName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGroup(GroupName name, CallSettings callSettings = null)

Deletes a single Group.

Parameters
NameDescription
nameGroupName

Required. The Group name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

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

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroup(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGroup(string name, CallSettings callSettings = null)

Deletes a single Group.

Parameters
NameDescription
namestring

Required. The Group name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

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

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroupAsync(DeleteGroupRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(DeleteGroupRequest request, CallSettings callSettings = null)

Deletes a single Group.

Parameters
NameDescription
requestDeleteGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroupAsync(DeleteGroupRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(DeleteGroupRequest request, CancellationToken cancellationToken)

Deletes a single Group.

Parameters
NameDescription
requestDeleteGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroupAsync(GroupName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(GroupName name, CallSettings callSettings = null)

Deletes a single Group.

Parameters
NameDescription
nameGroupName

Required. The Group name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroupAsync(GroupName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(GroupName name, CancellationToken cancellationToken)

Deletes a single Group.

Parameters
NameDescription
nameGroupName

Required. The Group name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroupAsync(string, CallSettings)

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

Deletes a single Group.

Parameters
NameDescription
namestring

Required. The Group name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGroupAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(string name, CancellationToken cancellationToken)

Deletes a single Group.

Parameters
NameDescription
namestring

Required. The Group name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVm(DeleteMigratingVmRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteMigratingVm(DeleteMigratingVmRequest request, CallSettings callSettings = null)

Deletes a single MigratingVm.

Parameters
NameDescription
requestDeleteMigratingVmRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteMigratingVmRequest request = new DeleteMigratingVmRequest
{
    MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteMigratingVm(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVm(MigratingVmName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteMigratingVm(MigratingVmName name, CallSettings callSettings = null)

Deletes a single MigratingVm.

Parameters
NameDescription
nameMigratingVmName

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteMigratingVm(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVm(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteMigratingVm(string name, CallSettings callSettings = null)

Deletes a single MigratingVm.

Parameters
NameDescription
namestring

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

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]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteMigratingVm(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVmAsync(DeleteMigratingVmRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(DeleteMigratingVmRequest request, CallSettings callSettings = null)

Deletes a single MigratingVm.

Parameters
NameDescription
requestDeleteMigratingVmRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteMigratingVmRequest request = new DeleteMigratingVmRequest
{
    MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVmAsync(DeleteMigratingVmRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(DeleteMigratingVmRequest request, CancellationToken cancellationToken)

Deletes a single MigratingVm.

Parameters
NameDescription
requestDeleteMigratingVmRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteMigratingVmRequest request = new DeleteMigratingVmRequest
{
    MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVmAsync(MigratingVmName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(MigratingVmName name, CallSettings callSettings = null)

Deletes a single MigratingVm.

Parameters
NameDescription
nameMigratingVmName

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVmAsync(MigratingVmName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(MigratingVmName name, CancellationToken cancellationToken)

Deletes a single MigratingVm.

Parameters
NameDescription
nameMigratingVmName

Required. The name of the MigratingVm.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVmAsync(string, CallSettings)

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

Deletes a single MigratingVm.

Parameters
NameDescription
namestring

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

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]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteMigratingVmAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(string name, CancellationToken cancellationToken)

Deletes a single MigratingVm.

Parameters
NameDescription
namestring

Required. The name of the MigratingVm.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

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]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSource(DeleteSourceRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSource(DeleteSourceRequest request, CallSettings callSettings = null)

Deletes a single Source.

Parameters
NameDescription
requestDeleteSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteSource(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSource(SourceName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSource(SourceName name, CallSettings callSettings = null)

Deletes a single Source.

Parameters
NameDescription
nameSourceName

Required. The Source name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteSource(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSource(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSource(string name, CallSettings callSettings = null)

Deletes a single Source.

Parameters
NameDescription
namestring

Required. The Source name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

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

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSourceAsync(DeleteSourceRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(DeleteSourceRequest request, CallSettings callSettings = null)

Deletes a single Source.

Parameters
NameDescription
requestDeleteSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSourceAsync(DeleteSourceRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(DeleteSourceRequest request, CancellationToken cancellationToken)

Deletes a single Source.

Parameters
NameDescription
requestDeleteSourceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSourceAsync(SourceName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(SourceName name, CallSettings callSettings = null)

Deletes a single Source.

Parameters
NameDescription
nameSourceName

Required. The Source name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSourceAsync(SourceName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(SourceName name, CancellationToken cancellationToken)

Deletes a single Source.

Parameters
NameDescription
nameSourceName

Required. The Source name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSourceAsync(string, CallSettings)

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

Deletes a single Source.

Parameters
NameDescription
namestring

Required. The Source name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

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]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSourceAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(string name, CancellationToken cancellationToken)

Deletes a single Source.

Parameters
NameDescription
namestring

Required. The Source name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

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]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProject(DeleteTargetProjectRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTargetProject(DeleteTargetProjectRequest request, CallSettings callSettings = null)

Deletes a single TargetProject.

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

Parameters
NameDescription
requestDeleteTargetProjectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteTargetProjectRequest request = new DeleteTargetProjectRequest
{
    TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteTargetProject(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProject(TargetProjectName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTargetProject(TargetProjectName name, CallSettings callSettings = null)

Deletes a single TargetProject.

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

Parameters
NameDescription
nameTargetProjectName

Required. The TargetProject name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteTargetProject(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProject(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTargetProject(string name, CallSettings callSettings = null)

Deletes a single TargetProject.

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

Parameters
NameDescription
namestring

Required. The TargetProject name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteTargetProject(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProjectAsync(DeleteTargetProjectRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(DeleteTargetProjectRequest request, CallSettings callSettings = null)

Deletes a single TargetProject.

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

Parameters
NameDescription
requestDeleteTargetProjectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteTargetProjectRequest request = new DeleteTargetProjectRequest
{
    TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProjectAsync(DeleteTargetProjectRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(DeleteTargetProjectRequest request, CancellationToken cancellationToken)

Deletes a single TargetProject.

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

Parameters
NameDescription
requestDeleteTargetProjectRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteTargetProjectRequest request = new DeleteTargetProjectRequest
{
    TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProjectAsync(TargetProjectName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(TargetProjectName name, CallSettings callSettings = null)

Deletes a single TargetProject.

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

Parameters
NameDescription
nameTargetProjectName

Required. The TargetProject name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProjectAsync(TargetProjectName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(TargetProjectName name, CancellationToken cancellationToken)

Deletes a single TargetProject.

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

Parameters
NameDescription
nameTargetProjectName

Required. The TargetProject name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProjectAsync(string, CallSettings)

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

Deletes a single TargetProject.

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

Parameters
NameDescription
namestring

Required. The TargetProject name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTargetProjectAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(string name, CancellationToken cancellationToken)

Deletes a single TargetProject.

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

Parameters
NameDescription
namestring

Required. The TargetProject name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUtilizationReport(DeleteUtilizationReportRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUtilizationReport(DeleteUtilizationReportRequest request, CallSettings callSettings = null)

Deletes a single Utilization Report.

Parameters
NameDescription
requestDeleteUtilizationReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteUtilizationReportRequest request = new DeleteUtilizationReportRequest
{
    UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteUtilizationReport(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUtilizationReport(UtilizationReportName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUtilizationReport(UtilizationReportName name, CallSettings callSettings = null)

Deletes a single Utilization Report.

Parameters
NameDescription
nameUtilizationReportName

Required. The Utilization Report name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteUtilizationReport(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUtilizationReport(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUtilizationReport(string name, CallSettings callSettings = null)

Deletes a single Utilization Report.

Parameters
NameDescription
namestring

Required. The Utilization Report name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteUtilizationReport(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUtilizationReportAsync(DeleteUtilizationReportRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(DeleteUtilizationReportRequest request, CallSettings callSettings = null)

Deletes a single Utilization Report.

Parameters
NameDescription
requestDeleteUtilizationReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteUtilizationReportRequest request = new DeleteUtilizationReportRequest
{
    UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUtilizationReportAsync(DeleteUtilizationReportRequest, CancellationToken)

public virtual T