Class DataTransferServiceConnection (2.29.0)

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

To create a concrete instance, see MakeDataTransferServiceConnection().

For mocking, see bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetDataSource(google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource >

virtual ListDataSources(google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource >

virtual CreateTransferConfig(google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >

virtual UpdateTransferConfig(google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >

virtual DeleteTransferConfig(google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &
Returns
Type Description
Status

virtual GetTransferConfig(google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >

virtual ListTransferConfigs(google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig >

virtual ScheduleTransferRuns(google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse >

virtual StartManualTransferRuns(google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsResponse >

virtual GetTransferRun(google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun >

virtual DeleteTransferRun(google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &
Returns
Type Description
Status

virtual ListTransferRuns(google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun >

virtual ListTransferLogs(google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage >

virtual CheckValidCreds(google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse >

virtual EnrollDataSources(google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &
Returns
Type Description
Status

virtual UnenrollDataSources(google::cloud::bigquery::datatransfer::v1::UnenrollDataSourcesRequest const &)

Parameter
Name Description
request google::cloud::bigquery::datatransfer::v1::UnenrollDataSourcesRequest const &
Returns
Type Description
Status