Class: Google::Apis::HomegraphV1::HomeTraitUpdates
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::HomeTraitUpdates
- 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
Contains the set of updates for a device.
Instance Attribute Summary collapse
-
#components ⇒ Array<Google::Apis::HomegraphV1::ComponentTraitUpdates>
Required.
-
#device_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HomeTraitUpdates
constructor
A new instance of HomeTraitUpdates.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HomeTraitUpdates
Returns a new instance of HomeTraitUpdates.
379 380 381 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#components ⇒ Array<Google::Apis::HomegraphV1::ComponentTraitUpdates>
Required. Trait updates for each component.
Corresponds to the JSON property components
372 373 374 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 372 def components @components end |
#device_id ⇒ String
Required. Unique identifier for the device.
Corresponds to the JSON property deviceId
377 378 379 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 377 def device_id @device_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
384 385 386 387 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 384 def update!(**args) @components = args[:components] if args.key?(:components) @device_id = args[:device_id] if args.key?(:device_id) end |