VM Migration v1 API - Class VmMigrationClient (2.4.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 Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(DeleteUtilizationReportRequest request, CancellationToken cancellationToken)

Deletes a single Utilization Report.

Parameters
NameDescription
requestDeleteUtilizationReportRequest

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)
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(UtilizationReportName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(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.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(UtilizationReportName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(UtilizationReportName name, CancellationToken cancellationToken)

Deletes a single Utilization Report.

Parameters
NameDescription
nameUtilizationReportName

Required. The Utilization Report 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)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(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.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(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(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
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]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(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.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(string, CancellationToken)

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

Deletes a single Utilization Report.

Parameters
NameDescription
namestring

Required. The Utilization Report 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]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(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.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;
}

FetchInventory(FetchInventoryRequest, CallSettings)

public virtual FetchInventoryResponse FetchInventory(FetchInventoryRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestFetchInventoryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
FetchInventoryResponse

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
FetchInventoryRequest request = new FetchInventoryRequest
{
    SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    ForceRefresh = false,
};
// Make the request
FetchInventoryResponse response = vmMigrationClient.FetchInventory(request);

FetchInventory(SourceName, CallSettings)

public virtual FetchInventoryResponse FetchInventory(SourceName source, CallSettings callSettings = null)

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

Parameters
NameDescription
sourceSourceName

Required. The name of the Source.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
FetchInventoryResponse

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName source = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
FetchInventoryResponse response = vmMigrationClient.FetchInventory(source);

FetchInventory(string, CallSettings)

public virtual FetchInventoryResponse FetchInventory(string source, CallSettings callSettings = null)

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

Parameters
NameDescription
sourcestring

Required. The name of the Source.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
FetchInventoryResponse

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string source = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
FetchInventoryResponse response = vmMigrationClient.FetchInventory(source);

FetchInventoryAsync(FetchInventoryRequest, CallSettings)

public virtual Task<FetchInventoryResponse> FetchInventoryAsync(FetchInventoryRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestFetchInventoryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFetchInventoryResponse

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
FetchInventoryRequest request = new FetchInventoryRequest
{
    SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    ForceRefresh = false,
};
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(request);

FetchInventoryAsync(FetchInventoryRequest, CancellationToken)

public virtual Task<FetchInventoryResponse> FetchInventoryAsync(FetchInventoryRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestFetchInventoryRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFetchInventoryResponse

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
FetchInventoryRequest request = new FetchInventoryRequest
{
    SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    ForceRefresh = false,
};
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(request);

FetchInventoryAsync(SourceName, CallSettings)

public virtual Task<FetchInventoryResponse> FetchInventoryAsync(SourceName source, CallSettings callSettings = null)

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

Parameters
NameDescription
sourceSourceName

Required. The name of the Source.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFetchInventoryResponse

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName source = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(source);

FetchInventoryAsync(SourceName, CancellationToken)

public virtual Task<FetchInventoryResponse> FetchInventoryAsync(SourceName source, CancellationToken cancellationToken)

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

Parameters
NameDescription
sourceSourceName

Required. The name of the Source.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFetchInventoryResponse

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName source = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(source);

FetchInventoryAsync(string, CallSettings)

public virtual Task<FetchInventoryResponse> FetchInventoryAsync(string source, CallSettings callSettings = null)

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

Parameters
NameDescription
sourcestring

Required. The name of the Source.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFetchInventoryResponse

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string source = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(source);

FetchInventoryAsync(string, CancellationToken)

public virtual Task<FetchInventoryResponse> FetchInventoryAsync(string source, CancellationToken cancellationToken)

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

Parameters
NameDescription
sourcestring

Required. The name of the Source.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFetchInventoryResponse

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string source = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(source);

FinalizeMigration(FinalizeMigrationRequest, CallSettings)

public virtual Operation<FinalizeMigrationResponse, OperationMetadata> FinalizeMigration(FinalizeMigrationRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestFinalizeMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFinalizeMigrationResponseOperationMetadata

The RPC response.

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

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

FinalizeMigration(MigratingVmName, CallSettings)

public virtual Operation<FinalizeMigrationResponse, OperationMetadata> FinalizeMigration(MigratingVmName migratingVm, CallSettings callSettings = null)

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

Parameters
NameDescription
migratingVmMigratingVmName

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFinalizeMigrationResponseOperationMetadata

The RPC response.

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

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

FinalizeMigration(string, CallSettings)

public virtual Operation<FinalizeMigrationResponse, OperationMetadata> FinalizeMigration(string migratingVm, CallSettings callSettings = null)

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

Parameters
NameDescription
migratingVmstring

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFinalizeMigrationResponseOperationMetadata

The RPC response.

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

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

FinalizeMigrationAsync(FinalizeMigrationRequest, CallSettings)

public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(FinalizeMigrationRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestFinalizeMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFinalizeMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

FinalizeMigrationAsync(FinalizeMigrationRequest, CancellationToken)

public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(FinalizeMigrationRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestFinalizeMigrationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationFinalizeMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

FinalizeMigrationAsync(MigratingVmName, CallSettings)

public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(MigratingVmName migratingVm, CallSettings callSettings = null)

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

Parameters
NameDescription
migratingVmMigratingVmName

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFinalizeMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

FinalizeMigrationAsync(MigratingVmName, CancellationToken)

public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(MigratingVmName migratingVm, CancellationToken cancellationToken)

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

Parameters
NameDescription
migratingVmMigratingVmName

Required. The name of the MigratingVm.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationFinalizeMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

FinalizeMigrationAsync(string, CallSettings)

public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(string migratingVm, CallSettings callSettings = null)

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

Parameters
NameDescription
migratingVmstring

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFinalizeMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

FinalizeMigrationAsync(string, CancellationToken)

public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(string migratingVm, CancellationToken cancellationToken)

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

Parameters
NameDescription
migratingVmstring

Required. The name of the MigratingVm.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationFinalizeMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

GetCloneJob(CloneJobName, CallSettings)

public virtual CloneJob GetCloneJob(CloneJobName name, CallSettings callSettings = null)

Gets details of a single CloneJob.

Parameters
NameDescription
nameCloneJobName

Required. The name of the CloneJob.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CloneJob

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
CloneJob response = vmMigrationClient.GetCloneJob(name);

GetCloneJob(GetCloneJobRequest, CallSettings)

public virtual CloneJob GetCloneJob(GetCloneJobRequest request, CallSettings callSettings = null)

Gets details of a single CloneJob.

Parameters
NameDescription
requestGetCloneJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CloneJob

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetCloneJobRequest request = new GetCloneJobRequest
{
    CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
CloneJob response = vmMigrationClient.GetCloneJob(request);

GetCloneJob(string, CallSettings)

public virtual CloneJob GetCloneJob(string name, CallSettings callSettings = null)

Gets details of a single CloneJob.

Parameters
NameDescription
namestring

Required. The name of the CloneJob.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CloneJob

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
CloneJob response = vmMigrationClient.GetCloneJob(name);

GetCloneJobAsync(CloneJobName, CallSettings)

public virtual Task<CloneJob> GetCloneJobAsync(CloneJobName name, CallSettings callSettings = null)

Gets details of a single CloneJob.

Parameters
NameDescription
nameCloneJobName

Required. The name of the CloneJob.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCloneJob

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
CloneJob response = await vmMigrationClient.GetCloneJobAsync(name);

GetCloneJobAsync(CloneJobName, CancellationToken)

public virtual Task<CloneJob> GetCloneJobAsync(CloneJobName name, CancellationToken cancellationToken)

Gets details of a single CloneJob.

Parameters
NameDescription
nameCloneJobName

Required. The name of the CloneJob.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskCloneJob

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
CloneJob response = await vmMigrationClient.GetCloneJobAsync(name);

GetCloneJobAsync(GetCloneJobRequest, CallSettings)

public virtual Task<CloneJob> GetCloneJobAsync(GetCloneJobRequest request, CallSettings callSettings = null)

Gets details of a single CloneJob.

Parameters
NameDescription
requestGetCloneJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCloneJob

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetCloneJobRequest request = new GetCloneJobRequest
{
    CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
CloneJob response = await vmMigrationClient.GetCloneJobAsync(request);

GetCloneJobAsync(GetCloneJobRequest, CancellationToken)

public virtual Task<CloneJob> GetCloneJobAsync(GetCloneJobRequest request, CancellationToken cancellationToken)

Gets details of a single CloneJob.

Parameters
NameDescription
requestGetCloneJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskCloneJob

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetCloneJobRequest request = new GetCloneJobRequest
{
    CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
CloneJob response = await vmMigrationClient.GetCloneJobAsync(request);

GetCloneJobAsync(string, CallSettings)

public virtual Task<CloneJob> GetCloneJobAsync(string name, CallSettings callSettings = null)

Gets details of a single CloneJob.

Parameters
NameDescription
namestring

Required. The name of the CloneJob.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCloneJob

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
CloneJob response = await vmMigrationClient.GetCloneJobAsync(name);

GetCloneJobAsync(string, CancellationToken)

public virtual Task<CloneJob> GetCloneJobAsync(string name, CancellationToken cancellationToken)

Gets details of a single CloneJob.

Parameters
NameDescription
namestring

Required. The name of the CloneJob.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskCloneJob

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
CloneJob response = await vmMigrationClient.GetCloneJobAsync(name);

GetCutoverJob(CutoverJobName, CallSettings)

public virtual CutoverJob GetCutoverJob(CutoverJobName name, CallSettings callSettings = null)

Gets details of a single CutoverJob.

Parameters
NameDescription
nameCutoverJobName

Required. The name of the CutoverJob.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CutoverJob

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
CutoverJob response = vmMigrationClient.GetCutoverJob(name);

GetCutoverJob(GetCutoverJobRequest, CallSettings)

public virtual CutoverJob GetCutoverJob(GetCutoverJobRequest request, CallSettings callSettings = null)

Gets details of a single CutoverJob.

Parameters
NameDescription
requestGetCutoverJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CutoverJob

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetCutoverJobRequest request = new GetCutoverJobRequest
{
    CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
CutoverJob response = vmMigrationClient.GetCutoverJob(request);

GetCutoverJob(string, CallSettings)

public virtual CutoverJob GetCutoverJob(string name, CallSettings callSettings = null)

Gets details of a single CutoverJob.

Parameters
NameDescription
namestring

Required. The name of the CutoverJob.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CutoverJob

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
CutoverJob response = vmMigrationClient.GetCutoverJob(name);

GetCutoverJobAsync(CutoverJobName, CallSettings)

public virtual Task<CutoverJob> GetCutoverJobAsync(CutoverJobName name, CallSettings callSettings = null)

Gets details of a single CutoverJob.

Parameters
NameDescription
nameCutoverJobName

Required. The name of the CutoverJob.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCutoverJob

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
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(name);

GetCutoverJobAsync(CutoverJobName, CancellationToken)

public virtual Task<CutoverJob> GetCutoverJobAsync(CutoverJobName name, CancellationToken cancellationToken)

Gets details of a single CutoverJob.

Parameters
NameDescription
nameCutoverJobName

Required. The name of the CutoverJob.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskCutoverJob

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
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(name);

GetCutoverJobAsync(GetCutoverJobRequest, CallSettings)

public virtual Task<CutoverJob> GetCutoverJobAsync(GetCutoverJobRequest request, CallSettings callSettings = null)

Gets details of a single CutoverJob.

Parameters
NameDescription
requestGetCutoverJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCutoverJob

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetCutoverJobRequest request = new GetCutoverJobRequest
{
    CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(request);

GetCutoverJobAsync(GetCutoverJobRequest, CancellationToken)

public virtual Task<CutoverJob> GetCutoverJobAsync(GetCutoverJobRequest request, CancellationToken cancellationToken)

Gets details of a single CutoverJob.

Parameters
NameDescription
requestGetCutoverJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskCutoverJob

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetCutoverJobRequest request = new GetCutoverJobRequest
{
    CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(request);

GetCutoverJobAsync(string, CallSettings)

public virtual Task<CutoverJob> GetCutoverJobAsync(string name, CallSettings callSettings = null)

Gets details of a single CutoverJob.

Parameters
NameDescription
namestring

Required. The name of the CutoverJob.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCutoverJob

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
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(name);

GetCutoverJobAsync(string, CancellationToken)

public virtual Task<CutoverJob> GetCutoverJobAsync(string name, CancellationToken cancellationToken)

Gets details of a single CutoverJob.

Parameters
NameDescription
namestring

Required. The name of the CutoverJob.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskCutoverJob

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
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(name);

GetDatacenterConnector(DatacenterConnectorName, CallSettings)

public virtual DatacenterConnector GetDatacenterConnector(DatacenterConnectorName name, CallSettings callSettings = null)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
nameDatacenterConnectorName

Required. The name of the DatacenterConnector.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DatacenterConnector

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
DatacenterConnector response = vmMigrationClient.GetDatacenterConnector(name);

GetDatacenterConnector(GetDatacenterConnectorRequest, CallSettings)

public virtual DatacenterConnector GetDatacenterConnector(GetDatacenterConnectorRequest request, CallSettings callSettings = null)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
requestGetDatacenterConnectorRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DatacenterConnector

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetDatacenterConnectorRequest request = new GetDatacenterConnectorRequest
{
    DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
};
// Make the request
DatacenterConnector response = vmMigrationClient.GetDatacenterConnector(request);

GetDatacenterConnector(string, CallSettings)

public virtual DatacenterConnector GetDatacenterConnector(string name, CallSettings callSettings = null)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
namestring

Required. The name of the DatacenterConnector.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DatacenterConnector

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
DatacenterConnector response = vmMigrationClient.GetDatacenterConnector(name);

GetDatacenterConnectorAsync(DatacenterConnectorName, CallSettings)

public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(DatacenterConnectorName name, CallSettings callSettings = null)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
nameDatacenterConnectorName

Required. The name of the DatacenterConnector.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDatacenterConnector

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
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(name);

GetDatacenterConnectorAsync(DatacenterConnectorName, CancellationToken)

public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(DatacenterConnectorName name, CancellationToken cancellationToken)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
nameDatacenterConnectorName

Required. The name of the DatacenterConnector.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDatacenterConnector

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
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(name);

GetDatacenterConnectorAsync(GetDatacenterConnectorRequest, CallSettings)

public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(GetDatacenterConnectorRequest request, CallSettings callSettings = null)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
requestGetDatacenterConnectorRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDatacenterConnector

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetDatacenterConnectorRequest request = new GetDatacenterConnectorRequest
{
    DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
};
// Make the request
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(request);

GetDatacenterConnectorAsync(GetDatacenterConnectorRequest, CancellationToken)

public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(GetDatacenterConnectorRequest request, CancellationToken cancellationToken)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
requestGetDatacenterConnectorRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDatacenterConnector

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetDatacenterConnectorRequest request = new GetDatacenterConnectorRequest
{
    DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
};
// Make the request
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(request);

GetDatacenterConnectorAsync(string, CallSettings)

public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(string name, CallSettings callSettings = null)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
namestring

Required. The name of the DatacenterConnector.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDatacenterConnector

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
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(name);

GetDatacenterConnectorAsync(string, CancellationToken)

public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(string name, CancellationToken cancellationToken)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
namestring

Required. The name of the DatacenterConnector.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDatacenterConnector

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
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(name);

GetGroup(GetGroupRequest, CallSettings)

public virtual Group GetGroup(GetGroupRequest request, CallSettings callSettings = null)

Gets details of a single Group.

Parameters
NameDescription
requestGetGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Group

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = vmMigrationClient.GetGroup(request);

GetGroup(GroupName, CallSettings)

public virtual Group GetGroup(GroupName name, CallSettings callSettings = null)

Gets details of a single Group.

Parameters
NameDescription
nameGroupName

Required. The group name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Group

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Group response = vmMigrationClient.GetGroup(name);

GetGroup(string, CallSettings)

public virtual Group GetGroup(string name, CallSettings callSettings = null)

Gets details of a single Group.

Parameters
NameDescription
namestring

Required. The group name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Group

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
Group response = vmMigrationClient.GetGroup(name);

GetGroupAsync(GetGroupRequest, CallSettings)

public virtual Task<Group> GetGroupAsync(GetGroupRequest request, CallSettings callSettings = null)

Gets details of a single Group.

Parameters
NameDescription
requestGetGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = await vmMigrationClient.GetGroupAsync(request);

GetGroupAsync(GetGroupRequest, CancellationToken)

public virtual Task<Group> GetGroupAsync(GetGroupRequest request, CancellationToken cancellationToken)

Gets details of a single Group.

Parameters
NameDescription
requestGetGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = await vmMigrationClient.GetGroupAsync(request);

GetGroupAsync(GroupName, CallSettings)

public virtual Task<Group> GetGroupAsync(GroupName name, CallSettings callSettings = null)

Gets details of a single Group.

Parameters
NameDescription
nameGroupName

Required. The group name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskGroup

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
Group response = await vmMigrationClient.GetGroupAsync(name);

GetGroupAsync(GroupName, CancellationToken)

public virtual Task<Group> GetGroupAsync(GroupName name, CancellationToken cancellationToken)

Gets details of a single Group.

Parameters
NameDescription
nameGroupName

Required. The group name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskGroup

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
Group response = await vmMigrationClient.GetGroupAsync(name);

GetGroupAsync(string, CallSettings)

public virtual Task<Group> GetGroupAsync(string name, CallSettings callSettings = null)

Gets details of a single Group.

Parameters
NameDescription
namestring

Required. The group name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskGroup

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
Group response = await vmMigrationClient.GetGroupAsync(name);

GetGroupAsync(string, CancellationToken)

public virtual Task<Group> GetGroupAsync(string name, CancellationToken cancellationToken)

Gets details of a single Group.

Parameters
NameDescription
namestring

Required. The group name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskGroup

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
Group response = await vmMigrationClient.GetGroupAsync(name);

GetMigratingVm(GetMigratingVmRequest, CallSettings)

public virtual MigratingVm GetMigratingVm(GetMigratingVmRequest request, CallSettings callSettings = null)

Gets details of a single MigratingVm.

Parameters
NameDescription
requestGetMigratingVmRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MigratingVm

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetMigratingVmRequest request = new GetMigratingVmRequest
{
    MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    View = MigratingVmView.Unspecified,
};
// Make the request
MigratingVm response = vmMigrationClient.GetMigratingVm(request);

GetMigratingVm(MigratingVmName, CallSettings)

public virtual MigratingVm GetMigratingVm(MigratingVmName name, CallSettings callSettings = null)

Gets details of a single MigratingVm.

Parameters
NameDescription
nameMigratingVmName

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MigratingVm

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
MigratingVm response = vmMigrationClient.GetMigratingVm(name);

GetMigratingVm(string, CallSettings)

public virtual MigratingVm GetMigratingVm(string name, CallSettings callSettings = null)

Gets details of a single MigratingVm.

Parameters
NameDescription
namestring

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MigratingVm

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
MigratingVm response = vmMigrationClient.GetMigratingVm(name);

GetMigratingVmAsync(GetMigratingVmRequest, CallSettings)

public virtual Task<MigratingVm> GetMigratingVmAsync(GetMigratingVmRequest request, CallSettings callSettings = null)

Gets details of a single MigratingVm.

Parameters
NameDescription
requestGetMigratingVmRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMigratingVm

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetMigratingVmRequest request = new GetMigratingVmRequest
{
    MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    View = MigratingVmView.Unspecified,
};
// Make the request
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(request);

GetMigratingVmAsync(GetMigratingVmRequest, CancellationToken)

public virtual Task<MigratingVm> GetMigratingVmAsync(GetMigratingVmRequest request, CancellationToken cancellationToken)

Gets details of a single MigratingVm.

Parameters
NameDescription
requestGetMigratingVmRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMigratingVm

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetMigratingVmRequest request = new GetMigratingVmRequest
{
    MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    View = MigratingVmView.Unspecified,
};
// Make the request
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(request);

GetMigratingVmAsync(MigratingVmName, CallSettings)

public virtual Task<MigratingVm> GetMigratingVmAsync(MigratingVmName name, CallSettings callSettings = null)

Gets details of a single MigratingVm.

Parameters
NameDescription
nameMigratingVmName

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMigratingVm

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
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(name);

GetMigratingVmAsync(MigratingVmName, CancellationToken)

public virtual Task<MigratingVm> GetMigratingVmAsync(MigratingVmName name, CancellationToken cancellationToken)

Gets details of a single MigratingVm.

Parameters
NameDescription
nameMigratingVmName

Required. The name of the MigratingVm.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMigratingVm

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
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(name);

GetMigratingVmAsync(string, CallSettings)

public virtual Task<MigratingVm> GetMigratingVmAsync(string name, CallSettings callSettings = null)

Gets details of a single MigratingVm.

Parameters
NameDescription
namestring

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMigratingVm

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
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(name);

GetMigratingVmAsync(string, CancellationToken)

public virtual Task<MigratingVm> GetMigratingVmAsync(string name, CancellationToken cancellationToken)

Gets details of a single MigratingVm.

Parameters
NameDescription
namestring

Required. The name of the MigratingVm.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMigratingVm

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
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(name);

GetReplicationCycle(GetReplicationCycleRequest, CallSettings)

public virtual ReplicationCycle GetReplicationCycle(GetReplicationCycleRequest request, CallSettings callSettings = null)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
requestGetReplicationCycleRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReplicationCycle

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetReplicationCycleRequest request = new GetReplicationCycleRequest
{
    ReplicationCycleName = ReplicationCycleName.FromProjectLocationSourceMigratingVmReplicationCycle("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[REPLICATION_CYCLE]"),
};
// Make the request
ReplicationCycle response = vmMigrationClient.GetReplicationCycle(request);

GetReplicationCycle(ReplicationCycleName, CallSettings)

public virtual ReplicationCycle GetReplicationCycle(ReplicationCycleName name, CallSettings callSettings = null)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
nameReplicationCycleName

Required. The name of the ReplicationCycle.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReplicationCycle

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ReplicationCycleName name = ReplicationCycleName.FromProjectLocationSourceMigratingVmReplicationCycle("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[REPLICATION_CYCLE]");
// Make the request
ReplicationCycle response = vmMigrationClient.GetReplicationCycle(name);

GetReplicationCycle(string, CallSettings)

public virtual ReplicationCycle GetReplicationCycle(string name, CallSettings callSettings = null)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
namestring

Required. The name of the ReplicationCycle.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReplicationCycle

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]/replicationCycles/[REPLICATION_CYCLE]";
// Make the request
ReplicationCycle response = vmMigrationClient.GetReplicationCycle(name);

GetReplicationCycleAsync(GetReplicationCycleRequest, CallSettings)

public virtual Task<ReplicationCycle> GetReplicationCycleAsync(GetReplicationCycleRequest request, CallSettings callSettings = null)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
requestGetReplicationCycleRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReplicationCycle

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetReplicationCycleRequest request = new GetReplicationCycleRequest
{
    ReplicationCycleName = ReplicationCycleName.FromProjectLocationSourceMigratingVmReplicationCycle("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[REPLICATION_CYCLE]"),
};
// Make the request
ReplicationCycle response = await vmMigrationClient.GetReplicationCycleAsync(request);

GetReplicationCycleAsync(GetReplicationCycleRequest, CancellationToken)

public virtual Task<ReplicationCycle> GetReplicationCycleAsync(GetReplicationCycleRequest request, CancellationToken cancellationToken)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
requestGetReplicationCycleRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReplicationCycle

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetReplicationCycleRequest request = new GetReplicationCycleRequest
{
    ReplicationCycleName = ReplicationCycleName.FromProjectLocationSourceMigratingVmReplicationCycle("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[REPLICATION_CYCLE]"),
};
// Make the request
ReplicationCycle response = await vmMigrationClient.GetReplicationCycleAsync(request);

GetReplicationCycleAsync(ReplicationCycleName, CallSettings)

public virtual Task<ReplicationCycle> GetReplicationCycleAsync(ReplicationCycleName name, CallSettings callSettings = null)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
nameReplicationCycleName

Required. The name of the ReplicationCycle.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReplicationCycle

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ReplicationCycleName name = ReplicationCycleName.FromProjectLocationSourceMigratingVmReplicationCycle("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[REPLICATION_CYCLE]");
// Make the request
ReplicationCycle response = await vmMigrationClient.GetReplicationCycleAsync(name);

GetReplicationCycleAsync(ReplicationCycleName, CancellationToken)

public virtual Task<ReplicationCycle> GetReplicationCycleAsync(ReplicationCycleName name, CancellationToken cancellationToken)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
nameReplicationCycleName

Required. The name of the ReplicationCycle.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReplicationCycle

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ReplicationCycleName name = ReplicationCycleName.FromProjectLocationSourceMigratingVmReplicationCycle("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[REPLICATION_CYCLE]");
// Make the request
ReplicationCycle response = await vmMigrationClient.GetReplicationCycleAsync(name);

GetReplicationCycleAsync(string, CallSettings)

public virtual Task<ReplicationCycle> GetReplicationCycleAsync(string name, CallSettings callSettings = null)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
namestring

Required. The name of the ReplicationCycle.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReplicationCycle

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]/replicationCycles/[REPLICATION_CYCLE]";
// Make the request
ReplicationCycle response = await vmMigrationClient.GetReplicationCycleAsync(name);

GetReplicationCycleAsync(string, CancellationToken)

public virtual Task<ReplicationCycle> GetReplicationCycleAsync(string name, CancellationToken cancellationToken)

Gets details of a single ReplicationCycle.

Parameters
NameDescription
namestring

Required. The name of the ReplicationCycle.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReplicationCycle

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]/replicationCycles/[REPLICATION_CYCLE]";
// Make the request
ReplicationCycle response = await vmMigrationClient.GetReplicationCycleAsync(name);

GetSource(GetSourceRequest, CallSettings)

public virtual Source GetSource(GetSourceRequest request, CallSettings callSettings = null)

Gets details of a single Source.

Parameters
NameDescription
requestGetSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Source

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = vmMigrationClient.GetSource(request);

GetSource(SourceName, CallSettings)

public virtual Source GetSource(SourceName name, CallSettings callSettings = null)

Gets details of a single Source.

Parameters
NameDescription
nameSourceName

Required. The Source name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Source

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Source response = vmMigrationClient.GetSource(name);

GetSource(string, CallSettings)

public virtual Source GetSource(string name, CallSettings callSettings = null)

Gets details of a single Source.

Parameters
NameDescription
namestring

Required. The Source name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Source

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
Source response = vmMigrationClient.GetSource(name);

GetSourceAsync(GetSourceRequest, CallSettings)

public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CallSettings callSettings = null)

Gets details of a single Source.

Parameters
NameDescription
requestGetSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = await vmMigrationClient.GetSourceAsync(request);

GetSourceAsync(GetSourceRequest, CancellationToken)

public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken)

Gets details of a single Source.

Parameters
NameDescription
requestGetSourceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = await vmMigrationClient.GetSourceAsync(request);

GetSourceAsync(SourceName, CallSettings)

public virtual Task<Source> GetSourceAsync(SourceName name, CallSettings callSettings = null)

Gets details of a single Source.

Parameters
NameDescription
nameSourceName

Required. The Source name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

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
Source response = await vmMigrationClient.GetSourceAsync(name);

GetSourceAsync(SourceName, CancellationToken)

public virtual Task<Source> GetSourceAsync(SourceName name, CancellationToken cancellationToken)

Gets details of a single Source.

Parameters
NameDescription
nameSourceName

Required. The Source name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

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
Source response = await vmMigrationClient.GetSourceAsync(name);

GetSourceAsync(string, CallSettings)

public virtual Task<Source> GetSourceAsync(string name, CallSettings callSettings = null)

Gets details of a single Source.

Parameters
NameDescription
namestring

Required. The Source name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

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
Source response = await vmMigrationClient.GetSourceAsync(name);

GetSourceAsync(string, CancellationToken)

public virtual Task<Source> GetSourceAsync(string name, CancellationToken cancellationToken)

Gets details of a single Source.

Parameters
NameDescription
namestring

Required. The Source name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

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
Source response = await vmMigrationClient.GetSourceAsync(name);

GetTargetProject(GetTargetProjectRequest, CallSettings)

public virtual TargetProject GetTargetProject(GetTargetProjectRequest request, CallSettings callSettings = null)

Gets details of a single TargetProject.

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

Parameters
NameDescription
requestGetTargetProjectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TargetProject

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetTargetProjectRequest request = new GetTargetProjectRequest
{
    TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
};
// Make the request
TargetProject response = vmMigrationClient.GetTargetProject(request);

GetTargetProject(TargetProjectName, CallSettings)

public virtual TargetProject GetTargetProject(TargetProjectName name, CallSettings callSettings = null)

Gets details of 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
TargetProject

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
TargetProject response = vmMigrationClient.GetTargetProject(name);

GetTargetProject(string, CallSettings)

public virtual TargetProject GetTargetProject(string name, CallSettings callSettings = null)

Gets details of 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
TargetProject

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
TargetProject response = vmMigrationClient.GetTargetProject(name);

GetTargetProjectAsync(GetTargetProjectRequest, CallSettings)

public virtual Task<TargetProject> GetTargetProjectAsync(GetTargetProjectRequest request, CallSettings callSettings = null)

Gets details of a single TargetProject.

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

Parameters
NameDescription
requestGetTargetProjectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTargetProject

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetTargetProjectRequest request = new GetTargetProjectRequest
{
    TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
};
// Make the request
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(request);

GetTargetProjectAsync(GetTargetProjectRequest, CancellationToken)

public virtual Task<TargetProject> GetTargetProjectAsync(GetTargetProjectRequest request, CancellationToken cancellationToken)

Gets details of a single TargetProject.

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

Parameters
NameDescription
requestGetTargetProjectRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTargetProject

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetTargetProjectRequest request = new GetTargetProjectRequest
{
    TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
};
// Make the request
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(request);

GetTargetProjectAsync(TargetProjectName, CallSettings)

public virtual Task<TargetProject> GetTargetProjectAsync(TargetProjectName name, CallSettings callSettings = null)

Gets details of 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
TaskTargetProject

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
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(name);

GetTargetProjectAsync(TargetProjectName, CancellationToken)

public virtual Task<TargetProject> GetTargetProjectAsync(TargetProjectName name, CancellationToken cancellationToken)

Gets details of 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
TaskTargetProject

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
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(name);

GetTargetProjectAsync(string, CallSettings)

public virtual Task<TargetProject> GetTargetProjectAsync(string name, CallSettings callSettings = null)

Gets details of 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
TaskTargetProject

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
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(name);

GetTargetProjectAsync(string, CancellationToken)

public virtual Task<TargetProject> GetTargetProjectAsync(string name, CancellationToken cancellationToken)

Gets details of 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
TaskTargetProject

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
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(name);

GetUtilizationReport(GetUtilizationReportRequest, CallSettings)

public virtual UtilizationReport GetUtilizationReport(GetUtilizationReportRequest request, CallSettings callSettings = null)

Gets a single Utilization Report.

Parameters
NameDescription
requestGetUtilizationReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
UtilizationReport

The RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetUtilizationReportRequest request = new GetUtilizationReportRequest
{
    UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
    View = UtilizationReportView.Unspecified,
};
// Make the request
UtilizationReport response = vmMigrationClient.GetUtilizationReport(request);

GetUtilizationReport(UtilizationReportName, CallSettings)

public virtual UtilizationReport GetUtilizationReport(UtilizationReportName name, CallSettings callSettings = null)

Gets a single Utilization Report.

Parameters
NameDescription
nameUtilizationReportName

Required. The Utilization Report name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
UtilizationReport

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
UtilizationReport response = vmMigrationClient.GetUtilizationReport(name);

GetUtilizationReport(string, CallSettings)

public virtual UtilizationReport GetUtilizationReport(string name, CallSettings callSettings = null)

Gets a single Utilization Report.

Parameters
NameDescription
namestring

Required. The Utilization Report name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
UtilizationReport

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
UtilizationReport response = vmMigrationClient.GetUtilizationReport(name);

GetUtilizationReportAsync(GetUtilizationReportRequest, CallSettings)

public virtual Task<UtilizationReport> GetUtilizationReportAsync(GetUtilizationReportRequest request, CallSettings callSettings = null)

Gets a single Utilization Report.

Parameters
NameDescription
requestGetUtilizationReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskUtilizationReport

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetUtilizationReportRequest request = new GetUtilizationReportRequest
{
    UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
    View = UtilizationReportView.Unspecified,
};
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(request);

GetUtilizationReportAsync(GetUtilizationReportRequest, CancellationToken)

public virtual Task<UtilizationReport> GetUtilizationReportAsync(GetUtilizationReportRequest request, CancellationToken cancellationToken)

Gets a single Utilization Report.

Parameters
NameDescription
requestGetUtilizationReportRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskUtilizationReport

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetUtilizationReportRequest request = new GetUtilizationReportRequest
{
    UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
    View = UtilizationReportView.Unspecified,
};
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(request);

GetUtilizationReportAsync(UtilizationReportName, CallSettings)

public virtual Task<UtilizationReport> GetUtilizationReportAsync(UtilizationReportName name, CallSettings callSettings = null)

Gets a single Utilization Report.

Parameters
NameDescription
nameUtilizationReportName

Required. The Utilization Report name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskUtilizationReport

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(name);

GetUtilizationReportAsync(UtilizationReportName, CancellationToken)

public virtual Task<UtilizationReport> GetUtilizationReportAsync(UtilizationReportName name, CancellationToken cancellationToken)

Gets a single Utilization Report.

Parameters
NameDescription
nameUtilizationReportName

Required. The Utilization Report name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskUtilizationReport

A Task containing the RPC response.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(name);

GetUtilizationReportAsync(string, CallSettings)

public virtual Task<UtilizationReport> GetUtilizationReportAsync(string name, CallSettings callSettings = null)

Gets a single Utilization Report.

Parameters
NameDescription
namestring

Required. The Utilization Report name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskUtilizationReport

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]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(name);

GetUtilizationReportAsync(string, CancellationToken)

public virtual Task<UtilizationReport> GetUtilizationReportAsync(string name, CancellationToken cancellationToken)

Gets a single Utilization Report.

Parameters
NameDescription
namestring

Required. The Utilization Report name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskUtilizationReport

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]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(name);

ListCloneJobs(ListCloneJobsRequest, CallSettings)

public virtual PagedEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobs(ListCloneJobsRequest request, CallSettings callSettings = null)

Lists CloneJobs of a given migrating VM.

Parameters
NameDescription
requestListCloneJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListCloneJobsResponseCloneJob

A pageable sequence of CloneJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListCloneJobsRequest request = new ListCloneJobsRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (CloneJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCloneJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CloneJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCloneJobs(MigratingVmName, string, int?, CallSettings)

public virtual PagedEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobs(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CloneJobs of a given migrating VM.

Parameters
NameDescription
parentMigratingVmName

Required. The parent, which owns this collection of source VMs.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListCloneJobsResponseCloneJob

A pageable sequence of CloneJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CloneJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCloneJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CloneJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCloneJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CloneJobs of a given migrating VM.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of source VMs.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListCloneJobsResponseCloneJob

A pageable sequence of CloneJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
PagedEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CloneJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCloneJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CloneJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCloneJobsAsync(ListCloneJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobsAsync(ListCloneJobsRequest request, CallSettings callSettings = null)

Lists CloneJobs of a given migrating VM.

Parameters
NameDescription
requestListCloneJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCloneJobsResponseCloneJob

A pageable asynchronous sequence of CloneJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListCloneJobsRequest request = new ListCloneJobsRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CloneJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCloneJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CloneJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCloneJobsAsync(MigratingVmName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobsAsync(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CloneJobs of a given migrating VM.

Parameters
NameDescription
parentMigratingVmName

Required. The parent, which owns this collection of source VMs.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCloneJobsResponseCloneJob

A pageable asynchronous sequence of CloneJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CloneJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCloneJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CloneJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCloneJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CloneJobs of a given migrating VM.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of source VMs.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCloneJobsResponseCloneJob

A pageable asynchronous sequence of CloneJob resources.

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

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CloneJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCloneJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CloneJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCutoverJobs(ListCutoverJobsRequest, CallSettings)

public virtual PagedEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobs(ListCutoverJobsRequest request, CallSettings callSettings = null)

Lists CutoverJobs of a given migrating VM.

Parameters
NameDescription
requestListCutoverJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListCutoverJobsResponseCutoverJob

A pageable sequence of CutoverJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListCutoverJobsRequest request = new ListCutoverJobsRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (CutoverJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCutoverJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CutoverJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCutoverJobs(MigratingVmName, string, int?, CallSettings)

public virtual PagedEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobs(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CutoverJobs of a given migrating VM.

Parameters
NameDescription
parentMigratingVmName

Required. The parent, which owns this collection of migrating VMs.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListCutoverJobsResponseCutoverJob

A pageable sequence of CutoverJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CutoverJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCutoverJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CutoverJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCutoverJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CutoverJobs of a given migrating VM.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of migrating VMs.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListCutoverJobsResponseCutoverJob

A pageable sequence of CutoverJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CutoverJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCutoverJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CutoverJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCutoverJobsAsync(ListCutoverJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobsAsync(ListCutoverJobsRequest request, CallSettings callSettings = null)

Lists CutoverJobs of a given migrating VM.

Parameters
NameDescription
requestListCutoverJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCutoverJobsResponseCutoverJob

A pageable asynchronous sequence of CutoverJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListCutoverJobsRequest request = new ListCutoverJobsRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CutoverJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCutoverJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CutoverJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCutoverJobsAsync(MigratingVmName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobsAsync(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CutoverJobs of a given migrating VM.

Parameters
NameDescription
parentMigratingVmName

Required. The parent, which owns this collection of migrating VMs.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCutoverJobsResponseCutoverJob

A pageable asynchronous sequence of CutoverJob resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CutoverJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCutoverJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CutoverJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCutoverJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CutoverJobs of a given migrating VM.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of migrating VMs.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCutoverJobsResponseCutoverJob

A pageable asynchronous sequence of CutoverJob resources.

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

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CutoverJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCutoverJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CutoverJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatacenterConnectors(ListDatacenterConnectorsRequest, CallSettings)

public virtual PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectors(ListDatacenterConnectorsRequest request, CallSettings callSettings = null)

Lists DatacenterConnectors in a given Source.

Parameters
NameDescription
requestListDatacenterConnectorsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDatacenterConnectorsResponseDatacenterConnector

A pageable sequence of DatacenterConnector resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListDatacenterConnectorsRequest request = new ListDatacenterConnectorsRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectors(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (DatacenterConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatacenterConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatacenterConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatacenterConnectors(SourceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectors(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DatacenterConnectors in a given Source.

Parameters
NameDescription
parentSourceName

Required. The parent, which owns this collection of connectors.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDatacenterConnectorsResponseDatacenterConnector

A pageable sequence of DatacenterConnector resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectors(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DatacenterConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatacenterConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatacenterConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatacenterConnectors(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectors(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DatacenterConnectors in a given Source.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of connectors.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDatacenterConnectorsResponseDatacenterConnector

A pageable sequence of DatacenterConnector resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectors(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DatacenterConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatacenterConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatacenterConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatacenterConnectorsAsync(ListDatacenterConnectorsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectorsAsync(ListDatacenterConnectorsRequest request, CallSettings callSettings = null)

Lists DatacenterConnectors in a given Source.

Parameters
NameDescription
requestListDatacenterConnectorsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDatacenterConnectorsResponseDatacenterConnector

A pageable asynchronous sequence of DatacenterConnector resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListDatacenterConnectorsRequest request = new ListDatacenterConnectorsRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectorsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatacenterConnector item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatacenterConnectorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatacenterConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatacenterConnectorsAsync(SourceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectorsAsync(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DatacenterConnectors in a given Source.

Parameters
NameDescription
parentSourceName

Required. The parent, which owns this collection of connectors.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDatacenterConnectorsResponseDatacenterConnector

A pageable asynchronous sequence of DatacenterConnector resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectorsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatacenterConnector item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatacenterConnectorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatacenterConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatacenterConnectorsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DatacenterConnectors in a given Source.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of connectors.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDatacenterConnectorsResponseDatacenterConnector

A pageable asynchronous sequence of DatacenterConnector resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectorsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatacenterConnector item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatacenterConnectorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatacenterConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGroups(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Groups in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent, which owns this collection of groups.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListGroupsResponseGroup

A pageable sequence of Group resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Group item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGroups(ListGroupsRequest, CallSettings)

public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(ListGroupsRequest request, CallSettings callSettings = null)

Lists Groups in a given project and location.

Parameters
NameDescription
requestListGroupsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListGroupsResponseGroup

A pageable sequence of Group resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListGroupsRequest request = new ListGroupsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroups(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Group item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGroups(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Groups in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of groups.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListGroupsResponseGroup

A pageable sequence of Group resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Group item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGroupsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Groups in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent, which owns this collection of groups.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListGroupsResponseGroup

A pageable asynchronous sequence of Group resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGroupsAsync(ListGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(ListGroupsRequest request, CallSettings callSettings = null)

Lists Groups in a given project and location.

Parameters
NameDescription
requestListGroupsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListGroupsResponseGroup

A pageable asynchronous sequence of Group resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListGroupsRequest request = new ListGroupsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroupsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGroupsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Groups in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of groups.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListGroupsResponseGroup

A pageable asynchronous sequence of Group resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListMigratingVms(ListMigratingVmsRequest, CallSettings)

public virtual PagedEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVms(ListMigratingVmsRequest request, CallSettings callSettings = null)

Lists MigratingVms in a given Source.

Parameters
NameDescription
requestListMigratingVmsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListMigratingVmsResponseMigratingVm

A pageable sequence of MigratingVm resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListMigratingVmsRequest request = new ListMigratingVmsRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    Filter = "",
    OrderBy = "",
    View = MigratingVmView.Unspecified,
};
// Make the request
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVms(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (MigratingVm item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMigratingVmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (MigratingVm item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListMigratingVms(SourceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVms(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists MigratingVms in a given Source.

Parameters
NameDescription
parentSourceName

Required. The parent, which owns this collection of MigratingVms.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListMigratingVmsResponseMigratingVm

A pageable sequence of MigratingVm resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVms(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (MigratingVm item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMigratingVmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (MigratingVm item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListMigratingVms(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVms(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists MigratingVms in a given Source.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of MigratingVms.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListMigratingVmsResponseMigratingVm

A pageable sequence of MigratingVm resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVms(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (MigratingVm item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMigratingVmsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (MigratingVm item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListMigratingVmsAsync(ListMigratingVmsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVmsAsync(ListMigratingVmsRequest request, CallSettings callSettings = null)

Lists MigratingVms in a given Source.

Parameters
NameDescription
requestListMigratingVmsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListMigratingVmsResponseMigratingVm

A pageable asynchronous sequence of MigratingVm resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListMigratingVmsRequest request = new ListMigratingVmsRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    Filter = "",
    OrderBy = "",
    View = MigratingVmView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVmsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MigratingVm item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMigratingVmsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (MigratingVm item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListMigratingVmsAsync(SourceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVmsAsync(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists MigratingVms in a given Source.

Parameters
NameDescription
parentSourceName

Required. The parent, which owns this collection of MigratingVms.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListMigratingVmsResponseMigratingVm

A pageable asynchronous sequence of MigratingVm resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVmsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MigratingVm item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMigratingVmsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (MigratingVm item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListMigratingVmsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVmsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists MigratingVms in a given Source.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of MigratingVms.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListMigratingVmsResponseMigratingVm

A pageable asynchronous sequence of MigratingVm resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVmsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MigratingVm item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMigratingVmsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (MigratingVm item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationCycles(ListReplicationCyclesRequest, CallSettings)

public virtual PagedEnumerable<ListReplicationCyclesResponse, ReplicationCycle> ListReplicationCycles(ListReplicationCyclesRequest request, CallSettings callSettings = null)

Lists ReplicationCycles in a given MigratingVM.

Parameters
NameDescription
requestListReplicationCyclesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReplicationCyclesResponseReplicationCycle

A pageable sequence of ReplicationCycle resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListReplicationCyclesRequest request = new ListReplicationCyclesRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListReplicationCyclesResponse, ReplicationCycle> response = vmMigrationClient.ListReplicationCycles(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReplicationCycle item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReplicationCyclesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReplicationCycle item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReplicationCycle> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReplicationCycle item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationCycles(MigratingVmName, string, int?, CallSettings)

public virtual PagedEnumerable<ListReplicationCyclesResponse, ReplicationCycle> ListReplicationCycles(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReplicationCycles in a given MigratingVM.

Parameters
NameDescription
parentMigratingVmName

Required. The parent, which owns this collection of ReplicationCycles.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReplicationCyclesResponseReplicationCycle

A pageable sequence of ReplicationCycle resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedEnumerable<ListReplicationCyclesResponse, ReplicationCycle> response = vmMigrationClient.ListReplicationCycles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReplicationCycle item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReplicationCyclesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReplicationCycle item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReplicationCycle> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReplicationCycle item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationCycles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListReplicationCyclesResponse, ReplicationCycle> ListReplicationCycles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReplicationCycles in a given MigratingVM.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of ReplicationCycles.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReplicationCyclesResponseReplicationCycle

A pageable sequence of ReplicationCycle resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
PagedEnumerable<ListReplicationCyclesResponse, ReplicationCycle> response = vmMigrationClient.ListReplicationCycles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReplicationCycle item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReplicationCyclesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReplicationCycle item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReplicationCycle> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReplicationCycle item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationCyclesAsync(ListReplicationCyclesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListReplicationCyclesResponse, ReplicationCycle> ListReplicationCyclesAsync(ListReplicationCyclesRequest request, CallSettings callSettings = null)

Lists ReplicationCycles in a given MigratingVM.

Parameters
NameDescription
requestListReplicationCyclesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReplicationCyclesResponseReplicationCycle

A pageable asynchronous sequence of ReplicationCycle resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListReplicationCyclesRequest request = new ListReplicationCyclesRequest
{
    ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListReplicationCyclesResponse, ReplicationCycle> response = vmMigrationClient.ListReplicationCyclesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReplicationCycle item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReplicationCyclesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReplicationCycle item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReplicationCycle> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReplicationCycle item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationCyclesAsync(MigratingVmName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReplicationCyclesResponse, ReplicationCycle> ListReplicationCyclesAsync(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReplicationCycles in a given MigratingVM.

Parameters
NameDescription
parentMigratingVmName

Required. The parent, which owns this collection of ReplicationCycles.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReplicationCyclesResponseReplicationCycle

A pageable asynchronous sequence of ReplicationCycle resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedAsyncEnumerable<ListReplicationCyclesResponse, ReplicationCycle> response = vmMigrationClient.ListReplicationCyclesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReplicationCycle item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReplicationCyclesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReplicationCycle item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReplicationCycle> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReplicationCycle item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationCyclesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReplicationCyclesResponse, ReplicationCycle> ListReplicationCyclesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReplicationCycles in a given MigratingVM.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of ReplicationCycles.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReplicationCyclesResponseReplicationCycle

A pageable asynchronous sequence of ReplicationCycle resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
PagedAsyncEnumerable<ListReplicationCyclesResponse, ReplicationCycle> response = vmMigrationClient.ListReplicationCyclesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReplicationCycle item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReplicationCyclesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReplicationCycle item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReplicationCycle> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReplicationCycle item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSources(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Sources in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent, which owns this collection of sources.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListSourcesResponseSource

A pageable sequence of Source resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSources(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSources(ListSourcesRequest, CallSettings)

public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(ListSourcesRequest request, CallSettings callSettings = null)

Lists Sources in a given project and location.

Parameters
NameDescription
requestListSourcesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListSourcesResponseSource

A pageable sequence of Source resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListSourcesRequest request = new ListSourcesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSources(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSources(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Sources in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of sources.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListSourcesResponseSource

A pageable sequence of Source resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSources(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSourcesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Sources in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent, which owns this collection of sources.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListSourcesResponseSource

A pageable asynchronous sequence of Source resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSourcesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSourcesAsync(ListSourcesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(ListSourcesRequest request, CallSettings callSettings = null)

Lists Sources in a given project and location.

Parameters
NameDescription
requestListSourcesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListSourcesResponseSource

A pageable asynchronous sequence of Source resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListSourcesRequest request = new ListSourcesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSourcesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSourcesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Sources in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of sources.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListSourcesResponseSource

A pageable asynchronous sequence of Source resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSourcesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTargetProjects(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjects(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TargetProjects in a given project.

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

Parameters
NameDescription
parentLocationName

Required. The parent, which owns this collection of targets.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTargetProjectsResponseTargetProject

A pageable sequence of TargetProject resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjects(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TargetProject item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTargetProjectsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TargetProject item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTargetProjects(ListTargetProjectsRequest, CallSettings)

public virtual PagedEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjects(ListTargetProjectsRequest request, CallSettings callSettings = null)

Lists TargetProjects in a given project.

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

Parameters
NameDescription
requestListTargetProjectsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTargetProjectsResponseTargetProject

A pageable sequence of TargetProject resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListTargetProjectsRequest request = new ListTargetProjectsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjects(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (TargetProject item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTargetProjectsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TargetProject item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTargetProjects(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjects(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TargetProjects in a given project.

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

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of targets.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTargetProjectsResponseTargetProject

A pageable sequence of TargetProject resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjects(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TargetProject item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTargetProjectsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TargetProject item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTargetProjectsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjectsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TargetProjects in a given project.

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

Parameters
NameDescription
parentLocationName

Required. The parent, which owns this collection of targets.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTargetProjectsResponseTargetProject

A pageable asynchronous sequence of TargetProject resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjectsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TargetProject item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTargetProjectsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TargetProject item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTargetProjectsAsync(ListTargetProjectsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjectsAsync(ListTargetProjectsRequest request, CallSettings callSettings = null)

Lists TargetProjects in a given project.

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

Parameters
NameDescription
requestListTargetProjectsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTargetProjectsResponseTargetProject

A pageable asynchronous sequence of TargetProject resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListTargetProjectsRequest request = new ListTargetProjectsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjectsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TargetProject item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTargetProjectsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TargetProject item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTargetProjectsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjectsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TargetProjects in a given project.

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

Parameters
NameDescription
parentstring

Required. The parent, which owns this collection of targets.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTargetProjectsResponseTargetProject

A pageable asynchronous sequence of TargetProject resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjectsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TargetProject item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTargetProjectsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TargetProject item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUtilizationReports(ListUtilizationReportsRequest, CallSettings)

public virtual PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReports(ListUtilizationReportsRequest request, CallSettings callSettings = null)

Lists Utilization Reports of the given Source.

Parameters
NameDescription
requestListUtilizationReportsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListUtilizationReportsResponseUtilizationReport

A pageable sequence of UtilizationReport resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListUtilizationReportsRequest request = new ListUtilizationReportsRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    View = UtilizationReportView.Unspecified,
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReports(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (UtilizationReport item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUtilizationReportsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UtilizationReport item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUtilizationReports(SourceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReports(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Utilization Reports of the given Source.

Parameters
NameDescription
parentSourceName

Required. The Utilization Reports parent.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListUtilizationReportsResponseUtilizationReport

A pageable sequence of UtilizationReport resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReports(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (UtilizationReport item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUtilizationReportsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UtilizationReport item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUtilizationReports(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReports(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Utilization Reports of the given Source.

Parameters
NameDescription
parentstring

Required. The Utilization Reports parent.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListUtilizationReportsResponseUtilizationReport

A pageable sequence of UtilizationReport resources.

Example
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReports(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (UtilizationReport item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUtilizationReportsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UtilizationReport item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUtilizationReportsAsync(ListUtilizationReportsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReportsAsync(ListUtilizationReportsRequest request, CallSettings callSettings = null)

Lists Utilization Reports of the given Source.

Parameters
NameDescription
requestListUtilizationReportsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListUtilizationReportsResponseUtilizationReport

A pageable asynchronous sequence of UtilizationReport resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListUtilizationReportsRequest request = new ListUtilizationReportsRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    View = UtilizationReportView.Unspecified,
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReportsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UtilizationReport item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUtilizationReportsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UtilizationReport item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUtilizationReportsAsync(SourceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReportsAsync(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Utilization Reports of the given Source.

Parameters
NameDescription
parentSourceName

Required. The Utilization Reports parent.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListUtilizationReportsResponseUtilizationReport

A pageable asynchronous sequence of UtilizationReport resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReportsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UtilizationReport item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUtilizationReportsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UtilizationReport item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUtilizationReportsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReportsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Utilization Reports of the given Source.

Parameters
NameDescription
parentstring

Required. The Utilization Reports parent.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListUtilizationReportsResponseUtilizationReport

A pageable asynchronous sequence of UtilizationReport resources.

Example
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReportsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UtilizationReport item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUtilizationReportsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UtilizationReport item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PauseMigration(PauseMigrationRequest, CallSettings)

public virtual Operation<PauseMigrationResponse, OperationMetadata> PauseMigration(PauseMigrationRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestPauseMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPauseMigrationResponseOperationMetadata

The RPC response.

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

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

PauseMigrationAsync(PauseMigrationRequest, CallSettings)

public virtual Task<Operation<PauseMigrationResponse, OperationMetadata>> PauseMigrationAsync(PauseMigrationRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestPauseMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPauseMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

PauseMigrationAsync(PauseMigrationRequest, CancellationToken)

public virtual Task<Operation<PauseMigrationResponse, OperationMetadata>> PauseMigrationAsync(PauseMigrationRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestPauseMigrationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationPauseMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

PollOnceAddGroupMigration(string, CallSettings)

public virtual Operation<AddGroupMigrationResponse, OperationMetadata> PollOnceAddGroupMigration(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of AddGroupMigration .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationAddGroupMigrationResponseOperationMetadata

The result of polling the operation.

PollOnceAddGroupMigrationAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of AddGroupMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationAddGroupMigrationResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceCancelCloneJob(string, CallSettings)

public virtual Operation<CancelCloneJobResponse, OperationMetadata> PollOnceCancelCloneJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CancelCloneJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCancelCloneJobResponseOperationMetadata

The result of polling the operation.

PollOnceCancelCloneJobAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of CancelCloneJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCancelCloneJobResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceCancelCutoverJob(string, CallSettings)

public virtual Operation<CancelCutoverJobResponse, OperationMetadata> PollOnceCancelCutoverJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CancelCutoverJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCancelCutoverJobResponseOperationMetadata

The result of polling the operation.

PollOnceCancelCutoverJobAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of CancelCutoverJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCancelCutoverJobResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateCloneJob(string, CallSettings)

public virtual Operation<CloneJob, OperationMetadata> PollOnceCreateCloneJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateCloneJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCloneJobOperationMetadata

The result of polling the operation.

PollOnceCreateCloneJobAsync(string, CallSettings)

public virtual Task<Operation<CloneJob, OperationMetadata>> PollOnceCreateCloneJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateCloneJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCloneJobOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateCutoverJob(string, CallSettings)

public virtual Operation<CutoverJob, OperationMetadata> PollOnceCreateCutoverJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateCutoverJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCutoverJobOperationMetadata

The result of polling the operation.

PollOnceCreateCutoverJobAsync(string, CallSettings)

public virtual Task<Operation<CutoverJob, OperationMetadata>> PollOnceCreateCutoverJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateCutoverJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCutoverJobOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateDatacenterConnector(string, CallSettings)

public virtual Operation<DatacenterConnector, OperationMetadata> PollOnceCreateDatacenterConnector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateDatacenterConnector.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationDatacenterConnectorOperationMetadata

The result of polling the operation.

PollOnceCreateDatacenterConnectorAsync(string, CallSettings)

public virtual Task<Operation<DatacenterConnector, OperationMetadata>> PollOnceCreateDatacenterConnectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateDatacenterConnector.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationDatacenterConnectorOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateGroup(string, CallSettings)

public virtual Operation<Group, OperationMetadata> PollOnceCreateGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The result of polling the operation.

PollOnceCreateGroupAsync(string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> PollOnceCreateGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateMigratingVm(string, CallSettings)

public virtual Operation<MigratingVm, OperationMetadata> PollOnceCreateMigratingVm(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateMigratingVm .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMigratingVmOperationMetadata

The result of polling the operation.

PollOnceCreateMigratingVmAsync(string, CallSettings)

public virtual Task<Operation<MigratingVm, OperationMetadata>> PollOnceCreateMigratingVmAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateMigratingVm.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMigratingVmOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateSource(string, CallSettings)

public virtual Operation<Source, OperationMetadata> PollOnceCreateSource(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The result of polling the operation.

PollOnceCreateSourceAsync(string, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> PollOnceCreateSourceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateTargetProject(string, CallSettings)

public virtual Operation<TargetProject, OperationMetadata> PollOnceCreateTargetProject(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateTargetProject .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationTargetProjectOperationMetadata

The result of polling the operation.

PollOnceCreateTargetProjectAsync(string, CallSettings)

public virtual Task<Operation<TargetProject, OperationMetadata>> PollOnceCreateTargetProjectAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateTargetProject.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationTargetProjectOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateUtilizationReport(string, CallSettings)

public virtual Operation<UtilizationReport, OperationMetadata> PollOnceCreateUtilizationReport(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateUtilizationReport.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationUtilizationReportOperationMetadata

The result of polling the operation.

PollOnceCreateUtilizationReportAsync(string, CallSettings)

public virtual Task<Operation<UtilizationReport, OperationMetadata>> PollOnceCreateUtilizationReportAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateUtilizationReport.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationUtilizationReportOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteDatacenterConnector(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteDatacenterConnector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteDatacenterConnector.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteDatacenterConnectorAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteDatacenterConnector.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteGroup(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteGroupAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteMigratingVm(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteMigratingVm(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteMigratingVm .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteMigratingVmAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteMigratingVm.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteSource(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteSource(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSourceAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteTargetProject(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteTargetProject(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteTargetProject .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteTargetProjectAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteTargetProject.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteUtilizationReport(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteUtilizationReport(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteUtilizationReport.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteUtilizationReportAsync(string, CallSettings)

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

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteUtilizationReport.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceFinalizeMigration(string, CallSettings)

public virtual Operation<FinalizeMigrationResponse, OperationMetadata> PollOnceFinalizeMigration(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of FinalizeMigration .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFinalizeMigrationResponseOperationMetadata

The result of polling the operation.

PollOnceFinalizeMigrationAsync(string, CallSettings)

public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> PollOnceFinalizeMigrationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of FinalizeMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFinalizeMigrationResponseOperationMetadata

A task representing the result of polling the operation.

PollOncePauseMigration(string, CallSettings)

public virtual Operation<PauseMigrationResponse, OperationMetadata> PollOncePauseMigration(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of PauseMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPauseMigrationResponseOperationMetadata

The result of polling the operation.

PollOncePauseMigrationAsync(string, CallSettings)

public virtual Task<Operation<PauseMigrationResponse, OperationMetadata>> PollOncePauseMigrationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of PauseMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPauseMigrationResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceRemoveGroupMigration(string, CallSettings)

public virtual Operation<RemoveGroupMigrationResponse, OperationMetadata> PollOnceRemoveGroupMigration(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of RemoveGroupMigration .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationRemoveGroupMigrationResponseOperationMetadata

The result of polling the operation.

PollOnceRemoveGroupMigrationAsync(string, CallSettings)

public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> PollOnceRemoveGroupMigrationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of RemoveGroupMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationRemoveGroupMigrationResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceResumeMigration(string, CallSettings)

public virtual Operation<ResumeMigrationResponse, OperationMetadata> PollOnceResumeMigration(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ResumeMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationResumeMigrationResponseOperationMetadata

The result of polling the operation.

PollOnceResumeMigrationAsync(string, CallSettings)

public virtual Task<Operation<ResumeMigrationResponse, OperationMetadata>> PollOnceResumeMigrationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ResumeMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationResumeMigrationResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceStartMigration(string, CallSettings)

public virtual Operation<StartMigrationResponse, OperationMetadata> PollOnceStartMigration(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of StartMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationStartMigrationResponseOperationMetadata

The result of polling the operation.

PollOnceStartMigrationAsync(string, CallSettings)

public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> PollOnceStartMigrationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of StartMigration.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationStartMigrationResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateGroup(string, CallSettings)

public virtual Operation<Group, OperationMetadata> PollOnceUpdateGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The result of polling the operation.

PollOnceUpdateGroupAsync(string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> PollOnceUpdateGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateMigratingVm(string, CallSettings)

public virtual Operation<MigratingVm, OperationMetadata> PollOnceUpdateMigratingVm(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateMigratingVm .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMigratingVmOperationMetadata

The result of polling the operation.

PollOnceUpdateMigratingVmAsync(string, CallSettings)

public virtual Task<Operation<MigratingVm, OperationMetadata>> PollOnceUpdateMigratingVmAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateMigratingVm.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMigratingVmOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateSource(string, CallSettings)

public virtual Operation<Source, OperationMetadata> PollOnceUpdateSource(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The result of polling the operation.

PollOnceUpdateSourceAsync(string, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> PollOnceUpdateSourceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateTargetProject(string, CallSettings)

public virtual Operation<TargetProject, OperationMetadata> PollOnceUpdateTargetProject(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateTargetProject .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationTargetProjectOperationMetadata

The result of polling the operation.

PollOnceUpdateTargetProjectAsync(string, CallSettings)

public virtual Task<Operation<TargetProject, OperationMetadata>> PollOnceUpdateTargetProjectAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateTargetProject.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationTargetProjectOperationMetadata

A task representing the result of polling the operation.

PollOnceUpgradeAppliance(string, CallSettings)

public virtual Operation<UpgradeApplianceResponse, OperationMetadata> PollOnceUpgradeAppliance(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpgradeAppliance.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationUpgradeApplianceResponseOperationMetadata

The result of polling the operation.

PollOnceUpgradeApplianceAsync(string, CallSettings)

public virtual Task<Operation<UpgradeApplianceResponse, OperationMetadata>> PollOnceUpgradeApplianceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpgradeAppliance.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationUpgradeApplianceResponseOperationMetadata

A task representing the result of polling the operation.

RemoveGroupMigration(GroupName, CallSettings)

public virtual Operation<RemoveGroupMigrationResponse, OperationMetadata> RemoveGroupMigration(GroupName group, CallSettings callSettings = null)

Removes a MigratingVm from a Group.

Parameters
NameDescription
groupGroupName

Required. The name of the Group.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationRemoveGroupMigrationResponseOperationMetadata

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<RemoveGroupMigrationResponse, OperationMetadata> response = vmMigrationClient.RemoveGroupMigration(group);

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

RemoveGroupMigration(RemoveGroupMigrationRequest, CallSettings)

public virtual Operation<RemoveGroupMigrationResponse, OperationMetadata> RemoveGroupMigration(RemoveGroupMigrationRequest request, CallSettings callSettings = null)

Removes a MigratingVm from a Group.

Parameters
NameDescription
requestRemoveGroupMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationRemoveGroupMigrationResponseOperationMetadata

The RPC response.

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

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

RemoveGroupMigration(string, CallSettings)

public virtual Operation<RemoveGroupMigrationResponse, OperationMetadata> RemoveGroupMigration(string group, CallSettings callSettings = null)

Removes a MigratingVm from a Group.

Parameters
NameDescription
groupstring

Required. The name of the Group.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationRemoveGroupMigrationResponseOperationMetadata

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<RemoveGroupMigrationResponse, OperationMetadata> response = vmMigrationClient.RemoveGroupMigration(group);

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

RemoveGroupMigrationAsync(GroupName, CallSettings)

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

Removes a MigratingVm from a Group.

Parameters
NameDescription
groupGroupName

Required. The name of the Group.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationRemoveGroupMigrationResponseOperationMetadata

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<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(group);

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

RemoveGroupMigrationAsync(GroupName, CancellationToken)

public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(GroupName group, CancellationToken cancellationToken)

Removes a MigratingVm from a Group.

Parameters
NameDescription
groupGroupName

Required. The name of the Group.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationRemoveGroupMigrationResponseOperationMetadata

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<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(group);

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

RemoveGroupMigrationAsync(RemoveGroupMigrationRequest, CallSettings)

public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(RemoveGroupMigrationRequest request, CallSettings callSettings = null)

Removes a MigratingVm from a Group.

Parameters
NameDescription
requestRemoveGroupMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationRemoveGroupMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

RemoveGroupMigrationAsync(RemoveGroupMigrationRequest, CancellationToken)

public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(RemoveGroupMigrationRequest request, CancellationToken cancellationToken)

Removes a MigratingVm from a Group.

Parameters
NameDescription
requestRemoveGroupMigrationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationRemoveGroupMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

RemoveGroupMigrationAsync(string, CallSettings)

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

Removes a MigratingVm from a Group.

Parameters
NameDescription
groupstring

Required. The name of the Group.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationRemoveGroupMigrationResponseOperationMetadata

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<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(group);

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

RemoveGroupMigrationAsync(string, CancellationToken)

public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(string group, CancellationToken cancellationToken)

Removes a MigratingVm from a Group.

Parameters
NameDescription
groupstring

Required. The name of the Group.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationRemoveGroupMigrationResponseOperationMetadata

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<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(group);

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

ResumeMigration(ResumeMigrationRequest, CallSettings)

public virtual Operation<ResumeMigrationResponse, OperationMetadata> ResumeMigration(ResumeMigrationRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestResumeMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationResumeMigrationResponseOperationMetadata

The RPC response.

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

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

ResumeMigrationAsync(ResumeMigrationRequest, CallSettings)

public virtual Task<Operation<ResumeMigrationResponse, OperationMetadata>> ResumeMigrationAsync(ResumeMigrationRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestResumeMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationResumeMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

ResumeMigrationAsync(ResumeMigrationRequest, CancellationToken)

public virtual Task<Operation<ResumeMigrationResponse, OperationMetadata>> ResumeMigrationAsync(ResumeMigrationRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestResumeMigrationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationResumeMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

StartMigration(MigratingVmName, CallSettings)

public virtual Operation<StartMigrationResponse, OperationMetadata> StartMigration(MigratingVmName migratingVm, CallSettings callSettings = null)

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

Parameters
NameDescription
migratingVmMigratingVmName

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationStartMigrationResponseOperationMetadata

The RPC response.

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

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

StartMigration(StartMigrationRequest, CallSettings)

public virtual Operation<StartMigrationResponse, OperationMetadata> StartMigration(StartMigrationRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestStartMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationStartMigrationResponseOperationMetadata

The RPC response.

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

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

StartMigration(string, CallSettings)

public virtual Operation<StartMigrationResponse, OperationMetadata> StartMigration(string migratingVm, CallSettings callSettings = null)

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

Parameters
NameDescription
migratingVmstring

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationStartMigrationResponseOperationMetadata

The RPC response.

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

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

StartMigrationAsync(MigratingVmName, CallSettings)

public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(MigratingVmName migratingVm, CallSettings callSettings = null)

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

Parameters
NameDescription
migratingVmMigratingVmName

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationStartMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

StartMigrationAsync(MigratingVmName, CancellationToken)

public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(MigratingVmName migratingVm, CancellationToken cancellationToken)

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

Parameters
NameDescription
migratingVmMigratingVmName

Required. The name of the MigratingVm.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationStartMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

StartMigrationAsync(StartMigrationRequest, CallSettings)

public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(StartMigrationRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestStartMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationStartMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

StartMigrationAsync(StartMigrationRequest, CancellationToken)

public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(StartMigrationRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestStartMigrationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationStartMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

StartMigrationAsync(string, CallSettings)

public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(string migratingVm, CallSettings callSettings = null)

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

Parameters
NameDescription
migratingVmstring

Required. The name of the MigratingVm.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationStartMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

StartMigrationAsync(string, CancellationToken)

public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(string migratingVm, CancellationToken cancellationToken)

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

Parameters
NameDescription
migratingVmstring

Required. The name of the MigratingVm.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationStartMigrationResponseOperationMetadata

A Task containing the RPC response.

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

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

UpdateGroup(Group, FieldMask, CallSettings)

public virtual Operation<Group, OperationMetadata> UpdateGroup(Group group, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Group.

Parameters
NameDescription
groupGroup

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = vmMigrationClient.UpdateGroup(group, updateMask);

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

UpdateGroup(UpdateGroupRequest, CallSettings)

public virtual Operation<Group, OperationMetadata> UpdateGroup(UpdateGroupRequest request, CallSettings callSettings = null)

Updates the parameters of a single Group.

Parameters
NameDescription
requestUpdateGroupRequest

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)
UpdateGroupRequest request = new UpdateGroupRequest
{
    UpdateMask = new FieldMask(),
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = vmMigrationClient.UpdateGroup(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.PollOnceUpdateGroup(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;
}

UpdateGroupAsync(Group, FieldMask, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(Group group, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Group.

Parameters
NameDescription
groupGroup

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.UpdateGroupAsync(group, updateMask);

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

UpdateGroupAsync(Group, FieldMask, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(Group group, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Group.

Parameters
NameDescription
groupGroup

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.UpdateGroupAsync(group, updateMask);

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

UpdateGroupAsync(UpdateGroupRequest, CallSettings)

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

Updates the parameters of a single Group.

Parameters
NameDescription
requestUpdateGroupRequest

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)
UpdateGroupRequest request = new UpdateGroupRequest
{
    UpdateMask = new FieldMask(),
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.UpdateGroupAsync(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.PollOnceUpdateGroupAsync(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;
}

UpdateGroupAsync(UpdateGroupRequest, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(UpdateGroupRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Group.

Parameters
NameDescription
requestUpdateGroupRequest

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)
UpdateGroupRequest request = new UpdateGroupRequest
{
    UpdateMask = new FieldMask(),
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.UpdateGroupAsync(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.PollOnceUpdateGroupAsync(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;
}

UpdateMigratingVm(MigratingVm, FieldMask, CallSettings)

public virtual Operation<MigratingVm, OperationMetadata> UpdateMigratingVm(MigratingVm migratingVm, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single MigratingVm.

Parameters
NameDescription
migratingVmMigratingVm

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the MigratingVm resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
MigratingVm migratingVm = new MigratingVm();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MigratingVm, OperationMetadata> response = vmMigrationClient.UpdateMigratingVm(migratingVm, updateMask);

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

UpdateMigratingVm(UpdateMigratingVmRequest, CallSettings)

public virtual Operation<MigratingVm, OperationMetadata> UpdateMigratingVm(UpdateMigratingVmRequest request, CallSettings callSettings = null)

Updates the parameters of a single MigratingVm.

Parameters
NameDescription
requestUpdateMigratingVmRequest

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)
UpdateMigratingVmRequest request = new UpdateMigratingVmRequest
{
    UpdateMask = new FieldMask(),
    MigratingVm = new MigratingVm(),
    RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = vmMigrationClient.UpdateMigratingVm(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.PollOnceUpdateMigratingVm(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;
}

UpdateMigratingVmAsync(MigratingVm, FieldMask, CallSettings)

public virtual Task<Operation<MigratingVm, OperationMetadata>> UpdateMigratingVmAsync(MigratingVm migratingVm, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single MigratingVm.

Parameters
NameDescription
migratingVmMigratingVm

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the MigratingVm resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
MigratingVm migratingVm = new MigratingVm();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.UpdateMigratingVmAsync(migratingVm, updateMask);

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

UpdateMigratingVmAsync(MigratingVm, FieldMask, CancellationToken)

public virtual Task<Operation<MigratingVm, OperationMetadata>> UpdateMigratingVmAsync(MigratingVm migratingVm, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single MigratingVm.

Parameters
NameDescription
migratingVmMigratingVm

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the MigratingVm resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
MigratingVm migratingVm = new MigratingVm();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.UpdateMigratingVmAsync(migratingVm, updateMask);

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

UpdateMigratingVmAsync(UpdateMigratingVmRequest, CallSettings)

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

Updates the parameters of a single MigratingVm.

Parameters
NameDescription
requestUpdateMigratingVmRequest

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)
UpdateMigratingVmRequest request = new UpdateMigratingVmRequest
{
    UpdateMask = new FieldMask(),
    MigratingVm = new MigratingVm(),
    RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.UpdateMigratingVmAsync(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.PollOnceUpdateMigratingVmAsync(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;
}

UpdateMigratingVmAsync(UpdateMigratingVmRequest, CancellationToken)

public virtual Task<Operation<MigratingVm, OperationMetadata>> UpdateMigratingVmAsync(UpdateMigratingVmRequest request, CancellationToken cancellationToken)

Updates the parameters of a single MigratingVm.

Parameters
NameDescription
requestUpdateMigratingVmRequest

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)
UpdateMigratingVmRequest request = new UpdateMigratingVmRequest
{
    UpdateMask = new FieldMask(),
    MigratingVm = new MigratingVm(),
    RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.UpdateMigratingVmAsync(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.PollOnceUpdateMigratingVmAsync(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;
}

UpdateSource(Source, FieldMask, CallSettings)

public virtual Operation<Source, OperationMetadata> UpdateSource(Source source, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Source.

Parameters
NameDescription
sourceSource

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the Source resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.UpdateSource(source, updateMask);

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

UpdateSource(UpdateSourceRequest, CallSettings)

public virtual Operation<Source, OperationMetadata> UpdateSource(UpdateSourceRequest request, CallSettings callSettings = null)

Updates the parameters of a single Source.

Parameters
NameDescription
requestUpdateSourceRequest

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)
UpdateSourceRequest request = new UpdateSourceRequest
{
    UpdateMask = new FieldMask(),
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.UpdateSource(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.PollOnceUpdateSource(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;
}

UpdateSourceAsync(Source, FieldMask, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(Source source, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Source.

Parameters
NameDescription
sourceSource

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the Source resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.UpdateSourceAsync(source, updateMask);

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

UpdateSourceAsync(Source, FieldMask, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(Source source, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Source.

Parameters
NameDescription
sourceSource

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the Source resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.UpdateSourceAsync(source, updateMask);

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

UpdateSourceAsync(UpdateSourceRequest, CallSettings)

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

Updates the parameters of a single Source.

Parameters
NameDescription
requestUpdateSourceRequest

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)
UpdateSourceRequest request = new UpdateSourceRequest
{
    UpdateMask = new FieldMask(),
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.UpdateSourceAsync(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.PollOnceUpdateSourceAsync(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;
}

UpdateSourceAsync(UpdateSourceRequest, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(UpdateSourceRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Source.

Parameters
NameDescription
requestUpdateSourceRequest

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)
UpdateSourceRequest request = new UpdateSourceRequest
{
    UpdateMask = new FieldMask(),
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.UpdateSourceAsync(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.PollOnceUpdateSourceAsync(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;
}

UpdateTargetProject(TargetProject, FieldMask, CallSettings)

public virtual Operation<TargetProject, OperationMetadata> UpdateTargetProject(TargetProject targetProject, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single TargetProject.

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

Parameters
NameDescription
targetProjectTargetProject

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the TargetProject resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
TargetProject targetProject = new TargetProject();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.UpdateTargetProject(targetProject, updateMask);

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

UpdateTargetProject(UpdateTargetProjectRequest, CallSettings)

public virtual Operation<TargetProject, OperationMetadata> UpdateTargetProject(UpdateTargetProjectRequest request, CallSettings callSettings = null)

Updates the parameters of a single TargetProject.

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

Parameters
NameDescription
requestUpdateTargetProjectRequest

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)
UpdateTargetProjectRequest request = new UpdateTargetProjectRequest
{
    UpdateMask = new FieldMask(),
    TargetProject = new TargetProject(),
    RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.UpdateTargetProject(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.PollOnceUpdateTargetProject(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;
}

UpdateTargetProjectAsync(TargetProject, FieldMask, CallSettings)

public virtual Task<Operation<TargetProject, OperationMetadata>> UpdateTargetProjectAsync(TargetProject targetProject, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single TargetProject.

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

Parameters
NameDescription
targetProjectTargetProject

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the TargetProject resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
TargetProject targetProject = new TargetProject();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.UpdateTargetProjectAsync(targetProject, updateMask);

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

UpdateTargetProjectAsync(TargetProject, FieldMask, CancellationToken)

public virtual Task<Operation<TargetProject, OperationMetadata>> UpdateTargetProjectAsync(TargetProject targetProject, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single TargetProject.

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

Parameters
NameDescription
targetProjectTargetProject

Required. The update request body.

updateMaskFieldMask

Field mask is used to specify the fields to be overwritten in the TargetProject resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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)
TargetProject targetProject = new TargetProject();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.UpdateTargetProjectAsync(targetProject, updateMask);

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

UpdateTargetProjectAsync(UpdateTargetProjectRequest, CallSettings)

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

Updates the parameters of a single TargetProject.

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

Parameters
NameDescription
requestUpdateTargetProjectRequest

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)
UpdateTargetProjectRequest request = new UpdateTargetProjectRequest
{
    UpdateMask = new FieldMask(),
    TargetProject = new TargetProject(),
    RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.UpdateTargetProjectAsync(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.PollOnceUpdateTargetProjectAsync(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;
}

UpdateTargetProjectAsync(UpdateTargetProjectRequest, CancellationToken)

public virtual Task<Operation<TargetProject, OperationMetadata>> UpdateTargetProjectAsync(UpdateTargetProjectRequest request, CancellationToken cancellationToken)

Updates the parameters of a single TargetProject.

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

Parameters
NameDescription
requestUpdateTargetProjectRequest

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)
UpdateTargetProjectRequest request = new UpdateTargetProjectRequest
{
    UpdateMask = new FieldMask(),
    TargetProject = new TargetProject(),
    RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.UpdateTargetProjectAsync(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.PollOnceUpdateTargetProjectAsync(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;
}

UpgradeAppliance(UpgradeApplianceRequest, CallSettings)

public virtual Operation<UpgradeApplianceResponse, OperationMetadata> UpgradeAppliance(UpgradeApplianceRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpgradeApplianceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationUpgradeApplianceResponseOperationMetadata

The RPC response.

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

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

UpgradeApplianceAsync(UpgradeApplianceRequest, CallSettings)

public virtual Task<Operation<UpgradeApplianceResponse, OperationMetadata>> UpgradeApplianceAsync(UpgradeApplianceRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpgradeApplianceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationUpgradeApplianceResponseOperationMetadata

A Task containing the RPC response.

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

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

UpgradeApplianceAsync(UpgradeApplianceRequest, CancellationToken)

public virtual Task<Operation<UpgradeApplianceResponse, OperationMetadata>> UpgradeApplianceAsync(UpgradeApplianceRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestUpgradeApplianceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationUpgradeApplianceResponseOperationMetadata

A Task containing the RPC response.

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

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