X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fswagger%2Fswagger.json;h=1ed4a4ba6730b152ea9a256901ad30f263b74f32;hb=8604d37f2f6bdd011de62ec474b6883413d30348;hp=32113ccbd4fba6d45a969aedc51bd543976a407e;hpb=5dfa4b58906921dea2aab38d20d761f460f49964;p=clamp.git diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 32113ccb..1ed4a4ba 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,16 +1,159 @@ { "swagger" : "2.0", "info" : { - "version" : "4.2.0-SNAPSHOT", + "version" : "5.0.0-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "localhost:33953", + "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,28 +471,153 @@ } }, "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" : { @@ -338,23 +628,23 @@ } }, "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" : { "createdDate" : { @@ -374,16 +664,94 @@ "name" : { "type" : "string" }, - "dcaeDeploymentId" : { - "type" : "string" - }, - "dcaeDeploymentStatusUrl" : { - "type" : "string" - }, - "dcaeBlueprintId" : { - "type" : "string" + "secondLevelDictionary" : { + "type" : "integer", + "format" : "int32" }, - "svgRepresentation" : { + "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" : { "type" : "string" }, "globalPropertiesJson" : { @@ -392,9 +760,6 @@ "modelService" : { "$ref" : "#/definitions/Service" }, - "blueprint" : { - "type" : "string" - }, "lastComputedState" : { "type" : "string", "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ] @@ -435,51 +800,25 @@ "format" : "org.onap.clamp.loop.Loop" } }, - "MicroServiceModel" : { + "JsonPrimitive" : { "type" : "object", "properties" : { - "createdDate" : { + "asInt" : { "type" : "integer", - "format" : "int64" + "format" : "int32" }, - "updatedDate" : { + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asLong" : { "type" : "integer", "format" : "int64" }, - "updatedBy" : { - "type" : "string" - }, - "createdBy" : { - "type" : "string" - }, - "name" : { - "type" : "string" - }, - "policyType" : { - "type" : "string" - }, - "blueprint" : { - "type" : "string" - }, - "policyModel" : { - "$ref" : "#/definitions/PolicyModel" - }, - "usedByLoopTemplates" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "$ref" : "#/definitions/TemplateMicroServiceModel" - } - } - } - }, - "JsonPrimitive" : { - "type" : "object", - "properties" : { - "asBoolean" : { + "boolean" : { "type" : "boolean" }, - "boolean" : { + "asBoolean" : { "type" : "boolean" }, "number" : { @@ -488,25 +827,6 @@ "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" @@ -514,6 +834,10 @@ "asCharacter" : { "type" : "string" }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, "asBigDecimal" : { "type" : "number" }, @@ -524,28 +848,31 @@ "type" : "integer", "format" : "int32" }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, "string" : { "type" : "boolean" }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" }, + "jsonObject" : { + "type" : "boolean" + }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "jsonArray" : { - "type" : "boolean" - }, - "jsonObject" : { + "jsonNull" : { "type" : "boolean" }, "jsonPrimitive" : { "type" : "boolean" }, - "jsonNull" : { + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "jsonArray" : { "type" : "boolean" }, "asJsonNull" : { @@ -570,10 +897,25 @@ "createdBy" : { "type" : "string" }, - "name" : { + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" + }, + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" + }, + "pdpGroup" : { "type" : "string" }, - "modelType" : { + "pdpSubgroup" : { + "type" : "string" + }, + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" + }, + "name" : { "type" : "string" }, "context" : { @@ -582,18 +924,9 @@ "deviceTypeScope" : { "type" : "string" }, - "properties" : { - "$ref" : "#/definitions/JsonObject" - }, "shared" : { "type" : "boolean" }, - "policyTosca" : { - "type" : "string" - }, - "jsonRepresentation" : { - "$ref" : "#/definitions/JsonObject" - }, "usedByLoops" : { "type" : "array", "uniqueItems" : true, @@ -601,8 +934,14 @@ "$ref" : "#/definitions/Loop" } }, - "microServiceModel" : { - "$ref" : "#/definitions/MicroServiceModel" + "dcaeDeploymentId" : { + "type" : "string" + }, + "dcaeDeploymentStatusUrl" : { + "type" : "string" + }, + "dcaeBlueprintId" : { + "type" : "string" } }, "x-className" : { @@ -613,6 +952,18 @@ "JsonObject" : { "type" : "object", "properties" : { + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, "asBoolean" : { "type" : "boolean" }, @@ -622,53 +973,38 @@ "asString" : { "type" : "string" }, + "jsonObject" : { + "type" : "boolean" + }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" }, + "jsonNull" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, "asJsonPrimitive" : { "$ref" : "#/definitions/JsonPrimitive" }, "jsonArray" : { "type" : "boolean" }, - "jsonObject" : { - "type" : "boolean" - }, - "jsonPrimitive" : { - "type" : "boolean" + "asByte" : { + "type" : "string", + "format" : "byte" }, - "jsonNull" : { - "type" : "boolean" + "asCharacter" : { + "type" : "string" }, "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, - "asNumber" : { - "$ref" : "#/definitions/Number" - }, - "asDouble" : { - "type" : "number", - "format" : "double" - }, "asFloat" : { "type" : "number", "format" : "float" }, - "asLong" : { - "type" : "integer", - "format" : "int64" - }, - "asInt" : { - "type" : "integer", - "format" : "int32" - }, - "asByte" : { - "type" : "string", - "format" : "byte" - }, - "asCharacter" : { - "type" : "string" - }, "asBigDecimal" : { "type" : "number" }, @@ -678,6 +1014,9 @@ "asShort" : { "type" : "integer", "format" : "int32" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" } }, "x-className" : { @@ -714,9 +1053,20 @@ "policyAcronym" : { "type" : "string" }, - "policyVariant" : { - "type" : "string" + "usedByElementModels" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopElementModel" + } + }, + "policyPdpGroup" : { + "$ref" : "#/definitions/JsonObject" } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.loop.template.PolicyModel" } }, "Service" : { @@ -725,6 +1075,12 @@ "serviceUuid" : { "type" : "string" }, + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, "serviceDetails" : { "$ref" : "#/definitions/JsonObject" }, @@ -733,29 +1089,82 @@ } } }, + "LoopTemplateLoopElementModel" : { + "type" : "object", + "properties" : { + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" + }, + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" + }, + "flowOrder" : { + "type" : "integer", + "format" : "int32" + } + } + }, "OperationalPolicy" : { "type" : "object", "properties" : { - "name" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { "type" : "string" }, + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" + }, "configurationsJson" : { "$ref" : "#/definitions/JsonObject" }, - "loop" : { - "$ref" : "#/definitions/Loop" + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" + }, + "pdpGroup" : { + "type" : "string" + }, + "pdpSubgroup" : { + "type" : "string" }, "policyModel" : { "$ref" : "#/definitions/PolicyModel" }, - "jsonRepresentation" : { - "$ref" : "#/definitions/JsonObject" + "name" : { + "type" : "string" + }, + "loop" : { + "$ref" : "#/definitions/Loop" + }, + "legacy" : { + "type" : "boolean" } } }, "JsonNull" : { "type" : "object", "properties" : { + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, "asBoolean" : { "type" : "boolean" }, @@ -765,53 +1174,38 @@ "asString" : { "type" : "string" }, + "jsonObject" : { + "type" : "boolean" + }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" }, + "jsonNull" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, "asJsonPrimitive" : { "$ref" : "#/definitions/JsonPrimitive" }, "jsonArray" : { "type" : "boolean" }, - "jsonObject" : { - "type" : "boolean" - }, - "jsonPrimitive" : { - "type" : "boolean" + "asByte" : { + "type" : "string", + "format" : "byte" }, - "jsonNull" : { - "type" : "boolean" + "asCharacter" : { + "type" : "string" }, "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, - "asNumber" : { - "$ref" : "#/definitions/Number" - }, - "asDouble" : { - "type" : "number", - "format" : "double" - }, "asFloat" : { "type" : "number", "format" : "float" }, - "asLong" : { - "type" : "integer", - "format" : "int64" - }, - "asInt" : { - "type" : "integer", - "format" : "int32" - }, - "asByte" : { - "type" : "string", - "format" : "byte" - }, - "asCharacter" : { - "type" : "string" - }, "asBigDecimal" : { "type" : "number" }, @@ -821,36 +1215,32 @@ "asShort" : { "type" : "integer", "format" : "int32" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" } } }, "JsonArray" : { "type" : "object", "properties" : { - "asBoolean" : { - "type" : "boolean" - }, - "asString" : { - "type" : "string" - }, - "asNumber" : { - "$ref" : "#/definitions/Number" + "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" + "asBoolean" : { + "type" : "boolean" + }, + "asString" : { + "type" : "string" }, "asByte" : { "type" : "string", @@ -859,6 +1249,10 @@ "asCharacter" : { "type" : "string" }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, "asBigDecimal" : { "type" : "number" }, @@ -869,25 +1263,28 @@ "type" : "integer", "format" : "int32" }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" }, + "jsonObject" : { + "type" : "boolean" + }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "jsonArray" : { - "type" : "boolean" - }, - "jsonObject" : { + "jsonNull" : { "type" : "boolean" }, "jsonPrimitive" : { "type" : "boolean" }, - "jsonNull" : { + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "jsonArray" : { "type" : "boolean" }, "asJsonNull" : { @@ -925,21 +1322,6 @@ } } }, - "TemplateMicroServiceModel" : { - "type" : "object", - "properties" : { - "loopTemplate" : { - "$ref" : "#/definitions/LoopTemplate" - }, - "microServiceModel" : { - "$ref" : "#/definitions/MicroServiceModel" - }, - "flowOrder" : { - "type" : "integer", - "format" : "int32" - } - } - }, "Number" : { "type" : "object" }, @@ -974,17 +1356,20 @@ "name" : { "type" : "string" }, + "dcaeBlueprintId" : { + "type" : "string" + }, "blueprint" : { "type" : "string" }, "svgRepresentation" : { "type" : "string" }, - "microServiceModelUsed" : { + "loopElementModelsUsed" : { "type" : "array", "uniqueItems" : true, "items" : { - "$ref" : "#/definitions/TemplateMicroServiceModel" + "$ref" : "#/definitions/LoopTemplateLoopElementModel" } }, "modelService" : { @@ -993,7 +1378,18 @@ "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" : { @@ -1011,37 +1407,52 @@ } } }, - "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" : {