Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::RouteRule.
Specifies how to match traffic and how to route traffic when traffic is matched.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#action
def action() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction
- (::Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction) — The detailed rule defining how to route matched traffic.
#action=
def action=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction
- value (::Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction) — The detailed rule defining how to route matched traffic.
- (::Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction) — The detailed rule defining how to route matched traffic.
#matches
def matches() -> ::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::RouteMatch>
-
(::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::RouteMatch>) — A list of matches define conditions used for matching the rule against
incoming HTTP requests. Each match is independent, i.e. this rule will be
matched if ANY one of the matches is satisfied.
If no matches field is specified, this rule will unconditionally match traffic.
If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
#matches=
def matches=(value) -> ::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::RouteMatch>
-
value (::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::RouteMatch>) — A list of matches define conditions used for matching the rule against
incoming HTTP requests. Each match is independent, i.e. this rule will be
matched if ANY one of the matches is satisfied.
If no matches field is specified, this rule will unconditionally match traffic.
If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
-
(::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::RouteMatch>) — A list of matches define conditions used for matching the rule against
incoming HTTP requests. Each match is independent, i.e. this rule will be
matched if ANY one of the matches is satisfied.
If no matches field is specified, this rule will unconditionally match traffic.
If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.