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


713
714
715
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 713

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


711
712
713
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 711

def device_states
  @device_states
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


718
719
720
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 718

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