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
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CancelCloneJobOperationsClient
public virtual OperationsClient CancelCloneJobOperationsClient { get; }
The long-running operations client for CancelCloneJob
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CancelCutoverJobOperationsClient
public virtual OperationsClient CancelCutoverJobOperationsClient { get; }
The long-running operations client for CancelCutoverJob
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateCloneJobOperationsClient
public virtual OperationsClient CreateCloneJobOperationsClient { get; }
The long-running operations client for CreateCloneJob
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateCutoverJobOperationsClient
public virtual OperationsClient CreateCutoverJobOperationsClient { get; }
The long-running operations client for CreateCutoverJob
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateDatacenterConnectorOperationsClient
public virtual OperationsClient CreateDatacenterConnectorOperationsClient { get; }
The long-running operations client for CreateDatacenterConnector
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateGroupOperationsClient
public virtual OperationsClient CreateGroupOperationsClient { get; }
The long-running operations client for CreateGroup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateMigratingVmOperationsClient
public virtual OperationsClient CreateMigratingVmOperationsClient { get; }
The long-running operations client for CreateMigratingVm
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateSourceOperationsClient
public virtual OperationsClient CreateSourceOperationsClient { get; }
The long-running operations client for CreateSource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateTargetProjectOperationsClient
public virtual OperationsClient CreateTargetProjectOperationsClient { get; }
The long-running operations client for CreateTargetProject
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateUtilizationReportOperationsClient
public virtual OperationsClient CreateUtilizationReportOperationsClient { get; }
The long-running operations client for CreateUtilizationReport
.
Property Value | |
---|---|
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.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default VmMigration scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default VmMigration scopes are:
DeleteDatacenterConnectorOperationsClient
public virtual OperationsClient DeleteDatacenterConnectorOperationsClient { get; }
The long-running operations client for DeleteDatacenterConnector
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteGroupOperationsClient
public virtual OperationsClient DeleteGroupOperationsClient { get; }
The long-running operations client for DeleteGroup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteMigratingVmOperationsClient
public virtual OperationsClient DeleteMigratingVmOperationsClient { get; }
The long-running operations client for DeleteMigratingVm
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteSourceOperationsClient
public virtual OperationsClient DeleteSourceOperationsClient { get; }
The long-running operations client for DeleteSource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteTargetProjectOperationsClient
public virtual OperationsClient DeleteTargetProjectOperationsClient { get; }
The long-running operations client for DeleteTargetProject
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteUtilizationReportOperationsClient
public virtual OperationsClient DeleteUtilizationReportOperationsClient { get; }
The long-running operations client for DeleteUtilizationReport
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
FinalizeMigrationOperationsClient
public virtual OperationsClient FinalizeMigrationOperationsClient { get; }
The long-running operations client for FinalizeMigration
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual VmMigration.VmMigrationClient GrpcClient { get; }
The underlying gRPC VmMigration client
Property Value | |
---|---|
Type | Description |
VmMigration.VmMigrationClient |
PauseMigrationOperationsClient
public virtual OperationsClient PauseMigrationOperationsClient { get; }
The long-running operations client for PauseMigration
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RemoveGroupMigrationOperationsClient
public virtual OperationsClient RemoveGroupMigrationOperationsClient { get; }
The long-running operations client for RemoveGroupMigration
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ResumeMigrationOperationsClient
public virtual OperationsClient ResumeMigrationOperationsClient { get; }
The long-running operations client for ResumeMigration
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
StartMigrationOperationsClient
public virtual OperationsClient StartMigrationOperationsClient { get; }
The long-running operations client for StartMigration
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateGroupOperationsClient
public virtual OperationsClient UpdateGroupOperationsClient { get; }
The long-running operations client for UpdateGroup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateMigratingVmOperationsClient
public virtual OperationsClient UpdateMigratingVmOperationsClient { get; }
The long-running operations client for UpdateMigratingVm
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateSourceOperationsClient
public virtual OperationsClient UpdateSourceOperationsClient { get; }
The long-running operations client for UpdateSource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateTargetProjectOperationsClient
public virtual OperationsClient UpdateTargetProjectOperationsClient { get; }
The long-running operations client for UpdateTargetProject
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AddGroupMigration(AddGroupMigrationRequest, CallSettings)
public virtual Operation<AddGroupMigrationResponse, OperationMetadata> AddGroupMigration(AddGroupMigrationRequest request, CallSettings callSettings = null)
Adds a MigratingVm to a Group.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
group | GroupName Required. The full path name of the Group to add to. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
group | String Required. The full path name of the Group to add to. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | CloneJobName Required. The clone job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | String Required. The clone job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | CloneJobName Required. The clone job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | CloneJobName Required. The clone job id |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | String Required. The clone job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | String Required. The clone job id |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | CutoverJobName Required. The cutover job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | String Required. The cutover job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | CutoverJobName Required. The cutover job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | CutoverJobName Required. The cutover job id |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | String Required. The cutover job id |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
name | String Required. The cutover job id |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
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.
Returns | |
---|---|
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.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
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.
Parameters | |
---|---|
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. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(parent, source, sourceId);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
CreateSourceAsync(LocationName, Source, String, CancellationToken)
public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(LocationName parent, Source source, string sourceId, CancellationToken cancellationToken)
Creates a new Source in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The Source's parent. |
source | Source Required. The create request body. |
sourceId | String Required. The source identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(parent, source, sourceId);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
CreateSourceAsync(CreateSourceRequest, CallSettings)
public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(CreateSourceRequest request, CallSettings callSettings = null)
Creates a new Source in a given project and location.
Parameters | |
---|---|
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. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
SourceId = "",
Source = new Source(),
RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
CreateSourceAsync(CreateSourceRequest, CancellationToken)
public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(CreateSourceRequest request, CancellationToken cancellationToken)
Creates a new Source in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
SourceId = "",
Source = new Source(),
RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
CreateSourceAsync(String, Source, String, CallSettings)
public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(string parent, Source source, string sourceId, CallSettings callSettings = null)
Creates a new Source in a given project and location.
Parameters | |
---|---|
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. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(parent, source, sourceId);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
CreateSourceAsync(String, Source, String, CancellationToken)
public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(string parent, Source source, string sourceId, CancellationToken cancellationToken)
Creates a new Source in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The Source's parent. |
source | Source Required. The create request body. |
sourceId | String Required. The source identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.CreateSourceAsync(parent, source, sourceId);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
CreateTargetProject(LocationName, TargetProject, String, CallSettings)
public virtual Operation<TargetProject, OperationMetadata> CreateTargetProject(LocationName parent, TargetProject targetProject, string targetProjectId, CallSettings callSettings = null)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The TargetProject's parent. |
targetProject | TargetProject Required. The create request body. |
targetProjectId | String Required. The target_project identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<TargetProject, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.CreateTargetProject(parent, targetProject, targetProjectId);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateTargetProject(CreateTargetProjectRequest, CallSettings)
public virtual Operation<TargetProject, OperationMetadata> CreateTargetProject(CreateTargetProjectRequest request, CallSettings callSettings = null)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | CreateTargetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<TargetProject, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateTargetProjectRequest request = new CreateTargetProjectRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
TargetProjectId = "",
TargetProject = new TargetProject(),
RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.CreateTargetProject(request);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateTargetProject(String, TargetProject, String, CallSettings)
public virtual Operation<TargetProject, OperationMetadata> CreateTargetProject(string parent, TargetProject targetProject, string targetProjectId, CallSettings callSettings = null)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | String Required. The TargetProject's parent. |
targetProject | TargetProject Required. The create request body. |
targetProjectId | String Required. The target_project identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<TargetProject, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.CreateTargetProject(parent, targetProject, targetProjectId);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateTargetProjectAsync(LocationName, TargetProject, String, CallSettings)
public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(LocationName parent, TargetProject targetProject, string targetProjectId, CallSettings callSettings = null)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The TargetProject's parent. |
targetProject | TargetProject Required. The create request body. |
targetProjectId | String Required. The target_project identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(parent, targetProject, targetProjectId);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateTargetProjectAsync(LocationName, TargetProject, String, CancellationToken)
public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(LocationName parent, TargetProject targetProject, string targetProjectId, CancellationToken cancellationToken)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The TargetProject's parent. |
targetProject | TargetProject Required. The create request body. |
targetProjectId | String Required. The target_project identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(parent, targetProject, targetProjectId);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateTargetProjectAsync(CreateTargetProjectRequest, CallSettings)
public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(CreateTargetProjectRequest request, CallSettings callSettings = null)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | CreateTargetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateTargetProjectRequest request = new CreateTargetProjectRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
TargetProjectId = "",
TargetProject = new TargetProject(),
RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(request);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateTargetProjectAsync(CreateTargetProjectRequest, CancellationToken)
public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(CreateTargetProjectRequest request, CancellationToken cancellationToken)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | CreateTargetProjectRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateTargetProjectRequest request = new CreateTargetProjectRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
TargetProjectId = "",
TargetProject = new TargetProject(),
RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(request);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateTargetProjectAsync(String, TargetProject, String, CallSettings)
public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(string parent, TargetProject targetProject, string targetProjectId, CallSettings callSettings = null)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | String Required. The TargetProject's parent. |
targetProject | TargetProject Required. The create request body. |
targetProjectId | String Required. The target_project identifier. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(parent, targetProject, targetProjectId);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateTargetProjectAsync(String, TargetProject, String, CancellationToken)
public virtual Task<Operation<TargetProject, OperationMetadata>> CreateTargetProjectAsync(string parent, TargetProject targetProject, string targetProjectId, CancellationToken cancellationToken)
Creates a new TargetProject in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | String Required. The TargetProject's parent. |
targetProject | TargetProject Required. The create request body. |
targetProjectId | String Required. The target_project identifier. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TargetProject targetProject = new TargetProject();
string targetProjectId = "";
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.CreateTargetProjectAsync(parent, targetProject, targetProjectId);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReport(CreateUtilizationReportRequest, CallSettings)
public virtual Operation<UtilizationReport, OperationMetadata> CreateUtilizationReport(CreateUtilizationReportRequest request, CallSettings callSettings = null)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
request | CreateUtilizationReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<UtilizationReport, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
CreateUtilizationReportRequest request = new CreateUtilizationReportRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
UtilizationReport = new UtilizationReport(),
UtilizationReportId = "",
RequestId = "",
};
// Make the request
Operation<UtilizationReport, OperationMetadata> response = vmMigrationClient.CreateUtilizationReport(request);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReport(SourceName, UtilizationReport, String, CallSettings)
public virtual Operation<UtilizationReport, OperationMetadata> CreateUtilizationReport(SourceName parent, UtilizationReport utilizationReport, string utilizationReportId, CallSettings callSettings = null)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The Utilization Report's parent. |
utilizationReport | UtilizationReport Required. The report to create. |
utilizationReportId | String Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /[a-z][0-9]-/. It must start with an english letter and must not end with a hyphen. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<UtilizationReport, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = vmMigrationClient.CreateUtilizationReport(parent, utilizationReport, utilizationReportId);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReport(String, UtilizationReport, String, CallSettings)
public virtual Operation<UtilizationReport, OperationMetadata> CreateUtilizationReport(string parent, UtilizationReport utilizationReport, string utilizationReportId, CallSettings callSettings = null)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
parent | String Required. The Utilization Report's parent. |
utilizationReport | UtilizationReport Required. The report to create. |
utilizationReportId | String Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /[a-z][0-9]-/. It must start with an english letter and must not end with a hyphen. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<UtilizationReport, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = vmMigrationClient.CreateUtilizationReport(parent, utilizationReport, utilizationReportId);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceCreateUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReportAsync(CreateUtilizationReportRequest, CallSettings)
public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(CreateUtilizationReportRequest request, CallSettings callSettings = null)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
request | CreateUtilizationReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<UtilizationReport, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateUtilizationReportRequest request = new CreateUtilizationReportRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
UtilizationReport = new UtilizationReport(),
UtilizationReportId = "",
RequestId = "",
};
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(request);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReportAsync(CreateUtilizationReportRequest, CancellationToken)
public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(CreateUtilizationReportRequest request, CancellationToken cancellationToken)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
request | CreateUtilizationReportRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<UtilizationReport, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
CreateUtilizationReportRequest request = new CreateUtilizationReportRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
UtilizationReport = new UtilizationReport(),
UtilizationReportId = "",
RequestId = "",
};
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(request);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReportAsync(SourceName, UtilizationReport, String, CallSettings)
public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(SourceName parent, UtilizationReport utilizationReport, string utilizationReportId, CallSettings callSettings = null)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The Utilization Report's parent. |
utilizationReport | UtilizationReport Required. The report to create. |
utilizationReportId | String Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /[a-z][0-9]-/. It must start with an english letter and must not end with a hyphen. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<UtilizationReport, 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]");
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(parent, utilizationReport, utilizationReportId);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReportAsync(SourceName, UtilizationReport, String, CancellationToken)
public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(SourceName parent, UtilizationReport utilizationReport, string utilizationReportId, CancellationToken cancellationToken)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The Utilization Report's parent. |
utilizationReport | UtilizationReport Required. The report to create. |
utilizationReportId | String Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /[a-z][0-9]-/. It must start with an english letter and must not end with a hyphen. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<UtilizationReport, 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]");
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(parent, utilizationReport, utilizationReportId);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReportAsync(String, UtilizationReport, String, CallSettings)
public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(string parent, UtilizationReport utilizationReport, string utilizationReportId, CallSettings callSettings = null)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
parent | String Required. The Utilization Report's parent. |
utilizationReport | UtilizationReport Required. The report to create. |
utilizationReportId | String Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /[a-z][0-9]-/. It must start with an english letter and must not end with a hyphen. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<UtilizationReport, 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]";
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(parent, utilizationReport, utilizationReportId);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
CreateUtilizationReportAsync(String, UtilizationReport, String, CancellationToken)
public virtual Task<Operation<UtilizationReport, OperationMetadata>> CreateUtilizationReportAsync(string parent, UtilizationReport utilizationReport, string utilizationReportId, CancellationToken cancellationToken)
Creates a new UtilizationReport.
Parameters | |
---|---|
Name | Description |
parent | String Required. The Utilization Report's parent. |
utilizationReport | UtilizationReport Required. The report to create. |
utilizationReportId | String Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /[a-z][0-9]-/. It must start with an english letter and must not end with a hyphen. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<UtilizationReport, 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]";
UtilizationReport utilizationReport = new UtilizationReport();
string utilizationReportId = "";
// Make the request
Operation<UtilizationReport, OperationMetadata> response = await vmMigrationClient.CreateUtilizationReportAsync(parent, utilizationReport, utilizationReportId);
// Poll until the returned long-running operation is complete
Operation<UtilizationReport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UtilizationReport result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UtilizationReport, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceCreateUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
UtilizationReport retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnector(DatacenterConnectorName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDatacenterConnector(DatacenterConnectorName name, CallSettings callSettings = null)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | DatacenterConnectorName Required. The DatacenterConnector name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteDatacenterConnector(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnector(DeleteDatacenterConnectorRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDatacenterConnector(DeleteDatacenterConnectorRequest request, CallSettings callSettings = null)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
request | DeleteDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteDatacenterConnectorRequest request = new DeleteDatacenterConnectorRequest
{
DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteDatacenterConnector(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnector(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDatacenterConnector(string name, CallSettings callSettings = null)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. The DatacenterConnector name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteDatacenterConnector(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteDatacenterConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnectorAsync(DatacenterConnectorName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(DatacenterConnectorName name, CallSettings callSettings = null)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | DatacenterConnectorName Required. The DatacenterConnector name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnectorAsync(DatacenterConnectorName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(DatacenterConnectorName name, CancellationToken cancellationToken)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | DatacenterConnectorName Required. The DatacenterConnector name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest request, CallSettings callSettings = null)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
request | DeleteDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteDatacenterConnectorRequest request = new DeleteDatacenterConnectorRequest
{
DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest request, CancellationToken cancellationToken)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
request | DeleteDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteDatacenterConnectorRequest request = new DeleteDatacenterConnectorRequest
{
DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnectorAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(string name, CallSettings callSettings = null)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. The DatacenterConnector name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, 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]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDatacenterConnectorAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatacenterConnectorAsync(string name, CancellationToken cancellationToken)
Deletes a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. The DatacenterConnector name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, 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]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteDatacenterConnectorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteDatacenterConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroup(DeleteGroupRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteGroup(DeleteGroupRequest request, CallSettings callSettings = null)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
request | DeleteGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteGroup(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroup(GroupName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteGroup(GroupName name, CallSettings callSettings = null)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
name | GroupName Required. The Group name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteGroup(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroup(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteGroup(string name, CallSettings callSettings = null)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
name | String Required. The Group name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteGroup(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroupAsync(DeleteGroupRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(DeleteGroupRequest request, CallSettings callSettings = null)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
request | DeleteGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroupAsync(DeleteGroupRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(DeleteGroupRequest request, CancellationToken cancellationToken)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
request | DeleteGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroupAsync(GroupName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(GroupName name, CallSettings callSettings = null)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
name | GroupName Required. The Group name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteGroupAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroupAsync(GroupName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(GroupName name, CancellationToken cancellationToken)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
name | GroupName Required. The Group name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteGroupAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroupAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(string name, CallSettings callSettings = null)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
name | String Required. The Group name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteGroupAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteGroupAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(string name, CancellationToken cancellationToken)
Deletes a single Group.
Parameters | |
---|---|
Name | Description |
name | String Required. The Group name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteGroupAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVm(DeleteMigratingVmRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMigratingVm(DeleteMigratingVmRequest request, CallSettings callSettings = null)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | DeleteMigratingVmRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteMigratingVmRequest request = new DeleteMigratingVmRequest
{
MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteMigratingVm(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVm(MigratingVmName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMigratingVm(MigratingVmName name, CallSettings callSettings = null)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | MigratingVmName Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteMigratingVm(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVm(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMigratingVm(string name, CallSettings callSettings = null)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, 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]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteMigratingVm(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVmAsync(DeleteMigratingVmRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(DeleteMigratingVmRequest request, CallSettings callSettings = null)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | DeleteMigratingVmRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteMigratingVmRequest request = new DeleteMigratingVmRequest
{
MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVmAsync(DeleteMigratingVmRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(DeleteMigratingVmRequest request, CancellationToken cancellationToken)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | DeleteMigratingVmRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteMigratingVmRequest request = new DeleteMigratingVmRequest
{
MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVmAsync(MigratingVmName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(MigratingVmName name, CallSettings callSettings = null)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | MigratingVmName Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVmAsync(MigratingVmName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(MigratingVmName name, CancellationToken cancellationToken)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | MigratingVmName Required. The name of the MigratingVm. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVmAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(string name, CallSettings callSettings = null)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, 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]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMigratingVmAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigratingVmAsync(string name, CancellationToken cancellationToken)
Deletes a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the MigratingVm. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, 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]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteMigratingVmAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSource(DeleteSourceRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteSource(DeleteSourceRequest request, CallSettings callSettings = null)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
request | DeleteSourceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteSource(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSource(SourceName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteSource(SourceName name, CallSettings callSettings = null)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
name | SourceName Required. The Source name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteSource(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSource(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteSource(string name, CallSettings callSettings = null)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
name | String Required. The Source name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteSource(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSourceAsync(DeleteSourceRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(DeleteSourceRequest request, CallSettings callSettings = null)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
request | DeleteSourceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSourceAsync(DeleteSourceRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(DeleteSourceRequest request, CancellationToken cancellationToken)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
request | DeleteSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSourceAsync(SourceName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(SourceName name, CallSettings callSettings = null)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
name | SourceName Required. The Source name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSourceAsync(SourceName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(SourceName name, CancellationToken cancellationToken)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
name | SourceName Required. The Source name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSourceAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(string name, CallSettings callSettings = null)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
name | String Required. The Source name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, 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]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteSourceAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(string name, CancellationToken cancellationToken)
Deletes a single Source.
Parameters | |
---|---|
Name | Description |
name | String Required. The Source name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, 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]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteSourceAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProject(DeleteTargetProjectRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteTargetProject(DeleteTargetProjectRequest request, CallSettings callSettings = null)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteTargetProjectRequest request = new DeleteTargetProjectRequest
{
TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteTargetProject(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProject(TargetProjectName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteTargetProject(TargetProjectName name, CallSettings callSettings = null)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | TargetProjectName Required. The TargetProject name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteTargetProject(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProject(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteTargetProject(string name, CallSettings callSettings = null)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | String Required. The TargetProject name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteTargetProject(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProjectAsync(DeleteTargetProjectRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(DeleteTargetProjectRequest request, CallSettings callSettings = null)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteTargetProjectRequest request = new DeleteTargetProjectRequest
{
TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProjectAsync(DeleteTargetProjectRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(DeleteTargetProjectRequest request, CancellationToken cancellationToken)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetProjectRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteTargetProjectRequest request = new DeleteTargetProjectRequest
{
TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProjectAsync(TargetProjectName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(TargetProjectName name, CallSettings callSettings = null)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | TargetProjectName Required. The TargetProject name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProjectAsync(TargetProjectName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(TargetProjectName name, CancellationToken cancellationToken)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | TargetProjectName Required. The TargetProject name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProjectAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(string name, CallSettings callSettings = null)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | String Required. The TargetProject name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteTargetProjectAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetProjectAsync(string name, CancellationToken cancellationToken)
Deletes a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | String Required. The TargetProject name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteTargetProjectAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReport(DeleteUtilizationReportRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteUtilizationReport(DeleteUtilizationReportRequest request, CallSettings callSettings = null)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
request | DeleteUtilizationReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DeleteUtilizationReportRequest request = new DeleteUtilizationReportRequest
{
UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteUtilizationReport(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReport(UtilizationReportName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteUtilizationReport(UtilizationReportName name, CallSettings callSettings = null)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | UtilizationReportName Required. The Utilization Report name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteUtilizationReport(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReport(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteUtilizationReport(string name, CallSettings callSettings = null)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | String Required. The Utilization Report name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = vmMigrationClient.DeleteUtilizationReport(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceDeleteUtilizationReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReportAsync(DeleteUtilizationReportRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(DeleteUtilizationReportRequest request, CallSettings callSettings = null)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
request | DeleteUtilizationReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteUtilizationReportRequest request = new DeleteUtilizationReportRequest
{
UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReportAsync(DeleteUtilizationReportRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(DeleteUtilizationReportRequest request, CancellationToken cancellationToken)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
request | DeleteUtilizationReportRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DeleteUtilizationReportRequest request = new DeleteUtilizationReportRequest
{
UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReportAsync(UtilizationReportName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(UtilizationReportName name, CallSettings callSettings = null)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | UtilizationReportName Required. The Utilization Report name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReportAsync(UtilizationReportName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(UtilizationReportName name, CancellationToken cancellationToken)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | UtilizationReportName Required. The Utilization Report name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReportAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(string name, CallSettings callSettings = null)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | String Required. The Utilization Report name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, 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]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteUtilizationReportAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteUtilizationReportAsync(string name, CancellationToken cancellationToken)
Deletes a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | String Required. The Utilization Report name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, 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]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmMigrationClient.DeleteUtilizationReportAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceDeleteUtilizationReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
FetchInventory(FetchInventoryRequest, CallSettings)
public virtual FetchInventoryResponse FetchInventory(FetchInventoryRequest request, CallSettings callSettings = null)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
request | FetchInventoryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchInventoryResponse | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
FetchInventoryRequest request = new FetchInventoryRequest
{
SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
ForceRefresh = false,
};
// Make the request
FetchInventoryResponse response = vmMigrationClient.FetchInventory(request);
FetchInventory(SourceName, CallSettings)
public virtual FetchInventoryResponse FetchInventory(SourceName source, CallSettings callSettings = null)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
source | SourceName Required. The name of the Source. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchInventoryResponse | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName source = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
FetchInventoryResponse response = vmMigrationClient.FetchInventory(source);
FetchInventory(String, CallSettings)
public virtual FetchInventoryResponse FetchInventory(string source, CallSettings callSettings = null)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
source | String Required. The name of the Source. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchInventoryResponse | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string source = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
FetchInventoryResponse response = vmMigrationClient.FetchInventory(source);
FetchInventoryAsync(FetchInventoryRequest, CallSettings)
public virtual Task<FetchInventoryResponse> FetchInventoryAsync(FetchInventoryRequest request, CallSettings callSettings = null)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
request | FetchInventoryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FetchInventoryResponse> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
FetchInventoryRequest request = new FetchInventoryRequest
{
SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
ForceRefresh = false,
};
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(request);
FetchInventoryAsync(FetchInventoryRequest, CancellationToken)
public virtual Task<FetchInventoryResponse> FetchInventoryAsync(FetchInventoryRequest request, CancellationToken cancellationToken)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
request | FetchInventoryRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FetchInventoryResponse> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
FetchInventoryRequest request = new FetchInventoryRequest
{
SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
ForceRefresh = false,
};
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(request);
FetchInventoryAsync(SourceName, CallSettings)
public virtual Task<FetchInventoryResponse> FetchInventoryAsync(SourceName source, CallSettings callSettings = null)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
source | SourceName Required. The name of the Source. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FetchInventoryResponse> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName source = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(source);
FetchInventoryAsync(SourceName, CancellationToken)
public virtual Task<FetchInventoryResponse> FetchInventoryAsync(SourceName source, CancellationToken cancellationToken)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
source | SourceName Required. The name of the Source. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FetchInventoryResponse> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName source = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(source);
FetchInventoryAsync(String, CallSettings)
public virtual Task<FetchInventoryResponse> FetchInventoryAsync(string source, CallSettings callSettings = null)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
source | String Required. The name of the Source. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FetchInventoryResponse> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string source = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(source);
FetchInventoryAsync(String, CancellationToken)
public virtual Task<FetchInventoryResponse> FetchInventoryAsync(string source, CancellationToken cancellationToken)
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Parameters | |
---|---|
Name | Description |
source | String Required. The name of the Source. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FetchInventoryResponse> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string source = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
FetchInventoryResponse response = await vmMigrationClient.FetchInventoryAsync(source);
FinalizeMigration(FinalizeMigrationRequest, CallSettings)
public virtual Operation<FinalizeMigrationResponse, OperationMetadata> FinalizeMigration(FinalizeMigrationRequest request, CallSettings callSettings = null)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
request | FinalizeMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<FinalizeMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
FinalizeMigrationRequest request = new FinalizeMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = vmMigrationClient.FinalizeMigration(request);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceFinalizeMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
FinalizeMigration(MigratingVmName, CallSettings)
public virtual Operation<FinalizeMigrationResponse, OperationMetadata> FinalizeMigration(MigratingVmName migratingVm, CallSettings callSettings = null)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVmName Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<FinalizeMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName migratingVm = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = vmMigrationClient.FinalizeMigration(migratingVm);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceFinalizeMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
FinalizeMigration(String, CallSettings)
public virtual Operation<FinalizeMigrationResponse, OperationMetadata> FinalizeMigration(string migratingVm, CallSettings callSettings = null)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
migratingVm | String Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<FinalizeMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string migratingVm = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = vmMigrationClient.FinalizeMigration(migratingVm);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceFinalizeMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
FinalizeMigrationAsync(FinalizeMigrationRequest, CallSettings)
public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(FinalizeMigrationRequest request, CallSettings callSettings = null)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
request | FinalizeMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<FinalizeMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
FinalizeMigrationRequest request = new FinalizeMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = await vmMigrationClient.FinalizeMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceFinalizeMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
FinalizeMigrationAsync(FinalizeMigrationRequest, CancellationToken)
public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(FinalizeMigrationRequest request, CancellationToken cancellationToken)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
request | FinalizeMigrationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<FinalizeMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
FinalizeMigrationRequest request = new FinalizeMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = await vmMigrationClient.FinalizeMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceFinalizeMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
FinalizeMigrationAsync(MigratingVmName, CallSettings)
public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(MigratingVmName migratingVm, CallSettings callSettings = null)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVmName Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<FinalizeMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName migratingVm = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = await vmMigrationClient.FinalizeMigrationAsync(migratingVm);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceFinalizeMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
FinalizeMigrationAsync(MigratingVmName, CancellationToken)
public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(MigratingVmName migratingVm, CancellationToken cancellationToken)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVmName Required. The name of the MigratingVm. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<FinalizeMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName migratingVm = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = await vmMigrationClient.FinalizeMigrationAsync(migratingVm);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceFinalizeMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
FinalizeMigrationAsync(String, CallSettings)
public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(string migratingVm, CallSettings callSettings = null)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
migratingVm | String Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<FinalizeMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string migratingVm = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = await vmMigrationClient.FinalizeMigrationAsync(migratingVm);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceFinalizeMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
FinalizeMigrationAsync(String, CancellationToken)
public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> FinalizeMigrationAsync(string migratingVm, CancellationToken cancellationToken)
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
Parameters | |
---|---|
Name | Description |
migratingVm | String Required. The name of the MigratingVm. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<FinalizeMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string migratingVm = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
Operation<FinalizeMigrationResponse, OperationMetadata> response = await vmMigrationClient.FinalizeMigrationAsync(migratingVm);
// Poll until the returned long-running operation is complete
Operation<FinalizeMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FinalizeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FinalizeMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceFinalizeMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FinalizeMigrationResponse retrievedResult = retrievedResponse.Result;
}
GetCloneJob(CloneJobName, CallSettings)
public virtual CloneJob GetCloneJob(CloneJobName name, CallSettings callSettings = null)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
name | CloneJobName Required. The name of the CloneJob. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CloneJob | 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
CloneJob response = vmMigrationClient.GetCloneJob(name);
GetCloneJob(GetCloneJobRequest, CallSettings)
public virtual CloneJob GetCloneJob(GetCloneJobRequest request, CallSettings callSettings = null)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
request | GetCloneJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CloneJob | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetCloneJobRequest request = new GetCloneJobRequest
{
CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
CloneJob response = vmMigrationClient.GetCloneJob(request);
GetCloneJob(String, CallSettings)
public virtual CloneJob GetCloneJob(string name, CallSettings callSettings = null)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the CloneJob. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CloneJob | 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
CloneJob response = vmMigrationClient.GetCloneJob(name);
GetCloneJobAsync(CloneJobName, CallSettings)
public virtual Task<CloneJob> GetCloneJobAsync(CloneJobName name, CallSettings callSettings = null)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
name | CloneJobName Required. The name of the CloneJob. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CloneJob> | 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
CloneJob response = await vmMigrationClient.GetCloneJobAsync(name);
GetCloneJobAsync(CloneJobName, CancellationToken)
public virtual Task<CloneJob> GetCloneJobAsync(CloneJobName name, CancellationToken cancellationToken)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
name | CloneJobName Required. The name of the CloneJob. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CloneJob> | 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
CloneJob response = await vmMigrationClient.GetCloneJobAsync(name);
GetCloneJobAsync(GetCloneJobRequest, CallSettings)
public virtual Task<CloneJob> GetCloneJobAsync(GetCloneJobRequest request, CallSettings callSettings = null)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
request | GetCloneJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CloneJob> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetCloneJobRequest request = new GetCloneJobRequest
{
CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
CloneJob response = await vmMigrationClient.GetCloneJobAsync(request);
GetCloneJobAsync(GetCloneJobRequest, CancellationToken)
public virtual Task<CloneJob> GetCloneJobAsync(GetCloneJobRequest request, CancellationToken cancellationToken)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
request | GetCloneJobRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CloneJob> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetCloneJobRequest request = new GetCloneJobRequest
{
CloneJobName = CloneJobName.FromProjectLocationSourceMigratingVmCloneJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]"),
};
// Make the request
CloneJob response = await vmMigrationClient.GetCloneJobAsync(request);
GetCloneJobAsync(String, CallSettings)
public virtual Task<CloneJob> GetCloneJobAsync(string name, CallSettings callSettings = null)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the CloneJob. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CloneJob> | 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
CloneJob response = await vmMigrationClient.GetCloneJobAsync(name);
GetCloneJobAsync(String, CancellationToken)
public virtual Task<CloneJob> GetCloneJobAsync(string name, CancellationToken cancellationToken)
Gets details of a single CloneJob.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the CloneJob. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CloneJob> | 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
CloneJob response = await vmMigrationClient.GetCloneJobAsync(name);
GetCutoverJob(CutoverJobName, CallSettings)
public virtual CutoverJob GetCutoverJob(CutoverJobName name, CallSettings callSettings = null)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
name | CutoverJobName Required. The name of the CutoverJob. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CutoverJob | 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
CutoverJob response = vmMigrationClient.GetCutoverJob(name);
GetCutoverJob(GetCutoverJobRequest, CallSettings)
public virtual CutoverJob GetCutoverJob(GetCutoverJobRequest request, CallSettings callSettings = null)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
request | GetCutoverJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CutoverJob | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetCutoverJobRequest request = new GetCutoverJobRequest
{
CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
CutoverJob response = vmMigrationClient.GetCutoverJob(request);
GetCutoverJob(String, CallSettings)
public virtual CutoverJob GetCutoverJob(string name, CallSettings callSettings = null)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the CutoverJob. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CutoverJob | 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
CutoverJob response = vmMigrationClient.GetCutoverJob(name);
GetCutoverJobAsync(CutoverJobName, CallSettings)
public virtual Task<CutoverJob> GetCutoverJobAsync(CutoverJobName name, CallSettings callSettings = null)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
name | CutoverJobName Required. The name of the CutoverJob. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CutoverJob> | 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
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(name);
GetCutoverJobAsync(CutoverJobName, CancellationToken)
public virtual Task<CutoverJob> GetCutoverJobAsync(CutoverJobName name, CancellationToken cancellationToken)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
name | CutoverJobName Required. The name of the CutoverJob. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CutoverJob> | 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
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(name);
GetCutoverJobAsync(GetCutoverJobRequest, CallSettings)
public virtual Task<CutoverJob> GetCutoverJobAsync(GetCutoverJobRequest request, CallSettings callSettings = null)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
request | GetCutoverJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CutoverJob> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetCutoverJobRequest request = new GetCutoverJobRequest
{
CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(request);
GetCutoverJobAsync(GetCutoverJobRequest, CancellationToken)
public virtual Task<CutoverJob> GetCutoverJobAsync(GetCutoverJobRequest request, CancellationToken cancellationToken)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
request | GetCutoverJobRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CutoverJob> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetCutoverJobRequest request = new GetCutoverJobRequest
{
CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
};
// Make the request
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(request);
GetCutoverJobAsync(String, CallSettings)
public virtual Task<CutoverJob> GetCutoverJobAsync(string name, CallSettings callSettings = null)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the CutoverJob. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CutoverJob> | 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
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(name);
GetCutoverJobAsync(String, CancellationToken)
public virtual Task<CutoverJob> GetCutoverJobAsync(string name, CancellationToken cancellationToken)
Gets details of a single CutoverJob.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the CutoverJob. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CutoverJob> | 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
CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(name);
GetDatacenterConnector(DatacenterConnectorName, CallSettings)
public virtual DatacenterConnector GetDatacenterConnector(DatacenterConnectorName name, CallSettings callSettings = null)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | DatacenterConnectorName Required. The name of the DatacenterConnector. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DatacenterConnector | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
DatacenterConnector response = vmMigrationClient.GetDatacenterConnector(name);
GetDatacenterConnector(GetDatacenterConnectorRequest, CallSettings)
public virtual DatacenterConnector GetDatacenterConnector(GetDatacenterConnectorRequest request, CallSettings callSettings = null)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
request | GetDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DatacenterConnector | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetDatacenterConnectorRequest request = new GetDatacenterConnectorRequest
{
DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
};
// Make the request
DatacenterConnector response = vmMigrationClient.GetDatacenterConnector(request);
GetDatacenterConnector(String, CallSettings)
public virtual DatacenterConnector GetDatacenterConnector(string name, CallSettings callSettings = null)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the DatacenterConnector. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DatacenterConnector | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
DatacenterConnector response = vmMigrationClient.GetDatacenterConnector(name);
GetDatacenterConnectorAsync(DatacenterConnectorName, CallSettings)
public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(DatacenterConnectorName name, CallSettings callSettings = null)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | DatacenterConnectorName Required. The name of the DatacenterConnector. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DatacenterConnector> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(name);
GetDatacenterConnectorAsync(DatacenterConnectorName, CancellationToken)
public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(DatacenterConnectorName name, CancellationToken cancellationToken)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | DatacenterConnectorName Required. The name of the DatacenterConnector. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DatacenterConnector> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
DatacenterConnectorName name = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]");
// Make the request
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(name);
GetDatacenterConnectorAsync(GetDatacenterConnectorRequest, CallSettings)
public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(GetDatacenterConnectorRequest request, CallSettings callSettings = null)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
request | GetDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DatacenterConnector> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetDatacenterConnectorRequest request = new GetDatacenterConnectorRequest
{
DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
};
// Make the request
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(request);
GetDatacenterConnectorAsync(GetDatacenterConnectorRequest, CancellationToken)
public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(GetDatacenterConnectorRequest request, CancellationToken cancellationToken)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
request | GetDatacenterConnectorRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DatacenterConnector> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetDatacenterConnectorRequest request = new GetDatacenterConnectorRequest
{
DatacenterConnectorName = DatacenterConnectorName.FromProjectLocationSourceDatacenterConnector("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]"),
};
// Make the request
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(request);
GetDatacenterConnectorAsync(String, CallSettings)
public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(string name, CallSettings callSettings = null)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the DatacenterConnector. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DatacenterConnector> | 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]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(name);
GetDatacenterConnectorAsync(String, CancellationToken)
public virtual Task<DatacenterConnector> GetDatacenterConnectorAsync(string name, CancellationToken cancellationToken)
Gets details of a single DatacenterConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the DatacenterConnector. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DatacenterConnector> | 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]/datacenterConnectors/[DATACENTER_CONNECTOR]";
// Make the request
DatacenterConnector response = await vmMigrationClient.GetDatacenterConnectorAsync(name);
GetGroup(GetGroupRequest, CallSettings)
public virtual Group GetGroup(GetGroupRequest request, CallSettings callSettings = null)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
request | GetGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Group | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = vmMigrationClient.GetGroup(request);
GetGroup(GroupName, CallSettings)
public virtual Group GetGroup(GroupName name, CallSettings callSettings = null)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
name | GroupName Required. The group name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Group | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Group response = vmMigrationClient.GetGroup(name);
GetGroup(String, CallSettings)
public virtual Group GetGroup(string name, CallSettings callSettings = null)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
name | String Required. The group name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Group | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Group response = vmMigrationClient.GetGroup(name);
GetGroupAsync(GetGroupRequest, CallSettings)
public virtual Task<Group> GetGroupAsync(GetGroupRequest request, CallSettings callSettings = null)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
request | GetGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Group> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = await vmMigrationClient.GetGroupAsync(request);
GetGroupAsync(GetGroupRequest, CancellationToken)
public virtual Task<Group> GetGroupAsync(GetGroupRequest request, CancellationToken cancellationToken)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
request | GetGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Group> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = await vmMigrationClient.GetGroupAsync(request);
GetGroupAsync(GroupName, CallSettings)
public virtual Task<Group> GetGroupAsync(GroupName name, CallSettings callSettings = null)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
name | GroupName Required. The group name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Group> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Group response = await vmMigrationClient.GetGroupAsync(name);
GetGroupAsync(GroupName, CancellationToken)
public virtual Task<Group> GetGroupAsync(GroupName name, CancellationToken cancellationToken)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
name | GroupName Required. The group name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Group> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Group response = await vmMigrationClient.GetGroupAsync(name);
GetGroupAsync(String, CallSettings)
public virtual Task<Group> GetGroupAsync(string name, CallSettings callSettings = null)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
name | String Required. The group name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Group> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Group response = await vmMigrationClient.GetGroupAsync(name);
GetGroupAsync(String, CancellationToken)
public virtual Task<Group> GetGroupAsync(string name, CancellationToken cancellationToken)
Gets details of a single Group.
Parameters | |
---|---|
Name | Description |
name | String Required. The group name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Group> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Group response = await vmMigrationClient.GetGroupAsync(name);
GetMigratingVm(GetMigratingVmRequest, CallSettings)
public virtual MigratingVm GetMigratingVm(GetMigratingVmRequest request, CallSettings callSettings = null)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | GetMigratingVmRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MigratingVm | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetMigratingVmRequest request = new GetMigratingVmRequest
{
MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
MigratingVm response = vmMigrationClient.GetMigratingVm(request);
GetMigratingVm(MigratingVmName, CallSettings)
public virtual MigratingVm GetMigratingVm(MigratingVmName name, CallSettings callSettings = null)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | MigratingVmName Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MigratingVm | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
MigratingVm response = vmMigrationClient.GetMigratingVm(name);
GetMigratingVm(String, CallSettings)
public virtual MigratingVm GetMigratingVm(string name, CallSettings callSettings = null)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MigratingVm | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
MigratingVm response = vmMigrationClient.GetMigratingVm(name);
GetMigratingVmAsync(GetMigratingVmRequest, CallSettings)
public virtual Task<MigratingVm> GetMigratingVmAsync(GetMigratingVmRequest request, CallSettings callSettings = null)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | GetMigratingVmRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<MigratingVm> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetMigratingVmRequest request = new GetMigratingVmRequest
{
MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(request);
GetMigratingVmAsync(GetMigratingVmRequest, CancellationToken)
public virtual Task<MigratingVm> GetMigratingVmAsync(GetMigratingVmRequest request, CancellationToken cancellationToken)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | GetMigratingVmRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<MigratingVm> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetMigratingVmRequest request = new GetMigratingVmRequest
{
MigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(request);
GetMigratingVmAsync(MigratingVmName, CallSettings)
public virtual Task<MigratingVm> GetMigratingVmAsync(MigratingVmName name, CallSettings callSettings = null)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | MigratingVmName Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<MigratingVm> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(name);
GetMigratingVmAsync(MigratingVmName, CancellationToken)
public virtual Task<MigratingVm> GetMigratingVmAsync(MigratingVmName name, CancellationToken cancellationToken)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | MigratingVmName Required. The name of the MigratingVm. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<MigratingVm> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName name = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(name);
GetMigratingVmAsync(String, CallSettings)
public virtual Task<MigratingVm> GetMigratingVmAsync(string name, CallSettings callSettings = null)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<MigratingVm> | 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]";
// Make the request
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(name);
GetMigratingVmAsync(String, CancellationToken)
public virtual Task<MigratingVm> GetMigratingVmAsync(string name, CancellationToken cancellationToken)
Gets details of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the MigratingVm. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<MigratingVm> | 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]";
// Make the request
MigratingVm response = await vmMigrationClient.GetMigratingVmAsync(name);
GetSource(GetSourceRequest, CallSettings)
public virtual Source GetSource(GetSourceRequest request, CallSettings callSettings = null)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
request | GetSourceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = vmMigrationClient.GetSource(request);
GetSource(SourceName, CallSettings)
public virtual Source GetSource(SourceName name, CallSettings callSettings = null)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
name | SourceName Required. The Source name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Source response = vmMigrationClient.GetSource(name);
GetSource(String, CallSettings)
public virtual Source GetSource(string name, CallSettings callSettings = null)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
name | String Required. The Source name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
Source response = vmMigrationClient.GetSource(name);
GetSourceAsync(GetSourceRequest, CallSettings)
public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CallSettings callSettings = null)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
request | GetSourceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Source> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = await vmMigrationClient.GetSourceAsync(request);
GetSourceAsync(GetSourceRequest, CancellationToken)
public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
request | GetSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Source> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = await vmMigrationClient.GetSourceAsync(request);
GetSourceAsync(SourceName, CallSettings)
public virtual Task<Source> GetSourceAsync(SourceName name, CallSettings callSettings = null)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
name | SourceName Required. The Source name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Source> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Source response = await vmMigrationClient.GetSourceAsync(name);
GetSourceAsync(SourceName, CancellationToken)
public virtual Task<Source> GetSourceAsync(SourceName name, CancellationToken cancellationToken)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
name | SourceName Required. The Source name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Source> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Source response = await vmMigrationClient.GetSourceAsync(name);
GetSourceAsync(String, CallSettings)
public virtual Task<Source> GetSourceAsync(string name, CallSettings callSettings = null)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
name | String Required. The Source name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Source> | 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]";
// Make the request
Source response = await vmMigrationClient.GetSourceAsync(name);
GetSourceAsync(String, CancellationToken)
public virtual Task<Source> GetSourceAsync(string name, CancellationToken cancellationToken)
Gets details of a single Source.
Parameters | |
---|---|
Name | Description |
name | String Required. The Source name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Source> | 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]";
// Make the request
Source response = await vmMigrationClient.GetSourceAsync(name);
GetTargetProject(GetTargetProjectRequest, CallSettings)
public virtual TargetProject GetTargetProject(GetTargetProjectRequest request, CallSettings callSettings = null)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | GetTargetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TargetProject | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetTargetProjectRequest request = new GetTargetProjectRequest
{
TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
};
// Make the request
TargetProject response = vmMigrationClient.GetTargetProject(request);
GetTargetProject(TargetProjectName, CallSettings)
public virtual TargetProject GetTargetProject(TargetProjectName name, CallSettings callSettings = null)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | TargetProjectName Required. The TargetProject name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TargetProject | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
TargetProject response = vmMigrationClient.GetTargetProject(name);
GetTargetProject(String, CallSettings)
public virtual TargetProject GetTargetProject(string name, CallSettings callSettings = null)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | String Required. The TargetProject name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TargetProject | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
TargetProject response = vmMigrationClient.GetTargetProject(name);
GetTargetProjectAsync(GetTargetProjectRequest, CallSettings)
public virtual Task<TargetProject> GetTargetProjectAsync(GetTargetProjectRequest request, CallSettings callSettings = null)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | GetTargetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TargetProject> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetTargetProjectRequest request = new GetTargetProjectRequest
{
TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
};
// Make the request
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(request);
GetTargetProjectAsync(GetTargetProjectRequest, CancellationToken)
public virtual Task<TargetProject> GetTargetProjectAsync(GetTargetProjectRequest request, CancellationToken cancellationToken)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | GetTargetProjectRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<TargetProject> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetTargetProjectRequest request = new GetTargetProjectRequest
{
TargetProjectName = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]"),
};
// Make the request
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(request);
GetTargetProjectAsync(TargetProjectName, CallSettings)
public virtual Task<TargetProject> GetTargetProjectAsync(TargetProjectName name, CallSettings callSettings = null)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | TargetProjectName Required. The TargetProject name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TargetProject> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(name);
GetTargetProjectAsync(TargetProjectName, CancellationToken)
public virtual Task<TargetProject> GetTargetProjectAsync(TargetProjectName name, CancellationToken cancellationToken)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | TargetProjectName Required. The TargetProject name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<TargetProject> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
TargetProjectName name = TargetProjectName.FromProjectLocationTargetProject("[PROJECT]", "[LOCATION]", "[TARGET_PROJECT]");
// Make the request
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(name);
GetTargetProjectAsync(String, CallSettings)
public virtual Task<TargetProject> GetTargetProjectAsync(string name, CallSettings callSettings = null)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | String Required. The TargetProject name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TargetProject> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(name);
GetTargetProjectAsync(String, CancellationToken)
public virtual Task<TargetProject> GetTargetProjectAsync(string name, CancellationToken cancellationToken)
Gets details of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
name | String Required. The TargetProject name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<TargetProject> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targetProjects/[TARGET_PROJECT]";
// Make the request
TargetProject response = await vmMigrationClient.GetTargetProjectAsync(name);
GetUtilizationReport(GetUtilizationReportRequest, CallSettings)
public virtual UtilizationReport GetUtilizationReport(GetUtilizationReportRequest request, CallSettings callSettings = null)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
request | GetUtilizationReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
UtilizationReport | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
GetUtilizationReportRequest request = new GetUtilizationReportRequest
{
UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
View = UtilizationReportView.Unspecified,
};
// Make the request
UtilizationReport response = vmMigrationClient.GetUtilizationReport(request);
GetUtilizationReport(UtilizationReportName, CallSettings)
public virtual UtilizationReport GetUtilizationReport(UtilizationReportName name, CallSettings callSettings = null)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | UtilizationReportName Required. The Utilization Report name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
UtilizationReport | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
UtilizationReport response = vmMigrationClient.GetUtilizationReport(name);
GetUtilizationReport(String, CallSettings)
public virtual UtilizationReport GetUtilizationReport(string name, CallSettings callSettings = null)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | String Required. The Utilization Report name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
UtilizationReport | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
UtilizationReport response = vmMigrationClient.GetUtilizationReport(name);
GetUtilizationReportAsync(GetUtilizationReportRequest, CallSettings)
public virtual Task<UtilizationReport> GetUtilizationReportAsync(GetUtilizationReportRequest request, CallSettings callSettings = null)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
request | GetUtilizationReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<UtilizationReport> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetUtilizationReportRequest request = new GetUtilizationReportRequest
{
UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
View = UtilizationReportView.Unspecified,
};
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(request);
GetUtilizationReportAsync(GetUtilizationReportRequest, CancellationToken)
public virtual Task<UtilizationReport> GetUtilizationReportAsync(GetUtilizationReportRequest request, CancellationToken cancellationToken)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
request | GetUtilizationReportRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<UtilizationReport> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
GetUtilizationReportRequest request = new GetUtilizationReportRequest
{
UtilizationReportName = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]"),
View = UtilizationReportView.Unspecified,
};
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(request);
GetUtilizationReportAsync(UtilizationReportName, CallSettings)
public virtual Task<UtilizationReport> GetUtilizationReportAsync(UtilizationReportName name, CallSettings callSettings = null)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | UtilizationReportName Required. The Utilization Report name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<UtilizationReport> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(name);
GetUtilizationReportAsync(UtilizationReportName, CancellationToken)
public virtual Task<UtilizationReport> GetUtilizationReportAsync(UtilizationReportName name, CancellationToken cancellationToken)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | UtilizationReportName Required. The Utilization Report name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<UtilizationReport> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UtilizationReportName name = UtilizationReportName.FromProjectLocationSourceUtilizationReport("[PROJECT]", "[LOCATION]", "[SOURCE]", "[UTILIZATION_REPORT]");
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(name);
GetUtilizationReportAsync(String, CallSettings)
public virtual Task<UtilizationReport> GetUtilizationReportAsync(string name, CallSettings callSettings = null)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | String Required. The Utilization Report name. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<UtilizationReport> | 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]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(name);
GetUtilizationReportAsync(String, CancellationToken)
public virtual Task<UtilizationReport> GetUtilizationReportAsync(string name, CancellationToken cancellationToken)
Gets a single Utilization Report.
Parameters | |
---|---|
Name | Description |
name | String Required. The Utilization Report name. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<UtilizationReport> | 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]/utilizationReports/[UTILIZATION_REPORT]";
// Make the request
UtilizationReport response = await vmMigrationClient.GetUtilizationReportAsync(name);
ListCloneJobs(ListCloneJobsRequest, CallSettings)
public virtual PagedEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobs(ListCloneJobsRequest request, CallSettings callSettings = null)
Lists CloneJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
request | ListCloneJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCloneJobsResponse, CloneJob> | A pageable sequence of CloneJob resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListCloneJobsRequest request = new ListCloneJobsRequest
{
ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CloneJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCloneJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CloneJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCloneJobs(MigratingVmName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobs(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists CloneJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
parent | MigratingVmName Required. The parent, which owns this collection of source VMs. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCloneJobsResponse, CloneJob> | A pageable sequence of CloneJob resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CloneJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCloneJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CloneJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCloneJobs(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists CloneJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of source VMs. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCloneJobsResponse, CloneJob> | A pageable sequence of CloneJob resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
PagedEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CloneJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCloneJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CloneJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCloneJobsAsync(ListCloneJobsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobsAsync(ListCloneJobsRequest request, CallSettings callSettings = null)
Lists CloneJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
request | ListCloneJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> | A pageable asynchronous sequence of CloneJob resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListCloneJobsRequest request = new ListCloneJobsRequest
{
ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CloneJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCloneJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CloneJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCloneJobsAsync(MigratingVmName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobsAsync(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists CloneJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
parent | MigratingVmName Required. The parent, which owns this collection of source VMs. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> | A pageable asynchronous sequence of CloneJob resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CloneJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCloneJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CloneJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCloneJobsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> ListCloneJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists CloneJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of source VMs. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> | A pageable asynchronous sequence of CloneJob resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
PagedAsyncEnumerable<ListCloneJobsResponse, CloneJob> response = vmMigrationClient.ListCloneJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CloneJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCloneJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CloneJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CloneJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CloneJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCutoverJobs(ListCutoverJobsRequest, CallSettings)
public virtual PagedEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobs(ListCutoverJobsRequest request, CallSettings callSettings = null)
Lists CutoverJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
request | ListCutoverJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> | A pageable sequence of CutoverJob resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListCutoverJobsRequest request = new ListCutoverJobsRequest
{
ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CutoverJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCutoverJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CutoverJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCutoverJobs(MigratingVmName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobs(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists CutoverJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
parent | MigratingVmName Required. The parent, which owns this collection of migrating VMs. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> | A pageable sequence of CutoverJob resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CutoverJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCutoverJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CutoverJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCutoverJobs(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists CutoverJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of migrating VMs. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> | A pageable sequence of CutoverJob resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
PagedEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CutoverJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCutoverJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CutoverJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCutoverJobsAsync(ListCutoverJobsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobsAsync(ListCutoverJobsRequest request, CallSettings callSettings = null)
Lists CutoverJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
request | ListCutoverJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> | A pageable asynchronous sequence of CutoverJob resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListCutoverJobsRequest request = new ListCutoverJobsRequest
{
ParentAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CutoverJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCutoverJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CutoverJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCutoverJobsAsync(MigratingVmName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobsAsync(MigratingVmName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists CutoverJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
parent | MigratingVmName Required. The parent, which owns this collection of migrating VMs. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> | A pageable asynchronous sequence of CutoverJob resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName parent = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CutoverJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCutoverJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CutoverJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCutoverJobsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> ListCutoverJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists CutoverJobs of a given migrating VM.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of migrating VMs. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> | A pageable asynchronous sequence of CutoverJob resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
PagedAsyncEnumerable<ListCutoverJobsResponse, CutoverJob> response = vmMigrationClient.ListCutoverJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CutoverJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCutoverJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CutoverJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CutoverJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CutoverJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatacenterConnectors(ListDatacenterConnectorsRequest, CallSettings)
public virtual PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectors(ListDatacenterConnectorsRequest request, CallSettings callSettings = null)
Lists DatacenterConnectors in a given Source.
Parameters | |
---|---|
Name | Description |
request | ListDatacenterConnectorsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> | A pageable sequence of DatacenterConnector resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListDatacenterConnectorsRequest request = new ListDatacenterConnectorsRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectors(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (DatacenterConnector item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatacenterConnectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DatacenterConnector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatacenterConnectors(SourceName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectors(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DatacenterConnectors in a given Source.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The parent, which owns this collection of connectors. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> | A pageable sequence of DatacenterConnector resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectors(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DatacenterConnector item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatacenterConnectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DatacenterConnector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatacenterConnectors(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectors(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DatacenterConnectors in a given Source.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of connectors. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> | A pageable sequence of DatacenterConnector resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectors(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DatacenterConnector item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatacenterConnectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DatacenterConnector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatacenterConnectorsAsync(ListDatacenterConnectorsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectorsAsync(ListDatacenterConnectorsRequest request, CallSettings callSettings = null)
Lists DatacenterConnectors in a given Source.
Parameters | |
---|---|
Name | Description |
request | ListDatacenterConnectorsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> | A pageable asynchronous sequence of DatacenterConnector resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListDatacenterConnectorsRequest request = new ListDatacenterConnectorsRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectorsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatacenterConnector item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatacenterConnectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DatacenterConnector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatacenterConnectorsAsync(SourceName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectorsAsync(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DatacenterConnectors in a given Source.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The parent, which owns this collection of connectors. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> | A pageable asynchronous sequence of DatacenterConnector resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectorsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatacenterConnector item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatacenterConnectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DatacenterConnector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatacenterConnectorsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> ListDatacenterConnectorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DatacenterConnectors in a given Source.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of connectors. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> | A pageable asynchronous sequence of DatacenterConnector resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedAsyncEnumerable<ListDatacenterConnectorsResponse, DatacenterConnector> response = vmMigrationClient.ListDatacenterConnectorsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatacenterConnector item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatacenterConnectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DatacenterConnector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatacenterConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatacenterConnector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGroups(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Groups in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent, which owns this collection of groups. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListGroupsResponse, Group> | A pageable sequence of Group resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroups(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Group item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Group item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGroups(ListGroupsRequest, CallSettings)
public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(ListGroupsRequest request, CallSettings callSettings = null)
Lists Groups in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListGroupsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListGroupsResponse, Group> | A pageable sequence of Group resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListGroupsRequest request = new ListGroupsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroups(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Group item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Group item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGroups(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Groups in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of groups. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListGroupsResponse, Group> | A pageable sequence of Group resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroups(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Group item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Group item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGroupsAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Groups in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent, which owns this collection of groups. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListGroupsResponse, Group> | A pageable asynchronous sequence of Group resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroupsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Group item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGroupsAsync(ListGroupsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(ListGroupsRequest request, CallSettings callSettings = null)
Lists Groups in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListGroupsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListGroupsResponse, Group> | A pageable asynchronous sequence of Group resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListGroupsRequest request = new ListGroupsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroupsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Group item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGroupsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Groups in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of groups. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListGroupsResponse, Group> | A pageable asynchronous sequence of Group resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = vmMigrationClient.ListGroupsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Group item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Group> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Group item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMigratingVms(ListMigratingVmsRequest, CallSettings)
public virtual PagedEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVms(ListMigratingVmsRequest request, CallSettings callSettings = null)
Lists MigratingVms in a given Source.
Parameters | |
---|---|
Name | Description |
request | ListMigratingVmsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> | A pageable sequence of MigratingVm resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListMigratingVmsRequest request = new ListMigratingVmsRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVms(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (MigratingVm item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMigratingVmsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MigratingVm item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMigratingVms(SourceName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVms(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists MigratingVms in a given Source.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The parent, which owns this collection of MigratingVms. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> | A pageable sequence of MigratingVm resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVms(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MigratingVm item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMigratingVmsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MigratingVm item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMigratingVms(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVms(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists MigratingVms in a given Source.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of MigratingVms. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> | A pageable sequence of MigratingVm resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVms(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MigratingVm item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMigratingVmsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MigratingVm item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMigratingVmsAsync(ListMigratingVmsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVmsAsync(ListMigratingVmsRequest request, CallSettings callSettings = null)
Lists MigratingVms in a given Source.
Parameters | |
---|---|
Name | Description |
request | ListMigratingVmsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> | A pageable asynchronous sequence of MigratingVm resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListMigratingVmsRequest request = new ListMigratingVmsRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVmsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MigratingVm item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMigratingVmsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MigratingVm item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMigratingVmsAsync(SourceName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVmsAsync(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists MigratingVms in a given Source.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The parent, which owns this collection of MigratingVms. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> | A pageable asynchronous sequence of MigratingVm resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVmsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MigratingVm item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMigratingVmsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MigratingVm item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMigratingVmsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> ListMigratingVmsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists MigratingVms in a given Source.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of MigratingVms. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> | A pageable asynchronous sequence of MigratingVm resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedAsyncEnumerable<ListMigratingVmsResponse, MigratingVm> response = vmMigrationClient.ListMigratingVmsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MigratingVm item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMigratingVmsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MigratingVm item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<MigratingVm> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (MigratingVm item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSources(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Sources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent, which owns this collection of sources. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListSourcesResponse, Source> | A pageable sequence of Source resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSources(ListSourcesRequest, CallSettings)
public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(ListSourcesRequest request, CallSettings callSettings = null)
Lists Sources in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListSourcesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListSourcesResponse, Source> | A pageable sequence of Source resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListSourcesRequest request = new ListSourcesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSources(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSources(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Sources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of sources. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListSourcesResponse, Source> | A pageable sequence of Source resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSourcesAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Sources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent, which owns this collection of sources. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListSourcesResponse, Source> | A pageable asynchronous sequence of Source resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSourcesAsync(ListSourcesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(ListSourcesRequest request, CallSettings callSettings = null)
Lists Sources in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListSourcesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListSourcesResponse, Source> | A pageable asynchronous sequence of Source resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListSourcesRequest request = new ListSourcesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSourcesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSourcesAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Sources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of sources. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListSourcesResponse, Source> | A pageable asynchronous sequence of Source resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = vmMigrationClient.ListSourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTargetProjects(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjects(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists TargetProjects in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent, which owns this collection of targets. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTargetProjectsResponse, TargetProject> | A pageable sequence of TargetProject resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjects(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TargetProject item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTargetProjectsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetProject item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTargetProjects(ListTargetProjectsRequest, CallSettings)
public virtual PagedEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjects(ListTargetProjectsRequest request, CallSettings callSettings = null)
Lists TargetProjects in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | ListTargetProjectsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTargetProjectsResponse, TargetProject> | A pageable sequence of TargetProject resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListTargetProjectsRequest request = new ListTargetProjectsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjects(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (TargetProject item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTargetProjectsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetProject item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTargetProjects(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjects(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists TargetProjects in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of targets. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTargetProjectsResponse, TargetProject> | A pageable sequence of TargetProject resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjects(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TargetProject item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTargetProjectsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetProject item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTargetProjectsAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjectsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists TargetProjects in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent, which owns this collection of targets. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> | A pageable asynchronous sequence of TargetProject resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjectsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TargetProject item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTargetProjectsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetProject item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTargetProjectsAsync(ListTargetProjectsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjectsAsync(ListTargetProjectsRequest request, CallSettings callSettings = null)
Lists TargetProjects in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | ListTargetProjectsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> | A pageable asynchronous sequence of TargetProject resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListTargetProjectsRequest request = new ListTargetProjectsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjectsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TargetProject item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTargetProjectsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetProject item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTargetProjectsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> ListTargetProjectsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists TargetProjects in a given project.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent, which owns this collection of targets. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> | A pageable asynchronous sequence of TargetProject resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTargetProjectsResponse, TargetProject> response = vmMigrationClient.ListTargetProjectsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TargetProject item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTargetProjectsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetProject item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetProject> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetProject item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUtilizationReports(ListUtilizationReportsRequest, CallSettings)
public virtual PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReports(ListUtilizationReportsRequest request, CallSettings callSettings = null)
Lists Utilization Reports of the given Source.
Parameters | |
---|---|
Name | Description |
request | ListUtilizationReportsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> | A pageable sequence of UtilizationReport resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ListUtilizationReportsRequest request = new ListUtilizationReportsRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
View = UtilizationReportView.Unspecified,
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReports(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (UtilizationReport item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUtilizationReportsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UtilizationReport item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUtilizationReports(SourceName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReports(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Utilization Reports of the given Source.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The Utilization Reports parent. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> | A pageable sequence of UtilizationReport resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReports(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (UtilizationReport item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUtilizationReportsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UtilizationReport item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUtilizationReports(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReports(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Utilization Reports of the given Source.
Parameters | |
---|---|
Name | Description |
parent | String Required. The Utilization Reports parent. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> | A pageable sequence of UtilizationReport resources. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReports(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (UtilizationReport item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUtilizationReportsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UtilizationReport item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUtilizationReportsAsync(ListUtilizationReportsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReportsAsync(ListUtilizationReportsRequest request, CallSettings callSettings = null)
Lists Utilization Reports of the given Source.
Parameters | |
---|---|
Name | Description |
request | ListUtilizationReportsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> | A pageable asynchronous sequence of UtilizationReport resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ListUtilizationReportsRequest request = new ListUtilizationReportsRequest
{
ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
View = UtilizationReportView.Unspecified,
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReportsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UtilizationReport item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUtilizationReportsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UtilizationReport item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUtilizationReportsAsync(SourceName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReportsAsync(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Utilization Reports of the given Source.
Parameters | |
---|---|
Name | Description |
parent | SourceName Required. The Utilization Reports parent. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> | A pageable asynchronous sequence of UtilizationReport resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReportsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UtilizationReport item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUtilizationReportsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UtilizationReport item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUtilizationReportsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> ListUtilizationReportsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Utilization Reports of the given Source.
Parameters | |
---|---|
Name | Description |
parent | String Required. The Utilization Reports parent. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> | A pageable asynchronous sequence of UtilizationReport resources. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedAsyncEnumerable<ListUtilizationReportsResponse, UtilizationReport> response = vmMigrationClient.ListUtilizationReportsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UtilizationReport item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUtilizationReportsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UtilizationReport item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UtilizationReport> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UtilizationReport item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PauseMigration(PauseMigrationRequest, CallSettings)
public virtual Operation<PauseMigrationResponse, OperationMetadata> PauseMigration(PauseMigrationRequest request, CallSettings callSettings = null)
Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.
Parameters | |
---|---|
Name | Description |
request | PauseMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<PauseMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
PauseMigrationRequest request = new PauseMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<PauseMigrationResponse, OperationMetadata> response = vmMigrationClient.PauseMigration(request);
// Poll until the returned long-running operation is complete
Operation<PauseMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PauseMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PauseMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOncePauseMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PauseMigrationResponse retrievedResult = retrievedResponse.Result;
}
PauseMigrationAsync(PauseMigrationRequest, CallSettings)
public virtual Task<Operation<PauseMigrationResponse, OperationMetadata>> PauseMigrationAsync(PauseMigrationRequest request, CallSettings callSettings = null)
Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.
Parameters | |
---|---|
Name | Description |
request | PauseMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<PauseMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
PauseMigrationRequest request = new PauseMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<PauseMigrationResponse, OperationMetadata> response = await vmMigrationClient.PauseMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<PauseMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PauseMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PauseMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOncePauseMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PauseMigrationResponse retrievedResult = retrievedResponse.Result;
}
PauseMigrationAsync(PauseMigrationRequest, CancellationToken)
public virtual Task<Operation<PauseMigrationResponse, OperationMetadata>> PauseMigrationAsync(PauseMigrationRequest request, CancellationToken cancellationToken)
Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.
Parameters | |
---|---|
Name | Description |
request | PauseMigrationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<PauseMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
PauseMigrationRequest request = new PauseMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<PauseMigrationResponse, OperationMetadata> response = await vmMigrationClient.PauseMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<PauseMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PauseMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PauseMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOncePauseMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PauseMigrationResponse retrievedResult = retrievedResponse.Result;
}
PollOnceAddGroupMigration(String, CallSettings)
public virtual Operation<AddGroupMigrationResponse, OperationMetadata> PollOnceAddGroupMigration(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of AddGroupMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<AddGroupMigrationResponse, OperationMetadata> | The result of polling the operation. |
PollOnceAddGroupMigrationAsync(String, CallSettings)
public virtual Task<Operation<AddGroupMigrationResponse, OperationMetadata>> PollOnceAddGroupMigrationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
AddGroupMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<AddGroupMigrationResponse, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCancelCloneJob(String, CallSettings)
public virtual Operation<CancelCloneJobResponse, OperationMetadata> PollOnceCancelCloneJob(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CancelCloneJob
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CancelCloneJobResponse, OperationMetadata> | The result of polling the operation. |
PollOnceCancelCloneJobAsync(String, CallSettings)
public virtual Task<Operation<CancelCloneJobResponse, OperationMetadata>> PollOnceCancelCloneJobAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CancelCloneJob
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CancelCloneJobResponse, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCancelCutoverJob(String, CallSettings)
public virtual Operation<CancelCutoverJobResponse, OperationMetadata> PollOnceCancelCutoverJob(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CancelCutoverJob
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CancelCutoverJobResponse, OperationMetadata> | The result of polling the operation. |
PollOnceCancelCutoverJobAsync(String, CallSettings)
public virtual Task<Operation<CancelCutoverJobResponse, OperationMetadata>> PollOnceCancelCutoverJobAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CancelCutoverJob
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CancelCutoverJobResponse, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateCloneJob(String, CallSettings)
public virtual Operation<CloneJob, OperationMetadata> PollOnceCreateCloneJob(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateCloneJob
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CloneJob, OperationMetadata> | The result of polling the operation. |
PollOnceCreateCloneJobAsync(String, CallSettings)
public virtual Task<Operation<CloneJob, OperationMetadata>> PollOnceCreateCloneJobAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCloneJob
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CloneJob, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateCutoverJob(String, CallSettings)
public virtual Operation<CutoverJob, OperationMetadata> PollOnceCreateCutoverJob(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateCutoverJob
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CutoverJob, OperationMetadata> | The result of polling the operation. |
PollOnceCreateCutoverJobAsync(String, CallSettings)
public virtual Task<Operation<CutoverJob, OperationMetadata>> PollOnceCreateCutoverJobAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCutoverJob
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CutoverJob, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateDatacenterConnector(String, CallSettings)
public virtual Operation<DatacenterConnector, OperationMetadata> PollOnceCreateDatacenterConnector(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateDatacenterConnector
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<DatacenterConnector, OperationMetadata> | The result of polling the operation. |
PollOnceCreateDatacenterConnectorAsync(String, CallSettings)
public virtual Task<Operation<DatacenterConnector, OperationMetadata>> PollOnceCreateDatacenterConnectorAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateDatacenterConnector
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<DatacenterConnector, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateGroup(String, CallSettings)
public virtual Operation<Group, OperationMetadata> PollOnceCreateGroup(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateGroup
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Group, OperationMetadata> | The result of polling the operation. |
PollOnceCreateGroupAsync(String, CallSettings)
public virtual Task<Operation<Group, OperationMetadata>> PollOnceCreateGroupAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateGroup
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Group, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateMigratingVm(String, CallSettings)
public virtual Operation<MigratingVm, OperationMetadata> PollOnceCreateMigratingVm(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateMigratingVm
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<MigratingVm, OperationMetadata> | The result of polling the operation. |
PollOnceCreateMigratingVmAsync(String, CallSettings)
public virtual Task<Operation<MigratingVm, OperationMetadata>> PollOnceCreateMigratingVmAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateMigratingVm
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateSource(String, CallSettings)
public virtual Operation<Source, OperationMetadata> PollOnceCreateSource(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateSource
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Source, OperationMetadata> | The result of polling the operation. |
PollOnceCreateSourceAsync(String, CallSettings)
public virtual Task<Operation<Source, OperationMetadata>> PollOnceCreateSourceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateSource
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateTargetProject(String, CallSettings)
public virtual Operation<TargetProject, OperationMetadata> PollOnceCreateTargetProject(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateTargetProject
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<TargetProject, OperationMetadata> | The result of polling the operation. |
PollOnceCreateTargetProjectAsync(String, CallSettings)
public virtual Task<Operation<TargetProject, OperationMetadata>> PollOnceCreateTargetProjectAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateTargetProject
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateUtilizationReport(String, CallSettings)
public virtual Operation<UtilizationReport, OperationMetadata> PollOnceCreateUtilizationReport(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateUtilizationReport
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<UtilizationReport, OperationMetadata> | The result of polling the operation. |
PollOnceCreateUtilizationReportAsync(String, CallSettings)
public virtual Task<Operation<UtilizationReport, OperationMetadata>> PollOnceCreateUtilizationReportAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateUtilizationReport
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<UtilizationReport, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteDatacenterConnector(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteDatacenterConnector(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteDatacenterConnector
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteDatacenterConnectorAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteDatacenterConnectorAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteDatacenterConnector
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteGroup(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteGroup(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteGroup
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteGroupAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteGroupAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteGroup
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteMigratingVm(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteMigratingVm(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteMigratingVm
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteMigratingVmAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteMigratingVmAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteMigratingVm
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteSource(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteSource(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteSource
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteSourceAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteSourceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteSource
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteTargetProject(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteTargetProject(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteTargetProject
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteTargetProjectAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteTargetProjectAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteTargetProject
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteUtilizationReport(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteUtilizationReport(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteUtilizationReport
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteUtilizationReportAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteUtilizationReportAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteUtilizationReport
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceFinalizeMigration(String, CallSettings)
public virtual Operation<FinalizeMigrationResponse, OperationMetadata> PollOnceFinalizeMigration(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of FinalizeMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<FinalizeMigrationResponse, OperationMetadata> | The result of polling the operation. |
PollOnceFinalizeMigrationAsync(String, CallSettings)
public virtual Task<Operation<FinalizeMigrationResponse, OperationMetadata>> PollOnceFinalizeMigrationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
FinalizeMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<FinalizeMigrationResponse, OperationMetadata>> | A task representing the result of polling the operation. |
PollOncePauseMigration(String, CallSettings)
public virtual Operation<PauseMigrationResponse, OperationMetadata> PollOncePauseMigration(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of PauseMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<PauseMigrationResponse, OperationMetadata> | The result of polling the operation. |
PollOncePauseMigrationAsync(String, CallSettings)
public virtual Task<Operation<PauseMigrationResponse, OperationMetadata>> PollOncePauseMigrationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
PauseMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<PauseMigrationResponse, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceRemoveGroupMigration(String, CallSettings)
public virtual Operation<RemoveGroupMigrationResponse, OperationMetadata> PollOnceRemoveGroupMigration(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of RemoveGroupMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<RemoveGroupMigrationResponse, OperationMetadata> | The result of polling the operation. |
PollOnceRemoveGroupMigrationAsync(String, CallSettings)
public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> PollOnceRemoveGroupMigrationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
RemoveGroupMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceResumeMigration(String, CallSettings)
public virtual Operation<ResumeMigrationResponse, OperationMetadata> PollOnceResumeMigration(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of ResumeMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ResumeMigrationResponse, OperationMetadata> | The result of polling the operation. |
PollOnceResumeMigrationAsync(String, CallSettings)
public virtual Task<Operation<ResumeMigrationResponse, OperationMetadata>> PollOnceResumeMigrationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ResumeMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ResumeMigrationResponse, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceStartMigration(String, CallSettings)
public virtual Operation<StartMigrationResponse, OperationMetadata> PollOnceStartMigration(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of StartMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<StartMigrationResponse, OperationMetadata> | The result of polling the operation. |
PollOnceStartMigrationAsync(String, CallSettings)
public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> PollOnceStartMigrationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
StartMigration
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<StartMigrationResponse, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateGroup(String, CallSettings)
public virtual Operation<Group, OperationMetadata> PollOnceUpdateGroup(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateGroup
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Group, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateGroupAsync(String, CallSettings)
public virtual Task<Operation<Group, OperationMetadata>> PollOnceUpdateGroupAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateGroup
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Group, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateMigratingVm(String, CallSettings)
public virtual Operation<MigratingVm, OperationMetadata> PollOnceUpdateMigratingVm(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateMigratingVm
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<MigratingVm, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateMigratingVmAsync(String, CallSettings)
public virtual Task<Operation<MigratingVm, OperationMetadata>> PollOnceUpdateMigratingVmAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateMigratingVm
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateSource(String, CallSettings)
public virtual Operation<Source, OperationMetadata> PollOnceUpdateSource(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateSource
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Source, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateSourceAsync(String, CallSettings)
public virtual Task<Operation<Source, OperationMetadata>> PollOnceUpdateSourceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateSource
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateTargetProject(String, CallSettings)
public virtual Operation<TargetProject, OperationMetadata> PollOnceUpdateTargetProject(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateTargetProject
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<TargetProject, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateTargetProjectAsync(String, CallSettings)
public virtual Task<Operation<TargetProject, OperationMetadata>> PollOnceUpdateTargetProjectAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateTargetProject
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A task representing the result of polling the operation. |
RemoveGroupMigration(GroupName, CallSettings)
public virtual Operation<RemoveGroupMigrationResponse, OperationMetadata> RemoveGroupMigration(GroupName group, CallSettings callSettings = null)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
group | GroupName Required. The name of the Group. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<RemoveGroupMigrationResponse, 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<RemoveGroupMigrationResponse, OperationMetadata> response = vmMigrationClient.RemoveGroupMigration(group);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceRemoveGroupMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
RemoveGroupMigration(RemoveGroupMigrationRequest, CallSettings)
public virtual Operation<RemoveGroupMigrationResponse, OperationMetadata> RemoveGroupMigration(RemoveGroupMigrationRequest request, CallSettings callSettings = null)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
request | RemoveGroupMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<RemoveGroupMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
RemoveGroupMigrationRequest request = new RemoveGroupMigrationRequest
{
GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<RemoveGroupMigrationResponse, OperationMetadata> response = vmMigrationClient.RemoveGroupMigration(request);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceRemoveGroupMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
RemoveGroupMigration(String, CallSettings)
public virtual Operation<RemoveGroupMigrationResponse, OperationMetadata> RemoveGroupMigration(string group, CallSettings callSettings = null)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
group | String Required. The name of the Group. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<RemoveGroupMigrationResponse, 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<RemoveGroupMigrationResponse, OperationMetadata> response = vmMigrationClient.RemoveGroupMigration(group);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceRemoveGroupMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
RemoveGroupMigrationAsync(GroupName, CallSettings)
public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(GroupName group, CallSettings callSettings = null)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
group | GroupName Required. The name of the Group. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<RemoveGroupMigrationResponse, 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<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(group);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceRemoveGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
RemoveGroupMigrationAsync(GroupName, CancellationToken)
public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(GroupName group, CancellationToken cancellationToken)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
group | GroupName Required. The name of the Group. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<RemoveGroupMigrationResponse, 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<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(group);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceRemoveGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
RemoveGroupMigrationAsync(RemoveGroupMigrationRequest, CallSettings)
public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(RemoveGroupMigrationRequest request, CallSettings callSettings = null)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
request | RemoveGroupMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
RemoveGroupMigrationRequest request = new RemoveGroupMigrationRequest
{
GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceRemoveGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
RemoveGroupMigrationAsync(RemoveGroupMigrationRequest, CancellationToken)
public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(RemoveGroupMigrationRequest request, CancellationToken cancellationToken)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
request | RemoveGroupMigrationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
RemoveGroupMigrationRequest request = new RemoveGroupMigrationRequest
{
GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceRemoveGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
RemoveGroupMigrationAsync(String, CallSettings)
public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(string group, CallSettings callSettings = null)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
group | String Required. The name of the Group. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<RemoveGroupMigrationResponse, 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<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(group);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceRemoveGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
RemoveGroupMigrationAsync(String, CancellationToken)
public virtual Task<Operation<RemoveGroupMigrationResponse, OperationMetadata>> RemoveGroupMigrationAsync(string group, CancellationToken cancellationToken)
Removes a MigratingVm from a Group.
Parameters | |
---|---|
Name | Description |
group | String Required. The name of the Group. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<RemoveGroupMigrationResponse, 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<RemoveGroupMigrationResponse, OperationMetadata> response = await vmMigrationClient.RemoveGroupMigrationAsync(group);
// Poll until the returned long-running operation is complete
Operation<RemoveGroupMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RemoveGroupMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RemoveGroupMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceRemoveGroupMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RemoveGroupMigrationResponse retrievedResult = retrievedResponse.Result;
}
ResumeMigration(ResumeMigrationRequest, CallSettings)
public virtual Operation<ResumeMigrationResponse, OperationMetadata> ResumeMigration(ResumeMigrationRequest request, CallSettings callSettings = null)
Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.
Parameters | |
---|---|
Name | Description |
request | ResumeMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ResumeMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
ResumeMigrationRequest request = new ResumeMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<ResumeMigrationResponse, OperationMetadata> response = vmMigrationClient.ResumeMigration(request);
// Poll until the returned long-running operation is complete
Operation<ResumeMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ResumeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResumeMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceResumeMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ResumeMigrationResponse retrievedResult = retrievedResponse.Result;
}
ResumeMigrationAsync(ResumeMigrationRequest, CallSettings)
public virtual Task<Operation<ResumeMigrationResponse, OperationMetadata>> ResumeMigrationAsync(ResumeMigrationRequest request, CallSettings callSettings = null)
Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.
Parameters | |
---|---|
Name | Description |
request | ResumeMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ResumeMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ResumeMigrationRequest request = new ResumeMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<ResumeMigrationResponse, OperationMetadata> response = await vmMigrationClient.ResumeMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<ResumeMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ResumeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResumeMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceResumeMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ResumeMigrationResponse retrievedResult = retrievedResponse.Result;
}
ResumeMigrationAsync(ResumeMigrationRequest, CancellationToken)
public virtual Task<Operation<ResumeMigrationResponse, OperationMetadata>> ResumeMigrationAsync(ResumeMigrationRequest request, CancellationToken cancellationToken)
Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.
Parameters | |
---|---|
Name | Description |
request | ResumeMigrationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<ResumeMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
ResumeMigrationRequest request = new ResumeMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<ResumeMigrationResponse, OperationMetadata> response = await vmMigrationClient.ResumeMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<ResumeMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ResumeMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResumeMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceResumeMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ResumeMigrationResponse retrievedResult = retrievedResponse.Result;
}
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
StartMigration(MigratingVmName, CallSettings)
public virtual Operation<StartMigrationResponse, OperationMetadata> StartMigration(MigratingVmName migratingVm, CallSettings callSettings = null)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVmName Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<StartMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVmName migratingVm = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = vmMigrationClient.StartMigration(migratingVm);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceStartMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
StartMigration(StartMigrationRequest, CallSettings)
public virtual Operation<StartMigrationResponse, OperationMetadata> StartMigration(StartMigrationRequest request, CallSettings callSettings = null)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
request | StartMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<StartMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
StartMigrationRequest request = new StartMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = vmMigrationClient.StartMigration(request);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceStartMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
StartMigration(String, CallSettings)
public virtual Operation<StartMigrationResponse, OperationMetadata> StartMigration(string migratingVm, CallSettings callSettings = null)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
migratingVm | String Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<StartMigrationResponse, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
string migratingVm = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = vmMigrationClient.StartMigration(migratingVm);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceStartMigration(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
StartMigrationAsync(MigratingVmName, CallSettings)
public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(MigratingVmName migratingVm, CallSettings callSettings = null)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVmName Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<StartMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName migratingVm = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = await vmMigrationClient.StartMigrationAsync(migratingVm);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceStartMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
StartMigrationAsync(MigratingVmName, CancellationToken)
public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(MigratingVmName migratingVm, CancellationToken cancellationToken)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVmName Required. The name of the MigratingVm. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<StartMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVmName migratingVm = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]");
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = await vmMigrationClient.StartMigrationAsync(migratingVm);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceStartMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
StartMigrationAsync(StartMigrationRequest, CallSettings)
public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(StartMigrationRequest request, CallSettings callSettings = null)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
request | StartMigrationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<StartMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
StartMigrationRequest request = new StartMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = await vmMigrationClient.StartMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceStartMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
StartMigrationAsync(StartMigrationRequest, CancellationToken)
public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(StartMigrationRequest request, CancellationToken cancellationToken)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
request | StartMigrationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<StartMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
StartMigrationRequest request = new StartMigrationRequest
{
MigratingVmAsMigratingVmName = MigratingVmName.FromProjectLocationSourceMigratingVm("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]"),
};
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = await vmMigrationClient.StartMigrationAsync(request);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceStartMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
StartMigrationAsync(String, CallSettings)
public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(string migratingVm, CallSettings callSettings = null)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
migratingVm | String Required. The name of the MigratingVm. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<StartMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string migratingVm = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = await vmMigrationClient.StartMigrationAsync(migratingVm);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceStartMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
StartMigrationAsync(String, CancellationToken)
public virtual Task<Operation<StartMigrationResponse, OperationMetadata>> StartMigrationAsync(string migratingVm, CancellationToken cancellationToken)
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
Parameters | |
---|---|
Name | Description |
migratingVm | String Required. The name of the MigratingVm. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<StartMigrationResponse, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
string migratingVm = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/migratingVms/[MIGRATING_VM]";
// Make the request
Operation<StartMigrationResponse, OperationMetadata> response = await vmMigrationClient.StartMigrationAsync(migratingVm);
// Poll until the returned long-running operation is complete
Operation<StartMigrationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartMigrationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartMigrationResponse, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceStartMigrationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
StartMigrationResponse retrievedResult = retrievedResponse.Result;
}
UpdateGroup(Group, FieldMask, CallSettings)
public virtual Operation<Group, OperationMetadata> UpdateGroup(Group group, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single Group.
Parameters | |
---|---|
Name | Description |
group | Group Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Group, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = vmMigrationClient.UpdateGroup(group, updateMask);
// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Group, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceUpdateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Group retrievedResult = retrievedResponse.Result;
}
UpdateGroup(UpdateGroupRequest, CallSettings)
public virtual Operation<Group, OperationMetadata> UpdateGroup(UpdateGroupRequest request, CallSettings callSettings = null)
Updates the parameters of a single Group.
Parameters | |
---|---|
Name | Description |
request | UpdateGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Group, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
UpdateGroupRequest request = new UpdateGroupRequest
{
UpdateMask = new FieldMask(),
Group = new Group(),
RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = vmMigrationClient.UpdateGroup(request);
// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Group, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceUpdateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Group retrievedResult = retrievedResponse.Result;
}
UpdateGroupAsync(Group, FieldMask, CallSettings)
public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(Group group, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single Group.
Parameters | |
---|---|
Name | Description |
group | Group Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.UpdateGroupAsync(group, updateMask);
// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Group retrievedResult = retrievedResponse.Result;
}
UpdateGroupAsync(Group, FieldMask, CancellationToken)
public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(Group group, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single Group.
Parameters | |
---|---|
Name | Description |
group | Group Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.UpdateGroupAsync(group, updateMask);
// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Group retrievedResult = retrievedResponse.Result;
}
UpdateGroupAsync(UpdateGroupRequest, CallSettings)
public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(UpdateGroupRequest request, CallSettings callSettings = null)
Updates the parameters of a single Group.
Parameters | |
---|---|
Name | Description |
request | UpdateGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UpdateGroupRequest request = new UpdateGroupRequest
{
UpdateMask = new FieldMask(),
Group = new Group(),
RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.UpdateGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Group retrievedResult = retrievedResponse.Result;
}
UpdateGroupAsync(UpdateGroupRequest, CancellationToken)
public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(UpdateGroupRequest request, CancellationToken cancellationToken)
Updates the parameters of a single Group.
Parameters | |
---|---|
Name | Description |
request | UpdateGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Group, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UpdateGroupRequest request = new UpdateGroupRequest
{
UpdateMask = new FieldMask(),
Group = new Group(),
RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await vmMigrationClient.UpdateGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Group, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Group retrievedResult = retrievedResponse.Result;
}
UpdateMigratingVm(MigratingVm, FieldMask, CallSettings)
public virtual Operation<MigratingVm, OperationMetadata> UpdateMigratingVm(MigratingVm migratingVm, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVm Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the MigratingVm resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<MigratingVm, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
MigratingVm migratingVm = new MigratingVm();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MigratingVm, OperationMetadata> response = vmMigrationClient.UpdateMigratingVm(migratingVm, updateMask);
// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MigratingVm result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MigratingVm, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceUpdateMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MigratingVm retrievedResult = retrievedResponse.Result;
}
UpdateMigratingVm(UpdateMigratingVmRequest, CallSettings)
public virtual Operation<MigratingVm, OperationMetadata> UpdateMigratingVm(UpdateMigratingVmRequest request, CallSettings callSettings = null)
Updates the parameters of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | UpdateMigratingVmRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<MigratingVm, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
UpdateMigratingVmRequest request = new UpdateMigratingVmRequest
{
UpdateMask = new FieldMask(),
MigratingVm = new MigratingVm(),
RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = vmMigrationClient.UpdateMigratingVm(request);
// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MigratingVm result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MigratingVm, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceUpdateMigratingVm(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MigratingVm retrievedResult = retrievedResponse.Result;
}
UpdateMigratingVmAsync(MigratingVm, FieldMask, CallSettings)
public virtual Task<Operation<MigratingVm, OperationMetadata>> UpdateMigratingVmAsync(MigratingVm migratingVm, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVm Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the MigratingVm resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVm migratingVm = new MigratingVm();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.UpdateMigratingVmAsync(migratingVm, updateMask);
// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MigratingVm retrievedResult = retrievedResponse.Result;
}
UpdateMigratingVmAsync(MigratingVm, FieldMask, CancellationToken)
public virtual Task<Operation<MigratingVm, OperationMetadata>> UpdateMigratingVmAsync(MigratingVm migratingVm, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
migratingVm | MigratingVm Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the MigratingVm resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
MigratingVm migratingVm = new MigratingVm();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.UpdateMigratingVmAsync(migratingVm, updateMask);
// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MigratingVm retrievedResult = retrievedResponse.Result;
}
UpdateMigratingVmAsync(UpdateMigratingVmRequest, CallSettings)
public virtual Task<Operation<MigratingVm, OperationMetadata>> UpdateMigratingVmAsync(UpdateMigratingVmRequest request, CallSettings callSettings = null)
Updates the parameters of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | UpdateMigratingVmRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UpdateMigratingVmRequest request = new UpdateMigratingVmRequest
{
UpdateMask = new FieldMask(),
MigratingVm = new MigratingVm(),
RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.UpdateMigratingVmAsync(request);
// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MigratingVm retrievedResult = retrievedResponse.Result;
}
UpdateMigratingVmAsync(UpdateMigratingVmRequest, CancellationToken)
public virtual Task<Operation<MigratingVm, OperationMetadata>> UpdateMigratingVmAsync(UpdateMigratingVmRequest request, CancellationToken cancellationToken)
Updates the parameters of a single MigratingVm.
Parameters | |
---|---|
Name | Description |
request | UpdateMigratingVmRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<MigratingVm, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UpdateMigratingVmRequest request = new UpdateMigratingVmRequest
{
UpdateMask = new FieldMask(),
MigratingVm = new MigratingVm(),
RequestId = "",
};
// Make the request
Operation<MigratingVm, OperationMetadata> response = await vmMigrationClient.UpdateMigratingVmAsync(request);
// Poll until the returned long-running operation is complete
Operation<MigratingVm, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MigratingVm result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MigratingVm, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateMigratingVmAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MigratingVm retrievedResult = retrievedResponse.Result;
}
UpdateSource(Source, FieldMask, CallSettings)
public virtual Operation<Source, OperationMetadata> UpdateSource(Source source, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single Source.
Parameters | |
---|---|
Name | Description |
source | Source Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Source resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Source, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.UpdateSource(source, updateMask);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceUpdateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
UpdateSource(UpdateSourceRequest, CallSettings)
public virtual Operation<Source, OperationMetadata> UpdateSource(UpdateSourceRequest request, CallSettings callSettings = null)
Updates the parameters of a single Source.
Parameters | |
---|---|
Name | Description |
request | UpdateSourceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Source, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
UpdateMask = new FieldMask(),
Source = new Source(),
RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = vmMigrationClient.UpdateSource(request);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceUpdateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
UpdateSourceAsync(Source, FieldMask, CallSettings)
public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(Source source, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single Source.
Parameters | |
---|---|
Name | Description |
source | Source Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Source resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.UpdateSourceAsync(source, updateMask);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
UpdateSourceAsync(Source, FieldMask, CancellationToken)
public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(Source source, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single Source.
Parameters | |
---|---|
Name | Description |
source | Source Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Source resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.UpdateSourceAsync(source, updateMask);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
UpdateSourceAsync(UpdateSourceRequest, CallSettings)
public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(UpdateSourceRequest request, CallSettings callSettings = null)
Updates the parameters of a single Source.
Parameters | |
---|---|
Name | Description |
request | UpdateSourceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
UpdateMask = new FieldMask(),
Source = new Source(),
RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.UpdateSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
UpdateSourceAsync(UpdateSourceRequest, CancellationToken)
public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(UpdateSourceRequest request, CancellationToken cancellationToken)
Updates the parameters of a single Source.
Parameters | |
---|---|
Name | Description |
request | UpdateSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Source, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
UpdateMask = new FieldMask(),
Source = new Source(),
RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await vmMigrationClient.UpdateSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Source, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Source retrievedResult = retrievedResponse.Result;
}
UpdateTargetProject(TargetProject, FieldMask, CallSettings)
public virtual Operation<TargetProject, OperationMetadata> UpdateTargetProject(TargetProject targetProject, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
targetProject | TargetProject Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the TargetProject resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<TargetProject, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
TargetProject targetProject = new TargetProject();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.UpdateTargetProject(targetProject, updateMask);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceUpdateTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
UpdateTargetProject(UpdateTargetProjectRequest, CallSettings)
public virtual Operation<TargetProject, OperationMetadata> UpdateTargetProject(UpdateTargetProjectRequest request, CallSettings callSettings = null)
Updates the parameters of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | UpdateTargetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<TargetProject, OperationMetadata> | The RPC response. |
// Create client
VmMigrationClient vmMigrationClient = VmMigrationClient.Create();
// Initialize request argument(s)
UpdateTargetProjectRequest request = new UpdateTargetProjectRequest
{
UpdateMask = new FieldMask(),
TargetProject = new TargetProject(),
RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = vmMigrationClient.UpdateTargetProject(request);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = vmMigrationClient.PollOnceUpdateTargetProject(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
UpdateTargetProjectAsync(TargetProject, FieldMask, CallSettings)
public virtual Task<Operation<TargetProject, OperationMetadata>> UpdateTargetProjectAsync(TargetProject targetProject, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
targetProject | TargetProject Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the TargetProject resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
TargetProject targetProject = new TargetProject();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.UpdateTargetProjectAsync(targetProject, updateMask);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
UpdateTargetProjectAsync(TargetProject, FieldMask, CancellationToken)
public virtual Task<Operation<TargetProject, OperationMetadata>> UpdateTargetProjectAsync(TargetProject targetProject, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
targetProject | TargetProject Required. The update request body. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the TargetProject resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
TargetProject targetProject = new TargetProject();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.UpdateTargetProjectAsync(targetProject, updateMask);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
UpdateTargetProjectAsync(UpdateTargetProjectRequest, CallSettings)
public virtual Task<Operation<TargetProject, OperationMetadata>> UpdateTargetProjectAsync(UpdateTargetProjectRequest request, CallSettings callSettings = null)
Updates the parameters of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | UpdateTargetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UpdateTargetProjectRequest request = new UpdateTargetProjectRequest
{
UpdateMask = new FieldMask(),
TargetProject = new TargetProject(),
RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.UpdateTargetProjectAsync(request);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}
UpdateTargetProjectAsync(UpdateTargetProjectRequest, CancellationToken)
public virtual Task<Operation<TargetProject, OperationMetadata>> UpdateTargetProjectAsync(UpdateTargetProjectRequest request, CancellationToken cancellationToken)
Updates the parameters of a single TargetProject.
NOTE: TargetProject is a global resource; hence the only supported value
for location is global
.
Parameters | |
---|---|
Name | Description |
request | UpdateTargetProjectRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<TargetProject, OperationMetadata>> | A Task containing the RPC response. |
// Create client
VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
// Initialize request argument(s)
UpdateTargetProjectRequest request = new UpdateTargetProjectRequest
{
UpdateMask = new FieldMask(),
TargetProject = new TargetProject(),
RequestId = "",
};
// Make the request
Operation<TargetProject, OperationMetadata> response = await vmMigrationClient.UpdateTargetProjectAsync(request);
// Poll until the returned long-running operation is complete
Operation<TargetProject, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TargetProject result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TargetProject, OperationMetadata> retrievedResponse = await vmMigrationClient.PollOnceUpdateTargetProjectAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
TargetProject retrievedResult = retrievedResponse.Result;
}