Database Migration v1 API - Class DataMigrationServiceClient (2.5.0)

public abstract class DataMigrationServiceClient

Reference documentation and code samples for the Database Migration v1 API class DataMigrationServiceClient.

DataMigrationService client wrapper, for convenient use.

Inheritance

object > DataMigrationServiceClient

Namespace

Google.Cloud.CloudDms.V1

Assembly

Google.Cloud.CloudDms.V1.dll

Remarks

Database Migration service

Properties

ApplyConversionWorkspaceOperationsClient

public virtual OperationsClient ApplyConversionWorkspaceOperationsClient { get; }

The long-running operations client for ApplyConversionWorkspace.

Property Value
Type Description
OperationsClient

CommitConversionWorkspaceOperationsClient

public virtual OperationsClient CommitConversionWorkspaceOperationsClient { get; }

The long-running operations client for CommitConversionWorkspace.

Property Value
Type Description
OperationsClient

ConvertConversionWorkspaceOperationsClient

public virtual OperationsClient ConvertConversionWorkspaceOperationsClient { get; }

The long-running operations client for ConvertConversionWorkspace.

Property Value
Type Description
OperationsClient

CreateConnectionProfileOperationsClient

public virtual OperationsClient CreateConnectionProfileOperationsClient { get; }

The long-running operations client for CreateConnectionProfile.

Property Value
Type Description
OperationsClient

CreateConversionWorkspaceOperationsClient

public virtual OperationsClient CreateConversionWorkspaceOperationsClient { get; }

The long-running operations client for CreateConversionWorkspace.

Property Value
Type Description
OperationsClient

CreateMigrationJobOperationsClient

public virtual OperationsClient CreateMigrationJobOperationsClient { get; }

The long-running operations client for CreateMigrationJob.

Property Value
Type Description
OperationsClient

CreatePrivateConnectionOperationsClient

public virtual OperationsClient CreatePrivateConnectionOperationsClient { get; }

The long-running operations client for CreatePrivateConnection.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default DataMigrationService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default DataMigrationService scopes are:

DeleteConnectionProfileOperationsClient

public virtual OperationsClient DeleteConnectionProfileOperationsClient { get; }

The long-running operations client for DeleteConnectionProfile.

Property Value
Type Description
OperationsClient

DeleteConversionWorkspaceOperationsClient

public virtual OperationsClient DeleteConversionWorkspaceOperationsClient { get; }

The long-running operations client for DeleteConversionWorkspace.

Property Value
Type Description
OperationsClient

DeleteMigrationJobOperationsClient

public virtual OperationsClient DeleteMigrationJobOperationsClient { get; }

The long-running operations client for DeleteMigrationJob.

Property Value
Type Description
OperationsClient

DeletePrivateConnectionOperationsClient

public virtual OperationsClient DeletePrivateConnectionOperationsClient { get; }

The long-running operations client for DeletePrivateConnection.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual DataMigrationService.DataMigrationServiceClient GrpcClient { get; }

The underlying gRPC DataMigrationService client

Property Value
Type Description
DataMigrationServiceDataMigrationServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

ImportMappingRulesOperationsClient

public virtual OperationsClient ImportMappingRulesOperationsClient { get; }

The long-running operations client for ImportMappingRules.

Property Value
Type Description
OperationsClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

PromoteMigrationJobOperationsClient

public virtual OperationsClient PromoteMigrationJobOperationsClient { get; }

The long-running operations client for PromoteMigrationJob.

Property Value
Type Description
OperationsClient

RestartMigrationJobOperationsClient

public virtual OperationsClient RestartMigrationJobOperationsClient { get; }

The long-running operations client for RestartMigrationJob.

Property Value
Type Description
OperationsClient

ResumeMigrationJobOperationsClient

public virtual OperationsClient ResumeMigrationJobOperationsClient { get; }

The long-running operations client for ResumeMigrationJob.

Property Value
Type Description
OperationsClient

RollbackConversionWorkspaceOperationsClient

public virtual OperationsClient RollbackConversionWorkspaceOperationsClient { get; }

The long-running operations client for RollbackConversionWorkspace.

Property Value
Type Description
OperationsClient

SeedConversionWorkspaceOperationsClient

public virtual OperationsClient SeedConversionWorkspaceOperationsClient { get; }

The long-running operations client for SeedConversionWorkspace.

Property Value
Type Description
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

StartMigrationJobOperationsClient

public virtual OperationsClient StartMigrationJobOperationsClient { get; }

The long-running operations client for StartMigrationJob.

Property Value
Type Description
OperationsClient

StopMigrationJobOperationsClient

public virtual OperationsClient StopMigrationJobOperationsClient { get; }

The long-running operations client for StopMigrationJob.

Property Value
Type Description
OperationsClient

UpdateConnectionProfileOperationsClient

public virtual OperationsClient UpdateConnectionProfileOperationsClient { get; }

The long-running operations client for UpdateConnectionProfile.

Property Value
Type Description
OperationsClient

UpdateConversionWorkspaceOperationsClient

public virtual OperationsClient UpdateConversionWorkspaceOperationsClient { get; }

The long-running operations client for UpdateConversionWorkspace.

Property Value
Type Description
OperationsClient

UpdateMigrationJobOperationsClient

public virtual OperationsClient UpdateMigrationJobOperationsClient { get; }

The long-running operations client for UpdateMigrationJob.

Property Value
Type Description
OperationsClient

VerifyMigrationJobOperationsClient

public virtual OperationsClient VerifyMigrationJobOperationsClient { get; }

The long-running operations client for VerifyMigrationJob.

Property Value
Type Description
OperationsClient

Methods

ApplyConversionWorkspace(ApplyConversionWorkspaceRequest, CallSettings)

public virtual Operation<ConversionWorkspace, OperationMetadata> ApplyConversionWorkspace(ApplyConversionWorkspaceRequest request, CallSettings callSettings = null)

Applies draft tree onto a specific destination database.

Parameters
Name Description
request ApplyConversionWorkspaceRequest

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
OperationConversionWorkspaceOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ApplyConversionWorkspaceRequest request = new ApplyConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    Filter = "",
    DryRun = false,
    AutoCommit = false,
    ConnectionProfile = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = dataMigrationServiceClient.ApplyConversionWorkspace(request);

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

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

ApplyConversionWorkspaceAsync(ApplyConversionWorkspaceRequest, CallSettings)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> ApplyConversionWorkspaceAsync(ApplyConversionWorkspaceRequest request, CallSettings callSettings = null)

Applies draft tree onto a specific destination database.

Parameters
Name Description
request ApplyConversionWorkspaceRequest

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
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ApplyConversionWorkspaceRequest request = new ApplyConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    Filter = "",
    DryRun = false,
    AutoCommit = false,
    ConnectionProfile = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.ApplyConversionWorkspaceAsync(request);

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

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

ApplyConversionWorkspaceAsync(ApplyConversionWorkspaceRequest, CancellationToken)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> ApplyConversionWorkspaceAsync(ApplyConversionWorkspaceRequest request, CancellationToken cancellationToken)

Applies draft tree onto a specific destination database.

Parameters
Name Description
request ApplyConversionWorkspaceRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ApplyConversionWorkspaceRequest request = new ApplyConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    Filter = "",
    DryRun = false,
    AutoCommit = false,
    ConnectionProfile = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.ApplyConversionWorkspaceAsync(request);

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

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

CommitConversionWorkspace(CommitConversionWorkspaceRequest, CallSettings)

public virtual Operation<ConversionWorkspace, OperationMetadata> CommitConversionWorkspace(CommitConversionWorkspaceRequest request, CallSettings callSettings = null)

Marks all the data in the conversion workspace as committed.

Parameters
Name Description
request CommitConversionWorkspaceRequest

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
OperationConversionWorkspaceOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
CommitConversionWorkspaceRequest request = new CommitConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    CommitName = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = dataMigrationServiceClient.CommitConversionWorkspace(request);

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

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

CommitConversionWorkspaceAsync(CommitConversionWorkspaceRequest, CallSettings)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> CommitConversionWorkspaceAsync(CommitConversionWorkspaceRequest request, CallSettings callSettings = null)

Marks all the data in the conversion workspace as committed.

Parameters
Name Description
request CommitConversionWorkspaceRequest

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
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CommitConversionWorkspaceRequest request = new CommitConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    CommitName = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.CommitConversionWorkspaceAsync(request);

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

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

CommitConversionWorkspaceAsync(CommitConversionWorkspaceRequest, CancellationToken)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> CommitConversionWorkspaceAsync(CommitConversionWorkspaceRequest request, CancellationToken cancellationToken)

Marks all the data in the conversion workspace as committed.

Parameters
Name Description
request CommitConversionWorkspaceRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CommitConversionWorkspaceRequest request = new CommitConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    CommitName = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.CommitConversionWorkspaceAsync(request);

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

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

ConvertConversionWorkspace(ConvertConversionWorkspaceRequest, CallSettings)

public virtual Operation<ConversionWorkspace, OperationMetadata> ConvertConversionWorkspace(ConvertConversionWorkspaceRequest request, CallSettings callSettings = null)

Creates a draft tree schema for the destination database.

Parameters
Name Description
request ConvertConversionWorkspaceRequest

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
OperationConversionWorkspaceOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ConvertConversionWorkspaceRequest request = new ConvertConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    AutoCommit = false,
    Filter = "",
    ConvertFullPath = false,
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = dataMigrationServiceClient.ConvertConversionWorkspace(request);

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

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

ConvertConversionWorkspaceAsync(ConvertConversionWorkspaceRequest, CallSettings)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> ConvertConversionWorkspaceAsync(ConvertConversionWorkspaceRequest request, CallSettings callSettings = null)

Creates a draft tree schema for the destination database.

Parameters
Name Description
request ConvertConversionWorkspaceRequest

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
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConvertConversionWorkspaceRequest request = new ConvertConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    AutoCommit = false,
    Filter = "",
    ConvertFullPath = false,
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.ConvertConversionWorkspaceAsync(request);

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

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

ConvertConversionWorkspaceAsync(ConvertConversionWorkspaceRequest, CancellationToken)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> ConvertConversionWorkspaceAsync(ConvertConversionWorkspaceRequest request, CancellationToken cancellationToken)

Creates a draft tree schema for the destination database.

Parameters
Name Description
request ConvertConversionWorkspaceRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConvertConversionWorkspaceRequest request = new ConvertConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    AutoCommit = false,
    Filter = "",
    ConvertFullPath = false,
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.ConvertConversionWorkspaceAsync(request);

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

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

Create()

public static DataMigrationServiceClient Create()

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

Returns
Type Description
DataMigrationServiceClient

The created DataMigrationServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskDataMigrationServiceClient

The task representing the created DataMigrationServiceClient.

CreateConnectionProfile(LocationName, ConnectionProfile, string, CallSettings)

public virtual Operation<ConnectionProfile, OperationMetadata> CreateConnectionProfile(LocationName parent, ConnectionProfile connectionProfile, string connectionProfileId, CallSettings callSettings = null)

Creates a new connection profile in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of connection profiles.

connectionProfile ConnectionProfile

Required. The create request body including the connection profile data

connectionProfileId string

Required. The connection profile identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionProfileOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConnectionProfile connectionProfile = new ConnectionProfile();
string connectionProfileId = "";
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = dataMigrationServiceClient.CreateConnectionProfile(parent, connectionProfile, connectionProfileId);

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

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

CreateConnectionProfile(CreateConnectionProfileRequest, CallSettings)

public virtual Operation<ConnectionProfile, OperationMetadata> CreateConnectionProfile(CreateConnectionProfileRequest request, CallSettings callSettings = null)

Creates a new connection profile in a given project and location.

Parameters
Name Description
request CreateConnectionProfileRequest

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
OperationConnectionProfileOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
CreateConnectionProfileRequest request = new CreateConnectionProfileRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionProfileId = "",
    ConnectionProfile = new ConnectionProfile(),
    RequestId = "",
    ValidateOnly = false,
    SkipValidation = false,
};
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = dataMigrationServiceClient.CreateConnectionProfile(request);

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

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

CreateConnectionProfile(string, ConnectionProfile, string, CallSettings)

public virtual Operation<ConnectionProfile, OperationMetadata> CreateConnectionProfile(string parent, ConnectionProfile connectionProfile, string connectionProfileId, CallSettings callSettings = null)

Creates a new connection profile in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of connection profiles.

connectionProfile ConnectionProfile

Required. The create request body including the connection profile data

connectionProfileId string

Required. The connection profile identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionProfileOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ConnectionProfile connectionProfile = new ConnectionProfile();
string connectionProfileId = "";
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = dataMigrationServiceClient.CreateConnectionProfile(parent, connectionProfile, connectionProfileId);

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

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

CreateConnectionProfileAsync(LocationName, ConnectionProfile, string, CallSettings)

public virtual Task<Operation<ConnectionProfile, OperationMetadata>> CreateConnectionProfileAsync(LocationName parent, ConnectionProfile connectionProfile, string connectionProfileId, CallSettings callSettings = null)

Creates a new connection profile in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of connection profiles.

connectionProfile ConnectionProfile

Required. The create request body including the connection profile data

connectionProfileId string

Required. The connection profile identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConnectionProfile connectionProfile = new ConnectionProfile();
string connectionProfileId = "";
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = await dataMigrationServiceClient.CreateConnectionProfileAsync(parent, connectionProfile, connectionProfileId);

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

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

CreateConnectionProfileAsync(LocationName, ConnectionProfile, string, CancellationToken)

public virtual Task<Operation<ConnectionProfile, OperationMetadata>> CreateConnectionProfileAsync(LocationName parent, ConnectionProfile connectionProfile, string connectionProfileId, CancellationToken cancellationToken)

Creates a new connection profile in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of connection profiles.

connectionProfile ConnectionProfile

Required. The create request body including the connection profile data

connectionProfileId string

Required. The connection profile identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConnectionProfile connectionProfile = new ConnectionProfile();
string connectionProfileId = "";
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = await dataMigrationServiceClient.CreateConnectionProfileAsync(parent, connectionProfile, connectionProfileId);

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

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

CreateConnectionProfileAsync(CreateConnectionProfileRequest, CallSettings)

public virtual Task<Operation<ConnectionProfile, OperationMetadata>> CreateConnectionProfileAsync(CreateConnectionProfileRequest request, CallSettings callSettings = null)

Creates a new connection profile in a given project and location.

Parameters
Name Description
request CreateConnectionProfileRequest

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
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionProfileRequest request = new CreateConnectionProfileRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionProfileId = "",
    ConnectionProfile = new ConnectionProfile(),
    RequestId = "",
    ValidateOnly = false,
    SkipValidation = false,
};
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = await dataMigrationServiceClient.CreateConnectionProfileAsync(request);

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

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

CreateConnectionProfileAsync(CreateConnectionProfileRequest, CancellationToken)

public virtual Task<Operation<ConnectionProfile, OperationMetadata>> CreateConnectionProfileAsync(CreateConnectionProfileRequest request, CancellationToken cancellationToken)

Creates a new connection profile in a given project and location.

Parameters
Name Description
request CreateConnectionProfileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionProfileRequest request = new CreateConnectionProfileRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionProfileId = "",
    ConnectionProfile = new ConnectionProfile(),
    RequestId = "",
    ValidateOnly = false,
    SkipValidation = false,
};
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = await dataMigrationServiceClient.CreateConnectionProfileAsync(request);

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

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

CreateConnectionProfileAsync(string, ConnectionProfile, string, CallSettings)

public virtual Task<Operation<ConnectionProfile, OperationMetadata>> CreateConnectionProfileAsync(string parent, ConnectionProfile connectionProfile, string connectionProfileId, CallSettings callSettings = null)

Creates a new connection profile in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of connection profiles.

connectionProfile ConnectionProfile

Required. The create request body including the connection profile data

connectionProfileId string

Required. The connection profile identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ConnectionProfile connectionProfile = new ConnectionProfile();
string connectionProfileId = "";
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = await dataMigrationServiceClient.CreateConnectionProfileAsync(parent, connectionProfile, connectionProfileId);

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

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

CreateConnectionProfileAsync(string, ConnectionProfile, string, CancellationToken)

public virtual Task<Operation<ConnectionProfile, OperationMetadata>> CreateConnectionProfileAsync(string parent, ConnectionProfile connectionProfile, string connectionProfileId, CancellationToken cancellationToken)

Creates a new connection profile in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of connection profiles.

connectionProfile ConnectionProfile

Required. The create request body including the connection profile data

connectionProfileId string

Required. The connection profile identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ConnectionProfile connectionProfile = new ConnectionProfile();
string connectionProfileId = "";
// Make the request
Operation<ConnectionProfile, OperationMetadata> response = await dataMigrationServiceClient.CreateConnectionProfileAsync(parent, connectionProfile, connectionProfileId);

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

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

CreateConversionWorkspace(LocationName, ConversionWorkspace, string, CallSettings)

public virtual Operation<ConversionWorkspace, OperationMetadata> CreateConversionWorkspace(LocationName parent, ConversionWorkspace conversionWorkspace, string conversionWorkspaceId, CallSettings callSettings = null)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of conversion workspaces.

conversionWorkspace ConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceId string

Required. The ID of the conversion workspace to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversionWorkspaceOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversionWorkspace conversionWorkspace = new ConversionWorkspace();
string conversionWorkspaceId = "";
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = dataMigrationServiceClient.CreateConversionWorkspace(parent, conversionWorkspace, conversionWorkspaceId);

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

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

CreateConversionWorkspace(CreateConversionWorkspaceRequest, CallSettings)

public virtual Operation<ConversionWorkspace, OperationMetadata> CreateConversionWorkspace(CreateConversionWorkspaceRequest request, CallSettings callSettings = null)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
request CreateConversionWorkspaceRequest

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
OperationConversionWorkspaceOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
CreateConversionWorkspaceRequest request = new CreateConversionWorkspaceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConversionWorkspaceId = "",
    ConversionWorkspace = new ConversionWorkspace(),
    RequestId = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = dataMigrationServiceClient.CreateConversionWorkspace(request);

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

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

CreateConversionWorkspace(string, ConversionWorkspace, string, CallSettings)

public virtual Operation<ConversionWorkspace, OperationMetadata> CreateConversionWorkspace(string parent, ConversionWorkspace conversionWorkspace, string conversionWorkspaceId, CallSettings callSettings = null)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of conversion workspaces.

conversionWorkspace ConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceId string

Required. The ID of the conversion workspace to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversionWorkspaceOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ConversionWorkspace conversionWorkspace = new ConversionWorkspace();
string conversionWorkspaceId = "";
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = dataMigrationServiceClient.CreateConversionWorkspace(parent, conversionWorkspace, conversionWorkspaceId);

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

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

CreateConversionWorkspaceAsync(LocationName, ConversionWorkspace, string, CallSettings)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> CreateConversionWorkspaceAsync(LocationName parent, ConversionWorkspace conversionWorkspace, string conversionWorkspaceId, CallSettings callSettings = null)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of conversion workspaces.

conversionWorkspace ConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceId string

Required. The ID of the conversion workspace to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversionWorkspace conversionWorkspace = new ConversionWorkspace();
string conversionWorkspaceId = "";
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.CreateConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId);

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

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

CreateConversionWorkspaceAsync(LocationName, ConversionWorkspace, string, CancellationToken)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> CreateConversionWorkspaceAsync(LocationName parent, ConversionWorkspace conversionWorkspace, string conversionWorkspaceId, CancellationToken cancellationToken)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of conversion workspaces.

conversionWorkspace ConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceId string

Required. The ID of the conversion workspace to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversionWorkspace conversionWorkspace = new ConversionWorkspace();
string conversionWorkspaceId = "";
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.CreateConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId);

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

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

CreateConversionWorkspaceAsync(CreateConversionWorkspaceRequest, CallSettings)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> CreateConversionWorkspaceAsync(CreateConversionWorkspaceRequest request, CallSettings callSettings = null)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
request CreateConversionWorkspaceRequest

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
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConversionWorkspaceRequest request = new CreateConversionWorkspaceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConversionWorkspaceId = "",
    ConversionWorkspace = new ConversionWorkspace(),
    RequestId = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.CreateConversionWorkspaceAsync(request);

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

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

CreateConversionWorkspaceAsync(CreateConversionWorkspaceRequest, CancellationToken)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> CreateConversionWorkspaceAsync(CreateConversionWorkspaceRequest request, CancellationToken cancellationToken)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
request CreateConversionWorkspaceRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConversionWorkspaceRequest request = new CreateConversionWorkspaceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConversionWorkspaceId = "",
    ConversionWorkspace = new ConversionWorkspace(),
    RequestId = "",
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.CreateConversionWorkspaceAsync(request);

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

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

CreateConversionWorkspaceAsync(string, ConversionWorkspace, string, CallSettings)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> CreateConversionWorkspaceAsync(string parent, ConversionWorkspace conversionWorkspace, string conversionWorkspaceId, CallSettings callSettings = null)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of conversion workspaces.

conversionWorkspace ConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceId string

Required. The ID of the conversion workspace to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ConversionWorkspace conversionWorkspace = new ConversionWorkspace();
string conversionWorkspaceId = "";
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.CreateConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId);

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

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

CreateConversionWorkspaceAsync(string, ConversionWorkspace, string, CancellationToken)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> CreateConversionWorkspaceAsync(string parent, ConversionWorkspace conversionWorkspace, string conversionWorkspaceId, CancellationToken cancellationToken)

Creates a new conversion workspace in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of conversion workspaces.

conversionWorkspace ConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceId string

Required. The ID of the conversion workspace to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ConversionWorkspace conversionWorkspace = new ConversionWorkspace();
string conversionWorkspaceId = "";
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.CreateConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId);

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

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

CreateMappingRule(ConversionWorkspaceName, MappingRule, string, CallSettings)

public virtual MappingRule CreateMappingRule(ConversionWorkspaceName parent, MappingRule mappingRule, string mappingRuleId, CallSettings callSettings = null)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
parent ConversionWorkspaceName

Required. The parent which owns this collection of mapping rules.

mappingRule MappingRule

Required. Represents a mapping rule object.

mappingRuleId string

Required. The ID of the rule to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MappingRule

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ConversionWorkspaceName parent = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
MappingRule mappingRule = new MappingRule();
string mappingRuleId = "";
// Make the request
MappingRule response = dataMigrationServiceClient.CreateMappingRule(parent, mappingRule, mappingRuleId);

CreateMappingRule(CreateMappingRuleRequest, CallSettings)

public virtual MappingRule CreateMappingRule(CreateMappingRuleRequest request, CallSettings callSettings = null)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
request CreateMappingRuleRequest

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
MappingRule

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
CreateMappingRuleRequest request = new CreateMappingRuleRequest
{
    ParentAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    MappingRuleId = "",
    MappingRule = new MappingRule(),
    RequestId = "",
};
// Make the request
MappingRule response = dataMigrationServiceClient.CreateMappingRule(request);

CreateMappingRule(string, MappingRule, string, CallSettings)

public virtual MappingRule CreateMappingRule(string parent, MappingRule mappingRule, string mappingRuleId, CallSettings callSettings = null)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
parent string

Required. The parent which owns this collection of mapping rules.

mappingRule MappingRule

Required. Represents a mapping rule object.

mappingRuleId string

Required. The ID of the rule to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MappingRule

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
MappingRule mappingRule = new MappingRule();
string mappingRuleId = "";
// Make the request
MappingRule response = dataMigrationServiceClient.CreateMappingRule(parent, mappingRule, mappingRuleId);

CreateMappingRuleAsync(ConversionWorkspaceName, MappingRule, string, CallSettings)

public virtual Task<MappingRule> CreateMappingRuleAsync(ConversionWorkspaceName parent, MappingRule mappingRule, string mappingRuleId, CallSettings callSettings = null)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
parent ConversionWorkspaceName

Required. The parent which owns this collection of mapping rules.

mappingRule MappingRule

Required. Represents a mapping rule object.

mappingRuleId string

Required. The ID of the rule to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionWorkspaceName parent = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
MappingRule mappingRule = new MappingRule();
string mappingRuleId = "";
// Make the request
MappingRule response = await dataMigrationServiceClient.CreateMappingRuleAsync(parent, mappingRule, mappingRuleId);

CreateMappingRuleAsync(ConversionWorkspaceName, MappingRule, string, CancellationToken)

public virtual Task<MappingRule> CreateMappingRuleAsync(ConversionWorkspaceName parent, MappingRule mappingRule, string mappingRuleId, CancellationToken cancellationToken)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
parent ConversionWorkspaceName

Required. The parent which owns this collection of mapping rules.

mappingRule MappingRule

Required. Represents a mapping rule object.

mappingRuleId string

Required. The ID of the rule to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionWorkspaceName parent = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
MappingRule mappingRule = new MappingRule();
string mappingRuleId = "";
// Make the request
MappingRule response = await dataMigrationServiceClient.CreateMappingRuleAsync(parent, mappingRule, mappingRuleId);

CreateMappingRuleAsync(CreateMappingRuleRequest, CallSettings)

public virtual Task<MappingRule> CreateMappingRuleAsync(CreateMappingRuleRequest request, CallSettings callSettings = null)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
request CreateMappingRuleRequest

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
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateMappingRuleRequest request = new CreateMappingRuleRequest
{
    ParentAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    MappingRuleId = "",
    MappingRule = new MappingRule(),
    RequestId = "",
};
// Make the request
MappingRule response = await dataMigrationServiceClient.CreateMappingRuleAsync(request);

CreateMappingRuleAsync(CreateMappingRuleRequest, CancellationToken)

public virtual Task<MappingRule> CreateMappingRuleAsync(CreateMappingRuleRequest request, CancellationToken cancellationToken)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
request CreateMappingRuleRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateMappingRuleRequest request = new CreateMappingRuleRequest
{
    ParentAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    MappingRuleId = "",
    MappingRule = new MappingRule(),
    RequestId = "",
};
// Make the request
MappingRule response = await dataMigrationServiceClient.CreateMappingRuleAsync(request);

CreateMappingRuleAsync(string, MappingRule, string, CallSettings)

public virtual Task<MappingRule> CreateMappingRuleAsync(string parent, MappingRule mappingRule, string mappingRuleId, CallSettings callSettings = null)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
parent string

Required. The parent which owns this collection of mapping rules.

mappingRule MappingRule

Required. Represents a mapping rule object.

mappingRuleId string

Required. The ID of the rule to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
MappingRule mappingRule = new MappingRule();
string mappingRuleId = "";
// Make the request
MappingRule response = await dataMigrationServiceClient.CreateMappingRuleAsync(parent, mappingRule, mappingRuleId);

CreateMappingRuleAsync(string, MappingRule, string, CancellationToken)

public virtual Task<MappingRule> CreateMappingRuleAsync(string parent, MappingRule mappingRule, string mappingRuleId, CancellationToken cancellationToken)

Creates a new mapping rule for a given conversion workspace.

Parameters
Name Description
parent string

Required. The parent which owns this collection of mapping rules.

mappingRule MappingRule

Required. Represents a mapping rule object.

mappingRuleId string

Required. The ID of the rule to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
MappingRule mappingRule = new MappingRule();
string mappingRuleId = "";
// Make the request
MappingRule response = await dataMigrationServiceClient.CreateMappingRuleAsync(parent, mappingRule, mappingRuleId);

CreateMigrationJob(LocationName, MigrationJob, string, CallSettings)

public virtual Operation<MigrationJob, OperationMetadata> CreateMigrationJob(LocationName parent, MigrationJob migrationJob, string migrationJobId, CallSettings callSettings = null)

Creates a new migration job in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of migration jobs.

migrationJob MigrationJob

Required. Represents a migration job object.

migrationJobId string

Required. The ID of the instance to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationMigrationJobOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MigrationJob migrationJob = new MigrationJob();
string migrationJobId = "";
// Make the request
Operation<MigrationJob, OperationMetadata> response = dataMigrationServiceClient.CreateMigrationJob(parent, migrationJob, migrationJobId);

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

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

CreateMigrationJob(CreateMigrationJobRequest, CallSettings)

public virtual Operation<MigrationJob, OperationMetadata> CreateMigrationJob(CreateMigrationJobRequest request, CallSettings callSettings = null)

Creates a new migration job in a given project and location.

Parameters
Name Description
request CreateMigrationJobRequest

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
OperationMigrationJobOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
CreateMigrationJobRequest request = new CreateMigrationJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    MigrationJobId = "",
    MigrationJob = new MigrationJob(),
    RequestId = "",
};
// Make the request
Operation<MigrationJob, OperationMetadata> response = dataMigrationServiceClient.CreateMigrationJob(request);

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

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

CreateMigrationJob(string, MigrationJob, string, CallSettings)

public virtual Operation<MigrationJob, OperationMetadata> CreateMigrationJob(string parent, MigrationJob migrationJob, string migrationJobId, CallSettings callSettings = null)

Creates a new migration job in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of migration jobs.

migrationJob MigrationJob

Required. Represents a migration job object.

migrationJobId string

Required. The ID of the instance to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationMigrationJobOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
MigrationJob migrationJob = new MigrationJob();
string migrationJobId = "";
// Make the request
Operation<MigrationJob, OperationMetadata> response = dataMigrationServiceClient.CreateMigrationJob(parent, migrationJob, migrationJobId);

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

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

CreateMigrationJobAsync(LocationName, MigrationJob, string, CallSettings)

public virtual Task<Operation<MigrationJob, OperationMetadata>> CreateMigrationJobAsync(LocationName parent, MigrationJob migrationJob, string migrationJobId, CallSettings callSettings = null)

Creates a new migration job in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of migration jobs.

migrationJob MigrationJob

Required. Represents a migration job object.

migrationJobId string

Required. The ID of the instance to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationMigrationJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MigrationJob migrationJob = new MigrationJob();
string migrationJobId = "";
// Make the request
Operation<MigrationJob, OperationMetadata> response = await dataMigrationServiceClient.CreateMigrationJobAsync(parent, migrationJob, migrationJobId);

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

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

CreateMigrationJobAsync(LocationName, MigrationJob, string, CancellationToken)

public virtual Task<Operation<MigrationJob, OperationMetadata>> CreateMigrationJobAsync(LocationName parent, MigrationJob migrationJob, string migrationJobId, CancellationToken cancellationToken)

Creates a new migration job in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent which owns this collection of migration jobs.

migrationJob MigrationJob

Required. Represents a migration job object.

migrationJobId string

Required. The ID of the instance to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationMigrationJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MigrationJob migrationJob = new MigrationJob();
string migrationJobId = "";
// Make the request
Operation<MigrationJob, OperationMetadata> response = await dataMigrationServiceClient.CreateMigrationJobAsync(parent, migrationJob, migrationJobId);

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

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

CreateMigrationJobAsync(CreateMigrationJobRequest, CallSettings)

public virtual Task<Operation<MigrationJob, OperationMetadata>> CreateMigrationJobAsync(CreateMigrationJobRequest request, CallSettings callSettings = null)

Creates a new migration job in a given project and location.

Parameters
Name Description
request CreateMigrationJobRequest

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
TaskOperationMigrationJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateMigrationJobRequest request = new CreateMigrationJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    MigrationJobId = "",
    MigrationJob = new MigrationJob(),
    RequestId = "",
};
// Make the request
Operation<MigrationJob, OperationMetadata> response = await dataMigrationServiceClient.CreateMigrationJobAsync(request);

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

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

CreateMigrationJobAsync(CreateMigrationJobRequest, CancellationToken)

public virtual Task<Operation<MigrationJob, OperationMetadata>> CreateMigrationJobAsync(CreateMigrationJobRequest request, CancellationToken cancellationToken)

Creates a new migration job in a given project and location.

Parameters
Name Description
request CreateMigrationJobRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationMigrationJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateMigrationJobRequest request = new CreateMigrationJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    MigrationJobId = "",
    MigrationJob = new MigrationJob(),
    RequestId = "",
};
// Make the request
Operation<MigrationJob, OperationMetadata> response = await dataMigrationServiceClient.CreateMigrationJobAsync(request);

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

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

CreateMigrationJobAsync(string, MigrationJob, string, CallSettings)

public virtual Task<Operation<MigrationJob, OperationMetadata>> CreateMigrationJobAsync(string parent, MigrationJob migrationJob, string migrationJobId, CallSettings callSettings = null)

Creates a new migration job in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of migration jobs.

migrationJob MigrationJob

Required. Represents a migration job object.

migrationJobId string

Required. The ID of the instance to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationMigrationJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
MigrationJob migrationJob = new MigrationJob();
string migrationJobId = "";
// Make the request
Operation<MigrationJob, OperationMetadata> response = await dataMigrationServiceClient.CreateMigrationJobAsync(parent, migrationJob, migrationJobId);

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

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

CreateMigrationJobAsync(string, MigrationJob, string, CancellationToken)

public virtual Task<Operation<MigrationJob, OperationMetadata>> CreateMigrationJobAsync(string parent, MigrationJob migrationJob, string migrationJobId, CancellationToken cancellationToken)

Creates a new migration job in a given project and location.

Parameters
Name Description
parent string

Required. The parent which owns this collection of migration jobs.

migrationJob MigrationJob

Required. Represents a migration job object.

migrationJobId string

Required. The ID of the instance to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationMigrationJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
MigrationJob migrationJob = new MigrationJob();
string migrationJobId = "";
// Make the request
Operation<MigrationJob, OperationMetadata> response = await dataMigrationServiceClient.CreateMigrationJobAsync(parent, migrationJob, migrationJobId);

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

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

CreatePrivateConnection(LocationName, PrivateConnection, string, CallSettings)

public virtual Operation<PrivateConnection, OperationMetadata> CreatePrivateConnection(LocationName parent, PrivateConnection privateConnection, string privateConnectionId, CallSettings callSettings = null)

Creates a new private connection in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent that owns the collection of PrivateConnections.

privateConnection PrivateConnection

Required. The private connection resource to create.

privateConnectionId string

Required. The private connection identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationPrivateConnectionOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = dataMigrationServiceClient.CreatePrivateConnection(parent, privateConnection, privateConnectionId);

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

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

CreatePrivateConnection(CreatePrivateConnectionRequest, CallSettings)

public virtual Operation<PrivateConnection, OperationMetadata> CreatePrivateConnection(CreatePrivateConnectionRequest request, CallSettings callSettings = null)

Creates a new private connection in a given project and location.

Parameters
Name Description
request CreatePrivateConnectionRequest

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
OperationPrivateConnectionOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
CreatePrivateConnectionRequest request = new CreatePrivateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PrivateConnectionId = "",
    PrivateConnection = new PrivateConnection(),
    RequestId = "",
    SkipValidation = false,
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = dataMigrationServiceClient.CreatePrivateConnection(request);

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

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

CreatePrivateConnection(string, PrivateConnection, string, CallSettings)

public virtual Operation<PrivateConnection, OperationMetadata> CreatePrivateConnection(string parent, PrivateConnection privateConnection, string privateConnectionId, CallSettings callSettings = null)

Creates a new private connection in a given project and location.

Parameters
Name Description
parent string

Required. The parent that owns the collection of PrivateConnections.

privateConnection PrivateConnection

Required. The private connection resource to create.

privateConnectionId string

Required. The private connection identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationPrivateConnectionOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = dataMigrationServiceClient.CreatePrivateConnection(parent, privateConnection, privateConnectionId);

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

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

CreatePrivateConnectionAsync(LocationName, PrivateConnection, string, CallSettings)

public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(LocationName parent, PrivateConnection privateConnection, string privateConnectionId, CallSettings callSettings = null)

Creates a new private connection in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent that owns the collection of PrivateConnections.

privateConnection PrivateConnection

Required. The private connection resource to create.

privateConnectionId string

Required. The private connection identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationPrivateConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await dataMigrationServiceClient.CreatePrivateConnectionAsync(parent, privateConnection, privateConnectionId);

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

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

CreatePrivateConnectionAsync(LocationName, PrivateConnection, string, CancellationToken)

public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(LocationName parent, PrivateConnection privateConnection, string privateConnectionId, CancellationToken cancellationToken)

Creates a new private connection in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent that owns the collection of PrivateConnections.

privateConnection PrivateConnection

Required. The private connection resource to create.

privateConnectionId string

Required. The private connection identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationPrivateConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await dataMigrationServiceClient.CreatePrivateConnectionAsync(parent, privateConnection, privateConnectionId);

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

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

CreatePrivateConnectionAsync(CreatePrivateConnectionRequest, CallSettings)

public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(CreatePrivateConnectionRequest request, CallSettings callSettings = null)

Creates a new private connection in a given project and location.

Parameters
Name Description
request CreatePrivateConnectionRequest

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
TaskOperationPrivateConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateConnectionRequest request = new CreatePrivateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PrivateConnectionId = "",
    PrivateConnection = new PrivateConnection(),
    RequestId = "",
    SkipValidation = false,
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await dataMigrationServiceClient.CreatePrivateConnectionAsync(request);

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

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

CreatePrivateConnectionAsync(CreatePrivateConnectionRequest, CancellationToken)

public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(CreatePrivateConnectionRequest request, CancellationToken cancellationToken)

Creates a new private connection in a given project and location.

Parameters
Name Description
request CreatePrivateConnectionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationPrivateConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateConnectionRequest request = new CreatePrivateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PrivateConnectionId = "",
    PrivateConnection = new PrivateConnection(),
    RequestId = "",
    SkipValidation = false,
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await dataMigrationServiceClient.CreatePrivateConnectionAsync(request);

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

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

CreatePrivateConnectionAsync(string, PrivateConnection, string, CallSettings)

public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(string parent, PrivateConnection privateConnection, string privateConnectionId, CallSettings callSettings = null)

Creates a new private connection in a given project and location.

Parameters
Name Description
parent string

Required. The parent that owns the collection of PrivateConnections.

privateConnection PrivateConnection

Required. The private connection resource to create.

privateConnectionId string

Required. The private connection identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationPrivateConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await dataMigrationServiceClient.CreatePrivateConnectionAsync(parent, privateConnection, privateConnectionId);

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

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

CreatePrivateConnectionAsync(string, PrivateConnection, string, CancellationToken)

public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(string parent, PrivateConnection privateConnection, string privateConnectionId, CancellationToken cancellationToken)

Creates a new private connection in a given project and location.

Parameters
Name Description
parent string

Required. The parent that owns the collection of PrivateConnections.

privateConnection PrivateConnection

Required. The private connection resource to create.

privateConnectionId string

Required. The private connection identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationPrivateConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await dataMigrationServiceClient.CreatePrivateConnectionAsync(parent, privateConnection, privateConnectionId);

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

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

DeleteConnectionProfile(ConnectionProfileName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConnectionProfile(ConnectionProfileName name, CallSettings callSettings = null)

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
name ConnectionProfileName

Required. Name of the connection profile resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ConnectionProfileName name = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteConnectionProfile(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 = dataMigrationServiceClient.PollOnceDeleteConnectionProfile(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;
}

DeleteConnectionProfile(DeleteConnectionProfileRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConnectionProfile(DeleteConnectionProfileRequest request, CallSettings callSettings = null)

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
request DeleteConnectionProfileRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
DeleteConnectionProfileRequest request = new DeleteConnectionProfileRequest
{
    ConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteConnectionProfile(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 = dataMigrationServiceClient.PollOnceDeleteConnectionProfile(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;
}

DeleteConnectionProfile(string, CallSettings)

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

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
name string

Required. Name of the connection profile resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connectionProfiles/[CONNECTION_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteConnectionProfile(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 = dataMigrationServiceClient.PollOnceDeleteConnectionProfile(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;
}

DeleteConnectionProfileAsync(ConnectionProfileName, CallSettings)

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

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
name ConnectionProfileName

Required. Name of the connection profile resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConnectionProfileName name = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConnectionProfileAsync(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 dataMigrationServiceClient.PollOnceDeleteConnectionProfileAsync(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;
}

DeleteConnectionProfileAsync(ConnectionProfileName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionProfileAsync(ConnectionProfileName name, CancellationToken cancellationToken)

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
name ConnectionProfileName

Required. Name of the connection profile resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConnectionProfileName name = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConnectionProfileAsync(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 dataMigrationServiceClient.PollOnceDeleteConnectionProfileAsync(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;
}

DeleteConnectionProfileAsync(DeleteConnectionProfileRequest, CallSettings)

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

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
request DeleteConnectionProfileRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteConnectionProfileRequest request = new DeleteConnectionProfileRequest
{
    ConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConnectionProfileAsync(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 dataMigrationServiceClient.PollOnceDeleteConnectionProfileAsync(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;
}

DeleteConnectionProfileAsync(DeleteConnectionProfileRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionProfileAsync(DeleteConnectionProfileRequest request, CancellationToken cancellationToken)

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
request DeleteConnectionProfileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteConnectionProfileRequest request = new DeleteConnectionProfileRequest
{
    ConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConnectionProfileAsync(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 dataMigrationServiceClient.PollOnceDeleteConnectionProfileAsync(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;
}

DeleteConnectionProfileAsync(string, CallSettings)

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

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
name string

Required. Name of the connection profile resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connectionProfiles/[CONNECTION_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConnectionProfileAsync(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 dataMigrationServiceClient.PollOnceDeleteConnectionProfileAsync(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;
}

DeleteConnectionProfileAsync(string, CancellationToken)

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

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

Parameters
Name Description
name string

Required. Name of the connection profile resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connectionProfiles/[CONNECTION_PROFILE]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConnectionProfileAsync(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 dataMigrationServiceClient.PollOnceDeleteConnectionProfileAsync(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;
}

DeleteConversionWorkspace(ConversionWorkspaceName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConversionWorkspace(ConversionWorkspaceName name, CallSettings callSettings = null)

Deletes a single conversion workspace.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the conversion workspace resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteConversionWorkspace(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 = dataMigrationServiceClient.PollOnceDeleteConversionWorkspace(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;
}

DeleteConversionWorkspace(DeleteConversionWorkspaceRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConversionWorkspace(DeleteConversionWorkspaceRequest request, CallSettings callSettings = null)

Deletes a single conversion workspace.

Parameters
Name Description
request DeleteConversionWorkspaceRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
DeleteConversionWorkspaceRequest request = new DeleteConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteConversionWorkspace(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 = dataMigrationServiceClient.PollOnceDeleteConversionWorkspace(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;
}

DeleteConversionWorkspace(string, CallSettings)

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

Deletes a single conversion workspace.

Parameters
Name Description
name string

Required. Name of the conversion workspace resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteConversionWorkspace(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 = dataMigrationServiceClient.PollOnceDeleteConversionWorkspace(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;
}

DeleteConversionWorkspaceAsync(ConversionWorkspaceName, CallSettings)

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

Deletes a single conversion workspace.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the conversion workspace resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConversionWorkspaceAsync(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 dataMigrationServiceClient.PollOnceDeleteConversionWorkspaceAsync(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;
}

DeleteConversionWorkspaceAsync(ConversionWorkspaceName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConversionWorkspaceAsync(ConversionWorkspaceName name, CancellationToken cancellationToken)

Deletes a single conversion workspace.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the conversion workspace resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConversionWorkspaceAsync(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 dataMigrationServiceClient.PollOnceDeleteConversionWorkspaceAsync(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;
}

DeleteConversionWorkspaceAsync(DeleteConversionWorkspaceRequest, CallSettings)

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

Deletes a single conversion workspace.

Parameters
Name Description
request DeleteConversionWorkspaceRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteConversionWorkspaceRequest request = new DeleteConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConversionWorkspaceAsync(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 dataMigrationServiceClient.PollOnceDeleteConversionWorkspaceAsync(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;
}

DeleteConversionWorkspaceAsync(DeleteConversionWorkspaceRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConversionWorkspaceAsync(DeleteConversionWorkspaceRequest request, CancellationToken cancellationToken)

Deletes a single conversion workspace.

Parameters
Name Description
request DeleteConversionWorkspaceRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteConversionWorkspaceRequest request = new DeleteConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConversionWorkspaceAsync(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 dataMigrationServiceClient.PollOnceDeleteConversionWorkspaceAsync(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;
}

DeleteConversionWorkspaceAsync(string, CallSettings)

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

Deletes a single conversion workspace.

Parameters
Name Description
name string

Required. Name of the conversion workspace resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConversionWorkspaceAsync(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 dataMigrationServiceClient.PollOnceDeleteConversionWorkspaceAsync(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;
}

DeleteConversionWorkspaceAsync(string, CancellationToken)

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

Deletes a single conversion workspace.

Parameters
Name Description
name string

Required. Name of the conversion workspace resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteConversionWorkspaceAsync(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 dataMigrationServiceClient.PollOnceDeleteConversionWorkspaceAsync(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;
}

DeleteMappingRule(ConversionWorkspaceName, CallSettings)

public virtual void DeleteMappingRule(ConversionWorkspaceName name, CallSettings callSettings = null)

Deletes a single mapping rule.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the mapping rule resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
dataMigrationServiceClient.DeleteMappingRule(name);

DeleteMappingRule(DeleteMappingRuleRequest, CallSettings)

public virtual void DeleteMappingRule(DeleteMappingRuleRequest request, CallSettings callSettings = null)

Deletes a single mapping rule.

Parameters
Name Description
request DeleteMappingRuleRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
DeleteMappingRuleRequest request = new DeleteMappingRuleRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
};
// Make the request
dataMigrationServiceClient.DeleteMappingRule(request);

DeleteMappingRule(string, CallSettings)

public virtual void DeleteMappingRule(string name, CallSettings callSettings = null)

Deletes a single mapping rule.

Parameters
Name Description
name string

Required. Name of the mapping rule resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
dataMigrationServiceClient.DeleteMappingRule(name);

DeleteMappingRuleAsync(ConversionWorkspaceName, CallSettings)

public virtual Task DeleteMappingRuleAsync(ConversionWorkspaceName name, CallSettings callSettings = null)

Deletes a single mapping rule.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the mapping rule resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
await dataMigrationServiceClient.DeleteMappingRuleAsync(name);

DeleteMappingRuleAsync(ConversionWorkspaceName, CancellationToken)

public virtual Task DeleteMappingRuleAsync(ConversionWorkspaceName name, CancellationToken cancellationToken)

Deletes a single mapping rule.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the mapping rule resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
await dataMigrationServiceClient.DeleteMappingRuleAsync(name);

DeleteMappingRuleAsync(DeleteMappingRuleRequest, CallSettings)

public virtual Task DeleteMappingRuleAsync(DeleteMappingRuleRequest request, CallSettings callSettings = null)

Deletes a single mapping rule.

Parameters
Name Description
request DeleteMappingRuleRequest

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

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteMappingRuleRequest request = new DeleteMappingRuleRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
};
// Make the request
await dataMigrationServiceClient.DeleteMappingRuleAsync(request);

DeleteMappingRuleAsync(DeleteMappingRuleRequest, CancellationToken)

public virtual Task DeleteMappingRuleAsync(DeleteMappingRuleRequest request, CancellationToken cancellationToken)

Deletes a single mapping rule.

Parameters
Name Description
request DeleteMappingRuleRequest

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

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteMappingRuleRequest request = new DeleteMappingRuleRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
};
// Make the request
await dataMigrationServiceClient.DeleteMappingRuleAsync(request);

DeleteMappingRuleAsync(string, CallSettings)

public virtual Task DeleteMappingRuleAsync(string name, CallSettings callSettings = null)

Deletes a single mapping rule.

Parameters
Name Description
name string

Required. Name of the mapping rule resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
await dataMigrationServiceClient.DeleteMappingRuleAsync(name);

DeleteMappingRuleAsync(string, CancellationToken)

public virtual Task DeleteMappingRuleAsync(string name, CancellationToken cancellationToken)

Deletes a single mapping rule.

Parameters
Name Description
name string

Required. Name of the mapping rule resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
await dataMigrationServiceClient.DeleteMappingRuleAsync(name);

DeleteMigrationJob(DeleteMigrationJobRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteMigrationJob(DeleteMigrationJobRequest request, CallSettings callSettings = null)

Deletes a single migration job.

Parameters
Name Description
request DeleteMigrationJobRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
DeleteMigrationJobRequest request = new DeleteMigrationJobRequest
{
    MigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteMigrationJob(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 = dataMigrationServiceClient.PollOnceDeleteMigrationJob(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;
}

DeleteMigrationJob(MigrationJobName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteMigrationJob(MigrationJobName name, CallSettings callSettings = null)

Deletes a single migration job.

Parameters
Name Description
name MigrationJobName

Required. Name of the migration job resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
MigrationJobName name = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteMigrationJob(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 = dataMigrationServiceClient.PollOnceDeleteMigrationJob(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;
}

DeleteMigrationJob(string, CallSettings)

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

Deletes a single migration job.

Parameters
Name Description
name string

Required. Name of the migration job resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/migrationJobs/[MIGRATION_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeleteMigrationJob(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 = dataMigrationServiceClient.PollOnceDeleteMigrationJob(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;
}

DeleteMigrationJobAsync(DeleteMigrationJobRequest, CallSettings)

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

Deletes a single migration job.

Parameters
Name Description
request DeleteMigrationJobRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteMigrationJobRequest request = new DeleteMigrationJobRequest
{
    MigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteMigrationJobAsync(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 dataMigrationServiceClient.PollOnceDeleteMigrationJobAsync(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;
}

DeleteMigrationJobAsync(DeleteMigrationJobRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigrationJobAsync(DeleteMigrationJobRequest request, CancellationToken cancellationToken)

Deletes a single migration job.

Parameters
Name Description
request DeleteMigrationJobRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteMigrationJobRequest request = new DeleteMigrationJobRequest
{
    MigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteMigrationJobAsync(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 dataMigrationServiceClient.PollOnceDeleteMigrationJobAsync(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;
}

DeleteMigrationJobAsync(MigrationJobName, CallSettings)

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

Deletes a single migration job.

Parameters
Name Description
name MigrationJobName

Required. Name of the migration job resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
MigrationJobName name = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteMigrationJobAsync(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 dataMigrationServiceClient.PollOnceDeleteMigrationJobAsync(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;
}

DeleteMigrationJobAsync(MigrationJobName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMigrationJobAsync(MigrationJobName name, CancellationToken cancellationToken)

Deletes a single migration job.

Parameters
Name Description
name MigrationJobName

Required. Name of the migration job resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
MigrationJobName name = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteMigrationJobAsync(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 dataMigrationServiceClient.PollOnceDeleteMigrationJobAsync(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;
}

DeleteMigrationJobAsync(string, CallSettings)

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

Deletes a single migration job.

Parameters
Name Description
name string

Required. Name of the migration job resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/migrationJobs/[MIGRATION_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteMigrationJobAsync(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 dataMigrationServiceClient.PollOnceDeleteMigrationJobAsync(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;
}

DeleteMigrationJobAsync(string, CancellationToken)

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

Deletes a single migration job.

Parameters
Name Description
name string

Required. Name of the migration job resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/migrationJobs/[MIGRATION_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeleteMigrationJobAsync(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 dataMigrationServiceClient.PollOnceDeleteMigrationJobAsync(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;
}

DeletePrivateConnection(DeletePrivateConnectionRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeletePrivateConnection(DeletePrivateConnectionRequest request, CallSettings callSettings = null)

Deletes a single Database Migration Service private connection.

Parameters
Name Description
request DeletePrivateConnectionRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
DeletePrivateConnectionRequest request = new DeletePrivateConnectionRequest
{
    PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeletePrivateConnection(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 = dataMigrationServiceClient.PollOnceDeletePrivateConnection(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;
}

DeletePrivateConnection(PrivateConnectionName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeletePrivateConnection(PrivateConnectionName name, CallSettings callSettings = null)

Deletes a single Database Migration Service private connection.

Parameters
Name Description
name PrivateConnectionName

Required. The name of the private connection to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeletePrivateConnection(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 = dataMigrationServiceClient.PollOnceDeletePrivateConnection(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;
}

DeletePrivateConnection(string, CallSettings)

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

Deletes a single Database Migration Service private connection.

Parameters
Name Description
name string

Required. The name of the private connection to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = dataMigrationServiceClient.DeletePrivateConnection(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 = dataMigrationServiceClient.PollOnceDeletePrivateConnection(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;
}

DeletePrivateConnectionAsync(DeletePrivateConnectionRequest, CallSettings)

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

Deletes a single Database Migration Service private connection.

Parameters
Name Description
request DeletePrivateConnectionRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateConnectionRequest request = new DeletePrivateConnectionRequest
{
    PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeletePrivateConnectionAsync(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 dataMigrationServiceClient.PollOnceDeletePrivateConnectionAsync(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;
}

DeletePrivateConnectionAsync(DeletePrivateConnectionRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeletePrivateConnectionAsync(DeletePrivateConnectionRequest request, CancellationToken cancellationToken)

Deletes a single Database Migration Service private connection.

Parameters
Name Description
request DeletePrivateConnectionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateConnectionRequest request = new DeletePrivateConnectionRequest
{
    PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeletePrivateConnectionAsync(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 dataMigrationServiceClient.PollOnceDeletePrivateConnectionAsync(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;
}

DeletePrivateConnectionAsync(PrivateConnectionName, CallSettings)

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

Deletes a single Database Migration Service private connection.

Parameters
Name Description
name PrivateConnectionName

Required. The name of the private connection to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeletePrivateConnectionAsync(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 dataMigrationServiceClient.PollOnceDeletePrivateConnectionAsync(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;
}

DeletePrivateConnectionAsync(PrivateConnectionName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeletePrivateConnectionAsync(PrivateConnectionName name, CancellationToken cancellationToken)

Deletes a single Database Migration Service private connection.

Parameters
Name Description
name PrivateConnectionName

Required. The name of the private connection to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeletePrivateConnectionAsync(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 dataMigrationServiceClient.PollOnceDeletePrivateConnectionAsync(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;
}

DeletePrivateConnectionAsync(string, CallSettings)

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

Deletes a single Database Migration Service private connection.

Parameters
Name Description
name string

Required. The name of the private connection to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeletePrivateConnectionAsync(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 dataMigrationServiceClient.PollOnceDeletePrivateConnectionAsync(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;
}

DeletePrivateConnectionAsync(string, CancellationToken)

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

Deletes a single Database Migration Service private connection.

Parameters
Name Description
name string

Required. The name of the private connection to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataMigrationServiceClient.DeletePrivateConnectionAsync(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 dataMigrationServiceClient.PollOnceDeletePrivateConnectionAsync(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;
}

DescribeConversionWorkspaceRevisions(DescribeConversionWorkspaceRevisionsRequest, CallSettings)

public virtual DescribeConversionWorkspaceRevisionsResponse DescribeConversionWorkspaceRevisions(DescribeConversionWorkspaceRevisionsRequest request, CallSettings callSettings = null)

Retrieves a list of committed revisions of a specific conversion workspace.

Parameters
Name Description
request DescribeConversionWorkspaceRevisionsRequest

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
DescribeConversionWorkspaceRevisionsResponse

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
DescribeConversionWorkspaceRevisionsRequest request = new DescribeConversionWorkspaceRevisionsRequest
{
    ConversionWorkspaceAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    CommitId = "",
};
// Make the request
DescribeConversionWorkspaceRevisionsResponse response = dataMigrationServiceClient.DescribeConversionWorkspaceRevisions(request);

DescribeConversionWorkspaceRevisionsAsync(DescribeConversionWorkspaceRevisionsRequest, CallSettings)

public virtual Task<DescribeConversionWorkspaceRevisionsResponse> DescribeConversionWorkspaceRevisionsAsync(DescribeConversionWorkspaceRevisionsRequest request, CallSettings callSettings = null)

Retrieves a list of committed revisions of a specific conversion workspace.

Parameters
Name Description
request DescribeConversionWorkspaceRevisionsRequest

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
TaskDescribeConversionWorkspaceRevisionsResponse

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DescribeConversionWorkspaceRevisionsRequest request = new DescribeConversionWorkspaceRevisionsRequest
{
    ConversionWorkspaceAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    CommitId = "",
};
// Make the request
DescribeConversionWorkspaceRevisionsResponse response = await dataMigrationServiceClient.DescribeConversionWorkspaceRevisionsAsync(request);

DescribeConversionWorkspaceRevisionsAsync(DescribeConversionWorkspaceRevisionsRequest, CancellationToken)

public virtual Task<DescribeConversionWorkspaceRevisionsResponse> DescribeConversionWorkspaceRevisionsAsync(DescribeConversionWorkspaceRevisionsRequest request, CancellationToken cancellationToken)

Retrieves a list of committed revisions of a specific conversion workspace.

Parameters
Name Description
request DescribeConversionWorkspaceRevisionsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDescribeConversionWorkspaceRevisionsResponse

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DescribeConversionWorkspaceRevisionsRequest request = new DescribeConversionWorkspaceRevisionsRequest
{
    ConversionWorkspaceAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    CommitId = "",
};
// Make the request
DescribeConversionWorkspaceRevisionsResponse response = await dataMigrationServiceClient.DescribeConversionWorkspaceRevisionsAsync(request);

DescribeDatabaseEntities(DescribeDatabaseEntitiesRequest, CallSettings)

public virtual PagedEnumerable<DescribeDatabaseEntitiesResponse, DatabaseEntity> DescribeDatabaseEntities(DescribeDatabaseEntitiesRequest request, CallSettings callSettings = null)

Describes the database entities tree for a specific conversion workspace and a specific tree type.

Database entities are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are simple data objects describing the structure of the client database.

Parameters
Name Description
request DescribeDatabaseEntitiesRequest

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
PagedEnumerableDescribeDatabaseEntitiesResponseDatabaseEntity

A pageable sequence of DatabaseEntity resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
DescribeDatabaseEntitiesRequest request = new DescribeDatabaseEntitiesRequest
{
    ConversionWorkspaceAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    Tree = DescribeDatabaseEntitiesRequest.Types.DBTreeType.Unspecified,
    Uncommitted = false,
    CommitId = "",
    Filter = "",
    View = DatabaseEntityView.Unspecified,
};
// Make the request
PagedEnumerable<DescribeDatabaseEntitiesResponse, DatabaseEntity> response = dataMigrationServiceClient.DescribeDatabaseEntities(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (DatabaseEntity 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 (DescribeDatabaseEntitiesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatabaseEntity 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<DatabaseEntity> 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 (DatabaseEntity 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;

DescribeDatabaseEntitiesAsync(DescribeDatabaseEntitiesRequest, CallSettings)

public virtual PagedAsyncEnumerable<DescribeDatabaseEntitiesResponse, DatabaseEntity> DescribeDatabaseEntitiesAsync(DescribeDatabaseEntitiesRequest request, CallSettings callSettings = null)

Describes the database entities tree for a specific conversion workspace and a specific tree type.

Database entities are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are simple data objects describing the structure of the client database.

Parameters
Name Description
request DescribeDatabaseEntitiesRequest

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
PagedAsyncEnumerableDescribeDatabaseEntitiesResponseDatabaseEntity

A pageable asynchronous sequence of DatabaseEntity resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DescribeDatabaseEntitiesRequest request = new DescribeDatabaseEntitiesRequest
{
    ConversionWorkspaceAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    Tree = DescribeDatabaseEntitiesRequest.Types.DBTreeType.Unspecified,
    Uncommitted = false,
    CommitId = "",
    Filter = "",
    View = DatabaseEntityView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<DescribeDatabaseEntitiesResponse, DatabaseEntity> response = dataMigrationServiceClient.DescribeDatabaseEntitiesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatabaseEntity 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((DescribeDatabaseEntitiesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatabaseEntity 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<DatabaseEntity> 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 (DatabaseEntity 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;

FetchStaticIps(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<FetchStaticIpsResponse, string> FetchStaticIps(LocationName name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

Parameters
Name Description
name LocationName

Required. The resource name for the location for which static IPs should be returned. Must be in the format projects/*/locations/*.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchStaticIpsResponsestring

A pageable sequence of string resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName name = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<FetchStaticIpsResponse, string> response = dataMigrationServiceClient.FetchStaticIps(name);

// Iterate over all response items, lazily performing RPCs as required
foreach (string 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 (FetchStaticIpsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string 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<string> 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 (string 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;

FetchStaticIps(FetchStaticIpsRequest, CallSettings)

public virtual PagedEnumerable<FetchStaticIpsResponse, string> FetchStaticIps(FetchStaticIpsRequest request, CallSettings callSettings = null)

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

Parameters
Name Description
request FetchStaticIpsRequest

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
PagedEnumerableFetchStaticIpsResponsestring

A pageable sequence of string resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
FetchStaticIpsRequest request = new FetchStaticIpsRequest
{
    LocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<FetchStaticIpsResponse, string> response = dataMigrationServiceClient.FetchStaticIps(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (string 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 (FetchStaticIpsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string 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<string> 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 (string 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;

FetchStaticIps(string, string, int?, CallSettings)

public virtual PagedEnumerable<FetchStaticIpsResponse, string> FetchStaticIps(string name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

Parameters
Name Description
name string

Required. The resource name for the location for which static IPs should be returned. Must be in the format projects/*/locations/*.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchStaticIpsResponsestring

A pageable sequence of string resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<FetchStaticIpsResponse, string> response = dataMigrationServiceClient.FetchStaticIps(name);

// Iterate over all response items, lazily performing RPCs as required
foreach (string 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 (FetchStaticIpsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string 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<string> 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 (string 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;

FetchStaticIpsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchStaticIpsResponse, string> FetchStaticIpsAsync(LocationName name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

Parameters
Name Description
name LocationName

Required. The resource name for the location for which static IPs should be returned. Must be in the format projects/*/locations/*.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchStaticIpsResponsestring

A pageable asynchronous sequence of string resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName name = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<FetchStaticIpsResponse, string> response = dataMigrationServiceClient.FetchStaticIpsAsync(name);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string 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((FetchStaticIpsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string 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<string> 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 (string 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;

FetchStaticIpsAsync(FetchStaticIpsRequest, CallSettings)

public virtual PagedAsyncEnumerable<FetchStaticIpsResponse, string> FetchStaticIpsAsync(FetchStaticIpsRequest request, CallSettings callSettings = null)

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

Parameters
Name Description
request FetchStaticIpsRequest

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
PagedAsyncEnumerableFetchStaticIpsResponsestring

A pageable asynchronous sequence of string resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
FetchStaticIpsRequest request = new FetchStaticIpsRequest
{
    LocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<FetchStaticIpsResponse, string> response = dataMigrationServiceClient.FetchStaticIpsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string 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((FetchStaticIpsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string 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<string> 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 (string 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;

FetchStaticIpsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchStaticIpsResponse, string> FetchStaticIpsAsync(string name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

Parameters
Name Description
name string

Required. The resource name for the location for which static IPs should be returned. Must be in the format projects/*/locations/*.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchStaticIpsResponsestring

A pageable asynchronous sequence of string resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<FetchStaticIpsResponse, string> response = dataMigrationServiceClient.FetchStaticIpsAsync(name);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string 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((FetchStaticIpsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string 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<string> 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 (string 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;

GenerateSshScript(GenerateSshScriptRequest, CallSettings)

public virtual SshScript GenerateSshScript(GenerateSshScriptRequest request, CallSettings callSettings = null)

Generate a SSH configuration script to configure the reverse SSH connectivity.

Parameters
Name Description
request GenerateSshScriptRequest

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
SshScript

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
GenerateSshScriptRequest request = new GenerateSshScriptRequest
{
    MigrationJobAsMigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    Vm = "",
    VmPort = 0,
    VmCreationConfig = new VmCreationConfig(),
};
// Make the request
SshScript response = dataMigrationServiceClient.GenerateSshScript(request);

GenerateSshScriptAsync(GenerateSshScriptRequest, CallSettings)

public virtual Task<SshScript> GenerateSshScriptAsync(GenerateSshScriptRequest request, CallSettings callSettings = null)

Generate a SSH configuration script to configure the reverse SSH connectivity.

Parameters
Name Description
request GenerateSshScriptRequest

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
TaskSshScript

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GenerateSshScriptRequest request = new GenerateSshScriptRequest
{
    MigrationJobAsMigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    Vm = "",
    VmPort = 0,
    VmCreationConfig = new VmCreationConfig(),
};
// Make the request
SshScript response = await dataMigrationServiceClient.GenerateSshScriptAsync(request);

GenerateSshScriptAsync(GenerateSshScriptRequest, CancellationToken)

public virtual Task<SshScript> GenerateSshScriptAsync(GenerateSshScriptRequest request, CancellationToken cancellationToken)

Generate a SSH configuration script to configure the reverse SSH connectivity.

Parameters
Name Description
request GenerateSshScriptRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSshScript

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GenerateSshScriptRequest request = new GenerateSshScriptRequest
{
    MigrationJobAsMigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    Vm = "",
    VmPort = 0,
    VmCreationConfig = new VmCreationConfig(),
};
// Make the request
SshScript response = await dataMigrationServiceClient.GenerateSshScriptAsync(request);

GenerateTcpProxyScript(GenerateTcpProxyScriptRequest, CallSettings)

public virtual TcpProxyScript GenerateTcpProxyScript(GenerateTcpProxyScriptRequest request, CallSettings callSettings = null)

Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.

Parameters
Name Description
request GenerateTcpProxyScriptRequest

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
TcpProxyScript

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
GenerateTcpProxyScriptRequest request = new GenerateTcpProxyScriptRequest
{
    MigrationJobAsMigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    VmName = "",
    VmMachineType = "",
    VmZone = "",
    VmSubnet = "",
};
// Make the request
TcpProxyScript response = dataMigrationServiceClient.GenerateTcpProxyScript(request);

GenerateTcpProxyScriptAsync(GenerateTcpProxyScriptRequest, CallSettings)

public virtual Task<TcpProxyScript> GenerateTcpProxyScriptAsync(GenerateTcpProxyScriptRequest request, CallSettings callSettings = null)

Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.

Parameters
Name Description
request GenerateTcpProxyScriptRequest

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
TaskTcpProxyScript

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GenerateTcpProxyScriptRequest request = new GenerateTcpProxyScriptRequest
{
    MigrationJobAsMigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    VmName = "",
    VmMachineType = "",
    VmZone = "",
    VmSubnet = "",
};
// Make the request
TcpProxyScript response = await dataMigrationServiceClient.GenerateTcpProxyScriptAsync(request);

GenerateTcpProxyScriptAsync(GenerateTcpProxyScriptRequest, CancellationToken)

public virtual Task<TcpProxyScript> GenerateTcpProxyScriptAsync(GenerateTcpProxyScriptRequest request, CancellationToken cancellationToken)

Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.

Parameters
Name Description
request GenerateTcpProxyScriptRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTcpProxyScript

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GenerateTcpProxyScriptRequest request = new GenerateTcpProxyScriptRequest
{
    MigrationJobAsMigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
    VmName = "",
    VmMachineType = "",
    VmZone = "",
    VmSubnet = "",
};
// Make the request
TcpProxyScript response = await dataMigrationServiceClient.GenerateTcpProxyScriptAsync(request);

GetConnectionProfile(ConnectionProfileName, CallSettings)

public virtual ConnectionProfile GetConnectionProfile(ConnectionProfileName name, CallSettings callSettings = null)

Gets details of a single connection profile.

Parameters
Name Description
name ConnectionProfileName

Required. Name of the connection profile resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ConnectionProfile

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ConnectionProfileName name = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
// Make the request
ConnectionProfile response = dataMigrationServiceClient.GetConnectionProfile(name);

GetConnectionProfile(GetConnectionProfileRequest, CallSettings)

public virtual ConnectionProfile GetConnectionProfile(GetConnectionProfileRequest request, CallSettings callSettings = null)

Gets details of a single connection profile.

Parameters
Name Description
request GetConnectionProfileRequest

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
ConnectionProfile

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
GetConnectionProfileRequest request = new GetConnectionProfileRequest
{
    ConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
};
// Make the request
ConnectionProfile response = dataMigrationServiceClient.GetConnectionProfile(request);

GetConnectionProfile(string, CallSettings)

public virtual ConnectionProfile GetConnectionProfile(string name, CallSettings callSettings = null)

Gets details of a single connection profile.

Parameters
Name Description
name string

Required. Name of the connection profile resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ConnectionProfile

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connectionProfiles/[CONNECTION_PROFILE]";
// Make the request
ConnectionProfile response = dataMigrationServiceClient.GetConnectionProfile(name);

GetConnectionProfileAsync(ConnectionProfileName, CallSettings)

public virtual Task<ConnectionProfile> GetConnectionProfileAsync(ConnectionProfileName name, CallSettings callSettings = null)

Gets details of a single connection profile.

Parameters
Name Description
name ConnectionProfileName

Required. Name of the connection profile resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnectionProfile

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConnectionProfileName name = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
// Make the request
ConnectionProfile response = await dataMigrationServiceClient.GetConnectionProfileAsync(name);

GetConnectionProfileAsync(ConnectionProfileName, CancellationToken)

public virtual Task<ConnectionProfile> GetConnectionProfileAsync(ConnectionProfileName name, CancellationToken cancellationToken)

Gets details of a single connection profile.

Parameters
Name Description
name ConnectionProfileName

Required. Name of the connection profile resource to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnectionProfile

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConnectionProfileName name = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
// Make the request
ConnectionProfile response = await dataMigrationServiceClient.GetConnectionProfileAsync(name);

GetConnectionProfileAsync(GetConnectionProfileRequest, CallSettings)

public virtual Task<ConnectionProfile> GetConnectionProfileAsync(GetConnectionProfileRequest request, CallSettings callSettings = null)

Gets details of a single connection profile.

Parameters
Name Description
request GetConnectionProfileRequest

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
TaskConnectionProfile

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetConnectionProfileRequest request = new GetConnectionProfileRequest
{
    ConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
};
// Make the request
ConnectionProfile response = await dataMigrationServiceClient.GetConnectionProfileAsync(request);

GetConnectionProfileAsync(GetConnectionProfileRequest, CancellationToken)

public virtual Task<ConnectionProfile> GetConnectionProfileAsync(GetConnectionProfileRequest request, CancellationToken cancellationToken)

Gets details of a single connection profile.

Parameters
Name Description
request GetConnectionProfileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnectionProfile

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetConnectionProfileRequest request = new GetConnectionProfileRequest
{
    ConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
};
// Make the request
ConnectionProfile response = await dataMigrationServiceClient.GetConnectionProfileAsync(request);

GetConnectionProfileAsync(string, CallSettings)

public virtual Task<ConnectionProfile> GetConnectionProfileAsync(string name, CallSettings callSettings = null)

Gets details of a single connection profile.

Parameters
Name Description
name string

Required. Name of the connection profile resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnectionProfile

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connectionProfiles/[CONNECTION_PROFILE]";
// Make the request
ConnectionProfile response = await dataMigrationServiceClient.GetConnectionProfileAsync(name);

GetConnectionProfileAsync(string, CancellationToken)

public virtual Task<ConnectionProfile> GetConnectionProfileAsync(string name, CancellationToken cancellationToken)

Gets details of a single connection profile.

Parameters
Name Description
name string

Required. Name of the connection profile resource to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnectionProfile

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connectionProfiles/[CONNECTION_PROFILE]";
// Make the request
ConnectionProfile response = await dataMigrationServiceClient.GetConnectionProfileAsync(name);

GetConversionWorkspace(ConversionWorkspaceName, CallSettings)

public virtual ConversionWorkspace GetConversionWorkspace(ConversionWorkspaceName name, CallSettings callSettings = null)

Gets details of a single conversion workspace.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the conversion workspace resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ConversionWorkspace

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
ConversionWorkspace response = dataMigrationServiceClient.GetConversionWorkspace(name);

GetConversionWorkspace(GetConversionWorkspaceRequest, CallSettings)

public virtual ConversionWorkspace GetConversionWorkspace(GetConversionWorkspaceRequest request, CallSettings callSettings = null)

Gets details of a single conversion workspace.

Parameters
Name Description
request GetConversionWorkspaceRequest

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
ConversionWorkspace

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
GetConversionWorkspaceRequest request = new GetConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
};
// Make the request
ConversionWorkspace response = dataMigrationServiceClient.GetConversionWorkspace(request);

GetConversionWorkspace(string, CallSettings)

public virtual ConversionWorkspace GetConversionWorkspace(string name, CallSettings callSettings = null)

Gets details of a single conversion workspace.

Parameters
Name Description
name string

Required. Name of the conversion workspace resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ConversionWorkspace

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
ConversionWorkspace response = dataMigrationServiceClient.GetConversionWorkspace(name);

GetConversionWorkspaceAsync(ConversionWorkspaceName, CallSettings)

public virtual Task<ConversionWorkspace> GetConversionWorkspaceAsync(ConversionWorkspaceName name, CallSettings callSettings = null)

Gets details of a single conversion workspace.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the conversion workspace resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversionWorkspace

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
ConversionWorkspace response = await dataMigrationServiceClient.GetConversionWorkspaceAsync(name);

GetConversionWorkspaceAsync(ConversionWorkspaceName, CancellationToken)

public virtual Task<ConversionWorkspace> GetConversionWorkspaceAsync(ConversionWorkspaceName name, CancellationToken cancellationToken)

Gets details of a single conversion workspace.

Parameters
Name Description
name ConversionWorkspaceName

Required. Name of the conversion workspace resource to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversionWorkspace

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionWorkspaceName name = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
// Make the request
ConversionWorkspace response = await dataMigrationServiceClient.GetConversionWorkspaceAsync(name);

GetConversionWorkspaceAsync(GetConversionWorkspaceRequest, CallSettings)

public virtual Task<ConversionWorkspace> GetConversionWorkspaceAsync(GetConversionWorkspaceRequest request, CallSettings callSettings = null)

Gets details of a single conversion workspace.

Parameters
Name Description
request GetConversionWorkspaceRequest

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
TaskConversionWorkspace

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetConversionWorkspaceRequest request = new GetConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
};
// Make the request
ConversionWorkspace response = await dataMigrationServiceClient.GetConversionWorkspaceAsync(request);

GetConversionWorkspaceAsync(GetConversionWorkspaceRequest, CancellationToken)

public virtual Task<ConversionWorkspace> GetConversionWorkspaceAsync(GetConversionWorkspaceRequest request, CancellationToken cancellationToken)

Gets details of a single conversion workspace.

Parameters
Name Description
request GetConversionWorkspaceRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversionWorkspace

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetConversionWorkspaceRequest request = new GetConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
};
// Make the request
ConversionWorkspace response = await dataMigrationServiceClient.GetConversionWorkspaceAsync(request);

GetConversionWorkspaceAsync(string, CallSettings)

public virtual Task<ConversionWorkspace> GetConversionWorkspaceAsync(string name, CallSettings callSettings = null)

Gets details of a single conversion workspace.

Parameters
Name Description
name string

Required. Name of the conversion workspace resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversionWorkspace

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
ConversionWorkspace response = await dataMigrationServiceClient.GetConversionWorkspaceAsync(name);

GetConversionWorkspaceAsync(string, CancellationToken)

public virtual Task<ConversionWorkspace> GetConversionWorkspaceAsync(string name, CancellationToken cancellationToken)

Gets details of a single conversion workspace.

Parameters
Name Description
name string

Required. Name of the conversion workspace resource to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversionWorkspace

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]";
// Make the request
ConversionWorkspace response = await dataMigrationServiceClient.GetConversionWorkspaceAsync(name);

GetMappingRule(GetMappingRuleRequest, CallSettings)

public virtual MappingRule GetMappingRule(GetMappingRuleRequest request, CallSettings callSettings = null)

Gets the details of a mapping rule.

Parameters
Name Description
request GetMappingRuleRequest

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
MappingRule

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
GetMappingRuleRequest request = new GetMappingRuleRequest
{
    MappingRuleName = MappingRuleName.FromProjectLocationConversionWorkspaceMappingRule("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]"),
};
// Make the request
MappingRule response = dataMigrationServiceClient.GetMappingRule(request);

GetMappingRule(MappingRuleName, CallSettings)

public virtual MappingRule GetMappingRule(MappingRuleName name, CallSettings callSettings = null)

Gets the details of a mapping rule.

Parameters
Name Description
name MappingRuleName

Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123

In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MappingRule

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
MappingRuleName name = MappingRuleName.FromProjectLocationConversionWorkspaceMappingRule("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]");
// Make the request
MappingRule response = dataMigrationServiceClient.GetMappingRule(name);

GetMappingRule(string, CallSettings)

public virtual MappingRule GetMappingRule(string name, CallSettings callSettings = null)

Gets the details of a mapping rule.

Parameters
Name Description
name string

Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123

In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MappingRule

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]/mappingRules/[MAPPING_RULE]";
// Make the request
MappingRule response = dataMigrationServiceClient.GetMappingRule(name);

GetMappingRuleAsync(GetMappingRuleRequest, CallSettings)

public virtual Task<MappingRule> GetMappingRuleAsync(GetMappingRuleRequest request, CallSettings callSettings = null)

Gets the details of a mapping rule.

Parameters
Name Description
request GetMappingRuleRequest

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
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetMappingRuleRequest request = new GetMappingRuleRequest
{
    MappingRuleName = MappingRuleName.FromProjectLocationConversionWorkspaceMappingRule("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]"),
};
// Make the request
MappingRule response = await dataMigrationServiceClient.GetMappingRuleAsync(request);

GetMappingRuleAsync(GetMappingRuleRequest, CancellationToken)

public virtual Task<MappingRule> GetMappingRuleAsync(GetMappingRuleRequest request, CancellationToken cancellationToken)

Gets the details of a mapping rule.

Parameters
Name Description
request GetMappingRuleRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetMappingRuleRequest request = new GetMappingRuleRequest
{
    MappingRuleName = MappingRuleName.FromProjectLocationConversionWorkspaceMappingRule("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]"),
};
// Make the request
MappingRule response = await dataMigrationServiceClient.GetMappingRuleAsync(request);

GetMappingRuleAsync(MappingRuleName, CallSettings)

public virtual Task<MappingRule> GetMappingRuleAsync(MappingRuleName name, CallSettings callSettings = null)

Gets the details of a mapping rule.

Parameters
Name Description
name MappingRuleName

Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123

In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
MappingRuleName name = MappingRuleName.FromProjectLocationConversionWorkspaceMappingRule("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]");
// Make the request
MappingRule response = await dataMigrationServiceClient.GetMappingRuleAsync(name);

GetMappingRuleAsync(MappingRuleName, CancellationToken)

public virtual Task<MappingRule> GetMappingRuleAsync(MappingRuleName name, CancellationToken cancellationToken)

Gets the details of a mapping rule.

Parameters
Name Description
name MappingRuleName

Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123

In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
MappingRuleName name = MappingRuleName.FromProjectLocationConversionWorkspaceMappingRule("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]");
// Make the request
MappingRule response = await dataMigrationServiceClient.GetMappingRuleAsync(name);

GetMappingRuleAsync(string, CallSettings)

public virtual Task<MappingRule> GetMappingRuleAsync(string name, CallSettings callSettings = null)

Gets the details of a mapping rule.

Parameters
Name Description
name string

Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123

In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]/mappingRules/[MAPPING_RULE]";
// Make the request
MappingRule response = await dataMigrationServiceClient.GetMappingRuleAsync(name);

GetMappingRuleAsync(string, CancellationToken)

public virtual Task<MappingRule> GetMappingRuleAsync(string name, CancellationToken cancellationToken)

Gets the details of a mapping rule.

Parameters
Name Description
name string

Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123

In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMappingRule

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/conversionWorkspaces/[CONVERSION_WORKSPACE]/mappingRules/[MAPPING_RULE]";
// Make the request
MappingRule response = await dataMigrationServiceClient.GetMappingRuleAsync(name);

GetMigrationJob(GetMigrationJobRequest, CallSettings)

public virtual MigrationJob GetMigrationJob(GetMigrationJobRequest request, CallSettings callSettings = null)

Gets details of a single migration job.

Parameters
Name Description
request GetMigrationJobRequest

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
MigrationJob

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
GetMigrationJobRequest request = new GetMigrationJobRequest
{
    MigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
};
// Make the request
MigrationJob response = dataMigrationServiceClient.GetMigrationJob(request);

GetMigrationJob(MigrationJobName, CallSettings)

public virtual MigrationJob GetMigrationJob(MigrationJobName name, CallSettings callSettings = null)

Gets details of a single migration job.

Parameters
Name Description
name MigrationJobName

Required. Name of the migration job resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MigrationJob

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
MigrationJobName name = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
// Make the request
MigrationJob response = dataMigrationServiceClient.GetMigrationJob(name);

GetMigrationJob(string, CallSettings)

public virtual MigrationJob GetMigrationJob(string name, CallSettings callSettings = null)

Gets details of a single migration job.

Parameters
Name Description
name string

Required. Name of the migration job resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MigrationJob

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/migrationJobs/[MIGRATION_JOB]";
// Make the request
MigrationJob response = dataMigrationServiceClient.GetMigrationJob(name);

GetMigrationJobAsync(GetMigrationJobRequest, CallSettings)

public virtual Task<MigrationJob> GetMigrationJobAsync(GetMigrationJobRequest request, CallSettings callSettings = null)

Gets details of a single migration job.

Parameters
Name Description
request GetMigrationJobRequest

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
TaskMigrationJob

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetMigrationJobRequest request = new GetMigrationJobRequest
{
    MigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
};
// Make the request
MigrationJob response = await dataMigrationServiceClient.GetMigrationJobAsync(request);

GetMigrationJobAsync(GetMigrationJobRequest, CancellationToken)

public virtual Task<MigrationJob> GetMigrationJobAsync(GetMigrationJobRequest request, CancellationToken cancellationToken)

Gets details of a single migration job.

Parameters
Name Description
request GetMigrationJobRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMigrationJob

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetMigrationJobRequest request = new GetMigrationJobRequest
{
    MigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
};
// Make the request
MigrationJob response = await dataMigrationServiceClient.GetMigrationJobAsync(request);

GetMigrationJobAsync(MigrationJobName, CallSettings)

public virtual Task<MigrationJob> GetMigrationJobAsync(MigrationJobName name, CallSettings callSettings = null)

Gets details of a single migration job.

Parameters
Name Description
name MigrationJobName

Required. Name of the migration job resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskMigrationJob

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
MigrationJobName name = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
// Make the request
MigrationJob response = await dataMigrationServiceClient.GetMigrationJobAsync(name);

GetMigrationJobAsync(MigrationJobName, CancellationToken)

public virtual Task<MigrationJob> GetMigrationJobAsync(MigrationJobName name, CancellationToken cancellationToken)

Gets details of a single migration job.

Parameters
Name Description
name MigrationJobName

Required. Name of the migration job resource to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMigrationJob

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
MigrationJobName name = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
// Make the request
MigrationJob response = await dataMigrationServiceClient.GetMigrationJobAsync(name);

GetMigrationJobAsync(string, CallSettings)

public virtual Task<MigrationJob> GetMigrationJobAsync(string name, CallSettings callSettings = null)

Gets details of a single migration job.

Parameters
Name Description
name string

Required. Name of the migration job resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskMigrationJob

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/migrationJobs/[MIGRATION_JOB]";
// Make the request
MigrationJob response = await dataMigrationServiceClient.GetMigrationJobAsync(name);

GetMigrationJobAsync(string, CancellationToken)

public virtual Task<MigrationJob> GetMigrationJobAsync(string name, CancellationToken cancellationToken)

Gets details of a single migration job.

Parameters
Name Description
name string

Required. Name of the migration job resource to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMigrationJob

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/migrationJobs/[MIGRATION_JOB]";
// Make the request
MigrationJob response = await dataMigrationServiceClient.GetMigrationJobAsync(name);

GetPrivateConnection(GetPrivateConnectionRequest, CallSettings)

public virtual PrivateConnection GetPrivateConnection(GetPrivateConnectionRequest request, CallSettings callSettings = null)

Gets details of a single private connection.

Parameters
Name Description
request GetPrivateConnectionRequest

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
PrivateConnection

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
GetPrivateConnectionRequest request = new GetPrivateConnectionRequest
{
    PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
};
// Make the request
PrivateConnection response = dataMigrationServiceClient.GetPrivateConnection(request);

GetPrivateConnection(PrivateConnectionName, CallSettings)

public virtual PrivateConnection GetPrivateConnection(PrivateConnectionName name, CallSettings callSettings = null)

Gets details of a single private connection.

Parameters
Name Description
name PrivateConnectionName

Required. The name of the private connection to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateConnection

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
PrivateConnection response = dataMigrationServiceClient.GetPrivateConnection(name);

GetPrivateConnection(string, CallSettings)

public virtual PrivateConnection GetPrivateConnection(string name, CallSettings callSettings = null)

Gets details of a single private connection.

Parameters
Name Description
name string

Required. The name of the private connection to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateConnection

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
PrivateConnection response = dataMigrationServiceClient.GetPrivateConnection(name);

GetPrivateConnectionAsync(GetPrivateConnectionRequest, CallSettings)

public virtual Task<PrivateConnection> GetPrivateConnectionAsync(GetPrivateConnectionRequest request, CallSettings callSettings = null)

Gets details of a single private connection.

Parameters
Name Description
request GetPrivateConnectionRequest

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
TaskPrivateConnection

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetPrivateConnectionRequest request = new GetPrivateConnectionRequest
{
    PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
};
// Make the request
PrivateConnection response = await dataMigrationServiceClient.GetPrivateConnectionAsync(request);

GetPrivateConnectionAsync(GetPrivateConnectionRequest, CancellationToken)

public virtual Task<PrivateConnection> GetPrivateConnectionAsync(GetPrivateConnectionRequest request, CancellationToken cancellationToken)

Gets details of a single private connection.

Parameters
Name Description
request GetPrivateConnectionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateConnection

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetPrivateConnectionRequest request = new GetPrivateConnectionRequest
{
    PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
};
// Make the request
PrivateConnection response = await dataMigrationServiceClient.GetPrivateConnectionAsync(request);

GetPrivateConnectionAsync(PrivateConnectionName, CallSettings)

public virtual Task<PrivateConnection> GetPrivateConnectionAsync(PrivateConnectionName name, CallSettings callSettings = null)

Gets details of a single private connection.

Parameters
Name Description
name PrivateConnectionName

Required. The name of the private connection to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateConnection

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
PrivateConnection response = await dataMigrationServiceClient.GetPrivateConnectionAsync(name);

GetPrivateConnectionAsync(PrivateConnectionName, CancellationToken)

public virtual Task<PrivateConnection> GetPrivateConnectionAsync(PrivateConnectionName name, CancellationToken cancellationToken)

Gets details of a single private connection.

Parameters
Name Description
name PrivateConnectionName

Required. The name of the private connection to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

<
Returns
Type Description