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

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 Sync call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SyncRequest

Returns a new instance of SyncRequest.



820
821
822
# File 'lib/google/apis/homegraph_v1/classes.rb', line 820

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)


813
814
815
# File 'lib/google/apis/homegraph_v1/classes.rb', line 813

def agent_user_id
  @agent_user_id
end

#request_idString

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

Returns:

  • (String)


818
819
820
# File 'lib/google/apis/homegraph_v1/classes.rb', line 818

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



825
826
827
828
# File 'lib/google/apis/homegraph_v1/classes.rb', line 825

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