Database Migration v1 API - Class DataMigrationServiceClient (2.1.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
TypeDescription
OperationsClient

CommitConversionWorkspaceOperationsClient

public virtual OperationsClient CommitConversionWorkspaceOperationsClient { get; }

The long-running operations client for CommitConversionWorkspace.

Property Value
TypeDescription
OperationsClient

ConvertConversionWorkspaceOperationsClient

public virtual OperationsClient ConvertConversionWorkspaceOperationsClient { get; }

The long-running operations client for ConvertConversionWorkspace.

Property Value
TypeDescription
OperationsClient

CreateConnectionProfileOperationsClient

public virtual OperationsClient CreateConnectionProfileOperationsClient { get; }

The long-running operations client for CreateConnectionProfile.

Property Value
TypeDescription
OperationsClient

CreateConversionWorkspaceOperationsClient

public virtual OperationsClient CreateConversionWorkspaceOperationsClient { get; }

The long-running operations client for CreateConversionWorkspace.

Property Value
TypeDescription
OperationsClient

CreateMigrationJobOperationsClient

public virtual OperationsClient CreateMigrationJobOperationsClient { get; }

The long-running operations client for CreateMigrationJob.

Property Value
TypeDescription
OperationsClient

CreatePrivateConnectionOperationsClient

public virtual OperationsClient CreatePrivateConnectionOperationsClient { get; }

The long-running operations client for CreatePrivateConnection.

Property Value
TypeDescription
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
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default DataMigrationService scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default DataMigrationService scopes are:

DeleteConnectionProfileOperationsClient

public virtual OperationsClient DeleteConnectionProfileOperationsClient { get; }

The long-running operations client for DeleteConnectionProfile.

Property Value
TypeDescription
OperationsClient

DeleteConversionWorkspaceOperationsClient

public virtual OperationsClient DeleteConversionWorkspaceOperationsClient { get; }

The long-running operations client for DeleteConversionWorkspace.

Property Value
TypeDescription
OperationsClient

DeleteMigrationJobOperationsClient

public virtual OperationsClient DeleteMigrationJobOperationsClient { get; }

The long-running operations client for DeleteMigrationJob.

Property Value
TypeDescription
OperationsClient

DeletePrivateConnectionOperationsClient

public virtual OperationsClient DeletePrivateConnectionOperationsClient { get; }

The long-running operations client for DeletePrivateConnection.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual DataMigrationService.DataMigrationServiceClient GrpcClient { get; }

The underlying gRPC DataMigrationService client

Property Value
TypeDescription
DataMigrationServiceDataMigrationServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient

ImportMappingRulesOperationsClient

public virtual OperationsClient ImportMappingRulesOperationsClient { get; }

The long-running operations client for ImportMappingRules.

Property Value
TypeDescription
OperationsClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

PromoteMigrationJobOperationsClient

public virtual OperationsClient PromoteMigrationJobOperationsClient { get; }

The long-running operations client for PromoteMigrationJob.

Property Value
TypeDescription
OperationsClient

RestartMigrationJobOperationsClient

public virtual OperationsClient RestartMigrationJobOperationsClient { get; }

The long-running operations client for RestartMigrationJob.

Property Value
TypeDescription
OperationsClient

ResumeMigrationJobOperationsClient

public virtual OperationsClient ResumeMigrationJobOperationsClient { get; }

The long-running operations client for ResumeMigrationJob.

Property Value
TypeDescription
OperationsClient

RollbackConversionWorkspaceOperationsClient

public virtual OperationsClient RollbackConversionWorkspaceOperationsClient { get; }

The long-running operations client for RollbackConversionWorkspace.

Property Value
TypeDescription
OperationsClient

SeedConversionWorkspaceOperationsClient

public virtual OperationsClient SeedConversionWorkspaceOperationsClient { get; }

The long-running operations client for SeedConversionWorkspace.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

StartMigrationJobOperationsClient

public virtual OperationsClient StartMigrationJobOperationsClient { get; }

The long-running operations client for StartMigrationJob.

Property Value
TypeDescription
OperationsClient

StopMigrationJobOperationsClient

public virtual OperationsClient StopMigrationJobOperationsClient { get; }

The long-running operations client for StopMigrationJob.

Property Value
TypeDescription
OperationsClient

UpdateConnectionProfileOperationsClient

public virtual OperationsClient UpdateConnectionProfileOperationsClient { get; }

The long-running operations client for UpdateConnectionProfile.

Property Value
TypeDescription
OperationsClient

UpdateConversionWorkspaceOperationsClient

public virtual OperationsClient UpdateConversionWorkspaceOperationsClient { get; }

The long-running operations client for UpdateConversionWorkspace.

Property Value
TypeDescription
OperationsClient

UpdateMigrationJobOperationsClient

public virtual OperationsClient UpdateMigrationJobOperationsClient { get; }

The long-running operations client for UpdateMigrationJob.

Property Value
TypeDescription
OperationsClient

VerifyMigrationJobOperationsClient

public virtual OperationsClient VerifyMigrationJobOperationsClient { get; }

The long-running operations client for VerifyMigrationJob.

Property Value
TypeDescription
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
NameDescription
requestApplyConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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 = "",
    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
NameDescription
requestApplyConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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 = "",
    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
NameDescription
requestApplyConversionWorkspaceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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 = "",
    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
NameDescription
requestCommitConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCommitConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCommitConversionWorkspaceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestConvertConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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 = "",
};
// 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
NameDescription
requestConvertConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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 = "",
};
// 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
NameDescription
requestConvertConversionWorkspaceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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 = "",
};
// 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
TypeDescription
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
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskDataMigrationServiceClient

The task representing the created DataMigrationServiceClient.

CreateConnectionProfile(ConnectionProfileName, ConnectionProfile, string, CallSettings)

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

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

Parameters
NameDescription
parentConnectionProfileName

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

connectionProfileConnectionProfile

Required. The create request body including the connection profile data

connectionProfileIdstring

Required. The connection profile identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionProfileOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ConnectionProfileName parent = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
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
NameDescription
requestCreateConnectionProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionProfileOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
CreateConnectionProfileRequest request = new CreateConnectionProfileRequest
{
    ParentAsConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
    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
NameDescription
parentstring

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

connectionProfileConnectionProfile

Required. The create request body including the connection profile data

connectionProfileIdstring

Required. The connection profile identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionProfileOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connectionProfiles/[CONNECTION_PROFILE]";
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(ConnectionProfileName, ConnectionProfile, string, CallSettings)

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

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

Parameters
NameDescription
parentConnectionProfileName

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

connectionProfileConnectionProfile

Required. The create request body including the connection profile data

connectionProfileIdstring

Required. The connection profile identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConnectionProfileName parent = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
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(ConnectionProfileName, ConnectionProfile, string, CancellationToken)

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

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

Parameters
NameDescription
parentConnectionProfileName

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

connectionProfileConnectionProfile

Required. The create request body including the connection profile data

connectionProfileIdstring

Required. The connection profile identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ConnectionProfileName parent = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
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
NameDescription
requestCreateConnectionProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionProfileRequest request = new CreateConnectionProfileRequest
{
    ParentAsConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
    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
NameDescription
requestCreateConnectionProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionProfileOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionProfileRequest request = new CreateConnectionProfileRequest
{
    ParentAsConnectionProfileName = ConnectionProfileName.FromProjectLocationConnectionProfile("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"),
    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
NameDescription
parentstring

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

connectionProfileConnectionProfile

Required. The create request body including the connection profile data

connectionProfileIdstring

Required. The connection profile identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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]/connectionProfiles/[CONNECTION_PROFILE]";
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
NameDescription
parentstring

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

connectionProfileConnectionProfile

Required. The create request body including the connection profile data

connectionProfileIdstring

Required. The connection profile identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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]/connectionProfiles/[CONNECTION_PROFILE]";
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
NameDescription
parentLocationName

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

conversionWorkspaceConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceIdstring

Required. The ID of the conversion workspace to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

conversionWorkspaceConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceIdstring

Required. The ID of the conversion workspace to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

conversionWorkspaceConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceIdstring

Required. The ID of the conversion workspace to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

conversionWorkspaceConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceIdstring

Required. The ID of the conversion workspace to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateConversionWorkspaceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

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

conversionWorkspaceConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceIdstring

Required. The ID of the conversion workspace to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

conversionWorkspaceConversionWorkspace

Required. Represents a conversion workspace object.

conversionWorkspaceIdstring

Required. The ID of the conversion workspace to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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;
}

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
NameDescription
parentLocationName

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

migrationJobMigrationJob

Required. Represents a migration job object.

migrationJobIdstring

Required. The ID of the instance to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

migrationJobMigrationJob

Required. Represents a migration job object.

migrationJobIdstring

Required. The ID of the instance to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

migrationJobMigrationJob

Required. Represents a migration job object.

migrationJobIdstring

Required. The ID of the instance to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

migrationJobMigrationJob

Required. Represents a migration job object.

migrationJobIdstring

Required. The ID of the instance to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateMigrationJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

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

migrationJobMigrationJob

Required. Represents a migration job object.

migrationJobIdstring

Required. The ID of the instance to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

migrationJobMigrationJob

Required. Represents a migration job object.

migrationJobIdstring

Required. The ID of the instance to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentLocationName

Required. The parent that owns the collection of PrivateConnections.

privateConnectionPrivateConnection

Required. The private connection resource to create.

privateConnectionIdstring

Required. The private connection identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreatePrivateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. The parent that owns the collection of PrivateConnections.

privateConnectionPrivateConnection

Required. The private connection resource to create.

privateConnectionIdstring

Required. The private connection identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

Required. The parent that owns the collection of PrivateConnections.

privateConnectionPrivateConnection

Required. The private connection resource to create.

privateConnectionIdstring

Required. The private connection identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

Required. The parent that owns the collection of PrivateConnections.

privateConnectionPrivateConnection

Required. The private connection resource to create.

privateConnectionIdstring

Required. The private connection identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreatePrivateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreatePrivateConnectionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

Required. The parent that owns the collection of PrivateConnections.

privateConnectionPrivateConnection

Required. The private connection resource to create.

privateConnectionIdstring

Required. The private connection identifier.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. The parent that owns the collection of PrivateConnections.

privateConnectionPrivateConnection

Required. The private connection resource to create.

privateConnectionIdstring

Required. The private connection identifier.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameConnectionProfileName

Required. Name of the connection profile resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteConnectionProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
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
NameDescription
namestring

Required. Name of the connection profile resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameConnectionProfileName

Required. Name of the connection profile resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameConnectionProfileName

Required. Name of the connection profile resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteConnectionProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
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
NameDescription
requestDeleteConnectionProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
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
NameDescription
namestring

Required. Name of the connection profile resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the connection profile resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameConversionWorkspaceName

Required. Name of the conversion workspace resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
DeleteConversionWorkspaceRequest request = new DeleteConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
};
// 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
NameDescription
namestring

Required. Name of the conversion workspace resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameConversionWorkspaceName

Required. Name of the conversion workspace resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameConversionWorkspaceName

Required. Name of the conversion workspace resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteConversionWorkspaceRequest request = new DeleteConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
};
// 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
NameDescription
requestDeleteConversionWorkspaceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteConversionWorkspaceRequest request = new DeleteConversionWorkspaceRequest
{
    ConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RequestId = "",
};
// 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
NameDescription
namestring

Required. Name of the conversion workspace resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the conversion workspace resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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;
}

DeleteMigrationJob(DeleteMigrationJobRequest, CallSettings)

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

Deletes a single migration job.

Parameters
NameDescription
requestDeleteMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
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
NameDescription
nameMigrationJobName

Required. Name of the migration job resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the migration job resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
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
NameDescription
requestDeleteMigrationJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
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
NameDescription
nameMigrationJobName

Required. Name of the migration job resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameMigrationJobName

Required. Name of the migration job resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the migration job resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the migration job resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeletePrivateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
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
NameDescription
namePrivateConnectionName

Required. The name of the private connection to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the private connection to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeletePrivateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
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
NameDescription
requestDeletePrivateConnectionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
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
NameDescription
namePrivateConnectionName

Required. The name of the private connection to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namePrivateConnectionName

Required. The name of the private connection to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the private connection to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the private connection to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDescribeConversionWorkspaceRevisionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDescribeConversionWorkspaceRevisionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDescribeConversionWorkspaceRevisionsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDescribeDatabaseEntitiesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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 = "",
};
// 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
NameDescription
requestDescribeDatabaseEntitiesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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 = "",
};
// 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
NameDescription
nameLocationName

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchStaticIpsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameLocationName

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchStaticIpsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGenerateSshScriptRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGenerateSshScriptRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGenerateSshScriptRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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);

GetConnectionProfile(ConnectionProfileName, CallSettings)

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

Gets details of a single connection profile.

Parameters
NameDescription
nameConnectionProfileName

Required. Name of the connection profile resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetConnectionProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the connection profile resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameConnectionProfileName

Required. Name of the connection profile resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameConnectionProfileName

Required. Name of the connection profile resource to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetConnectionProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetConnectionProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the connection profile resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the connection profile resource to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameConversionWorkspaceName

Required. Name of the conversion workspace resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the conversion workspace resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameConversionWorkspaceName

Required. Name of the conversion workspace resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameConversionWorkspaceName

Required. Name of the conversion workspace resource to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetConversionWorkspaceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetConversionWorkspaceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the conversion workspace resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the conversion workspace resource to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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);

GetMigrationJob(GetMigrationJobRequest, CallSettings)

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

Gets details of a single migration job.

Parameters
NameDescription
requestGetMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameMigrationJobName

Required. Name of the migration job resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the migration job resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetMigrationJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameMigrationJobName

Required. Name of the migration job resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameMigrationJobName

Required. Name of the migration job resource to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the migration job resource to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the migration job resource to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetPrivateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namePrivateConnectionName

Required. The name of the private connection to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the private connection to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetPrivateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetPrivateConnectionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namePrivateConnectionName

Required. The name of the private connection to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namePrivateConnectionName

Required. The name of the private connection to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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(string, CallSettings)

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

Gets details of a single private connection.

Parameters
NameDescription
namestring

Required. The name of the private connection to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPrivateConnection

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
PrivateConnection response = await dataMigrationServiceClient.GetPrivateConnectionAsync(name);

GetPrivateConnectionAsync(string, CancellationToken)

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

Gets details of a single private connection.

Parameters
NameDescription
namestring

Required. The name of the private connection to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPrivateConnection

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
PrivateConnection response = await dataMigrationServiceClient.GetPrivateConnectionAsync(name);

ImportMappingRules(ImportMappingRulesRequest, CallSettings)

public virtual Operation<ConversionWorkspace, OperationMetadata> ImportMappingRules(ImportMappingRulesRequest request, CallSettings callSettings = null)

Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.

Parameters
NameDescription
requestImportMappingRulesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConversionWorkspaceOperationMetadata

The RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ImportMappingRulesRequest request = new ImportMappingRulesRequest
{
    ParentAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RulesFormat = ImportRulesFileFormat.Unspecified,
    RulesFiles =
    {
        new ImportMappingRulesRequest.Types.RulesFile(),
    },
    AutoCommit = false,
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = dataMigrationServiceClient.ImportMappingRules(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.PollOnceImportMappingRules(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;
}

ImportMappingRulesAsync(ImportMappingRulesRequest, CallSettings)

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

Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.

Parameters
NameDescription
requestImportMappingRulesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ImportMappingRulesRequest request = new ImportMappingRulesRequest
{
    ParentAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RulesFormat = ImportRulesFileFormat.Unspecified,
    RulesFiles =
    {
        new ImportMappingRulesRequest.Types.RulesFile(),
    },
    AutoCommit = false,
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.ImportMappingRulesAsync(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.PollOnceImportMappingRulesAsync(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;
}

ImportMappingRulesAsync(ImportMappingRulesRequest, CancellationToken)

public virtual Task<Operation<ConversionWorkspace, OperationMetadata>> ImportMappingRulesAsync(ImportMappingRulesRequest request, CancellationToken cancellationToken)

Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.

Parameters
NameDescription
requestImportMappingRulesRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConversionWorkspaceOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ImportMappingRulesRequest request = new ImportMappingRulesRequest
{
    ParentAsConversionWorkspaceName = ConversionWorkspaceName.FromProjectLocationConversionWorkspace("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"),
    RulesFormat = ImportRulesFileFormat.Unspecified,
    RulesFiles =
    {
        new ImportMappingRulesRequest.Types.RulesFile(),
    },
    AutoCommit = false,
};
// Make the request
Operation<ConversionWorkspace, OperationMetadata> response = await dataMigrationServiceClient.ImportMappingRulesAsync(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.PollOnceImportMappingRulesAsync(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;
}

ListConnectionProfiles(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectionProfilesResponse, ConnectionProfile> ListConnectionProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of all connection profiles in a given project and location.

Parameters
NameDescription
parentLocationName

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectionProfilesResponseConnectionProfile

A pageable sequence of ConnectionProfile resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConnectionProfilesResponse, ConnectionProfile> response = dataMigrationServiceClient.ListConnectionProfiles(parent);

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

ListConnectionProfiles(ListConnectionProfilesRequest, CallSettings)

public virtual PagedEnumerable<ListConnectionProfilesResponse, ConnectionProfile> ListConnectionProfiles(ListConnectionProfilesRequest request, CallSettings callSettings = null)

Retrieves a list of all connection profiles in a given project and location.

Parameters
NameDescription
requestListConnectionProfilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectionProfilesResponseConnectionProfile

A pageable sequence of ConnectionProfile resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ListConnectionProfilesRequest request = new ListConnectionProfilesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListConnectionProfilesResponse, ConnectionProfile> response = dataMigrationServiceClient.ListConnectionProfiles(request);

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

ListConnectionProfiles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectionProfilesResponse, ConnectionProfile> ListConnectionProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of all connection profiles in a given project and location.

Parameters
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectionProfilesResponseConnectionProfile

A pageable sequence of ConnectionProfile resources.

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

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

ListConnectionProfilesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionProfilesResponse, ConnectionProfile> ListConnectionProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of all connection profiles in a given project and location.

Parameters
NameDescription
parentLocationName

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectionProfilesResponseConnectionProfile

A pageable asynchronous sequence of ConnectionProfile resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConnectionProfilesResponse, ConnectionProfile> response = dataMigrationServiceClient.ListConnectionProfilesAsync(parent);

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

ListConnectionProfilesAsync(ListConnectionProfilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionProfilesResponse, ConnectionProfile> ListConnectionProfilesAsync(ListConnectionProfilesRequest request, CallSettings callSettings = null)

Retrieves a list of all connection profiles in a given project and location.

Parameters
NameDescription
requestListConnectionProfilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectionProfilesResponseConnectionProfile

A pageable asynchronous sequence of ConnectionProfile resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ListConnectionProfilesRequest request = new ListConnectionProfilesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListConnectionProfilesResponse, ConnectionProfile> response = dataMigrationServiceClient.ListConnectionProfilesAsync(request);

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

ListConnectionProfilesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionProfilesResponse, ConnectionProfile> ListConnectionProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of all connection profiles in a given project and location.

Parameters
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectionProfilesResponseConnectionProfile

A pageable asynchronous sequence of ConnectionProfile resources.

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

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

ListConversionWorkspaces(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> ListConversionWorkspaces(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists conversion workspaces in a given project and location.

Parameters
NameDescription
parentLocationName

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConversionWorkspacesResponseConversionWorkspace

A pageable sequence of ConversionWorkspace resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> response = dataMigrationServiceClient.ListConversionWorkspaces(parent);

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

ListConversionWorkspaces(ListConversionWorkspacesRequest, CallSettings)

public virtual PagedEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> ListConversionWorkspaces(ListConversionWorkspacesRequest request, CallSettings callSettings = null)

Lists conversion workspaces in a given project and location.

Parameters
NameDescription
requestListConversionWorkspacesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConversionWorkspacesResponseConversionWorkspace

A pageable sequence of ConversionWorkspace resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ListConversionWorkspacesRequest request = new ListConversionWorkspacesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> response = dataMigrationServiceClient.ListConversionWorkspaces(request);

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

ListConversionWorkspaces(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> ListConversionWorkspaces(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists conversion workspaces in a given project and location.

Parameters
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConversionWorkspacesResponseConversionWorkspace

A pageable sequence of ConversionWorkspace resources.

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

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

ListConversionWorkspacesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> ListConversionWorkspacesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists conversion workspaces in a given project and location.

Parameters
NameDescription
parentLocationName

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConversionWorkspacesResponseConversionWorkspace

A pageable asynchronous sequence of ConversionWorkspace resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> response = dataMigrationServiceClient.ListConversionWorkspacesAsync(parent);

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

ListConversionWorkspacesAsync(ListConversionWorkspacesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> ListConversionWorkspacesAsync(ListConversionWorkspacesRequest request, CallSettings callSettings = null)

Lists conversion workspaces in a given project and location.

Parameters
NameDescription
requestListConversionWorkspacesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConversionWorkspacesResponseConversionWorkspace

A pageable asynchronous sequence of ConversionWorkspace resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ListConversionWorkspacesRequest request = new ListConversionWorkspacesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> response = dataMigrationServiceClient.ListConversionWorkspacesAsync(request);

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

ListConversionWorkspacesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConversionWorkspacesResponse, ConversionWorkspace> ListConversionWorkspacesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists conversion workspaces in a given project and location.

Parameters
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConversionWorkspacesResponseConversionWorkspace

A pageable asynchronous sequence of ConversionWorkspace resources.

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

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

ListMigrationJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListMigrationJobsResponse, MigrationJob> ListMigrationJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists migration jobs in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent which owns this collection of migrationJobs.

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListMigrationJobsResponseMigrationJob

A pageable sequence of MigrationJob resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListMigrationJobsResponse, MigrationJob> response = dataMigrationServiceClient.ListMigrationJobs(parent);

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

ListMigrationJobs(ListMigrationJobsRequest, CallSettings)

public virtual PagedEnumerable<ListMigrationJobsResponse, MigrationJob> ListMigrationJobs(ListMigrationJobsRequest request, CallSettings callSettings = null)

Lists migration jobs in a given project and location.

Parameters
NameDescription
requestListMigrationJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListMigrationJobsResponseMigrationJob

A pageable sequence of MigrationJob resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ListMigrationJobsRequest request = new ListMigrationJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListMigrationJobsResponse, MigrationJob> response = dataMigrationServiceClient.ListMigrationJobs(request);

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

ListMigrationJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListMigrationJobsResponse, MigrationJob> ListMigrationJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists migration jobs in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent which owns this collection of migrationJobs.

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListMigrationJobsResponseMigrationJob

A pageable sequence of MigrationJob resources.

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

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

ListMigrationJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListMigrationJobsResponse, MigrationJob> ListMigrationJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists migration jobs in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent which owns this collection of migrationJobs.

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListMigrationJobsResponseMigrationJob

A pageable asynchronous sequence of MigrationJob resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListMigrationJobsResponse, MigrationJob> response = dataMigrationServiceClient.ListMigrationJobsAsync(parent);

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

ListMigrationJobsAsync(ListMigrationJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListMigrationJobsResponse, MigrationJob> ListMigrationJobsAsync(ListMigrationJobsRequest request, CallSettings callSettings = null)

Lists migration jobs in a given project and location.

Parameters
NameDescription
requestListMigrationJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListMigrationJobsResponseMigrationJob

A pageable asynchronous sequence of MigrationJob resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
ListMigrationJobsRequest request = new ListMigrationJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListMigrationJobsResponse, MigrationJob> response = dataMigrationServiceClient.ListMigrationJobsAsync(request);

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

ListMigrationJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListMigrationJobsResponse, MigrationJob> ListMigrationJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists migration jobs in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent which owns this collection of migrationJobs.

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListMigrationJobsResponseMigrationJob

A pageable asynchronous sequence of MigrationJob resources.

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

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

ListPrivateConnections(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of private connections in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent that owns the collection of private connections.

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListPrivateConnectionsResponsePrivateConnection

A pageable sequence of PrivateConnection resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = dataMigrationServiceClient.ListPrivateConnections(parent);

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

ListPrivateConnections(ListPrivateConnectionsRequest, CallSettings)

public virtual PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnections(ListPrivateConnectionsRequest request, CallSettings callSettings = null)

Retrieves a list of private connections in a given project and location.

Parameters
NameDescription
requestListPrivateConnectionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListPrivateConnectionsResponsePrivateConnection

A pageable sequence of PrivateConnection resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
// Initialize request argument(s)
ListPrivateConnectionsRequest request = new ListPrivateConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = dataMigrationServiceClient.ListPrivateConnections(request);

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

ListPrivateConnections(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of private connections in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent that owns the collection of private connections.

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListPrivateConnectionsResponsePrivateConnection

A pageable sequence of PrivateConnection resources.

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

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

ListPrivateConnectionsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of private connections in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent that owns the collection of private connections.

pageTokenstring

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

pageSizeint

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListPrivateConnectionsResponsePrivateConnection

A pageable asynchronous sequence of PrivateConnection resources.

Example
// Create client
DataMigrationServiceClient dataMigrationServiceClient = await DataMigrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = dataMigrationServiceClient.ListPrivateConnectionsAsync(parent);

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

ListPrivateConnectionsAsync(ListPrivateConnectionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnectionsAsync(ListPrivateConnectionsRequest request, CallSettings callSettings = null)

Retrieves a list of private connections in a given project and location.

Parameters
NameDescription