Improve Remote Python Executor error handling and allow for structured response
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / remote_scripts / Definitions / node_types.json
1 {
2   "node_types" : {
3     "component-remote-python-executor" : {
4       "description" : "This is Remote Python Execution Component.",
5       "version" : "1.0.0",
6       "attributes" : {
7         "prepare-environment-logs" : {
8           "required" : false,
9           "type" : "string"
10         },
11         "execute-command-logs": {
12           "required": false,
13           "type": "list",
14           "entry_schema": {
15             "type": "string"
16           }
17         },
18         "status": {
19           "required": true,
20           "type": "string"
21         },
22         "response-data": {
23           "required": false,
24           "type": "json"
25         }
26       },
27       "capabilities" : {
28         "component-node" : {
29           "type" : "tosca.capabilities.Node"
30         }
31       },
32       "interfaces" : {
33         "ComponentRemotePythonExecutor" : {
34           "operations" : {
35             "process" : {
36               "inputs" : {
37                 "endpoint-selector" : {
38                   "description" : "Remote Container or Server selector name.",
39                   "required" : false,
40                   "type" : "string",
41                   "default" : "remote-python"
42                 },
43                 "dynamic-properties" : {
44                   "description" : "Dynamic Json Content or DSL Json reference.",
45                   "required" : false,
46                   "type" : "json"
47                 },
48                 "argument-properties" : {
49                   "description" : "Argument Json Content or DSL Json reference.",
50                   "required" : false,
51                   "type" : "json"
52                 },
53                 "command" : {
54                   "description" : "Command to execute.",
55                   "required" : true,
56                   "type" : "string"
57                 },
58                 "packages" : {
59                   "description" : "Packages to install based on type.",
60                   "required" : false,
61                   "type" : "list",
62                   "entry_schema" : {
63                     "type" : "dt-system-packages"
64                   }
65                 }
66               }
67             }
68           }
69         }
70       },
71       "derived_from" : "tosca.nodes.Component"
72     },
73     "component-resource-resolution" : {
74       "description" : "This is Resource Assignment Component API",
75       "version" : "1.0.0",
76       "attributes" : {
77         "assignment-params" : {
78           "required" : true,
79           "type" : "string"
80         }
81       },
82       "capabilities" : {
83         "component-node" : {
84           "type" : "tosca.capabilities.Node"
85         }
86       },
87       "interfaces" : {
88         "ResourceResolutionComponent" : {
89           "operations" : {
90             "process" : {
91               "inputs" : {
92                 "resolution-key" : {
93                   "description" : "Key for service instance related correlation.",
94                   "required" : false,
95                   "type" : "string"
96                 },
97                 "store-result" : {
98                   "description" : "Whether or not to store the output.",
99                   "required" : false,
100                   "type" : "boolean"
101                 },
102                 "resource-type" : {
103                   "description" : "Request type.",
104                   "required" : false,
105                   "type" : "string"
106                 },
107                 "artifact-prefix-names" : {
108                   "description" : "Template , Resource Assignment Artifact Prefix names",
109                   "required" : true,
110                   "type" : "list",
111                   "entry_schema" : {
112                     "type" : "string"
113                   }
114                 },
115                 "request-id" : {
116                   "description" : "Request Id, Unique Id for the request.",
117                   "required" : true,
118                   "type" : "string"
119                 },
120                 "resource-id" : {
121                   "description" : "Resource Id.",
122                   "required" : false,
123                   "type" : "string"
124                 },
125                 "action-name" : {
126                   "description" : "Action Name of the process",
127                   "required" : false,
128                   "type" : "string"
129                 },
130                 "dynamic-properties" : {
131                   "description" : "Dynamic Json Content or DSL Json reference.",
132                   "required" : false,
133                   "type" : "json"
134                 }
135               },
136               "outputs" : {
137                 "resource-assignment-params" : {
138                   "required" : true,
139                   "type" : "string"
140                 },
141                 "status" : {
142                   "required" : true,
143                   "type" : "string"
144                 }
145               }
146             }
147           }
148         }
149       },
150       "derived_from" : "tosca.nodes.Component"
151     },
152     "dg-generic" : {
153       "description" : "This is Generic Directed Graph Type",
154       "version" : "1.0.0",
155       "properties" : {
156         "content" : {
157           "required" : true,
158           "type" : "string"
159         },
160         "dependency-node-templates" : {
161           "description" : "Dependent Step Components NodeTemplate name.",
162           "required" : true,
163           "type" : "list",
164           "entry_schema" : {
165             "type" : "string"
166           }
167         }
168       },
169       "derived_from" : "tosca.nodes.Workflow"
170     },
171     "source-input" : {
172       "description" : "This is Input Resource Source Node Type",
173       "version" : "1.0.0",
174       "properties" : { },
175       "derived_from" : "tosca.nodes.ResourceSource"
176     },
177     "tosca.nodes.Component" : {
178       "description" : "This is default Component Node",
179       "version" : "1.0.0",
180       "derived_from" : "tosca.nodes.Root"
181     },
182     "tosca.nodes.ResourceSource" : {
183       "description" : "TOSCA base type for Resource Sources",
184       "version" : "1.0.0",
185       "derived_from" : "tosca.nodes.Root"
186     },
187     "tosca.nodes.Workflow" : {
188       "description" : "This is Directed Graph Node Type",
189       "version" : "1.0.0",
190       "derived_from" : "tosca.nodes.Root"
191     }
192   }
193 }