Class: Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest
- 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 ModifyCloudToDeviceConfig
.
Instance Attribute Summary collapse
-
#binary_data ⇒ String
Required.
-
#version_to_update ⇒ Fixnum
The version number to update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModifyCloudToDeviceConfigRequest
constructor
A new instance of ModifyCloudToDeviceConfigRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ModifyCloudToDeviceConfigRequest
Returns a new instance of ModifyCloudToDeviceConfigRequest.
783 784 785 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 783 def initialize(**args) update!(**args) end |
Instance Attribute Details
#binary_data ⇒ String
Required. The configuration data for the device.
Corresponds to the JSON property binaryData
NOTE: Values are automatically base64 encoded/decoded in the client library.
772 773 774 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 772 def binary_data @binary_data end |
#version_to_update ⇒ Fixnum
The version number to update. If this value is zero, it will not check the
version number of the server and will always update the current version;
otherwise, this update will fail if the version number found on the server
does not match this version number. This is used to support multiple
simultaneous updates without losing data.
Corresponds to the JSON property versionToUpdate
781 782 783 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 781 def version_to_update @version_to_update end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
788 789 790 791 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 788 def update!(**args) @binary_data = args[:binary_data] if args.key?(:binary_data) @version_to_update = args[:version_to_update] if args.key?(:version_to_update) end |