Class: Google::Apis::HomegraphV1::QueryRequest
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::QueryRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/homegraph_v1/classes.rb,
generated/google/apis/homegraph_v1/representations.rb,
generated/google/apis/homegraph_v1/representations.rb
Overview
Instance Attribute Summary collapse
-
#agent_user_id ⇒ String
Required.
-
#inputs ⇒ Array<Google::Apis::HomegraphV1::QueryRequestInput>
Required.
-
#request_id ⇒ String
Request ID used for debugging.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryRequest
constructor
A new instance of QueryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QueryRequest
Returns a new instance of QueryRequest.
284 285 286 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 284 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_user_id ⇒ String
Required. Third-party user ID.
Corresponds to the JSON property agentUserId
271 272 273 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 271 def agent_user_id @agent_user_id end |
#inputs ⇒ Array<Google::Apis::HomegraphV1::QueryRequestInput>
Required. Inputs containing third-party partner's device IDs for which to
get the device states.
Corresponds to the JSON property inputs
277 278 279 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 277 def inputs @inputs end |
#request_id ⇒ String
Request ID used for debugging.
Corresponds to the JSON property requestId
282 283 284 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 282 def request_id @request_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
289 290 291 292 293 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 289 def update!(**args) @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) @inputs = args[:inputs] if args.key?(:inputs) @request_id = args[:request_id] if args.key?(:request_id) end |