CDS attributes are not shown properly in UI
[clamp.git] / src / test / resources / tosca / new-converter / tosca_apex_with_metadata.json
1 {
2   "title": "onap.policies.controlloop.operational.common.Apex",
3   "type": "object",
4   "description": "Operational policies for Apex PDP",
5   "required": [
6     "abatement",
7     "operations",
8     "trigger",
9     "timeout",
10     "id",
11     "engineServiceParameters",
12     "eventOutputParameters",
13     "eventInputParameters"
14   ],
15   "properties": {
16     "abatement": {
17       "type": "boolean",
18       "description": "Whether an abatement event message will be expected for the control loop from DCAE.",
19       "default": "false"
20     },
21     "operations": {
22       "type": "array",
23       "description": "List of operations to be performed when Control Loop is triggered.",
24       "items": {
25         "title": "onap.datatype.controlloop.Operation",
26         "type": "object",
27         "description": "An operation supported by an actor",
28         "required": [
29           "id",
30           "operation",
31           "retries",
32           "timeout"
33         ],
34         "properties": {
35           "failure_retries": {
36             "type": "string",
37             "description": "Points to the operation to invoke when the current operation has exceeded its max retries.",
38             "default": "final_failure_retries"
39           },
40           "id": {
41             "type": "string",
42             "description": "Unique identifier for the operation"
43           },
44           "failure_timeout": {
45             "type": "string",
46             "description": "Points to the operation to invoke when the time out for the operation occurs.",
47             "default": "final_failure_timeout"
48           },
49           "failure": {
50             "type": "string",
51             "description": "Points to the operation to invoke on Actor operation failure.",
52             "default": "final_failure"
53           },
54           "operation": {
55             "title": "onap.datatype.controlloop.Actor",
56             "type": "object",
57             "description": "An actor/operation/target definition",
58             "required": [
59               "target",
60               "actor",
61               "operation"
62             ],
63             "properties": {
64               "payload": {
65                 "type": "object",
66                 "description": "Name/value pairs of payload information passed by Policy to the actor",
67                 "anyOf": [
68                   {
69                     "title": "User defined",
70                     "properties": {}
71                   },
72                   {
73                     "title": "resource-assignment",
74                     "properties": {
75                       "artifact_name": {
76                         "title": "artifact name",
77                         "type": "string",
78                         "default": "baseconfiguration",
79                         "readOnly": "True"
80                       },
81                       "artifact_version": {
82                         "title": "artifact version",
83                         "type": "string",
84                         "default": "1.0.0",
85                         "readOnly": "True"
86                       },
87                       "mode": {
88                         "title": "mode",
89                         "type": "string",
90                         "default": "async",
91                         "format": "textarea"
92                       },
93                       "data": {
94                         "title": "data",
95                         "properties": {
96                           "resource-assignment-properties": {
97                             "title": "resource-assignment-properties",
98                             "type": "object",
99                             "properties": {
100                               "request-id": {
101                                 "title": "request-id",
102                                 "type": "string",
103                                 "format": "textarea"
104                               },
105                               "service-instance-id": {
106                                 "title": "service-instance-id",
107                                 "type": "string",
108                                 "format": "textarea"
109                               },
110                               "vnf-id": {
111                                 "title": "vnf-id",
112                                 "type": "string",
113                                 "format": "textarea"
114                               },
115                               "action-name": {
116                                 "title": "action-name",
117                                 "type": "string",
118                                 "format": "textarea"
119                               },
120                               "scope-type": {
121                                 "title": "scope-type",
122                                 "type": "string",
123                                 "format": "textarea"
124                               },
125                               "hostname": {
126                                 "title": "hostname",
127                                 "type": "string",
128                                 "format": "textarea"
129                               },
130                               "vnf_name": {
131                                 "title": "vnf_name",
132                                 "type": "string",
133                                 "format": "textarea"
134                               }
135                             }
136                           }
137                         }
138                       }
139                     }
140                   },
141                   {
142                     "title": "activate",
143                     "properties": {
144                       "artifact_name": {
145                         "title": "artifact name",
146                         "type": "string",
147                         "default": "baseconfiguration",
148                         "readOnly": "True"
149                       },
150                       "artifact_version": {
151                         "title": "artifact version",
152                         "type": "string",
153                         "default": "1.0.0",
154                         "readOnly": "True"
155                       },
156                       "mode": {
157                         "title": "mode",
158                         "type": "string",
159                         "default": "async",
160                         "format": "textarea"
161                       },
162                       "data": {
163                         "title": "data",
164                         "properties": {
165                           "resource-assignment-properties": {
166                             "title": "resource-assignment-properties",
167                             "type": "object",
168                             "properties": {
169                               "request-id": {
170                                 "title": "request-id",
171                                 "type": "string",
172                                 "format": "textarea"
173                               },
174                               "service-instance-id": {
175                                 "title": "service-instance-id",
176                                 "type": "string",
177                                 "format": "textarea"
178                               },
179                               "vnf-id": {
180                                 "title": "vnf-id",
181                                 "type": "string",
182                                 "format": "textarea"
183                               },
184                               "action-name": {
185                                 "title": "action-name",
186                                 "type": "string",
187                                 "format": "textarea"
188                               },
189                               "scope-type": {
190                                 "title": "scope-type",
191                                 "type": "string",
192                                 "format": "textarea"
193                               },
194                               "hostname": {
195                                 "title": "hostname",
196                                 "type": "string",
197                                 "format": "textarea"
198                               },
199                               "vnf_name": {
200                                 "title": "vnf_name",
201                                 "type": "string",
202                                 "format": "textarea"
203                               }
204                             }
205                           }
206                         }
207                       }
208                     }
209                   },
210                   {
211                     "title": "activate-restconf",
212                     "properties": {
213                       "artifact_name": {
214                         "title": "artifact name",
215                         "type": "string",
216                         "default": "baseconfiguration",
217                         "readOnly": "True"
218                       },
219                       "artifact_version": {
220                         "title": "artifact version",
221                         "type": "string",
222                         "default": "1.0.0",
223                         "readOnly": "True"
224                       },
225                       "mode": {
226                         "title": "mode",
227                         "type": "string",
228                         "default": "async",
229                         "format": "textarea"
230                       },
231                       "data": {
232                         "title": "data",
233                         "properties": {
234                           "resource-assignment-properties": {
235                             "title": "resource-assignment-properties",
236                             "type": "object",
237                             "properties": {
238                               "request-id": {
239                                 "title": "request-id",
240                                 "type": "string",
241                                 "format": "textarea"
242                               },
243                               "service-instance-id": {
244                                 "title": "service-instance-id",
245                                 "type": "string",
246                                 "format": "textarea"
247                               },
248                               "vnf-id": {
249                                 "title": "vnf-id",
250                                 "type": "string",
251                                 "format": "textarea"
252                               },
253                               "action-name": {
254                                 "title": "action-name",
255                                 "type": "string",
256                                 "format": "textarea"
257                               },
258                               "scope-type": {
259                                 "title": "scope-type",
260                                 "type": "string",
261                                 "format": "textarea"
262                               },
263                               "hostname": {
264                                 "title": "hostname",
265                                 "type": "string",
266                                 "format": "textarea"
267                               },
268                               "vnf_name": {
269                                 "title": "vnf_name",
270                                 "type": "string",
271                                 "format": "textarea"
272                               }
273                             }
274                           }
275                         }
276                       }
277                     }
278                   },
279                   {
280                     "title": "activate-cli",
281                     "properties": {
282                       "artifact_name": {
283                         "title": "artifact name",
284                         "type": "string",
285                         "default": "baseconfiguration",
286                         "readOnly": "True"
287                       },
288                       "artifact_version": {
289                         "title": "artifact version",
290                         "type": "string",
291                         "default": "1.0.0",
292                         "readOnly": "True"
293                       },
294                       "mode": {
295                         "title": "mode",
296                         "type": "string",
297                         "default": "async",
298                         "format": "textarea"
299                       },
300                       "data": {
301                         "title": "data",
302                         "properties": {
303                           "resource-assignment-properties": {
304                             "title": "resource-assignment-properties",
305                             "type": "object",
306                             "properties": {
307                               "request-id": {
308                                 "title": "request-id",
309                                 "type": "string",
310                                 "format": "textarea"
311                               },
312                               "service-instance-id": {
313                                 "title": "service-instance-id",
314                                 "type": "string",
315                                 "format": "textarea"
316                               },
317                               "vnf-id": {
318                                 "title": "vnf-id",
319                                 "type": "string",
320                                 "format": "textarea"
321                               },
322                               "action-name": {
323                                 "title": "action-name",
324                                 "type": "string",
325                                 "format": "textarea"
326                               },
327                               "scope-type": {
328                                 "title": "scope-type",
329                                 "type": "string",
330                                 "format": "textarea"
331                               },
332                               "hostname": {
333                                 "title": "hostname",
334                                 "type": "string",
335                                 "format": "textarea"
336                               },
337                               "vnf_name": {
338                                 "title": "vnf_name",
339                                 "type": "string",
340                                 "format": "textarea"
341                               }
342                             }
343                           }
344                         }
345                       }
346                     }
347                   },
348                   {
349                     "title": "assign-activate",
350                     "properties": {
351                       "artifact_name": {
352                         "title": "artifact name",
353                         "type": "string",
354                         "default": "baseconfiguration",
355                         "readOnly": "True"
356                       },
357                       "artifact_version": {
358                         "title": "artifact version",
359                         "type": "string",
360                         "default": "1.0.0",
361                         "readOnly": "True"
362                       },
363                       "mode": {
364                         "title": "mode",
365                         "type": "string",
366                         "default": "async",
367                         "format": "textarea"
368                       },
369                       "data": {
370                         "title": "data",
371                         "properties": {
372                           "resource-assignment-properties": {
373                             "title": "resource-assignment-properties",
374                             "type": "object",
375                             "properties": {
376                               "request-id": {
377                                 "title": "request-id",
378                                 "type": "string",
379                                 "format": "textarea"
380                               },
381                               "service-instance-id": {
382                                 "title": "service-instance-id",
383                                 "type": "string",
384                                 "format": "textarea"
385                               },
386                               "vnf-id": {
387                                 "title": "vnf-id",
388                                 "type": "string",
389                                 "format": "textarea"
390                               },
391                               "action-name": {
392                                 "title": "action-name",
393                                 "type": "string",
394                                 "format": "textarea"
395                               },
396                               "scope-type": {
397                                 "title": "scope-type",
398                                 "type": "string",
399                                 "format": "textarea"
400                               },
401                               "hostname": {
402                                 "title": "hostname",
403                                 "type": "string",
404                                 "format": "textarea"
405                               },
406                               "vnf_name": {
407                                 "title": "vnf_name",
408                                 "type": "string",
409                                 "format": "textarea"
410                               }
411                             }
412                           }
413                         }
414                       }
415                     }
416                   },
417                   {
418                     "title": "imperative-test-wf",
419                     "properties": {
420                       "artifact_name": {
421                         "title": "artifact name",
422                         "type": "string",
423                         "default": "baseconfiguration",
424                         "readOnly": "True"
425                       },
426                       "artifact_version": {
427                         "title": "artifact version",
428                         "type": "string",
429                         "default": "1.0.0",
430                         "readOnly": "True"
431                       },
432                       "mode": {
433                         "title": "mode",
434                         "type": "string",
435                         "default": "async",
436                         "format": "textarea"
437                       },
438                       "data": {
439                         "title": "data",
440                         "properties": {
441                           "resource-assignment-properties": {
442                             "title": "resource-assignment-properties",
443                             "type": "object",
444                             "properties": {
445                               "request-id": {
446                                 "title": "request-id",
447                                 "type": "string",
448                                 "format": "textarea"
449                               },
450                               "service-instance-id": {
451                                 "title": "service-instance-id",
452                                 "type": "string",
453                                 "format": "textarea"
454                               },
455                               "vnf-id": {
456                                 "title": "vnf-id",
457                                 "type": "string",
458                                 "format": "textarea"
459                               },
460                               "action-name": {
461                                 "title": "action-name",
462                                 "type": "string",
463                                 "format": "textarea"
464                               },
465                               "scope-type": {
466                                 "title": "scope-type",
467                                 "type": "string",
468                                 "format": "textarea"
469                               },
470                               "hostname": {
471                                 "title": "hostname",
472                                 "type": "string",
473                                 "format": "textarea"
474                               },
475                               "vnf_name": {
476                                 "title": "vnf_name",
477                                 "type": "string",
478                                 "format": "textarea"
479                               }
480                             }
481                           }
482                         }
483                       }
484                     }
485                   }
486                 ]
487               },
488               "target": {
489                 "title": "onap.datatype.controlloop.Target",
490                 "type": "object",
491                 "description": "Definition for a entity in A&AI to perform a control loop operation on",
492                 "required": [
493                   "targetType"
494                 ],
495                 "properties": {
496                   "entityIds": {
497                     "type": "object",
498                     "description": "Map of values that identify the resource. If none are provided, it is assumed that the\nentity that generated the ONSET event will be the target.\n",
499                     "anyOf": [
500                       {
501                         "title": "VNF-vLoadBalancerMS 0",
502                         "properties": {
503                           "resourceID": {
504                             "title": "Resource ID",
505                             "type": "string",
506                             "default": "vLoadBalancerMS",
507                             "readOnly": "True"
508                           }
509                         }
510                       },
511                       {
512                         "title": "VFMODULE-Vloadbalancerms..vpkg..module-1",
513                         "properties": {
514                           "resourceID": {
515                             "title": "Resource ID",
516                             "type": "string",
517                             "default": "Vloadbalancerms..vpkg..module-1",
518                             "readOnly": "True"
519                           },
520                           "modelInvariantId": {
521                             "title": "Model Invariant Id (ModelInvariantUUID)",
522                             "type": "string",
523                             "default": "ca052563-eb92-4b5b-ad41-9111768ce043",
524                             "readOnly": "True"
525                           },
526                           "modelVersionId": {
527                             "title": "Model Version Id (ModelUUID)",
528                             "type": "string",
529                             "default": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
530                             "readOnly": "True"
531                           },
532                           "modelName": {
533                             "title": "Model Name",
534                             "type": "string",
535                             "default": "Vloadbalancerms..vpkg..module-1",
536                             "readOnly": "True"
537                           },
538                           "modelVersion": {
539                             "title": "Model Version",
540                             "type": "string",
541                             "default": "1",
542                             "readOnly": "True"
543                           },
544                           "modelCustomizationId": {
545                             "title": "Customization ID",
546                             "type": "string",
547                             "default": "1bffdc31-a37d-4dee-b65c-dde623a76e52",
548                             "readOnly": "True"
549                           }
550                         }
551                       },
552                       {
553                         "title": "VFMODULE-Vloadbalancerms..vdns..module-3",
554                         "properties": {
555                           "resourceID": {
556                             "title": "Resource ID",
557                             "type": "string",
558                             "default": "Vloadbalancerms..vdns..module-3",
559                             "readOnly": "True"
560                           },
561                           "modelInvariantId": {
562                             "title": "Model Invariant Id (ModelInvariantUUID)",
563                             "type": "string",
564                             "default": "4c10ba9b-f88f-415e-9de3-5d33336047fa",
565                             "readOnly": "True"
566                           },
567                           "modelVersionId": {
568                             "title": "Model Version Id (ModelUUID)",
569                             "type": "string",
570                             "default": "4fa73b49-8a6c-493e-816b-eb401567b720",
571                             "readOnly": "True"
572                           },
573                           "modelName": {
574                             "title": "Model Name",
575                             "type": "string",
576                             "default": "Vloadbalancerms..vdns..module-3",
577                             "readOnly": "True"
578                           },
579                           "modelVersion": {
580                             "title": "Model Version",
581                             "type": "string",
582                             "default": "1",
583                             "readOnly": "True"
584                           },
585                           "modelCustomizationId": {
586                             "title": "Customization ID",
587                             "type": "string",
588                             "default": "bafcdab0-801d-4d81-9ead-f464640a38b1",
589                             "readOnly": "True"
590                           }
591                         }
592                       },
593                       {
594                         "title": "VFMODULE-Vloadbalancerms..base_template..module-0",
595                         "properties": {
596                           "resourceID": {
597                             "title": "Resource ID",
598                             "type": "string",
599                             "default": "Vloadbalancerms..base_template..module-0",
600                             "readOnly": "True"
601                           },
602                           "modelInvariantId": {
603                             "title": "Model Invariant Id (ModelInvariantUUID)",
604                             "type": "string",
605                             "default": "921f7c96-ebdd-42e6-81b9-1cfc0c9796f3",
606                             "readOnly": "True"
607                           },
608                           "modelVersionId": {
609                             "title": "Model Version Id (ModelUUID)",
610                             "type": "string",
611                             "default": "63734409-f745-4e4d-a38b-131638a0edce",
612                             "readOnly": "True"
613                           },
614                           "modelName": {
615                             "title": "Model Name",
616                             "type": "string",
617                             "default": "Vloadbalancerms..base_template..module-0",
618                             "readOnly": "True"
619                           },
620                           "modelVersion": {
621                             "title": "Model Version",
622                             "type": "string",
623                             "default": "1",
624                             "readOnly": "True"
625                           },
626                           "modelCustomizationId": {
627                             "title": "Customization ID",
628                             "type": "string",
629                             "default": "86baddea-c730-4fb8-9410-cd2e17fd7f27",
630                             "readOnly": "True"
631                           }
632                         }
633                       },
634                       {
635                         "title": "VFMODULE-Vloadbalancerms..vlb..module-2",
636                         "properties": {
637                           "resourceID": {
638                             "title": "Resource ID",
639                             "type": "string",
640                             "default": "Vloadbalancerms..vlb..module-2",
641                             "readOnly": "True"
642                           },
643                           "modelInvariantId": {
644                             "title": "Model Invariant Id (ModelInvariantUUID)",
645                             "type": "string",
646                             "default": "a772a1f4-0064-412c-833d-4749b15828dd",
647                             "readOnly": "True"
648                           },
649                           "modelVersionId": {
650                             "title": "Model Version Id (ModelUUID)",
651                             "type": "string",
652                             "default": "0f5c3f6a-650a-4303-abb6-fff3e573a07a",
653                             "readOnly": "True"
654                           },
655                           "modelName": {
656                             "title": "Model Name",
657                             "type": "string",
658                             "default": "Vloadbalancerms..vlb..module-2",
659                             "readOnly": "True"
660                           },
661                           "modelVersion": {
662                             "title": "Model Version",
663                             "type": "string",
664                             "default": "1",
665                             "readOnly": "True"
666                           },
667                           "modelCustomizationId": {
668                             "title": "Customization ID",
669                             "type": "string",
670                             "default": "96a78aad-4ffb-4ef0-9c4f-deb03bf1d806",
671                             "readOnly": "True"
672                           }
673                         }
674                       }
675                     ]
676                   },
677                   "targetType": {
678                     "type": "string",
679                     "description": "Category for the target type",
680                     "enum": [
681                       "VNF",
682                       "VM",
683                       "VFMODULE",
684                       "PNF"
685                     ]
686                   }
687                 }
688               },
689               "actor": {
690                 "type": "string",
691                 "description": "The actor performing the operation.",
692                 "enum": [
693                   "SDNR",
694                   "SDNC",
695                   "VFC",
696                   "SO",
697                   "APPC",
698                   "CDS"
699                 ],
700                 "options": {
701                   "enum_titles": [
702                     "SDNR",
703                     "SDNC",
704                     "VFC",
705                     "SO",
706                     "APPC"
707                   ]
708                 }
709               },
710               "operation": {
711                 "type": "string",
712                 "description": "The operation the actor is performing.",
713                 "enum": [
714                   "BandwidthOnDemand",
715                   "VF Module Delete",
716                   "Reroute",
717                   "VF Module Create",
718                   "ModifyConfig",
719                   "Rebuild",
720                   "Restart",
721                   "Migrate",
722                   "Health-Check",
723                   "resource-assignment",
724                   "activate",
725                   "activate-restconf",
726                   "activate-cli",
727                   "assign-activate",
728                   "imperative-test-wf"
729                 ],
730                 "options": {
731                   "enum_titles": [
732                     "BandwidthOnDemand (SDNC operation)",
733                     "VF Module Delete (SO operation)",
734                     "Reroute (SDNC operation)",
735                     "VF Module Create (SO operation)",
736                     "ModifyConfig (APPC/VFC operation)",
737                     "Rebuild (APPC operation)",
738                     "Restart (APPC operation)",
739                     "Migrate (APPC operation)",
740                     "Health-Check (APPC operation)",
741                     "resource-assignment (CDS operation)",
742                     "activate (CDS operation)",
743                     "activate-restconf (CDS operation)",
744                     "activate-cli (CDS operation)",
745                     "assign-activate (CDS operation)",
746                     "imperative-test-wf (CDS operation)"
747                   ]
748                 }
749               }
750             }
751           },
752           "failure_guard": {
753             "type": "string",
754             "description": "Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.",
755             "default": "final_failure_guard"
756           },
757           "retries": {
758             "type": "integer",
759             "description": "The number of retries the actor should attempt to perform the operation.",
760             "default": "0"
761           },
762           "timeout": {
763             "type": "integer",
764             "description": "The amount of time for the actor to perform the operation."
765           },
766           "failure_exception": {
767             "type": "string",
768             "description": "Points to the operation to invoke when the current operation causes an exception.",
769             "default": "final_failure_exception"
770           },
771           "description": {
772             "type": "string",
773             "description": "A user-friendly description of the intent for the operation"
774           },
775           "success": {
776             "type": "string",
777             "description": "Points to the operation to invoke on success. A value of \"final_success\" indicates and end to the operation.",
778             "default": "final_success"
779           }
780         }
781       },
782       "format": "tabs-top"
783     },
784     "trigger": {
785       "type": "string",
786       "description": "Initial operation to execute upon receiving an Onset event message for the Control Loop."
787     },
788     "timeout": {
789       "type": "integer",
790       "description": "Overall timeout for executing all the operations. This timeout should equal or exceed the total\ntimeout for each operation listed.\n"
791     },
792     "id": {
793       "type": "string",
794       "description": "The unique control loop id."
795     },
796     "engineServiceParameters": {
797       "type": "string",
798       "description": "The engine parameters like name, instanceCount, policy implementation, parameters etc."
799     },
800     "eventOutputParameters": {
801       "type": "string",
802       "description": "The event output parameters."
803     },
804     "javaProperties": {
805       "type": "string",
806       "description": "Name/value pairs of properties to be set for APEX if needed."
807     },
808     "eventInputParameters": {
809       "type": "string",
810       "description": "The event input parameters."
811     }
812   }
813 }