Class TargetVpnGatewaysConnection (2.16.0)

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)

Parameter
Name Description
request google::cloud::cpp::compute::target_vpn_gateways::v1::AggregatedListTargetVpnGatewaysRequest
Returns
Type Description
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::TargetVpnGatewaysScopedList > >

virtual DeleteTargetVpnGateway(google::cloud::cpp::compute::target_vpn_gateways::v1::DeleteTargetVpnGatewayRequest const &)

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

virtual GetTargetVpnGateway(google::cloud::cpp::compute::target_vpn_gateways::v1::GetTargetVpnGatewayRequest const &)

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

virtual InsertTargetVpnGateway(google::cloud::cpp::compute::target_vpn_gateways::v1::InsertTargetVpnGatewayRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::target_vpn_gateways::v1::InsertTargetVpnGatewayRequest 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 > >