X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fswagger%2Fswagger.json;h=e1e133771bea96c0cdbc9f1dc3f5112167bc4e65;hb=723de7f63f0951d0cfe7a23956cf9d00128809b1;hp=85fe2f7015b3d1fbcdc60b54a73834ae91896dd9;hpb=700f44182b05ef329e00ad6107dd688ce092573d;p=clamp.git diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 85fe2f70..e1e13377 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,151 +1,178 @@ { "swagger" : "2.0", "info" : { - "version" : "4.0.0-SNAPSHOT", + "version" : "5.0.0-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "0.0.0.0", - "basePath" : "/restservices/clds/v1/", + "host" : "localhost:41607", + "basePath" : "/restservices/clds/", "schemes" : [ "http" ], "paths" : { - "/clds/action/{action}/{modelName}?test={test}" : { + "/v2/clampInformation" : { + "get" : { + "operationId" : "route35", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/ClampInformation" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route35" + } + }, + "/v2/dictionary" : { + "get" : { + "operationId" : "route21", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route21" + }, "put" : { - "operationId" : "route66", + "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" + "$ref" : "#/definitions/Dictionary" } } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route66" - } - }, - "/clds/cldsDetails" : { - "get" : { - "operationId" : "route58", - "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsMonitoringDetails" - }, "schema" : { - "$ref" : "#/definitions/CldsMonitoringDetails" + "$ref" : "#/definitions/Dictionary" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route58" + "x-camelContextId" : "camel-1", + "x-routeId" : "route23" } }, - "/clds/cldsInfo" : { + "/v2/dictionary/{dictionaryName}" : { "get" : { - "operationId" : "route59", "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "dictionaryName", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsInfo" - }, "schema" : { - "$ref" : "#/definitions/CldsInfo" + "$ref" : "#/definitions/Dictionary" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route59" + "x-camelContextId" : "camel-1", + "x-routeId" : null } }, - "/clds/dcae/event?test={test}" : { - "post" : { - "operationId" : "route67", + "/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/DcaeEvent" + "$ref" : "#/definitions/Dictionary" } } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : null + }, + "delete" : { + "operationId" : "route25", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route67" + "x-camelContextId" : "camel-1", + "x-routeId" : "route25" } }, - "/clds/deploy/{modelName}" : { - "put" : { - "operationId" : "route69", - "consumes" : [ "application/json" ], + "/v2/dictionary/{name}/elements/{shortName}" : { + "delete" : { "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "name", "in" : "path", "required" : true, "type" : "string" }, { - "in" : "body", - "name" : "body", + "name" : "shortName", + "in" : "path", "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" - } + "type" : "string" } ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route69" + "x-camelContextId" : "camel-1", + "x-routeId" : null } }, - "/clds/model-names" : { + "/v2/dictionary/secondary/names" : { "get" : { - "operationId" : "route65", "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/ValueItem" - }, "schema" : { - "$ref" : "#/definitions/ValueItem" + "type" : "array", + "items" : { + "type" : "string" + } } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route65" + "x-camelContextId" : "camel-1", + "x-routeId" : null } }, - "/clds/model/{modelName}" : { + "/v2/loop/{loopName}" : { "get" : { - "operationId" : "route63", + "operationId" : "route3", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" @@ -153,55 +180,75 @@ "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsModel" - }, "schema" : { - "$ref" : "#/definitions/CldsModel" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route63" - }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route3" + } + }, + "/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : { "put" : { - "operationId" : "route64", - "consumes" : [ "application/json" ], + "operationId" : "route16", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" }, { - "in" : "body", - "name" : "body", + "name" : "policyType", + "in" : "path", "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" + "type" : "string" + }, { + "name" : "policyVersion", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route16" + } + }, + "/v2/loop/create/{loopName}?templateName={templateName}" : { + "post" : { + "operationId" : "route18", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName}?templateName={templateName", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsModel" - }, "schema" : { - "$ref" : "#/definitions/CldsModel" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route64" + "x-camelContextId" : "camel-1", + "x-routeId" : "route18" } }, - "/clds/model/bpmn/{modelName}" : { - "get" : { - "operationId" : "route61", - "produces" : [ "text/xml" ], + "/v2/loop/delete/{loopName}" : { + "put" : { + "operationId" : "route14", "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" @@ -209,88 +256,111 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route61" + "x-camelContextId" : "camel-1", + "x-routeId" : "route14" } }, - "/clds/model/image/{modelName}" : { - "get" : { - "operationId" : "route62", - "produces" : [ "text/xml" ], + "/v2/loop/deploy/{loopName}" : { + "put" : { + "operationId" : "route8", + "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route62" + "x-camelContextId" : "camel-1", + "x-routeId" : "route8" } }, - "/clds/properties" : { + "/v2/loop/getAllNames" : { "get" : { - "operationId" : "route68", + "operationId" : "route2", "produces" : [ "application/json" ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route68" + "x-camelContextId" : "camel-1", + "x-routeId" : "route2" } }, - "/clds/undeploy/{modelName}" : { - "put" : { - "operationId" : "route70", - "consumes" : [ "application/json" ], + "/v2/loop/getstatus/{loopName}" : { + "get" : { + "operationId" : "route15", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" - } } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route70" + "x-camelContextId" : "camel-1", + "x-routeId" : "route15" } }, - "/cldsTempate/template-names" : { - "get" : { - "operationId" : "route75", + "/v2/loop/refreshOpPolicyJsonSchema/{loopName}" : { + "put" : { + "operationId" : "route9", "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/ValueItem" - }, "schema" : { - "$ref" : "#/definitions/ValueItem" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route75" + "x-camelContextId" : "camel-1", + "x-routeId" : "route9" } }, - "/cldsTempate/template/{templateName}" : { - "get" : { - "operationId" : "route73", + "/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : { + "put" : { + "operationId" : "route17", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "templateName", + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyVersion", "in" : "path", "required" : true, "type" : "string" @@ -298,109 +368,132 @@ "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsTemplate" - }, "schema" : { - "$ref" : "#/definitions/CldsTemplate" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route73" - }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route17" + } + }, + "/v2/loop/restart/{loopName}" : { "put" : { - "operationId" : "route74", - "consumes" : [ "application/json" ], + "operationId" : "route12", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "templateName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsTemplate" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route12" + } + }, + "/v2/loop/stop/{loopName}" : { + "put" : { + "operationId" : "route11", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsTemplate" - }, "schema" : { - "$ref" : "#/definitions/CldsTemplate" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route74" + "x-camelContextId" : "camel-1", + "x-routeId" : "route11" } }, - "/cldsTempate/template/bpmn/{templateName}" : { - "get" : { - "operationId" : "route71", - "produces" : [ "text/xml" ], + "/v2/loop/submit/{loopName}" : { + "put" : { + "operationId" : "route13", + "produces" : [ "application/json" ], "parameters" : [ { - "name" : "templateName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route71" + "x-camelContextId" : "camel-1", + "x-routeId" : "route13" } }, - "/cldsTempate/template/image/{templateName}" : { + "/v2/loop/svgRepresentation/{loopName}" : { "get" : { - "operationId" : "route72", - "produces" : [ "text/xml" ], + "operationId" : "route4", + "produces" : [ "application/xml" ], "parameters" : [ { - "name" : "templateName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "type" : "string" + } + } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route72" + "x-camelContextId" : "camel-1", + "x-routeId" : "route4" } }, - "/dictionary" : { - "get" : { - "operationId" : "route81", + "/v2/loop/undeploy/{loopName}" : { + "put" : { + "operationId" : "route10", "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsDictionary" - }, "schema" : { - "$ref" : "#/definitions/CldsDictionary" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route81" + "x-camelContextId" : "camel-1", + "x-routeId" : "route10" } }, - "/dictionary/{dictionaryName}" : { - "put" : { - "operationId" : "route80", + "/v2/loop/updateGlobalProperties/{loopName}" : { + "post" : { + "operationId" : "route5", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "dictionaryName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" @@ -409,54 +502,58 @@ "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/CldsDictionary" + "$ref" : "#/definitions/JsonObject" } } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsDictionary" - }, "schema" : { - "$ref" : "#/definitions/CldsDictionary" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route80" + "x-camelContextId" : "camel-1", + "x-routeId" : "route5" } }, - "/dictionary/{dictionaryName}/items" : { - "get" : { - "operationId" : "route83", + "/v2/loop/updateMicroservicePolicy/{loopName}" : { + "post" : { + "operationId" : "route7", + "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "dictionaryName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" + }, { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "$ref" : "#/definitions/MicroServicePolicy" + } } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsDictionary" - }, "schema" : { - "$ref" : "#/definitions/CldsDictionary" + "$ref" : "#/definitions/MicroServicePolicy" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route83" - }, - "put" : { - "operationId" : "route82", + "x-camelContextId" : "camel-1", + "x-routeId" : "route7" + } + }, + "/v2/loop/updateOperationalPolicies/{loopName}" : { + "post" : { + "operationId" : "route6", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "dictionaryName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" @@ -465,60 +562,70 @@ "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/CldsDictionaryItem" + "$ref" : "#/definitions/JsonArray" } } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsDictionaryItem" - }, "schema" : { - "$ref" : "#/definitions/CldsDictionaryItem" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route82" + "x-camelContextId" : "camel-1", + "x-routeId" : "route6" } }, - "/healthcheck" : { + "/v2/policyToscaModels" : { "get" : { - "operationId" : "route60", + "operationId" : "route28", "produces" : [ "application/json" ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route60" - } - }, - "/tosca/models" : { - "get" : { - "operationId" : "route78", + "x-camelContextId" : "camel-1", + "x-routeId" : "route28" + }, + "post" : { + "operationId" : "route29", + "consumes" : [ "plain/text" ], "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "type" : "string" + } + } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsToscaModel" - }, "schema" : { - "$ref" : "#/definitions/CldsToscaModel" + "$ref" : "#/definitions/PolicyModel" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route78" + "x-camelContextId" : "camel-1", + "x-routeId" : "route29" } }, - "/tosca/models/{toscaModelName}" : { + "/v2/policyToscaModels/{policyModelType}/{policyModelVersion}" : { "get" : { - "operationId" : "route79", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "toscaModelName", + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyModelVersion", "in" : "path", "required" : true, "type" : "string" @@ -526,23 +633,25 @@ "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsToscaModel" - }, "schema" : { - "$ref" : "#/definitions/CldsToscaModel" + "$ref" : "#/definitions/PolicyModel" } } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route79" + "x-camelContextId" : "camel-1", + "x-routeId" : null }, "put" : { - "operationId" : "route76", - "consumes" : [ "application/json" ], + "operationId" : "route30", + "consumes" : [ "plain/text" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "toscaModelName", + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyModelVersion", "in" : "path", "required" : true, "type" : "string" @@ -551,427 +660,1000 @@ "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/CldsToscaModel" + "type" : "string" } } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route76" + "x-camelContextId" : "camel-1", + "x-routeId" : "route30" } }, - "/tosca/models/policyType/{policyType}" : { + "/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}" : { "get" : { - "operationId" : "route77", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "policyType", + "name" : "policyModelType", "in" : "path", "required" : true, "type" : "string" - } ], + }, { + "name" : "policyModelVersion", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "type" : "string" + } + } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route77" + "x-camelContextId" : "camel-1", + "x-routeId" : null } }, - "/user/getUser" : { + "/v2/templates" : { "get" : { - "operationId" : "route84", + "operationId" : "route34", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/LoopTemplate" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route34" + } + }, + "/v2/templates/{templateName}" : { + "get" : { + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "templateName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/LoopTemplate" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : null + } + }, + "/v2/templates/{templateName}/svgRepresentation" : { + "get" : { + "produces" : [ "application/xml" ], + "parameters" : [ { + "name" : "templateName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "string" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : null + } + }, + "/v2/templates/names" : { + "get" : { + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : null + } + }, + "/v1/healthcheck" : { + "get" : { + "operationId" : "route36", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/CldsHealthCheck" + } + } + }, + "x-camelContextId" : "camel-1", + "x-routeId" : "route36" + } + }, + "/v1/user/getUser" : { + "get" : { + "operationId" : "route37", "produces" : [ "text/plain" ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-3", - "x-routeId" : "route84" + "x-camelContextId" : "camel-1", + "x-routeId" : "route37" } } }, "definitions" : { - "CldsModelInstance" : { + "ClampInformation" : { "type" : "object", "properties" : { - "modelInstanceId" : { + "userName" : { "type" : "string" }, - "location" : { + "cldsVersion" : { "type" : "string" }, - "vmName" : { - "type" : "string" + "allPermissions" : { + "type" : "array", + "items" : { + "type" : "string" + } } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.clds.model.ClampInformation" } }, - "CldsModel" : { + "Dictionary" : { "type" : "object", "properties" : { - "id" : { - "type" : "string" + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "templateId" : { + "updatedBy" : { "type" : "string" }, - "templateName" : { + "createdBy" : { "type" : "string" }, "name" : { "type" : "string" }, - "controlNamePrefix" : { - "type" : "string" + "secondLevelDictionary" : { + "type" : "integer", + "format" : "int32" }, - "controlNameUuid" : { + "subDictionaryType" : { "type" : "string" }, - "bpmnText" : { + "dictionaryElements" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/DictionaryElement" + } + } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.tosca.Dictionary" + } + }, + "DictionaryElement" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "propText" : { + "createdBy" : { "type" : "string" }, - "imageText" : { + "shortName" : { "type" : "string" }, - "docText" : { + "name" : { "type" : "string" }, - "blueprintText" : { + "description" : { "type" : "string" }, - "event" : { - "$ref" : "#/definitions/CldsEvent" + "type" : { + "type" : "string" }, - "status" : { + "subDictionary" : { "type" : "string" }, - "permittedActionCd" : { + "usedByDictionaries" : { "type" : "array", + "uniqueItems" : true, "items" : { - "type" : "string" + "$ref" : "#/definitions/Dictionary" } + } + } + }, + "Loop" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "cldsModelInstanceList" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsModelInstance" - } + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "errorMessageForUi" : { + "updatedBy" : { "type" : "string" }, - "typeId" : { + "createdBy" : { "type" : "string" }, - "typeName" : { + "name" : { "type" : "string" }, - "deploymentId" : { + "dcaeDeploymentId" : { "type" : "string" }, - "deploymentStatusUrl" : { + "dcaeDeploymentStatusUrl" : { "type" : "string" }, - "controlName" : { + "svgRepresentation" : { "type" : "string" + }, + "globalPropertiesJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "modelService" : { + "$ref" : "#/definitions/Service" + }, + "lastComputedState" : { + "type" : "string", + "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ] + }, + "components" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/definitions/ExternalComponent" + } + }, + "operationalPolicies" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/OperationalPolicy" + } + }, + "microServicePolicies" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/MicroServicePolicy" + } + }, + "loopLogs" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopLog" + } + }, + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsModel" + "format" : "org.onap.clamp.loop.Loop" } }, - "CldsEvent" : { + "JsonPrimitive" : { "type" : "object", "properties" : { - "id" : { - "type" : "string" + "asInt" : { + "type" : "integer", + "format" : "int32" }, - "actionCd" : { - "type" : "string" + "asDouble" : { + "type" : "number", + "format" : "double" }, - "actionStateCd" : { - "type" : "string" + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "boolean" : { + "type" : "boolean" + }, + "asBoolean" : { + "type" : "boolean" + }, + "number" : { + "type" : "boolean" }, - "processInstanceId" : { + "asString" : { "type" : "string" }, - "userid" : { + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { "type" : "string" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "string" : { + "type" : "boolean" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, + "jsonObject" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "jsonNull" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonArray" : { + "type" : "boolean" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" } } }, - "CldsMonitoringDetails" : { + "MicroServicePolicy" : { "type" : "object", "properties" : { - "closeloopName" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { "type" : "string" }, - "modelId" : { + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" + }, + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" + }, + "pdpGroup" : { "type" : "string" }, - "modelName" : { + "pdpSubgroup" : { "type" : "string" }, - "serviceTypeId" : { + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" + }, + "name" : { "type" : "string" }, - "deploymentId" : { + "context" : { "type" : "string" }, - "templateName" : { + "deviceTypeScope" : { "type" : "string" }, - "action" : { + "shared" : { + "type" : "boolean" + }, + "usedByLoops" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/Loop" + } + }, + "dcaeDeploymentId" : { "type" : "string" }, - "userid" : { + "dcaeDeploymentStatusUrl" : { "type" : "string" }, - "timestamp" : { + "dcaeBlueprintId" : { "type" : "string" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsMonitoringDetails" + "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" } }, - "CldsInfo" : { + "JsonObject" : { "type" : "object", "properties" : { - "userName" : { - "type" : "string" + "asInt" : { + "type" : "integer", + "format" : "int32" }, - "cldsVersion" : { - "type" : "string" + "asDouble" : { + "type" : "number", + "format" : "double" }, - "permissionReadCl" : { - "type" : "boolean" + "asLong" : { + "type" : "integer", + "format" : "int64" }, - "permissionUpdateCl" : { + "asBoolean" : { "type" : "boolean" }, - "permissionReadTemplate" : { + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, + "asString" : { + "type" : "string" + }, + "jsonObject" : { "type" : "boolean" }, - "permissionUpdateTemplate" : { + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "jsonNull" : { "type" : "boolean" }, - "permissionReadTosca" : { + "jsonPrimitive" : { "type" : "boolean" }, - "permissionUpdateTosca" : { + "jsonArray" : { "type" : "boolean" + }, + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { + "type" : "string" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsInfo" + "format" : "com.google.gson.JsonObject" } }, - "DcaeEvent" : { + "PolicyModel" : { "type" : "object", "properties" : { - "event" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, + "policyModelType" : { "type" : "string" }, - "serviceUUID" : { + "version" : { "type" : "string" }, - "resourceUUID" : { + "policyModelTosca" : { "type" : "string" }, - "artifactName" : { + "policyAcronym" : { "type" : "string" }, - "instances" : { + "usedByElementModels" : { "type" : "array", + "uniqueItems" : true, "items" : { - "$ref" : "#/definitions/CldsModelInstance" + "$ref" : "#/definitions/LoopElementModel" } }, - "controlName" : { - "type" : "string" - }, - "cldsActionCd" : { - "type" : "string" + "policyPdpGroup" : { + "$ref" : "#/definitions/JsonObject" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.DcaeEvent" + "format" : "org.onap.clamp.loop.template.PolicyModel" } }, - "ValueItem" : { + "Service" : { "type" : "object", "properties" : { - "value" : { + "serviceUuid" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "version" : { "type" : "string" + }, + "serviceDetails" : { + "$ref" : "#/definitions/JsonObject" + }, + "resourceDetails" : { + "$ref" : "#/definitions/JsonObject" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.ValueItem" } }, - "CldsTemplate" : { + "LoopTemplateLoopElementModel" : { "type" : "object", "properties" : { - "id" : { - "type" : "string" + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" }, - "name" : { - "type" : "string" + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" }, - "controlNamePrefix" : { - "type" : "string" + "flowOrder" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "OperationalPolicy" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "controlNameUuid" : { - "type" : "string" + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "bpmnId" : { + "updatedBy" : { "type" : "string" }, - "bpmnUserid" : { + "createdBy" : { "type" : "string" }, - "bpmnText" : { - "type" : "string" + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" }, - "imageId" : { - "type" : "string" + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" }, - "imageUserid" : { - "type" : "string" + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" }, - "imageText" : { + "pdpGroup" : { "type" : "string" }, - "propId" : { + "pdpSubgroup" : { "type" : "string" }, - "propUserid" : { - "type" : "string" + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" }, - "propText" : { + "name" : { "type" : "string" }, - "userAuthorizedToUpdate" : { + "loop" : { + "$ref" : "#/definitions/Loop" + }, + "legacy" : { "type" : "boolean" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsTemplate" } }, - "CldsDictionary" : { + "JsonNull" : { "type" : "object", "properties" : { - "dictionaryId" : { - "type" : "string" + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asDouble" : { + "type" : "number", + "format" : "double" }, - "dictionaryName" : { + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asBoolean" : { + "type" : "boolean" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, + "asString" : { "type" : "string" }, - "createdBy" : { + "jsonObject" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "jsonNull" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonArray" : { + "type" : "boolean" + }, + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { "type" : "string" }, - "updatedBy" : { + "asNumber" : { + "$ref" : "#/definitions/Number" + } + } + }, + "JsonArray" : { + "type" : "object", + "properties" : { + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asBoolean" : { + "type" : "boolean" + }, + "asString" : { "type" : "string" }, - "lastUpdatedDate" : { + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { "type" : "string" }, - "cldsDictionaryItems" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsDictionaryItem" - } + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, + "jsonObject" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "jsonNull" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonArray" : { + "type" : "boolean" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsDictionary" + "format" : "com.google.gson.JsonArray" } }, - "CldsDictionaryItem" : { + "LoopLog" : { "type" : "object", "properties" : { - "dictElementId" : { + "id" : { + "type" : "integer", + "format" : "int64" + }, + "logType" : { + "type" : "string", + "enum" : [ "INFO", "WARNING", "ERROR" ] + }, + "logComponent" : { "type" : "string" }, - "dictionaryId" : { + "message" : { "type" : "string" }, - "dictElementName" : { + "loop" : { + "$ref" : "#/definitions/Loop" + }, + "logInstant" : { + "type" : "integer", + "format" : "int64" + } + } + }, + "Number" : { + "type" : "object" + }, + "ExternalComponent" : { + "type" : "object", + "properties" : { + "state" : { + "$ref" : "#/definitions/ExternalComponentState" + }, + "componentName" : { "type" : "string" + } + } + }, + "LoopTemplate" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "dictElementShortName" : { + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "dictElementDesc" : { + "createdBy" : { "type" : "string" }, - "dictElementType" : { + "name" : { "type" : "string" }, - "createdBy" : { + "dcaeBlueprintId" : { "type" : "string" }, - "updatedBy" : { + "blueprint" : { "type" : "string" }, - "lastUpdatedDate" : { + "svgRepresentation" : { "type" : "string" + }, + "loopElementModelsUsed" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopTemplateLoopElementModel" + } + }, + "modelService" : { + "$ref" : "#/definitions/Service" + }, + "maximumInstancesAllowed" : { + "type" : "integer", + "format" : "int32" + }, + "uniqueBlueprint" : { + "type" : "boolean" + }, + "allowedLoopType" : { + "type" : "string", + "enum" : [ "OPEN", "CLOSED", "HYBRID" ] } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsDictionaryItem" + "format" : "org.onap.clamp.loop.template.LoopTemplate" } }, - "CldsToscaModel" : { + "ExternalComponentState" : { "type" : "object", "properties" : { - "revisionId" : { + "stateName" : { "type" : "string" }, - "toscaModelYaml" : { + "description" : { "type" : "string" }, - "version" : { - "type" : "number", - "format" : "double" + "level" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "LoopElementModel" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "toscaModelJson" : { + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "userId" : { + "createdBy" : { "type" : "string" }, - "createdDate" : { + "name" : { "type" : "string" }, - "lastUpdatedDate" : { + "dcaeBlueprintId" : { "type" : "string" }, - "id" : { + "blueprint" : { + "type" : "string" + }, + "loopElementType" : { + "type" : "string" + }, + "shortName" : { + "type" : "string" + }, + "policyModels" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/PolicyModel" + } + }, + "usedByLoopTemplates" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopTemplateLoopElementModel" + } + } + } + }, + "CldsHealthCheck" : { + "type" : "object", + "properties" : { + "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" } } }