Class: Google::Apis::CloudiotV1::ListDeviceStatesResponse

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

Response for ListDeviceStates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListDeviceStatesResponse

Returns a new instance of ListDeviceStatesResponse.



728
729
730
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 728

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

Instance Attribute Details

#device_statesArray<Google::Apis::CloudiotV1::DeviceState>

The last few device states. States are listed in descending order of server update time, starting from the most recent one. Corresponds to the JSON property deviceStates



726
727
728
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 726

def device_states
  @device_states
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



733
734
735
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 733

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