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