Class BatchServiceConnection (2.34.0-rc)

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 DeleteJob(NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::batch::v1::DeleteJobRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteJob(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status