Class: Google::Apis::NetworkservicesV1beta1::HttpRouteQueryParameterMatch

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/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.



1550
1551
1552
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1550

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)


1527
1528
1529
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1527

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)


1534
1535
1536
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1534

def present_match
  @present_match
end

#query_parameterString

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

Returns:

  • (String)


1540
1541
1542
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1540

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)


1548
1549
1550
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1548

def regex_match
  @regex_match
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1555
1556
1557
1558
1559
1560
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1555

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