Class CloudTasksConnection (2.21.0)

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

To create a concrete instance, see MakeCloudTasksConnection().

For mocking, see tasks_v2_mocks::MockCloudTasksConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListQueues(google::cloud::tasks::v2::ListQueuesRequest)

Parameter
NameDescription
request google::cloud::tasks::v2::ListQueuesRequest
Returns
TypeDescription
StreamRange< google::cloud::tasks::v2::Queue >

virtual GetQueue(google::cloud::tasks::v2::GetQueueRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::GetQueueRequest const &
Returns
TypeDescription
StatusOr< google::cloud::tasks::v2::Queue >

virtual CreateQueue(google::cloud::tasks::v2::CreateQueueRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::CreateQueueRequest const &
Returns
TypeDescription
StatusOr< google::cloud::tasks::v2::Queue >

virtual UpdateQueue(google::cloud::tasks::v2::UpdateQueueRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::UpdateQueueRequest const &
Returns
TypeDescription
StatusOr< google::cloud::tasks::v2::Queue >

virtual DeleteQueue(google::cloud::tasks::v2::DeleteQueueRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::DeleteQueueRequest const &
Returns
TypeDescription
Status

virtual PurgeQueue(google::cloud::tasks::v2::PurgeQueueRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::PurgeQueueRequest const &
Returns
TypeDescription
StatusOr< google::cloud::tasks::v2::Queue >

virtual PauseQueue(google::cloud::tasks::v2::PauseQueueRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::PauseQueueRequest const &
Returns
TypeDescription
StatusOr< google::cloud::tasks::v2::Queue >

virtual ResumeQueue(google::cloud::tasks::v2::ResumeQueueRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::ResumeQueueRequest const &
Returns
TypeDescription
StatusOr< google::cloud::tasks::v2::Queue >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >

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

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

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

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

virtual CreateTask(google::cloud::tasks::v2::CreateTaskRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::CreateTaskRequest const &
Returns
TypeDescription
StatusOr< google::cloud::tasks::v2::Task >

virtual DeleteTask(google::cloud::tasks::v2::DeleteTaskRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::DeleteTaskRequest const &
Returns
TypeDescription
Status

virtual RunTask(google::cloud::tasks::v2::RunTaskRequest const &)

Parameter
NameDescription
request google::cloud::tasks::v2::RunTaskRequest const &
Returns
TypeDescription
StatusOr< google::cloud::tasks::v2::Task >