@itentialopensource/adapter-sevone
Version:
Itential SevOne Adapter
106 lines • 2.16 kB
JSON
{
"$id": "sevone_device_group",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ph_request_type": {
"type": "string",
"description": "type of request (internal to adapter)",
"default": "getDeviceGroups",
"enum": [
"getDeviceGroups",
"createDeviceGroup",
"addDeviceToGroup",
"updateDeviceGroup",
"deleteDeviceGroup",
"removeDeviceFromGroup"
],
"external_name": "ph_request_type"
},
"id": {
"type": "integer",
"description": "id of the device",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"minimum": 0,
"maximum": 999999999999,
"external_name": "id"
},
"name": {
"type": "string",
"description": "name of the device",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"external_name": "name"
},
"parentId": {
"type": "integer",
"description": "id of the parent of this device group",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"minimum": 0,
"maximum": 999999999999,
"external_name": "parentId"
},
"devices": {
"type": "array",
"description": "",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"external_name": "devices"
}
},
"allOf": [
{
"if": {
"properties": {
"ph_request_type": {
"enum": [
"createDeviceGroup"
]
}
}
},
"then": {
"required": [
"name",
"parentId"
]
}
},
{
"if": {
"properties": {
"ph_request_type": {
"enum": [
"updateDeviceGroup"
]
}
}
},
"then": {
"required": [
"name",
"parentId"
]
}
}
],
"definitions": {}
}