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.



553
554
555
# File 'lib/google/apis/homegraph_v1/classes.rb', line 553

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)


546
547
548
# File 'lib/google/apis/homegraph_v1/classes.rb', line 546

def agent_user_id
  @agent_user_id
end

#request_idString

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

Returns:

  • (String)


551
552
553
# File 'lib/google/apis/homegraph_v1/classes.rb', line 551

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



558
559
560
561
# File 'lib/google/apis/homegraph_v1/classes.rb', line 558

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