Class: Google::Apis::CloudiotV1::DeviceState

Inherits:
Object
  • Object
show all
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

The device state, as reported by the device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceState

Returns a new instance of DeviceState.



459
460
461
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 459

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

Instance Attribute Details

#binary_dataString

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

Returns:

  • (String)


451
452
453
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 451

def binary_data
  @binary_data
end

#update_timeString

[Output only] The time at which this state version was updated in Cloud IoT Core. Corresponds to the JSON property updateTime

Returns:

  • (String)


457
458
459
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 457

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



464
465
466
467
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 464

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