Class: Google::Apis::RunV1alpha1::CloudEventOverrides

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

Overview

CloudEventOverrides defines arguments for a Source that control the output format of the CloudEvents produced by the Source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CloudEventOverrides

Returns a new instance of CloudEventOverrides.


397
398
399
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 397

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

Instance Attribute Details

#extensionsHash<String,String>

Extensions specify what attribute are added or overridden on the outbound event. Each Extensions key-value pair are set on the event as an attribute extension independently. +optional Corresponds to the JSON property extensions

Returns:

  • (Hash<String,String>)

395
396
397
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 395

def extensions
  @extensions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


402
403
404
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 402

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