Class RoutersConnection (2.29.0)

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

To create a concrete instance, see MakeRoutersConnection().

For mocking, see compute_routers_v1_mocks::MockRoutersConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual AggregatedListRouters(google::cloud::cpp::compute::routers::v1::AggregatedListRoutersRequest)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::AggregatedListRoutersRequest
Returns
Type Description
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::RoutersScopedList > >

virtual DeleteRouter(google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const &)

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

virtual DeleteRouter(NoAwaitTag, google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const &)

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

virtual DeleteRouter(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 GetRouter(google::cloud::cpp::compute::routers::v1::GetRouterRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::GetRouterRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Router >

virtual GetNatIpInfo(google::cloud::cpp::compute::routers::v1::GetNatIpInfoRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::GetNatIpInfoRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::NatIpInfoResponse >

virtual GetNatMappingInfo(google::cloud::cpp::compute::routers::v1::GetNatMappingInfoRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::GetNatMappingInfoRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::VmEndpointNatMappingsList >

virtual GetRouterStatus(google::cloud::cpp::compute::routers::v1::GetRouterStatusRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::GetRouterStatusRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::RouterStatusResponse >

virtual InsertRouter(google::cloud::cpp::compute::routers::v1::InsertRouterRequest const &)

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

virtual InsertRouter(NoAwaitTag, google::cloud::cpp::compute::routers::v1::InsertRouterRequest const &)

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

virtual InsertRouter(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 ListRouters(google::cloud::cpp::compute::routers::v1::ListRoutersRequest)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::ListRoutersRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::Router >

virtual PatchRouter(google::cloud::cpp::compute::routers::v1::PatchRouterRequest const &)

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

virtual PatchRouter(NoAwaitTag, google::cloud::cpp::compute::routers::v1::PatchRouterRequest const &)

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

virtual PatchRouter(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 Preview(google::cloud::cpp::compute::routers::v1::PreviewRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::PreviewRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::RoutersPreviewResponse >

virtual UpdateRouter(google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const &)

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

virtual UpdateRouter(NoAwaitTag, google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const &)

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

virtual UpdateRouter(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 > >