@itentialopensource/adapter-sevone
Version:
Itential SevOne Adapter
80 lines • 1.66 kB
JSON
{
"$id": "sevone_group_addremovereq",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ph_request_type": {
"type": "string",
"description": "type of request (internal to adapter)",
"default": "addDeviceComponentToGroup",
"enum": [
"addDeviceComponentToGroup",
"removeDeviceComponentFromGroup"
],
"external_name": "ph_request_type"
},
"deviceId": {
"type": "integer",
"description": "id of the device",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"minimum": 0,
"maximum": 999999999999,
"external_name": "deviceId"
},
"componentId": {
"type": "integer",
"description": "id of the device",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"minimum": 0,
"maximum": 999999999999,
"external_name": "objectId"
}
},
"allOf": [
{
"if": {
"properties": {
"ph_request_type": {
"enum": [
"addDeviceComponentToGroup"
]
}
}
},
"then": {
"required": [
"deviceId",
"componentId"
]
}
},
{
"if": {
"properties": {
"ph_request_type": {
"enum": [
"removeDeviceComponentFromGroup"
]
}
}
},
"then": {
"required": [
"deviceId",
"componentId"
]
}
}
],
"definitions": {}
}