Fix service blueprints
[ccsdk/cds.git] / components / model-catalog / blueprint-model / service-blueprint / vLB_CDS_Kotlin / Definitions / node_types.json
1 {
2   "node_types" : {
3     "component-netconf-executor" : {
4       "description" : "This is Netconf Transaction Configuration Component API",
5       "version" : "1.0.0",
6       "attributes" : {
7         "response-data" : {
8           "required" : false,
9           "type" : "json"
10         }
11       },
12       "capabilities" : {
13         "component-node" : {
14           "type" : "tosca.capabilities.Node"
15         }
16       },
17       "requirements" : {
18         "netconf-connection" : {
19           "capability" : "netconf",
20           "node" : "vnf-netconf-device",
21           "relationship" : "tosca.relationships.ConnectsTo"
22         }
23       },
24       "interfaces" : {
25         "ComponentNetconfExecutor" : {
26           "operations" : {
27             "process" : {
28               "inputs" : {
29                 "script-type" : {
30                   "description" : "Script type, kotlin type is supported",
31                   "required" : true,
32                   "type" : "string",
33                   "constraints" : [ {
34                     "valid_values" : [ "kotlin", "jython", "internal" ]
35                   } ],
36                   "default" : "internal"
37                 },
38                 "script-class-reference" : {
39                   "description" : "Kotlin Script class name or jython script name.",
40                   "required" : true,
41                   "type" : "string"
42                 },
43                 "instance-dependencies" : {
44                   "description" : "Instance names to inject to Jython or Kotlin Script.",
45                   "required" : true,
46                   "type" : "list",
47                   "entry_schema" : {
48                     "type" : "string"
49                   }
50                 },
51                 "dynamic-properties" : {
52                   "description" : "Dynamic Json Content or DSL Json reference.",
53                   "required" : false,
54                   "type" : "json"
55                 }
56               },
57               "outputs" : {
58                 "response-data" : {
59                   "description" : "Execution Response Data in JSON format.",
60                   "required" : false,
61                   "type" : "string"
62                 },
63                 "status" : {
64                   "description" : "Status of the Component Execution ( success or failure )",
65                   "required" : true,
66                   "type" : "string"
67                 }
68               }
69             }
70           }
71         }
72       },
73       "derived_from" : "tosca.nodes.Component"
74     },
75     "component-resource-resolution" : {
76       "description" : "This is Resource Assignment Component API",
77       "version" : "1.0.0",
78       "attributes" : {
79         "assignment-params" : {
80           "description" : "Holds resolved template, resolution-summary or key-value",
81           "required" : true,
82           "type" : "string"
83         },
84         "assignment-map" : {
85           "description" : "Holds resolved values for each artifact prefix eg. { vdns: { vnf-id: 123 } }",
86           "required" : true,
87           "type" : "map"
88         }
89       },
90       "capabilities" : {
91         "component-node" : {
92           "type" : "tosca.capabilities.Node"
93         }
94       },
95       "interfaces" : {
96         "ResourceResolutionComponent" : {
97           "operations" : {
98             "process" : {
99               "inputs" : {
100                 "resolution-key" : {
101                   "description" : "Key for service instance related correlation.",
102                   "required" : false,
103                   "type" : "string"
104                 },
105                 "occurrence" : {
106                   "description" : "Number of time to perform the resolution.",
107                   "required" : false,
108                   "type" : "integer",
109                   "default" : 1
110                 },
111                 "store-result" : {
112                   "description" : "Whether or not to store the output.",
113                   "required" : false,
114                   "type" : "boolean"
115                 },
116                 "resource-type" : {
117                   "description" : "Request type.",
118                   "required" : false,
119                   "type" : "string"
120                 },
121                 "resolution-summary" : {
122                   "description" : "Enable resolution-summary output",
123                   "required" : false,
124                   "type" : "boolean"
125                 },
126                 "artifact-prefix-names" : {
127                   "description" : "Template , Resource Assignment Artifact Prefix names",
128                   "required" : true,
129                   "type" : "list",
130                   "entry_schema" : {
131                     "type" : "string"
132                   }
133                 },
134                 "request-id" : {
135                   "description" : "Request Id, Unique Id for the request.",
136                   "required" : true,
137                   "type" : "string"
138                 },
139                 "resource-id" : {
140                   "description" : "Resource Id.",
141                   "required" : false,
142                   "type" : "string"
143                 },
144                 "action-name" : {
145                   "description" : "Action Name of the process",
146                   "required" : false,
147                   "type" : "string"
148                 },
149                 "dynamic-properties" : {
150                   "description" : "Dynamic Json Content or DSL Json reference.",
151                   "required" : false,
152                   "type" : "json"
153                 }
154               },
155               "outputs" : {
156                 "resource-assignment-params" : {
157                   "required" : true,
158                   "type" : "string"
159                 },
160                 "resource-assignment-map" : {
161                   "required" : true,
162                   "type" : "string"
163                 },
164                 "status" : {
165                   "required" : true,
166                   "type" : "string"
167                 }
168               }
169             }
170           }
171         }
172       },
173       "derived_from" : "tosca.nodes.Component"
174     },
175     "dg-generic" : {
176       "description" : "This is Generic Directed Graph Type",
177       "version" : "1.0.0",
178       "properties" : {
179         "content" : {
180           "required" : true,
181           "type" : "string"
182         },
183         "dependency-node-templates" : {
184           "description" : "Dependent Step Components NodeTemplate name.",
185           "required" : true,
186           "type" : "list",
187           "entry_schema" : {
188             "type" : "string"
189           }
190         }
191       },
192       "derived_from" : "tosca.nodes.Workflow"
193     },
194     "source-capability" : {
195       "description" : "This is Component Resource Source Node Type",
196       "version" : "1.0.0",
197       "properties" : {
198         "script-type" : {
199           "required" : true,
200           "type" : "string",
201           "constraints" : [ {
202             "valid_values" : [ "kotlin", "internal", "jython" ]
203           } ],
204           "default" : "kotlin"
205         },
206         "script-class-reference" : {
207           "description" : "Capability reference name for internal and kotlin, for jython script file path",
208           "required" : true,
209           "type" : "string"
210         },
211         "instance-dependencies" : {
212           "description" : "Instance dependency Names to Inject to Kotlin / Jython Script.",
213           "required" : false,
214           "type" : "list",
215           "entry_schema" : {
216             "type" : "string"
217           }
218         },
219         "key-dependencies" : {
220           "description" : "Resource Resolution dependency dictionary names.",
221           "required" : true,
222           "type" : "list",
223           "entry_schema" : {
224             "type" : "string"
225           }
226         }
227       },
228       "derived_from" : "tosca.nodes.ResourceSource"
229     },
230     "source-db" : {
231       "description" : "This is Database Resource Source Node Type",
232       "version" : "1.0.0",
233       "properties" : {
234         "type" : {
235           "required" : true,
236           "type" : "string",
237           "constraints" : [ {
238             "valid_values" : [ "SQL", "PLSQL" ]
239           } ],
240           "default" : "SQL"
241         },
242         "endpoint-selector" : {
243           "required" : false,
244           "type" : "string"
245         },
246         "query" : {
247           "required" : true,
248           "type" : "string"
249         },
250         "input-key-mapping" : {
251           "required" : false,
252           "type" : "map",
253           "entry_schema" : {
254             "type" : "string"
255           }
256         },
257         "output-key-mapping" : {
258           "required" : false,
259           "type" : "map",
260           "entry_schema" : {
261             "type" : "string"
262           }
263         },
264         "key-dependencies" : {
265           "required" : true,
266           "type" : "list",
267           "entry_schema" : {
268             "type" : "string"
269           }
270         }
271       },
272       "derived_from" : "tosca.nodes.ResourceSource"
273     },
274     "source-default" : {
275       "description" : "This is Default Resource Source Node Type",
276       "version" : "1.0.0",
277       "properties" : { },
278       "derived_from" : "tosca.nodes.ResourceSource"
279     },
280     "source-input" : {
281       "description" : "This is Input Resource Source Node Type",
282       "version" : "1.0.0",
283       "properties" : { },
284       "derived_from" : "tosca.nodes.ResourceSource"
285     },
286     "source-rest" : {
287       "description" : "This is Rest Resource Source Node Type",
288       "version" : "1.0.0",
289       "properties" : {
290         "type" : {
291           "required" : true,
292           "type" : "string",
293           "constraints" : [ {
294             "valid_values" : [ "JSON" ]
295           } ],
296           "default" : "JSON"
297         },
298         "headers" : {
299           "required" : false,
300           "type" : "map",
301           "entry_schema" : {
302             "type" : "string"
303           }
304         },
305         "verb" : {
306           "required" : true,
307           "type" : "string",
308           "constraints" : [ {
309             "valid_values" : [ "GET", "POST", "DELETE", "PUT" ]
310           } ],
311           "default" : "GET"
312         },
313         "payload" : {
314           "required" : false,
315           "type" : "string",
316           "default" : ""
317         },
318         "endpoint-selector" : {
319           "required" : false,
320           "type" : "string"
321         },
322         "url-path" : {
323           "required" : true,
324           "type" : "string"
325         },
326         "path" : {
327           "required" : true,
328           "type" : "string"
329         },
330         "expression-type" : {
331           "required" : false,
332           "type" : "string",
333           "constraints" : [ {
334             "valid_values" : [ "JSON_PATH", "JSON_POINTER" ]
335           } ],
336           "default" : "JSON_PATH"
337         },
338         "input-key-mapping" : {
339           "required" : false,
340           "type" : "map",
341           "entry_schema" : {
342             "type" : "string"
343           }
344         },
345         "output-key-mapping" : {
346           "required" : false,
347           "type" : "map",
348           "entry_schema" : {
349             "type" : "string"
350           }
351         },
352         "key-dependencies" : {
353           "required" : true,
354           "type" : "list",
355           "entry_schema" : {
356             "type" : "string"
357           }
358         }
359       },
360       "derived_from" : "tosca.nodes.ResourceSource"
361     },
362     "tosca.nodes.Component" : {
363       "description" : "This is default Component Node",
364       "version" : "1.0.0",
365       "derived_from" : "tosca.nodes.Root"
366     },
367     "tosca.nodes.ResourceSource" : {
368       "description" : "TOSCA base type for Resource Sources",
369       "version" : "1.0.0",
370       "derived_from" : "tosca.nodes.Root"
371     },
372     "tosca.nodes.Vnf" : {
373       "description" : "This is VNF Node Type",
374       "version" : "1.0.0",
375       "derived_from" : "tosca.nodes.Root"
376     },
377     "tosca.nodes.Workflow" : {
378       "description" : "This is Directed Graph Node Type",
379       "version" : "1.0.0",
380       "derived_from" : "tosca.nodes.Root"
381     },
382     "vnf-netconf-device" : {
383       "description" : "This is VNF Device with Netconf  Capability",
384       "version" : "1.0.0",
385       "capabilities" : {
386         "netconf" : {
387           "type" : "tosca.capabilities.Netconf",
388           "properties" : {
389             "login-key" : {
390               "required" : true,
391               "type" : "string",
392               "default" : "sdnc"
393             },
394             "login-account" : {
395               "required" : true,
396               "type" : "string",
397               "default" : "sdnc-tacacs"
398             },
399             "source" : {
400               "required" : false,
401               "type" : "string",
402               "default" : "npm"
403             },
404             "target-ip-address" : {
405               "required" : true,
406               "type" : "string"
407             },
408             "port-number" : {
409               "required" : true,
410               "type" : "integer",
411               "default" : 830
412             },
413             "connection-time-out" : {
414               "required" : false,
415               "type" : "integer",
416               "default" : 30
417             }
418           }
419         }
420       },
421       "derived_from" : "tosca.nodes.Vnf"
422     }
423   }
424 }