Class AddressesConnection (2.27.0)

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)

Parameter
Name Description
request google::cloud::cpp::compute::addresses::v1::AggregatedListAddressesRequest
Returns
Type Description
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::AddressesScopedList > >

virtual DeleteAddress(google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const &)

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

virtual DeleteAddress(NoAwaitTag, google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual DeleteAddress(google::cloud::cpp::compute::v1::Operation const &)

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

virtual GetAddress(google::cloud::cpp::compute::addresses::v1::GetAddressRequest const &)

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

virtual InsertAddress(google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const &)

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

virtual InsertAddress(NoAwaitTag, google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual InsertAddress(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation 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 Move(NoAwaitTag, google::cloud::cpp::compute::addresses::v1::MoveRequest const &)

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

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

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation 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 > >

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

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

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

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