class Google::Apis::HomegraphV1::ReportStateAndNotificationRequest
Request type for the [`ReportStateAndNotification`](google.home.graph.v1. HomeGraphApiService.ReportStateAndNotification) call. It may include states, notifications, or both. States and notifications are defined per `device_id` ( for example, “123” and “456” in the following example). # Example “`json ` “ requestId”: “ff36a3cc-ec34-11e6-b1a0-64510650abcf”, “agentUserId”: “1234”, “ payload”: ` “devices”: ` “states”: ` “123”: ` “on”: true `, “456”: ` “on”: true, “brightness”: 10 ` `, ` ` ` “`
Attributes
Required. Third-party user ID. Corresponds to the JSON property `agentUserId` @return [String]
Unique identifier per event (for example, a doorbell press). Corresponds to the JSON property `eventId` @return [String]
Deprecated. Corresponds to the JSON property `followUpToken` @return [String]
Payload containing the state and notification information for devices. Corresponds to the JSON property `payload` @return [Google::Apis::HomegraphV1::StateAndNotificationPayload]
Request ID used for debugging. Corresponds to the JSON property `requestId` @return [String]
Public Class Methods
# File lib/google/apis/homegraph_v1/classes.rb, line 442 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/homegraph_v1/classes.rb, line 447 def update!(**args) @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) @event_id = args[:event_id] if args.key?(:event_id) @follow_up_token = args[:follow_up_token] if args.key?(:follow_up_token) @payload = args[:payload] if args.key?(:payload) @request_id = args[:request_id] if args.key?(:request_id) end