X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fswagger%2Fswagger.json;h=1ed4a4ba6730b152ea9a256901ad30f263b74f32;hb=8604d37f2f6bdd011de62ec474b6883413d30348;hp=80ffc2a9e7dfe3375d165349d01cf409a8fd6019;hpb=c85d40b0cc8f40e5d0e17019878df82170f7bb35;p=clamp.git diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 80ffc2a9..1ed4a4ba 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,16 +1,159 @@ { "swagger" : "2.0", "info" : { - "version" : "4.1.2-SNAPSHOT", + "version" : "5.0.0-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "localhost:36829", + "host" : "localhost:46347", "basePath" : "/restservices/clds/", "schemes" : [ "http" ], "paths" : { + "/v2/dictionary" : { + "get" : { + "operationId" : "route49", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-2", + "x-routeId" : "route49" + }, + "put" : { + "operationId" : "route51", + "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-2", + "x-routeId" : "route51" + } + }, + "/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-2", + "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-2", + "x-routeId" : null + }, + "delete" : { + "operationId" : "route53", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { } + }, + "x-camelContextId" : "camel-2", + "x-routeId" : "route53" + } + }, + "/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-2", + "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-2", + "x-routeId" : null + } + }, "/v2/loop/{loopName}" : { "get" : { - "operationId" : "route20", + "operationId" : "route34", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -27,12 +170,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route20" + "x-routeId" : "route34" } }, "/v2/loop/delete/{loopName}" : { "put" : { - "operationId" : "route30", + "operationId" : "route45", "parameters" : [ { "name" : "loopName", "in" : "path", @@ -43,12 +186,12 @@ "200" : { } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route30" + "x-routeId" : "route45" } }, "/v2/loop/deploy/{loopName}" : { "put" : { - "operationId" : "route25", + "operationId" : "route39", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -65,12 +208,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route25" + "x-routeId" : "route39" } }, "/v2/loop/getAllNames" : { "get" : { - "operationId" : "route19", + "operationId" : "route33", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -84,12 +227,34 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route19" + "x-routeId" : "route33" } }, "/v2/loop/getstatus/{loopName}" : { "get" : { - "operationId" : "route31", + "operationId" : "route46", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-2", + "x-routeId" : "route46" + } + }, + "/v2/loop/refreshOpPolicyJsonSchema/{loopName}" : { + "put" : { + "operationId" : "route40", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -106,12 +271,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route31" + "x-routeId" : "route40" } }, "/v2/loop/restart/{loopName}" : { "put" : { - "operationId" : "route28", + "operationId" : "route43", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -128,12 +293,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route28" + "x-routeId" : "route43" } }, "/v2/loop/stop/{loopName}" : { "put" : { - "operationId" : "route27", + "operationId" : "route42", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -150,12 +315,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route27" + "x-routeId" : "route42" } }, "/v2/loop/submit/{loopName}" : { "put" : { - "operationId" : "route29", + "operationId" : "route44", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -172,12 +337,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route29" + "x-routeId" : "route44" } }, "/v2/loop/svgRepresentation/{loopName}" : { "get" : { - "operationId" : "route21", + "operationId" : "route35", "produces" : [ "application/xml" ], "parameters" : [ { "name" : "loopName", @@ -194,12 +359,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route21" + "x-routeId" : "route35" } }, "/v2/loop/undeploy/{loopName}" : { "put" : { - "operationId" : "route26", + "operationId" : "route41", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -216,12 +381,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route26" + "x-routeId" : "route41" } }, "/v2/loop/updateGlobalProperties/{loopName}" : { "post" : { - "operationId" : "route22", + "operationId" : "route36", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -246,12 +411,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route22" + "x-routeId" : "route36" } }, "/v2/loop/updateMicroservicePolicy/{loopName}" : { "post" : { - "operationId" : "route24", + "operationId" : "route38", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -276,12 +441,12 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route24" + "x-routeId" : "route38" } }, "/v2/loop/updateOperationalPolicies/{loopName}" : { "post" : { - "operationId" : "route23", + "operationId" : "route37", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -306,62 +471,284 @@ } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route23" + "x-routeId" : "route37" + } + }, + "/v2/policyToscaModels" : { + "get" : { + "operationId" : "route56", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } + }, + "x-camelContextId" : "camel-2", + "x-routeId" : "route56" + } + }, + "/v2/policyToscaModels/{policyModelType}" : { + "get" : { + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } + }, + "x-camelContextId" : "camel-2", + "x-routeId" : null + }, + "put" : { + "operationId" : "route57", + "consumes" : [ "plain/text" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "policyModelType", + "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-2", + "x-routeId" : "route57" + } + }, + "/v2/policyToscaModels/yaml/{policyModelType}" : { + "get" : { + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "string" + } + } + }, + "x-camelContextId" : "camel-2", + "x-routeId" : null + } + }, + "/v2/templates" : { + "get" : { + "operationId" : "route60", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/LoopTemplate" + } + } + }, + "x-camelContextId" : "camel-2", + "x-routeId" : "route60" + } + }, + "/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-2", + "x-routeId" : null } }, - "/v1/clds/cldsInfo" : { + "/v2/templates/names" : { "get" : { - "operationId" : "route32", "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/CldsInfo" + "type" : "array", + "items" : { + "type" : "string" + } } } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route32" + "x-routeId" : null } }, "/v1/healthcheck" : { "get" : { - "operationId" : "route33", + "operationId" : "route61", "produces" : [ "application/json" ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/CldsHealthCheck" + } + } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route33" + "x-routeId" : "route61" } }, "/v1/user/getUser" : { "get" : { - "operationId" : "route34", + "operationId" : "route62", "produces" : [ "text/plain" ], "responses" : { "200" : { } }, "x-camelContextId" : "camel-2", - "x-routeId" : "route34" + "x-routeId" : "route62" } } }, "definitions" : { - "Loop" : { + "Dictionary" : { "type" : "object", "properties" : { - "name" : { - "type" : "string" + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "dcaeDeploymentId" : { + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "dcaeDeploymentStatusUrl" : { + "createdBy" : { "type" : "string" }, - "dcaeBlueprintId" : { + "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" : { + "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" : { @@ -370,11 +757,8 @@ "globalPropertiesJson" : { "$ref" : "#/definitions/JsonObject" }, - "modelPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" - }, - "blueprint" : { - "type" : "string" + "modelService" : { + "$ref" : "#/definitions/Service" }, "lastComputedState" : { "type" : "string", @@ -406,6 +790,9 @@ "items" : { "$ref" : "#/definitions/LoopLog" } + }, + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" } }, "x-className" : { @@ -413,33 +800,32 @@ "format" : "org.onap.clamp.loop.Loop" } }, - "JsonArray" : { + "JsonPrimitive" : { "type" : "object", "properties" : { - "asString" : { - "type" : "string" - }, - "asNumber" : { - "$ref" : "#/definitions/Number" - }, - "asBoolean" : { - "type" : "boolean" + "asInt" : { + "type" : "integer", + "format" : "int32" }, "asDouble" : { "type" : "number", "format" : "double" }, - "asFloat" : { - "type" : "number", - "format" : "float" - }, "asLong" : { "type" : "integer", "format" : "int64" }, - "asInt" : { - "type" : "integer", - "format" : "int32" + "boolean" : { + "type" : "boolean" + }, + "asBoolean" : { + "type" : "boolean" + }, + "number" : { + "type" : "boolean" + }, + "asString" : { + "type" : "string" }, "asByte" : { "type" : "string", @@ -448,6 +834,10 @@ "asCharacter" : { "type" : "string" }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, "asBigDecimal" : { "type" : "number" }, @@ -458,231 +848,400 @@ "type" : "integer", "format" : "int32" }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "string" : { + "type" : "boolean" + }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "jsonPrimitive" : { + "jsonObject" : { "type" : "boolean" }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" }, - "jsonObject" : { + "jsonNull" : { "type" : "boolean" }, - "jsonNull" : { + "jsonPrimitive" : { "type" : "boolean" }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, "jsonArray" : { "type" : "boolean" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" } - }, - "x-className" : { - "type" : "string", - "format" : "com.google.gson.JsonArray" } }, - "LoopLog" : { + "MicroServicePolicy" : { "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" + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" }, - "logInstant" : { - "type" : "integer", - "format" : "int64" - } - } - }, - "Number" : { - "type" : "object" - }, - "JsonPrimitive" : { - "type" : "object", - "properties" : { - "boolean" : { - "type" : "boolean" + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" }, - "number" : { - "type" : "boolean" + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" }, - "asString" : { + "pdpGroup" : { "type" : "string" }, - "asNumber" : { - "$ref" : "#/definitions/Number" + "pdpSubgroup" : { + "type" : "string" }, - "asBoolean" : { - "type" : "boolean" + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" }, - "asDouble" : { - "type" : "number", - "format" : "double" + "name" : { + "type" : "string" }, - "asFloat" : { - "type" : "number", - "format" : "float" + "context" : { + "type" : "string" }, - "asLong" : { - "type" : "integer", - "format" : "int64" + "deviceTypeScope" : { + "type" : "string" }, - "asInt" : { - "type" : "integer", - "format" : "int32" + "shared" : { + "type" : "boolean" }, - "asByte" : { - "type" : "string", - "format" : "byte" + "usedByLoops" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/Loop" + } }, - "asCharacter" : { + "dcaeDeploymentId" : { "type" : "string" }, - "asBigDecimal" : { - "type" : "number" - }, - "asBigInteger" : { - "type" : "integer" + "dcaeDeploymentStatusUrl" : { + "type" : "string" }, - "asShort" : { + "dcaeBlueprintId" : { + "type" : "string" + } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" + } + }, + "JsonObject" : { + "type" : "object", + "properties" : { + "asInt" : { "type" : "integer", "format" : "int32" }, - "string" : { + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asBoolean" : { "type" : "boolean" }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" + "asString" : { + "type" : "string" }, - "jsonPrimitive" : { + "jsonObject" : { "type" : "boolean" }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" }, - "jsonObject" : { + "jsonNull" : { "type" : "boolean" }, - "jsonNull" : { + "jsonPrimitive" : { "type" : "boolean" }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, "jsonArray" : { "type" : "boolean" - } - } - }, - "MicroServicePolicy" : { + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { + "type" : "string" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" + } + }, + "x-className" : { + "type" : "string", + "format" : "com.google.gson.JsonObject" + } + }, + "PolicyModel" : { "type" : "object", "properties" : { - "name" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "modelType" : { + "createdBy" : { "type" : "string" }, - "properties" : { - "$ref" : "#/definitions/JsonObject" + "policyModelType" : { + "type" : "string" }, - "shared" : { - "type" : "boolean" + "version" : { + "type" : "string" }, - "policyTosca" : { + "policyModelTosca" : { "type" : "string" }, - "jsonRepresentation" : { - "$ref" : "#/definitions/JsonObject" + "policyAcronym" : { + "type" : "string" }, - "usedByLoops" : { + "usedByElementModels" : { "type" : "array", "uniqueItems" : true, "items" : { - "$ref" : "#/definitions/Loop" + "$ref" : "#/definitions/LoopElementModel" } + }, + "policyPdpGroup" : { + "$ref" : "#/definitions/JsonObject" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" + "format" : "org.onap.clamp.loop.template.PolicyModel" } }, - "JsonObject" : { + "Service" : { "type" : "object", "properties" : { - "asJsonObject" : { + "serviceUuid" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, + "serviceDetails" : { "$ref" : "#/definitions/JsonObject" }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" + "resourceDetails" : { + "$ref" : "#/definitions/JsonObject" + } + } + }, + "LoopTemplateLoopElementModel" : { + "type" : "object", + "properties" : { + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" }, - "asString" : { + "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" }, - "jsonPrimitive" : { + "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" : { + "asInt" : { + "type" : "integer", + "format" : "int32" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asBoolean" : { + "type" : "boolean" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, + "asString" : { + "type" : "string" }, "jsonObject" : { "type" : "boolean" }, - "asNumber" : { - "$ref" : "#/definitions/Number" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, "jsonNull" : { "type" : "boolean" }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" + "jsonPrimitive" : { + "type" : "boolean" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, "jsonArray" : { "type" : "boolean" }, - "asBoolean" : { - "type" : "boolean" + "asByte" : { + "type" : "string", + "format" : "byte" }, - "asDouble" : { - "type" : "number", - "format" : "double" + "asCharacter" : { + "type" : "string" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" }, "asFloat" : { "type" : "number", "format" : "float" }, - "asLong" : { + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { "type" : "integer", - "format" : "int64" + "format" : "int32" }, + "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" + }, "asByte" : { "type" : "string", "format" : "byte" @@ -690,6 +1249,10 @@ "asCharacter" : { "type" : "string" }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, "asBigDecimal" : { "type" : "number" }, @@ -699,13 +1262,69 @@ "asShort" : { "type" : "integer", "format" : "int32" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + }, + "jsonObject" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "jsonNull" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "jsonArray" : { + "type" : "boolean" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" } }, "x-className" : { "type" : "string", - "format" : "com.google.gson.JsonObject" + "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" + }, "ExternalComponent" : { "type" : "object", "properties" : { @@ -717,21 +1336,60 @@ } } }, - "OperationalPolicy" : { + "LoopTemplate" : { "type" : "object", "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, "name" : { "type" : "string" }, - "configurationsJson" : { - "$ref" : "#/definitions/JsonObject" + "dcaeBlueprintId" : { + "type" : "string" }, - "loop" : { - "$ref" : "#/definitions/Loop" + "blueprint" : { + "type" : "string" }, - "jsonRepresentation" : { - "$ref" : "#/definitions/JsonObject" + "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.loop.template.LoopTemplate" } }, "ExternalComponentState" : { @@ -749,108 +1407,70 @@ } } }, - "JsonNull" : { + "LoopElementModel" : { "type" : "object", "properties" : { - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "asString" : { + "updatedBy" : { "type" : "string" }, - "jsonPrimitive" : { - "type" : "boolean" - }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" - }, - "jsonObject" : { - "type" : "boolean" - }, - "asNumber" : { - "$ref" : "#/definitions/Number" - }, - "jsonNull" : { - "type" : "boolean" - }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" - }, - "jsonArray" : { - "type" : "boolean" - }, - "asBoolean" : { - "type" : "boolean" - }, - "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" : { + "loopElementType" : { "type" : "string" }, - "asBigDecimal" : { - "type" : "number" + "shortName" : { + "type" : "string" }, - "asBigInteger" : { - "type" : "integer" + "policyModels" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/PolicyModel" + } }, - "asShort" : { - "type" : "integer", - "format" : "int32" + "usedByLoopTemplates" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopTemplateLoopElementModel" + } } } }, - "CldsInfo" : { + "CldsHealthCheck" : { "type" : "object", "properties" : { - "userName" : { + "healthCheckComponent" : { "type" : "string" }, - "cldsVersion" : { + "healthCheckStatus" : { "type" : "string" }, - "permissionReadCl" : { - "type" : "boolean" - }, - "permissionUpdateCl" : { - "type" : "boolean" - }, - "permissionReadTemplate" : { - "type" : "boolean" - }, - "permissionUpdateTemplate" : { - "type" : "boolean" - }, - "permissionReadTosca" : { - "type" : "boolean" - }, - "permissionUpdateTosca" : { - "type" : "boolean" + "description" : { + "type" : "string" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsInfo" + "format" : "org.onap.clamp.clds.model.CldsHealthCheck" } } }