Class: Google::Apis::HomegraphV1::ReportStateAndNotificationDevice
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::ReportStateAndNotificationDevice
- 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
The states and notifications specific to a device.
Instance Attribute Summary collapse
-
#home_events ⇒ Array<Google::Apis::HomegraphV1::HomeEvents>
Optional.
-
#home_traits ⇒ Array<Google::Apis::HomegraphV1::HomeTraitUpdates>
Optional.
-
#notifications ⇒ Hash<String,Object>
Notifications metadata for devices.
-
#states ⇒ Hash<String,Object>
States of devices to update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReportStateAndNotificationDevice
constructor
A new instance of ReportStateAndNotificationDevice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReportStateAndNotificationDevice
Returns a new instance of ReportStateAndNotificationDevice.
575 576 577 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 575 def initialize(**args) update!(**args) end |
Instance Attribute Details
#home_events ⇒ Array<Google::Apis::HomegraphV1::HomeEvents>
Optional. UDDM/WHDM trait events
Corresponds to the JSON property homeEvents
554 555 556 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 554 def home_events @home_events end |
#home_traits ⇒ Array<Google::Apis::HomegraphV1::HomeTraitUpdates>
Optional. UDDM/WHDM trait updates.
Corresponds to the JSON property homeTraits
559 560 561 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 559 def home_traits @home_traits end |
#notifications ⇒ Hash<String,Object>
Notifications metadata for devices. See the Device NOTIFICATIONS section
of the individual trait reference guides.
Corresponds to the JSON property notifications
566 567 568 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 566 def notifications @notifications end |
#states ⇒ Hash<String,Object>
States of devices to update. See the Device STATES section of the
individual trait reference guides.
Corresponds to the JSON property states
573 574 575 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 573 def states @states end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
580 581 582 583 584 585 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 580 def update!(**args) @home_events = args[:home_events] if args.key?(:home_events) @home_traits = args[:home_traits] if args.key?(:home_traits) @notifications = args[:notifications] if args.key?(:notifications) @states = args[:states] if args.key?(:states) end |