public abstract class VmMigrationClient
VmMigration client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.VMMigration.V1Assembly
Google.Cloud.VMMigration.V1.dll
Remarks
VM Migration Service
Properties
AddGroupMigrationOperationsClient
public virtual OperationsClient AddGroupMigrationOperationsClient { get; }
The long-running operations client for AddGroupMigration
.
Type | Description |
OperationsClient |
CancelCloneJobOperationsClient
public virtual OperationsClient CancelCloneJobOperationsClient { get; }
The long-running operations client for CancelCloneJob
.
Type | Description |
OperationsClient |
CancelCutoverJobOperationsClient
public virtual OperationsClient CancelCutoverJobOperationsClient { get; }
The long-running operations client for CancelCutoverJob
.
Type | Description |
OperationsClient |
CreateCloneJobOperationsClient
public virtual OperationsClient CreateCloneJobOperationsClient { get; }
The long-running operations client for CreateCloneJob
.
Type | Description |
OperationsClient |
CreateCutoverJobOperationsClient
public virtual OperationsClient CreateCutoverJobOperationsClient { get; }
The long-running operations client for CreateCutoverJob
.
Type | Description |
OperationsClient |
CreateDatacenterConnectorOperationsClient
public virtual OperationsClient CreateDatacenterConnectorOperationsClient { get; }
The long-running operations client for CreateDatacenterConnector
.
Type | Description |
OperationsClient |
CreateGroupOperationsClient
public virtual OperationsClient CreateGroupOperationsClient { get; }
The long-running operations client for CreateGroup
.
Type | Description |
OperationsClient |
CreateMigratingVmOperationsClient
public virtual OperationsClient CreateMigratingVmOperationsClient { get; }
The long-running operations client for CreateMigratingVm
.
Type | Description |
OperationsClient |
CreateSourceOperationsClient
public virtual OperationsClient CreateSourceOperationsClient { get; }
The long-running operations client for CreateSource
.
Type | Description |
OperationsClient |
CreateTargetProjectOperationsClient
public virtual OperationsClient CreateTargetProjectOperationsClient { get; }
The long-running operations client for CreateTargetProject
.
Type | Description |
OperationsClient |
CreateUtilizationReportOperationsClient
public virtual OperationsClient CreateUtilizationReportOperationsClient { get; }
The long-running operations client for CreateUtilizationReport
.
Type | Description |
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.
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default VmMigration scopes.
Type | Description |
IReadOnlyList<String> |
The default VmMigration scopes are:
DeleteDatacenterConnectorOperationsClient
public virtual OperationsClient DeleteDatacenterConnectorOperationsClient { get; }
The long-running operations client for DeleteDatacenterConnector
.
Type | Description |
OperationsClient |
DeleteGroupOperationsClient
public virtual OperationsClient DeleteGroupOperationsClient { get; }
The long-running operations client for DeleteGroup
.
Type | Description |
OperationsClient |
DeleteMigratingVmOperationsClient
public virtual OperationsClient DeleteMigratingVmOperationsClient { get; }
The long-running operations client for DeleteMigratingVm
.
Type | Description |
OperationsClient |
DeleteSourceOperationsClient
public virtual OperationsClient DeleteSourceOperationsClient { get; }
The long-running operations client for DeleteSource
.
Type | Description |
OperationsClient |
DeleteTargetProjectOperationsClient
public virtual OperationsClient DeleteTargetProjectOperationsClient { get; }
The long-running operations client for DeleteTargetProject
.
Type | Description |
OperationsClient |
DeleteUtilizationReportOperationsClient
public virtual OperationsClient DeleteUtilizationReportOperationsClient { get; }
The long-running operations client for DeleteUtilizationReport
.
Type | Description |
OperationsClient |
FinalizeMigrationOperationsClient
public virtual OperationsClient FinalizeMigrationOperationsClient { get; }
The long-running operations client for FinalizeMigration
.
Type | Description |
OperationsClient |
GrpcClient
public virtual VmMigration.VmMigrationClient GrpcClient { get; }
The underlying gRPC VmMigration client
Type | Description |
VmMigration.VmMigrationClient |
PauseMigrationOperationsClient
public virtual OperationsClient PauseMigrationOperationsClient { get; }
The long-running operations client for PauseMigration
.
Type | Description |
OperationsClient |
RemoveGroupMigrationOperationsClient
public virtual OperationsClient RemoveGroupMigrationOperationsClient { get; }
The long-running operations client for RemoveGroupMigration
.
Type | Description |
OperationsClient |
ResumeMigrationOperationsClient
public virtual OperationsClient ResumeMigrationOperationsClient { get; }
The long-running operations client for ResumeMigration
.
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Type | Description |
ServiceMetadata |
StartMigrationOperationsClient
public virtual OperationsClient StartMigrationOperationsClient { get; }
The long-running operations client for StartMigration
.
Type | Description |
OperationsClient |
UpdateGroupOperationsClient
public virtual OperationsClient UpdateGroupOperationsClient { get; }
The long-running operations client for UpdateGroup
.
Type | Description |
OperationsClient |
UpdateMigratingVmOperationsClient
public virtual OperationsClient UpdateMigratingVmOperationsClient { get; }
The long-running operations client for UpdateMigratingVm
.
Type | Description |
OperationsClient |
UpdateSourceOperationsClient
public virtual OperationsClient UpdateSourceOperationsClient { get; }
The long-running operations client for UpdateSource
.
Type | Description |
OperationsClient |
UpdateTargetProjectOperationsClient
public virtual OperationsClient UpdateTargetProjectOperationsClient { get; }
The long-running operations client for UpdateTargetProject
.
Type | Description |
OperationsClient |
Methods
AddGroupMigration(AddGroupMigrationRequest, CallSettings)
public virtual Operation<AddGroupMigrationResponse, OperationMetadata> AddGroupMigration(AddGroupMigrationRequest request, CallSettings callSettings = null)
Adds a MigratingVm to a Group.
Name | Description |
request | AddGroupMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<AddGroupMigrationResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
group | GroupName Required. The full path name of the Group to add to. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<AddGroupMigrationResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
group | String Required. The full path name of the Group to add to. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<AddGroupMigrationResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | AddGroupMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<AddGroupMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | AddGroupMigrationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<AddGroupMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
group | GroupName Required. The full path name of the Group to add to. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<AddGroupMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
group | GroupName Required. The full path name of the Group to add to. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<AddGroupMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
group | String Required. The full path name of the Group to add to. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<AddGroupMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
group | String Required. The full path name of the Group to add to. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<AddGroupMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CancelCloneJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CancelCloneJobResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
name | CloneJobName Required. The clone job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CancelCloneJobResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
name | String Required. The clone job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CancelCloneJobResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | CancelCloneJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CancelCloneJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CancelCloneJobRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CancelCloneJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
name | CloneJobName Required. The clone job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CancelCloneJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
name | CloneJobName Required. The clone job id |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CancelCloneJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
name | String Required. The clone job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CancelCloneJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
name | String Required. The clone job id |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CancelCloneJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CancelCutoverJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CancelCutoverJobResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
name | CutoverJobName Required. The cutover job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CancelCutoverJobResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
name | String Required. The cutover job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CancelCutoverJobResponse, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | CancelCutoverJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CancelCutoverJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CancelCutoverJobRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CancelCutoverJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
name | CutoverJobName Required. The cutover job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CancelCutoverJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
name | CutoverJobName Required. The cutover job id |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CancelCutoverJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
name | String Required. The cutover job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CancelCutoverJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
name | String Required. The cutover job id |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CancelCutoverJobResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Type | Description |
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.
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Type | Description |
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.
Name | Description |
request | CreateCloneJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CloneJob, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | MigratingVmName Required. The Clone's parent. |
cloneJob | CloneJob Required. The clone request body. |
cloneJobId | String Required. The clone job identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CloneJob, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | String Required. The Clone's parent. |
cloneJob | CloneJob Required. The clone request body. |
cloneJobId | String Required. The clone job identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CloneJob, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | CreateCloneJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CloneJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateCloneJobRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CloneJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | MigratingVmName Required. The Clone's parent. |
cloneJob | CloneJob Required. The clone request body. |
cloneJobId | String Required. The clone job identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CloneJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | MigratingVmName Required. The Clone's parent. |
cloneJob | CloneJob Required. The clone request body. |
cloneJobId | String Required. The clone job identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CloneJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The Clone's parent. |
cloneJob | CloneJob Required. The clone request body. |
cloneJobId | String Required. The clone job identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CloneJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The Clone's parent. |
cloneJob | CloneJob Required. The clone request body. |
cloneJobId | String Required. The clone job identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CloneJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateCutoverJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CutoverJob, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | MigratingVmName Required. The Cutover's parent. |
cutoverJob | CutoverJob Required. The cutover request body. |
cutoverJobId | String Required. The cutover job identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CutoverJob, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | String Required. The Cutover's parent. |
cutoverJob | CutoverJob Required. The cutover request body. |
cutoverJobId | String Required. The cutover job identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<CutoverJob, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | CreateCutoverJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CutoverJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateCutoverJobRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CutoverJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | MigratingVmName Required. The Cutover's parent. |
cutoverJob | CutoverJob Required. The cutover request body. |
cutoverJobId | String Required. The cutover job identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CutoverJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | MigratingVmName Required. The Cutover's parent. |
cutoverJob | CutoverJob Required. The cutover request body. |
cutoverJobId | String Required. The cutover job identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CutoverJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The Cutover's parent. |
cutoverJob | CutoverJob Required. The cutover request body. |
cutoverJobId | String Required. The cutover job identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<CutoverJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The Cutover's parent. |
cutoverJob | CutoverJob Required. The cutover request body. |
cutoverJobId | String Required. The cutover job identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<CutoverJob, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<DatacenterConnector, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | SourceName Required. The DatacenterConnector's parent.
Required. The Source in where the new DatacenterConnector will be created.
For example:
|
datacenterConnector | DatacenterConnector Required. The create request body. |
datacenterConnectorId | String Required. The datacenterConnector identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<DatacenterConnector, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | String Required. The DatacenterConnector's parent.
Required. The Source in where the new DatacenterConnector will be created.
For example:
|
datacenterConnector | DatacenterConnector Required. The create request body. |
datacenterConnectorId | String Required. The datacenterConnector identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<DatacenterConnector, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | CreateDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<DatacenterConnector, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<DatacenterConnector, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | SourceName Required. The DatacenterConnector's parent.
Required. The Source in where the new DatacenterConnector will be created.
For example:
|
datacenterConnector | DatacenterConnector Required. The create request body. |
datacenterConnectorId | String Required. The datacenterConnector identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<DatacenterConnector, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | SourceName Required. The DatacenterConnector's parent.
Required. The Source in where the new DatacenterConnector will be created.
For example:
|
datacenterConnector | DatacenterConnector Required. The create request body. |
datacenterConnectorId | String Required. The datacenterConnector identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<DatacenterConnector, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The DatacenterConnector's parent.
Required. The Source in where the new DatacenterConnector will be created.
For example:
|
datacenterConnector | DatacenterConnector Required. The create request body. |
datacenterConnectorId | String Required. The datacenterConnector identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<DatacenterConnector, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The DatacenterConnector's parent.
Required. The Source in where the new DatacenterConnector will be created.
For example:
|
datacenterConnector | DatacenterConnector Required. The create request body. |
datacenterConnectorId | String Required. The datacenterConnector identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<DatacenterConnector, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | LocationName Required. The Group's parent. |
group | Group Required. The create request body. |
groupId | String Required. The group identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Group, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | CreateGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Group, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | String Required. The Group's parent. |
group | Group Required. The create request body. |
groupId | String Required. The group identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Group, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | LocationName Required. The Group's parent. |
group | Group Required. The create request body. |
groupId | String Required. The group identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | LocationName Required. The Group's parent. |
group | Group Required. The create request body. |
groupId | String Required. The group identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The Group's parent. |
group | Group Required. The create request body. |
groupId | String Required. The group identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The Group's parent. |
group | Group Required. The create request body. |
groupId | String Required. The group identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateMigratingVmRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<MigratingVm, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | SourceName Required. The MigratingVm's parent. |
migratingVm | MigratingVm Required. The create request body. |
migratingVmId | String Required. The migratingVm identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<MigratingVm, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
parent | String Required. The MigratingVm's parent. |
migratingVm | MigratingVm Required. The create request body. |
migratingVmId | String Required. The migratingVm identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<MigratingVm, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | CreateMigratingVmRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
request | CreateMigratingVmRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | SourceName Required. The MigratingVm's parent. |
migratingVm | MigratingVm Required. The create request body. |
migratingVmId | String Required. The migratingVm identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | SourceName Required. The MigratingVm's parent. |
migratingVm | MigratingVm Required. The create request body. |
migratingVmId | String Required. The migratingVm identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The MigratingVm's parent. |
migratingVm | MigratingVm Required. The create request body. |
migratingVmId | String Required. The migratingVm identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | String Required. The MigratingVm's parent. |
migratingVm | MigratingVm Required. The create request body. |
migratingVmId | String Required. The migratingVm identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// 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.
Name | Description |
parent | LocationName Required. The Source's parent. |
source | Source Required. The create request body. |
sourceId | String Required. The source identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Source, OperationMetadata> | The RPC response. |
// 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.
Name | Description |
request | CreateSourceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Source, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
SourceId = "",
Source = new Source(),
RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.CreateSource(request);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
CreateSource(String, Source, String, CallSettings)
public virtual Operation<Source, OperationMetadata> CreateSource(string parent, Source source, string sourceId, CallSettings callSettings = null)
Creates a new Source in a given project and location.
Name | Description |
parent | String Required. The Source's parent. |
source | Source Required. The create request body. |
sourceId | String Required. The source identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Source, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.CreateSource(parent, source, sourceId);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
CreateSourceAsync(LocationName, Source, String, CallSettings)
public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(LocationName parent, Source source, string sourceId, CallSettings callSettings = null)
Creates a new Source in a given project and location.
Name |