Class: Google::Apis::CloudiotV1beta1::ModifyCloudToDeviceConfigRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudiotV1beta1::ModifyCloudToDeviceConfigRequest
- 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 ModifyCloudToDeviceConfig
.
Instance Attribute Summary collapse
-
#data ⇒ Google::Apis::CloudiotV1beta1::DeviceConfigData
The data for a device configuration.
-
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ModifyCloudToDeviceConfigRequest
Returns a new instance of ModifyCloudToDeviceConfigRequest
635 636 637 |
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 635 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ Google::Apis::CloudiotV1beta1::DeviceConfigData
The data for a device configuration. Only binary data is currently supported.
Corresponds to the JSON property data
624 625 626 |
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 624 def data @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
633 634 635 |
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 633 def version_to_update @version_to_update end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
640 641 642 643 |
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 640 def update!(**args) @data = args[:data] if args.key?(:data) @version_to_update = args[:version_to_update] if args.key?(:version_to_update) end |