Class: Google::Apis::HomegraphV1::DeviceMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/homegraph_v1/classes.rb,
lib/google/apis/homegraph_v1/representations.rb,
lib/google/apis/homegraph_v1/representations.rb

Overview

Metadata for traits of a single device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceMetadata

Returns a new instance of DeviceMetadata.



243
244
245
# File 'lib/google/apis/homegraph_v1/classes.rb', line 243

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#trait_commit_timestampsHash<String,String>

Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit timestamp. Corresponds to the JSON property traitCommitTimestamps

Returns:

  • (Hash<String,String>)


241
242
243
# File 'lib/google/apis/homegraph_v1/classes.rb', line 241

def trait_commit_timestamps
  @trait_commit_timestamps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



248
249
250
# File 'lib/google/apis/homegraph_v1/classes.rb', line 248

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