Class DataMigrationServiceClientImpl (2.0.0)

public sealed class DataMigrationServiceClientImpl : DataMigrationServiceClient

DataMigrationService client wrapper implementation, for convenient use.

Inheritance

Object > DataMigrationServiceClient > DataMigrationServiceClientImpl

Namespace

Google.Cloud.CloudDms.V1

Assembly

Google.Cloud.CloudDms.V1.dll

Remarks

Database Migration service

Constructors

DataMigrationServiceClientImpl(DataMigrationService.DataMigrationServiceClient, DataMigrationServiceSettings, ILogger)

public DataMigrationServiceClientImpl(DataMigrationService.DataMigrationServiceClient grpcClient, DataMigrationServiceSettings settings, ILogger logger)

Constructs a client wrapper for the DataMigrationService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientDataMigrationService.DataMigrationServiceClient

The underlying gRPC client.

settingsDataMigrationServiceSettings

The base DataMigrationServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreateConnectionProfileOperationsClient

public override OperationsClient CreateConnectionProfileOperationsClient { get; }

The long-running operations client for CreateConnectionProfile.

Property Value
TypeDescription
OperationsClient
Overrides

CreateMigrationJobOperationsClient

public override OperationsClient CreateMigrationJobOperationsClient { get; }

The long-running operations client for CreateMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteConnectionProfileOperationsClient

public override OperationsClient DeleteConnectionProfileOperationsClient { get; }

The long-running operations client for DeleteConnectionProfile.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteMigrationJobOperationsClient

public override OperationsClient DeleteMigrationJobOperationsClient { get; }

The long-running operations client for DeleteMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override DataMigrationService.DataMigrationServiceClient GrpcClient { get; }

The underlying gRPC DataMigrationService client

Property Value
TypeDescription
DataMigrationService.DataMigrationServiceClient
Overrides

PromoteMigrationJobOperationsClient

public override OperationsClient PromoteMigrationJobOperationsClient { get; }

The long-running operations client for PromoteMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

RestartMigrationJobOperationsClient

public override OperationsClient RestartMigrationJobOperationsClient { get; }

The long-running operations client for RestartMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

ResumeMigrationJobOperationsClient

public override OperationsClient ResumeMigrationJobOperationsClient { get; }

The long-running operations client for ResumeMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

StartMigrationJobOperationsClient

public override OperationsClient StartMigrationJobOperationsClient { get; }

The long-running operations client for StartMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

StopMigrationJobOperationsClient

public override OperationsClient StopMigrationJobOperationsClient { get; }

The long-running operations client for StopMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateConnectionProfileOperationsClient

public override OperationsClient UpdateConnectionProfileOperationsClient { get; }

The long-running operations client for UpdateConnectionProfile.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateMigrationJobOperationsClient

public override OperationsClient UpdateMigrationJobOperationsClient { get; }

The long-running operations client for UpdateMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

VerifyMigrationJobOperationsClient

public override OperationsClient VerifyMigrationJobOperationsClient { get; }

The long-running operations client for VerifyMigrationJob.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateConnectionProfile(CreateConnectionProfileRequest, CallSettings)

public override 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
Operation<ConnectionProfile, OperationMetadata>

The RPC response.

Overrides

CreateConnectionProfileAsync(CreateConnectionProfileRequest, CallSettings)

public override async 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
Task<Operation<ConnectionProfile, OperationMetadata>>

A Task containing the RPC response.

Overrides

CreateMigrationJob(CreateMigrationJobRequest, CallSettings)

public override 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
Operation<MigrationJob, OperationMetadata>

The RPC response.

Overrides

CreateMigrationJobAsync(CreateMigrationJobRequest, CallSettings)

public override async 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
Task<Operation<MigrationJob, OperationMetadata>>

A Task containing the RPC response.

Overrides

DeleteConnectionProfile(DeleteConnectionProfileRequest, CallSettings)

public override 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
Operation<Empty, OperationMetadata>

The RPC response.

Overrides

DeleteConnectionProfileAsync(DeleteConnectionProfileRequest, CallSettings)

public override async 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
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Overrides

DeleteMigrationJob(DeleteMigrationJobRequest, CallSettings)

public override 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
Operation<Empty, OperationMetadata>

The RPC response.

Overrides

DeleteMigrationJobAsync(DeleteMigrationJobRequest, CallSettings)

public override async 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
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Overrides

GenerateSshScript(GenerateSshScriptRequest, CallSettings)

public override 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.

Overrides

GenerateSshScriptAsync(GenerateSshScriptRequest, CallSettings)

public override 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
Task<SshScript>

A Task containing the RPC response.

Overrides

GetConnectionProfile(GetConnectionProfileRequest, CallSettings)

public override 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.

Overrides

GetConnectionProfileAsync(GetConnectionProfileRequest, CallSettings)

public override 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
Task<ConnectionProfile>

A Task containing the RPC response.

Overrides

GetMigrationJob(GetMigrationJobRequest, CallSettings)

public override 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.

Overrides

GetMigrationJobAsync(GetMigrationJobRequest, CallSettings)

public override 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
Task<MigrationJob>

A Task containing the RPC response.

Overrides

ListConnectionProfiles(ListConnectionProfilesRequest, CallSettings)

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

Retrieve 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
PagedEnumerable<ListConnectionProfilesResponse, ConnectionProfile>

A pageable sequence of ConnectionProfile resources.

Overrides

ListConnectionProfilesAsync(ListConnectionProfilesRequest, CallSettings)

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

Retrieve 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
PagedAsyncEnumerable<ListConnectionProfilesResponse, ConnectionProfile>

A pageable asynchronous sequence of ConnectionProfile resources.

Overrides

ListMigrationJobs(ListMigrationJobsRequest, CallSettings)

public override 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
PagedEnumerable<ListMigrationJobsResponse, MigrationJob>

A pageable sequence of MigrationJob resources.

Overrides

ListMigrationJobsAsync(ListMigrationJobsRequest, CallSettings)

public override 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
PagedAsyncEnumerable<ListMigrationJobsResponse, MigrationJob>

A pageable asynchronous sequence of MigrationJob resources.

Overrides

PromoteMigrationJob(PromoteMigrationJobRequest, CallSettings)

public override Operation<MigrationJob, OperationMetadata> PromoteMigrationJob(PromoteMigrationJobRequest request, CallSettings callSettings = null)

Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.

Parameters
NameDescription
requestPromoteMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MigrationJob, OperationMetadata>

The RPC response.

Overrides

PromoteMigrationJobAsync(PromoteMigrationJobRequest, CallSettings)

public override async Task<Operation<MigrationJob, OperationMetadata>> PromoteMigrationJobAsync(PromoteMigrationJobRequest request, CallSettings callSettings = null)

Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.

Parameters
NameDescription
requestPromoteMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MigrationJob, OperationMetadata>>

A Task containing the RPC response.

Overrides

RestartMigrationJob(RestartMigrationJobRequest, CallSettings)

public override Operation<MigrationJob, OperationMetadata> RestartMigrationJob(RestartMigrationJobRequest request, CallSettings callSettings = null)

Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.

Parameters
NameDescription
requestRestartMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MigrationJob, OperationMetadata>

The RPC response.

Overrides

RestartMigrationJobAsync(RestartMigrationJobRequest, CallSettings)

public override async Task<Operation<MigrationJob, OperationMetadata>> RestartMigrationJobAsync(RestartMigrationJobRequest request, CallSettings callSettings = null)

Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.

Parameters
NameDescription
requestRestartMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MigrationJob, OperationMetadata>>

A Task containing the RPC response.

Overrides

ResumeMigrationJob(ResumeMigrationJobRequest, CallSettings)

public override Operation<MigrationJob, OperationMetadata> ResumeMigrationJob(ResumeMigrationJobRequest request, CallSettings callSettings = null)

Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).

Parameters
NameDescription
requestResumeMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MigrationJob, OperationMetadata>

The RPC response.

Overrides

ResumeMigrationJobAsync(ResumeMigrationJobRequest, CallSettings)

public override async Task<Operation<MigrationJob, OperationMetadata>> ResumeMigrationJobAsync(ResumeMigrationJobRequest request, CallSettings callSettings = null)

Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).

Parameters
NameDescription
requestResumeMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MigrationJob, OperationMetadata>>

A Task containing the RPC response.

Overrides

StartMigrationJob(StartMigrationJobRequest, CallSettings)

public override Operation<MigrationJob, OperationMetadata> StartMigrationJob(StartMigrationJobRequest request, CallSettings callSettings = null)

Start an already created migration job.

Parameters
NameDescription
requestStartMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MigrationJob, OperationMetadata>

The RPC response.

Overrides

StartMigrationJobAsync(StartMigrationJobRequest, CallSettings)

public override async Task<Operation<MigrationJob, OperationMetadata>> StartMigrationJobAsync(StartMigrationJobRequest request, CallSettings callSettings = null)

Start an already created migration job.

Parameters
NameDescription
requestStartMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MigrationJob, OperationMetadata>>

A Task containing the RPC response.

Overrides

StopMigrationJob(StopMigrationJobRequest, CallSettings)

public override Operation<MigrationJob, OperationMetadata> StopMigrationJob(StopMigrationJobRequest request, CallSettings callSettings = null)

Stops a running migration job.

Parameters
NameDescription
requestStopMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MigrationJob, OperationMetadata>

The RPC response.

Overrides

StopMigrationJobAsync(StopMigrationJobRequest, CallSettings)

public override async Task<Operation<MigrationJob, OperationMetadata>> StopMigrationJobAsync(StopMigrationJobRequest request, CallSettings callSettings = null)

Stops a running migration job.

Parameters
NameDescription
requestStopMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MigrationJob, OperationMetadata>>

A Task containing the RPC response.

Overrides

UpdateConnectionProfile(UpdateConnectionProfileRequest, CallSettings)

public override Operation<ConnectionProfile, OperationMetadata> UpdateConnectionProfile(UpdateConnectionProfileRequest request, CallSettings callSettings = null)

Update the configuration of a single connection profile.

Parameters
NameDescription
requestUpdateConnectionProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ConnectionProfile, OperationMetadata>

The RPC response.

Overrides

UpdateConnectionProfileAsync(UpdateConnectionProfileRequest, CallSettings)

public override async Task<Operation<ConnectionProfile, OperationMetadata>> UpdateConnectionProfileAsync(UpdateConnectionProfileRequest request, CallSettings callSettings = null)

Update the configuration of a single connection profile.

Parameters
NameDescription
requestUpdateConnectionProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ConnectionProfile, OperationMetadata>>

A Task containing the RPC response.

Overrides

UpdateMigrationJob(UpdateMigrationJobRequest, CallSettings)

public override Operation<MigrationJob, OperationMetadata> UpdateMigrationJob(UpdateMigrationJobRequest request, CallSettings callSettings = null)

Updates the parameters of a single migration job.

Parameters
NameDescription
requestUpdateMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MigrationJob, OperationMetadata>

The RPC response.

Overrides

UpdateMigrationJobAsync(UpdateMigrationJobRequest, CallSettings)

public override async Task<Operation<MigrationJob, OperationMetadata>> UpdateMigrationJobAsync(UpdateMigrationJobRequest request, CallSettings callSettings = null)

Updates the parameters of a single migration job.

Parameters
NameDescription
requestUpdateMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MigrationJob, OperationMetadata>>

A Task containing the RPC response.

Overrides

VerifyMigrationJob(VerifyMigrationJobRequest, CallSettings)

public override Operation<MigrationJob, OperationMetadata> VerifyMigrationJob(VerifyMigrationJobRequest request, CallSettings callSettings = null)

Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.

Parameters
NameDescription
requestVerifyMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MigrationJob, OperationMetadata>

The RPC response.

Overrides

VerifyMigrationJobAsync(VerifyMigrationJobRequest, CallSettings)

public override async Task<Operation<MigrationJob, OperationMetadata>> VerifyMigrationJobAsync(VerifyMigrationJobRequest request, CallSettings callSettings = null)

Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.

Parameters
NameDescription
requestVerifyMigrationJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MigrationJob, OperationMetadata>>

A Task containing the RPC response.

Overrides