@itentialopensource/adapter-nuage
Version:
Itential Nuage Adapter
39 lines • 1.09 kB
JSON
{
"$id": "domain-schema_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": "getDomains",
"enum": [
"getDomains", "getEnterpriseDomains", "createDomain", "updateDomain", "deleteDomain"
],
"external_name": "ph_request_type"
},
"name": {
"type": "string",
"description": "the name of the domain",
"external_name": "name"
},
"template": {
"type": "string",
"description": "the template for the domain",
"external_name": "templateID"
}
},
"allOf": [
{
"if" : { "properties" : { "ph_request_type": { "enum": ["createDomain"] } } },
"then" : { "required" : ["name", "template"] }
},
{
"if" : { "properties" : { "ph_request_type": { "enum": ["updateDomain"] } } },
"then" : { "required" : ["name", "template"] }
}
],
"definitions": {}
}