Class: Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoCondition

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

Overview

Condition that uses operator to evaluate the key against the value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoCondition

Returns a new instance of EnterpriseCrmEventbusProtoCondition.



577
578
579
# File 'lib/google/apis/integrations_v1/classes.rb', line 577

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

Instance Attribute Details

#event_property_keyString

Key that's evaluated against the value. Please note the data type of the runtime value associated with the key should match the data type of value, else an IllegalArgumentException is thrown. Corresponds to the JSON property eventPropertyKey

Returns:

  • (String)


562
563
564
# File 'lib/google/apis/integrations_v1/classes.rb', line 562

def event_property_key
  @event_property_key
end

#operatorString

Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. Corresponds to the JSON property operator

Returns:

  • (String)


569
570
571
# File 'lib/google/apis/integrations_v1/classes.rb', line 569

def operator
  @operator
end

#valueGoogle::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoValueType

Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. Corresponds to the JSON property value



575
576
577
# File 'lib/google/apis/integrations_v1/classes.rb', line 575

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



582
583
584
585
586
# File 'lib/google/apis/integrations_v1/classes.rb', line 582

def update!(**args)
  @event_property_key = args[:event_property_key] if args.key?(:event_property_key)
  @operator = args[:operator] if args.key?(:operator)
  @value = args[:value] if args.key?(:value)
end