Class: Google::Apis::RunV1alpha1::CloudEventOverrides
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::CloudEventOverrides
- 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
-
#extensions ⇒ Hash<String,String>
Extensions specify what attribute are added or overridden on the outbound event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudEventOverrides
constructor
A new instance of CloudEventOverrides.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#extensions ⇒ Hash<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
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 |