UNPKG

@itentialopensource/adapter-eai

Version:

Itential Ericsson Adaptive Inventory Adapter

126 lines 2.65 kB
{ "$id": "container_template_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": "getContainerTemplates", "enum": [ "getContainerTemplates", "createContainerTemplate", "updateContainerTemplate", "deleteContainerTemplate" ], "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" }, "containerTemplateType": { "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" }, "status": { "type": "string", "description": "the status of the contsainer", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "status" } }, "allOf": [ { "if": { "properties": { "ph_request_type": { "enum": [ "createContainerTemplate" ] } } }, "then": { "required": [ "name", "type", "containerTemplateType", "status", "vendor" ] } }, { "if": { "properties": { "ph_request_type": { "enum": [ "updateContainerTemplate" ] } } }, "then": { "required": [ "type" ] } } ], "definitions": {} }