Class MigrationServiceConnection (2.24.0)

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

To create a concrete instance, see MakeMigrationServiceConnection().

For mocking, see bigquery_migration_v2_mocks::MockMigrationServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateMigrationWorkflow(google::cloud::bigquery::migration::v2::CreateMigrationWorkflowRequest const &)

Parameter
Name Description
request google::cloud::bigquery::migration::v2::CreateMigrationWorkflowRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow >

virtual GetMigrationWorkflow(google::cloud::bigquery::migration::v2::GetMigrationWorkflowRequest const &)

Parameter
Name Description
request google::cloud::bigquery::migration::v2::GetMigrationWorkflowRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow >

virtual ListMigrationWorkflows(google::cloud::bigquery::migration::v2::ListMigrationWorkflowsRequest)

Parameter
Name Description
request google::cloud::bigquery::migration::v2::ListMigrationWorkflowsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::migration::v2::MigrationWorkflow >

virtual DeleteMigrationWorkflow(google::cloud::bigquery::migration::v2::DeleteMigrationWorkflowRequest const &)

Parameter
Name Description
request google::cloud::bigquery::migration::v2::DeleteMigrationWorkflowRequest const &
Returns
Type Description
Status

virtual StartMigrationWorkflow(google::cloud::bigquery::migration::v2::StartMigrationWorkflowRequest const &)

Parameter
Name Description
request google::cloud::bigquery::migration::v2::StartMigrationWorkflowRequest const &
Returns
Type Description
Status

virtual GetMigrationSubtask(google::cloud::bigquery::migration::v2::GetMigrationSubtaskRequest const &)

Parameter
Name Description
request google::cloud::bigquery::migration::v2::GetMigrationSubtaskRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::migration::v2::MigrationSubtask >

virtual ListMigrationSubtasks(google::cloud::bigquery::migration::v2::ListMigrationSubtasksRequest)

Parameter
Name Description
request google::cloud::bigquery::migration::v2::ListMigrationSubtasksRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::migration::v2::MigrationSubtask >