X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fswagger%2Fswagger.json;h=64b43ab8c1e5db2824d4c40c1a205b048cfa42fa;hb=2d28cbf6954c50de004a0d8f1a2ada7ec400fea3;hp=079daa253ca7ed20a3255d25bda1865e8293b04c;hpb=77f2d1205fb50d4b1cdfcc0af01340ef5ae195fa;p=clamp.git diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 079daa25..64b43ab8 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,13 +1,156 @@ { "swagger" : "2.0", "info" : { - "version" : "4.0.3-SNAPSHOT", + "version" : "5.0.0-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "localhost:46235", + "host" : "localhost:37295", "basePath" : "/restservices/clds/", "schemes" : [ "http" ], "paths" : { + "/v2/dictionary" : { + "get" : { + "operationId" : "route18", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route18" + }, + "put" : { + "operationId" : "route20", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route20" + } + }, + "/v2/dictionary/{dictionaryName}" : { + "get" : { + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "dictionaryName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : null + } + }, + "/v2/dictionary/{name}" : { + "put" : { + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : null + }, + "delete" : { + "operationId" : "route22", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route22" + } + }, + "/v2/dictionary/{name}/elements/{shortName}" : { + "delete" : { + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "shortName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : null + } + }, + "/v2/dictionary/secondary/names" : { + "get" : { + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : null + } + }, "/v2/loop/{loopName}" : { "get" : { "operationId" : "route3", @@ -32,7 +175,7 @@ }, "/v2/loop/delete/{loopName}" : { "put" : { - "operationId" : "route13", + "operationId" : "route14", "parameters" : [ { "name" : "loopName", "in" : "path", @@ -43,10 +186,10 @@ "200" : { } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route13" + "x-routeId" : "route14" } }, - "/v2/loop/deployLoop/{loopName}" : { + "/v2/loop/deploy/{loopName}" : { "put" : { "operationId" : "route8", "produces" : [ "application/json" ], @@ -89,7 +232,7 @@ }, "/v2/loop/getstatus/{loopName}" : { "get" : { - "operationId" : "route14", + "operationId" : "route15", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -106,12 +249,34 @@ } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route14" + "x-routeId" : "route15" + } + }, + "/v2/loop/refreshOpPolicyJsonSchema/{loopName}" : { + "put" : { + "operationId" : "route9", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route9" } }, "/v2/loop/restart/{loopName}" : { "put" : { - "operationId" : "route11", + "operationId" : "route12", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -128,12 +293,12 @@ } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route11" + "x-routeId" : "route12" } }, "/v2/loop/stop/{loopName}" : { "put" : { - "operationId" : "route10", + "operationId" : "route11", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -150,12 +315,12 @@ } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route10" + "x-routeId" : "route11" } }, "/v2/loop/submit/{loopName}" : { "put" : { - "operationId" : "route12", + "operationId" : "route13", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -172,7 +337,7 @@ } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route12" + "x-routeId" : "route13" } }, "/v2/loop/svgRepresentation/{loopName}" : { @@ -197,9 +362,9 @@ "x-routeId" : "route4" } }, - "/v2/loop/undeployLoop/{loopName}" : { + "/v2/loop/undeploy/{loopName}" : { "put" : { - "operationId" : "route9", + "operationId" : "route10", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -216,7 +381,7 @@ } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route9" + "x-routeId" : "route10" } }, "/v2/loop/updateGlobalProperties/{loopName}" : { @@ -309,135 +474,113 @@ "x-routeId" : "route6" } }, - "/v1/clds/action/{action}/{modelName}?test={test}" : { - "put" : { - "operationId" : "route23", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "action", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "modelName}?test={test", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" - } - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route23" - } - }, - "/v1/clds/cldsDetails" : { + "/v2/policyToscaModels" : { "get" : { - "operationId" : "route15", + "operationId" : "route25", "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/CldsMonitoringDetails" + "$ref" : "#/definitions/PolicyModel" } } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route15" + "x-routeId" : "route25" } }, - "/v1/clds/cldsInfo" : { + "/v2/policyToscaModels/{policyModelType}" : { "get" : { - "operationId" : "route16", "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/CldsInfo" + "$ref" : "#/definitions/PolicyModel" } } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route16" - } - }, - "/v1/clds/dcae/event?test={test}" : { - "post" : { - "operationId" : "route24", - "consumes" : [ "application/json" ], + "x-routeId" : null + }, + "put" : { + "operationId" : "route26", + "consumes" : [ "plain/text" ], "produces" : [ "application/json" ], "parameters" : [ { + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { "in" : "body", "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/DcaeEvent" + "type" : "string" } } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route24" + "x-routeId" : "route26" } }, - "/v1/clds/deploy/{modelName}" : { - "put" : { - "operationId" : "route26", - "consumes" : [ "application/json" ], + "/v2/policyToscaModels/yaml/{policyModelType}" : { + "get" : { "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "policyModelType", "in" : "path", "required" : true, "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" - } } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "type" : "string" + } + } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route26" + "x-routeId" : null } }, - "/v1/clds/model-names" : { + "/v2/templates" : { "get" : { - "operationId" : "route22", + "operationId" : "route29", "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/ValueItem" + "$ref" : "#/definitions/LoopTemplate" } } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route22" + "x-routeId" : "route29" } }, - "/v1/clds/model/{modelName}" : { + "/v2/templates/{templateName}" : { "get" : { - "operationId" : "route20", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "templateName", "in" : "path", "required" : true, "type" : "string" @@ -446,575 +589,221 @@ "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/CldsModel" + "$ref" : "#/definitions/LoopTemplate" } } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route20" - }, - "put" : { - "operationId" : "route21", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "modelName", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" - } - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsModel" - } - } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route21" - } - }, - "/v1/clds/model/bpmn/{modelName}" : { - "get" : { - "operationId" : "route18", - "produces" : [ "text/xml" ], - "parameters" : [ { - "name" : "modelName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route18" - } - }, - "/v1/clds/model/image/{modelName}" : { - "get" : { - "operationId" : "route19", - "produces" : [ "text/xml" ], - "parameters" : [ { - "name" : "modelName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route19" - } - }, - "/v1/clds/properties" : { - "get" : { - "operationId" : "route25", - "produces" : [ "application/json" ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route25" - } - }, - "/v1/clds/undeploy/{modelName}" : { - "put" : { - "operationId" : "route27", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "modelName", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" - } - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route27" + "x-routeId" : null } }, - "/v1/cldsTempate/template-names" : { + "/v2/templates/names" : { "get" : { - "operationId" : "route32", "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/ValueItem" + "type" : "array", + "items" : { + "type" : "string" + } } } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route32" + "x-routeId" : null } }, - "/v1/cldsTempate/template/{templateName}" : { + "/v1/healthcheck" : { "get" : { "operationId" : "route30", "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "templateName", - "in" : "path", - "required" : true, - "type" : "string" - } ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/CldsTemplate" + "$ref" : "#/definitions/CldsHealthCheck" } } }, "x-camelContextId" : "camel-1", "x-routeId" : "route30" - }, - "put" : { - "operationId" : "route31", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "templateName", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsTemplate" - } - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsTemplate" - } - } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route31" } }, - "/v1/cldsTempate/template/bpmn/{templateName}" : { + "/v1/user/getUser" : { "get" : { - "operationId" : "route28", - "produces" : [ "text/xml" ], - "parameters" : [ { - "name" : "templateName", - "in" : "path", - "required" : true, - "type" : "string" - } ], + "operationId" : "route31", + "produces" : [ "text/plain" ], "responses" : { "200" : { } }, "x-camelContextId" : "camel-1", - "x-routeId" : "route28" + "x-routeId" : "route31" } - }, - "/v1/cldsTempate/template/image/{templateName}" : { - "get" : { - "operationId" : "route29", - "produces" : [ "text/xml" ], - "parameters" : [ { - "name" : "templateName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { } + } + }, + "definitions" : { + "Dictionary" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route29" - } - }, - "/v1/dictionary" : { - "get" : { - "operationId" : "route40", - "produces" : [ "application/json" ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsDictionary" - } - } + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route40" - } - }, - "/v1/dictionary/{dictionaryName}" : { - "put" : { - "operationId" : "route39", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "dictionaryName", - "in" : "path", - "required" : true, + "updatedBy" : { "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsDictionary" - } - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsDictionary" - } - } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route39" - } - }, - "/v1/dictionary/{dictionaryName}/items" : { - "get" : { - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "dictionaryName", - "in" : "path", - "required" : true, + "createdBy" : { "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsDictionary" - } - } }, - "x-camelContextId" : "camel-1", - "x-routeId" : null - }, - "put" : { - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "dictionaryName", - "in" : "path", - "required" : true, + "name" : { "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsDictionaryItem" - } - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsDictionaryItem" - } - } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : null - } - }, - "/v1/healthcheck" : { - "get" : { - "operationId" : "route17", - "produces" : [ "application/json" ], - "responses" : { - "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route17" - } - }, - "/v1/tosca/models" : { - "get" : { - "operationId" : "route36", - "produces" : [ "application/json" ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsToscaModel" - } - } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route36" - } - }, - "/v1/tosca/models/{toscaModelName}" : { - "get" : { - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "toscaModelName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsToscaModel" - } - } + "secondLevelDictionary" : { + "type" : "integer", + "format" : "int32" }, - "x-camelContextId" : "camel-1", - "x-routeId" : null - }, - "put" : { - "operationId" : "route33", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "toscaModelName", - "in" : "path", - "required" : true, + "subDictionaryType" : { "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsToscaModel" - } - } ], - "responses" : { - "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route33" - } - }, - "/v1/tosca/models/policyType/{policyType}" : { - "get" : { - "operationId" : "route34", - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "policyType", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsToscaModel" - } + "dictionaryElements" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/DictionaryElement" } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route34" + } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.tosca.Dictionary" } }, - "/v1/user/getUser" : { - "get" : { - "operationId" : "route41", - "produces" : [ "text/plain" ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route41" - } - } - }, - "definitions" : { - "Loop" : { + "DictionaryElement" : { "type" : "object", "properties" : { - "name" : { - "type" : "string" + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "dcaeDeploymentId" : { - "type" : "string" + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "dcaeDeploymentStatusUrl" : { + "updatedBy" : { "type" : "string" }, - "dcaeBlueprintId" : { + "createdBy" : { "type" : "string" }, - "svgRepresentation" : { + "shortName" : { "type" : "string" }, - "globalPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" - }, - "modelPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" - }, - "blueprint" : { + "name" : { "type" : "string" }, - "lastComputedState" : { - "type" : "string", - "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ] + "description" : { + "type" : "string" }, - "operationalPolicies" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "$ref" : "#/definitions/OperationalPolicy" - } + "type" : { + "type" : "string" }, - "microServicePolicies" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "$ref" : "#/definitions/MicroServicePolicy" - } + "subDictionary" : { + "type" : "string" }, - "loopLogs" : { + "usedByDictionaries" : { "type" : "array", "uniqueItems" : true, "items" : { - "$ref" : "#/definitions/LoopLog" + "$ref" : "#/definitions/Dictionary" } } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.loop.Loop" } }, - "JsonArray" : { + "Loop" : { "type" : "object", "properties" : { - "asString" : { - "type" : "string" - }, - "asBoolean" : { - "type" : "boolean" - }, - "asNumber" : { - "$ref" : "#/definitions/Number" - }, - "asDouble" : { - "type" : "number", - "format" : "double" - }, - "asFloat" : { - "type" : "number", - "format" : "float" - }, - "asLong" : { + "createdDate" : { "type" : "integer", "format" : "int64" }, - "asInt" : { + "updatedDate" : { "type" : "integer", - "format" : "int32" - }, - "asByte" : { - "type" : "string", - "format" : "byte" + "format" : "int64" }, - "asCharacter" : { + "updatedBy" : { "type" : "string" }, - "asBigDecimal" : { - "type" : "number" - }, - "asBigInteger" : { - "type" : "integer" + "createdBy" : { + "type" : "string" }, - "asShort" : { - "type" : "integer", - "format" : "int32" + "name" : { + "type" : "string" }, - "jsonPrimitive" : { - "type" : "boolean" + "dcaeDeploymentId" : { + "type" : "string" }, - "jsonNull" : { - "type" : "boolean" + "dcaeDeploymentStatusUrl" : { + "type" : "string" }, - "jsonObject" : { - "type" : "boolean" + "svgRepresentation" : { + "type" : "string" }, - "asJsonObject" : { + "globalPropertiesJson" : { "$ref" : "#/definitions/JsonObject" }, - "jsonArray" : { - "type" : "boolean" + "modelService" : { + "$ref" : "#/definitions/Service" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" + "lastComputedState" : { + "type" : "string", + "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ] }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" - } - }, - "x-className" : { - "type" : "string", - "format" : "com.google.gson.JsonArray" - } - }, - "LoopLog" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" + "components" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/definitions/ExternalComponent" + } }, - "logType" : { - "type" : "string", - "enum" : [ "INFO", "WARNING", "ERROR" ] + "operationalPolicies" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/OperationalPolicy" + } }, - "message" : { - "type" : "string" + "microServicePolicies" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/MicroServicePolicy" + } }, - "loop" : { - "$ref" : "#/definitions/Loop" + "loopLogs" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopLog" + } }, - "logInstant" : { - "type" : "integer", - "format" : "int64" + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.loop.Loop" } }, - "Number" : { - "type" : "object" - }, "JsonPrimitive" : { "type" : "object", "properties" : { - "boolean" : { + "asBoolean" : { "type" : "boolean" }, "number" : { @@ -1023,9 +812,6 @@ "asString" : { "type" : "string" }, - "asBoolean" : { - "type" : "boolean" - }, "asNumber" : { "$ref" : "#/definitions/Number" }, @@ -1062,17 +848,14 @@ "type" : "integer", "format" : "int32" }, - "string" : { - "type" : "boolean" - }, - "jsonPrimitive" : { + "boolean" : { "type" : "boolean" }, - "jsonNull" : { + "string" : { "type" : "boolean" }, - "jsonObject" : { - "type" : "boolean" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" @@ -1080,8 +863,14 @@ "jsonArray" : { "type" : "boolean" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" }, "asJsonPrimitive" : { "$ref" : "#/definitions/JsonPrimitive" @@ -1094,23 +883,46 @@ "MicroServicePolicy" : { "type" : "object", "properties" : { - "name" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "modelType" : { + "createdBy" : { "type" : "string" }, - "properties" : { + "jsonRepresentation" : { "$ref" : "#/definitions/JsonObject" }, - "shared" : { - "type" : "boolean" + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" }, - "policyTosca" : { + "pdpGroup" : { "type" : "string" }, - "jsonRepresentation" : { - "$ref" : "#/definitions/JsonObject" + "pdpSubGroup" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "context" : { + "type" : "string" + }, + "deviceTypeScope" : { + "type" : "string" + }, + "shared" : { + "type" : "boolean" }, "usedByLoops" : { "type" : "array", @@ -1118,6 +930,18 @@ "items" : { "$ref" : "#/definitions/Loop" } + }, + "dcaeDeploymentId" : { + "type" : "string" + }, + "dcaeDeploymentStatusUrl" : { + "type" : "string" + }, + "dcaeBlueprintId" : { + "type" : "string" + }, + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" } }, "x-className" : { @@ -1128,26 +952,29 @@ "JsonObject" : { "type" : "object", "properties" : { - "jsonPrimitive" : { + "asBoolean" : { "type" : "boolean" }, - "jsonNull" : { - "type" : "boolean" + "asString" : { + "type" : "string" }, - "jsonObject" : { - "type" : "boolean" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" }, - "asString" : { - "type" : "string" - }, "jsonArray" : { "type" : "boolean" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" }, "asJsonPrimitive" : { "$ref" : "#/definitions/JsonPrimitive" @@ -1155,9 +982,6 @@ "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, - "asBoolean" : { - "type" : "boolean" - }, "asNumber" : { "$ref" : "#/definitions/Number" }, @@ -1200,46 +1024,155 @@ "format" : "com.google.gson.JsonObject" } }, - "OperationalPolicy" : { + "PolicyModel" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, + "policyModelType" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, + "policyModelTosca" : { + "type" : "string" + }, + "policyAcronym" : { + "type" : "string" + }, + "usedByElementModels" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopElementModel" + } + }, + "policyPdpGroup" : { + "$ref" : "#/definitions/JsonObject" + } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.loop.template.PolicyModel" + } + }, + "Service" : { "type" : "object", "properties" : { + "serviceUuid" : { + "type" : "string" + }, "name" : { "type" : "string" }, + "version" : { + "type" : "string" + }, + "serviceDetails" : { + "$ref" : "#/definitions/JsonObject" + }, + "resourceDetails" : { + "$ref" : "#/definitions/JsonObject" + } + } + }, + "LoopTemplateLoopElementModel" : { + "type" : "object", + "properties" : { + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" + }, + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" + }, + "flowOrder" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "OperationalPolicy" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" + }, "configurationsJson" : { "$ref" : "#/definitions/JsonObject" }, + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" + }, + "pdpGroup" : { + "type" : "string" + }, + "pdpSubGroup" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, "loop" : { "$ref" : "#/definitions/Loop" }, - "jsonRepresentation" : { - "$ref" : "#/definitions/JsonObject" + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" } } }, "JsonNull" : { "type" : "object", "properties" : { - "jsonPrimitive" : { + "asBoolean" : { "type" : "boolean" }, - "jsonNull" : { - "type" : "boolean" + "asString" : { + "type" : "string" }, - "jsonObject" : { - "type" : "boolean" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" }, - "asString" : { - "type" : "string" - }, "jsonArray" : { "type" : "boolean" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" }, "asJsonPrimitive" : { "$ref" : "#/definitions/JsonPrimitive" @@ -1247,9 +1180,53 @@ "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { + "type" : "string" + }, + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "JsonArray" : { + "type" : "object", + "properties" : { "asBoolean" : { "type" : "boolean" }, + "asString" : { + "type" : "string" + }, "asNumber" : { "$ref" : "#/definitions/Number" }, @@ -1285,390 +1262,212 @@ "asShort" : { "type" : "integer", "format" : "int32" - } - } - }, - "CldsModelInstance" : { - "type" : "object", - "properties" : { - "modelInstanceId" : { - "type" : "string" - }, - "location" : { - "type" : "string" - }, - "vmName" : { - "type" : "string" - } - } - }, - "CldsModel" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "string" - }, - "templateId" : { - "type" : "string" - }, - "templateName" : { - "type" : "string" - }, - "name" : { - "type" : "string" - }, - "controlNamePrefix" : { - "type" : "string" - }, - "controlNameUuid" : { - "type" : "string" - }, - "bpmnText" : { - "type" : "string" - }, - "propText" : { - "type" : "string" - }, - "imageText" : { - "type" : "string" - }, - "docText" : { - "type" : "string" - }, - "blueprintText" : { - "type" : "string" - }, - "event" : { - "$ref" : "#/definitions/CldsEvent" - }, - "status" : { - "type" : "string" - }, - "permittedActionCd" : { - "type" : "array", - "items" : { - "type" : "string" - } - }, - "cldsModelInstanceList" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsModelInstance" - } - }, - "errorMessageForUi" : { - "type" : "string" - }, - "typeId" : { - "type" : "string" - }, - "typeName" : { - "type" : "string" }, - "deploymentId" : { - "type" : "string" - }, - "deploymentStatusUrl" : { - "type" : "string" - }, - "controlName" : { - "type" : "string" - } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsModel" - } - }, - "CldsEvent" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "string" - }, - "actionCd" : { - "type" : "string" - }, - "actionStateCd" : { - "type" : "string" - }, - "processInstanceId" : { - "type" : "string" - }, - "userid" : { - "type" : "string" - } - } - }, - "CldsMonitoringDetails" : { - "type" : "object", - "properties" : { - "closeloopName" : { - "type" : "string" - }, - "modelId" : { - "type" : "string" - }, - "modelName" : { - "type" : "string" - }, - "serviceTypeId" : { - "type" : "string" - }, - "deploymentId" : { - "type" : "string" - }, - "templateName" : { - "type" : "string" - }, - "action" : { - "type" : "string" - }, - "userid" : { - "type" : "string" - }, - "timestamp" : { - "type" : "string" - } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsMonitoringDetails" - } - }, - "CldsInfo" : { - "type" : "object", - "properties" : { - "userName" : { - "type" : "string" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, - "cldsVersion" : { - "type" : "string" + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" }, - "permissionReadCl" : { + "jsonArray" : { "type" : "boolean" }, - "permissionUpdateCl" : { + "jsonObject" : { "type" : "boolean" }, - "permissionReadTemplate" : { + "jsonPrimitive" : { "type" : "boolean" }, - "permissionUpdateTemplate" : { + "jsonNull" : { "type" : "boolean" }, - "permissionReadTosca" : { - "type" : "boolean" + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, - "permissionUpdateTosca" : { - "type" : "boolean" + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsInfo" + "format" : "com.google.gson.JsonArray" } }, - "DcaeEvent" : { + "LoopLog" : { "type" : "object", "properties" : { - "event" : { - "type" : "string" - }, - "artifactName" : { - "type" : "string" + "id" : { + "type" : "integer", + "format" : "int64" }, - "instances" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsModelInstance" - } + "logType" : { + "type" : "string", + "enum" : [ "INFO", "WARNING", "ERROR" ] }, - "serviceUUID" : { + "logComponent" : { "type" : "string" }, - "resourceUUID" : { + "message" : { "type" : "string" }, - "controlName" : { - "type" : "string" + "loop" : { + "$ref" : "#/definitions/Loop" }, - "cldsActionCd" : { - "type" : "string" + "logInstant" : { + "type" : "integer", + "format" : "int64" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.DcaeEvent" } }, - "ValueItem" : { + "Number" : { + "type" : "object" + }, + "ExternalComponent" : { "type" : "object", "properties" : { - "value" : { + "state" : { + "$ref" : "#/definitions/ExternalComponentState" + }, + "componentName" : { "type" : "string" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.ValueItem" } }, - "CldsTemplate" : { + "LoopTemplate" : { "type" : "object", "properties" : { - "id" : { - "type" : "string" - }, - "name" : { - "type" : "string" - }, - "controlNamePrefix" : { - "type" : "string" + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "controlNameUuid" : { - "type" : "string" + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "bpmnId" : { + "updatedBy" : { "type" : "string" }, - "bpmnUserid" : { + "createdBy" : { "type" : "string" }, - "bpmnText" : { + "name" : { "type" : "string" }, - "imageId" : { + "dcaeBlueprintId" : { "type" : "string" }, - "imageUserid" : { + "blueprint" : { "type" : "string" }, - "imageText" : { + "svgRepresentation" : { "type" : "string" }, - "propId" : { - "type" : "string" + "loopElementModelsUsed" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopTemplateLoopElementModel" + } }, - "propUserid" : { - "type" : "string" + "modelService" : { + "$ref" : "#/definitions/Service" }, - "propText" : { - "type" : "string" + "maximumInstancesAllowed" : { + "type" : "integer", + "format" : "int32" }, - "userAuthorizedToUpdate" : { + "uniqueBlueprint" : { "type" : "boolean" + }, + "allowedLoopType" : { + "type" : "string", + "enum" : [ "OPEN", "CLOSED", "HYBRID" ] } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsTemplate" + "format" : "org.onap.clamp.loop.template.LoopTemplate" } }, - "CldsDictionary" : { + "ExternalComponentState" : { "type" : "object", "properties" : { - "dictionaryId" : { - "type" : "string" - }, - "dictionaryName" : { - "type" : "string" - }, - "createdBy" : { + "stateName" : { "type" : "string" }, - "updatedBy" : { - "type" : "string" - }, - "lastUpdatedDate" : { + "description" : { "type" : "string" }, - "cldsDictionaryItems" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsDictionaryItem" - } + "level" : { + "type" : "integer", + "format" : "int32" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsDictionary" } }, - "CldsDictionaryItem" : { + "LoopElementModel" : { "type" : "object", "properties" : { - "dictElementId" : { - "type" : "string" + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "dictionaryId" : { - "type" : "string" + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "dictElementName" : { + "updatedBy" : { "type" : "string" }, - "dictElementShortName" : { + "createdBy" : { "type" : "string" }, - "dictElementDesc" : { + "name" : { "type" : "string" }, - "dictElementType" : { + "dcaeBlueprintId" : { "type" : "string" }, - "createdBy" : { + "blueprint" : { "type" : "string" }, - "updatedBy" : { + "loopElementType" : { "type" : "string" }, - "lastUpdatedDate" : { + "shortName" : { "type" : "string" + }, + "policyModels" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/PolicyModel" + } + }, + "usedByLoopTemplates" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopTemplateLoopElementModel" + } } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsDictionaryItem" } }, - "CldsToscaModel" : { + "CldsHealthCheck" : { "type" : "object", "properties" : { - "revisionId" : { - "type" : "string" - }, - "toscaModelYaml" : { - "type" : "string" - }, - "version" : { - "type" : "number", - "format" : "double" - }, - "toscaModelJson" : { - "type" : "string" - }, - "userId" : { - "type" : "string" - }, - "createdDate" : { - "type" : "string" - }, - "lastUpdatedDate" : { - "type" : "string" - }, - "id" : { + "healthCheckComponent" : { "type" : "string" }, - "policyType" : { + "healthCheckStatus" : { "type" : "string" }, - "toscaModelName" : { + "description" : { "type" : "string" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsToscaModel" + "format" : "org.onap.clamp.clds.model.CldsHealthCheck" } } }