class Google::Apis::HomegraphV1::QueryResponse
Response type for the [`Query`](google.home.graph.v1.HomeGraphApiService. Query) call. This should follow the same format as the Google
smart home ` action.devices.QUERY` [response](developers.google.com/assistant/ smarthome/reference/intent/query). # Example “`json ` “requestId”: “ff36a3cc- ec34-11e6-b1a0-64510650abcf”, “payload”: ` “devices”: ` “123”: ` “on”: true, “ online”: true `, “456”: ` “on”: true, “online”: true, “brightness”: 80, “color” : ` “name”: “cerulean”, “spectrumRGB”: 31655 ` ` ` ` ` “`
Attributes
Payload containing device states information. Corresponds to the JSON property `payload` @return [Google::Apis::HomegraphV1::QueryResponsePayload]
Request ID used for debugging. Copied from the request. Corresponds to the JSON property `requestId` @return [String]
Public Class Methods
# File lib/google/apis/homegraph_v1/classes.rb, line 348 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/homegraph_v1/classes.rb, line 353 def update!(**args) @payload = args[:payload] if args.key?(:payload) @request_id = args[:request_id] if args.key?(:request_id) end