Class: Google::Apis::HomegraphV1::RequestSyncDevicesRequest

Inherits:
Object
  • Object
show all
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 RequestSyncDevices call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RequestSyncDevicesRequest

Returns a new instance of RequestSyncDevicesRequest.



494
495
496
# File 'lib/google/apis/homegraph_v1/classes.rb', line 494

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#agent_user_idString

Required. Third-party user ID. Corresponds to the JSON property agentUserId

Returns:

  • (String)


484
485
486
# File 'lib/google/apis/homegraph_v1/classes.rb', line 484

def agent_user_id
  @agent_user_id
end

#asyncBoolean 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

Returns:

  • (Boolean)


491
492
493
# File 'lib/google/apis/homegraph_v1/classes.rb', line 491

def async
  @async
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



499
500
501
502
# File 'lib/google/apis/homegraph_v1/classes.rb', line 499

def update!(**args)
  @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id)
  @async = args[:async] if args.key?(:async)
end