Class: Google::Apis::HomegraphV1::SyncResponsePayload

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

Payload containing device information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SyncResponsePayload

Returns a new instance of SyncResponsePayload.



1298
1299
1300
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1298

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

Instance Attribute Details

#agent_user_idString

Third-party user ID Corresponds to the JSON property agentUserId

Returns:

  • (String)


1291
1292
1293
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1291

def agent_user_id
  @agent_user_id
end

#devicesArray<Google::Apis::HomegraphV1::Device>

Devices associated with the third-party user. Corresponds to the JSON property devices



1296
1297
1298
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1296

def devices
  @devices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1303
1304
1305
1306
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1303

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