class Google::Apis::HomegraphV1::DeviceNames

Identifiers used to describe the device.

Attributes

default_names[RW]

List of names provided by the manufacturer rather than the user, such as serial numbers, SKUs, etc. Corresponds to the JSON property `defaultNames` @return [Array<String>]

name[RW]

Primary name of the device, generally provided by the user. Corresponds to the JSON property `name` @return [String]

nicknames[RW]

Additional names provided by the user for the device. Corresponds to the JSON property `nicknames` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/homegraph_v1/classes.rb, line 228
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/homegraph_v1/classes.rb, line 233
def update!(**args)
  @default_names = args[:default_names] if args.key?(:default_names)
  @name = args[:name] if args.key?(:name)
  @nicknames = args[:nicknames] if args.key?(:nicknames)
end