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