Class TargetVpnGatewaysConnection (2.15.1)

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

To create a concrete instance, see MakeTargetVpnGatewaysConnection().

For mocking, see compute_target_vpn_gateways_v1_mocks::MockTargetVpnGatewaysConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual AggregatedListTargetVpnGateways(google::cloud::cpp::compute::target_vpn_gateways::v1::AggregatedListTargetVpnGatewaysRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::target_vpn_gateways::v1::AggregatedListTargetVpnGatewaysRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::TargetVpnGatewayAggregatedList >

virtual DeleteTargetVpnGateways(google::cloud::cpp::compute::target_vpn_gateways::v1::DeleteTargetVpnGatewaysRequest const &)

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

virtual GetTargetVpnGateways(google::cloud::cpp::compute::target_vpn_gateways::v1::GetTargetVpnGatewaysRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::target_vpn_gateways::v1::GetTargetVpnGatewaysRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::TargetVpnGateway >

virtual InsertTargetVpnGateways(google::cloud::cpp::compute::target_vpn_gateways::v1::InsertTargetVpnGatewaysRequest const &)

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

virtual ListTargetVpnGateways(google::cloud::cpp::compute::target_vpn_gateways::v1::ListTargetVpnGatewaysRequest)

Parameter
Name Description
request google::cloud::cpp::compute::target_vpn_gateways::v1::ListTargetVpnGatewaysRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::TargetVpnGateway >

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

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