Class: Google::Apis::NetworkservicesV1::HttpRouteRouteMatch
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1::HttpRouteRouteMatch
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb
Overview
RouteMatch defines specifications used to match requests. If multiple match types are set, this RouteMatch will match if ALL type of matches are matched.
Instance Attribute Summary collapse
-
#full_path_match ⇒ String
The HTTP request path value should exactly match this value.
-
#headers ⇒ Array<Google::Apis::NetworkservicesV1::HttpRouteHeaderMatch>
Specifies a list of HTTP request headers to match against.
-
#ignore_case ⇒ Boolean
(also: #ignore_case?)
Specifies if prefix_match and full_path_match matches are case sensitive.
-
#prefix_match ⇒ String
The HTTP request path value must begin with specified prefix_match.
-
#query_parameters ⇒ Array<Google::Apis::NetworkservicesV1::HttpRouteQueryParameterMatch>
Specifies a list of query parameters to match against.
-
#regex_match ⇒ String
The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpRouteRouteMatch
constructor
A new instance of HttpRouteRouteMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpRouteRouteMatch
Returns a new instance of HttpRouteRouteMatch.
1675 1676 1677 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1675 def initialize(**args) update!(**args) end |
Instance Attribute Details
#full_path_match ⇒ String
The HTTP request path value should exactly match this value. Only one of
full_path_match, prefix_match, or regex_match should be used.
Corresponds to the JSON property fullPathMatch
1638 1639 1640 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1638 def full_path_match @full_path_match end |
#headers ⇒ Array<Google::Apis::NetworkservicesV1::HttpRouteHeaderMatch>
Specifies a list of HTTP request headers to match against. ALL of the supplied
headers must be matched.
Corresponds to the JSON property headers
1644 1645 1646 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1644 def headers @headers end |
#ignore_case ⇒ Boolean Also known as: ignore_case?
Specifies if prefix_match and full_path_match matches are case sensitive. The
default value is false.
Corresponds to the JSON property ignoreCase
1650 1651 1652 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1650 def ignore_case @ignore_case end |
#prefix_match ⇒ String
The HTTP request path value must begin with specified prefix_match.
prefix_match must begin with a /. Only one of full_path_match, prefix_match,
or regex_match should be used.
Corresponds to the JSON property prefixMatch
1658 1659 1660 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1658 def prefix_match @prefix_match end |
#query_parameters ⇒ Array<Google::Apis::NetworkservicesV1::HttpRouteQueryParameterMatch>
Specifies a list of query parameters to match against. ALL of the query
parameters must be matched.
Corresponds to the JSON property queryParameters
1664 1665 1666 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1664 def query_parameters @query_parameters end |
#regex_match ⇒ String
The HTTP request path value must satisfy the regular expression specified by
regex_match after removing any query parameters and anchor supplied with the
original URL. For regular expression grammar, please see https://github.com/
google/re2/wiki/Syntax Only one of full_path_match, prefix_match, or
regex_match should be used.
Corresponds to the JSON property regexMatch
1673 1674 1675 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1673 def regex_match @regex_match end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1680 1681 1682 1683 1684 1685 1686 1687 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1680 def update!(**args) @full_path_match = args[:full_path_match] if args.key?(:full_path_match) @headers = args[:headers] if args.key?(:headers) @ignore_case = args[:ignore_case] if args.key?(:ignore_case) @prefix_match = args[:prefix_match] if args.key?(:prefix_match) @query_parameters = args[:query_parameters] if args.key?(:query_parameters) @regex_match = args[:regex_match] if args.key?(:regex_match) end |