Fix: Run both sonar and clm scans in parallel
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / baseconfiguration / Definitions / resources_definition_types.json
1 {
2   "hostname": {
3     "tags": "hostname",
4     "name": "hostname",
5     "property": {
6       "description": "hostname",
7       "type": "string"
8     },
9     "updated-by": "Singal, Kapil <ks220y@att.com>",
10     "sources": {
11       "input": {
12         "type": "source-input"
13       }
14     }
15   },
16   "service-instance-id": {
17     "tags": "service-instance-id, tosca.datatypes.Root, data_type",
18     "name": "service-instance-id",
19     "property": {
20       "description": "To be provided",
21       "type": "string"
22     },
23     "updated-by": "Singal, Kapil <ks220y@att.com>",
24     "sources": {
25       "input": {
26         "type": "source-input",
27         "properties": {}
28       },
29       "processor-db": {
30         "type": "source-db",
31         "properties": {
32           "endpoint-selector": "dynamic-db-source",
33           "query": "SELECT artifact_name FROM sdnctl.BLUEPRINT_MODEL where artifact_version=\"1.0.0\"",
34           "input-key-mapping": {
35           },
36           "output-key-mapping": {
37             "service-instance-id": "artifact_name"
38           },
39           "key-dependencies" : []
40         }
41       },
42       "any-db": {
43         "type": "source-db",
44         "properties": {
45           "endpoint-selector": "dynamic-db-source",
46           "query": "SELECT artifact_name FROM sdnctl.BLUEPRINT_MODEL where artifact_version=\"1.0.0\"",
47           "input-key-mapping": {
48           },
49           "output-key-mapping": {
50             "service-instance-id": "artifact_name"
51           },
52           "key-dependencies" : []
53         }
54       }
55     }
56   },
57   "vnf-id": {
58     "tags": "vnf-id",
59     "name": "vnf-id",
60     "property": {
61       "description": "vnf-id",
62       "type": "string"
63     },
64     "updated-by": "Singal, Kapil <ks220y@att.com>",
65     "sources": {
66       "input": {
67         "type": "source-input",
68         "properties": {}
69       }
70     }
71   },
72   "vnf_name": {
73     "tags": "vnf_name",
74     "name": "vnf_name",
75     "property": {
76       "description": "vnf_name",
77       "type": "string"
78     },
79     "updated-by": "Singal, Kapil <ks220y@att.com>",
80     "sources": {
81       "sdnc": {
82         "type": "source-rest",
83         "properties": {
84           "verb": "GET",
85           "type": "JSON",
86           "url-path": "/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf_name",
87           "path": "/param/0/value",
88           "input-key-mapping": {
89             "service-instance-id": "service-instance-id",
90             "vnf-id": "vnf-id"
91           },
92           "output-key-mapping": {
93             "vnf_name": "value"
94           },
95           "key-dependencies": [
96             "service-instance-id",
97             "vnf-id"
98           ]
99         }
100       }
101     }
102   },
103   "int_pktgen_private_net_id": {
104     "tags": "int_pktgen_private_net_id",
105     "name": "int_pktgen_private_net_id",
106     "property": {
107       "description": "int_pktgen_private_net_id",
108       "type": "string"
109     },
110     "updated-by": "Lukasz Rajewski <lukasz.rajewski@t-mobile.pl>",
111     "sources": {
112       "default": {
113         "type": "source-default",
114         "properties": {}
115       }
116     }
117   },
118   "vnf_parameter": {
119     "tags": "vnf_parameter",
120     "name": "vnf_parameter",
121     "property": {
122       "description": "vnf_parameter",
123       "type": "string"
124     },
125     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
126     "sources": {
127       "sdnc": {
128         "type": "source-rest",
129         "properties": {
130           "verb": "GET",
131           "type": "JSON",
132           "url-path": "/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/$parameter-name",
133           "path": "/param/0/value",
134           "input-key-mapping": {
135             "service-instance-id": "service-instance-id",
136             "vnf-id": "vnf-id",
137             "parameter-name": "parameter-name"
138           },
139           "output-key-mapping": {
140             "vnf_name": "value"
141           },
142           "key-dependencies": [
143             "service-instance-id",
144             "vnf-id"
145           ]
146         }
147       }
148     }
149   },
150   "aai-get-resource": {
151     "tags": "aai-get",
152     "name": "aai-get-resource",
153     "property": {
154       "description": "primary aai data to get resource",
155       "type": "string"
156     },
157     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
158     "sources": {
159       "aai-data": {
160         "type": "source-rest",
161         "properties": {
162           "type": "JSON",
163           "verb": "GET",
164           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
165           "path": "",
166           "input-key-mapping": {
167             "vnf-id": "vnf-id"
168           },
169           "output-key-mapping": {
170             "aai-get-resource": "vnf-id"
171           },
172           "key-dependencies": [
173             "vnf-id"
174           ]
175         }
176       }
177     }
178   },
179   "aai-get-resource-null": {
180     "tags": "aai-get",
181     "name": "aai-get-resource-null",
182     "property": {
183       "description": "primary aai data to get resource with empty content",
184       "type": "string"
185     },
186     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
187     "sources": {
188       "aai-data": {
189         "type": "source-rest",
190         "properties": {
191           "type": "JSON",
192           "verb": "GET",
193           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
194           "path": "",
195           "input-key-mapping": {
196             "vnf-id": "vnf-id"
197           },
198           "key-dependencies": [
199             "vnf-id"
200           ]
201         }
202       }
203     }
204   },
205   "aai-get-resource-wrong-mapping": {
206     "tags": "aai-get",
207     "name": "aai-get-resource-wrong-mapping",
208     "property": {
209       "description": "primary aai data to get resource with wrong mapping",
210       "type": "string"
211     },
212     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
213     "sources": {
214       "aai-data": {
215         "type": "source-rest",
216         "properties": {
217           "type": "JSON",
218           "verb": "GET",
219           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
220           "path": "",
221           "input-key-mapping": {
222             "vnf-id": "vnf-id"
223           },
224           "output-key-mapping": {
225             "aai-get-resource-wrong-mapping": "wrong"
226           },
227           "key-dependencies": [
228             "vnf-id"
229           ]
230         }
231       }
232     }
233   },
234   "aai-get-json-resource": {
235     "tags": "aai-get-json",
236     "name": "aai-get-json-resource",
237     "property": {
238       "description": "primary aai data to get resource",
239       "type": "json"
240     },
241     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
242     "sources": {
243       "aai-data": {
244         "type": "source-rest",
245         "properties": {
246           "type": "JSON",
247           "verb": "GET",
248           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
249           "path": "",
250           "input-key-mapping": {
251             "vnf-id": "vnf-id"
252           },
253           "output-key-mapping": {
254           },
255           "key-dependencies": [
256             "vnf-id"
257           ]
258         }
259       }
260     }
261   },
262   "aai-put-resource": {
263     "tags": "aai-put",
264     "name": "aai-put-resource",
265     "property": {
266       "description": "primary aai data to update resource",
267       "type": "string"
268     },
269     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
270     "sources": {
271       "aai-data": {
272         "type": "source-rest",
273         "properties": {
274           "type": "JSON",
275           "verb": "PUT",
276           "url-path": "/query?format=resource",
277           "path": "",
278           "payload": "{\r\n\"start\": \"\\/nodes\\/vf-modules?vf-module-name=vf-module-name\",\r\n\"query\": \"\\/query\\/related-to?startingNodeType=vf-module&relatedToNodeType=generic-vnf\"\r\n}",
279
280           "input-key-mapping": {
281             "vnf-id": "vnf-id"
282           },
283           "output-key-mapping": {
284           },
285           "key-dependencies": [
286             "vnf-id"
287           ]
288         }
289       }
290     }
291   },
292   "aai-post-resource": {
293     "tags": "aai-port",
294     "name": "aai-port-resource",
295     "property": {
296       "description": "primary aai data to create new resource",
297       "type": "string"
298     },
299     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
300     "sources": {
301       "aai-data": {
302         "type": "source-rest",
303         "properties": {
304           "type": "JSON",
305           "verb": "POST",
306           "url-path": "/aai/add/uri/here",
307           "path": "",
308           "payload": "",
309           "input-key-mapping": {
310             "vnf-id": "vnf-id"
311           },
312           "output-key-mapping": {
313           },
314           "key-dependencies": [
315             "vnf-id"
316           ]
317         }
318       }
319     }
320   }
321 }