Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device
- Inherits:
-
Object
- Object
- Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device
- 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
-
#name ⇒ String
Required.
-
#parent_relations ⇒ Array<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation>
Assignee details of the device.
-
#traits ⇒ Hash<String,Object>
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1Device
constructor
A new instance of GoogleHomeEnterpriseSdmV1Device.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Required. The resource name of the device. For example: "enterprises/XYZ/
devices/123".
Corresponds to the JSON property name
34 35 36 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 34 def name @name end |
#parent_relations ⇒ Array<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 |
#traits ⇒ Hash<String,Object>
Output only. Device traits.
Corresponds to the JSON property traits
44 45 46 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 44 def traits @traits end |
#type ⇒ String
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
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 |