@itentialopensource/adapter-onap_so 0.3.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +469 -0
  4. package/CHANGELOG.md +45 -6
  5. package/CODE_OF_CONDUCT.md +12 -17
  6. package/CONTRIBUTING.md +3 -148
  7. package/ENHANCE.md +69 -0
  8. package/PROPERTIES.md +641 -0
  9. package/README.md +239 -507
  10. package/SUMMARY.md +9 -0
  11. package/SYSTEMINFO.md +11 -0
  12. package/TROUBLESHOOT.md +47 -0
  13. package/adapter.js +381 -262
  14. package/adapterBase.js +855 -409
  15. package/changelogs/changelog.md +79 -0
  16. package/entities/.generic/action.json +110 -5
  17. package/entities/.generic/schema.json +6 -1
  18. package/error.json +12 -0
  19. package/metadata.json +47 -0
  20. package/package.json +28 -22
  21. package/pronghorn.json +691 -88
  22. package/propertiesDecorators.json +14 -0
  23. package/propertiesSchema.json +842 -6
  24. package/refs?service=git-upload-pack +0 -0
  25. package/report/adapter-openapi.json +2911 -0
  26. package/report/adapter-openapi.yaml +2156 -0
  27. package/report/adapterInfo.json +10 -0
  28. package/report/updateReport1653173659556.json +120 -0
  29. package/report/updateReport1691507681629.json +120 -0
  30. package/report/updateReport1692202679983.json +120 -0
  31. package/report/updateReport1694462568487.json +120 -0
  32. package/report/updateReport1698421207722.json +120 -0
  33. package/sampleProperties.json +156 -3
  34. package/test/integration/adapterTestBasicGet.js +4 -6
  35. package/test/integration/adapterTestConnectivity.js +91 -42
  36. package/test/integration/adapterTestIntegration.js +158 -104
  37. package/test/unit/adapterBaseTestUnit.js +393 -310
  38. package/test/unit/adapterTestUnit.js +918 -164
  39. package/utils/adapterInfo.js +206 -0
  40. package/utils/addAuth.js +94 -0
  41. package/utils/artifactize.js +1 -1
  42. package/utils/basicGet.js +1 -14
  43. package/utils/checkMigrate.js +1 -1
  44. package/utils/entitiesToDB.js +179 -0
  45. package/utils/findPath.js +1 -1
  46. package/utils/methodDocumentor.js +273 -0
  47. package/utils/modify.js +14 -16
  48. package/utils/packModificationScript.js +2 -2
  49. package/utils/patches2bundledDeps.js +90 -0
  50. package/utils/pre-commit.sh +5 -0
  51. package/utils/removeHooks.js +20 -0
  52. package/utils/taskMover.js +309 -0
  53. package/utils/tbScript.js +129 -53
  54. package/utils/tbUtils.js +152 -35
  55. package/utils/testRunner.js +17 -17
  56. package/utils/troubleshootingAdapter.js +10 -31
  57. package/workflows/README.md +0 -3
package/CALLS.md ADDED
@@ -0,0 +1,469 @@
1
+ ## Using this Adapter
2
+
3
+ The `adapter.js` file contains the calls the adapter makes available to the rest of the Itential Platform. The API detailed for these calls should be available through JSDOC. The following is a brief summary of the calls.
4
+
5
+ ### Generic Adapter Calls
6
+
7
+ These are adapter methods that IAP or you might use. There are some other methods not shown here that might be used for internal adapter functionality.
8
+
9
+ <table border="1" class="bordered-table">
10
+ <tr>
11
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Method Signature</span></th>
12
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
13
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Workflow?</span></th>
14
+ </tr>
15
+ <tr>
16
+ <td style="padding:15px">connect()</td>
17
+ <td style="padding:15px">This call is run when the Adapter is first loaded by he Itential Platform. It validates the properties have been provided correctly.</td>
18
+ <td style="padding:15px">No</td>
19
+ </tr>
20
+ <tr>
21
+ <td style="padding:15px">healthCheck(callback)</td>
22
+ <td style="padding:15px">This call ensures that the adapter can communicate with ONAP Service Orchestration. The actual call that is used is defined in the adapter properties and .system entities action.json file.</td>
23
+ <td style="padding:15px">No</td>
24
+ </tr>
25
+ <tr>
26
+ <td style="padding:15px">refreshProperties(properties)</td>
27
+ <td style="padding:15px">This call provides the adapter the ability to accept property changes without having to restart the adapter.</td>
28
+ <td style="padding:15px">No</td>
29
+ </tr>
30
+ <tr>
31
+ <td style="padding:15px">encryptProperty(property, technique, callback)</td>
32
+ <td style="padding:15px">This call will take the provided property and technique, and return the property encrypted with the technique. This allows the property to be used in the adapterProps section for the credential password so that the password does not have to be in clear text. The adapter will decrypt the property as needed for communications with ONAP Service Orchestration.</td>
33
+ <td style="padding:15px">No</td>
34
+ </tr>
35
+ <tr>
36
+ <td style="padding:15px">iapUpdateAdapterConfiguration(configFile, changes, entity, type, action, callback)</td>
37
+ <td style="padding:15px">This call provides the ability to update the adapter configuration from IAP - includes actions, schema, mockdata and other configurations.</td>
38
+ <td style="padding:15px">Yes</td>
39
+ </tr>
40
+ <tr>
41
+ <td style="padding:15px">iapFindAdapterPath(apiPath, callback)</td>
42
+ <td style="padding:15px">This call provides the ability to see if a particular API path is supported by the adapter.</td>
43
+ <td style="padding:15px">Yes</td>
44
+ </tr>
45
+ <tr>
46
+ <td style="padding:15px">iapSuspendAdapter(mode, callback)</td>
47
+ <td style="padding:15px">This call provides the ability to suspend the adapter and either have requests rejected or put into a queue to be processed after the adapter is resumed.</td>
48
+ <td style="padding:15px">Yes</td>
49
+ </tr>
50
+ <tr>
51
+ <td style="padding:15px">iapUnsuspendAdapter(callback)</td>
52
+ <td style="padding:15px">This call provides the ability to resume a suspended adapter. Any requests in queue will be processed before new requests.</td>
53
+ <td style="padding:15px">Yes</td>
54
+ </tr>
55
+ <tr>
56
+ <td style="padding:15px">iapGetAdapterQueue(callback)</td>
57
+ <td style="padding:15px">This call will return the requests that are waiting in the queue if throttling is enabled.</td>
58
+ <td style="padding:15px">Yes</td>
59
+ </tr>
60
+ <tr>
61
+ <td style="padding:15px">iapTroubleshootAdapter(props, persistFlag, adapter, callback)</td>
62
+ <td style="padding:15px">This call can be used to check on the performance of the adapter - it checks connectivity, healthcheck and basic get calls.</td>
63
+ <td style="padding:15px">Yes</td>
64
+ </tr>
65
+
66
+ <tr>
67
+ <td style="padding:15px">iapRunAdapterHealthcheck(adapter, callback)</td>
68
+ <td style="padding:15px">This call will return the results of a healthcheck.</td>
69
+ <td style="padding:15px">Yes</td>
70
+ </tr>
71
+ <tr>
72
+ <td style="padding:15px">iapRunAdapterConnectivity(callback)</td>
73
+ <td style="padding:15px">This call will return the results of a connectivity check.</td>
74
+ <td style="padding:15px">Yes</td>
75
+ </tr>
76
+ <tr>
77
+ <td style="padding:15px">iapRunAdapterBasicGet(callback)</td>
78
+ <td style="padding:15px">This call will return the results of running basic get API calls.</td>
79
+ <td style="padding:15px">Yes</td>
80
+ </tr>
81
+ <tr>
82
+ <td style="padding:15px">iapMoveAdapterEntitiesToDB(callback)</td>
83
+ <td style="padding:15px">This call will push the adapter configuration from the entities directory into the Adapter or IAP Database.</td>
84
+ <td style="padding:15px">Yes</td>
85
+ </tr>
86
+ <tr>
87
+ <td style="padding:15px">genericAdapterRequest(uriPath, restMethod, queryData, requestBody, addlHeaders, callback)</td>
88
+ <td style="padding:15px">This call allows you to provide the path to have the adapter call. It is an easy way to incorporate paths that have not been built into the adapter yet.</td>
89
+ <td style="padding:15px">Yes</td>
90
+ </tr>
91
+ <tr>
92
+ <td style="padding:15px">genericAdapterRequestNoBasePath(uriPath, restMethod, queryData, requestBody, addlHeaders, callback)</td>
93
+ <td style="padding:15px">This call is the same as the genericAdapterRequest only it does not add a base_path or version to the call.</td>
94
+ <td style="padding:15px">Yes</td>
95
+ </tr>
96
+ <tr>
97
+ <td style="padding:15px">iapHasAdapterEntity(entityType, entityId, callback)</td>
98
+ <td style="padding:15px">This call verifies the adapter has the specific entity.</td>
99
+ <td style="padding:15px">No</td>
100
+ </tr>
101
+ <tr>
102
+ <td style="padding:15px">iapVerifyAdapterCapability(entityType, actionType, entityId, callback)</td>
103
+ <td style="padding:15px">This call verifies the adapter can perform the provided action on the specific entity.</td>
104
+ <td style="padding:15px">No</td>
105
+ </tr>
106
+ <tr>
107
+ <td style="padding:15px">iapUpdateAdapterEntityCache()</td>
108
+ <td style="padding:15px">This call will update the entity cache.</td>
109
+ <td style="padding:15px">No</td>
110
+ </tr>
111
+ </table>
112
+ <br>
113
+
114
+ ### Adapter Broker Calls
115
+
116
+ These are adapter methods that are used to integrate to IAP Brokers. This adapter currently supports the following broker calls.
117
+
118
+ <table border="1" class="bordered-table">
119
+ <tr>
120
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Method Signature</span></th>
121
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
122
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Workflow?</span></th>
123
+ </tr>
124
+ <tr>
125
+ <td style="padding:15px">hasEntities(entityType, entityList, callback)</td>
126
+ <td style="padding:15px">This call is utilized by the IAP Device Broker to determine if the adapter has a specific entity and item of the entity.</td>
127
+ <td style="padding:15px">No</td>
128
+ </tr>
129
+ <tr>
130
+ <td style="padding:15px">getDevice(deviceName, callback)</td>
131
+ <td style="padding:15px">This call returns the details of the requested device.</td>
132
+ <td style="padding:15px">Yes</td>
133
+ </tr>
134
+ <tr>
135
+ <td style="padding:15px">getDevicesFiltered(options, callback)</td>
136
+ <td style="padding:15px">This call returns the list of devices that match the criteria provided in the options filter.</td>
137
+ <td style="padding:15px">Yes</td>
138
+ </tr>
139
+ <tr>
140
+ <td style="padding:15px">isAlive(deviceName, callback)</td>
141
+ <td style="padding:15px">This call returns whether the device status is active</td>
142
+ <td style="padding:15px">Yes</td>
143
+ </tr>
144
+ <tr>
145
+ <td style="padding:15px">getConfig(deviceName, format, callback)</td>
146
+ <td style="padding:15px">This call returns the configuration for the selected device.</td>
147
+ <td style="padding:15px">Yes</td>
148
+ </tr>
149
+ <tr>
150
+ <td style="padding:15px">iapGetDeviceCount(callback)</td>
151
+ <td style="padding:15px">This call returns the count of devices.</td>
152
+ <td style="padding:15px">Yes</td>
153
+ </tr>
154
+ </table>
155
+ <br>
156
+
157
+ ### Specific Adapter Calls
158
+
159
+ Specific adapter calls are built based on the API of the ONAP Service Orchestration. The Adapter Builder creates the proper method comments for generating JS-DOC for the adapter. This is the best way to get information on the calls.
160
+
161
+ <table border="1" class="bordered-table">
162
+ <tr>
163
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Method Signature</span></th>
164
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
165
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Path</span></th>
166
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Workflow?</span></th>
167
+ </tr>
168
+ <tr>
169
+ <td style="padding:15px">createE2EServiceInstance(body, version, callback)</td>
170
+ <td style="padding:15px">Create an E2E Service Instance on a version provided</td>
171
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/e2eServiceInstances/{pathv1}?{query}</td>
172
+ <td style="padding:15px">Yes</td>
173
+ </tr>
174
+ <tr>
175
+ <td style="padding:15px">updateE2EServiceInstance(body, version, serviceId, callback)</td>
176
+ <td style="padding:15px">Update an E2E Service Instance on a version provided and serviceId</td>
177
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/e2eServiceInstances/{pathv1}/{pathv2}?{query}</td>
178
+ <td style="padding:15px">Yes</td>
179
+ </tr>
180
+ <tr>
181
+ <td style="padding:15px">deleteE2EServiceInstance(body, version, serviceId, callback)</td>
182
+ <td style="padding:15px">Delete E2E Service Instance on a specified version and serviceId</td>
183
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/e2eServiceInstances/{pathv1}/{pathv2}?{query}</td>
184
+ <td style="padding:15px">Yes</td>
185
+ </tr>
186
+ <tr>
187
+ <td style="padding:15px">getE2EServiceInstances(serviceId, version, operationId, callback)</td>
188
+ <td style="padding:15px">Find e2eServiceInstances Requests for a given serviceId and operationId</td>
189
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/e2eServiceInstances/{pathv1}/{pathv2}/operations/{pathv3}?{query}</td>
190
+ <td style="padding:15px">Yes</td>
191
+ </tr>
192
+ <tr>
193
+ <td style="padding:15px">scaleE2EServiceInstance(body, version, serviceId, callback)</td>
194
+ <td style="padding:15px">Scale E2E Service Instance on a specified version</td>
195
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/e2eServiceInstances/{pathv1}/{pathv2}/scale?{query}</td>
196
+ <td style="padding:15px">Yes</td>
197
+ </tr>
198
+ <tr>
199
+ <td style="padding:15px">compareModelwithTargetVersion(body, serviceId, version, callback)</td>
200
+ <td style="padding:15px">Find added and deleted resources of target model for the e2eserviceInstance on a given serviceId</td>
201
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/e2eServiceInstances/{pathv1}/{pathv2}/modeldifferences?{query}</td>
202
+ <td style="padding:15px">Yes</td>
203
+ </tr>
204
+ <tr>
205
+ <td style="padding:15px">globalHealthcheck(enableBpmn, callback)</td>
206
+ <td style="padding:15px">Performing global health check</td>
207
+ <td style="padding:15px">{base_path}/{version}/globalhealthcheck?{query}</td>
208
+ <td style="padding:15px">Yes</td>
209
+ </tr>
210
+ <tr>
211
+ <td style="padding:15px">nodeHealthcheck(callback)</td>
212
+ <td style="padding:15px">Performing node health check</td>
213
+ <td style="padding:15px">{base_path}/{version}/nodehealthcheck?{query}</td>
214
+ <td style="padding:15px">Yes</td>
215
+ </tr>
216
+ <tr>
217
+ <td style="padding:15px">getOrchestrationRequest(version, callback)</td>
218
+ <td style="padding:15px">Find Orchestrated Requests for a URI Information</td>
219
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/orchestrationRequests/{pathv1}?{query}</td>
220
+ <td style="padding:15px">Yes</td>
221
+ </tr>
222
+ <tr>
223
+ <td style="padding:15px">getOrchestrationRequestForReqId(requestId, version, callback)</td>
224
+ <td style="padding:15px">Find Orchestrated Requests for a given requestId</td>
225
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/orchestrationRequests/{pathv1}/{pathv2}?{query}</td>
226
+ <td style="padding:15px">Yes</td>
227
+ </tr>
228
+ <tr>
229
+ <td style="padding:15px">unlockOrchestrationRequest(body, requestId, version, callback)</td>
230
+ <td style="padding:15px">Unlock Orchestrated Requests for a given requestId</td>
231
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/orchestrationRequests/{pathv1}/{pathv2}/unlock?{query}</td>
232
+ <td style="padding:15px">Yes</td>
233
+ </tr>
234
+ <tr>
235
+ <td style="padding:15px">deactivateAndCloudDeleteVfModuleInstance(body, version, serviceInstanceId, vnfInstanceId, vfmoduleInstanceId, callback)</td>
236
+ <td style="padding:15px">Deactivate and Cloud Delete VfModule instance</td>
237
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/vfModules/{pathv4}/deactivateAndCloudDelete?{query}</td>
238
+ <td style="padding:15px">Yes</td>
239
+ </tr>
240
+ <tr>
241
+ <td style="padding:15px">enablePort(body, version, serviceInstanceId, configurationInstanceId, callback)</td>
242
+ <td style="padding:15px">Enable Port Mirroring</td>
243
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/configurations/{pathv3}/enablePort?{query}</td>
244
+ <td style="padding:15px">Yes</td>
245
+ </tr>
246
+ <tr>
247
+ <td style="padding:15px">disablePort(body, version, serviceInstanceId, configurationInstanceId, callback)</td>
248
+ <td style="padding:15px">Disable Port Mirroring</td>
249
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/configurations/{pathv3}/disablePort?{query}</td>
250
+ <td style="padding:15px">Yes</td>
251
+ </tr>
252
+ <tr>
253
+ <td style="padding:15px">activatePort(body, version, serviceInstanceId, configurationInstanceId, callback)</td>
254
+ <td style="padding:15px">Activate Port Mirroring</td>
255
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/configurations/{pathv3}/activate?{query}</td>
256
+ <td style="padding:15px">Yes</td>
257
+ </tr>
258
+ <tr>
259
+ <td style="padding:15px">deactivatePort(body, version, serviceInstanceId, configurationInstanceId, callback)</td>
260
+ <td style="padding:15px">Deactivate Port Mirroring</td>
261
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/configurations/{pathv3}/deactivate?{query}</td>
262
+ <td style="padding:15px">Yes</td>
263
+ </tr>
264
+ <tr>
265
+ <td style="padding:15px">addRelationships(body, version, serviceInstanceId, callback)</td>
266
+ <td style="padding:15px">Add Relationships to a Service Instance</td>
267
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/addRelationships?{query}</td>
268
+ <td style="padding:15px">Yes</td>
269
+ </tr>
270
+ <tr>
271
+ <td style="padding:15px">scaleOutVfModule(body, version, serviceInstanceId, vnfInstanceId, callback)</td>
272
+ <td style="padding:15px">VF Auto Scale Out</td>
273
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/vfModules/scaleOut?{query}</td>
274
+ <td style="padding:15px">Yes</td>
275
+ </tr>
276
+ <tr>
277
+ <td style="padding:15px">inPlaceSoftwareUpdate(body, version, serviceInstanceId, vnfInstanceId, callback)</td>
278
+ <td style="padding:15px">Perform VNF software update</td>
279
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/inPlaceSoftwareUpdate?{query}</td>
280
+ <td style="padding:15px">Yes</td>
281
+ </tr>
282
+ <tr>
283
+ <td style="padding:15px">applyUpdatedConfig(body, version, serviceInstanceId, vnfInstanceId, callback)</td>
284
+ <td style="padding:15px">Apply updated configuration</td>
285
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/applyUpdatedConfig?{query}</td>
286
+ <td style="padding:15px">Yes</td>
287
+ </tr>
288
+ <tr>
289
+ <td style="padding:15px">createServiceInstance(body, version, callback)</td>
290
+ <td style="padding:15px">Create a Service Instance on a version provided</td>
291
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances?{query}</td>
292
+ <td style="padding:15px">Yes</td>
293
+ </tr>
294
+ <tr>
295
+ <td style="padding:15px">activateServiceInstance(body, version, serviceInstanceId, callback)</td>
296
+ <td style="padding:15px">Activate provided Service Instance</td>
297
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/activate?{query}</td>
298
+ <td style="padding:15px">Yes</td>
299
+ </tr>
300
+ <tr>
301
+ <td style="padding:15px">deactivateServiceInstance(body, version, serviceInstanceId, callback)</td>
302
+ <td style="padding:15px">Deactivate provided Service Instance</td>
303
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/deactivate?{query}</td>
304
+ <td style="padding:15px">Yes</td>
305
+ </tr>
306
+ <tr>
307
+ <td style="padding:15px">deleteServiceInstance(body, version, serviceInstanceId, callback)</td>
308
+ <td style="padding:15px">Delete provided Service Instance</td>
309
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}?{query}</td>
310
+ <td style="padding:15px">Yes</td>
311
+ </tr>
312
+ <tr>
313
+ <td style="padding:15px">assignServiceInstance(body, version, callback)</td>
314
+ <td style="padding:15px">Assign Service Instance</td>
315
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/assign?{query}</td>
316
+ <td style="padding:15px">Yes</td>
317
+ </tr>
318
+ <tr>
319
+ <td style="padding:15px">unassignServiceInstance(body, version, serviceInstanceId, callback)</td>
320
+ <td style="padding:15px">Unassign Service Instance</td>
321
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/unassign?{query}</td>
322
+ <td style="padding:15px">Yes</td>
323
+ </tr>
324
+ <tr>
325
+ <td style="padding:15px">createPortConfiguration(body, version, serviceInstanceId, callback)</td>
326
+ <td style="padding:15px">Create Port Mirroring Configuration</td>
327
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/configurations?{query}</td>
328
+ <td style="padding:15px">Yes</td>
329
+ </tr>
330
+ <tr>
331
+ <td style="padding:15px">deletePortConfiguration(body, version, serviceInstanceId, configurationInstanceId, callback)</td>
332
+ <td style="padding:15px">Delete provided Port</td>
333
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/configurations/{pathv3}?{query}</td>
334
+ <td style="padding:15px">Yes</td>
335
+ </tr>
336
+ <tr>
337
+ <td style="padding:15px">removeRelationships(body, version, serviceInstanceId, callback)</td>
338
+ <td style="padding:15px">Remove Relationships from Service Instance</td>
339
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/removeRelationships?{query}</td>
340
+ <td style="padding:15px">Yes</td>
341
+ </tr>
342
+ <tr>
343
+ <td style="padding:15px">createVnfInstance(body, version, serviceInstanceId, callback)</td>
344
+ <td style="padding:15px">Create VNF on a specified version and serviceInstance</td>
345
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs?{query}</td>
346
+ <td style="padding:15px">Yes</td>
347
+ </tr>
348
+ <tr>
349
+ <td style="padding:15px">replaceVnfInstance(body, version, serviceInstanceId, vnfInstanceId, callback)</td>
350
+ <td style="padding:15px">Replace provided VNF instance</td>
351
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/replace?{query}</td>
352
+ <td style="padding:15px">Yes</td>
353
+ </tr>
354
+ <tr>
355
+ <td style="padding:15px">updateVnfInstance(body, version, serviceInstanceId, vnfInstanceId, callback)</td>
356
+ <td style="padding:15px">Update VNF on a specified version, serviceInstance and vnfInstance</td>
357
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}?{query}</td>
358
+ <td style="padding:15px">Yes</td>
359
+ </tr>
360
+ <tr>
361
+ <td style="padding:15px">deleteVnfInstance(body, version, serviceInstanceId, vnfInstanceId, callback)</td>
362
+ <td style="padding:15px">Delete provided VNF instance</td>
363
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}?{query}</td>
364
+ <td style="padding:15px">Yes</td>
365
+ </tr>
366
+ <tr>
367
+ <td style="padding:15px">createVfModuleInstance(body, version, serviceInstanceId, vnfInstanceId, callback)</td>
368
+ <td style="padding:15px">Create VfModule on a specified version, serviceInstance and vnfInstance</td>
369
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/vfModules?{query}</td>
370
+ <td style="padding:15px">Yes</td>
371
+ </tr>
372
+ <tr>
373
+ <td style="padding:15px">replaceVfModuleInstance(body, version, serviceInstanceId, vnfInstanceId, vfmoduleInstanceId, callback)</td>
374
+ <td style="padding:15px">Create VfModule on a specified version, serviceInstance and vnfInstance</td>
375
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/vfModules/{pathv4}/replace?{query}</td>
376
+ <td style="padding:15px">Yes</td>
377
+ </tr>
378
+ <tr>
379
+ <td style="padding:15px">updateVfModuleInstance(body, version, serviceInstanceId, vnfInstanceId, vfmoduleInstanceId, callback)</td>
380
+ <td style="padding:15px">Update VfModule on a specified version, serviceInstance, vnfInstance and vfModule</td>
381
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/vfModules/{pathv4}?{query}</td>
382
+ <td style="padding:15px">Yes</td>
383
+ </tr>
384
+ <tr>
385
+ <td style="padding:15px">deleteVfModuleInstance(body, version, serviceInstanceId, vnfInstanceId, vfmoduleInstanceId, callback)</td>
386
+ <td style="padding:15px">Delete provided VfModule instance</td>
387
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/vfModules/{pathv4}?{query}</td>
388
+ <td style="padding:15px">Yes</td>
389
+ </tr>
390
+ <tr>
391
+ <td style="padding:15px">createVolumeGroupInstance(body, version, serviceInstanceId, vnfInstanceId, callback)</td>
392
+ <td style="padding:15px">Create VolumeGroup on a specified version, serviceInstance, vnfInstance</td>
393
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/volumeGroups?{query}</td>
394
+ <td style="padding:15px">Yes</td>
395
+ </tr>
396
+ <tr>
397
+ <td style="padding:15px">updateVolumeGroupInstance(body, version, serviceInstanceId, vnfInstanceId, volumeGroupInstanceId, callback)</td>
398
+ <td style="padding:15px">Update VolumeGroup on a specified version, serviceInstance, vnfInstance and volumeGroup</td>
399
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/volumeGroups/{pathv4}?{query}</td>
400
+ <td style="padding:15px">Yes</td>
401
+ </tr>
402
+ <tr>
403
+ <td style="padding:15px">deleteVolumeGroupInstance(body, version, serviceInstanceId, vnfInstanceId, volumeGroupInstanceId, callback)</td>
404
+ <td style="padding:15px">Delete provided VolumeGroup instance</td>
405
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/vnfs/{pathv3}/volumeGroups/{pathv4}?{query}</td>
406
+ <td style="padding:15px">Yes</td>
407
+ </tr>
408
+ <tr>
409
+ <td style="padding:15px">createNetworkInstance(body, version, serviceInstanceId, callback)</td>
410
+ <td style="padding:15px">Create NetworkInstance on a specified version and serviceInstance</td>
411
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/networks?{query}</td>
412
+ <td style="padding:15px">Yes</td>
413
+ </tr>
414
+ <tr>
415
+ <td style="padding:15px">updateNetworkInstance(body, version, serviceInstanceId, networkInstanceId, callback)</td>
416
+ <td style="padding:15px">Update VolumeGroup on a specified version, serviceInstance, networkInstance</td>
417
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/networks/{pathv3}?{query}</td>
418
+ <td style="padding:15px">Yes</td>
419
+ </tr>
420
+ <tr>
421
+ <td style="padding:15px">deleteNetworkInstance(body, version, serviceInstanceId, networkInstanceId, callback)</td>
422
+ <td style="padding:15px">Delete provided Network instance</td>
423
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/serviceInstantiation/{pathv1}/serviceInstances/{pathv2}/networks/{pathv3}?{query}</td>
424
+ <td style="padding:15px">Yes</td>
425
+ </tr>
426
+ <tr>
427
+ <td style="padding:15px">queryFilters(taskId, originalRequestId, subscriptionServiceType, nfRole, buildingBlockName, originalRequestDate, originalRequestorId, version, callback)</td>
428
+ <td style="padding:15px">Finds Manual Tasks</td>
429
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/tasks/{pathv1}?{query}</td>
430
+ <td style="padding:15px">Yes</td>
431
+ </tr>
432
+ <tr>
433
+ <td style="padding:15px">createOperationEnvironment(body, version, callback)</td>
434
+ <td style="padding:15px">Create an Operational Environment</td>
435
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/cloudResources/{pathv1}/operationalEnvironments?{query}</td>
436
+ <td style="padding:15px">Yes</td>
437
+ </tr>
438
+ <tr>
439
+ <td style="padding:15px">activateOperationEnvironment(body, version, operationalEnvironmentId, callback)</td>
440
+ <td style="padding:15px">Activate an Operational Environment</td>
441
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/cloudResources/{pathv1}/operationalEnvironments/{pathv2}/activate?{query}</td>
442
+ <td style="padding:15px">Yes</td>
443
+ </tr>
444
+ <tr>
445
+ <td style="padding:15px">deactivateOperationEnvironment(body, version, operationalEnvironmentId, callback)</td>
446
+ <td style="padding:15px">Deactivate an Operational Environment</td>
447
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/cloudResources/{pathv1}/operationalEnvironments/{pathv2}/deactivate?{query}</td>
448
+ <td style="padding:15px">Yes</td>
449
+ </tr>
450
+ <tr>
451
+ <td style="padding:15px">unlockOrchestrationRequestForReqId(body, requestId, version, callback)</td>
452
+ <td style="padding:15px">Unlock CloudOrchestration requests for a specified requestId</td>
453
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/cloudResourcesRequests/{pathv1}/{pathv2}/unlock?{query}</td>
454
+ <td style="padding:15px">Yes</td>
455
+ </tr>
456
+ <tr>
457
+ <td style="padding:15px">getOperationEnvironmentStatusFilter(version, callback)</td>
458
+ <td style="padding:15px">Get status of an Operational Environment based on filter criteria</td>
459
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/cloudResourcesRequests/{pathv1}?{query}</td>
460
+ <td style="padding:15px">Yes</td>
461
+ </tr>
462
+ <tr>
463
+ <td style="padding:15px">updateModelDistributionStatus(body, version, distributionId, callback)</td>
464
+ <td style="padding:15px">Update model distribution status</td>
465
+ <td style="padding:15px">{base_path}/{version}/onap/so/infra/modelDistributions/{pathv1}/distributions/{pathv2}?{query}</td>
466
+ <td style="padding:15px">Yes</td>
467
+ </tr>
468
+ </table>
469
+ <br>
package/CHANGELOG.md CHANGED
@@ -1,7 +1,35 @@
1
1
 
2
+ ## 0.5.0 [12-28-2023]
3
+
4
+ * Adapter Engine has been updated and the changes are being migrated to the adapter
5
+
6
+ See merge request itentialopensource/adapters/controller-orchestrator/adapter-onap_so!7
7
+
8
+ ---
9
+
10
+ ## 0.4.0 [05-21-2022]
11
+
12
+ * Migration to the latest Adapter Foundation
13
+
14
+ See merge request itentialopensource/adapters/controller-orchestrator/adapter-onap_so!6
15
+
16
+ ---
17
+
2
18
  ## 0.3.3 [03-11-2021]
3
19
 
4
- * migration to the latest adapter foundation
20
+ - Migration to bring up to the latest foundation
21
+ - Change to .eslintignore (adapter_modification directory)
22
+ - Change to README.md (new properties, new scripts, new processes)
23
+ - Changes to adapterBase.js (new methods)
24
+ - Changes to package.json (new scripts, dependencies)
25
+ - Changes to propertiesSchema.json (new properties and changes to existing)
26
+ - Changes to the Unit test
27
+ - Adding several test files, utils files and .generic entity
28
+ - Fix order of scripts and dependencies in package.json
29
+ - Fix order of properties in propertiesSchema.json
30
+ - Update sampleProperties, unit and integration tests to have all new properties.
31
+ - Add all new calls to adapter.js and pronghorn.json
32
+ - Add suspend piece to older methods
5
33
 
6
34
  See merge request itentialopensource/adapters/controller-orchestrator/adapter-onap_so!5
7
35
 
@@ -9,7 +37,7 @@ See merge request itentialopensource/adapters/controller-orchestrator/adapter-on
9
37
 
10
38
  ## 0.3.2 [07-09-2020]
11
39
 
12
- * migration
40
+ - Update the adapter to the latest foundation
13
41
 
14
42
  See merge request itentialopensource/adapters/controller-orchestrator/adapter-onap_so!4
15
43
 
@@ -17,7 +45,7 @@ See merge request itentialopensource/adapters/controller-orchestrator/adapter-on
17
45
 
18
46
  ## 0.3.1 [01-14-2020]
19
47
 
20
- * december migration
48
+ - Update the adapter to the latest foundation
21
49
 
22
50
  See merge request itentialopensource/adapters/controller-orchestrator/adapter-onap_so!3
23
51
 
@@ -25,7 +53,18 @@ See merge request itentialopensource/adapters/controller-orchestrator/adapter-on
25
53
 
26
54
  ## 0.3.0 [11-08-2019]
27
55
 
28
- * Update the adapter to the latest adapter foundation.
56
+ - Update the adapter to the latest adapter foundation.
57
+ - Updating to adapter-utils 4.24.3 (automatic)
58
+ - Add sample token schemas (manual)
59
+ - Adding placement property to getToken response schema (manual - before encrypt)
60
+ - Adding sso default into action.json for getToken (manual - before response object)
61
+ - Add new adapter properties for metrics & mock (save_metric, mongo and return_raw) (automatic - check place manual before stub)
62
+ - Update sample properties to include new properties (manual)
63
+ - Update integration test for raw mockdata (automatic)
64
+ - Update test properties (manual)
65
+ - Changes to artifactize (automatic)
66
+ - Update type in sampleProperties so it is correct for the adapter (manual)
67
+ - Update the readme (automatic)
29
68
 
30
69
  See merge request itentialopensource/adapters/controller-orchestrator/adapter-onap_so!2
31
70
 
@@ -33,7 +72,7 @@ See merge request itentialopensource/adapters/controller-orchestrator/adapter-on
33
72
 
34
73
  ## 0.2.0 [09-16-2019]
35
74
 
36
- * september migration
75
+ - Update the adapter to the latest adapter foundation
37
76
 
38
77
  See merge request itentialopensource/adapters/controller-orchestrator/adapter-onap_so!1
39
78
 
@@ -41,7 +80,7 @@ See merge request itentialopensource/adapters/controller-orchestrator/adapter-on
41
80
 
42
81
  ## 0.1.1 [08-19-2019]
43
82
 
44
- * Bug fixes and performance improvements
83
+ - Initial Commit
45
84
 
46
85
  See commit 16461d0
47
86
 
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
8
8
 
9
9
  Examples of behavior that contributes to creating a positive environment include:
10
10
 
11
- * Using welcoming and inclusive language
12
- * Being respectful of differing viewpoints and experiences
13
- * Gracefully accepting constructive criticism
14
- * Focusing on what is best for the community
15
- * Showing empathy towards other community members
11
+ - Using welcoming and inclusive language
12
+ - Being respectful of differing viewpoints and experiences
13
+ - Gracefully accepting constructive criticism
14
+ - Focusing on what is best for the community
15
+ - Showing empathy towards other community members
16
16
 
17
17
  Examples of unacceptable behavior by participants include:
18
18
 
19
- * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
- * Trolling, insulting/derogatory comments, and personal or political attacks
21
- * Public or private harassment
22
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
- * Other conduct which could reasonably be considered inappropriate in a professional setting
19
+ - The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ - Trolling, insulting/derogatory comments, and personal or political attacks
21
+ - Public or private harassment
22
+ - Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ - Other conduct which could reasonably be considered inappropriate in a professional setting
24
24
 
25
25
  ## Our Responsibilities
26
26
 
@@ -34,15 +34,10 @@ This Code of Conduct applies both within project spaces and in public spaces whe
34
34
 
35
35
  ## Enforcement
36
36
 
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [support@itential.com](mailto:support@itential.com). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@itential.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
38
 
39
39
  Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
40
 
41
41
  ## Attribution
42
42
 
43
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
-
45
- [homepage]: http://contributor-covenant.org
46
- [version]: http://contributor-covenant.org/version/1/4/
47
-
48
- _return to [README](../README.md)_
43
+ This Code of Conduct is adapted from the <a href="http://contributor-covenant.org" target="_blank">Contributor Covenant</a>, version 1.4, available at <a href="http://contributor-covenant.org/version/1/4/" target="_blank">version</a>