Class: Google::Apis::HomegraphV1::QueryRequest
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::QueryRequest
- 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
Request type for the Query
call.
Instance Attribute Summary collapse
-
#agent_user_id ⇒ String
Required.
-
#include_device_metadata ⇒ Boolean
(also: #include_device_metadata?)
Optional.
-
#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.
Constructor Details
#initialize(**args) ⇒ QueryRequest
Returns a new instance of QueryRequest.
438 439 440 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 438 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_user_id ⇒ String
Required. Third-party user ID.
Corresponds to the JSON property agentUserId
418 419 420 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 418 def agent_user_id @agent_user_id end |
#include_device_metadata ⇒ Boolean Also known as: include_device_metadata?
Optional. If true, the response will include device metadata in the
device_metadata field.
Corresponds to the JSON property includeDeviceMetadata
424 425 426 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 424 def @include_device_metadata end |
#inputs ⇒ Array<Google::Apis::HomegraphV1::QueryRequestInput>
Required. Inputs containing third-party device IDs for which to get the device
states.
Corresponds to the JSON property inputs
431 432 433 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 431 def inputs @inputs end |
#request_id ⇒ String
Request ID used for debugging.
Corresponds to the JSON property requestId
436 437 438 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 436 def request_id @request_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
443 444 445 446 447 448 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 443 def update!(**args) @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) @include_device_metadata = args[:include_device_metadata] if args.key?(:include_device_metadata) @inputs = args[:inputs] if args.key?(:inputs) @request_id = args[:request_id] if args.key?(:request_id) end |