Add JSON type validation and enrichment
[ccsdk/cds.git] / components / model-catalog / definition-type / starter-type / node_type / component-netconf-executor.json
1 {\r
2   "description": "This is Netconf Transaction Configuration Component API",\r
3   "version": "1.0.0",\r
4   "capabilities": {\r
5     "component-node": {\r
6       "type": "tosca.capabilities.Node"\r
7     }\r
8   },\r
9   "requirements": {\r
10     "netconf-connection": {\r
11       "capability": "netconf",\r
12       "node": "vnf-netconf-device",\r
13       "relationship": "tosca.relationships.ConnectsTo"\r
14     }\r
15   },\r
16   "interfaces": {\r
17     "ComponentNetconfExecutor": {\r
18       "operations": {\r
19         "process": {\r
20           "inputs": {\r
21             "script-type": {\r
22               "description": "Script type, kotlin type is supported",\r
23               "required": true,\r
24               "type": "string",\r
25               "default": "internal",\r
26               "constraints": [\r
27                 {\r
28                   "valid_values": [\r
29                     "kotlin",\r
30                     "jython",\r
31                     "internal"\r
32                   ]\r
33                 }\r
34               ]\r
35             },\r
36             "dynamic-properties": {
37               "description": "Resolvable dynamic property.",
38               "required": false,
39               "type": "string"
40             },
41             "script-class-reference": {\r
42               "description": "Kotlin Script class name or jython script name.",\r
43               "required": true,\r
44               "type": "string"\r
45             },\r
46             "instance-dependencies": {\r
47               "required": true,\r
48               "description": "Instance names to inject to Jython or Kotlin Script.",\r
49               "type": "list",\r
50               "entry_schema": {\r
51                 "type": "string"\r
52               }\r
53             },\r
54             "dynamic-properties": {\r
55               "description": "Dynamic Json Content or DSL Json reference.",\r
56               "required": false,\r
57               "type": "json"\r
58             }\r
59           },\r
60           "outputs": {\r
61             "response-data": {\r
62               "description": "Execution Response Data in JSON format.",\r
63               "required": false,\r
64               "type": "string"\r
65             },\r
66             "status": {\r
67               "description": "Status of the Component Execution ( success or failure )",\r
68               "required": true,\r
69               "type": "string"\r
70             }\r
71           }\r
72         }\r
73       }\r
74     }\r
75   },\r
76   "derived_from": "tosca.nodes.Component"\r
77 }