Class: Google::Apis::NetworkservicesV1::HttpRouteQueryParameterMatch

Inherits:
Object
  • Object
show all
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

Specifications to match a query parameter in the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpRouteQueryParameterMatch

Returns a new instance of HttpRouteQueryParameterMatch.



1746
1747
1748
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1746

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#exact_matchString

The value of the query parameter must exactly match the contents of exact_match. Only one of exact_match, regex_match, or present_match must be set. Corresponds to the JSON property exactMatch

Returns:

  • (String)


1723
1724
1725
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1723

def exact_match
  @exact_match
end

#present_matchBoolean Also known as: present_match?

Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not. Only one of exact_match, regex_match, or present_match must be set. Corresponds to the JSON property presentMatch

Returns:

  • (Boolean)


1730
1731
1732
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1730

def present_match
  @present_match
end

#query_parameterString

The name of the query parameter to match. Corresponds to the JSON property queryParameter

Returns:

  • (String)


1736
1737
1738
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1736

def query_parameter
  @query_parameter
end

#regex_matchString

The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/ google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set. Corresponds to the JSON property regexMatch

Returns:

  • (String)


1744
1745
1746
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1744

def regex_match
  @regex_match
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1751
1752
1753
1754
1755
1756
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1751

def update!(**args)
  @exact_match = args[:exact_match] if args.key?(:exact_match)
  @present_match = args[:present_match] if args.key?(:present_match)
  @query_parameter = args[:query_parameter] if args.key?(:query_parameter)
  @regex_match = args[:regex_match] if args.key?(:regex_match)
end