Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaEventParameter

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

This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaEventParameter

Returns a new instance of GoogleCloudIntegrationsV1alphaEventParameter.



6194
6195
6196
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6194

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

Instance Attribute Details

#keyString

Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. Corresponds to the JSON property key

Returns:

  • (String)


6187
6188
6189
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6187

def key
  @key
end

#valueGoogle::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValueType

The type of the parameter. Corresponds to the JSON property value



6192
6193
6194
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6192

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6199
6200
6201
6202
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6199

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