Class: Google::Apis::TrafficdirectorV2::ValueMatcher

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



1331
1332
1333
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1331

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)


1300
1301
1302
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1300

def bool_match
  @bool_match
end

#double_matchGoogle::Apis::TrafficdirectorV2::DoubleMatcher

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



1306
1307
1308
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1306

def double_match
  @double_match
end

#list_matchGoogle::Apis::TrafficdirectorV2::ListMatcher

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



1311
1312
1313
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1311

def list_match
  @list_match
end

#null_matchGoogle::Apis::TrafficdirectorV2::NullMatch

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



1316
1317
1318
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1316

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)


1323
1324
1325
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1323

def present_match
  @present_match
end

#string_matchGoogle::Apis::TrafficdirectorV2::StringMatcher

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



1329
1330
1331
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1329

def string_match
  @string_match
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1336
1337
1338
1339
1340
1341
1342
1343
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1336

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