Resource: Device
Device resource represents an instance of enterprise managed device in the property.
JSON representation |
---|
{
"name": string,
"type": string,
"traits": {
object
},
"parentRelations": [
{
object ( |
Fields | |
---|---|
name |
Required. The resource name of the device. For example: "enterprises/XYZ/devices/123". |
type |
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. |
traits |
Output only. Device traits. |
parentRelations[] |
Assignee details of the device. |
ParentRelation
Represents device relationships, for instance, structure/room to which the device is assigned to.
JSON representation |
---|
{ "parent": string, "displayName": string } |
Fields | |
---|---|
parent |
Output only. The name of the relation -- e.g., structure/room where the device is assigned to. For example: "enterprises/XYZ/structures/ABC" or "enterprises/XYZ/structures/ABC/rooms/123" |
displayName |
Output only. The custom name of the relation -- e.g., structure/room where the device is assigned to. |
Methods |
|
---|---|
|
Executes a command to device managed by the enterprise. |
|
Gets a device managed by the enterprise. |
|
Lists devices managed by the enterprise. |