Class RegionsConnection (2.20.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::cpp::compute::regions::v1::GetRegionRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Region >

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

Parameter
Name Description
request google::cloud::cpp::compute::regions::v1::ListRegionsRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::Region >