{
"swagger" : "2.0",
"info" : {
- "version" : "4.0.0-SNAPSHOT",
+ "version" : "4.1.2-SNAPSHOT",
"title" : "Clamp Rest API"
},
- "host" : "0.0.0.0",
- "basePath" : "/restservices/clds/v1/",
+ "host" : "localhost:34219",
+ "basePath" : "/restservices/clds/",
"schemes" : [ "http" ],
"paths" : {
- "/clds/action/{action}/{modelName}?test={test}" : {
- "put" : {
- "operationId" : "route66",
- "consumes" : [ "application/json" ],
+ "/v2/loop/{loopName}" : {
+ "get" : {
+ "operationId" : "route3",
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "action",
- "in" : "path",
- "required" : true,
- "type" : "string"
- }, {
- "name" : "modelName}?test={test",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
- }, {
- "in" : "body",
- "name" : "body",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/CldsModel"
- }
} ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route66"
- }
- },
- "/clds/cldsDetails" : {
- "get" : {
- "operationId" : "route58",
- "produces" : [ "application/json" ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsMonitoringDetails"
- },
"schema" : {
- "$ref" : "#/definitions/CldsMonitoringDetails"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route58"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route3"
}
},
- "/clds/cldsInfo" : {
- "get" : {
- "operationId" : "route59",
- "produces" : [ "application/json" ],
- "responses" : {
- "200" : {
- "description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsInfo"
- },
- "schema" : {
- "$ref" : "#/definitions/CldsInfo"
- }
- }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route59"
- }
- },
- "/clds/dcae/event?test={test}" : {
- "post" : {
- "operationId" : "route67",
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
+ "/v2/loop/delete/{loopName}" : {
+ "put" : {
+ "operationId" : "route13",
"parameters" : [ {
- "in" : "body",
- "name" : "body",
+ "name" : "loopName",
+ "in" : "path",
"required" : true,
- "schema" : {
- "$ref" : "#/definitions/DcaeEvent"
- }
+ "type" : "string"
} ],
"responses" : {
"200" : { }
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route67"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route13"
}
},
- "/clds/deploy/{modelName}" : {
+ "/v2/loop/deploy/{loopName}" : {
"put" : {
- "operationId" : "route69",
- "consumes" : [ "application/json" ],
+ "operationId" : "route8",
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "modelName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
- }, {
- "in" : "body",
- "name" : "body",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/CldsModel"
- }
} ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route69"
- }
- },
- "/clds/model-names" : {
- "get" : {
- "operationId" : "route65",
- "produces" : [ "application/json" ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/ValueItem"
- },
"schema" : {
- "$ref" : "#/definitions/ValueItem"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route65"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route8"
}
},
- "/clds/model/{modelName}" : {
+ "/v2/loop/getAllNames" : {
"get" : {
- "operationId" : "route63",
+ "operationId" : "route2",
"produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "modelName",
- "in" : "path",
- "required" : true,
- "type" : "string"
- } ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsModel"
- },
"schema" : {
- "$ref" : "#/definitions/CldsModel"
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route63"
- },
- "put" : {
- "operationId" : "route64",
- "consumes" : [ "application/json" ],
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route2"
+ }
+ },
+ "/v2/loop/getstatus/{loopName}" : {
+ "get" : {
+ "operationId" : "route14",
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "modelName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
- }, {
- "in" : "body",
- "name" : "body",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/CldsModel"
- }
} ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsModel"
- },
"schema" : {
- "$ref" : "#/definitions/CldsModel"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route64"
- }
- },
- "/clds/model/bpmn/{modelName}" : {
- "get" : {
- "operationId" : "route61",
- "produces" : [ "text/xml" ],
- "parameters" : [ {
- "name" : "modelName",
- "in" : "path",
- "required" : true,
- "type" : "string"
- } ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route61"
- }
- },
- "/clds/model/image/{modelName}" : {
- "get" : {
- "operationId" : "route62",
- "produces" : [ "text/xml" ],
- "parameters" : [ {
- "name" : "modelName",
- "in" : "path",
- "required" : true,
- "type" : "string"
- } ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route62"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route14"
}
},
- "/clds/properties" : {
- "get" : {
- "operationId" : "route68",
- "produces" : [ "application/json" ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route68"
- }
- },
- "/clds/undeploy/{modelName}" : {
+ "/v2/loop/restart/{loopName}" : {
"put" : {
- "operationId" : "route70",
- "consumes" : [ "application/json" ],
+ "operationId" : "route11",
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "modelName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
- }, {
- "in" : "body",
- "name" : "body",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/CldsModel"
- }
} ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route70"
- }
- },
- "/cldsTempate/template-names" : {
- "get" : {
- "operationId" : "route75",
- "produces" : [ "application/json" ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/ValueItem"
- },
"schema" : {
- "$ref" : "#/definitions/ValueItem"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route75"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route11"
}
},
- "/cldsTempate/template/{templateName}" : {
- "get" : {
- "operationId" : "route73",
+ "/v2/loop/stop/{loopName}" : {
+ "put" : {
+ "operationId" : "route10",
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "templateName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsTemplate"
- },
"schema" : {
- "$ref" : "#/definitions/CldsTemplate"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route73"
- },
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route10"
+ }
+ },
+ "/v2/loop/submit/{loopName}" : {
"put" : {
- "operationId" : "route74",
- "consumes" : [ "application/json" ],
+ "operationId" : "route12",
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "templateName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
- }, {
- "in" : "body",
- "name" : "body",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/CldsTemplate"
- }
} ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsTemplate"
- },
"schema" : {
- "$ref" : "#/definitions/CldsTemplate"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route74"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route12"
}
},
- "/cldsTempate/template/bpmn/{templateName}" : {
+ "/v2/loop/svgRepresentation/{loopName}" : {
"get" : {
- "operationId" : "route71",
- "produces" : [ "text/xml" ],
+ "operationId" : "route4",
+ "produces" : [ "application/xml" ],
"parameters" : [ {
- "name" : "templateName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
} ],
"responses" : {
- "200" : { }
+ "200" : {
+ "description" : "Output type",
+ "schema" : {
+ "type" : "string"
+ }
+ }
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route71"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route4"
}
},
- "/cldsTempate/template/image/{templateName}" : {
- "get" : {
- "operationId" : "route72",
- "produces" : [ "text/xml" ],
+ "/v2/loop/undeploy/{loopName}" : {
+ "put" : {
+ "operationId" : "route9",
+ "produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "templateName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
} ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route72"
- }
- },
- "/dictionary" : {
- "get" : {
- "operationId" : "route81",
- "produces" : [ "application/json" ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsDictionary"
- },
"schema" : {
- "$ref" : "#/definitions/CldsDictionary"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route81"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route9"
}
},
- "/dictionary/{dictionaryName}" : {
- "put" : {
- "operationId" : "route80",
+ "/v2/loop/updateGlobalProperties/{loopName}" : {
+ "post" : {
+ "operationId" : "route5",
"consumes" : [ "application/json" ],
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "dictionaryName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
"name" : "body",
"required" : true,
"schema" : {
- "$ref" : "#/definitions/CldsDictionary"
+ "$ref" : "#/definitions/JsonObject"
}
} ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsDictionary"
- },
"schema" : {
- "$ref" : "#/definitions/CldsDictionary"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route80"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route5"
}
},
- "/dictionary/{dictionaryName}/items" : {
- "get" : {
- "operationId" : "route83",
+ "/v2/loop/updateMicroservicePolicy/{loopName}" : {
+ "post" : {
+ "operationId" : "route7",
+ "consumes" : [ "application/json" ],
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "dictionaryName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
+ }, {
+ "in" : "body",
+ "name" : "body",
+ "required" : true,
+ "schema" : {
+ "$ref" : "#/definitions/MicroServicePolicy"
+ }
} ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsDictionary"
- },
"schema" : {
- "$ref" : "#/definitions/CldsDictionary"
+ "$ref" : "#/definitions/MicroServicePolicy"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route83"
- },
- "put" : {
- "operationId" : "route82",
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route7"
+ }
+ },
+ "/v2/loop/updateOperationalPolicies/{loopName}" : {
+ "post" : {
+ "operationId" : "route6",
"consumes" : [ "application/json" ],
"produces" : [ "application/json" ],
"parameters" : [ {
- "name" : "dictionaryName",
+ "name" : "loopName",
"in" : "path",
"required" : true,
"type" : "string"
"name" : "body",
"required" : true,
"schema" : {
- "$ref" : "#/definitions/CldsDictionaryItem"
+ "$ref" : "#/definitions/JsonArray"
}
} ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsDictionaryItem"
- },
"schema" : {
- "$ref" : "#/definitions/CldsDictionaryItem"
+ "$ref" : "#/definitions/Loop"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route82"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route6"
}
},
- "/healthcheck" : {
+ "/v1/clds/cldsInfo" : {
"get" : {
- "operationId" : "route60",
- "produces" : [ "application/json" ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route60"
- }
- },
- "/tosca/models" : {
- "get" : {
- "operationId" : "route78",
+ "operationId" : "route15",
"produces" : [ "application/json" ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsToscaModel"
- },
"schema" : {
- "$ref" : "#/definitions/CldsToscaModel"
+ "$ref" : "#/definitions/CldsInfo"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route78"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route15"
}
},
- "/tosca/models/{toscaModelName}" : {
+ "/v1/healthcheck" : {
"get" : {
- "operationId" : "route79",
+ "operationId" : "route16",
"produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "toscaModelName",
- "in" : "path",
- "required" : true,
- "type" : "string"
- } ],
"responses" : {
"200" : {
"description" : "Output type",
- "responseSchema" : {
- "$ref" : "#/definitions/CldsToscaModel"
- },
"schema" : {
- "$ref" : "#/definitions/CldsToscaModel"
+ "$ref" : "#/definitions/CldsHealthCheck"
}
}
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route79"
- },
- "put" : {
- "operationId" : "route76",
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "toscaModelName",
- "in" : "path",
- "required" : true,
- "type" : "string"
- }, {
- "in" : "body",
- "name" : "body",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/CldsToscaModel"
- }
- } ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route76"
- }
- },
- "/tosca/models/policyType/{policyType}" : {
- "get" : {
- "operationId" : "route77",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "policyType",
- "in" : "path",
- "required" : true,
- "type" : "string"
- } ],
- "responses" : {
- "200" : { }
- },
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route77"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route16"
}
},
- "/user/getUser" : {
+ "/v1/user/getUser" : {
"get" : {
- "operationId" : "route84",
+ "operationId" : "route17",
"produces" : [ "text/plain" ],
"responses" : {
"200" : { }
},
- "x-camelContextId" : "camel-3",
- "x-routeId" : "route84"
+ "x-camelContextId" : "camel-1",
+ "x-routeId" : "route17"
}
}
},
"definitions" : {
- "CldsModelInstance" : {
+ "Loop" : {
"type" : "object",
"properties" : {
- "modelInstanceId" : {
- "type" : "string"
- },
- "location" : {
- "type" : "string"
- },
- "vmName" : {
- "type" : "string"
- }
- }
- },
- "CldsModel" : {
- "type" : "object",
- "properties" : {
- "id" : {
- "type" : "string"
- },
- "templateId" : {
- "type" : "string"
- },
- "templateName" : {
- "type" : "string"
- },
"name" : {
"type" : "string"
},
- "controlNamePrefix" : {
+ "dcaeDeploymentId" : {
"type" : "string"
},
- "controlNameUuid" : {
+ "dcaeDeploymentStatusUrl" : {
"type" : "string"
},
- "bpmnText" : {
+ "dcaeBlueprintId" : {
"type" : "string"
},
- "propText" : {
+ "svgRepresentation" : {
"type" : "string"
},
- "imageText" : {
- "type" : "string"
+ "globalPropertiesJson" : {
+ "$ref" : "#/definitions/JsonObject"
},
- "docText" : {
- "type" : "string"
+ "modelPropertiesJson" : {
+ "$ref" : "#/definitions/JsonObject"
},
- "blueprintText" : {
+ "blueprint" : {
"type" : "string"
},
- "event" : {
- "$ref" : "#/definitions/CldsEvent"
+ "lastComputedState" : {
+ "type" : "string",
+ "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ]
},
- "status" : {
- "type" : "string"
+ "components" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/definitions/ExternalComponent"
+ }
},
- "permittedActionCd" : {
+ "operationalPolicies" : {
"type" : "array",
+ "uniqueItems" : true,
"items" : {
- "type" : "string"
+ "$ref" : "#/definitions/OperationalPolicy"
}
},
- "cldsModelInstanceList" : {
+ "microServicePolicies" : {
"type" : "array",
+ "uniqueItems" : true,
"items" : {
- "$ref" : "#/definitions/CldsModelInstance"
+ "$ref" : "#/definitions/MicroServicePolicy"
}
},
- "errorMessageForUi" : {
- "type" : "string"
+ "loopLogs" : {
+ "type" : "array",
+ "uniqueItems" : true,
+ "items" : {
+ "$ref" : "#/definitions/LoopLog"
+ }
+ }
+ },
+ "x-className" : {
+ "type" : "string",
+ "format" : "org.onap.clamp.loop.Loop"
+ }
+ },
+ "JsonArray" : {
+ "type" : "object",
+ "properties" : {
+ "asBoolean" : {
+ "type" : "boolean"
},
- "typeId" : {
- "type" : "string"
+ "asNumber" : {
+ "$ref" : "#/definitions/Number"
},
- "typeName" : {
+ "asString" : {
"type" : "string"
},
- "deploymentId" : {
- "type" : "string"
+ "asDouble" : {
+ "type" : "number",
+ "format" : "double"
},
- "deploymentStatusUrl" : {
- "type" : "string"
+ "asFloat" : {
+ "type" : "number",
+ "format" : "float"
+ },
+ "asLong" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "asInt" : {
+ "type" : "integer",
+ "format" : "int32"
},
- "controlName" : {
+ "asByte" : {
+ "type" : "string",
+ "format" : "byte"
+ },
+ "asCharacter" : {
"type" : "string"
+ },
+ "asBigDecimal" : {
+ "type" : "number"
+ },
+ "asBigInteger" : {
+ "type" : "integer"
+ },
+ "asShort" : {
+ "type" : "integer",
+ "format" : "int32"
+ },
+ "asJsonPrimitive" : {
+ "$ref" : "#/definitions/JsonPrimitive"
+ },
+ "asJsonNull" : {
+ "$ref" : "#/definitions/JsonNull"
+ },
+ "jsonArray" : {
+ "type" : "boolean"
+ },
+ "jsonObject" : {
+ "type" : "boolean"
+ },
+ "jsonNull" : {
+ "type" : "boolean"
+ },
+ "jsonPrimitive" : {
+ "type" : "boolean"
+ },
+ "asJsonObject" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
+ "asJsonArray" : {
+ "$ref" : "#/definitions/JsonArray"
}
},
"x-className" : {
"type" : "string",
- "format" : "org.onap.clamp.clds.model.CldsModel"
+ "format" : "com.google.gson.JsonArray"
}
},
- "CldsEvent" : {
+ "LoopLog" : {
"type" : "object",
"properties" : {
"id" : {
- "type" : "string"
+ "type" : "integer",
+ "format" : "int64"
},
- "actionCd" : {
- "type" : "string"
+ "logType" : {
+ "type" : "string",
+ "enum" : [ "INFO", "WARNING", "ERROR" ]
},
- "actionStateCd" : {
+ "logComponent" : {
"type" : "string"
},
- "processInstanceId" : {
+ "message" : {
"type" : "string"
},
- "userid" : {
- "type" : "string"
+ "loop" : {
+ "$ref" : "#/definitions/Loop"
+ },
+ "logInstant" : {
+ "type" : "integer",
+ "format" : "int64"
}
}
},
- "CldsMonitoringDetails" : {
+ "Number" : {
+ "type" : "object"
+ },
+ "JsonPrimitive" : {
"type" : "object",
"properties" : {
- "closeloopName" : {
- "type" : "string"
+ "boolean" : {
+ "type" : "boolean"
},
- "modelId" : {
- "type" : "string"
+ "number" : {
+ "type" : "boolean"
},
- "modelName" : {
- "type" : "string"
+ "asBoolean" : {
+ "type" : "boolean"
},
- "serviceTypeId" : {
- "type" : "string"
+ "asNumber" : {
+ "$ref" : "#/definitions/Number"
},
- "deploymentId" : {
+ "asString" : {
"type" : "string"
},
- "templateName" : {
- "type" : "string"
+ "asDouble" : {
+ "type" : "number",
+ "format" : "double"
},
- "action" : {
- "type" : "string"
+ "asFloat" : {
+ "type" : "number",
+ "format" : "float"
},
- "userid" : {
- "type" : "string"
+ "asLong" : {
+ "type" : "integer",
+ "format" : "int64"
},
- "timestamp" : {
- "type" : "string"
- }
- },
- "x-className" : {
- "type" : "string",
- "format" : "org.onap.clamp.clds.model.CldsMonitoringDetails"
- }
- },
- "CldsInfo" : {
- "type" : "object",
- "properties" : {
- "userName" : {
- "type" : "string"
+ "asInt" : {
+ "type" : "integer",
+ "format" : "int32"
},
- "cldsVersion" : {
+ "asByte" : {
+ "type" : "string",
+ "format" : "byte"
+ },
+ "asCharacter" : {
"type" : "string"
},
- "permissionReadCl" : {
- "type" : "boolean"
+ "asBigDecimal" : {
+ "type" : "number"
},
- "permissionUpdateCl" : {
+ "asBigInteger" : {
+ "type" : "integer"
+ },
+ "asShort" : {
+ "type" : "integer",
+ "format" : "int32"
+ },
+ "string" : {
"type" : "boolean"
},
- "permissionReadTemplate" : {
+ "asJsonPrimitive" : {
+ "$ref" : "#/definitions/JsonPrimitive"
+ },
+ "asJsonNull" : {
+ "$ref" : "#/definitions/JsonNull"
+ },
+ "jsonArray" : {
"type" : "boolean"
},
- "permissionUpdateTemplate" : {
+ "jsonObject" : {
"type" : "boolean"
},
- "permissionReadTosca" : {
+ "jsonNull" : {
"type" : "boolean"
},
- "permissionUpdateTosca" : {
+ "jsonPrimitive" : {
"type" : "boolean"
+ },
+ "asJsonObject" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
+ "asJsonArray" : {
+ "$ref" : "#/definitions/JsonArray"
}
- },
- "x-className" : {
- "type" : "string",
- "format" : "org.onap.clamp.clds.model.CldsInfo"
}
},
- "DcaeEvent" : {
+ "MicroServicePolicy" : {
"type" : "object",
"properties" : {
- "event" : {
+ "name" : {
"type" : "string"
},
- "serviceUUID" : {
+ "modelType" : {
"type" : "string"
},
- "resourceUUID" : {
- "type" : "string"
+ "properties" : {
+ "$ref" : "#/definitions/JsonObject"
},
- "artifactName" : {
+ "shared" : {
+ "type" : "boolean"
+ },
+ "policyTosca" : {
"type" : "string"
},
- "instances" : {
+ "jsonRepresentation" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
+ "usedByLoops" : {
"type" : "array",
+ "uniqueItems" : true,
"items" : {
- "$ref" : "#/definitions/CldsModelInstance"
+ "$ref" : "#/definitions/Loop"
}
- },
- "controlName" : {
- "type" : "string"
- },
- "cldsActionCd" : {
- "type" : "string"
- }
- },
- "x-className" : {
- "type" : "string",
- "format" : "org.onap.clamp.clds.model.DcaeEvent"
- }
- },
- "ValueItem" : {
- "type" : "object",
- "properties" : {
- "value" : {
- "type" : "string"
}
},
"x-className" : {
"type" : "string",
- "format" : "org.onap.clamp.clds.model.ValueItem"
+ "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy"
}
},
- "CldsTemplate" : {
+ "JsonObject" : {
"type" : "object",
"properties" : {
- "id" : {
- "type" : "string"
+ "asJsonPrimitive" : {
+ "$ref" : "#/definitions/JsonPrimitive"
},
- "name" : {
- "type" : "string"
+ "asJsonNull" : {
+ "$ref" : "#/definitions/JsonNull"
},
- "controlNamePrefix" : {
- "type" : "string"
+ "asBoolean" : {
+ "type" : "boolean"
},
- "controlNameUuid" : {
- "type" : "string"
+ "asNumber" : {
+ "$ref" : "#/definitions/Number"
},
- "bpmnId" : {
+ "asString" : {
"type" : "string"
},
- "bpmnUserid" : {
- "type" : "string"
+ "asDouble" : {
+ "type" : "number",
+ "format" : "double"
},
- "bpmnText" : {
- "type" : "string"
+ "asFloat" : {
+ "type" : "number",
+ "format" : "float"
},
- "imageId" : {
- "type" : "string"
+ "asLong" : {
+ "type" : "integer",
+ "format" : "int64"
},
- "imageUserid" : {
- "type" : "string"
+ "asInt" : {
+ "type" : "integer",
+ "format" : "int32"
},
- "imageText" : {
- "type" : "string"
+ "asByte" : {
+ "type" : "string",
+ "format" : "byte"
},
- "propId" : {
+ "asCharacter" : {
"type" : "string"
},
- "propUserid" : {
- "type" : "string"
+ "asBigDecimal" : {
+ "type" : "number"
},
- "propText" : {
- "type" : "string"
+ "asBigInteger" : {
+ "type" : "integer"
+ },
+ "asShort" : {
+ "type" : "integer",
+ "format" : "int32"
+ },
+ "jsonArray" : {
+ "type" : "boolean"
+ },
+ "jsonObject" : {
+ "type" : "boolean"
},
- "userAuthorizedToUpdate" : {
+ "jsonNull" : {
"type" : "boolean"
+ },
+ "jsonPrimitive" : {
+ "type" : "boolean"
+ },
+ "asJsonObject" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
+ "asJsonArray" : {
+ "$ref" : "#/definitions/JsonArray"
}
},
"x-className" : {
"type" : "string",
- "format" : "org.onap.clamp.clds.model.CldsTemplate"
+ "format" : "com.google.gson.JsonObject"
}
},
- "CldsDictionary" : {
+ "ExternalComponent" : {
"type" : "object",
"properties" : {
- "dictionaryId" : {
- "type" : "string"
+ "state" : {
+ "$ref" : "#/definitions/ExternalComponentState"
},
- "dictionaryName" : {
+ "componentName" : {
"type" : "string"
- },
- "createdBy" : {
+ }
+ }
+ },
+ "OperationalPolicy" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
"type" : "string"
},
- "updatedBy" : {
- "type" : "string"
+ "configurationsJson" : {
+ "$ref" : "#/definitions/JsonObject"
},
- "lastUpdatedDate" : {
- "type" : "string"
+ "loop" : {
+ "$ref" : "#/definitions/Loop"
},
- "cldsDictionaryItems" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/CldsDictionaryItem"
- }
+ "jsonRepresentation" : {
+ "$ref" : "#/definitions/JsonObject"
}
- },
- "x-className" : {
- "type" : "string",
- "format" : "org.onap.clamp.clds.model.CldsDictionary"
}
},
- "CldsDictionaryItem" : {
+ "ExternalComponentState" : {
"type" : "object",
"properties" : {
- "dictElementId" : {
+ "stateName" : {
"type" : "string"
},
- "dictionaryId" : {
+ "description" : {
"type" : "string"
},
- "dictElementName" : {
- "type" : "string"
+ "level" : {
+ "type" : "integer",
+ "format" : "int32"
+ }
+ }
+ },
+ "JsonNull" : {
+ "type" : "object",
+ "properties" : {
+ "asJsonPrimitive" : {
+ "$ref" : "#/definitions/JsonPrimitive"
},
- "dictElementShortName" : {
- "type" : "string"
+ "asJsonNull" : {
+ "$ref" : "#/definitions/JsonNull"
},
- "dictElementDesc" : {
- "type" : "string"
+ "asBoolean" : {
+ "type" : "boolean"
},
- "dictElementType" : {
- "type" : "string"
+ "asNumber" : {
+ "$ref" : "#/definitions/Number"
},
- "createdBy" : {
+ "asString" : {
"type" : "string"
},
- "updatedBy" : {
- "type" : "string"
+ "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"
},
- "lastUpdatedDate" : {
+ "asCharacter" : {
"type" : "string"
+ },
+ "asBigDecimal" : {
+ "type" : "number"
+ },
+ "asBigInteger" : {
+ "type" : "integer"
+ },
+ "asShort" : {
+ "type" : "integer",
+ "format" : "int32"
+ },
+ "jsonArray" : {
+ "type" : "boolean"
+ },
+ "jsonObject" : {
+ "type" : "boolean"
+ },
+ "jsonNull" : {
+ "type" : "boolean"
+ },
+ "jsonPrimitive" : {
+ "type" : "boolean"
+ },
+ "asJsonObject" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
+ "asJsonArray" : {
+ "$ref" : "#/definitions/JsonArray"
}
- },
- "x-className" : {
- "type" : "string",
- "format" : "org.onap.clamp.clds.model.CldsDictionaryItem"
}
},
- "CldsToscaModel" : {
+ "CldsInfo" : {
"type" : "object",
"properties" : {
- "revisionId" : {
+ "userName" : {
"type" : "string"
},
- "toscaModelYaml" : {
+ "cldsVersion" : {
"type" : "string"
},
- "version" : {
- "type" : "number",
- "format" : "double"
+ "permissionReadCl" : {
+ "type" : "boolean"
},
- "toscaModelJson" : {
- "type" : "string"
+ "permissionUpdateCl" : {
+ "type" : "boolean"
},
- "userId" : {
- "type" : "string"
+ "permissionReadTemplate" : {
+ "type" : "boolean"
},
- "createdDate" : {
- "type" : "string"
+ "permissionUpdateTemplate" : {
+ "type" : "boolean"
},
- "lastUpdatedDate" : {
- "type" : "string"
+ "permissionReadTosca" : {
+ "type" : "boolean"
},
- "id" : {
+ "permissionUpdateTosca" : {
+ "type" : "boolean"
+ }
+ },
+ "x-className" : {
+ "type" : "string",
+ "format" : "org.onap.clamp.clds.model.CldsInfo"
+ }
+ },
+ "CldsHealthCheck" : {
+ "type" : "object",
+ "properties" : {
+ "healthCheckComponent" : {
"type" : "string"
},
- "policyType" : {
+ "healthCheckStatus" : {
"type" : "string"
},
- "toscaModelName" : {
+ "description" : {
"type" : "string"
}
},
"x-className" : {
"type" : "string",
- "format" : "org.onap.clamp.clds.model.CldsToscaModel"
+ "format" : "org.onap.clamp.clds.model.CldsHealthCheck"
}
}
}