Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoCondition
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoCondition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb
Overview
Condition that uses operator to evaluate the key against the value.
Instance Attribute Summary collapse
-
#event_property_key ⇒ String
Key that's evaluated against the
value. -
#operator ⇒ String
Operator used to evaluate the condition.
-
#value ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoValueType
Used for define type for values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseCrmEventbusProtoCondition
constructor
A new instance of EnterpriseCrmEventbusProtoCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseCrmEventbusProtoCondition
Returns a new instance of EnterpriseCrmEventbusProtoCondition.
475 476 477 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 475 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_property_key ⇒ String
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
460 461 462 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 460 def event_property_key @event_property_key end |
#operator ⇒ String
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
467 468 469 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 467 def operator @operator end |
#value ⇒ Google::Apis::IntegrationsV1alpha::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
473 474 475 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 473 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
480 481 482 483 484 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 480 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 |