Improve Remote Python Executor error handling and allow for structured response
[ccsdk/cds.git] / components / model-catalog / definition-type / starter-type / node_type / component-remote-python-executor.json
1 {
2   "description": "This is Remote Python Execution Component.",
3   "version": "1.0.0",
4   "attributes": {
5     "status": {
6       "required": true,
7       "type": "string"
8     },
9     "prepare-environment-logs": {
10       "required": false,
11       "type": "string"
12     },
13     "execute-command-logs": {
14       "required": false,
15       "type": "list",
16       "entry_schema": {
17         "type": "string"
18       }
19     },
20     "response-data": {
21       "required": false,
22       "type": "json"
23     }
24   },
25   "capabilities": {
26     "component-node": {
27       "type": "tosca.capabilities.Node"
28     }
29   },
30   "interfaces": {
31     "ComponentRemotePythonExecutor": {
32       "operations": {
33         "process": {
34           "inputs": {
35             "endpoint-selector": {
36               "description": "Remote Container or Server selector name.",
37               "required": false,
38               "type": "string",
39               "default": "remote-python"
40             },
41             "dynamic-properties": {
42               "description": "Dynamic Json Content or DSL Json reference.",
43               "required": false,
44               "type": "json"
45             },
46             "argument-properties": {
47               "description": "Argument Json Content or DSL Json reference.",
48               "required": false,
49               "type": "json"
50             },
51             "command": {
52               "description": "Command to execute.",
53               "required": true,
54               "type": "string"
55             },
56             "packages": {
57               "description": "Packages to install based on type.",
58               "required": false,
59               "type" : "list",
60               "entry_schema" : {
61                 "type" : "dt-system-packages"
62               }
63             }
64           }
65         }
66       }
67     }
68   },
69   "derived_from": "tosca.nodes.Component"
70 }