X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fswagger%2Fswagger.json;h=d8a9ddca597476e73a8713bccd6bb4d0a6659e89;hb=afac3121bfacc4d81903b1d8492613b0b77d3298;hp=0738c6f290d4737775634d330c88af28ee2984e5;hpb=6ea539c92788cce0e2caf1fdf16bd0dd0914de69;p=clamp.git diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 0738c6f2..d8a9ddca 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,22 +1,236 @@ { "swagger" : "2.0", "info" : { - "version" : "4.1.2-SNAPSHOT", + "version" : "5.0.0-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "localhost:34219", + "host" : "localhost:42393", "basePath" : "/restservices/clds/", "schemes" : [ "http" ], "paths" : { + "/v2/clampInformation" : { + "get" : { + "operationId" : "route112", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/ClampInformation" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route112" + } + }, + "/v2/dictionary" : { + "get" : { + "operationId" : "route98", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route98" + }, + "put" : { + "operationId" : "route100", + "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-3", + "x-routeId" : "route100" + } + }, + "/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-3", + "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-3", + "x-routeId" : null + }, + "delete" : { + "operationId" : "route102", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route102" + } + }, + "/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-3", + "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-3", + "x-routeId" : null + } + }, "/v2/loop/{loopName}" : { "get" : { - "operationId" : "route3", + "operationId" : "route79", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route79" + } + }, + "/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : { + "put" : { + "operationId" : "route93", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", "in" : "path", "required" : true, "type" : "string" + }, { + "name" : "policyType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyVersion", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route93" + } + }, + "/v2/loop/create/{loopName}?templateName={templateName}" : { + "post" : { + "operationId" : "route95", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName}?templateName={templateName", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { @@ -26,13 +240,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route3" + "x-camelContextId" : "camel-3", + "x-routeId" : "route95" } }, "/v2/loop/delete/{loopName}" : { "put" : { - "operationId" : "route13", + "operationId" : "route91", "parameters" : [ { "name" : "loopName", "in" : "path", @@ -42,13 +256,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route13" + "x-camelContextId" : "camel-3", + "x-routeId" : "route91" } }, "/v2/loop/deploy/{loopName}" : { "put" : { - "operationId" : "route8", + "operationId" : "route84", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -64,13 +278,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route8" + "x-camelContextId" : "camel-3", + "x-routeId" : "route84" } }, "/v2/loop/getAllNames" : { "get" : { - "operationId" : "route2", + "operationId" : "route78", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -83,19 +297,105 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route2" + "x-camelContextId" : "camel-3", + "x-routeId" : "route78" } }, "/v2/loop/getstatus/{loopName}" : { "get" : { - "operationId" : "route14", + "operationId" : "route92", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route92" + } + }, + "/v2/loop/refreshMicroServicePolicyJsonSchema/{loopName}/{microServicePolicyName}" : { + "put" : { + "operationId" : "route85", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "microServicePolicyName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route85" + } + }, + "/v2/loop/refreshOperationalPolicyJsonSchema/{loopName}/{operationalPolicyName}" : { + "put" : { + "operationId" : "route86", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "operationalPolicyName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route86" + } + }, + "/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : { + "put" : { + "operationId" : "route94", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", "in" : "path", "required" : true, "type" : "string" + }, { + "name" : "policyType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyVersion", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { @@ -105,13 +405,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route14" + "x-camelContextId" : "camel-3", + "x-routeId" : "route94" } }, "/v2/loop/restart/{loopName}" : { "put" : { - "operationId" : "route11", + "operationId" : "route89", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -127,13 +427,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route11" + "x-camelContextId" : "camel-3", + "x-routeId" : "route89" } }, "/v2/loop/stop/{loopName}" : { "put" : { - "operationId" : "route10", + "operationId" : "route88", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -149,13 +449,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route10" + "x-camelContextId" : "camel-3", + "x-routeId" : "route88" } }, "/v2/loop/submit/{loopName}" : { "put" : { - "operationId" : "route12", + "operationId" : "route90", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -171,13 +471,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route12" + "x-camelContextId" : "camel-3", + "x-routeId" : "route90" } }, "/v2/loop/svgRepresentation/{loopName}" : { "get" : { - "operationId" : "route4", + "operationId" : "route80", "produces" : [ "application/xml" ], "parameters" : [ { "name" : "loopName", @@ -193,13 +493,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route4" + "x-camelContextId" : "camel-3", + "x-routeId" : "route80" } }, "/v2/loop/undeploy/{loopName}" : { "put" : { - "operationId" : "route9", + "operationId" : "route87", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -215,13 +515,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route9" + "x-camelContextId" : "camel-3", + "x-routeId" : "route87" } }, "/v2/loop/updateGlobalProperties/{loopName}" : { "post" : { - "operationId" : "route5", + "operationId" : "route81", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -245,13 +545,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route5" + "x-camelContextId" : "camel-3", + "x-routeId" : "route81" } }, "/v2/loop/updateMicroservicePolicy/{loopName}" : { "post" : { - "operationId" : "route7", + "operationId" : "route83", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -275,13 +575,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route7" + "x-camelContextId" : "camel-3", + "x-routeId" : "route83" } }, "/v2/loop/updateOperationalPolicies/{loopName}" : { "post" : { - "operationId" : "route6", + "operationId" : "route82", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -305,139 +605,580 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route6" + "x-camelContextId" : "camel-3", + "x-routeId" : "route82" } }, - "/v1/clds/cldsInfo" : { + "/v2/policyToscaModels" : { "get" : { - "operationId" : "route15", + "operationId" : "route105", "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/CldsInfo" + "$ref" : "#/definitions/PolicyModel" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route15" - } - }, - "/v1/healthcheck" : { - "get" : { - "operationId" : "route16", + "x-camelContextId" : "camel-3", + "x-routeId" : "route105" + }, + "post" : { + "operationId" : "route106", + "consumes" : [ "plain/text" ], "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "type" : "string" + } + } ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/CldsHealthCheck" + "$ref" : "#/definitions/PolicyModel" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route16" + "x-camelContextId" : "camel-3", + "x-routeId" : "route106" } }, - "/v1/user/getUser" : { + "/v2/policyToscaModels/{policyModelType}/{policyModelVersion}" : { "get" : { - "operationId" : "route17", - "produces" : [ "text/plain" ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route17" - } - } - }, - "definitions" : { + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyModelVersion", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : null + }, + "put" : { + "operationId" : "route107", + "consumes" : [ "plain/text" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyModelVersion", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route107" + } + }, + "/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}" : { + "get" : { + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyModelVersion", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "string" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : null + } + }, + "/v2/templates" : { + "get" : { + "operationId" : "route111", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/LoopTemplate" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route111" + } + }, + "/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-3", + "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-3", + "x-routeId" : null + } + }, + "/v2/templates/names" : { + "get" : { + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : null + } + }, + "/v1/healthcheck" : { + "get" : { + "operationId" : "route113", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/CldsHealthCheck" + } + } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route113" + } + }, + "/v1/user/getUser" : { + "get" : { + "operationId" : "route114", + "produces" : [ "text/plain" ], + "responses" : { + "200" : { } + }, + "x-camelContextId" : "camel-3", + "x-routeId" : "route114" + } + } + }, + "definitions" : { + "ClampInformation" : { + "type" : "object", + "properties" : { + "userName" : { + "type" : "string" + }, + "cldsVersion" : { + "type" : "string" + }, + "allPermissions" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.clds.model.ClampInformation" + } + }, + "Dictionary" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "secondLevelDictionary" : { + "type" : "integer", + "format" : "int32" + }, + "subDictionaryType" : { + "type" : "string" + }, + "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" + }, + "createdBy" : { + "type" : "string" + }, + "shortName" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "subDictionary" : { + "type" : "string" + }, + "usedByDictionaries" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/Dictionary" + } + } + } + }, "Loop" : { "type" : "object", "properties" : { - "name" : { - "type" : "string" + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "dcaeDeploymentId" : { + "type" : "string" + }, + "dcaeDeploymentStatusUrl" : { + "type" : "string" + }, + "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.loop.Loop" + } + }, + "JsonPrimitive" : { + "type" : "object", + "properties" : { + "asBoolean" : { + "type" : "boolean" + }, + "number" : { + "type" : "boolean" + }, + "asString" : { + "type" : "string" + }, + "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" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "boolean" : { + "type" : "boolean" + }, + "string" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, + "jsonArray" : { + "type" : "boolean" + }, + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + } + } + }, + "MicroServicePolicy" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "dcaeDeploymentId" : { + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "dcaeDeploymentStatusUrl" : { + "createdBy" : { "type" : "string" }, - "dcaeBlueprintId" : { + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" + }, + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" + }, + "pdpGroup" : { "type" : "string" }, - "svgRepresentation" : { + "pdpSubgroup" : { "type" : "string" }, - "globalPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" }, - "modelPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" + "name" : { + "type" : "string" }, - "blueprint" : { + "context" : { "type" : "string" }, - "lastComputedState" : { - "type" : "string", - "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ] + "deviceTypeScope" : { + "type" : "string" }, - "components" : { - "type" : "object", - "additionalProperties" : { - "$ref" : "#/definitions/ExternalComponent" - } + "shared" : { + "type" : "boolean" }, - "operationalPolicies" : { + "usedByLoops" : { "type" : "array", "uniqueItems" : true, "items" : { - "$ref" : "#/definitions/OperationalPolicy" + "$ref" : "#/definitions/Loop" } }, - "microServicePolicies" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "$ref" : "#/definitions/MicroServicePolicy" - } + "dcaeDeploymentId" : { + "type" : "string" }, - "loopLogs" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "$ref" : "#/definitions/LoopLog" - } + "dcaeDeploymentStatusUrl" : { + "type" : "string" + }, + "dcaeBlueprintId" : { + "type" : "string" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.loop.Loop" + "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" } }, - "JsonArray" : { + "JsonObject" : { "type" : "object", "properties" : { "asBoolean" : { "type" : "boolean" }, - "asNumber" : { - "$ref" : "#/definitions/Number" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" }, "asString" : { "type" : "string" }, - "asDouble" : { - "type" : "number", - "format" : "double" - }, - "asFloat" : { - "type" : "number", - "format" : "float" - }, "asLong" : { "type" : "integer", "format" : "int64" @@ -463,91 +1204,182 @@ "type" : "integer", "format" : "int32" }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" - }, "jsonArray" : { "type" : "boolean" }, "jsonObject" : { "type" : "boolean" }, - "jsonNull" : { + "jsonPrimitive" : { "type" : "boolean" }, - "jsonPrimitive" : { + "jsonNull" : { "type" : "boolean" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" } }, "x-className" : { "type" : "string", - "format" : "com.google.gson.JsonArray" + "format" : "com.google.gson.JsonObject" } }, - "LoopLog" : { + "PolicyModel" : { "type" : "object", "properties" : { - "id" : { + "createdDate" : { "type" : "integer", "format" : "int64" }, - "logType" : { - "type" : "string", - "enum" : [ "INFO", "WARNING", "ERROR" ] + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "logComponent" : { + "updatedBy" : { "type" : "string" }, - "message" : { + "createdBy" : { "type" : "string" }, - "loop" : { - "$ref" : "#/definitions/Loop" + "policyModelType" : { + "type" : "string" }, - "logInstant" : { - "type" : "integer", - "format" : "int64" + "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" } }, - "Number" : { - "type" : "object" + "Service" : { + "type" : "object", + "properties" : { + "serviceUuid" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, + "serviceDetails" : { + "$ref" : "#/definitions/JsonObject" + }, + "resourceDetails" : { + "$ref" : "#/definitions/JsonObject" + } + } }, - "JsonPrimitive" : { + "LoopTemplateLoopElementModel" : { "type" : "object", "properties" : { - "boolean" : { - "type" : "boolean" + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" }, - "number" : { - "type" : "boolean" + "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" + }, + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" + }, + "name" : { + "type" : "string" + }, + "loop" : { + "$ref" : "#/definitions/Loop" }, + "legacy" : { + "type" : "boolean" + } + } + }, + "JsonNull" : { + "type" : "object", + "properties" : { "asBoolean" : { "type" : "boolean" }, - "asNumber" : { - "$ref" : "#/definitions/Number" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" }, "asString" : { "type" : "string" }, - "asDouble" : { - "type" : "number", - "format" : "double" - }, - "asFloat" : { - "type" : "number", - "format" : "float" - }, "asLong" : { "type" : "integer", "format" : "int64" @@ -569,18 +1401,9 @@ "asBigInteger" : { "type" : "integer" }, - "asShort" : { - "type" : "integer", - "format" : "int32" - }, - "string" : { - "type" : "boolean" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" + "asShort" : { + "type" : "integer", + "format" : "int32" }, "jsonArray" : { "type" : "boolean" @@ -588,72 +1411,21 @@ "jsonObject" : { "type" : "boolean" }, - "jsonNull" : { - "type" : "boolean" - }, "jsonPrimitive" : { "type" : "boolean" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" - }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" - } - } - }, - "MicroServicePolicy" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "modelType" : { - "type" : "string" - }, - "properties" : { - "$ref" : "#/definitions/JsonObject" - }, - "shared" : { + "jsonNull" : { "type" : "boolean" }, - "policyTosca" : { - "type" : "string" - }, - "jsonRepresentation" : { - "$ref" : "#/definitions/JsonObject" - }, - "usedByLoops" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "$ref" : "#/definitions/Loop" - } - } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" - } - }, - "JsonObject" : { - "type" : "object", - "properties" : { "asJsonPrimitive" : { "$ref" : "#/definitions/JsonPrimitive" }, "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, - "asBoolean" : { - "type" : "boolean" - }, "asNumber" : { "$ref" : "#/definitions/Number" }, - "asString" : { - "type" : "string" - }, "asDouble" : { "type" : "number", "format" : "double" @@ -661,6 +1433,17 @@ "asFloat" : { "type" : "number", "format" : "float" + } + } + }, + "JsonArray" : { + "type" : "object", + "properties" : { + "asBoolean" : { + "type" : "boolean" + }, + "asString" : { + "type" : "string" }, "asLong" : { "type" : "integer", @@ -687,175 +1470,204 @@ "type" : "integer", "format" : "int32" }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, "jsonArray" : { "type" : "boolean" }, "jsonObject" : { "type" : "boolean" }, - "jsonNull" : { + "jsonPrimitive" : { "type" : "boolean" }, - "jsonPrimitive" : { + "jsonNull" : { "type" : "boolean" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, - "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" + "logInstant" : { + "type" : "integer", + "format" : "int64" } } }, - "ExternalComponentState" : { + "Number" : { + "type" : "object" + }, + "ExternalComponent" : { "type" : "object", "properties" : { - "stateName" : { - "type" : "string" + "state" : { + "$ref" : "#/definitions/ExternalComponentState" }, - "description" : { + "componentName" : { "type" : "string" - }, - "level" : { - "type" : "integer", - "format" : "int32" } } }, - "JsonNull" : { + "LoopTemplate" : { "type" : "object", "properties" : { - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" - }, - "asBoolean" : { - "type" : "boolean" + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "asNumber" : { - "$ref" : "#/definitions/Number" + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "asString" : { + "updatedBy" : { "type" : "string" }, - "asDouble" : { - "type" : "number", - "format" : "double" - }, - "asFloat" : { - "type" : "number", - "format" : "float" + "createdBy" : { + "type" : "string" }, - "asLong" : { - "type" : "integer", - "format" : "int64" + "name" : { + "type" : "string" }, - "asInt" : { - "type" : "integer", - "format" : "int32" + "dcaeBlueprintId" : { + "type" : "string" }, - "asByte" : { - "type" : "string", - "format" : "byte" + "blueprint" : { + "type" : "string" }, - "asCharacter" : { + "svgRepresentation" : { "type" : "string" }, - "asBigDecimal" : { - "type" : "number" + "loopElementModelsUsed" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopTemplateLoopElementModel" + } }, - "asBigInteger" : { - "type" : "integer" + "modelService" : { + "$ref" : "#/definitions/Service" }, - "asShort" : { + "maximumInstancesAllowed" : { "type" : "integer", "format" : "int32" }, - "jsonArray" : { - "type" : "boolean" - }, - "jsonObject" : { + "uniqueBlueprint" : { "type" : "boolean" }, - "jsonNull" : { - "type" : "boolean" - }, - "jsonPrimitive" : { - "type" : "boolean" + "allowedLoopType" : { + "type" : "string", + "enum" : [ "OPEN", "CLOSED", "HYBRID" ] + } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.loop.template.LoopTemplate" + } + }, + "ExternalComponentState" : { + "type" : "object", + "properties" : { + "stateName" : { + "type" : "string" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" + "description" : { + "type" : "string" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" + "level" : { + "type" : "integer", + "format" : "int32" } } }, - "CldsInfo" : { + "LoopElementModel" : { "type" : "object", "properties" : { - "userName" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "cldsVersion" : { + "createdBy" : { "type" : "string" }, - "permissionReadCl" : { - "type" : "boolean" + "name" : { + "type" : "string" }, - "permissionUpdateCl" : { - "type" : "boolean" + "dcaeBlueprintId" : { + "type" : "string" }, - "permissionReadTemplate" : { - "type" : "boolean" + "blueprint" : { + "type" : "string" }, - "permissionUpdateTemplate" : { - "type" : "boolean" + "loopElementType" : { + "type" : "string" }, - "permissionReadTosca" : { - "type" : "boolean" + "shortName" : { + "type" : "string" }, - "permissionUpdateTosca" : { - "type" : "boolean" + "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.CldsInfo" } }, "CldsHealthCheck" : {