Class TasksConnection (2.22.0)

The TasksConnection object for TasksClient.

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

To create a concrete instance, see MakeTasksConnection().

For mocking, see run_v2_mocks::MockTasksConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetTask(google::cloud::run::v2::GetTaskRequest const &)

Parameter
NameDescription
request google::cloud::run::v2::GetTaskRequest const &
Returns
TypeDescription
StatusOr< google::cloud::run::v2::Task >

virtual ListTasks(google::cloud::run::v2::ListTasksRequest)

Parameter
NameDescription
request google::cloud::run::v2::ListTasksRequest
Returns
TypeDescription
StreamRange< google::cloud::run::v2::Task >