Fix the CDS calls
[clamp.git] / docs / swagger / swagger.json
1 {
2   "swagger" : "2.0",
3   "info" : {
4     "version" : "5.0.0-SNAPSHOT",
5     "title" : "Clamp Rest API"
6   },
7   "host" : "localhost:42393",
8   "basePath" : "/restservices/clds/",
9   "schemes" : [ "http" ],
10   "paths" : {
11     "/v2/clampInformation" : {
12       "get" : {
13         "operationId" : "route112",
14         "produces" : [ "application/json" ],
15         "responses" : {
16           "200" : {
17             "description" : "Output type",
18             "schema" : {
19               "$ref" : "#/definitions/ClampInformation"
20             }
21           }
22         },
23         "x-camelContextId" : "camel-3",
24         "x-routeId" : "route112"
25       }
26     },
27     "/v2/dictionary" : {
28       "get" : {
29         "operationId" : "route98",
30         "produces" : [ "application/json" ],
31         "responses" : {
32           "200" : {
33             "description" : "Output type",
34             "schema" : {
35               "$ref" : "#/definitions/Dictionary"
36             }
37           }
38         },
39         "x-camelContextId" : "camel-3",
40         "x-routeId" : "route98"
41       },
42       "put" : {
43         "operationId" : "route100",
44         "consumes" : [ "application/json" ],
45         "produces" : [ "application/json" ],
46         "parameters" : [ {
47           "in" : "body",
48           "name" : "body",
49           "required" : true,
50           "schema" : {
51             "$ref" : "#/definitions/Dictionary"
52           }
53         } ],
54         "responses" : {
55           "200" : {
56             "description" : "Output type",
57             "schema" : {
58               "$ref" : "#/definitions/Dictionary"
59             }
60           }
61         },
62         "x-camelContextId" : "camel-3",
63         "x-routeId" : "route100"
64       }
65     },
66     "/v2/dictionary/{dictionaryName}" : {
67       "get" : {
68         "produces" : [ "application/json" ],
69         "parameters" : [ {
70           "name" : "dictionaryName",
71           "in" : "path",
72           "required" : true,
73           "type" : "string"
74         } ],
75         "responses" : {
76           "200" : {
77             "description" : "Output type",
78             "schema" : {
79               "$ref" : "#/definitions/Dictionary"
80             }
81           }
82         },
83         "x-camelContextId" : "camel-3",
84         "x-routeId" : null
85       }
86     },
87     "/v2/dictionary/{name}" : {
88       "put" : {
89         "consumes" : [ "application/json" ],
90         "produces" : [ "application/json" ],
91         "parameters" : [ {
92           "name" : "name",
93           "in" : "path",
94           "required" : true,
95           "type" : "string"
96         }, {
97           "in" : "body",
98           "name" : "body",
99           "required" : true,
100           "schema" : {
101             "$ref" : "#/definitions/Dictionary"
102           }
103         } ],
104         "responses" : {
105           "200" : {
106             "description" : "Output type",
107             "schema" : {
108               "$ref" : "#/definitions/Dictionary"
109             }
110           }
111         },
112         "x-camelContextId" : "camel-3",
113         "x-routeId" : null
114       },
115       "delete" : {
116         "operationId" : "route102",
117         "produces" : [ "application/json" ],
118         "parameters" : [ {
119           "name" : "name",
120           "in" : "path",
121           "required" : true,
122           "type" : "string"
123         } ],
124         "responses" : {
125           "200" : { }
126         },
127         "x-camelContextId" : "camel-3",
128         "x-routeId" : "route102"
129       }
130     },
131     "/v2/dictionary/{name}/elements/{shortName}" : {
132       "delete" : {
133         "produces" : [ "application/json" ],
134         "parameters" : [ {
135           "name" : "name",
136           "in" : "path",
137           "required" : true,
138           "type" : "string"
139         }, {
140           "name" : "shortName",
141           "in" : "path",
142           "required" : true,
143           "type" : "string"
144         } ],
145         "responses" : {
146           "200" : { }
147         },
148         "x-camelContextId" : "camel-3",
149         "x-routeId" : null
150       }
151     },
152     "/v2/dictionary/secondary/names" : {
153       "get" : {
154         "produces" : [ "application/json" ],
155         "responses" : {
156           "200" : {
157             "description" : "Output type",
158             "schema" : {
159               "type" : "array",
160               "items" : {
161                 "type" : "string"
162               }
163             }
164           }
165         },
166         "x-camelContextId" : "camel-3",
167         "x-routeId" : null
168       }
169     },
170     "/v2/loop/{loopName}" : {
171       "get" : {
172         "operationId" : "route79",
173         "produces" : [ "application/json" ],
174         "parameters" : [ {
175           "name" : "loopName",
176           "in" : "path",
177           "required" : true,
178           "type" : "string"
179         } ],
180         "responses" : {
181           "200" : {
182             "description" : "Output type",
183             "schema" : {
184               "$ref" : "#/definitions/Loop"
185             }
186           }
187         },
188         "x-camelContextId" : "camel-3",
189         "x-routeId" : "route79"
190       }
191     },
192     "/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : {
193       "put" : {
194         "operationId" : "route93",
195         "produces" : [ "application/json" ],
196         "parameters" : [ {
197           "name" : "loopName",
198           "in" : "path",
199           "required" : true,
200           "type" : "string"
201         }, {
202           "name" : "policyType",
203           "in" : "path",
204           "required" : true,
205           "type" : "string"
206         }, {
207           "name" : "policyVersion",
208           "in" : "path",
209           "required" : true,
210           "type" : "string"
211         } ],
212         "responses" : {
213           "200" : {
214             "description" : "Output type",
215             "schema" : {
216               "$ref" : "#/definitions/Loop"
217             }
218           }
219         },
220         "x-camelContextId" : "camel-3",
221         "x-routeId" : "route93"
222       }
223     },
224     "/v2/loop/create/{loopName}?templateName={templateName}" : {
225       "post" : {
226         "operationId" : "route95",
227         "consumes" : [ "application/json" ],
228         "produces" : [ "application/json" ],
229         "parameters" : [ {
230           "name" : "loopName}?templateName={templateName",
231           "in" : "path",
232           "required" : true,
233           "type" : "string"
234         } ],
235         "responses" : {
236           "200" : {
237             "description" : "Output type",
238             "schema" : {
239               "$ref" : "#/definitions/Loop"
240             }
241           }
242         },
243         "x-camelContextId" : "camel-3",
244         "x-routeId" : "route95"
245       }
246     },
247     "/v2/loop/delete/{loopName}" : {
248       "put" : {
249         "operationId" : "route91",
250         "parameters" : [ {
251           "name" : "loopName",
252           "in" : "path",
253           "required" : true,
254           "type" : "string"
255         } ],
256         "responses" : {
257           "200" : { }
258         },
259         "x-camelContextId" : "camel-3",
260         "x-routeId" : "route91"
261       }
262     },
263     "/v2/loop/deploy/{loopName}" : {
264       "put" : {
265         "operationId" : "route84",
266         "produces" : [ "application/json" ],
267         "parameters" : [ {
268           "name" : "loopName",
269           "in" : "path",
270           "required" : true,
271           "type" : "string"
272         } ],
273         "responses" : {
274           "200" : {
275             "description" : "Output type",
276             "schema" : {
277               "$ref" : "#/definitions/Loop"
278             }
279           }
280         },
281         "x-camelContextId" : "camel-3",
282         "x-routeId" : "route84"
283       }
284     },
285     "/v2/loop/getAllNames" : {
286       "get" : {
287         "operationId" : "route78",
288         "produces" : [ "application/json" ],
289         "responses" : {
290           "200" : {
291             "description" : "Output type",
292             "schema" : {
293               "type" : "array",
294               "items" : {
295                 "type" : "string"
296               }
297             }
298           }
299         },
300         "x-camelContextId" : "camel-3",
301         "x-routeId" : "route78"
302       }
303     },
304     "/v2/loop/getstatus/{loopName}" : {
305       "get" : {
306         "operationId" : "route92",
307         "produces" : [ "application/json" ],
308         "parameters" : [ {
309           "name" : "loopName",
310           "in" : "path",
311           "required" : true,
312           "type" : "string"
313         } ],
314         "responses" : {
315           "200" : {
316             "description" : "Output type",
317             "schema" : {
318               "$ref" : "#/definitions/Loop"
319             }
320           }
321         },
322         "x-camelContextId" : "camel-3",
323         "x-routeId" : "route92"
324       }
325     },
326     "/v2/loop/refreshMicroServicePolicyJsonSchema/{loopName}/{microServicePolicyName}" : {
327       "put" : {
328         "operationId" : "route85",
329         "produces" : [ "application/json" ],
330         "parameters" : [ {
331           "name" : "loopName",
332           "in" : "path",
333           "required" : true,
334           "type" : "string"
335         }, {
336           "name" : "microServicePolicyName",
337           "in" : "path",
338           "required" : true,
339           "type" : "string"
340         } ],
341         "responses" : {
342           "200" : {
343             "description" : "Output type",
344             "schema" : {
345               "$ref" : "#/definitions/Loop"
346             }
347           }
348         },
349         "x-camelContextId" : "camel-3",
350         "x-routeId" : "route85"
351       }
352     },
353     "/v2/loop/refreshOperationalPolicyJsonSchema/{loopName}/{operationalPolicyName}" : {
354       "put" : {
355         "operationId" : "route86",
356         "produces" : [ "application/json" ],
357         "parameters" : [ {
358           "name" : "loopName",
359           "in" : "path",
360           "required" : true,
361           "type" : "string"
362         }, {
363           "name" : "operationalPolicyName",
364           "in" : "path",
365           "required" : true,
366           "type" : "string"
367         } ],
368         "responses" : {
369           "200" : {
370             "description" : "Output type",
371             "schema" : {
372               "$ref" : "#/definitions/Loop"
373             }
374           }
375         },
376         "x-camelContextId" : "camel-3",
377         "x-routeId" : "route86"
378       }
379     },
380     "/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : {
381       "put" : {
382         "operationId" : "route94",
383         "produces" : [ "application/json" ],
384         "parameters" : [ {
385           "name" : "loopName",
386           "in" : "path",
387           "required" : true,
388           "type" : "string"
389         }, {
390           "name" : "policyType",
391           "in" : "path",
392           "required" : true,
393           "type" : "string"
394         }, {
395           "name" : "policyVersion",
396           "in" : "path",
397           "required" : true,
398           "type" : "string"
399         } ],
400         "responses" : {
401           "200" : {
402             "description" : "Output type",
403             "schema" : {
404               "$ref" : "#/definitions/Loop"
405             }
406           }
407         },
408         "x-camelContextId" : "camel-3",
409         "x-routeId" : "route94"
410       }
411     },
412     "/v2/loop/restart/{loopName}" : {
413       "put" : {
414         "operationId" : "route89",
415         "produces" : [ "application/json" ],
416         "parameters" : [ {
417           "name" : "loopName",
418           "in" : "path",
419           "required" : true,
420           "type" : "string"
421         } ],
422         "responses" : {
423           "200" : {
424             "description" : "Output type",
425             "schema" : {
426               "$ref" : "#/definitions/Loop"
427             }
428           }
429         },
430         "x-camelContextId" : "camel-3",
431         "x-routeId" : "route89"
432       }
433     },
434     "/v2/loop/stop/{loopName}" : {
435       "put" : {
436         "operationId" : "route88",
437         "produces" : [ "application/json" ],
438         "parameters" : [ {
439           "name" : "loopName",
440           "in" : "path",
441           "required" : true,
442           "type" : "string"
443         } ],
444         "responses" : {
445           "200" : {
446             "description" : "Output type",
447             "schema" : {
448               "$ref" : "#/definitions/Loop"
449             }
450           }
451         },
452         "x-camelContextId" : "camel-3",
453         "x-routeId" : "route88"
454       }
455     },
456     "/v2/loop/submit/{loopName}" : {
457       "put" : {
458         "operationId" : "route90",
459         "produces" : [ "application/json" ],
460         "parameters" : [ {
461           "name" : "loopName",
462           "in" : "path",
463           "required" : true,
464           "type" : "string"
465         } ],
466         "responses" : {
467           "200" : {
468             "description" : "Output type",
469             "schema" : {
470               "$ref" : "#/definitions/Loop"
471             }
472           }
473         },
474         "x-camelContextId" : "camel-3",
475         "x-routeId" : "route90"
476       }
477     },
478     "/v2/loop/svgRepresentation/{loopName}" : {
479       "get" : {
480         "operationId" : "route80",
481         "produces" : [ "application/xml" ],
482         "parameters" : [ {
483           "name" : "loopName",
484           "in" : "path",
485           "required" : true,
486           "type" : "string"
487         } ],
488         "responses" : {
489           "200" : {
490             "description" : "Output type",
491             "schema" : {
492               "type" : "string"
493             }
494           }
495         },
496         "x-camelContextId" : "camel-3",
497         "x-routeId" : "route80"
498       }
499     },
500     "/v2/loop/undeploy/{loopName}" : {
501       "put" : {
502         "operationId" : "route87",
503         "produces" : [ "application/json" ],
504         "parameters" : [ {
505           "name" : "loopName",
506           "in" : "path",
507           "required" : true,
508           "type" : "string"
509         } ],
510         "responses" : {
511           "200" : {
512             "description" : "Output type",
513             "schema" : {
514               "$ref" : "#/definitions/Loop"
515             }
516           }
517         },
518         "x-camelContextId" : "camel-3",
519         "x-routeId" : "route87"
520       }
521     },
522     "/v2/loop/updateGlobalProperties/{loopName}" : {
523       "post" : {
524         "operationId" : "route81",
525         "consumes" : [ "application/json" ],
526         "produces" : [ "application/json" ],
527         "parameters" : [ {
528           "name" : "loopName",
529           "in" : "path",
530           "required" : true,
531           "type" : "string"
532         }, {
533           "in" : "body",
534           "name" : "body",
535           "required" : true,
536           "schema" : {
537             "$ref" : "#/definitions/JsonObject"
538           }
539         } ],
540         "responses" : {
541           "200" : {
542             "description" : "Output type",
543             "schema" : {
544               "$ref" : "#/definitions/Loop"
545             }
546           }
547         },
548         "x-camelContextId" : "camel-3",
549         "x-routeId" : "route81"
550       }
551     },
552     "/v2/loop/updateMicroservicePolicy/{loopName}" : {
553       "post" : {
554         "operationId" : "route83",
555         "consumes" : [ "application/json" ],
556         "produces" : [ "application/json" ],
557         "parameters" : [ {
558           "name" : "loopName",
559           "in" : "path",
560           "required" : true,
561           "type" : "string"
562         }, {
563           "in" : "body",
564           "name" : "body",
565           "required" : true,
566           "schema" : {
567             "$ref" : "#/definitions/MicroServicePolicy"
568           }
569         } ],
570         "responses" : {
571           "200" : {
572             "description" : "Output type",
573             "schema" : {
574               "$ref" : "#/definitions/MicroServicePolicy"
575             }
576           }
577         },
578         "x-camelContextId" : "camel-3",
579         "x-routeId" : "route83"
580       }
581     },
582     "/v2/loop/updateOperationalPolicies/{loopName}" : {
583       "post" : {
584         "operationId" : "route82",
585         "consumes" : [ "application/json" ],
586         "produces" : [ "application/json" ],
587         "parameters" : [ {
588           "name" : "loopName",
589           "in" : "path",
590           "required" : true,
591           "type" : "string"
592         }, {
593           "in" : "body",
594           "name" : "body",
595           "required" : true,
596           "schema" : {
597             "$ref" : "#/definitions/JsonArray"
598           }
599         } ],
600         "responses" : {
601           "200" : {
602             "description" : "Output type",
603             "schema" : {
604               "$ref" : "#/definitions/Loop"
605             }
606           }
607         },
608         "x-camelContextId" : "camel-3",
609         "x-routeId" : "route82"
610       }
611     },
612     "/v2/policyToscaModels" : {
613       "get" : {
614         "operationId" : "route105",
615         "produces" : [ "application/json" ],
616         "responses" : {
617           "200" : {
618             "description" : "Output type",
619             "schema" : {
620               "$ref" : "#/definitions/PolicyModel"
621             }
622           }
623         },
624         "x-camelContextId" : "camel-3",
625         "x-routeId" : "route105"
626       },
627       "post" : {
628         "operationId" : "route106",
629         "consumes" : [ "plain/text" ],
630         "produces" : [ "application/json" ],
631         "parameters" : [ {
632           "in" : "body",
633           "name" : "body",
634           "required" : true,
635           "schema" : {
636             "type" : "string"
637           }
638         } ],
639         "responses" : {
640           "200" : {
641             "description" : "Output type",
642             "schema" : {
643               "$ref" : "#/definitions/PolicyModel"
644             }
645           }
646         },
647         "x-camelContextId" : "camel-3",
648         "x-routeId" : "route106"
649       }
650     },
651     "/v2/policyToscaModels/{policyModelType}/{policyModelVersion}" : {
652       "get" : {
653         "produces" : [ "application/json" ],
654         "parameters" : [ {
655           "name" : "policyModelType",
656           "in" : "path",
657           "required" : true,
658           "type" : "string"
659         }, {
660           "name" : "policyModelVersion",
661           "in" : "path",
662           "required" : true,
663           "type" : "string"
664         } ],
665         "responses" : {
666           "200" : {
667             "description" : "Output type",
668             "schema" : {
669               "$ref" : "#/definitions/PolicyModel"
670             }
671           }
672         },
673         "x-camelContextId" : "camel-3",
674         "x-routeId" : null
675       },
676       "put" : {
677         "operationId" : "route107",
678         "consumes" : [ "plain/text" ],
679         "produces" : [ "application/json" ],
680         "parameters" : [ {
681           "name" : "policyModelType",
682           "in" : "path",
683           "required" : true,
684           "type" : "string"
685         }, {
686           "name" : "policyModelVersion",
687           "in" : "path",
688           "required" : true,
689           "type" : "string"
690         }, {
691           "in" : "body",
692           "name" : "body",
693           "required" : true,
694           "schema" : {
695             "type" : "string"
696           }
697         } ],
698         "responses" : {
699           "200" : {
700             "description" : "Output type",
701             "schema" : {
702               "$ref" : "#/definitions/PolicyModel"
703             }
704           }
705         },
706         "x-camelContextId" : "camel-3",
707         "x-routeId" : "route107"
708       }
709     },
710     "/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}" : {
711       "get" : {
712         "produces" : [ "application/json" ],
713         "parameters" : [ {
714           "name" : "policyModelType",
715           "in" : "path",
716           "required" : true,
717           "type" : "string"
718         }, {
719           "name" : "policyModelVersion",
720           "in" : "path",
721           "required" : true,
722           "type" : "string"
723         } ],
724         "responses" : {
725           "200" : {
726             "description" : "Output type",
727             "schema" : {
728               "type" : "string"
729             }
730           }
731         },
732         "x-camelContextId" : "camel-3",
733         "x-routeId" : null
734       }
735     },
736     "/v2/templates" : {
737       "get" : {
738         "operationId" : "route111",
739         "produces" : [ "application/json" ],
740         "responses" : {
741           "200" : {
742             "description" : "Output type",
743             "schema" : {
744               "$ref" : "#/definitions/LoopTemplate"
745             }
746           }
747         },
748         "x-camelContextId" : "camel-3",
749         "x-routeId" : "route111"
750       }
751     },
752     "/v2/templates/{templateName}" : {
753       "get" : {
754         "produces" : [ "application/json" ],
755         "parameters" : [ {
756           "name" : "templateName",
757           "in" : "path",
758           "required" : true,
759           "type" : "string"
760         } ],
761         "responses" : {
762           "200" : {
763             "description" : "Output type",
764             "schema" : {
765               "$ref" : "#/definitions/LoopTemplate"
766             }
767           }
768         },
769         "x-camelContextId" : "camel-3",
770         "x-routeId" : null
771       }
772     },
773     "/v2/templates/{templateName}/svgRepresentation" : {
774       "get" : {
775         "produces" : [ "application/xml" ],
776         "parameters" : [ {
777           "name" : "templateName",
778           "in" : "path",
779           "required" : true,
780           "type" : "string"
781         } ],
782         "responses" : {
783           "200" : {
784             "description" : "Output type",
785             "schema" : {
786               "type" : "string"
787             }
788           }
789         },
790         "x-camelContextId" : "camel-3",
791         "x-routeId" : null
792       }
793     },
794     "/v2/templates/names" : {
795       "get" : {
796         "produces" : [ "application/json" ],
797         "responses" : {
798           "200" : {
799             "description" : "Output type",
800             "schema" : {
801               "type" : "array",
802               "items" : {
803                 "type" : "string"
804               }
805             }
806           }
807         },
808         "x-camelContextId" : "camel-3",
809         "x-routeId" : null
810       }
811     },
812     "/v1/healthcheck" : {
813       "get" : {
814         "operationId" : "route113",
815         "produces" : [ "application/json" ],
816         "responses" : {
817           "200" : {
818             "description" : "Output type",
819             "schema" : {
820               "$ref" : "#/definitions/CldsHealthCheck"
821             }
822           }
823         },
824         "x-camelContextId" : "camel-3",
825         "x-routeId" : "route113"
826       }
827     },
828     "/v1/user/getUser" : {
829       "get" : {
830         "operationId" : "route114",
831         "produces" : [ "text/plain" ],
832         "responses" : {
833           "200" : { }
834         },
835         "x-camelContextId" : "camel-3",
836         "x-routeId" : "route114"
837       }
838     }
839   },
840   "definitions" : {
841     "ClampInformation" : {
842       "type" : "object",
843       "properties" : {
844         "userName" : {
845           "type" : "string"
846         },
847         "cldsVersion" : {
848           "type" : "string"
849         },
850         "allPermissions" : {
851           "type" : "array",
852           "items" : {
853             "type" : "string"
854           }
855         }
856       },
857       "x-className" : {
858         "type" : "string",
859         "format" : "org.onap.clamp.clds.model.ClampInformation"
860       }
861     },
862     "Dictionary" : {
863       "type" : "object",
864       "properties" : {
865         "createdDate" : {
866           "type" : "integer",
867           "format" : "int64"
868         },
869         "updatedDate" : {
870           "type" : "integer",
871           "format" : "int64"
872         },
873         "updatedBy" : {
874           "type" : "string"
875         },
876         "createdBy" : {
877           "type" : "string"
878         },
879         "name" : {
880           "type" : "string"
881         },
882         "secondLevelDictionary" : {
883           "type" : "integer",
884           "format" : "int32"
885         },
886         "subDictionaryType" : {
887           "type" : "string"
888         },
889         "dictionaryElements" : {
890           "type" : "array",
891           "uniqueItems" : true,
892           "items" : {
893             "$ref" : "#/definitions/DictionaryElement"
894           }
895         }
896       },
897       "x-className" : {
898         "type" : "string",
899         "format" : "org.onap.clamp.tosca.Dictionary"
900       }
901     },
902     "DictionaryElement" : {
903       "type" : "object",
904       "properties" : {
905         "createdDate" : {
906           "type" : "integer",
907           "format" : "int64"
908         },
909         "updatedDate" : {
910           "type" : "integer",
911           "format" : "int64"
912         },
913         "updatedBy" : {
914           "type" : "string"
915         },
916         "createdBy" : {
917           "type" : "string"
918         },
919         "shortName" : {
920           "type" : "string"
921         },
922         "name" : {
923           "type" : "string"
924         },
925         "description" : {
926           "type" : "string"
927         },
928         "type" : {
929           "type" : "string"
930         },
931         "subDictionary" : {
932           "type" : "string"
933         },
934         "usedByDictionaries" : {
935           "type" : "array",
936           "uniqueItems" : true,
937           "items" : {
938             "$ref" : "#/definitions/Dictionary"
939           }
940         }
941       }
942     },
943     "Loop" : {
944       "type" : "object",
945       "properties" : {
946         "createdDate" : {
947           "type" : "integer",
948           "format" : "int64"
949         },
950         "updatedDate" : {
951           "type" : "integer",
952           "format" : "int64"
953         },
954         "updatedBy" : {
955           "type" : "string"
956         },
957         "createdBy" : {
958           "type" : "string"
959         },
960         "name" : {
961           "type" : "string"
962         },
963         "dcaeDeploymentId" : {
964           "type" : "string"
965         },
966         "dcaeDeploymentStatusUrl" : {
967           "type" : "string"
968         },
969         "svgRepresentation" : {
970           "type" : "string"
971         },
972         "globalPropertiesJson" : {
973           "$ref" : "#/definitions/JsonObject"
974         },
975         "modelService" : {
976           "$ref" : "#/definitions/Service"
977         },
978         "lastComputedState" : {
979           "type" : "string",
980           "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ]
981         },
982         "components" : {
983           "type" : "object",
984           "additionalProperties" : {
985             "$ref" : "#/definitions/ExternalComponent"
986           }
987         },
988         "operationalPolicies" : {
989           "type" : "array",
990           "uniqueItems" : true,
991           "items" : {
992             "$ref" : "#/definitions/OperationalPolicy"
993           }
994         },
995         "microServicePolicies" : {
996           "type" : "array",
997           "uniqueItems" : true,
998           "items" : {
999             "$ref" : "#/definitions/MicroServicePolicy"
1000           }
1001         },
1002         "loopLogs" : {
1003           "type" : "array",
1004           "uniqueItems" : true,
1005           "items" : {
1006             "$ref" : "#/definitions/LoopLog"
1007           }
1008         },
1009         "loopTemplate" : {
1010           "$ref" : "#/definitions/LoopTemplate"
1011         }
1012       },
1013       "x-className" : {
1014         "type" : "string",
1015         "format" : "org.onap.clamp.loop.Loop"
1016       }
1017     },
1018     "JsonPrimitive" : {
1019       "type" : "object",
1020       "properties" : {
1021         "asBoolean" : {
1022           "type" : "boolean"
1023         },
1024         "number" : {
1025           "type" : "boolean"
1026         },
1027         "asString" : {
1028           "type" : "string"
1029         },
1030         "asLong" : {
1031           "type" : "integer",
1032           "format" : "int64"
1033         },
1034         "asInt" : {
1035           "type" : "integer",
1036           "format" : "int32"
1037         },
1038         "asByte" : {
1039           "type" : "string",
1040           "format" : "byte"
1041         },
1042         "asCharacter" : {
1043           "type" : "string"
1044         },
1045         "asBigDecimal" : {
1046           "type" : "number"
1047         },
1048         "asBigInteger" : {
1049           "type" : "integer"
1050         },
1051         "asShort" : {
1052           "type" : "integer",
1053           "format" : "int32"
1054         },
1055         "asNumber" : {
1056           "$ref" : "#/definitions/Number"
1057         },
1058         "asDouble" : {
1059           "type" : "number",
1060           "format" : "double"
1061         },
1062         "asFloat" : {
1063           "type" : "number",
1064           "format" : "float"
1065         },
1066         "boolean" : {
1067           "type" : "boolean"
1068         },
1069         "string" : {
1070           "type" : "boolean"
1071         },
1072         "asJsonArray" : {
1073           "$ref" : "#/definitions/JsonArray"
1074         },
1075         "asJsonObject" : {
1076           "$ref" : "#/definitions/JsonObject"
1077         },
1078         "jsonArray" : {
1079           "type" : "boolean"
1080         },
1081         "jsonObject" : {
1082           "type" : "boolean"
1083         },
1084         "jsonPrimitive" : {
1085           "type" : "boolean"
1086         },
1087         "jsonNull" : {
1088           "type" : "boolean"
1089         },
1090         "asJsonPrimitive" : {
1091           "$ref" : "#/definitions/JsonPrimitive"
1092         },
1093         "asJsonNull" : {
1094           "$ref" : "#/definitions/JsonNull"
1095         }
1096       }
1097     },
1098     "MicroServicePolicy" : {
1099       "type" : "object",
1100       "properties" : {
1101         "createdDate" : {
1102           "type" : "integer",
1103           "format" : "int64"
1104         },
1105         "updatedDate" : {
1106           "type" : "integer",
1107           "format" : "int64"
1108         },
1109         "updatedBy" : {
1110           "type" : "string"
1111         },
1112         "createdBy" : {
1113           "type" : "string"
1114         },
1115         "jsonRepresentation" : {
1116           "$ref" : "#/definitions/JsonObject"
1117         },
1118         "configurationsJson" : {
1119           "$ref" : "#/definitions/JsonObject"
1120         },
1121         "loopElementModel" : {
1122           "$ref" : "#/definitions/LoopElementModel"
1123         },
1124         "pdpGroup" : {
1125           "type" : "string"
1126         },
1127         "pdpSubgroup" : {
1128           "type" : "string"
1129         },
1130         "policyModel" : {
1131           "$ref" : "#/definitions/PolicyModel"
1132         },
1133         "name" : {
1134           "type" : "string"
1135         },
1136         "context" : {
1137           "type" : "string"
1138         },
1139         "deviceTypeScope" : {
1140           "type" : "string"
1141         },
1142         "shared" : {
1143           "type" : "boolean"
1144         },
1145         "usedByLoops" : {
1146           "type" : "array",
1147           "uniqueItems" : true,
1148           "items" : {
1149             "$ref" : "#/definitions/Loop"
1150           }
1151         },
1152         "dcaeDeploymentId" : {
1153           "type" : "string"
1154         },
1155         "dcaeDeploymentStatusUrl" : {
1156           "type" : "string"
1157         },
1158         "dcaeBlueprintId" : {
1159           "type" : "string"
1160         }
1161       },
1162       "x-className" : {
1163         "type" : "string",
1164         "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy"
1165       }
1166     },
1167     "JsonObject" : {
1168       "type" : "object",
1169       "properties" : {
1170         "asBoolean" : {
1171           "type" : "boolean"
1172         },
1173         "asJsonArray" : {
1174           "$ref" : "#/definitions/JsonArray"
1175         },
1176         "asJsonObject" : {
1177           "$ref" : "#/definitions/JsonObject"
1178         },
1179         "asString" : {
1180           "type" : "string"
1181         },
1182         "asLong" : {
1183           "type" : "integer",
1184           "format" : "int64"
1185         },
1186         "asInt" : {
1187           "type" : "integer",
1188           "format" : "int32"
1189         },
1190         "asByte" : {
1191           "type" : "string",
1192           "format" : "byte"
1193         },
1194         "asCharacter" : {
1195           "type" : "string"
1196         },
1197         "asBigDecimal" : {
1198           "type" : "number"
1199         },
1200         "asBigInteger" : {
1201           "type" : "integer"
1202         },
1203         "asShort" : {
1204           "type" : "integer",
1205           "format" : "int32"
1206         },
1207         "jsonArray" : {
1208           "type" : "boolean"
1209         },
1210         "jsonObject" : {
1211           "type" : "boolean"
1212         },
1213         "jsonPrimitive" : {
1214           "type" : "boolean"
1215         },
1216         "jsonNull" : {
1217           "type" : "boolean"
1218         },
1219         "asJsonPrimitive" : {
1220           "$ref" : "#/definitions/JsonPrimitive"
1221         },
1222         "asJsonNull" : {
1223           "$ref" : "#/definitions/JsonNull"
1224         },
1225         "asNumber" : {
1226           "$ref" : "#/definitions/Number"
1227         },
1228         "asDouble" : {
1229           "type" : "number",
1230           "format" : "double"
1231         },
1232         "asFloat" : {
1233           "type" : "number",
1234           "format" : "float"
1235         }
1236       },
1237       "x-className" : {
1238         "type" : "string",
1239         "format" : "com.google.gson.JsonObject"
1240       }
1241     },
1242     "PolicyModel" : {
1243       "type" : "object",
1244       "properties" : {
1245         "createdDate" : {
1246           "type" : "integer",
1247           "format" : "int64"
1248         },
1249         "updatedDate" : {
1250           "type" : "integer",
1251           "format" : "int64"
1252         },
1253         "updatedBy" : {
1254           "type" : "string"
1255         },
1256         "createdBy" : {
1257           "type" : "string"
1258         },
1259         "policyModelType" : {
1260           "type" : "string"
1261         },
1262         "version" : {
1263           "type" : "string"
1264         },
1265         "policyModelTosca" : {
1266           "type" : "string"
1267         },
1268         "policyAcronym" : {
1269           "type" : "string"
1270         },
1271         "usedByElementModels" : {
1272           "type" : "array",
1273           "uniqueItems" : true,
1274           "items" : {
1275             "$ref" : "#/definitions/LoopElementModel"
1276           }
1277         },
1278         "policyPdpGroup" : {
1279           "$ref" : "#/definitions/JsonObject"
1280         }
1281       },
1282       "x-className" : {
1283         "type" : "string",
1284         "format" : "org.onap.clamp.loop.template.PolicyModel"
1285       }
1286     },
1287     "Service" : {
1288       "type" : "object",
1289       "properties" : {
1290         "serviceUuid" : {
1291           "type" : "string"
1292         },
1293         "name" : {
1294           "type" : "string"
1295         },
1296         "version" : {
1297           "type" : "string"
1298         },
1299         "serviceDetails" : {
1300           "$ref" : "#/definitions/JsonObject"
1301         },
1302         "resourceDetails" : {
1303           "$ref" : "#/definitions/JsonObject"
1304         }
1305       }
1306     },
1307     "LoopTemplateLoopElementModel" : {
1308       "type" : "object",
1309       "properties" : {
1310         "loopTemplate" : {
1311           "$ref" : "#/definitions/LoopTemplate"
1312         },
1313         "loopElementModel" : {
1314           "$ref" : "#/definitions/LoopElementModel"
1315         },
1316         "flowOrder" : {
1317           "type" : "integer",
1318           "format" : "int32"
1319         }
1320       }
1321     },
1322     "OperationalPolicy" : {
1323       "type" : "object",
1324       "properties" : {
1325         "createdDate" : {
1326           "type" : "integer",
1327           "format" : "int64"
1328         },
1329         "updatedDate" : {
1330           "type" : "integer",
1331           "format" : "int64"
1332         },
1333         "updatedBy" : {
1334           "type" : "string"
1335         },
1336         "createdBy" : {
1337           "type" : "string"
1338         },
1339         "jsonRepresentation" : {
1340           "$ref" : "#/definitions/JsonObject"
1341         },
1342         "configurationsJson" : {
1343           "$ref" : "#/definitions/JsonObject"
1344         },
1345         "loopElementModel" : {
1346           "$ref" : "#/definitions/LoopElementModel"
1347         },
1348         "pdpGroup" : {
1349           "type" : "string"
1350         },
1351         "pdpSubgroup" : {
1352           "type" : "string"
1353         },
1354         "policyModel" : {
1355           "$ref" : "#/definitions/PolicyModel"
1356         },
1357         "name" : {
1358           "type" : "string"
1359         },
1360         "loop" : {
1361           "$ref" : "#/definitions/Loop"
1362         },
1363         "legacy" : {
1364           "type" : "boolean"
1365         }
1366       }
1367     },
1368     "JsonNull" : {
1369       "type" : "object",
1370       "properties" : {
1371         "asBoolean" : {
1372           "type" : "boolean"
1373         },
1374         "asJsonArray" : {
1375           "$ref" : "#/definitions/JsonArray"
1376         },
1377         "asJsonObject" : {
1378           "$ref" : "#/definitions/JsonObject"
1379         },
1380         "asString" : {
1381           "type" : "string"
1382         },
1383         "asLong" : {
1384           "type" : "integer",
1385           "format" : "int64"
1386         },
1387         "asInt" : {
1388           "type" : "integer",
1389           "format" : "int32"
1390         },
1391         "asByte" : {
1392           "type" : "string",
1393           "format" : "byte"
1394         },
1395         "asCharacter" : {
1396           "type" : "string"
1397         },
1398         "asBigDecimal" : {
1399           "type" : "number"
1400         },
1401         "asBigInteger" : {
1402           "type" : "integer"
1403         },
1404         "asShort" : {
1405           "type" : "integer",
1406           "format" : "int32"
1407         },
1408         "jsonArray" : {
1409           "type" : "boolean"
1410         },
1411         "jsonObject" : {
1412           "type" : "boolean"
1413         },
1414         "jsonPrimitive" : {
1415           "type" : "boolean"
1416         },
1417         "jsonNull" : {
1418           "type" : "boolean"
1419         },
1420         "asJsonPrimitive" : {
1421           "$ref" : "#/definitions/JsonPrimitive"
1422         },
1423         "asJsonNull" : {
1424           "$ref" : "#/definitions/JsonNull"
1425         },
1426         "asNumber" : {
1427           "$ref" : "#/definitions/Number"
1428         },
1429         "asDouble" : {
1430           "type" : "number",
1431           "format" : "double"
1432         },
1433         "asFloat" : {
1434           "type" : "number",
1435           "format" : "float"
1436         }
1437       }
1438     },
1439     "JsonArray" : {
1440       "type" : "object",
1441       "properties" : {
1442         "asBoolean" : {
1443           "type" : "boolean"
1444         },
1445         "asString" : {
1446           "type" : "string"
1447         },
1448         "asLong" : {
1449           "type" : "integer",
1450           "format" : "int64"
1451         },
1452         "asInt" : {
1453           "type" : "integer",
1454           "format" : "int32"
1455         },
1456         "asByte" : {
1457           "type" : "string",
1458           "format" : "byte"
1459         },
1460         "asCharacter" : {
1461           "type" : "string"
1462         },
1463         "asBigDecimal" : {
1464           "type" : "number"
1465         },
1466         "asBigInteger" : {
1467           "type" : "integer"
1468         },
1469         "asShort" : {
1470           "type" : "integer",
1471           "format" : "int32"
1472         },
1473         "asNumber" : {
1474           "$ref" : "#/definitions/Number"
1475         },
1476         "asDouble" : {
1477           "type" : "number",
1478           "format" : "double"
1479         },
1480         "asFloat" : {
1481           "type" : "number",
1482           "format" : "float"
1483         },
1484         "asJsonArray" : {
1485           "$ref" : "#/definitions/JsonArray"
1486         },
1487         "asJsonObject" : {
1488           "$ref" : "#/definitions/JsonObject"
1489         },
1490         "jsonArray" : {
1491           "type" : "boolean"
1492         },
1493         "jsonObject" : {
1494           "type" : "boolean"
1495         },
1496         "jsonPrimitive" : {
1497           "type" : "boolean"
1498         },
1499         "jsonNull" : {
1500           "type" : "boolean"
1501         },
1502         "asJsonPrimitive" : {
1503           "$ref" : "#/definitions/JsonPrimitive"
1504         },
1505         "asJsonNull" : {
1506           "$ref" : "#/definitions/JsonNull"
1507         }
1508       },
1509       "x-className" : {
1510         "type" : "string",
1511         "format" : "com.google.gson.JsonArray"
1512       }
1513     },
1514     "LoopLog" : {
1515       "type" : "object",
1516       "properties" : {
1517         "id" : {
1518           "type" : "integer",
1519           "format" : "int64"
1520         },
1521         "logType" : {
1522           "type" : "string",
1523           "enum" : [ "INFO", "WARNING", "ERROR" ]
1524         },
1525         "logComponent" : {
1526           "type" : "string"
1527         },
1528         "message" : {
1529           "type" : "string"
1530         },
1531         "loop" : {
1532           "$ref" : "#/definitions/Loop"
1533         },
1534         "logInstant" : {
1535           "type" : "integer",
1536           "format" : "int64"
1537         }
1538       }
1539     },
1540     "Number" : {
1541       "type" : "object"
1542     },
1543     "ExternalComponent" : {
1544       "type" : "object",
1545       "properties" : {
1546         "state" : {
1547           "$ref" : "#/definitions/ExternalComponentState"
1548         },
1549         "componentName" : {
1550           "type" : "string"
1551         }
1552       }
1553     },
1554     "LoopTemplate" : {
1555       "type" : "object",
1556       "properties" : {
1557         "createdDate" : {
1558           "type" : "integer",
1559           "format" : "int64"
1560         },
1561         "updatedDate" : {
1562           "type" : "integer",
1563           "format" : "int64"
1564         },
1565         "updatedBy" : {
1566           "type" : "string"
1567         },
1568         "createdBy" : {
1569           "type" : "string"
1570         },
1571         "name" : {
1572           "type" : "string"
1573         },
1574         "dcaeBlueprintId" : {
1575           "type" : "string"
1576         },
1577         "blueprint" : {
1578           "type" : "string"
1579         },
1580         "svgRepresentation" : {
1581           "type" : "string"
1582         },
1583         "loopElementModelsUsed" : {
1584           "type" : "array",
1585           "uniqueItems" : true,
1586           "items" : {
1587             "$ref" : "#/definitions/LoopTemplateLoopElementModel"
1588           }
1589         },
1590         "modelService" : {
1591           "$ref" : "#/definitions/Service"
1592         },
1593         "maximumInstancesAllowed" : {
1594           "type" : "integer",
1595           "format" : "int32"
1596         },
1597         "uniqueBlueprint" : {
1598           "type" : "boolean"
1599         },
1600         "allowedLoopType" : {
1601           "type" : "string",
1602           "enum" : [ "OPEN", "CLOSED", "HYBRID" ]
1603         }
1604       },
1605       "x-className" : {
1606         "type" : "string",
1607         "format" : "org.onap.clamp.loop.template.LoopTemplate"
1608       }
1609     },
1610     "ExternalComponentState" : {
1611       "type" : "object",
1612       "properties" : {
1613         "stateName" : {
1614           "type" : "string"
1615         },
1616         "description" : {
1617           "type" : "string"
1618         },
1619         "level" : {
1620           "type" : "integer",
1621           "format" : "int32"
1622         }
1623       }
1624     },
1625     "LoopElementModel" : {
1626       "type" : "object",
1627       "properties" : {
1628         "createdDate" : {
1629           "type" : "integer",
1630           "format" : "int64"
1631         },
1632         "updatedDate" : {
1633           "type" : "integer",
1634           "format" : "int64"
1635         },
1636         "updatedBy" : {
1637           "type" : "string"
1638         },
1639         "createdBy" : {
1640           "type" : "string"
1641         },
1642         "name" : {
1643           "type" : "string"
1644         },
1645         "dcaeBlueprintId" : {
1646           "type" : "string"
1647         },
1648         "blueprint" : {
1649           "type" : "string"
1650         },
1651         "loopElementType" : {
1652           "type" : "string"
1653         },
1654         "shortName" : {
1655           "type" : "string"
1656         },
1657         "policyModels" : {
1658           "type" : "array",
1659           "uniqueItems" : true,
1660           "items" : {
1661             "$ref" : "#/definitions/PolicyModel"
1662           }
1663         },
1664         "usedByLoopTemplates" : {
1665           "type" : "array",
1666           "uniqueItems" : true,
1667           "items" : {
1668             "$ref" : "#/definitions/LoopTemplateLoopElementModel"
1669           }
1670         }
1671       }
1672     },
1673     "CldsHealthCheck" : {
1674       "type" : "object",
1675       "properties" : {
1676         "healthCheckComponent" : {
1677           "type" : "string"
1678         },
1679         "healthCheckStatus" : {
1680           "type" : "string"
1681         },
1682         "description" : {
1683           "type" : "string"
1684         }
1685       },
1686       "x-className" : {
1687         "type" : "string",
1688         "format" : "org.onap.clamp.clds.model.CldsHealthCheck"
1689       }
1690     }
1691   }
1692 }