class Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device

Device resource represents an instance of enterprise managed device in the property.

Attributes

name[RW]

Required. The resource name of the device. For example: “enterprises/XYZ/ devices/123”. Corresponds to the JSON property `name` @return [String]

parent_relations[RW]

Assignee details of the device. Corresponds to the JSON property `parentRelations` @return [Array<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation>]

traits[RW]

Output only. Device traits. Corresponds to the JSON property `traits` @return [Hash<String,Object>]

type[RW]

Output only. Type of the device for general display purposes. For example: “ THERMOSTAT”. The device type should not be used to deduce or infer functionality of the actual device it is assigned to. Instead, use the returned traits for the device. Corresponds to the JSON property `type` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/smartdevicemanagement_v1/classes.rb, line 59
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @parent_relations = args[:parent_relations] if args.key?(:parent_relations)
  @traits = args[:traits] if args.key?(:traits)
  @type = args[:type] if args.key?(:type)
end