Update Swagger doc
[clamp.git] / docs / swagger / swagger.json
index 85fe2f7..079daa2 100644 (file)
 {
   "swagger" : "2.0",
   "info" : {
-    "version" : "4.0.0-SNAPSHOT",
+    "version" : "4.0.3-SNAPSHOT",
     "title" : "Clamp Rest API"
   },
-  "host" : "0.0.0.0",
-  "basePath" : "/restservices/clds/v1/",
+  "host" : "localhost:46235",
+  "basePath" : "/restservices/clds/",
   "schemes" : [ "http" ],
   "paths" : {
-    "/clds/action/{action}/{modelName}?test={test}" : {
+    "/v2/loop/{loopName}" : {
+      "get" : {
+        "operationId" : "route3",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route3"
+      }
+    },
+    "/v2/loop/delete/{loopName}" : {
+      "put" : {
+        "operationId" : "route13",
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : { }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route13"
+      }
+    },
+    "/v2/loop/deployLoop/{loopName}" : {
+      "put" : {
+        "operationId" : "route8",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route8"
+      }
+    },
+    "/v2/loop/getAllNames" : {
+      "get" : {
+        "operationId" : "route2",
+        "produces" : [ "application/json" ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "type" : "array",
+              "items" : {
+                "type" : "string"
+              }
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route2"
+      }
+    },
+    "/v2/loop/getstatus/{loopName}" : {
+      "get" : {
+        "operationId" : "route14",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route14"
+      }
+    },
+    "/v2/loop/restart/{loopName}" : {
+      "put" : {
+        "operationId" : "route11",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route11"
+      }
+    },
+    "/v2/loop/stop/{loopName}" : {
+      "put" : {
+        "operationId" : "route10",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route10"
+      }
+    },
+    "/v2/loop/submit/{loopName}" : {
       "put" : {
-        "operationId" : "route66",
+        "operationId" : "route12",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route12"
+      }
+    },
+    "/v2/loop/svgRepresentation/{loopName}" : {
+      "get" : {
+        "operationId" : "route4",
+        "produces" : [ "application/xml" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "type" : "string"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route4"
+      }
+    },
+    "/v2/loop/undeployLoop/{loopName}" : {
+      "put" : {
+        "operationId" : "route9",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route9"
+      }
+    },
+    "/v2/loop/updateGlobalProperties/{loopName}" : {
+      "post" : {
+        "operationId" : "route5",
+        "consumes" : [ "application/json" ],
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        }, {
+          "in" : "body",
+          "name" : "body",
+          "required" : true,
+          "schema" : {
+            "$ref" : "#/definitions/JsonObject"
+          }
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route5"
+      }
+    },
+    "/v2/loop/updateMicroservicePolicy/{loopName}" : {
+      "post" : {
+        "operationId" : "route7",
+        "consumes" : [ "application/json" ],
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        }, {
+          "in" : "body",
+          "name" : "body",
+          "required" : true,
+          "schema" : {
+            "$ref" : "#/definitions/MicroServicePolicy"
+          }
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/MicroServicePolicy"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route7"
+      }
+    },
+    "/v2/loop/updateOperationalPolicies/{loopName}" : {
+      "post" : {
+        "operationId" : "route6",
+        "consumes" : [ "application/json" ],
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        }, {
+          "in" : "body",
+          "name" : "body",
+          "required" : true,
+          "schema" : {
+            "$ref" : "#/definitions/JsonArray"
+          }
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route6"
+      }
+    },
+    "/v1/clds/action/{action}/{modelName}?test={test}" : {
+      "put" : {
+        "operationId" : "route23",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route66"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route23"
       }
     },
-    "/clds/cldsDetails" : {
+    "/v1/clds/cldsDetails" : {
       "get" : {
-        "operationId" : "route58",
+        "operationId" : "route15",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsMonitoringDetails"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsMonitoringDetails"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route58"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route15"
       }
     },
-    "/clds/cldsInfo" : {
+    "/v1/clds/cldsInfo" : {
       "get" : {
-        "operationId" : "route59",
+        "operationId" : "route16",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsInfo"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsInfo"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route59"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route16"
       }
     },
-    "/clds/dcae/event?test={test}" : {
+    "/v1/clds/dcae/event?test={test}" : {
       "post" : {
-        "operationId" : "route67",
+        "operationId" : "route24",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route67"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route24"
       }
     },
-    "/clds/deploy/{modelName}" : {
+    "/v1/clds/deploy/{modelName}" : {
       "put" : {
-        "operationId" : "route69",
+        "operationId" : "route26",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route69"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route26"
       }
     },
-    "/clds/model-names" : {
+    "/v1/clds/model-names" : {
       "get" : {
-        "operationId" : "route65",
+        "operationId" : "route22",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/ValueItem"
-            },
             "schema" : {
               "$ref" : "#/definitions/ValueItem"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route65"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route22"
       }
     },
-    "/clds/model/{modelName}" : {
+    "/v1/clds/model/{modelName}" : {
       "get" : {
-        "operationId" : "route63",
+        "operationId" : "route20",
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "name" : "modelName",
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsModel"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsModel"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route63"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route20"
       },
       "put" : {
-        "operationId" : "route64",
+        "operationId" : "route21",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsModel"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsModel"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route64"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route21"
       }
     },
-    "/clds/model/bpmn/{modelName}" : {
+    "/v1/clds/model/bpmn/{modelName}" : {
       "get" : {
-        "operationId" : "route61",
+        "operationId" : "route18",
         "produces" : [ "text/xml" ],
         "parameters" : [ {
           "name" : "modelName",
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route61"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route18"
       }
     },
-    "/clds/model/image/{modelName}" : {
+    "/v1/clds/model/image/{modelName}" : {
       "get" : {
-        "operationId" : "route62",
+        "operationId" : "route19",
         "produces" : [ "text/xml" ],
         "parameters" : [ {
           "name" : "modelName",
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route62"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route19"
       }
     },
-    "/clds/properties" : {
+    "/v1/clds/properties" : {
       "get" : {
-        "operationId" : "route68",
+        "operationId" : "route25",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route68"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route25"
       }
     },
-    "/clds/undeploy/{modelName}" : {
+    "/v1/clds/undeploy/{modelName}" : {
       "put" : {
-        "operationId" : "route70",
+        "operationId" : "route27",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route70"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route27"
       }
     },
-    "/cldsTempate/template-names" : {
+    "/v1/cldsTempate/template-names" : {
       "get" : {
-        "operationId" : "route75",
+        "operationId" : "route32",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/ValueItem"
-            },
             "schema" : {
               "$ref" : "#/definitions/ValueItem"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route75"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route32"
       }
     },
-    "/cldsTempate/template/{templateName}" : {
+    "/v1/cldsTempate/template/{templateName}" : {
       "get" : {
-        "operationId" : "route73",
+        "operationId" : "route30",
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "name" : "templateName",
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsTemplate"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsTemplate"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route73"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route30"
       },
       "put" : {
-        "operationId" : "route74",
+        "operationId" : "route31",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsTemplate"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsTemplate"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route74"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route31"
       }
     },
-    "/cldsTempate/template/bpmn/{templateName}" : {
+    "/v1/cldsTempate/template/bpmn/{templateName}" : {
       "get" : {
-        "operationId" : "route71",
+        "operationId" : "route28",
         "produces" : [ "text/xml" ],
         "parameters" : [ {
           "name" : "templateName",
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route71"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route28"
       }
     },
-    "/cldsTempate/template/image/{templateName}" : {
+    "/v1/cldsTempate/template/image/{templateName}" : {
       "get" : {
-        "operationId" : "route72",
+        "operationId" : "route29",
         "produces" : [ "text/xml" ],
         "parameters" : [ {
           "name" : "templateName",
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route72"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route29"
       }
     },
-    "/dictionary" : {
+    "/v1/dictionary" : {
       "get" : {
-        "operationId" : "route81",
+        "operationId" : "route40",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsDictionary"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsDictionary"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route81"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route40"
       }
     },
-    "/dictionary/{dictionaryName}" : {
+    "/v1/dictionary/{dictionaryName}" : {
       "put" : {
-        "operationId" : "route80",
+        "operationId" : "route39",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsDictionary"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsDictionary"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route80"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route39"
       }
     },
-    "/dictionary/{dictionaryName}/items" : {
+    "/v1/dictionary/{dictionaryName}/items" : {
       "get" : {
-        "operationId" : "route83",
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "name" : "dictionaryName",
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsDictionary"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsDictionary"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route83"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : null
       },
       "put" : {
-        "operationId" : "route82",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsDictionaryItem"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsDictionaryItem"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route82"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : null
       }
     },
-    "/healthcheck" : {
+    "/v1/healthcheck" : {
       "get" : {
-        "operationId" : "route60",
+        "operationId" : "route17",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route60"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route17"
       }
     },
-    "/tosca/models" : {
+    "/v1/tosca/models" : {
       "get" : {
-        "operationId" : "route78",
+        "operationId" : "route36",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsToscaModel"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsToscaModel"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route78"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route36"
       }
     },
-    "/tosca/models/{toscaModelName}" : {
+    "/v1/tosca/models/{toscaModelName}" : {
       "get" : {
-        "operationId" : "route79",
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "name" : "toscaModelName",
         "responses" : {
           "200" : {
             "description" : "Output type",
-            "responseSchema" : {
-              "$ref" : "#/definitions/CldsToscaModel"
-            },
             "schema" : {
               "$ref" : "#/definitions/CldsToscaModel"
             }
           }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route79"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : null
       },
       "put" : {
-        "operationId" : "route76",
+        "operationId" : "route33",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route76"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route33"
       }
     },
-    "/tosca/models/policyType/{policyType}" : {
+    "/v1/tosca/models/policyType/{policyType}" : {
       "get" : {
-        "operationId" : "route77",
+        "operationId" : "route34",
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "name" : "policyType",
           "type" : "string"
         } ],
         "responses" : {
-          "200" : { }
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/CldsToscaModel"
+            }
+          }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route77"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route34"
       }
     },
-    "/user/getUser" : {
+    "/v1/user/getUser" : {
       "get" : {
-        "operationId" : "route84",
+        "operationId" : "route41",
         "produces" : [ "text/plain" ],
         "responses" : {
           "200" : { }
         },
-        "x-camelContextId" : "camel-3",
-        "x-routeId" : "route84"
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route41"
       }
     }
   },
   "definitions" : {
+    "Loop" : {
+      "type" : "object",
+      "properties" : {
+        "name" : {
+          "type" : "string"
+        },
+        "dcaeDeploymentId" : {
+          "type" : "string"
+        },
+        "dcaeDeploymentStatusUrl" : {
+          "type" : "string"
+        },
+        "dcaeBlueprintId" : {
+          "type" : "string"
+        },
+        "svgRepresentation" : {
+          "type" : "string"
+        },
+        "globalPropertiesJson" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "modelPropertiesJson" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "blueprint" : {
+          "type" : "string"
+        },
+        "lastComputedState" : {
+          "type" : "string",
+          "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ]
+        },
+        "operationalPolicies" : {
+          "type" : "array",
+          "uniqueItems" : true,
+          "items" : {
+            "$ref" : "#/definitions/OperationalPolicy"
+          }
+        },
+        "microServicePolicies" : {
+          "type" : "array",
+          "uniqueItems" : true,
+          "items" : {
+            "$ref" : "#/definitions/MicroServicePolicy"
+          }
+        },
+        "loopLogs" : {
+          "type" : "array",
+          "uniqueItems" : true,
+          "items" : {
+            "$ref" : "#/definitions/LoopLog"
+          }
+        }
+      },
+      "x-className" : {
+        "type" : "string",
+        "format" : "org.onap.clamp.loop.Loop"
+      }
+    },
+    "JsonArray" : {
+      "type" : "object",
+      "properties" : {
+        "asString" : {
+          "type" : "string"
+        },
+        "asBoolean" : {
+          "type" : "boolean"
+        },
+        "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"
+        },
+        "jsonPrimitive" : {
+          "type" : "boolean"
+        },
+        "jsonNull" : {
+          "type" : "boolean"
+        },
+        "jsonObject" : {
+          "type" : "boolean"
+        },
+        "asJsonObject" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "jsonArray" : {
+          "type" : "boolean"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
+        },
+        "asJsonPrimitive" : {
+          "$ref" : "#/definitions/JsonPrimitive"
+        },
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
+        }
+      },
+      "x-className" : {
+        "type" : "string",
+        "format" : "com.google.gson.JsonArray"
+      }
+    },
+    "LoopLog" : {
+      "type" : "object",
+      "properties" : {
+        "id" : {
+          "type" : "integer",
+          "format" : "int64"
+        },
+        "logType" : {
+          "type" : "string",
+          "enum" : [ "INFO", "WARNING", "ERROR" ]
+        },
+        "message" : {
+          "type" : "string"
+        },
+        "loop" : {
+          "$ref" : "#/definitions/Loop"
+        },
+        "logInstant" : {
+          "type" : "integer",
+          "format" : "int64"
+        }
+      }
+    },
+    "Number" : {
+      "type" : "object"
+    },
+    "JsonPrimitive" : {
+      "type" : "object",
+      "properties" : {
+        "boolean" : {
+          "type" : "boolean"
+        },
+        "number" : {
+          "type" : "boolean"
+        },
+        "asString" : {
+          "type" : "string"
+        },
+        "asBoolean" : {
+          "type" : "boolean"
+        },
+        "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"
+        },
+        "string" : {
+          "type" : "boolean"
+        },
+        "jsonPrimitive" : {
+          "type" : "boolean"
+        },
+        "jsonNull" : {
+          "type" : "boolean"
+        },
+        "jsonObject" : {
+          "type" : "boolean"
+        },
+        "asJsonObject" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "jsonArray" : {
+          "type" : "boolean"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
+        },
+        "asJsonPrimitive" : {
+          "$ref" : "#/definitions/JsonPrimitive"
+        },
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
+        }
+      }
+    },
+    "MicroServicePolicy" : {
+      "type" : "object",
+      "properties" : {
+        "name" : {
+          "type" : "string"
+        },
+        "modelType" : {
+          "type" : "string"
+        },
+        "properties" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "shared" : {
+          "type" : "boolean"
+        },
+        "policyTosca" : {
+          "type" : "string"
+        },
+        "jsonRepresentation" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "usedByLoops" : {
+          "type" : "array",
+          "uniqueItems" : true,
+          "items" : {
+            "$ref" : "#/definitions/Loop"
+          }
+        }
+      },
+      "x-className" : {
+        "type" : "string",
+        "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy"
+      }
+    },
+    "JsonObject" : {
+      "type" : "object",
+      "properties" : {
+        "jsonPrimitive" : {
+          "type" : "boolean"
+        },
+        "jsonNull" : {
+          "type" : "boolean"
+        },
+        "jsonObject" : {
+          "type" : "boolean"
+        },
+        "asJsonObject" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "asString" : {
+          "type" : "string"
+        },
+        "jsonArray" : {
+          "type" : "boolean"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
+        },
+        "asJsonPrimitive" : {
+          "$ref" : "#/definitions/JsonPrimitive"
+        },
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
+        },
+        "asBoolean" : {
+          "type" : "boolean"
+        },
+        "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"
+        }
+      },
+      "x-className" : {
+        "type" : "string",
+        "format" : "com.google.gson.JsonObject"
+      }
+    },
+    "OperationalPolicy" : {
+      "type" : "object",
+      "properties" : {
+        "name" : {
+          "type" : "string"
+        },
+        "configurationsJson" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "loop" : {
+          "$ref" : "#/definitions/Loop"
+        },
+        "jsonRepresentation" : {
+          "$ref" : "#/definitions/JsonObject"
+        }
+      }
+    },
+    "JsonNull" : {
+      "type" : "object",
+      "properties" : {
+        "jsonPrimitive" : {
+          "type" : "boolean"
+        },
+        "jsonNull" : {
+          "type" : "boolean"
+        },
+        "jsonObject" : {
+          "type" : "boolean"
+        },
+        "asJsonObject" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "asString" : {
+          "type" : "string"
+        },
+        "jsonArray" : {
+          "type" : "boolean"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
+        },
+        "asJsonPrimitive" : {
+          "$ref" : "#/definitions/JsonPrimitive"
+        },
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
+        },
+        "asBoolean" : {
+          "type" : "boolean"
+        },
+        "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"
+        }
+      }
+    },
     "CldsModelInstance" : {
       "type" : "object",
       "properties" : {
         "event" : {
           "type" : "string"
         },
-        "serviceUUID" : {
-          "type" : "string"
-        },
-        "resourceUUID" : {
-          "type" : "string"
-        },
         "artifactName" : {
           "type" : "string"
         },
             "$ref" : "#/definitions/CldsModelInstance"
           }
         },
+        "serviceUUID" : {
+          "type" : "string"
+        },
+        "resourceUUID" : {
+          "type" : "string"
+        },
         "controlName" : {
           "type" : "string"
         },