Class: Google::Apis::CloudiotV1beta1::HttpPublishEventRequest

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

Overview

Request for PublishEvent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HttpPublishEventRequest

Returns a new instance of HttpPublishEventRequest



606
607
608
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 606

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

Instance Attribute Details

#binary_dataString

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

Returns:

  • (String)


598
599
600
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 598

def binary_data
  @binary_data
end

#sub_folderString

Optional subfolder for the telemetry event. This can be used to classify types of events, and is included in the Pub/Sub message attributes. Corresponds to the JSON property subFolder

Returns:

  • (String)


604
605
606
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 604

def sub_folder
  @sub_folder
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



611
612
613
614
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 611

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