Class: Google::Apis::CloudiotV1::DeviceState
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudiotV1::DeviceState
 
- Defined in:
- generated/google/apis/cloudiot_v1/classes.rb,
 generated/google/apis/cloudiot_v1/representations.rb,
 generated/google/apis/cloudiot_v1/representations.rb
Overview
The device state, as reported by the device.
Instance Attribute Summary collapse
- 
  
    
      #binary_data  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The device state data. 
- 
  
    
      #update_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output only] The time at which this state version was updated in Cloud IoT Core. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ DeviceState 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of DeviceState. 
- 
  
    
      #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) ⇒ DeviceState
Returns a new instance of DeviceState
| 407 408 409 | # File 'generated/google/apis/cloudiot_v1/classes.rb', line 407 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#binary_data ⇒ String
The device state data.
Corresponds to the JSON property binaryData
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 399 400 401 | # File 'generated/google/apis/cloudiot_v1/classes.rb', line 399 def binary_data @binary_data end | 
#update_time ⇒ String
[Output only] The time at which this state version was updated in Cloud
IoT Core.
Corresponds to the JSON property updateTime
| 405 406 407 | # File 'generated/google/apis/cloudiot_v1/classes.rb', line 405 def update_time @update_time end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 412 413 414 415 | # File 'generated/google/apis/cloudiot_v1/classes.rb', line 412 def update!(**args) @binary_data = args[:binary_data] if args.key?(:binary_data) @update_time = args[:update_time] if args.key?(:update_time) end |