Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch.
Specifies how to select a route rule based on HTTP request headers.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#exact_match
def exact_match() -> ::String
-
(::String) — The value of the header should match exactly the content of
exact_match.
Note: The following fields are mutually exclusive:
exact_match
,regex_match
,prefix_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#exact_match=
def exact_match=(value) -> ::String
-
value (::String) — The value of the header should match exactly the content of
exact_match.
Note: The following fields are mutually exclusive:
exact_match
,regex_match
,prefix_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The value of the header should match exactly the content of
exact_match.
Note: The following fields are mutually exclusive:
exact_match
,regex_match
,prefix_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#header
def header() -> ::String
- (::String) — The name of the HTTP header to match against.
#header=
def header=(value) -> ::String
- value (::String) — The name of the HTTP header to match against.
- (::String) — The name of the HTTP header to match against.
#invert_match
def invert_match() -> ::Boolean
- (::Boolean) — If specified, the match result will be inverted before checking. Default value is set to false.
#invert_match=
def invert_match=(value) -> ::Boolean
- value (::Boolean) — If specified, the match result will be inverted before checking. Default value is set to false.
- (::Boolean) — If specified, the match result will be inverted before checking. Default value is set to false.
#prefix_match
def prefix_match() -> ::String
-
(::String) — The value of the header must start with the contents of prefix_match.
Note: The following fields are mutually exclusive:
prefix_match
,exact_match
,regex_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#prefix_match=
def prefix_match=(value) -> ::String
-
value (::String) — The value of the header must start with the contents of prefix_match.
Note: The following fields are mutually exclusive:
prefix_match
,exact_match
,regex_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The value of the header must start with the contents of prefix_match.
Note: The following fields are mutually exclusive:
prefix_match
,exact_match
,regex_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#present_match
def present_match() -> ::Boolean
-
(::Boolean) — A header with header_name must exist. The match takes place whether or
not the header has a value.
Note: The following fields are mutually exclusive:
present_match
,exact_match
,regex_match
,prefix_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#present_match=
def present_match=(value) -> ::Boolean
-
value (::Boolean) — A header with header_name must exist. The match takes place whether or
not the header has a value.
Note: The following fields are mutually exclusive:
present_match
,exact_match
,regex_match
,prefix_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Boolean) — A header with header_name must exist. The match takes place whether or
not the header has a value.
Note: The following fields are mutually exclusive:
present_match
,exact_match
,regex_match
,prefix_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#range_match
def range_match() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange
-
(::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange) — If specified, the rule will match if the request header value is within
the range.
Note: The following fields are mutually exclusive:
range_match
,exact_match
,regex_match
,prefix_match
,present_match
,suffix_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#range_match=
def range_match=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange
-
value (::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange) — If specified, the rule will match if the request header value is within
the range.
Note: The following fields are mutually exclusive:
range_match
,exact_match
,regex_match
,prefix_match
,present_match
,suffix_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange) — If specified, the rule will match if the request header value is within
the range.
Note: The following fields are mutually exclusive:
range_match
,exact_match
,regex_match
,prefix_match
,present_match
,suffix_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#regex_match
def regex_match() -> ::String
-
(::String) — The value of the header must match the regular expression specified in
regex_match. For regular expression grammar, please see:
https://github.com/google/re2/wiki/Syntax
Note: The following fields are mutually exclusive:
regex_match
,exact_match
,prefix_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#regex_match=
def regex_match=(value) -> ::String
-
value (::String) — The value of the header must match the regular expression specified in
regex_match. For regular expression grammar, please see:
https://github.com/google/re2/wiki/Syntax
Note: The following fields are mutually exclusive:
regex_match
,exact_match
,prefix_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The value of the header must match the regular expression specified in
regex_match. For regular expression grammar, please see:
https://github.com/google/re2/wiki/Syntax
Note: The following fields are mutually exclusive:
regex_match
,exact_match
,prefix_match
,present_match
,suffix_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#suffix_match
def suffix_match() -> ::String
-
(::String) — The value of the header must end with the contents of suffix_match.
Note: The following fields are mutually exclusive:
suffix_match
,exact_match
,regex_match
,prefix_match
,present_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#suffix_match=
def suffix_match=(value) -> ::String
-
value (::String) — The value of the header must end with the contents of suffix_match.
Note: The following fields are mutually exclusive:
suffix_match
,exact_match
,regex_match
,prefix_match
,present_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The value of the header must end with the contents of suffix_match.
Note: The following fields are mutually exclusive:
suffix_match
,exact_match
,regex_match
,prefix_match
,present_match
,range_match
. If a field in that set is populated, all other fields in the set will automatically be cleared.