Class VmMigrationClient

public abstract class VmMigrationClient

VmMigration client wrapper, for convenient use.

Inheritance

Object > VmMigrationClient

Derived Types

Namespace

Google.Cloud.VMMigration.V1

Assembly

Google.Cloud.VMMigration.V1.dll

Remarks

VM Migration Service

Properties

AddGroupMigrationOperationsClient

public virtual OperationsClient AddGroupMigrationOperationsClient { get; }

The long-running operations client for AddGroupMigration.

Property Value
TypeDescription
OperationsClient

CancelCloneJobOperationsClient

public virtual OperationsClient CancelCloneJobOperationsClient { get; }

The long-running operations client for CancelCloneJob.

Property Value
TypeDescription
OperationsClient

CancelCutoverJobOperationsClient

public virtual OperationsClient CancelCutoverJobOperationsClient { get; }

The long-running operations client for CancelCutoverJob.

Property Value
TypeDescription
OperationsClient

CreateCloneJobOperationsClient

public virtual OperationsClient CreateCloneJobOperationsClient { get; }

The long-running operations client for CreateCloneJob.

Property Value
TypeDescription
OperationsClient

CreateCutoverJobOperationsClient

public virtual OperationsClient CreateCutoverJobOperationsClient { get; }

The long-running operations client for CreateCutoverJob.

Property Value
TypeDescription
OperationsClient

CreateDatacenterConnectorOperationsClient

public virtual OperationsClient CreateDatacenterConnectorOperationsClient { get; }

The long-running operations client for CreateDatacenterConnector.

Property Value
TypeDescription
OperationsClient

CreateGroupOperationsClient

public virtual OperationsClient CreateGroupOperationsClient { get; }

The long-running operations client for CreateGroup.

Property Value
TypeDescription
OperationsClient

CreateMigratingVmOperationsClient

public virtual OperationsClient CreateMigratingVmOperationsClient { get; }

The long-running operations client for CreateMigratingVm.

Property Value
TypeDescription
OperationsClient

CreateSourceOperationsClient

public virtual OperationsClient CreateSourceOperationsClient { get; }

The long-running operations client for CreateSource.

Property Value
TypeDescription
OperationsClient

CreateTargetProjectOperationsClient

public virtual OperationsClient CreateTargetProjectOperationsClient { get; }

The long-running operations client for CreateTargetProject.

Property Value
TypeDescription
OperationsClient

CreateUtilizationReportOperationsClient

public virtual OperationsClient CreateUtilizationReportOperationsClient { get; }

The long-running operations client for CreateUtilizationReport.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default VmMigration scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default VmMigration scopes are:

DeleteDatacenterConnectorOperationsClient

public virtual OperationsClient DeleteDatacenterConnectorOperationsClient { get; }

The long-running operations client for DeleteDatacenterConnector.

Property Value
TypeDescription
OperationsClient

DeleteGroupOperationsClient

public virtual OperationsClient DeleteGroupOperationsClient { get; }

The long-running operations client for DeleteGroup.

Property Value
TypeDescription
OperationsClient

DeleteMigratingVmOperationsClient

public virtual OperationsClient DeleteMigratingVmOperationsClient { get; }

The long-running operations client for DeleteMigratingVm.

Property Value
TypeDescription
OperationsClient

DeleteSourceOperationsClient

public virtual OperationsClient DeleteSourceOperationsClient { get; }

The long-running operations client for DeleteSource.

Property Value
TypeDescription
OperationsClient

DeleteTargetProjectOperationsClient

public virtual OperationsClient DeleteTargetProjectOperationsClient { get; }

The long-running operations client for DeleteTargetProject.

Property Value
TypeDescription
OperationsClient

DeleteUtilizationReportOperationsClient

public virtual OperationsClient DeleteUtilizationReportOperationsClient { get; }

The long-running operations client for DeleteUtilizationReport.

Property Value
TypeDescription
OperationsClient

FinalizeMigrationOperationsClient

public virtual OperationsClient FinalizeMigrationOperationsClient { get; }

The long-running operations client for FinalizeMigration.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual VmMigration.VmMigrationClient GrpcClient { get; }

The underlying gRPC VmMigration client

Property Value
TypeDescription
VmMigration.VmMigrationClient

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

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

Methods

AddGroupMigration(AddGroupMigrationRequest, CallSettings)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
requestAddGroupMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AddGroupMigrationResponse, OperationMetadata>

The RPC response.

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

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

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

AddGroupMigration(GroupName, CallSettings)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupGroupName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AddGroupMigrationResponse, OperationMetadata>

The RPC response.

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

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

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

AddGroupMigration(String, CallSettings)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AddGroupMigrationResponse, OperationMetadata>

The RPC response.

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

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

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

AddGroupMigrationAsync(AddGroupMigrationRequest, CallSettings)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
requestAddGroupMigrationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

AddGroupMigrationAsync(AddGroupMigrationRequest, CancellationToken)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
requestAddGroupMigrationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

AddGroupMigrationAsync(GroupName, CallSettings)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupGroupName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

AddGroupMigrationAsync(GroupName, CancellationToken)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupGroupName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

AddGroupMigrationAsync(String, CallSettings)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

AddGroupMigrationAsync(String, CancellationToken)

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

Adds a MigratingVm to a Group.

Parameters
NameDescription
groupString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AddGroupMigrationResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCloneJob(CancelCloneJobRequest, CallSettings)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
requestCancelCloneJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCloneJobResponse, OperationMetadata>

The RPC response.

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

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

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

CancelCloneJob(CloneJobName, CallSettings)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameCloneJobName

Required. The clone job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCloneJobResponse, OperationMetadata>

The RPC response.

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

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

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

CancelCloneJob(String, CallSettings)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameString

Required. The clone job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCloneJobResponse, OperationMetadata>

The RPC response.

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

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

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

CancelCloneJobAsync(CancelCloneJobRequest, CallSettings)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
requestCancelCloneJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCloneJobAsync(CancelCloneJobRequest, CancellationToken)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
requestCancelCloneJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCloneJobAsync(CloneJobName, CallSettings)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameCloneJobName

Required. The clone job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCloneJobAsync(CloneJobName, CancellationToken)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameCloneJobName

Required. The clone job id

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCloneJobAsync(String, CallSettings)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameString

Required. The clone job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCloneJobAsync(String, CancellationToken)

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

Initiates the cancellation of a running clone job.

Parameters
NameDescription
nameString

Required. The clone job id

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCloneJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCutoverJob(CancelCutoverJobRequest, CallSettings)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
requestCancelCutoverJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCutoverJobResponse, OperationMetadata>

The RPC response.

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

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

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

CancelCutoverJob(CutoverJobName, CallSettings)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameCutoverJobName

Required. The cutover job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCutoverJobResponse, OperationMetadata>

The RPC response.

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

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

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

CancelCutoverJob(String, CallSettings)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameString

Required. The cutover job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CancelCutoverJobResponse, OperationMetadata>

The RPC response.

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

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

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

CancelCutoverJobAsync(CancelCutoverJobRequest, CallSettings)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
requestCancelCutoverJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCutoverJobAsync(CancelCutoverJobRequest, CancellationToken)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
requestCancelCutoverJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCutoverJobAsync(CutoverJobName, CallSettings)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameCutoverJobName

Required. The cutover job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCutoverJobAsync(CutoverJobName, CancellationToken)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameCutoverJobName

Required. The cutover job id

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

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

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

CancelCutoverJobAsync(String, CallSettings)

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

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
nameString

Required. The cutover job id

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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
Task<Operation<CancelCutoverJobResponse, OperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<CancelCutoverJobResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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(CancellationToken))

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
Task<VmMigrationClient>

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
Operation<CloneJob, OperationMetadata>

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
Operation<CloneJob, OperationMetadata>

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
Operation<CloneJob, OperationMetadata>

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
Task<Operation<CloneJob, OperationMetadata>>

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
Task<Operation<CloneJob, OperationMetadata>>

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
Task<Operation<CloneJob, OperationMetadata>>

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
Task<Operation<CloneJob, OperationMetadata>>

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
Task<Operation<CloneJob, OperationMetadata>>

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
Task<Operation<CloneJob, OperationMetadata>>

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
Operation<CutoverJob, OperationMetadata>

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
Operation<CutoverJob, OperationMetadata>

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
Operation<CutoverJob, OperationMetadata>

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
Task<Operation<CutoverJob, OperationMetadata>>

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
Task<Operation<CutoverJob, OperationMetadata>>

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
Task<Operation<CutoverJob, OperationMetadata>>

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
Task<Operation<CutoverJob, OperationMetadata>>

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
Task<Operation<CutoverJob, OperationMetadata>>

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
Task<Operation<CutoverJob, OperationMetadata>>

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
Operation<DatacenterConnector, OperationMetadata>

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
Operation<DatacenterConnector, OperationMetadata>

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
Operation<DatacenterConnector, OperationMetadata>

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
Task<Operation<DatacenterConnector, OperationMetadata>>

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
Task<Operation<DatacenterConnector, OperationMetadata>>

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
Task<Operation<DatacenterConnector, OperationMetadata>>

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
Task<Operation<DatacenterConnector, OperationMetadata>>

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
Task<Operation<DatacenterConnector, OperationMetadata>>

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
Task<Operation<DatacenterConnector, OperationMetadata>>

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
Operation<Group, OperationMetadata>

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
Operation<Group, OperationMetadata>

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
Operation<Group, OperationMetadata>

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
Task<Operation<Group, OperationMetadata>>

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
Task<Operation<Group, OperationMetadata>>

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
Task<Operation<Group, OperationMetadata>>

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
Task<Operation<Group, OperationMetadata>>

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
Task<Operation<Group, OperationMetadata>>

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
Task<Operation<Group, OperationMetadata>>

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
Operation<MigratingVm, OperationMetadata>

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
Operation<MigratingVm, OperationMetadata>

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
Operation<MigratingVm, OperationMetadata>

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
Task<Operation<MigratingVm, OperationMetadata>>

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
Task<Operation<MigratingVm, OperationMetadata>>

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
Task<Operation<MigratingVm, OperationMetadata>>

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
Task<Operation<MigratingVm, OperationMetadata>>

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
Task<Operation<MigratingVm, OperationMetadata>>

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
Task<Operation<MigratingVm, OperationMetadata>>

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
Operation<Source, OperationMetadata>

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.

callSettings