Class JobsConnection (2.32.0-rc)

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 CreateJob(NoAwaitTag, google::cloud::run::v2::CreateJobRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::run::v2::CreateJobRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation 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 UpdateJob(NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::run::v2::UpdateJobRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation 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 DeleteJob(NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::run::v2::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::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 RunJob(NoAwaitTag, google::cloud::run::v2::RunJobRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::run::v2::RunJobRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

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

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 WaitOperation(google::longrunning::WaitOperationRequest const &)

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