X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fswagger%2Fswagger.json;h=fbd9c48dd6e06c73a18a8c90b121afa2ff823a42;hb=5ec88e4569f8c8ad89ffc775f1687470f3b04fe7;hp=80ffc2a9e7dfe3375d165349d01cf409a8fd6019;hpb=c85d40b0cc8f40e5d0e17019878df82170f7bb35;p=clamp.git diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 80ffc2a9..fbd9c48d 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,22 +1,240 @@ { "swagger" : "2.0", "info" : { - "version" : "4.1.2-SNAPSHOT", + "version" : "5.1.0-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "localhost:36829", + "host" : "localhost:43065", "basePath" : "/restservices/clds/", "schemes" : [ "http" ], "paths" : { + "/v2/clampInformation" : { + "get" : { + "operationId" : "route142", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/ClampInformation" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route142" + } + }, + "/v2/dictionary" : { + "get" : { + "operationId" : "route127", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route127" + }, + "put" : { + "operationId" : "route130", + "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-4", + "x-routeId" : "route130" + } + }, + "/v2/dictionary/{dictionaryName}" : { + "get" : { + "operationId" : "route129", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "dictionaryName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route129" + } + }, + "/v2/dictionary/{name}" : { + "put" : { + "operationId" : "route131", + "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-4", + "x-routeId" : "route131" + }, + "delete" : { + "operationId" : "route132", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route132" + } + }, + "/v2/dictionary/{name}/elements/{shortName}" : { + "delete" : { + "operationId" : "route133", + "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-4", + "x-routeId" : "route133" + } + }, + "/v2/dictionary/secondary/names" : { + "get" : { + "operationId" : "route128", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route128" + } + }, "/v2/loop/{loopName}" : { "get" : { - "operationId" : "route20", + "operationId" : "route111", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route111" + } + }, + "/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : { + "put" : { + "operationId" : "route124", "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-4", + "x-routeId" : "route124" + } + }, + "/v2/loop/create/{loopName}?templateName={templateName}" : { + "post" : { + "operationId" : "route126", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName}?templateName={templateName", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { @@ -26,13 +244,13 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route20" + "x-camelContextId" : "camel-4", + "x-routeId" : "route126" } }, "/v2/loop/delete/{loopName}" : { "put" : { - "operationId" : "route30", + "operationId" : "route122", "parameters" : [ { "name" : "loopName", "in" : "path", @@ -42,13 +260,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route30" + "x-camelContextId" : "camel-4", + "x-routeId" : "route122" } }, "/v2/loop/deploy/{loopName}" : { "put" : { - "operationId" : "route25", + "operationId" : "route115", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -64,13 +282,13 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route25" + "x-camelContextId" : "camel-4", + "x-routeId" : "route115" } }, "/v2/loop/getAllNames" : { "get" : { - "operationId" : "route19", + "operationId" : "route110", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -83,13 +301,13 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route19" + "x-camelContextId" : "camel-4", + "x-routeId" : "route110" } }, "/v2/loop/getstatus/{loopName}" : { "get" : { - "operationId" : "route31", + "operationId" : "route123", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -105,19 +323,24 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route31" + "x-camelContextId" : "camel-4", + "x-routeId" : "route123" } }, - "/v2/loop/restart/{loopName}" : { + "/v2/loop/refreshMicroServicePolicyJsonSchema/{loopName}/{microServicePolicyName}" : { "put" : { - "operationId" : "route28", + "operationId" : "route116", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", "in" : "path", "required" : true, "type" : "string" + }, { + "name" : "microServicePolicyName", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { @@ -127,19 +350,24 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route28" + "x-camelContextId" : "camel-4", + "x-routeId" : "route116" } }, - "/v2/loop/stop/{loopName}" : { + "/v2/loop/refreshOperationalPolicyJsonSchema/{loopName}/{operationalPolicyName}" : { "put" : { - "operationId" : "route27", + "operationId" : "route117", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", "in" : "path", "required" : true, "type" : "string" + }, { + "name" : "operationalPolicyName", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { @@ -149,19 +377,34 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route27" + "x-camelContextId" : "camel-4", + "x-routeId" : "route117" } }, - "/v2/loop/submit/{loopName}" : { + "/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}/{policyName}" : { "put" : { - "operationId" : "route29", + "operationId" : "route125", "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" + }, { + "name" : "policyName", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { @@ -171,14 +414,14 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route29" + "x-camelContextId" : "camel-4", + "x-routeId" : "route125" } }, - "/v2/loop/svgRepresentation/{loopName}" : { - "get" : { - "operationId" : "route21", - "produces" : [ "application/xml" ], + "/v2/loop/restart/{loopName}" : { + "put" : { + "operationId" : "route120", + "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", "in" : "path", @@ -189,17 +432,61 @@ "200" : { "description" : "Output type", "schema" : { - "type" : "string" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route21" + "x-camelContextId" : "camel-4", + "x-routeId" : "route120" + } + }, + "/v2/loop/stop/{loopName}" : { + "put" : { + "operationId" : "route119", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route119" + } + }, + "/v2/loop/submit/{loopName}" : { + "put" : { + "operationId" : "route121", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route121" } }, "/v2/loop/undeploy/{loopName}" : { "put" : { - "operationId" : "route26", + "operationId" : "route118", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -215,13 +502,13 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route26" + "x-camelContextId" : "camel-4", + "x-routeId" : "route118" } }, "/v2/loop/updateGlobalProperties/{loopName}" : { "post" : { - "operationId" : "route22", + "operationId" : "route112", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -245,13 +532,13 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route22" + "x-camelContextId" : "camel-4", + "x-routeId" : "route112" } }, "/v2/loop/updateMicroservicePolicy/{loopName}" : { "post" : { - "operationId" : "route24", + "operationId" : "route114", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -275,13 +562,13 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route24" + "x-camelContextId" : "camel-4", + "x-routeId" : "route114" } }, "/v2/loop/updateOperationalPolicies/{loopName}" : { "post" : { - "operationId" : "route23", + "operationId" : "route113", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -305,77 +592,356 @@ } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route23" + "x-camelContextId" : "camel-4", + "x-routeId" : "route113" } }, - "/v1/clds/cldsInfo" : { + "/v2/policyToscaModels" : { "get" : { - "operationId" : "route32", + "operationId" : "route134", "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", "schema" : { - "$ref" : "#/definitions/CldsInfo" + "$ref" : "#/definitions/PolicyModel" } } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route32" - } - }, - "/v1/healthcheck" : { - "get" : { - "operationId" : "route33", + "x-camelContextId" : "camel-4", + "x-routeId" : "route134" + }, + "post" : { + "operationId" : "route137", + "consumes" : [ "plain/text" ], "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "type" : "string" + } + } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route33" + "x-camelContextId" : "camel-4", + "x-routeId" : "route137" } }, - "/v1/user/getUser" : { + "/v2/policyToscaModels/{policyModelType}/{policyModelVersion}" : { "get" : { - "operationId" : "route34", - "produces" : [ "text/plain" ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-2", - "x-routeId" : "route34" - } - } + "operationId" : "route135", + "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-4", + "x-routeId" : "route135" + }, + "put" : { + "operationId" : "route138", + "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-4", + "x-routeId" : "route138" + } + }, + "/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}" : { + "get" : { + "operationId" : "route136", + "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-4", + "x-routeId" : "route136" + } + }, + "/v2/templates" : { + "get" : { + "operationId" : "route139", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/LoopTemplate" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route139" + } + }, + "/v2/templates/{templateName}" : { + "get" : { + "operationId" : "route140", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "templateName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/LoopTemplate" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route140" + } + }, + "/v2/templates/names" : { + "get" : { + "operationId" : "route141", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route141" + } + }, + "/v1/healthcheck" : { + "get" : { + "operationId" : "route143", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/CldsHealthCheck" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route143" + } + }, + "/v1/user/getUser" : { + "get" : { + "operationId" : "route144", + "produces" : [ "text/plain" ], + "responses" : { + "200" : { } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route144" + } + } }, "definitions" : { - "Loop" : { + "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" }, - "dcaeDeploymentId" : { + "secondLevelDictionary" : { + "type" : "integer", + "format" : "int32" + }, + "subDictionaryType" : { "type" : "string" }, - "dcaeDeploymentStatusUrl" : { + "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" }, - "dcaeBlueprintId" : { + "createdBy" : { "type" : "string" }, - "svgRepresentation" : { + "shortName" : { "type" : "string" }, - "globalPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" + "name" : { + "type" : "string" }, - "modelPropertiesJson" : { - "$ref" : "#/definitions/JsonObject" + "description" : { + "type" : "string" }, - "blueprint" : { + "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" }, + "globalPropertiesJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "modelService" : { + "$ref" : "#/definitions/Service" + }, "lastComputedState" : { "type" : "string", "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ] @@ -406,6 +972,9 @@ "items" : { "$ref" : "#/definitions/LoopLog" } + }, + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" } }, "x-className" : { @@ -413,18 +982,21 @@ "format" : "org.onap.clamp.loop.Loop" } }, - "JsonArray" : { + "JsonPrimitive" : { "type" : "object", "properties" : { + "asBoolean" : { + "type" : "boolean" + }, + "number" : { + "type" : "boolean" + }, "asString" : { "type" : "string" }, "asNumber" : { "$ref" : "#/definitions/Number" }, - "asBoolean" : { - "type" : "boolean" - }, "asDouble" : { "type" : "number", "format" : "double" @@ -458,72 +1030,386 @@ "type" : "integer", "format" : "int32" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" + "boolean" : { + "type" : "boolean" }, - "jsonPrimitive" : { + "string" : { "type" : "boolean" }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" + "jsonArray" : { + "type" : "boolean" }, "jsonObject" : { "type" : "boolean" }, + "jsonPrimitive" : { + "type" : "boolean" + }, "jsonNull" : { "type" : "boolean" }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, - "jsonArray" : { + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + } + } + }, + "MicroServicePolicy" : { + "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" + }, + "context" : { + "type" : "string" + }, + "deviceTypeScope" : { + "type" : "string" + }, + "shared" : { + "type" : "boolean" + }, + "usedByLoops" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/Loop" + } + }, + "dcaeDeploymentId" : { + "type" : "string" + }, + "dcaeDeploymentStatusUrl" : { + "type" : "string" + }, + "dcaeBlueprintId" : { + "type" : "string" + }, + "legacy" : { "type" : "boolean" } }, "x-className" : { "type" : "string", - "format" : "com.google.gson.JsonArray" + "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" } }, - "LoopLog" : { + "JsonObject" : { "type" : "object", "properties" : { - "id" : { + "asBoolean" : { + "type" : "boolean" + }, + "asString" : { + "type" : "string" + }, + "jsonArray" : { + "type" : "boolean" + }, + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asLong" : { "type" : "integer", "format" : "int64" }, - "logType" : { + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asByte" : { "type" : "string", - "enum" : [ "INFO", "WARNING", "ERROR" ] + "format" : "byte" }, - "logComponent" : { + "asCharacter" : { "type" : "string" }, - "message" : { - "type" : "string" + "asBigDecimal" : { + "type" : "number" }, - "loop" : { - "$ref" : "#/definitions/Loop" + "asBigInteger" : { + "type" : "integer" }, - "logInstant" : { + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + } + }, + "x-className" : { + "type" : "string", + "format" : "com.google.gson.JsonObject" + } + }, + "PolicyModel" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { "type" : "integer", "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, + "policyModelType" : { + "type" : "string" + }, + "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" : { + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" + }, + "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" }, - "number" : { + "asString" : { + "type" : "string" + }, + "jsonArray" : { + "type" : "boolean" + }, + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "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" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + } + } + }, + "JsonArray" : { + "type" : "object", + "properties" : { + "asBoolean" : { "type" : "boolean" }, "asString" : { @@ -532,9 +1418,6 @@ "asNumber" : { "$ref" : "#/definitions/Number" }, - "asBoolean" : { - "type" : "boolean" - }, "asDouble" : { "type" : "number", "format" : "double" @@ -568,144 +1451,65 @@ "type" : "integer", "format" : "int32" }, - "string" : { + "jsonArray" : { "type" : "boolean" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" + "jsonObject" : { + "type" : "boolean" }, "jsonPrimitive" : { "type" : "boolean" }, + "jsonNull" : { + "type" : "boolean" + }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" }, - "jsonObject" : { - "type" : "boolean" - }, - "jsonNull" : { - "type" : "boolean" + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" }, "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, - "jsonArray" : { - "type" : "boolean" - } - } - }, - "MicroServicePolicy" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "modelType" : { - "type" : "string" - }, - "properties" : { - "$ref" : "#/definitions/JsonObject" - }, - "shared" : { - "type" : "boolean" - }, - "policyTosca" : { - "type" : "string" - }, - "jsonRepresentation" : { + "asJsonObject" : { "$ref" : "#/definitions/JsonObject" - }, - "usedByLoops" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "$ref" : "#/definitions/Loop" - } } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" + "format" : "com.google.gson.JsonArray" } }, - "JsonObject" : { + "LoopLog" : { "type" : "object", "properties" : { - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "asString" : { - "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" - }, - "asLong" : { + "id" : { "type" : "integer", "format" : "int64" }, - "asInt" : { - "type" : "integer", - "format" : "int32" - }, - "asByte" : { + "logType" : { "type" : "string", - "format" : "byte" + "enum" : [ "INFO", "WARNING", "ERROR" ] }, - "asCharacter" : { + "logComponent" : { "type" : "string" }, - "asBigDecimal" : { - "type" : "number" + "message" : { + "type" : "string" }, - "asBigInteger" : { - "type" : "integer" + "loop" : { + "$ref" : "#/definitions/Loop" }, - "asShort" : { + "logInstant" : { "type" : "integer", - "format" : "int32" + "format" : "int64" } - }, - "x-className" : { - "type" : "string", - "format" : "com.google.gson.JsonObject" } }, + "Number" : { + "type" : "object" + }, "ExternalComponent" : { "type" : "object", "properties" : { @@ -717,21 +1521,57 @@ } } }, - "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" + "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 +1589,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" } } }