Class RevisionsConnection (2.21.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::run::v2::GetRevisionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::run::v2::Revision >

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

Parameter
NameDescription
request google::cloud::run::v2::ListRevisionsRequest
Returns
TypeDescription
StreamRange< google::cloud::run::v2::Revision >

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

Parameter
NameDescription
request google::cloud::run::v2::DeleteRevisionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::run::v2::Revision > >