Make source-db consistent across samples
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / golden / 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           "required" : true,
81           "type" : "string"
82         }
83       },
84       "capabilities" : {
85         "component-node" : {
86           "type" : "tosca.capabilities.Node"
87         }
88       },
89       "interfaces" : {
90         "ResourceResolutionComponent" : {
91           "operations" : {
92             "process" : {
93               "inputs" : {
94                 "resolution-key" : {
95                   "description" : "Key for service instance related correlation.",
96                   "required" : false,
97                   "type" : "string"
98                 },
99                 "occurrence" : {
100                   "description" : "Number of time to perform the resolution.",
101                   "required" : false,
102                   "type" : "integer",
103                   "default" : 1
104                 },
105                 "store-result" : {
106                   "description" : "Whether or not to store the output.",
107                   "required" : false,
108                   "type" : "boolean"
109                 },
110                 "resource-type" : {
111                   "description" : "Request type.",
112                   "required" : false,
113                   "type" : "string"
114                 },
115                 "artifact-prefix-names" : {
116                   "description" : "Template , Resource Assignment Artifact Prefix names",
117                   "required" : true,
118                   "type" : "list",
119                   "entry_schema" : {
120                     "type" : "string"
121                   }
122                 },
123                 "request-id" : {
124                   "description" : "Request Id, Unique Id for the request.",
125                   "required" : true,
126                   "type" : "string"
127                 },
128                 "resource-id" : {
129                   "description" : "Resource Id.",
130                   "required" : false,
131                   "type" : "string"
132                 },
133                 "action-name" : {
134                   "description" : "Action Name of the process",
135                   "required" : false,
136                   "type" : "string"
137                 },
138                 "dynamic-properties" : {
139                   "description" : "Dynamic Json Content or DSL Json reference.",
140                   "required" : false,
141                   "type" : "json"
142                 }
143               },
144               "outputs" : {
145                 "resource-assignment-params" : {
146                   "required" : true,
147                   "type" : "string"
148                 },
149                 "status" : {
150                   "required" : true,
151                   "type" : "string"
152                 }
153               }
154             }
155           }
156         }
157       },
158       "derived_from" : "tosca.nodes.Component"
159     },
160     "source-capability" : {
161       "description" : "This is Component Resource Source Node Type",
162       "version" : "1.0.0",
163       "properties" : {
164         "script-type" : {
165           "required" : true,
166           "type" : "string",
167           "constraints" : [ {
168             "valid_values" : [ "kotlin", "internal", "jython" ]
169           } ],
170           "default" : "kotlin"
171         },
172         "script-class-reference" : {
173           "description" : "Capability reference name for internal and kotlin, for jython script file path",
174           "required" : true,
175           "type" : "string"
176         },
177         "instance-dependencies" : {
178           "description" : "Instance dependency Names to Inject to Kotlin / Jython Script.",
179           "required" : false,
180           "type" : "list",
181           "entry_schema" : {
182             "type" : "string"
183           }
184         },
185         "key-dependencies" : {
186           "description" : "Resource Resolution dependency dictionary names.",
187           "required" : true,
188           "type" : "list",
189           "entry_schema" : {
190             "type" : "string"
191           }
192         }
193       },
194       "derived_from" : "tosca.nodes.ResourceSource"
195     },
196     "source-db" : {
197       "description" : "This is Database Resource Source Node Type",
198       "version" : "1.0.0",
199       "properties" : {
200         "type" : {
201           "required" : true,
202           "type" : "string",
203           "constraints" : [ {
204             "valid_values" : [ "SQL", "PLSQL" ]
205           } ],
206           "default" : "SQL"
207         },
208         "endpoint-selector" : {
209           "required" : false,
210           "type" : "string"
211         },
212         "query" : {
213           "required" : true,
214           "type" : "string"
215         },
216         "input-key-mapping" : {
217           "required" : false,
218           "type" : "map",
219           "entry_schema" : {
220             "type" : "string"
221           }
222         },
223         "output-key-mapping" : {
224           "required" : false,
225           "type" : "map",
226           "entry_schema" : {
227             "type" : "string"
228           }
229         },
230         "key-dependencies" : {
231           "required" : true,
232           "type" : "list",
233           "entry_schema" : {
234             "type" : "string"
235           }
236         }
237       },
238       "derived_from" : "tosca.nodes.ResourceSource"
239     },
240     "source-default" : {
241       "description" : "This is Default Resource Source Node Type",
242       "version" : "1.0.0",
243       "properties" : { },
244       "derived_from" : "tosca.nodes.ResourceSource"
245     },
246     "source-input" : {
247       "description" : "This is Input Resource Source Node Type",
248       "version" : "1.0.0",
249       "properties" : { },
250       "derived_from" : "tosca.nodes.ResourceSource"
251     },
252     "source-rest" : {
253       "description" : "This is Rest Resource Source Node Type",
254       "version" : "1.0.0",
255       "properties" : {
256         "type" : {
257           "required" : true,
258           "type" : "string",
259           "constraints" : [ {
260             "valid_values" : [ "JSON" ]
261           } ],
262           "default" : "JSON"
263         },
264         "verb" : {
265           "required" : true,
266           "type" : "string",
267           "constraints" : [ {
268             "valid_values" : [ "GET", "POST", "DELETE", "PUT" ]
269           } ],
270           "default" : "GET"
271         },
272         "payload" : {
273           "required" : false,
274           "type" : "string",
275           "default" : ""
276         },
277         "endpoint-selector" : {
278           "required" : false,
279           "type" : "string"
280         },
281         "url-path" : {
282           "required" : true,
283           "type" : "string"
284         },
285         "path" : {
286           "required" : true,
287           "type" : "string"
288         },
289         "expression-type" : {
290           "required" : false,
291           "type" : "string",
292           "constraints" : [ {
293             "valid_values" : [ "JSON_PATH", "JSON_POINTER" ]
294           } ],
295           "default" : "JSON_PATH"
296         },
297         "input-key-mapping" : {
298           "required" : false,
299           "type" : "map",
300           "entry_schema" : {
301             "type" : "string"
302           }
303         },
304         "output-key-mapping" : {
305           "required" : false,
306           "type" : "map",
307           "entry_schema" : {
308             "type" : "string"
309           }
310         },
311         "key-dependencies" : {
312           "required" : true,
313           "type" : "list",
314           "entry_schema" : {
315             "type" : "string"
316           }
317         }
318       },
319       "derived_from" : "tosca.nodes.ResourceSource"
320     },
321     "tosca.nodes.Component" : {
322       "description" : "This is default Component Node",
323       "version" : "1.0.0",
324       "derived_from" : "tosca.nodes.Root"
325     },
326     "tosca.nodes.ResourceSource" : {
327       "description" : "TOSCA base type for Resource Sources",
328       "version" : "1.0.0",
329       "derived_from" : "tosca.nodes.Root"
330     },
331     "tosca.nodes.Vnf" : {
332       "description" : "This is VNF Node Type",
333       "version" : "1.0.0",
334       "derived_from" : "tosca.nodes.Root"
335     },
336     "vnf-netconf-device" : {
337       "description" : "This is VNF Device with Netconf  Capability",
338       "version" : "1.0.0",
339       "capabilities" : {
340         "netconf" : {
341           "type" : "tosca.capabilities.Netconf",
342           "properties" : {
343             "login-key" : {
344               "required" : true,
345               "type" : "string",
346               "default" : "sdnc"
347             },
348             "login-account" : {
349               "required" : true,
350               "type" : "string",
351               "default" : "sdnc-tacacs"
352             },
353             "source" : {
354               "required" : false,
355               "type" : "string",
356               "default" : "npm"
357             },
358             "target-ip-address" : {
359               "required" : true,
360               "type" : "string"
361             },
362             "port-number" : {
363               "required" : true,
364               "type" : "integer",
365               "default" : 830
366             },
367             "connection-time-out" : {
368               "required" : false,
369               "type" : "integer",
370               "default" : 30
371             }
372           }
373         }
374       },
375       "derived_from" : "tosca.nodes.Vnf"
376     }
377   }
378 }