Class: Google::Apis::CloudiotV1::SendCommandToDeviceRequest

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

Overview

Request for SendCommandToDevice.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SendCommandToDeviceRequest

Returns a new instance of SendCommandToDeviceRequest.



1002
1003
1004
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1002

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

Instance Attribute Details

#binary_dataString

Required. The command data to send to the device. Corresponds to the JSON property binaryData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


991
992
993
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 991

def binary_data
  @binary_data
end

#subfolderString

Optional subfolder for the command. If empty, the command will be delivered to the /devices/device-id/commands topic, otherwise it will be delivered to the /devices/device-id/commands/subfolder topic. Multi-level subfolders are allowed. This field must not have more than 256 characters, and must not contain any MQTT wildcards ("+" or "#") or null characters. Corresponds to the JSON property subfolder

Returns:

  • (String)


1000
1001
1002
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1000

def subfolder
  @subfolder
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1007
1008
1009
1010
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1007

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