Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/smartdevicemanagement_v1/classes.rb,
lib/google/apis/smartdevicemanagement_v1/representations.rb,
lib/google/apis/smartdevicemanagement_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1Device

Returns a new instance of GoogleHomeEnterpriseSdmV1Device.



54
55
56
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 54

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Required. The resource name of the device. For example: "enterprises/XYZ/ devices/123". Corresponds to the JSON property name

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 34

def name
  @name
end

#parent_relationsArray<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation>

Assignee details of the device. Corresponds to the JSON property parentRelations



39
40
41
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 39

def parent_relations
  @parent_relations
end

#traitsHash<String,Object>

Output only. Device traits. Corresponds to the JSON property traits

Returns:

  • (Hash<String,Object>)


44
45
46
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 44

def traits
  @traits
end

#typeString

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

Returns:

  • (String)


52
53
54
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 52

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



59
60
61
62
63
64
# 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