Class ZonesConnection (2.22.0)

The ZonesConnection object for ZonesClient.

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

To create a concrete instance, see MakeZonesConnection().

For mocking, see compute_zones_v1_mocks::MockZonesConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetZone(google::cloud::cpp::compute::zones::v1::GetZoneRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::zones::v1::GetZoneRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Zone >

virtual ListZones(google::cloud::cpp::compute::zones::v1::ListZonesRequest)

Parameter
NameDescription
request google::cloud::cpp::compute::zones::v1::ListZonesRequest
Returns
TypeDescription
StreamRange< google::cloud::cpp::compute::v1::Zone >