Class: Google::Apis::CloudiotV1::DeviceConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudiotV1::DeviceConfig
- Defined in:
- generated/google/apis/cloudiot_v1/classes.rb,
generated/google/apis/cloudiot_v1/representations.rb,
generated/google/apis/cloudiot_v1/representations.rb
Overview
The device configuration. Eventually delivered to devices.
Instance Attribute Summary collapse
-
#binary_data ⇒ String
The device configuration data.
-
#cloud_update_time ⇒ String
[Output only] The time at which this configuration version was updated in Cloud IoT Core.
-
#device_ack_time ⇒ String
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version.
-
#version ⇒ Fixnum
[Output only] The version of this update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceConfig
constructor
A new instance of DeviceConfig.
-
#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) ⇒ DeviceConfig
Returns a new instance of DeviceConfig
278 279 280 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 278 def initialize(**args) update!(**args) end |
Instance Attribute Details
#binary_data ⇒ String
The device configuration data.
Corresponds to the JSON property binaryData
NOTE: Values are automatically base64 encoded/decoded in the client library.
249 250 251 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 249 def binary_data @binary_data end |
#cloud_update_time ⇒ String
[Output only] The time at which this configuration version was updated in
Cloud IoT Core. This timestamp is set by the server.
Corresponds to the JSON property cloudUpdateTime
255 256 257 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 255 def cloud_update_time @cloud_update_time end |
#device_ack_time ⇒ String
[Output only] The time at which Cloud IoT Core received the
acknowledgment from the device, indicating that the device has received
this configuration version. If this field is not present, the device has
not yet acknowledged that it received this version. Note that when
the config was sent to the device, many config versions may have been
available in Cloud IoT Core while the device was disconnected, and on
connection, only the latest version is sent to the device. Some
versions may never be sent to the device, and therefore are never
acknowledged. This timestamp is set by Cloud IoT Core.
Corresponds to the JSON property deviceAckTime
268 269 270 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 268 def device_ack_time @device_ack_time end |
#version ⇒ Fixnum
[Output only] The version of this update. The version number is assigned by
the server, and is always greater than 0 after device creation. The
version must be 0 on the CreateDevice
request if a config
is
specified; the response of CreateDevice
will always have a value of 1.
Corresponds to the JSON property version
276 277 278 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 276 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
283 284 285 286 287 288 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 283 def update!(**args) @binary_data = args[:binary_data] if args.key?(:binary_data) @cloud_update_time = args[:cloud_update_time] if args.key?(:cloud_update_time) @device_ack_time = args[:device_ack_time] if args.key?(:device_ack_time) @version = args[:version] if args.key?(:version) end |