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
| 556 557 558 | # File 'generated/google/apis/cloudiot_v1/classes.rb', line 556 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
| 554 555 556 | # File 'generated/google/apis/cloudiot_v1/classes.rb', line 554 def device_states @device_states end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 561 562 563 | # File 'generated/google/apis/cloudiot_v1/classes.rb', line 561 def update!(**args) @device_states = args[:device_states] if args.key?(:device_states) end |