Class: Google::Apis::HomegraphV1::SyncResponsePayload
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::SyncResponsePayload
- 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
-
#agent_user_id ⇒ String
Third-party user ID Corresponds to the JSON property
agentUserId. -
#devices ⇒ Array<Google::Apis::HomegraphV1::Device>
Devices associated with the third-party user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SyncResponsePayload
constructor
A new instance of SyncResponsePayload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SyncResponsePayload
Returns a new instance of SyncResponsePayload.
613 614 615 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 613 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_user_id ⇒ String
Third-party user ID
Corresponds to the JSON property agentUserId
606 607 608 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 606 def agent_user_id @agent_user_id end |
#devices ⇒ Array<Google::Apis::HomegraphV1::Device>
Devices associated with the third-party user.
Corresponds to the JSON property devices
611 612 613 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 611 def devices @devices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
618 619 620 621 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 618 def update!(**args) @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) @devices = args[:devices] if args.key?(:devices) end |