Class JobControllerConnection (2.34.0-rc)

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

To create a concrete instance, see MakeJobControllerConnection().

For mocking, see dataproc_v1_mocks::MockJobControllerConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual SubmitJob(google::cloud::dataproc::v1::SubmitJobRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::SubmitJobRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::Job >

virtual SubmitJobAsOperation(google::cloud::dataproc::v1::SubmitJobRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::SubmitJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Job > >

virtual SubmitJobAsOperation(NoAwaitTag, google::cloud::dataproc::v1::SubmitJobRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dataproc::v1::SubmitJobRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Job > >

virtual GetJob(google::cloud::dataproc::v1::GetJobRequest const &)

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

virtual ListJobs(google::cloud::dataproc::v1::ListJobsRequest)

Parameter
Name Description
request google::cloud::dataproc::v1::ListJobsRequest
Returns
Type Description
StreamRange< google::cloud::dataproc::v1::Job >

virtual UpdateJob(google::cloud::dataproc::v1::UpdateJobRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::UpdateJobRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::Job >

virtual CancelJob(google::cloud::dataproc::v1::CancelJobRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::CancelJobRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::Job >

virtual DeleteJob(google::cloud::dataproc::v1::DeleteJobRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::DeleteJobRequest const &
Returns
Type Description
Status

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 GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest 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 CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status