Class BatchServiceConnection (2.17.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::batch::v1::CreateJobRequest const &
Returns
Type Description
StatusOr< google::cloud::batch::v1::Job >

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

Parameter
Name Description
request google::cloud::batch::v1::GetJobRequest const &
Returns
Type Description
StatusOr< google::cloud::batch::v1::Job >

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

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

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

Parameter
Name Description
request google::cloud::batch::v1::ListJobsRequest
Returns
Type Description
StreamRange< google::cloud::batch::v1::Job >

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

Parameter
Name Description
request google::cloud::batch::v1::GetTaskRequest const &
Returns
Type Description
StatusOr< google::cloud::batch::v1::Task >

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

Parameter
Name Description
request google::cloud::batch::v1::ListTasksRequest
Returns
Type Description
StreamRange< google::cloud::batch::v1::Task >