Class RevisionsConnection (2.33.0)

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

To create a concrete instance, see MakeRevisionsConnection().

For mocking, see run_v2_mocks::MockRevisionsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetRevision(google::cloud::run::v2::GetRevisionRequest const &)

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

virtual ListRevisions(google::cloud::run::v2::ListRevisionsRequest)

Parameter
Name Description
request google::cloud::run::v2::ListRevisionsRequest
Returns
Type Description
StreamRange< google::cloud::run::v2::Revision >

virtual DeleteRevision(google::cloud::run::v2::DeleteRevisionRequest const &)

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

virtual DeleteRevision(NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Revision > >

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 >