Class: Google::Apis::CloudiotV1::SendCommandToDeviceRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudiotV1::SendCommandToDeviceRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudiot_v1/classes.rb,
generated/google/apis/cloudiot_v1/representations.rb,
generated/google/apis/cloudiot_v1/representations.rb
Overview
Request for SendCommandToDevice
.
Instance Attribute Summary collapse
-
#binary_data ⇒ String
Required.
-
#subfolder ⇒ String
Optional subfolder for the command.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SendCommandToDeviceRequest
constructor
A new instance of SendCommandToDeviceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SendCommandToDeviceRequest
Returns a new instance of SendCommandToDeviceRequest.
992 993 994 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 992 def initialize(**args) update!(**args) end |
Instance Attribute Details
#binary_data ⇒ String
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.
981 982 983 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 981 def binary_data @binary_data end |
#subfolder ⇒ String
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
990 991 992 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 990 def subfolder @subfolder end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
997 998 999 1000 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 997 def update!(**args) @binary_data = args[:binary_data] if args.key?(:binary_data) @subfolder = args[:subfolder] if args.key?(:subfolder) end |