Class BatchServiceConnection (2.21.0)

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

To create a concrete instance, see MakeBatchServiceConnection().

For mocking, see batch_v1_mocks::MockBatchServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateJob(google::cloud::batch::v1::CreateJobRequest const &)

Parameter
NameDescription
request google::cloud::batch::v1::CreateJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::batch::v1::Job >

virtual GetJob(google::cloud::batch::v1::GetJobRequest const &)

Parameter
NameDescription
request google::cloud::batch::v1::GetJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::batch::v1::Job >

virtual DeleteJob(google::cloud::batch::v1::DeleteJobRequest const &)

Parameter
NameDescription
request google::cloud::batch::v1::DeleteJobRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::batch::v1::OperationMetadata > >

virtual ListJobs(google::cloud::batch::v1::ListJobsRequest)

Parameter
NameDescription
request google::cloud::batch::v1::ListJobsRequest
Returns
TypeDescription
StreamRange< google::cloud::batch::v1::Job >

virtual GetTask(google::cloud::batch::v1::GetTaskRequest const &)

Parameter
NameDescription
request google::cloud::batch::v1::GetTaskRequest const &
Returns
TypeDescription
StatusOr< google::cloud::batch::v1::Task >

virtual ListTasks(google::cloud::batch::v1::ListTasksRequest)

Parameter
NameDescription
request google::cloud::batch::v1::ListTasksRequest
Returns
TypeDescription
StreamRange< google::cloud::batch::v1::Task >