Class: Google::Apis::HomegraphV1::RequestSyncDevicesRequest
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::RequestSyncDevicesRequest
- 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
Request type for the RequestSyncDevices
call.
Instance Attribute Summary collapse
-
#agent_user_id ⇒ String
Required.
-
#async ⇒ Boolean
(also: #async?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestSyncDevicesRequest
constructor
A new instance of RequestSyncDevicesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RequestSyncDevicesRequest
Returns a new instance of RequestSyncDevicesRequest.
495 496 497 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 495 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_user_id ⇒ String
Required. Third-party user ID.
Corresponds to the JSON property agentUserId
485 486 487 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 485 def agent_user_id @agent_user_id end |
#async ⇒ Boolean Also known as: async?
Optional. If set, the request will be added to a queue and a response will be
returned immediately. This enables concurrent requests for the given
agent_user_id
, but the caller will not receive any error responses.
Corresponds to the JSON property async
492 493 494 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 492 def async @async end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
500 501 502 503 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 500 def update!(**args) @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) @async = args[:async] if args.key?(:async) end |