Class: Google::Apis::TrafficdirectorV3::ValueMatcher

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/trafficdirector_v3/classes.rb,
lib/google/apis/trafficdirector_v3/representations.rb,
lib/google/apis/trafficdirector_v3/representations.rb

Overview

Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 8]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValueMatcher

Returns a new instance of ValueMatcher.



1711
1712
1713
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1711

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

Instance Attribute Details

#bool_matchBoolean Also known as: bool_match?

If specified, a match occurs if and only if the target value is a bool value and is equal to this field. Corresponds to the JSON property boolMatch

Returns:

  • (Boolean)


1675
1676
1677
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1675

def bool_match
  @bool_match
end

#double_matchGoogle::Apis::TrafficdirectorV3::DoubleMatcher

Specifies the way to match a double value. Corresponds to the JSON property doubleMatch



1681
1682
1683
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1681

def double_match
  @double_match
end

#list_matchGoogle::Apis::TrafficdirectorV3::ListMatcher

Specifies the way to match a list value. Corresponds to the JSON property listMatch



1686
1687
1688
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1686

def list_match
  @list_match
end

#null_matchGoogle::Apis::TrafficdirectorV3::NullMatch

NullMatch is an empty message to specify a null value. Corresponds to the JSON property nullMatch



1691
1692
1693
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1691

def null_match
  @null_match
end

#or_matchGoogle::Apis::TrafficdirectorV3::OrMatcher

Specifies a list of alternatives for the match. Corresponds to the JSON property orMatch



1696
1697
1698
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1696

def or_match
  @or_match
end

#present_matchBoolean Also known as: present_match?

If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata. If the path is referring to a non-primitive value, the result is always not matched. Corresponds to the JSON property presentMatch

Returns:

  • (Boolean)


1703
1704
1705
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1703

def present_match
  @present_match
end

#string_matchGoogle::Apis::TrafficdirectorV3::StringMatcher

Specifies the way to match a string. [#next-free-field: 8] Corresponds to the JSON property stringMatch



1709
1710
1711
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1709

def string_match
  @string_match
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1716
1717
1718
1719
1720
1721
1722
1723
1724
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1716

def update!(**args)
  @bool_match = args[:bool_match] if args.key?(:bool_match)
  @double_match = args[:double_match] if args.key?(:double_match)
  @list_match = args[:list_match] if args.key?(:list_match)
  @null_match = args[:null_match] if args.key?(:null_match)
  @or_match = args[:or_match] if args.key?(:or_match)
  @present_match = args[:present_match] if args.key?(:present_match)
  @string_match = args[:string_match] if args.key?(:string_match)
end