UNPKG

@itentialopensource/adapter-eai

Version:

Itential Ericsson Adaptive Inventory Adapter

208 lines 4.41 kB
{ "$id": "container_schema.json", "type": "object", "schema": "http://json-schema.org/draft-07/schema#", "translate": true, "dynamicfields": true, "properties": { "ph_request_type": { "type": "string", "description": "type of request (internal to adapter)", "default": "getContainers", "enum": [ "getContainers", "createContainer", "updateContainer", "deleteContainer" ], "external_name": "ph_request_type" }, "id": { "type": "integer", "description": "the container unique identifier", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "id" }, "name": { "type": "string", "description": "the name of container", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "name" }, "type": { "type": "string", "description": "the entity", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "type" }, "containertype": { "type": "string", "description": "the type of container", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "_type" }, "vendor": { "type": "string", "description": "the vendor for the container", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "vendor" }, "model": { "type": "string", "description": "the model for the container", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "model" }, "serialNumber": { "type": "string", "description": "the serial number of the container", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "serialNumber" }, "status": { "type": "string", "description": "the status of the contsainer", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "status" }, "dimensionUnits": { "type": "string", "description": "the units of the dimensions", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "dimensionUnits" }, "depth": { "type": "number", "description": "the depth of the container", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "dimDepth" }, "height": { "type": "number", "description": "the height of the container", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "dimHeight" }, "width": { "type": "number", "description": "the width of the container", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "dimWidth" }, "parentSite": { "type": "array", "items": { "translate": false, "type": "object" }, "description": "", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "parentSite" } }, "allOf": [ { "if": { "properties": { "ph_request_type": { "enum": [ "createContainer" ] } } }, "then": { "required": [ "name", "type", "containertype", "status", "vendor", "parentSite" ] } }, { "if": { "properties": { "ph_request_type": { "enum": [ "updateContainer" ] } } }, "then": { "required": [ "type" ] } } ], "definitions": {} }