Class: Google::Apis::IntegrationsV1alpha::IoCloudeventsV1CloudEvent

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

-- CloudEvent Context Attributes

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesHash<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_dataString

Corresponds to the JSON property binaryData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


9293
9294
9295
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9293

def binary_data
  @binary_data
end

#idString

Required Attributes Corresponds to the JSON property id

Returns:

  • (String)


9298
9299
9300
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9298

def id
  @id
end

#proto_dataHash<String,Object>

Corresponds to the JSON property protoData

Returns:

  • (Hash<String,Object>)


9303
9304
9305
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9303

def proto_data
  @proto_data
end

#sourceString

URI-reference Corresponds to the JSON property source

Returns:

  • (String)


9308
9309
9310
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9308

def source
  @source
end

#spec_versionString

Corresponds to the JSON property specVersion

Returns:

  • (String)


9313
9314
9315
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9313

def spec_version
  @spec_version
end

#text_dataString

Corresponds to the JSON property textData

Returns:

  • (String)


9318
9319
9320
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9318

def text_data
  @text_data
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


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