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