Class GlobalForwardingRulesConnection (2.16.0)

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

To create a concrete instance, see MakeGlobalForwardingRulesConnection().

For mocking, see compute_global_forwarding_rules_v1_mocks::MockGlobalForwardingRulesConnection.

Functions

virtual options()

Returns
Type Description
Options

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

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

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

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

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

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

virtual ListGlobalForwardingRules(google::cloud::cpp::compute::global_forwarding_rules::v1::ListGlobalForwardingRulesRequest)

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

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

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

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

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

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

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