Class: Google::Apis::CloudiotV1::ListDeviceStatesResponse
- Inherits:
-
Object
- Object
- Google::Apis::CloudiotV1::ListDeviceStatesResponse
- 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
-
#device_states ⇒ Array<Google::Apis::CloudiotV1::DeviceState>
The last few device states.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListDeviceStatesResponse
constructor
A new instance of ListDeviceStatesResponse.
-
#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) ⇒ ListDeviceStatesResponse
Returns a new instance of ListDeviceStatesResponse
713 714 715 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 713 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_states ⇒ Array<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 |