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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListDeviceStatesResponse

Returns a new instance of ListDeviceStatesResponse.



761
762
763
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 761

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



759
760
761
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 759

def device_states
  @device_states
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



766
767
768
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 766

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