From 0387f232b4a56e98092519ccc2e0ee7985f6701c Mon Sep 17 00:00:00 2001 From: sebdet Date: Mon, 9 Sep 2019 17:32:53 +0200 Subject: Remove dead code Removal of dead code not used anymore as part of the V1 interface + new swagger without old v1 interface Issue-ID: CLAMP-487 Change-Id: I56c80c26082b5119f14afc41e26bae1c52b1ba59 Signed-off-by: sebdet --- docs/swagger/swagger.json | 1477 ++++++++++----------------------------------- 1 file changed, 312 insertions(+), 1165 deletions(-) (limited to 'docs/swagger/swagger.json') diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index d35a59c51..0bd2b077e 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,16 +1,16 @@ { "swagger" : "2.0", "info" : { - "version" : "4.1.1-SNAPSHOT", + "version" : "4.1.2-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "localhost:43819", + "host" : "localhost:40147", "basePath" : "/restservices/clds/", "schemes" : [ "http" ], "paths" : { "/v2/loop/{loopName}" : { "get" : { - "operationId" : "route167", + "operationId" : "route20", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -26,13 +26,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route167" + "x-camelContextId" : "camel-2", + "x-routeId" : "route20" } }, "/v2/loop/delete/{loopName}" : { "put" : { - "operationId" : "route177", + "operationId" : "route30", "parameters" : [ { "name" : "loopName", "in" : "path", @@ -42,13 +42,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route177" + "x-camelContextId" : "camel-2", + "x-routeId" : "route30" } }, "/v2/loop/deploy/{loopName}" : { "put" : { - "operationId" : "route172", + "operationId" : "route25", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -64,13 +64,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route172" + "x-camelContextId" : "camel-2", + "x-routeId" : "route25" } }, "/v2/loop/getAllNames" : { "get" : { - "operationId" : "route166", + "operationId" : "route19", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -83,13 +83,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route166" + "x-camelContextId" : "camel-2", + "x-routeId" : "route19" } }, "/v2/loop/getstatus/{loopName}" : { "get" : { - "operationId" : "route178", + "operationId" : "route31", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -105,13 +105,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route178" + "x-camelContextId" : "camel-2", + "x-routeId" : "route31" } }, "/v2/loop/restart/{loopName}" : { "put" : { - "operationId" : "route175", + "operationId" : "route28", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -127,13 +127,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route175" + "x-camelContextId" : "camel-2", + "x-routeId" : "route28" } }, "/v2/loop/stop/{loopName}" : { "put" : { - "operationId" : "route174", + "operationId" : "route27", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -149,13 +149,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route174" + "x-camelContextId" : "camel-2", + "x-routeId" : "route27" } }, "/v2/loop/submit/{loopName}" : { "put" : { - "operationId" : "route176", + "operationId" : "route29", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -171,13 +171,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route176" + "x-camelContextId" : "camel-2", + "x-routeId" : "route29" } }, "/v2/loop/svgRepresentation/{loopName}" : { "get" : { - "operationId" : "route168", + "operationId" : "route21", "produces" : [ "application/xml" ], "parameters" : [ { "name" : "loopName", @@ -193,13 +193,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route168" + "x-camelContextId" : "camel-2", + "x-routeId" : "route21" } }, "/v2/loop/undeploy/{loopName}" : { "put" : { - "operationId" : "route173", + "operationId" : "route26", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -215,13 +215,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route173" + "x-camelContextId" : "camel-2", + "x-routeId" : "route26" } }, "/v2/loop/updateGlobalProperties/{loopName}" : { "post" : { - "operationId" : "route169", + "operationId" : "route22", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -245,13 +245,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route169" + "x-camelContextId" : "camel-2", + "x-routeId" : "route22" } }, "/v2/loop/updateMicroservicePolicy/{loopName}" : { "post" : { - "operationId" : "route171", + "operationId" : "route24", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -275,13 +275,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route171" + "x-camelContextId" : "camel-2", + "x-routeId" : "route24" } }, "/v2/loop/updateOperationalPolicies/{loopName}" : { "post" : { - "operationId" : "route170", + "operationId" : "route23", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -305,59 +305,13 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route170" - } - }, - "/v1/clds/action/{action}/{modelName}?test={test}" : { - "put" : { - "operationId" : "route187", - "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-5", - "x-routeId" : "route187" - } - }, - "/v1/clds/cldsDetails" : { - "get" : { - "operationId" : "route179", - "produces" : [ "application/json" ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsMonitoringDetails" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route179" + "x-camelContextId" : "camel-2", + "x-routeId" : "route23" } }, "/v1/clds/cldsInfo" : { "get" : { - "operationId" : "route180", + "operationId" : "route32", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -367,790 +321,106 @@ } } }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route180" - } - }, - "/v1/clds/dcae/event?test={test}" : { - "post" : { - "operationId" : "route188", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/DcaeEvent" - } - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route188" - } - }, - "/v1/clds/deploy/{modelName}" : { - "put" : { - "operationId" : "route190", - "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-5", - "x-routeId" : "route190" - } - }, - "/v1/clds/model-names" : { - "get" : { - "operationId" : "route186", - "produces" : [ "application/json" ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/ValueItem" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route186" - } - }, - "/v1/clds/model/{modelName}" : { - "get" : { - "operationId" : "route184", - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "modelName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsModel" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route184" - }, - "put" : { - "operationId" : "route185", - "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-5", - "x-routeId" : "route185" - } - }, - "/v1/clds/model/bpmn/{modelName}" : { - "get" : { - "operationId" : "route182", - "produces" : [ "text/xml" ], - "parameters" : [ { - "name" : "modelName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route182" - } - }, - "/v1/clds/model/image/{modelName}" : { - "get" : { - "operationId" : "route183", - "produces" : [ "text/xml" ], - "parameters" : [ { - "name" : "modelName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route183" - } - }, - "/v1/clds/properties" : { - "get" : { - "operationId" : "route189", - "produces" : [ "application/json" ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route189" - } - }, - "/v1/clds/undeploy/{modelName}" : { - "put" : { - "operationId" : "route191", - "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-5", - "x-routeId" : "route191" - } - }, - "/v1/cldsTempate/template-names" : { - "get" : { - "operationId" : "route196", - "produces" : [ "application/json" ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/ValueItem" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route196" - } - }, - "/v1/cldsTempate/template/{templateName}" : { - "get" : { - "operationId" : "route194", - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "templateName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsTemplate" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route194" - }, - "put" : { - "operationId" : "route195", - "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-5", - "x-routeId" : "route195" - } - }, - "/v1/cldsTempate/template/bpmn/{templateName}" : { - "get" : { - "operationId" : "route192", - "produces" : [ "text/xml" ], - "parameters" : [ { - "name" : "templateName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route192" - } - }, - "/v1/cldsTempate/template/image/{templateName}" : { - "get" : { - "operationId" : "route193", - "produces" : [ "text/xml" ], - "parameters" : [ { - "name" : "templateName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route193" - } - }, - "/v1/dictionary" : { - "get" : { - "operationId" : "route204", - "produces" : [ "application/json" ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsDictionary" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route204" + "x-camelContextId" : "camel-2", + "x-routeId" : "route32" } }, - "/v1/dictionary/{dictionaryName}" : { - "put" : { - "operationId" : "route203", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "dictionaryName", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsDictionary" - } - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsDictionary" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route203" - } - }, - "/v1/dictionary/{dictionaryName}/items" : { - "get" : { - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "dictionaryName", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsDictionary" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : null - }, - "put" : { - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "dictionaryName", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsDictionaryItem" - } - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsDictionaryItem" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : null - } - }, - "/v1/healthcheck" : { - "get" : { - "operationId" : "route181", - "produces" : [ "application/json" ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route181" - } - }, - "/v1/tosca/models" : { - "get" : { - "operationId" : "route200", - "produces" : [ "application/json" ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsToscaModel" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route200" - } - }, - "/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" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : null - }, - "put" : { - "operationId" : "route197", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "toscaModelName", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsToscaModel" - } - } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route197" - } - }, - "/v1/tosca/models/policyType/{policyType}" : { - "get" : { - "operationId" : "route198", - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "policyType", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "Output type", - "schema" : { - "$ref" : "#/definitions/CldsToscaModel" - } - } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route198" - } - }, - "/v1/user/getUser" : { - "get" : { - "operationId" : "route205", - "produces" : [ "text/plain" ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-5", - "x-routeId" : "route205" - } - } - }, - "definitions" : { - "Loop" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "dcaeDeploymentId" : { - "type" : "string" - }, - "dcaeDeploymentStatusUrl" : { - "type" : "string" - }, - "dcaeBlueprintId" : { - "type" : "string" - }, - "svgRepresentation" : { - "type" : "string" - }, - "globalPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" - }, - "modelPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" - }, - "blueprint" : { - "type" : "string" - }, - "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" - } - } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.loop.Loop" - } - }, - "JsonArray" : { - "type" : "object", - "properties" : { - "asBoolean" : { - "type" : "boolean" - }, - "asString" : { - "type" : "string" - }, - "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" - }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" - }, - "jsonArray" : { - "type" : "boolean" - }, - "jsonObject" : { - "type" : "boolean" - }, - "jsonPrimitive" : { - "type" : "boolean" - }, - "jsonNull" : { - "type" : "boolean" - }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" - } - }, - "x-className" : { - "type" : "string", - "format" : "com.google.gson.JsonArray" - } - }, - "LoopLog" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "logType" : { - "type" : "string", - "enum" : [ "INFO", "WARNING", "ERROR" ] - }, - "logComponent" : { - "type" : "string" - }, - "message" : { - "type" : "string" - }, - "loop" : { - "$ref" : "#/definitions/Loop" - }, - "logInstant" : { - "type" : "integer", - "format" : "int64" - } - } - }, - "Number" : { - "type" : "object" - }, - "JsonPrimitive" : { - "type" : "object", - "properties" : { - "asBoolean" : { - "type" : "boolean" - }, - "boolean" : { - "type" : "boolean" - }, - "number" : { - "type" : "boolean" - }, - "asString" : { - "type" : "string" - }, - "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" - }, - "string" : { - "type" : "boolean" - }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" - }, - "jsonArray" : { - "type" : "boolean" - }, - "jsonObject" : { - "type" : "boolean" - }, - "jsonPrimitive" : { - "type" : "boolean" - }, - "jsonNull" : { - "type" : "boolean" + "/v1/healthcheck" : { + "get" : { + "operationId" : "route33", + "produces" : [ "application/json" ], + "responses" : { + "200" : { } }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" - } + "x-camelContextId" : "camel-2", + "x-routeId" : "route33" } }, - "MicroServicePolicy" : { + "/v1/user/getUser" : { + "get" : { + "operationId" : "route34", + "produces" : [ "text/plain" ], + "responses" : { + "200" : { } + }, + "x-camelContextId" : "camel-2", + "x-routeId" : "route34" + } + } + }, + "definitions" : { + "Loop" : { "type" : "object", "properties" : { "name" : { "type" : "string" }, - "modelType" : { + "dcaeDeploymentId" : { "type" : "string" }, - "properties" : { - "$ref" : "#/definitions/JsonObject" + "dcaeDeploymentStatusUrl" : { + "type" : "string" }, - "shared" : { - "type" : "boolean" + "dcaeBlueprintId" : { + "type" : "string" }, - "policyTosca" : { + "svgRepresentation" : { "type" : "string" }, - "jsonRepresentation" : { + "globalPropertiesJson" : { "$ref" : "#/definitions/JsonObject" }, - "usedByLoops" : { + "modelPropertiesJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "blueprint" : { + "type" : "string" + }, + "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/Loop" + "$ref" : "#/definitions/OperationalPolicy" + } + }, + "microServicePolicies" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/MicroServicePolicy" + } + }, + "loopLogs" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopLog" } } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" + "format" : "org.onap.clamp.loop.Loop" } }, - "JsonObject" : { + "JsonArray" : { "type" : "object", "properties" : { - "asBoolean" : { - "type" : "boolean" - }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, "asString" : { "type" : "string" }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" + "asBoolean" : { + "type" : "boolean" }, "asNumber" : { "$ref" : "#/definitions/Number" @@ -1188,87 +458,79 @@ "type" : "integer", "format" : "int32" }, - "jsonArray" : { - "type" : "boolean" + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, "jsonObject" : { "type" : "boolean" }, - "jsonPrimitive" : { + "jsonNull" : { "type" : "boolean" }, - "jsonNull" : { + "jsonArray" : { + "type" : "boolean" + }, + "jsonPrimitive" : { "type" : "boolean" }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" } }, "x-className" : { "type" : "string", - "format" : "com.google.gson.JsonObject" + "format" : "com.google.gson.JsonArray" } }, - "ExternalComponent" : { + "LoopLog" : { "type" : "object", "properties" : { - "state" : { - "$ref" : "#/definitions/ExternalComponentState" + "id" : { + "type" : "integer", + "format" : "int64" }, - "componentName" : { - "type" : "string" - } - } - }, - "OperationalPolicy" : { - "type" : "object", - "properties" : { - "name" : { + "logType" : { + "type" : "string", + "enum" : [ "INFO", "WARNING", "ERROR" ] + }, + "logComponent" : { "type" : "string" }, - "configurationsJson" : { - "$ref" : "#/definitions/JsonObject" + "message" : { + "type" : "string" }, "loop" : { "$ref" : "#/definitions/Loop" }, - "jsonRepresentation" : { - "$ref" : "#/definitions/JsonObject" - } - } - }, - "ExternalComponentState" : { - "type" : "object", - "properties" : { - "stateName" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "level" : { + "logInstant" : { "type" : "integer", - "format" : "int32" + "format" : "int64" } } }, - "JsonNull" : { + "Number" : { + "type" : "object" + }, + "JsonPrimitive" : { "type" : "object", "properties" : { - "asBoolean" : { + "boolean" : { "type" : "boolean" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" + "number" : { + "type" : "boolean" }, "asString" : { "type" : "string" }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" + "asBoolean" : { + "type" : "boolean" }, "asNumber" : { "$ref" : "#/definitions/Number" @@ -1306,404 +568,289 @@ "type" : "integer", "format" : "int32" }, - "jsonArray" : { + "string" : { "type" : "boolean" }, - "jsonObject" : { - "type" : "boolean" + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" }, - "jsonPrimitive" : { + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "jsonObject" : { "type" : "boolean" }, "jsonNull" : { "type" : "boolean" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" - } - } - }, - "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" + "jsonArray" : { + "type" : "boolean" }, - "actionStateCd" : { - "type" : "string" + "jsonPrimitive" : { + "type" : "boolean" }, - "processInstanceId" : { - "type" : "string" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, - "userid" : { - "type" : "string" + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" } } }, - "CldsMonitoringDetails" : { + "MicroServicePolicy" : { "type" : "object", "properties" : { - "closeloopName" : { - "type" : "string" - }, - "modelId" : { - "type" : "string" - }, - "modelName" : { + "name" : { "type" : "string" }, - "serviceTypeId" : { + "modelType" : { "type" : "string" }, - "deploymentId" : { - "type" : "string" + "properties" : { + "$ref" : "#/definitions/JsonObject" }, - "templateName" : { - "type" : "string" + "shared" : { + "type" : "boolean" }, - "action" : { + "policyTosca" : { "type" : "string" }, - "userid" : { - "type" : "string" + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" }, - "timestamp" : { - "type" : "string" + "usedByLoops" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/Loop" + } } }, "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" + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" }, - "cldsVersion" : { + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asString" : { "type" : "string" }, - "permissionReadCl" : { + "jsonObject" : { "type" : "boolean" }, - "permissionUpdateCl" : { + "jsonNull" : { "type" : "boolean" }, - "permissionReadTemplate" : { + "jsonArray" : { "type" : "boolean" }, - "permissionUpdateTemplate" : { + "asBoolean" : { "type" : "boolean" }, - "permissionReadTosca" : { + "jsonPrimitive" : { "type" : "boolean" }, - "permissionUpdateTosca" : { - "type" : "boolean" - } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsInfo" - } - }, - "DcaeEvent" : { - "type" : "object", - "properties" : { - "event" : { - "type" : "string" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, - "artifactName" : { - "type" : "string" + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" }, - "instances" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsModelInstance" - } + "asNumber" : { + "$ref" : "#/definitions/Number" }, - "serviceUUID" : { - "type" : "string" + "asDouble" : { + "type" : "number", + "format" : "double" }, - "resourceUUID" : { - "type" : "string" + "asFloat" : { + "type" : "number", + "format" : "float" }, - "controlName" : { - "type" : "string" + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asByte" : { + "type" : "string", + "format" : "byte" }, - "cldsActionCd" : { + "asCharacter" : { "type" : "string" + }, + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.DcaeEvent" + "format" : "com.google.gson.JsonObject" } }, - "ValueItem" : { + "ExternalComponent" : { "type" : "object", "properties" : { - "value" : { + "state" : { + "$ref" : "#/definitions/ExternalComponentState" + }, + "componentName" : { "type" : "string" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.ValueItem" } }, - "CldsTemplate" : { + "OperationalPolicy" : { "type" : "object", "properties" : { - "id" : { - "type" : "string" - }, "name" : { "type" : "string" }, - "controlNamePrefix" : { - "type" : "string" - }, - "controlNameUuid" : { - "type" : "string" + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" }, - "bpmnId" : { - "type" : "string" + "loop" : { + "$ref" : "#/definitions/Loop" }, - "bpmnUserid" : { + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" + } + } + }, + "ExternalComponentState" : { + "type" : "object", + "properties" : { + "stateName" : { "type" : "string" }, - "bpmnText" : { + "description" : { "type" : "string" }, - "imageId" : { - "type" : "string" + "level" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "JsonNull" : { + "type" : "object", + "properties" : { + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" }, - "imageUserid" : { - "type" : "string" + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, - "imageText" : { + "asString" : { "type" : "string" }, - "propId" : { - "type" : "string" + "jsonObject" : { + "type" : "boolean" }, - "propUserid" : { - "type" : "string" + "jsonNull" : { + "type" : "boolean" }, - "propText" : { - "type" : "string" + "jsonArray" : { + "type" : "boolean" }, - "userAuthorizedToUpdate" : { + "asBoolean" : { "type" : "boolean" - } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsTemplate" - } - }, - "CldsDictionary" : { - "type" : "object", - "properties" : { - "dictionaryId" : { - "type" : "string" }, - "dictionaryName" : { - "type" : "string" + "jsonPrimitive" : { + "type" : "boolean" }, - "createdBy" : { - "type" : "string" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, - "updatedBy" : { - "type" : "string" + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" }, - "lastUpdatedDate" : { - "type" : "string" + "asNumber" : { + "$ref" : "#/definitions/Number" }, - "cldsDictionaryItems" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsDictionaryItem" - } - } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsDictionary" - } - }, - "CldsDictionaryItem" : { - "type" : "object", - "properties" : { - "dictElementId" : { - "type" : "string" + "asDouble" : { + "type" : "number", + "format" : "double" }, - "dictionaryId" : { - "type" : "string" + "asFloat" : { + "type" : "number", + "format" : "float" }, - "dictElementName" : { - "type" : "string" + "asLong" : { + "type" : "integer", + "format" : "int64" }, - "dictElementShortName" : { - "type" : "string" + "asInt" : { + "type" : "integer", + "format" : "int32" }, - "dictElementDesc" : { - "type" : "string" + "asByte" : { + "type" : "string", + "format" : "byte" }, - "dictElementType" : { + "asCharacter" : { "type" : "string" }, - "createdBy" : { - "type" : "string" + "asBigDecimal" : { + "type" : "number" }, - "updatedBy" : { - "type" : "string" + "asBigInteger" : { + "type" : "integer" }, - "lastUpdatedDate" : { - "type" : "string" + "asShort" : { + "type" : "integer", + "format" : "int32" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsDictionaryItem" } }, - "CldsToscaModel" : { + "CldsInfo" : { "type" : "object", "properties" : { - "revisionId" : { - "type" : "string" - }, - "toscaModelYaml" : { + "userName" : { "type" : "string" }, - "version" : { - "type" : "number", - "format" : "double" - }, - "toscaModelJson" : { + "cldsVersion" : { "type" : "string" }, - "userId" : { - "type" : "string" + "permissionReadCl" : { + "type" : "boolean" }, - "createdDate" : { - "type" : "string" + "permissionUpdateCl" : { + "type" : "boolean" }, - "lastUpdatedDate" : { - "type" : "string" + "permissionReadTemplate" : { + "type" : "boolean" }, - "id" : { - "type" : "string" + "permissionUpdateTemplate" : { + "type" : "boolean" }, - "policyType" : { - "type" : "string" + "permissionReadTosca" : { + "type" : "boolean" }, - "toscaModelName" : { - "type" : "string" + "permissionUpdateTosca" : { + "type" : "boolean" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsToscaModel" + "format" : "org.onap.clamp.clds.model.CldsInfo" } } } -- cgit 1.2.3-korg