Class: Google::Apis::HomegraphV1::AgentOtherDeviceId
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::AgentOtherDeviceId
- 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
Alternate third-party device ID.
Instance Attribute Summary collapse
-
#agent_id ⇒ String
Project ID for your smart home Action.
-
#device_id ⇒ String
Unique third-party device ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentOtherDeviceId
constructor
A new instance of AgentOtherDeviceId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentOtherDeviceId
Returns a new instance of AgentOtherDeviceId.
58 59 60 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 58 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_id ⇒ String
Project ID for your smart home Action.
Corresponds to the JSON property agentId
51 52 53 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 51 def agent_id @agent_id end |
#device_id ⇒ String
Unique third-party device ID.
Corresponds to the JSON property deviceId
56 57 58 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 56 def device_id @device_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
63 64 65 66 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 63 def update!(**args) @agent_id = args[:agent_id] if args.key?(:agent_id) @device_id = args[:device_id] if args.key?(:device_id) end |