Class: Google::Apis::ComputeAlpha::HttpQueryParameterMatch
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::HttpQueryParameterMatch
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
HttpRouteRuleMatch criteria for a request's query parameter.
Instance Attribute Summary collapse
-
#exact_match ⇒ String
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.
-
#name ⇒ String
The name of the query parameter to match.
-
#present_match ⇒ Boolean
(also: #present_match?)
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.
-
#regex_match ⇒ String
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpQueryParameterMatch
constructor
A new instance of HttpQueryParameterMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ HttpQueryParameterMatch
Returns a new instance of HttpQueryParameterMatch
9174 9175 9176 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exact_match ⇒ String
The queryParameterMatch matches if the value of the parameter exactly matches
the contents of exactMatch.
Only one of presentMatch, exactMatch and regexMatch must be set.
Corresponds to the JSON property exactMatch
9150 9151 9152 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9150 def exact_match @exact_match end |
#name ⇒ String
The name of the query parameter to match. The query parameter must exist in
the request, in the absence of which the request match fails.
Corresponds to the JSON property name
9156 9157 9158 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9156 def name @name end |
#present_match ⇒ Boolean Also known as: present_match?
Specifies that the queryParameterMatch matches if the request contains the
query parameter, irrespective of whether the parameter has a value or not.
Only one of presentMatch, exactMatch and regexMatch must be set.
Corresponds to the JSON property presentMatch
9163 9164 9165 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9163 def present_match @present_match end |
#regex_match ⇒ String
The queryParameterMatch matches if the value of the parameter matches the
regular expression specified by regexMatch. For the regular expression grammar,
please see en.cppreference.com/w/cpp/regex/ecmascript
Only one of presentMatch, exactMatch and regexMatch must be set.
Corresponds to the JSON property regexMatch
9172 9173 9174 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9172 def regex_match @regex_match end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9179 9180 9181 9182 9183 9184 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9179 def update!(**args) @exact_match = args[:exact_match] if args.key?(:exact_match) @name = args[:name] if args.key?(:name) @present_match = args[:present_match] if args.key?(:present_match) @regex_match = args[:regex_match] if args.key?(:regex_match) end |