Class CloudTasksConnection (2.29.0-rc)

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
Type Description
Options

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

Parameter
Name Description
request google::cloud::tasks::v2::ListQueuesRequest
Returns
Type Description
StreamRange< google::cloud::tasks::v2::Queue >

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

Parameter
Name Description
request google::cloud::tasks::v2::GetQueueRequest const &
Returns
Type Description
StatusOr< google::cloud::tasks::v2::Queue >

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

Parameter
Name Description
request google::cloud::tasks::v2::CreateQueueRequest const &
Returns
Type Description
StatusOr< google::cloud::tasks::v2::Queue >

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

Parameter
Name Description
request google::cloud::tasks::v2::UpdateQueueRequest const &
Returns
Type Description
StatusOr< google::cloud::tasks::v2::Queue >

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

Parameter
Name Description
request google::cloud::tasks::v2::DeleteQueueRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::cloud::tasks::v2::PurgeQueueRequest const &
Returns
Type Description
StatusOr< google::cloud::tasks::v2::Queue >

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

Parameter
Name Description
request google::cloud::tasks::v2::PauseQueueRequest const &
Returns
Type Description
StatusOr< google::cloud::tasks::v2::Queue >

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

Parameter
Name Description
request google::cloud::tasks::v2::ResumeQueueRequest const &
Returns
Type Description
StatusOr< google::cloud::tasks::v2::Queue >

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

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

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

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

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

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

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

Parameter
Name Description
request google::cloud::tasks::v2::ListTasksRequest
Returns
Type Description
StreamRange< google::cloud::tasks::v2::Task >

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

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

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

Parameter
Name Description
request google::cloud::tasks::v2::CreateTaskRequest const &
Returns
Type Description
StatusOr< google::cloud::tasks::v2::Task >

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

Parameter
Name Description
request google::cloud::tasks::v2::DeleteTaskRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::cloud::tasks::v2::RunTaskRequest const &
Returns
Type Description
StatusOr< google::cloud::tasks::v2::Task >