Class: Google::Apis::HomegraphV1::SyncRequest

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 Sync call. This should follow the same format as the Actions on Google action.devices.SYNC request with the exception of the extra agent_user_id and no intent field.

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) ⇒ SyncRequest

Returns a new instance of SyncRequest.



608
609
610
# File 'generated/google/apis/homegraph_v1/classes.rb', line 608

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)


601
602
603
# File 'generated/google/apis/homegraph_v1/classes.rb', line 601

def agent_user_id
  @agent_user_id
end

#request_idString

Request ID used for debugging. Corresponds to the JSON property requestId

Returns:

  • (String)


606
607
608
# File 'generated/google/apis/homegraph_v1/classes.rb', line 606

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



613
614
615
616
# File 'generated/google/apis/homegraph_v1/classes.rb', line 613

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