Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoPropertyEntry

Inherits:
Object
  • Object
show all
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

Key-value pair of EventBus property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoPropertyEntry

Returns a new instance of EnterpriseCrmEventbusProtoPropertyEntry.



2077
2078
2079
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 2077

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

Instance Attribute Details

#keyString

Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. Corresponds to the JSON property key

Returns:

  • (String)


2069
2070
2071
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 2069

def key
  @key
end

#valueGoogle::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



2075
2076
2077
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 2075

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2082
2083
2084
2085
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 2082

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