Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::RouteRule (v1.0.1)

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
Returns

#action=

def action=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction
Parameter
Returns

#matches

def matches() -> ::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::RouteMatch>
Returns
  • (::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>
Parameter
  • 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.

Returns
  • (::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.