Class ExecutionsConnection (2.26.0)

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

To create a concrete instance, see MakeExecutionsConnection().

For mocking, see run_v2_mocks::MockExecutionsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetExecution(google::cloud::run::v2::GetExecutionRequest const &)

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

virtual ListExecutions(google::cloud::run::v2::ListExecutionsRequest)

Parameter
Name Description
request google::cloud::run::v2::ListExecutionsRequest
Returns
Type Description
StreamRange< google::cloud::run::v2::Execution >

virtual DeleteExecution(google::cloud::run::v2::DeleteExecutionRequest const &)

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

virtual DeleteExecution(ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteExecutionRequest const &)

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

virtual DeleteExecution(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Execution > >

virtual CancelExecution(google::cloud::run::v2::CancelExecutionRequest const &)

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

virtual CancelExecution(ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CancelExecutionRequest const &)

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

virtual CancelExecution(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Execution > >