Class AddressesConnection (2.15.1)

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

To create a concrete instance, see MakeAddressesConnection().

For mocking, see compute_addresses_v1_mocks::MockAddressesConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual AggregatedListAddresses(google::cloud::cpp::compute::addresses::v1::AggregatedListAddressesRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::addresses::v1::AggregatedListAddressesRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::AddressAggregatedList >

virtual DeleteAddresses(google::cloud::cpp::compute::addresses::v1::DeleteAddressesRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::addresses::v1::DeleteAddressesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetAddresses(google::cloud::cpp::compute::addresses::v1::GetAddressesRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::addresses::v1::GetAddressesRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Address >

virtual InsertAddresses(google::cloud::cpp::compute::addresses::v1::InsertAddressesRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::addresses::v1::InsertAddressesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual ListAddresses(google::cloud::cpp::compute::addresses::v1::ListAddressesRequest)

Parameter
Name Description
request google::cloud::cpp::compute::addresses::v1::ListAddressesRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::Address >

virtual Move(google::cloud::cpp::compute::addresses::v1::MoveRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::addresses::v1::MoveRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetLabels(google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >