Class: Google::Apis::HomegraphV1::AgentOtherDeviceId

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idString

Project ID for your smart home Action. Corresponds to the JSON property agentId

Returns:

  • (String)


51
52
53
# File 'generated/google/apis/homegraph_v1/classes.rb', line 51

def agent_id
  @agent_id
end

#device_idString

Unique third-party device ID. Corresponds to the JSON property deviceId

Returns:

  • (String)


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