Class BatchControllerConnection (2.22.0)

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

To create a concrete instance, see MakeBatchControllerConnection().

For mocking, see dataproc_v1_mocks::MockBatchControllerConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateBatch(google::cloud::dataproc::v1::CreateBatchRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::CreateBatchRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataproc::v1::Batch > >

virtual GetBatch(google::cloud::dataproc::v1::GetBatchRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::GetBatchRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::Batch >

virtual ListBatches(google::cloud::dataproc::v1::ListBatchesRequest)

Parameter
NameDescription
request google::cloud::dataproc::v1::ListBatchesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataproc::v1::Batch >

virtual DeleteBatch(google::cloud::dataproc::v1::DeleteBatchRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::DeleteBatchRequest const &
Returns
TypeDescription
Status