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

Identifies a device in the third party or first party system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

The agent's ID. Generally it is the agent's AoG project id. 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

Device ID defined by the agent. The device_id must be unique. 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