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

agent_user_id[RW]

Required. Third-party user ID. Corresponds to the JSON property `agentUserId` @return [String]

event_id[RW]

Unique identifier per event (for example, a doorbell press). Corresponds to the JSON property `eventId` @return [String]

follow_up_token[RW]

Deprecated. Corresponds to the JSON property `followUpToken` @return [String]

payload[RW]

Payload containing the state and notification information for devices. Corresponds to the JSON property `payload` @return [Google::Apis::HomegraphV1::StateAndNotificationPayload]

request_id[RW]

Request ID used for debugging. Corresponds to the JSON property `requestId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/homegraph_v1/classes.rb, line 442
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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