Class ZonesConnection (2.30.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::cpp::compute::zones::v1::GetZoneRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Zone >

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

Parameter
Name Description
request google::cloud::cpp::compute::zones::v1::ListZonesRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::Zone >