class Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device
Device resource represents an instance of enterprise managed device in the property.
Attributes
Required. The resource name of the device. For example: “enterprises/XYZ/ devices/123”. Corresponds to the JSON property `name` @return [String]
Assignee details of the device. Corresponds to the JSON property `parentRelations` @return [Array<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation>]
Output only. Device traits. Corresponds to the JSON property `traits` @return [Hash<String,Object>]
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
# File lib/google/apis/smartdevicemanagement_v1/classes.rb, line 54 def initialize(**args) update!(**args) end
Public Instance Methods
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