Class: Google::Apis::IntegrationsV1alpha::IoCloudeventsV1CloudEvent
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::IoCloudeventsV1CloudEvent
- 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
-- CloudEvent Context Attributes
Instance Attribute Summary collapse
-
#attributes ⇒ Hash<String,Google::Apis::IntegrationsV1alpha::IoCloudeventsV1CloudEventCloudEventAttributeValue>
Optional & Extension Attributes Corresponds to the JSON property
attributes. -
#binary_data ⇒ String
Corresponds to the JSON property
binaryDataNOTE: Values are automatically base64 encoded/decoded in the client library. -
#id ⇒ String
Required Attributes Corresponds to the JSON property
id. -
#proto_data ⇒ Hash<String,Object>
Corresponds to the JSON property
protoData. -
#source ⇒ String
URI-reference Corresponds to the JSON property
source. -
#spec_version ⇒ String
Corresponds to the JSON property
specVersion. -
#text_data ⇒ String
Corresponds to the JSON property
textData. -
#type ⇒ String
Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IoCloudeventsV1CloudEvent
constructor
A new instance of IoCloudeventsV1CloudEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IoCloudeventsV1CloudEvent
Returns a new instance of IoCloudeventsV1CloudEvent.
9325 9326 9327 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Hash<String,Google::Apis::IntegrationsV1alpha::IoCloudeventsV1CloudEventCloudEventAttributeValue>
Optional & Extension Attributes
Corresponds to the JSON property attributes
9287 9288 9289 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9287 def attributes @attributes end |
#binary_data ⇒ String
Corresponds to the JSON property binaryData
NOTE: Values are automatically base64 encoded/decoded in the client library.
9293 9294 9295 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9293 def binary_data @binary_data end |
#id ⇒ String
Required Attributes
Corresponds to the JSON property id
9298 9299 9300 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9298 def id @id end |
#proto_data ⇒ Hash<String,Object>
Corresponds to the JSON property protoData
9303 9304 9305 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9303 def proto_data @proto_data end |
#source ⇒ String
URI-reference
Corresponds to the JSON property source
9308 9309 9310 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9308 def source @source end |
#spec_version ⇒ String
Corresponds to the JSON property specVersion
9313 9314 9315 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9313 def spec_version @spec_version end |
#text_data ⇒ String
Corresponds to the JSON property textData
9318 9319 9320 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9318 def text_data @text_data end |
#type ⇒ String
Corresponds to the JSON property type
9323 9324 9325 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9323 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9330 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @binary_data = args[:binary_data] if args.key?(:binary_data) @id = args[:id] if args.key?(:id) @proto_data = args[:proto_data] if args.key?(:proto_data) @source = args[:source] if args.key?(:source) @spec_version = args[:spec_version] if args.key?(:spec_version) @text_data = args[:text_data] if args.key?(:text_data) @type = args[:type] if args.key?(:type) end |