Class RoutersConnection (2.15.1)

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 const &)

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

virtual DeleteRouters(google::cloud::cpp::compute::routers::v1::DeleteRoutersRequest const &)

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

virtual GetRouters(google::cloud::cpp::compute::routers::v1::GetRoutersRequest const &)

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

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 InsertRouters(google::cloud::cpp::compute::routers::v1::InsertRoutersRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::InsertRoutersRequest 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 PatchRouters(google::cloud::cpp::compute::routers::v1::PatchRoutersRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::routers::v1::PatchRoutersRequest 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 UpdateRouters(google::cloud::cpp::compute::routers::v1::UpdateRoutersRequest const &)

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