@itentialopensource/adapter-etsi_sol005 0.1.1

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 (129) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/CHANGELOG.md +9 -0
  5. package/CODE_OF_CONDUCT.md +48 -0
  6. package/CONTRIBUTING.md +158 -0
  7. package/LICENSE +201 -0
  8. package/README.md +687 -0
  9. package/adapter.js +10403 -0
  10. package/adapterBase.js +1028 -0
  11. package/entities/.generic/action.json +109 -0
  12. package/entities/.generic/schema.json +23 -0
  13. package/entities/.system/action.json +50 -0
  14. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  15. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  16. package/entities/.system/schema.json +19 -0
  17. package/entities/.system/schemaTokenReq.json +53 -0
  18. package/entities/.system/schemaTokenResp.json +53 -0
  19. package/entities/Alarms/action.json +66 -0
  20. package/entities/Alarms/mockdatafiles/getAlarms-default.json +126 -0
  21. package/entities/Alarms/mockdatafiles/getAlarmsAlarmId-default.json +45 -0
  22. package/entities/Alarms/mockdatafiles/patchAlarmsAlarmId-default.json +3 -0
  23. package/entities/Alarms/schema.json +21 -0
  24. package/entities/ApiVersions/action.json +25 -0
  25. package/entities/ApiVersions/mockdatafiles/getApiVersions-default.json +55 -0
  26. package/entities/ApiVersions/schema.json +19 -0
  27. package/entities/CapacityThresholds/action.json +106 -0
  28. package/entities/CapacityThresholds/mockdatafiles/getCapacityThresholds-default.json +193 -0
  29. package/entities/CapacityThresholds/mockdatafiles/getCapacityThresholdsCapacityThresholdId-default.json +63 -0
  30. package/entities/CapacityThresholds/mockdatafiles/patchCapacityThresholdsCapacityThresholdId-default.json +26 -0
  31. package/entities/CapacityThresholds/mockdatafiles/postCapacityThresholds-default.json +50 -0
  32. package/entities/CapacityThresholds/schema.json +23 -0
  33. package/entities/NfviCapacityInfos/action.json +46 -0
  34. package/entities/NfviCapacityInfos/mockdatafiles/getNfviCapacityInfos-default.json +1457 -0
  35. package/entities/NfviCapacityInfos/mockdatafiles/getNfviCapacityInfosVimId-default.json +487 -0
  36. package/entities/NfviCapacityInfos/schema.json +20 -0
  37. package/entities/NsDescriptors/action.json +210 -0
  38. package/entities/NsDescriptors/mockdatafiles/getNsDescriptors-default.json +354 -0
  39. package/entities/NsDescriptors/mockdatafiles/getNsDescriptorsNsdInfoId-default.json +101 -0
  40. package/entities/NsDescriptors/mockdatafiles/patchNsDescriptorsNsdInfoId-default.json +10 -0
  41. package/entities/NsDescriptors/mockdatafiles/postNsDescriptors-default.json +136 -0
  42. package/entities/NsDescriptors/schema.json +83 -0
  43. package/entities/NsInstances/action.json +186 -0
  44. package/entities/NsInstances/mockdatafiles/querymultipleNSinstances-default.json +85311 -0
  45. package/entities/NsInstances/schema.json +27 -0
  46. package/entities/NsLcmOpOccs/action.json +106 -0
  47. package/entities/NsLcmOpOccs/mockdatafiles/querymultipleNSLCMoperationoccurrences-default.json +57603 -0
  48. package/entities/NsLcmOpOccs/schema.json +23 -0
  49. package/entities/Nslcm/action.json +44 -0
  50. package/entities/Nslcm/schema.json +20 -0
  51. package/entities/PmJobs/action.json +127 -0
  52. package/entities/PmJobs/mockdatafiles/getPmJobs-default.json +122 -0
  53. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobId-default.json +60 -0
  54. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobIdReportsReportId-default.json +148 -0
  55. package/entities/PmJobs/mockdatafiles/patchPmJobsPmJobId-default.json +22 -0
  56. package/entities/PmJobs/mockdatafiles/postPmJobs-default.json +52 -0
  57. package/entities/PmJobs/schema.json +24 -0
  58. package/entities/PnfDescriptors/action.json +210 -0
  59. package/entities/PnfDescriptors/mockdatafiles/getPnfDescriptors-default.json +113 -0
  60. package/entities/PnfDescriptors/mockdatafiles/getPnfDescriptorsPnfdInfoId-default.json +57 -0
  61. package/entities/PnfDescriptors/mockdatafiles/patchPnfDescriptorsPnfdInfoId-default.json +3 -0
  62. package/entities/PnfDescriptors/mockdatafiles/postPnfDescriptors-default.json +102 -0
  63. package/entities/PnfDescriptors/schema.json +83 -0
  64. package/entities/Subscriptions/action.json +86 -0
  65. package/entities/Subscriptions/mockdatafiles/getSubscriptions-default.json +482 -0
  66. package/entities/Subscriptions/mockdatafiles/getSubscriptionsSubscriptionId-default.json +152 -0
  67. package/entities/Subscriptions/mockdatafiles/postSubscriptions-default.json +151 -0
  68. package/entities/Subscriptions/schema.json +33 -0
  69. package/entities/Thresholds/action.json +106 -0
  70. package/entities/Thresholds/mockdatafiles/getThresholds-default.json +34 -0
  71. package/entities/Thresholds/mockdatafiles/getThresholdsThresholdId-default.json +30 -0
  72. package/entities/Thresholds/mockdatafiles/patchThresholdsThresholdId-default.json +18 -0
  73. package/entities/Thresholds/mockdatafiles/postThresholds-default.json +32 -0
  74. package/entities/Thresholds/schema.json +23 -0
  75. package/entities/VnfPackages/action.json +292 -0
  76. package/entities/VnfPackages/mockdatafiles/getVnfPackages-default.json +453 -0
  77. package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgId-default.json +204 -0
  78. package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgIdExtArtifactsAccess-default.json +14 -0
  79. package/entities/VnfPackages/mockdatafiles/patchVnfPackagesVnfPkgId-default.json +4 -0
  80. package/entities/VnfPackages/mockdatafiles/postVnfPackages-default.json +236 -0
  81. package/entities/VnfPackages/mockdatafiles/putVnfPackagesVnfPkgIdExtArtifactsAccess-default.json +14 -0
  82. package/entities/VnfPackages/schema.json +32 -0
  83. package/entities/VnfSnapshotPackages/action.json +289 -0
  84. package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackages-default.json +227 -0
  85. package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackagesVnfSnapshotPkgId-default.json +268 -0
  86. package/entities/VnfSnapshotPackages/mockdatafiles/patchVnfSnapshotPackagesVnfSnapshotPkgId-default.json +5 -0
  87. package/entities/VnfSnapshotPackages/mockdatafiles/postVnfSnapshotPackages-default.json +146 -0
  88. package/entities/VnfSnapshotPackages/schema.json +32 -0
  89. package/entities/VnfSnapshots/action.json +66 -0
  90. package/entities/VnfSnapshots/mockdatafiles/queryVNFsnapshots-default.json +1694 -0
  91. package/entities/VnfSnapshots/schema.json +21 -0
  92. package/error.json +184 -0
  93. package/package.json +85 -0
  94. package/pronghorn.json +18371 -0
  95. package/propertiesSchema.json +840 -0
  96. package/refs?service=git-upload-pack +0 -0
  97. package/report/creationReport.json +279 -0
  98. package/report/sol005_NSDmgmt_openapi.json +24207 -0
  99. package/report/sol005_capacity_openapi.json +14837 -0
  100. package/report/sol005_fault_openapi.json +8757 -0
  101. package/report/sol005_lifecycle_opneapi.json +61923 -0
  102. package/report/sol005_lifecycle_opneapi.json-OpenApi3Json.json +24758 -0
  103. package/report/sol005_package_openapi.json +19471 -0
  104. package/report/sol005_perf_openapi.json +11124 -0
  105. package/report/sol005_snapshot_openapi.json +16610 -0
  106. package/report/updateReport1646246505328.json +95 -0
  107. package/sampleProperties.json +106 -0
  108. package/test/integration/adapterTestBasicGet.js +85 -0
  109. package/test/integration/adapterTestConnectivity.js +93 -0
  110. package/test/integration/adapterTestIntegration.js +3685 -0
  111. package/test/unit/adapterBaseTestUnit.js +944 -0
  112. package/test/unit/adapterTestUnit.js +4287 -0
  113. package/utils/addAuth.js +94 -0
  114. package/utils/artifactize.js +146 -0
  115. package/utils/basicGet.js +50 -0
  116. package/utils/checkMigrate.js +63 -0
  117. package/utils/entitiesToDB.js +224 -0
  118. package/utils/findPath.js +74 -0
  119. package/utils/modify.js +154 -0
  120. package/utils/packModificationScript.js +35 -0
  121. package/utils/patches2bundledDeps.js +90 -0
  122. package/utils/pre-commit.sh +27 -0
  123. package/utils/removeHooks.js +20 -0
  124. package/utils/setup.js +33 -0
  125. package/utils/tbScript.js +169 -0
  126. package/utils/tbUtils.js +451 -0
  127. package/utils/testRunner.js +298 -0
  128. package/utils/troubleshootingAdapter.js +190 -0
  129. package/workflows/README.md +3 -0
@@ -0,0 +1,210 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postPnfDescriptors",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/postPnfDescriptors-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getPnfDescriptors",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": "mockdatafiles/getPnfDescriptors-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getPnfDescriptorsPnfdInfoId",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": "mockdatafiles/getPnfDescriptorsPnfdInfoId-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "patchPnfDescriptorsPnfdInfoId",
67
+ "protocol": "REST",
68
+ "method": "PATCH",
69
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": "mockdatafiles/patchPnfDescriptorsPnfdInfoId-default.json"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "deletePnfDescriptorsPnfdInfoId",
87
+ "protocol": "REST",
88
+ "method": "DELETE",
89
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "getPnfDescriptorsPnfdInfoIdPnfdContent",
107
+ "protocol": "REST",
108
+ "method": "GET",
109
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors/{pathv1}/pnfd_content?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "sendGetBody": false,
115
+ "requestDatatype": "JSON",
116
+ "responseDatatype": "JSON",
117
+ "headers": {},
118
+ "responseObjects": [
119
+ {
120
+ "type": "default",
121
+ "key": "",
122
+ "mockFile": ""
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "name": "putPnfDescriptorsPnfdInfoIdPnfdContent",
128
+ "protocol": "REST",
129
+ "method": "PUT",
130
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors/{pathv1}/pnfd_content?{query}",
131
+ "requestSchema": "schema.json",
132
+ "responseSchema": "schema.json",
133
+ "timeout": 0,
134
+ "sendEmpty": false,
135
+ "requestDatatype": "JSON",
136
+ "responseDatatype": "JSON",
137
+ "headers": {},
138
+ "responseObjects": [
139
+ {
140
+ "type": "default",
141
+ "key": "",
142
+ "mockFile": ""
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ "name": "getPnfDescriptorsPnfdInfoIdPnfd",
148
+ "protocol": "REST",
149
+ "method": "GET",
150
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors/{pathv1}/pnfd?{query}",
151
+ "requestSchema": "schema.json",
152
+ "responseSchema": "schema.json",
153
+ "timeout": 0,
154
+ "sendEmpty": false,
155
+ "sendGetBody": false,
156
+ "requestDatatype": "JSON",
157
+ "responseDatatype": "JSON",
158
+ "headers": {},
159
+ "responseObjects": [
160
+ {
161
+ "type": "default",
162
+ "key": "",
163
+ "mockFile": ""
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "name": "getPnfDescriptorsPnfdInfoIdManifest",
169
+ "protocol": "REST",
170
+ "method": "GET",
171
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors/{pathv1}/manifest?{query}",
172
+ "requestSchema": "schema.json",
173
+ "responseSchema": "schema.json",
174
+ "timeout": 0,
175
+ "sendEmpty": false,
176
+ "sendGetBody": false,
177
+ "requestDatatype": "JSON",
178
+ "responseDatatype": "JSON",
179
+ "headers": {},
180
+ "responseObjects": [
181
+ {
182
+ "type": "default",
183
+ "key": "",
184
+ "mockFile": ""
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "name": "getPnfDescriptorsPnfdInfoIdArtifactsArtifactPath",
190
+ "protocol": "REST",
191
+ "method": "GET",
192
+ "entitypath": "{base_path}/{version}/nsd/v2/pnf_descriptors/{pathv1}/artifacts/{pathv2}?{query}",
193
+ "requestSchema": "schema.json",
194
+ "responseSchema": "schema.json",
195
+ "timeout": 0,
196
+ "sendEmpty": false,
197
+ "sendGetBody": false,
198
+ "requestDatatype": "JSON",
199
+ "responseDatatype": "JSON",
200
+ "headers": {},
201
+ "responseObjects": [
202
+ {
203
+ "type": "default",
204
+ "key": "",
205
+ "mockFile": ""
206
+ }
207
+ ]
208
+ }
209
+ ]
210
+ }
@@ -0,0 +1,113 @@
1
+ [
2
+ {
3
+ "id": "string",
4
+ "pnfdId": "string",
5
+ "pnfdName": "string",
6
+ "pnfdersion": "string",
7
+ "pnfdProvider": "string",
8
+ "pnfdInvariantId": "string",
9
+ "archiveSecurityOption": "OPTION_2",
10
+ "signingCertificate": "string",
11
+ "artifacts": [
12
+ {
13
+ "artifactPath": "string",
14
+ "checksum": {
15
+ "algorithm": "string",
16
+ "hash": "string"
17
+ },
18
+ "nonManoArtifactSetId": "string",
19
+ "metadata": {}
20
+ },
21
+ {
22
+ "artifactPath": "string",
23
+ "checksum": {
24
+ "algorithm": "string",
25
+ "hash": "string"
26
+ },
27
+ "nonManoArtifactSetId": "string",
28
+ "metadata": {}
29
+ },
30
+ {
31
+ "artifactPath": "string",
32
+ "checksum": {
33
+ "algorithm": "string",
34
+ "hash": "string"
35
+ },
36
+ "nonManoArtifactSetId": "string",
37
+ "metadata": {}
38
+ },
39
+ {
40
+ "artifactPath": "string",
41
+ "checksum": {
42
+ "algorithm": "string",
43
+ "hash": "string"
44
+ },
45
+ "nonManoArtifactSetId": "string",
46
+ "metadata": {}
47
+ },
48
+ {
49
+ "artifactPath": "string",
50
+ "checksum": {
51
+ "algorithm": "string",
52
+ "hash": "string"
53
+ },
54
+ "nonManoArtifactSetId": "string",
55
+ "metadata": {}
56
+ },
57
+ {
58
+ "artifactPath": "string",
59
+ "checksum": {
60
+ "algorithm": "string",
61
+ "hash": "string"
62
+ },
63
+ "nonManoArtifactSetId": "string",
64
+ "metadata": {}
65
+ },
66
+ {
67
+ "artifactPath": "string",
68
+ "checksum": {
69
+ "algorithm": "string",
70
+ "hash": "string"
71
+ },
72
+ "nonManoArtifactSetId": "string",
73
+ "metadata": {}
74
+ },
75
+ {
76
+ "artifactPath": "string",
77
+ "checksum": {
78
+ "algorithm": "string",
79
+ "hash": "string"
80
+ },
81
+ "nonManoArtifactSetId": "string",
82
+ "metadata": {}
83
+ },
84
+ {
85
+ "artifactPath": "string",
86
+ "checksum": {
87
+ "algorithm": "string",
88
+ "hash": "string"
89
+ },
90
+ "nonManoArtifactSetId": "string",
91
+ "metadata": {}
92
+ }
93
+ ],
94
+ "pnfdOnboardingState": "UPLOADING",
95
+ "onboardingFailureDetails": {
96
+ "type": "string",
97
+ "title": "string",
98
+ "status": 5,
99
+ "detail": "string",
100
+ "instance": "string"
101
+ },
102
+ "pnfdUsageState": "NOT_IN_USE",
103
+ "userDefinedData": {},
104
+ "_links": {
105
+ "self": {
106
+ "href": "string"
107
+ },
108
+ "pnfd_content": {
109
+ "href": "string"
110
+ }
111
+ }
112
+ }
113
+ ]
@@ -0,0 +1,57 @@
1
+ {
2
+ "id": "string",
3
+ "pnfdId": "string",
4
+ "pnfdName": "string",
5
+ "pnfdersion": "string",
6
+ "pnfdProvider": "string",
7
+ "pnfdInvariantId": "string",
8
+ "archiveSecurityOption": "OPTION_2",
9
+ "signingCertificate": "string",
10
+ "artifacts": [
11
+ {
12
+ "artifactPath": "string",
13
+ "checksum": {
14
+ "algorithm": "string",
15
+ "hash": "string"
16
+ },
17
+ "nonManoArtifactSetId": "string",
18
+ "metadata": {}
19
+ },
20
+ {
21
+ "artifactPath": "string",
22
+ "checksum": {
23
+ "algorithm": "string",
24
+ "hash": "string"
25
+ },
26
+ "nonManoArtifactSetId": "string",
27
+ "metadata": {}
28
+ },
29
+ {
30
+ "artifactPath": "string",
31
+ "checksum": {
32
+ "algorithm": "string",
33
+ "hash": "string"
34
+ },
35
+ "nonManoArtifactSetId": "string",
36
+ "metadata": {}
37
+ }
38
+ ],
39
+ "pnfdOnboardingState": "ERROR",
40
+ "onboardingFailureDetails": {
41
+ "type": "string",
42
+ "title": "string",
43
+ "status": 6,
44
+ "detail": "string",
45
+ "instance": "string"
46
+ },
47
+ "pnfdUsageState": "NOT_IN_USE",
48
+ "userDefinedData": {},
49
+ "_links": {
50
+ "self": {
51
+ "href": "string"
52
+ },
53
+ "pnfd_content": {
54
+ "href": "string"
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "id": "string",
3
+ "pnfdId": "string",
4
+ "pnfdName": "string",
5
+ "pnfdersion": "string",
6
+ "pnfdProvider": "string",
7
+ "pnfdInvariantId": "string",
8
+ "archiveSecurityOption": "OPTION_1",
9
+ "signingCertificate": "string",
10
+ "artifacts": [
11
+ {
12
+ "artifactPath": "string",
13
+ "checksum": {
14
+ "algorithm": "string",
15
+ "hash": "string"
16
+ },
17
+ "nonManoArtifactSetId": "string",
18
+ "metadata": {}
19
+ },
20
+ {
21
+ "artifactPath": "string",
22
+ "checksum": {
23
+ "algorithm": "string",
24
+ "hash": "string"
25
+ },
26
+ "nonManoArtifactSetId": "string",
27
+ "metadata": {}
28
+ },
29
+ {
30
+ "artifactPath": "string",
31
+ "checksum": {
32
+ "algorithm": "string",
33
+ "hash": "string"
34
+ },
35
+ "nonManoArtifactSetId": "string",
36
+ "metadata": {}
37
+ },
38
+ {
39
+ "artifactPath": "string",
40
+ "checksum": {
41
+ "algorithm": "string",
42
+ "hash": "string"
43
+ },
44
+ "nonManoArtifactSetId": "string",
45
+ "metadata": {}
46
+ },
47
+ {
48
+ "artifactPath": "string",
49
+ "checksum": {
50
+ "algorithm": "string",
51
+ "hash": "string"
52
+ },
53
+ "nonManoArtifactSetId": "string",
54
+ "metadata": {}
55
+ },
56
+ {
57
+ "artifactPath": "string",
58
+ "checksum": {
59
+ "algorithm": "string",
60
+ "hash": "string"
61
+ },
62
+ "nonManoArtifactSetId": "string",
63
+ "metadata": {}
64
+ },
65
+ {
66
+ "artifactPath": "string",
67
+ "checksum": {
68
+ "algorithm": "string",
69
+ "hash": "string"
70
+ },
71
+ "nonManoArtifactSetId": "string",
72
+ "metadata": {}
73
+ },
74
+ {
75
+ "artifactPath": "string",
76
+ "checksum": {
77
+ "algorithm": "string",
78
+ "hash": "string"
79
+ },
80
+ "nonManoArtifactSetId": "string",
81
+ "metadata": {}
82
+ }
83
+ ],
84
+ "pnfdOnboardingState": "ERROR",
85
+ "onboardingFailureDetails": {
86
+ "type": "string",
87
+ "title": "string",
88
+ "status": 10,
89
+ "detail": "string",
90
+ "instance": "string"
91
+ },
92
+ "pnfdUsageState": "IN_USE",
93
+ "userDefinedData": {},
94
+ "_links": {
95
+ "self": {
96
+ "href": "string"
97
+ },
98
+ "pnfd_content": {
99
+ "href": "string"
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "postPnfDescriptors",
12
+ "enum": [
13
+ "postPnfDescriptors",
14
+ "getPnfDescriptors",
15
+ "getPnfDescriptorsPnfdInfoId",
16
+ "patchPnfDescriptorsPnfdInfoId",
17
+ "deletePnfDescriptorsPnfdInfoId",
18
+ "getPnfDescriptorsPnfdInfoIdPnfdContent",
19
+ "putPnfDescriptorsPnfdInfoIdPnfdContent",
20
+ "getPnfDescriptorsPnfdInfoIdPnfd",
21
+ "getPnfDescriptorsPnfdInfoIdManifest",
22
+ "getPnfDescriptorsPnfdInfoIdArtifactsArtifactPath"
23
+ ],
24
+ "external_name": "ph_request_type"
25
+ },
26
+ "allFields": {
27
+ "type": "string",
28
+ "description": "Include all complex attributes in the response. See clause 5.3 of ETSI GS NFV-SOL 013. The NFV-MANO functional entity shall support this parameter.",
29
+ "parse": false,
30
+ "encode": false,
31
+ "encrypt": {
32
+ "type": "AES",
33
+ "key": ""
34
+ },
35
+ "external_name": "all_fields"
36
+ },
37
+ "excludeFields": {
38
+ "type": "string",
39
+ "description": "Complex attributes to be excluded from the response. See clause 5.3 of ETSI GS NFV-SOL 013 for details. The NFV-MANO functional entity should support this parameter.",
40
+ "parse": false,
41
+ "encode": false,
42
+ "encrypt": {
43
+ "type": "AES",
44
+ "key": ""
45
+ },
46
+ "external_name": "exclude_fields"
47
+ },
48
+ "excludeDefault": {
49
+ "type": "string",
50
+ "description": "Indicates to exclude the following complex attributes from the response. See clause 5.3 of ETSI GS NFV-SOL 013 for details. The NFV-MANO functional entity shall support t...(description truncated)",
51
+ "parse": false,
52
+ "encode": false,
53
+ "encrypt": {
54
+ "type": "AES",
55
+ "key": ""
56
+ },
57
+ "external_name": "exclude_default"
58
+ },
59
+ "nextpageOpaqueMarker": {
60
+ "type": "string",
61
+ "description": "Marker to obtain the next page of a paged response. Shall be supported by the NFV-MANO functional entity if the entity supports alternative 2 (paging) according to clause...(description truncated)",
62
+ "parse": false,
63
+ "encode": false,
64
+ "encrypt": {
65
+ "type": "AES",
66
+ "key": ""
67
+ },
68
+ "external_name": "nextpage_opaque_marker"
69
+ },
70
+ "includeSignatures": {
71
+ "type": "string",
72
+ "description": "If this parameter is provided, the NFVO shall include in the ZIP archive the security information as specified above. This URI query parameter is a flag, i.e. it shall ha...(description truncated)",
73
+ "parse": false,
74
+ "encode": false,
75
+ "encrypt": {
76
+ "type": "AES",
77
+ "key": ""
78
+ },
79
+ "external_name": "include_signatures"
80
+ }
81
+ },
82
+ "definitions": {}
83
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postSubscriptions",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/nsd/v2/subscriptions?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/postSubscriptions-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getSubscriptions",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/nsd/v2/subscriptions?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": "mockdatafiles/getSubscriptions-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getSubscriptionsSubscriptionId",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/nsd/v2/subscriptions/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": "mockdatafiles/getSubscriptionsSubscriptionId-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "deleteSubscriptionsSubscriptionId",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "{base_path}/{version}/nsd/v2/subscriptions/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ }
85
+ ]
86
+ }