Class ForwardingRulesConnection (2.18.0)

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

To create a concrete instance, see MakeForwardingRulesConnection().

For mocking, see compute_forwarding_rules_v1_mocks::MockForwardingRulesConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual AggregatedListForwardingRules(google::cloud::cpp::compute::forwarding_rules::v1::AggregatedListForwardingRulesRequest)

Parameter
Name Description
request google::cloud::cpp::compute::forwarding_rules::v1::AggregatedListForwardingRulesRequest
Returns
Type Description
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::ForwardingRulesScopedList > >

virtual DeleteForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1::DeleteForwardingRuleRequest const &)

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

virtual GetForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1::GetForwardingRuleRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::forwarding_rules::v1::GetForwardingRuleRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::ForwardingRule >

virtual InsertForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1::InsertForwardingRuleRequest const &)

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

virtual ListForwardingRules(google::cloud::cpp::compute::forwarding_rules::v1::ListForwardingRulesRequest)

Parameter
Name Description
request google::cloud::cpp::compute::forwarding_rules::v1::ListForwardingRulesRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::ForwardingRule >

virtual PatchForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1::PatchForwardingRuleRequest const &)

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

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

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

virtual SetTarget(google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const &)

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