Class: Google::Cloud::NetworkServices::V1::HttpRoute::RouteRule

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/networkservices/v1/http_route.rb

Overview

Specifies how to match traffic and how to route traffic when traffic is matched.

Instance Attribute Summary collapse

Instance Attribute Details

#action::Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction

Returns The detailed rule defining how to route matched traffic.

Returns:



569
570
571
572
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 569

class RouteRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#matches::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::RouteMatch>

Returns 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.



569
570
571
572
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 569

class RouteRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end