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: 7]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValueMatcher

Returns a new instance of ValueMatcher.



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

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)


1656
1657
1658
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1656

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



1662
1663
1664
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1662

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



1667
1668
1669
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1667

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



1672
1673
1674
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1672

def null_match
  @null_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)


1679
1680
1681
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1679

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



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

def string_match
  @string_match
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1692
1693
1694
1695
1696
1697
1698
1699
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1692

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)
  @present_match = args[:present_match] if args.key?(:present_match)
  @string_match = args[:string_match] if args.key?(:string_match)
end