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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RequestSyncDevicesRequest

Returns a new instance of RequestSyncDevicesRequest.



543
544
545
# File 'generated/google/apis/homegraph_v1/classes.rb', line 543

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

Instance Attribute Details

#agent_user_idString

Required. Third-party user ID issued by agent's third-party identity provider. Corresponds to the JSON property agentUserId

Returns:

  • (String)


533
534
535
# File 'generated/google/apis/homegraph_v1/classes.rb', line 533

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. The queue allows for de-duplication of simultaneous requests. Corresponds to the JSON property async

Returns:

  • (Boolean)


540
541
542
# File 'generated/google/apis/homegraph_v1/classes.rb', line 540

def async
  @async
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



548
549
550
551
# File 'generated/google/apis/homegraph_v1/classes.rb', line 548

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