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