Class JobsConnection (2.18.0)

The JobsConnection object for JobsClient.

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

To create a concrete instance, see MakeJobsConnection().

For mocking, see run_v2_mocks::MockJobsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateJob(google::cloud::run::v2::CreateJobRequest const &)

Parameter
Name Description
request google::cloud::run::v2::CreateJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Job > >

virtual GetJob(google::cloud::run::v2::GetJobRequest const &)

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

virtual ListJobs(google::cloud::run::v2::ListJobsRequest)

Parameter
Name Description
request google::cloud::run::v2::ListJobsRequest
Returns
Type Description
StreamRange< google::cloud::run::v2::Job >

virtual UpdateJob(google::cloud::run::v2::UpdateJobRequest const &)

Parameter
Name Description
request google::cloud::run::v2::UpdateJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Job > >

virtual DeleteJob(google::cloud::run::v2::DeleteJobRequest const &)

Parameter
Name Description
request google::cloud::run::v2::DeleteJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Job > >

virtual RunJob(google::cloud::run::v2::RunJobRequest const &)

Parameter
Name Description
request google::cloud::run::v2::RunJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Execution > >

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 >