Class RegionsConnection (2.21.0)

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

To create a concrete instance, see MakeRegionsConnection().

For mocking, see compute_regions_v1_mocks::MockRegionsConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetRegion(google::cloud::cpp::compute::regions::v1::GetRegionRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::regions::v1::GetRegionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Region >

virtual ListRegions(google::cloud::cpp::compute::regions::v1::ListRegionsRequest)

Parameter
NameDescription
request google::cloud::cpp::compute::regions::v1::ListRegionsRequest
Returns
TypeDescription
StreamRange< google::cloud::cpp::compute::v1::Region >