Class DataMigrationServiceConnection (2.24.0)

This interface defines virtual methods for each of the user-facing overload sets in DataMigrationServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DataMigrationServiceClient.

To create a concrete instance, see MakeDataMigrationServiceConnection().

For mocking, see datamigration_v1_mocks::MockDataMigrationServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListMigrationJobs(google::cloud::clouddms::v1::ListMigrationJobsRequest)

Parameter
Name Description
request google::cloud::clouddms::v1::ListMigrationJobsRequest
Returns
Type Description
StreamRange< google::cloud::clouddms::v1::MigrationJob >

virtual GetMigrationJob(google::cloud::clouddms::v1::GetMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::GetMigrationJobRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::MigrationJob >

virtual CreateMigrationJob(google::cloud::clouddms::v1::CreateMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::CreateMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > >

virtual UpdateMigrationJob(google::cloud::clouddms::v1::UpdateMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::UpdateMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > >

virtual DeleteMigrationJob(google::cloud::clouddms::v1::DeleteMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::DeleteMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::OperationMetadata > >

virtual StartMigrationJob(google::cloud::clouddms::v1::StartMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::StartMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > >

virtual StopMigrationJob(google::cloud::clouddms::v1::StopMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::StopMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > >

virtual ResumeMigrationJob(google::cloud::clouddms::v1::ResumeMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::ResumeMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > >

virtual PromoteMigrationJob(google::cloud::clouddms::v1::PromoteMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::PromoteMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > >

virtual VerifyMigrationJob(google::cloud::clouddms::v1::VerifyMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::VerifyMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > >

virtual RestartMigrationJob(google::cloud::clouddms::v1::RestartMigrationJobRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::RestartMigrationJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > >

virtual GenerateSshScript(google::cloud::clouddms::v1::GenerateSshScriptRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::GenerateSshScriptRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::SshScript >

virtual GenerateTcpProxyScript(google::cloud::clouddms::v1::GenerateTcpProxyScriptRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::GenerateTcpProxyScriptRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::TcpProxyScript >

virtual ListConnectionProfiles(google::cloud::clouddms::v1::ListConnectionProfilesRequest)

Parameter
Name Description
request google::cloud::clouddms::v1::ListConnectionProfilesRequest
Returns
Type Description
StreamRange< google::cloud::clouddms::v1::ConnectionProfile >

virtual GetConnectionProfile(google::cloud::clouddms::v1::GetConnectionProfileRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::GetConnectionProfileRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::ConnectionProfile >

virtual CreateConnectionProfile(google::cloud::clouddms::v1::CreateConnectionProfileRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::CreateConnectionProfileRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConnectionProfile > >

virtual UpdateConnectionProfile(google::cloud::clouddms::v1::UpdateConnectionProfileRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::UpdateConnectionProfileRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConnectionProfile > >

virtual DeleteConnectionProfile(google::cloud::clouddms::v1::DeleteConnectionProfileRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::DeleteConnectionProfileRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::OperationMetadata > >

virtual CreatePrivateConnection(google::cloud::clouddms::v1::CreatePrivateConnectionRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::CreatePrivateConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::PrivateConnection > >

virtual GetPrivateConnection(google::cloud::clouddms::v1::GetPrivateConnectionRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::GetPrivateConnectionRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::PrivateConnection >

virtual ListPrivateConnections(google::cloud::clouddms::v1::ListPrivateConnectionsRequest)

Parameter
Name Description
request google::cloud::clouddms::v1::ListPrivateConnectionsRequest
Returns
Type Description
StreamRange< google::cloud::clouddms::v1::PrivateConnection >

virtual DeletePrivateConnection(google::cloud::clouddms::v1::DeletePrivateConnectionRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::DeletePrivateConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::OperationMetadata > >

virtual GetConversionWorkspace(google::cloud::clouddms::v1::GetConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::GetConversionWorkspaceRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::ConversionWorkspace >

virtual ListConversionWorkspaces(google::cloud::clouddms::v1::ListConversionWorkspacesRequest)

Parameter
Name Description
request google::cloud::clouddms::v1::ListConversionWorkspacesRequest
Returns
Type Description
StreamRange< google::cloud::clouddms::v1::ConversionWorkspace >

virtual CreateConversionWorkspace(google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConversionWorkspace > >

virtual UpdateConversionWorkspace(google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConversionWorkspace > >

virtual DeleteConversionWorkspace(google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::OperationMetadata > >

virtual CreateMappingRule(google::cloud::clouddms::v1::CreateMappingRuleRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::CreateMappingRuleRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::MappingRule >

virtual DeleteMappingRule(google::cloud::clouddms::v1::DeleteMappingRuleRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::DeleteMappingRuleRequest const &
Returns
Type Description
Status

virtual ListMappingRules(google::cloud::clouddms::v1::ListMappingRulesRequest)

Parameter
Name Description
request google::cloud::clouddms::v1::ListMappingRulesRequest
Returns
Type Description
StreamRange< google::cloud::clouddms::v1::MappingRule >

virtual GetMappingRule(google::cloud::clouddms::v1::GetMappingRuleRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::GetMappingRuleRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::MappingRule >

virtual SeedConversionWorkspace(google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConversionWorkspace > >

virtual ImportMappingRules(google::cloud::clouddms::v1::ImportMappingRulesRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::ImportMappingRulesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConversionWorkspace > >

virtual ConvertConversionWorkspace(google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConversionWorkspace > >

virtual CommitConversionWorkspace(google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConversionWorkspace > >

virtual RollbackConversionWorkspace(google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConversionWorkspace > >

virtual ApplyConversionWorkspace(google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::clouddms::v1::ConversionWorkspace > >

virtual DescribeDatabaseEntities(google::cloud::clouddms::v1::DescribeDatabaseEntitiesRequest)

Parameter
Name Description
request google::cloud::clouddms::v1::DescribeDatabaseEntitiesRequest
Returns
Type Description
StreamRange< google::cloud::clouddms::v1::DatabaseEntity >

virtual SearchBackgroundJobs(google::cloud::clouddms::v1::SearchBackgroundJobsRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::SearchBackgroundJobsRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::SearchBackgroundJobsResponse >

virtual DescribeConversionWorkspaceRevisions(google::cloud::clouddms::v1::DescribeConversionWorkspaceRevisionsRequest const &)

Parameter
Name Description
request google::cloud::clouddms::v1::DescribeConversionWorkspaceRevisionsRequest const &
Returns
Type Description
StatusOr< google::cloud::clouddms::v1::DescribeConversionWorkspaceRevisionsResponse >

virtual FetchStaticIps(google::cloud::clouddms::v1::FetchStaticIpsRequest)

Parameter
Name Description
request google::cloud::clouddms::v1::FetchStaticIpsRequest
Returns
Type Description
StreamRange< std::string >