@itentialopensource/adapter-etsi_sol003 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.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +48 -0
- package/CONTRIBUTING.md +158 -0
- package/LICENSE +201 -0
- package/README.md +687 -0
- package/adapter.js +8178 -0
- package/adapterBase.js +1028 -0
- package/entities/.generic/action.json +109 -0
- package/entities/.generic/schema.json +23 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Alarms/action.json +66 -0
- package/entities/Alarms/mockdatafiles/getAlarms-default.json +46 -0
- package/entities/Alarms/mockdatafiles/getAlarmsAlarmId-default.json +50 -0
- package/entities/Alarms/mockdatafiles/patchAlarmsAlarmId-default.json +3 -0
- package/entities/Alarms/schema.json +21 -0
- package/entities/ApiVersions/action.json +25 -0
- package/entities/ApiVersions/mockdatafiles/getApiVersions-default.json +10 -0
- package/entities/ApiVersions/schema.json +19 -0
- package/entities/Grants/action.json +45 -0
- package/entities/Grants/mockdatafiles/getGrantsGrantId-default.json +1041 -0
- package/entities/Grants/mockdatafiles/postGrants-default.json +1290 -0
- package/entities/Grants/schema.json +20 -0
- package/entities/Indicators/action.json +108 -0
- package/entities/Indicators/mockdatafiles/getIndicators-default.json +58 -0
- package/entities/Indicators/mockdatafiles/getIndicatorsSubscriptionsSubscriptionId-default.json +2038 -0
- package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceId-default.json +16 -0
- package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceIdIndicatorId-default.json +14 -0
- package/entities/Indicators/schema.json +23 -0
- package/entities/OnboardedVnfPackages/action.json +151 -0
- package/entities/OnboardedVnfPackages/mockdatafiles/getOnboardedVnfPackages-default.json +161 -0
- package/entities/OnboardedVnfPackages/mockdatafiles/getOnboardedVnfPackagesVnfdId-default.json +235 -0
- package/entities/OnboardedVnfPackages/schema.json +25 -0
- package/entities/PmJobs/action.json +127 -0
- package/entities/PmJobs/mockdatafiles/getPmJobs-default.json +217 -0
- package/entities/PmJobs/mockdatafiles/getPmJobsPmJobId-default.json +77 -0
- package/entities/PmJobs/mockdatafiles/getPmJobsPmJobIdReportsReportId-default.json +212 -0
- package/entities/PmJobs/mockdatafiles/patchPmJobsPmJobId-default.json +26 -0
- package/entities/PmJobs/mockdatafiles/postPmJobs-default.json +77 -0
- package/entities/PmJobs/schema.json +24 -0
- package/entities/Subscriptions/action.json +86 -0
- package/entities/Subscriptions/mockdatafiles/getSubscriptions-default.json +147 -0
- package/entities/Subscriptions/mockdatafiles/getSubscriptionsSubscriptionId-default.json +41 -0
- package/entities/Subscriptions/mockdatafiles/postSubscriptions-default.json +44 -0
- package/entities/Subscriptions/schema.json +33 -0
- package/entities/Thresholds/action.json +106 -0
- package/entities/Thresholds/mockdatafiles/getThresholds-default.json +62 -0
- package/entities/Thresholds/mockdatafiles/getThresholdsThresholdId-default.json +30 -0
- package/entities/Thresholds/mockdatafiles/patchThresholdsThresholdId-default.json +18 -0
- package/entities/Thresholds/mockdatafiles/postThresholds-default.json +31 -0
- package/entities/Thresholds/schema.json +23 -0
- package/entities/VnfInstances/action.json +326 -0
- package/entities/VnfInstances/mockdatafiles/getVnfInstances-default.json +76043 -0
- package/entities/VnfInstances/mockdatafiles/getVnfInstancesVnfInstanceId-default.json +16746 -0
- package/entities/VnfInstances/mockdatafiles/patchVnfInstancesVnfInstanceId-default.json +14159 -0
- package/entities/VnfInstances/mockdatafiles/postVnfInstances-default.json +24811 -0
- package/entities/VnfInstances/schema.json +34 -0
- package/entities/VnfLcmOpOccs/action.json +126 -0
- package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccs-default.json +1098 -0
- package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccsVnfLcmOpOccId-default.json +755 -0
- package/entities/VnfLcmOpOccs/mockdatafiles/postVnfLcmOpOccsVnfLcmOpOccIdFail-default.json +988 -0
- package/entities/VnfLcmOpOccs/schema.json +24 -0
- package/entities/VnfPackages/action.json +130 -0
- package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgId-default.json +166 -0
- package/entities/VnfPackages/schema.json +24 -0
- package/entities/VnfSnapshotPackages/action.json +88 -0
- package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackages-default.json +178 -0
- package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackagesVnfSnapshotPkgId-default.json +44 -0
- package/entities/VnfSnapshotPackages/schema.json +22 -0
- package/entities/VnfSnapshots/action.json +127 -0
- package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshots-default.json +3832 -0
- package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshotsVnfSnapshotInfoId-default.json +97152 -0
- package/entities/VnfSnapshots/mockdatafiles/patchVnfSnapshotsVnfSnapshotInfoId-default.json +30772 -0
- package/entities/VnfSnapshots/mockdatafiles/postVnfSnapshots-default.json +13292 -0
- package/entities/VnfSnapshots/schema.json +24 -0
- package/error.json +184 -0
- package/package.json +85 -0
- package/pronghorn.json +27747 -0
- package/propertiesSchema.json +840 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +189 -0
- package/report/sol003_virtual_openapi.json +4328 -0
- package/report/updateReport1646242954642.json +95 -0
- package/sampleProperties.json +106 -0
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +3597 -0
- package/test/unit/adapterBaseTestUnit.js +944 -0
- package/test/unit/adapterTestUnit.js +3564 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +224 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +27 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +169 -0
- package/utils/tbUtils.js +451 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +190 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getVnfLcmOpOccs",
|
|
14
|
+
"getVnfLcmOpOccsVnfLcmOpOccId",
|
|
15
|
+
"postVnfLcmOpOccsVnfLcmOpOccIdRetry",
|
|
16
|
+
"postVnfLcmOpOccsVnfLcmOpOccIdRollback",
|
|
17
|
+
"postVnfLcmOpOccsVnfLcmOpOccIdFail",
|
|
18
|
+
"postVnfLcmOpOccsVnfLcmOpOccIdCancel"
|
|
19
|
+
],
|
|
20
|
+
"external_name": "ph_request_type"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"definitions": {}
|
|
24
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getVnfPackagesVnfPkgId",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/vnfpkgm/v2/vnf_packages/{pathv1}?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": "mockdatafiles/getVnfPackagesVnfPkgId-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "getVnfPackagesVnfPkgIdVnfd",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"entitypath": "{base_path}/{version}/vnfpkgm/v2/vnf_packages/{pathv1}/vnfd?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
34
|
+
"requestDatatype": "JSON",
|
|
35
|
+
"responseDatatype": "JSON",
|
|
36
|
+
"headers": {},
|
|
37
|
+
"responseObjects": [
|
|
38
|
+
{
|
|
39
|
+
"type": "default",
|
|
40
|
+
"key": "",
|
|
41
|
+
"mockFile": ""
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "getVnfPackagesVnfPkgIdManifest",
|
|
47
|
+
"protocol": "REST",
|
|
48
|
+
"method": "GET",
|
|
49
|
+
"entitypath": "{base_path}/{version}/vnfpkgm/v2/vnf_packages/{pathv1}/manifest?{query}",
|
|
50
|
+
"requestSchema": "schema.json",
|
|
51
|
+
"responseSchema": "schema.json",
|
|
52
|
+
"timeout": 0,
|
|
53
|
+
"sendEmpty": false,
|
|
54
|
+
"sendGetBody": false,
|
|
55
|
+
"requestDatatype": "JSON",
|
|
56
|
+
"responseDatatype": "JSON",
|
|
57
|
+
"headers": {},
|
|
58
|
+
"responseObjects": [
|
|
59
|
+
{
|
|
60
|
+
"type": "default",
|
|
61
|
+
"key": "",
|
|
62
|
+
"mockFile": ""
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "getVnfPackagesVnfPkgIdPackageContent",
|
|
68
|
+
"protocol": "REST",
|
|
69
|
+
"method": "GET",
|
|
70
|
+
"entitypath": "{base_path}/{version}/vnfpkgm/v2/vnf_packages/{pathv1}/package_content?{query}",
|
|
71
|
+
"requestSchema": "schema.json",
|
|
72
|
+
"responseSchema": "schema.json",
|
|
73
|
+
"timeout": 0,
|
|
74
|
+
"sendEmpty": false,
|
|
75
|
+
"sendGetBody": false,
|
|
76
|
+
"requestDatatype": "JSON",
|
|
77
|
+
"responseDatatype": "JSON",
|
|
78
|
+
"headers": {},
|
|
79
|
+
"responseObjects": [
|
|
80
|
+
{
|
|
81
|
+
"type": "default",
|
|
82
|
+
"key": "",
|
|
83
|
+
"mockFile": ""
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "getVnfPackagesVnfPkgIdArtifacts",
|
|
89
|
+
"protocol": "REST",
|
|
90
|
+
"method": "GET",
|
|
91
|
+
"entitypath": "{base_path}/{version}/vnfpkgm/v2/vnf_packages/{pathv1}/artifacts?{query}",
|
|
92
|
+
"requestSchema": "schema.json",
|
|
93
|
+
"responseSchema": "schema.json",
|
|
94
|
+
"timeout": 0,
|
|
95
|
+
"sendEmpty": false,
|
|
96
|
+
"sendGetBody": false,
|
|
97
|
+
"requestDatatype": "JSON",
|
|
98
|
+
"responseDatatype": "JSON",
|
|
99
|
+
"headers": {},
|
|
100
|
+
"responseObjects": [
|
|
101
|
+
{
|
|
102
|
+
"type": "default",
|
|
103
|
+
"key": "",
|
|
104
|
+
"mockFile": ""
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "getVnfPackagesVnfPkgIdArtifactsArtifactPath",
|
|
110
|
+
"protocol": "REST",
|
|
111
|
+
"method": "GET",
|
|
112
|
+
"entitypath": "{base_path}/{version}/vnfpkgm/v2/vnf_packages/{pathv1}/artifacts/{pathv2}?{query}",
|
|
113
|
+
"requestSchema": "schema.json",
|
|
114
|
+
"responseSchema": "schema.json",
|
|
115
|
+
"timeout": 0,
|
|
116
|
+
"sendEmpty": false,
|
|
117
|
+
"sendGetBody": false,
|
|
118
|
+
"requestDatatype": "JSON",
|
|
119
|
+
"responseDatatype": "JSON",
|
|
120
|
+
"headers": {},
|
|
121
|
+
"responseObjects": [
|
|
122
|
+
{
|
|
123
|
+
"type": "default",
|
|
124
|
+
"key": "",
|
|
125
|
+
"mockFile": ""
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"vnfdId": "string",
|
|
4
|
+
"vnfProvider": "string",
|
|
5
|
+
"vnfProductName": "string",
|
|
6
|
+
"vnfSoftwareVersion": "string",
|
|
7
|
+
"vnfdVersion": "string",
|
|
8
|
+
"compatibleSpecificationVersions": [
|
|
9
|
+
"string",
|
|
10
|
+
"string",
|
|
11
|
+
"string",
|
|
12
|
+
"string"
|
|
13
|
+
],
|
|
14
|
+
"checksum": "string",
|
|
15
|
+
"packageSecurityOption": "OPTION_1",
|
|
16
|
+
"signingCertificate": "string",
|
|
17
|
+
"softwareImages": [
|
|
18
|
+
{
|
|
19
|
+
"id": "string",
|
|
20
|
+
"name": "string",
|
|
21
|
+
"provider": "string",
|
|
22
|
+
"version": "string",
|
|
23
|
+
"checksum": "string",
|
|
24
|
+
"isEncrypted": true,
|
|
25
|
+
"containerFormat": "DOCKER",
|
|
26
|
+
"diskFormat": "ISO",
|
|
27
|
+
"createdAt": "string",
|
|
28
|
+
"minDisk": 5,
|
|
29
|
+
"minRam": 6,
|
|
30
|
+
"size": 3,
|
|
31
|
+
"userMetadata": {},
|
|
32
|
+
"imagePath": "string",
|
|
33
|
+
"imageUri": "string"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "string",
|
|
37
|
+
"name": "string",
|
|
38
|
+
"provider": "string",
|
|
39
|
+
"version": "string",
|
|
40
|
+
"checksum": "string",
|
|
41
|
+
"isEncrypted": false,
|
|
42
|
+
"containerFormat": "BARE",
|
|
43
|
+
"diskFormat": "VHDX",
|
|
44
|
+
"createdAt": "string",
|
|
45
|
+
"minDisk": 4,
|
|
46
|
+
"minRam": 2,
|
|
47
|
+
"size": 10,
|
|
48
|
+
"userMetadata": {},
|
|
49
|
+
"imagePath": "string",
|
|
50
|
+
"imageUri": "string"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "string",
|
|
54
|
+
"name": "string",
|
|
55
|
+
"provider": "string",
|
|
56
|
+
"version": "string",
|
|
57
|
+
"checksum": "string",
|
|
58
|
+
"isEncrypted": false,
|
|
59
|
+
"containerFormat": "BARE",
|
|
60
|
+
"diskFormat": "QCOW2",
|
|
61
|
+
"createdAt": "string",
|
|
62
|
+
"minDisk": 2,
|
|
63
|
+
"minRam": 7,
|
|
64
|
+
"size": 4,
|
|
65
|
+
"userMetadata": {},
|
|
66
|
+
"imagePath": "string",
|
|
67
|
+
"imageUri": "string"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "string",
|
|
71
|
+
"name": "string",
|
|
72
|
+
"provider": "string",
|
|
73
|
+
"version": "string",
|
|
74
|
+
"checksum": "string",
|
|
75
|
+
"isEncrypted": false,
|
|
76
|
+
"containerFormat": "BARE",
|
|
77
|
+
"diskFormat": "QCOW2",
|
|
78
|
+
"createdAt": "string",
|
|
79
|
+
"minDisk": 8,
|
|
80
|
+
"minRam": 8,
|
|
81
|
+
"size": 8,
|
|
82
|
+
"userMetadata": {},
|
|
83
|
+
"imagePath": "string",
|
|
84
|
+
"imageUri": "string"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"additionalArtifacts": [
|
|
88
|
+
{
|
|
89
|
+
"artifactPath": "string",
|
|
90
|
+
"artifactURI": [
|
|
91
|
+
"string",
|
|
92
|
+
"string",
|
|
93
|
+
"string",
|
|
94
|
+
"string",
|
|
95
|
+
"string",
|
|
96
|
+
"string",
|
|
97
|
+
"string",
|
|
98
|
+
"string",
|
|
99
|
+
"string"
|
|
100
|
+
],
|
|
101
|
+
"checksum": "string",
|
|
102
|
+
"isEncrypted": true,
|
|
103
|
+
"nonManoArtifactSetId": "string",
|
|
104
|
+
"artifactClassification": "TESTING",
|
|
105
|
+
"metadata": {}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"artifactPath": "string",
|
|
109
|
+
"artifactURI": [
|
|
110
|
+
"string",
|
|
111
|
+
"string",
|
|
112
|
+
"string",
|
|
113
|
+
"string",
|
|
114
|
+
"string",
|
|
115
|
+
"string"
|
|
116
|
+
],
|
|
117
|
+
"checksum": "string",
|
|
118
|
+
"isEncrypted": false,
|
|
119
|
+
"nonManoArtifactSetId": "string",
|
|
120
|
+
"artifactClassification": "HISTORY",
|
|
121
|
+
"metadata": {}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"artifactPath": "string",
|
|
125
|
+
"artifactURI": [
|
|
126
|
+
"string",
|
|
127
|
+
"string",
|
|
128
|
+
"string",
|
|
129
|
+
"string",
|
|
130
|
+
"string",
|
|
131
|
+
"string",
|
|
132
|
+
"string",
|
|
133
|
+
"string",
|
|
134
|
+
"string"
|
|
135
|
+
],
|
|
136
|
+
"checksum": "string",
|
|
137
|
+
"isEncrypted": true,
|
|
138
|
+
"nonManoArtifactSetId": "string",
|
|
139
|
+
"artifactClassification": "TESTING",
|
|
140
|
+
"metadata": {}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"onboardingState": "UPLOADING",
|
|
144
|
+
"operationalState": "DISABLED",
|
|
145
|
+
"usageState": "NOT_IN_USE",
|
|
146
|
+
"vnfmInfo": "string",
|
|
147
|
+
"userDefinedData": {},
|
|
148
|
+
"onboardingFailureDetails": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"title": "string",
|
|
151
|
+
"status": 5,
|
|
152
|
+
"detail": "string",
|
|
153
|
+
"instance": "string"
|
|
154
|
+
},
|
|
155
|
+
"_links": {
|
|
156
|
+
"self": {
|
|
157
|
+
"href": "string"
|
|
158
|
+
},
|
|
159
|
+
"vnfd": {
|
|
160
|
+
"href": "string"
|
|
161
|
+
},
|
|
162
|
+
"packageContent": {
|
|
163
|
+
"href": "string"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getVnfPackagesVnfPkgId",
|
|
14
|
+
"getVnfPackagesVnfPkgIdVnfd",
|
|
15
|
+
"getVnfPackagesVnfPkgIdManifest",
|
|
16
|
+
"getVnfPackagesVnfPkgIdPackageContent",
|
|
17
|
+
"getVnfPackagesVnfPkgIdArtifacts",
|
|
18
|
+
"getVnfPackagesVnfPkgIdArtifactsArtifactPath"
|
|
19
|
+
],
|
|
20
|
+
"external_name": "ph_request_type"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"definitions": {}
|
|
24
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getVnfSnapshotPackages",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/vnfsnapshotpkgm/v1/vnf_snapshot_packages?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": "mockdatafiles/getVnfSnapshotPackages-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "getVnfSnapshotPackagesVnfSnapshotPkgId",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"entitypath": "{base_path}/{version}/vnfsnapshotpkgm/v1/vnf_snapshot_packages/{pathv1}?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
34
|
+
"requestDatatype": "JSON",
|
|
35
|
+
"responseDatatype": "JSON",
|
|
36
|
+
"headers": {},
|
|
37
|
+
"responseObjects": [
|
|
38
|
+
{
|
|
39
|
+
"type": "default",
|
|
40
|
+
"key": "",
|
|
41
|
+
"mockFile": "mockdatafiles/getVnfSnapshotPackagesVnfSnapshotPkgId-default.json"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "getVnfSnapshotPackagesVnfSnapshotPkgIdPackageContent",
|
|
47
|
+
"protocol": "REST",
|
|
48
|
+
"method": "GET",
|
|
49
|
+
"entitypath": "{base_path}/{version}/vnfsnapshotpkgm/v1/vnf_snapshot_packages/{pathv1}/package_content?{query}",
|
|
50
|
+
"requestSchema": "schema.json",
|
|
51
|
+
"responseSchema": "schema.json",
|
|
52
|
+
"timeout": 0,
|
|
53
|
+
"sendEmpty": false,
|
|
54
|
+
"sendGetBody": false,
|
|
55
|
+
"requestDatatype": "JSON",
|
|
56
|
+
"responseDatatype": "JSON",
|
|
57
|
+
"headers": {},
|
|
58
|
+
"responseObjects": [
|
|
59
|
+
{
|
|
60
|
+
"type": "default",
|
|
61
|
+
"key": "",
|
|
62
|
+
"mockFile": ""
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "getVnfSnapshotPackagesVnfSnapshotPkgIdArtifactsArtifactPath",
|
|
68
|
+
"protocol": "REST",
|
|
69
|
+
"method": "GET",
|
|
70
|
+
"entitypath": "{base_path}/{version}/vnfsnapshotpkgm/v1/vnf_snapshot_packages/{pathv1}/artifacts/{pathv2}?{query}",
|
|
71
|
+
"requestSchema": "schema.json",
|
|
72
|
+
"responseSchema": "schema.json",
|
|
73
|
+
"timeout": 0,
|
|
74
|
+
"sendEmpty": false,
|
|
75
|
+
"sendGetBody": false,
|
|
76
|
+
"requestDatatype": "JSON",
|
|
77
|
+
"responseDatatype": "JSON",
|
|
78
|
+
"headers": {},
|
|
79
|
+
"responseObjects": [
|
|
80
|
+
{
|
|
81
|
+
"type": "default",
|
|
82
|
+
"key": "",
|
|
83
|
+
"mockFile": ""
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "string",
|
|
4
|
+
"vnfSnapshotPkgUniqueId": "string",
|
|
5
|
+
"name": "string",
|
|
6
|
+
"checksum": "string",
|
|
7
|
+
"createdAt": "string",
|
|
8
|
+
"vnfSnapshotId": "string",
|
|
9
|
+
"vnfcSnapshotInfoIds": {},
|
|
10
|
+
"isFullSnapshot": true,
|
|
11
|
+
"vnfdInfo": {
|
|
12
|
+
"avnfdId": "string",
|
|
13
|
+
"vnfdPath": "string",
|
|
14
|
+
"checksum": "string",
|
|
15
|
+
"isEncrypted": true
|
|
16
|
+
},
|
|
17
|
+
"vnfsr": {
|
|
18
|
+
"recordPath": "string",
|
|
19
|
+
"checksum": "string",
|
|
20
|
+
"isEncrypted": false
|
|
21
|
+
},
|
|
22
|
+
"vnfcSnapshotImages": {},
|
|
23
|
+
"additionalArtifacts": {},
|
|
24
|
+
"state": "AVAILABLE",
|
|
25
|
+
"isCancelPending": true,
|
|
26
|
+
"failureDetails": {
|
|
27
|
+
"errorType": "UPLOAD_ERROR",
|
|
28
|
+
"details": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"title": "string",
|
|
31
|
+
"status": 4,
|
|
32
|
+
"detail": "string",
|
|
33
|
+
"instance": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"userDefinedData": {},
|
|
37
|
+
"_links": {
|
|
38
|
+
"self": {
|
|
39
|
+
"href": "string"
|
|
40
|
+
},
|
|
41
|
+
"packageContent": {
|
|
42
|
+
"href": "string"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "string",
|
|
48
|
+
"vnfSnapshotPkgUniqueId": "string",
|
|
49
|
+
"name": "string",
|
|
50
|
+
"checksum": "string",
|
|
51
|
+
"createdAt": "string",
|
|
52
|
+
"vnfSnapshotId": "string",
|
|
53
|
+
"vnfcSnapshotInfoIds": {},
|
|
54
|
+
"isFullSnapshot": true,
|
|
55
|
+
"vnfdInfo": {
|
|
56
|
+
"avnfdId": "string",
|
|
57
|
+
"vnfdPath": "string",
|
|
58
|
+
"checksum": "string",
|
|
59
|
+
"isEncrypted": true
|
|
60
|
+
},
|
|
61
|
+
"vnfsr": {
|
|
62
|
+
"recordPath": "string",
|
|
63
|
+
"checksum": "string",
|
|
64
|
+
"isEncrypted": true
|
|
65
|
+
},
|
|
66
|
+
"vnfcSnapshotImages": {},
|
|
67
|
+
"additionalArtifacts": {},
|
|
68
|
+
"state": "ERROR_EXTRACTING",
|
|
69
|
+
"isCancelPending": false,
|
|
70
|
+
"failureDetails": {
|
|
71
|
+
"errorType": "UPLOAD_ERROR",
|
|
72
|
+
"details": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"title": "string",
|
|
75
|
+
"status": 8,
|
|
76
|
+
"detail": "string",
|
|
77
|
+
"instance": "string"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"userDefinedData": {},
|
|
81
|
+
"_links": {
|
|
82
|
+
"self": {
|
|
83
|
+
"href": "string"
|
|
84
|
+
},
|
|
85
|
+
"packageContent": {
|
|
86
|
+
"href": "string"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "string",
|
|
92
|
+
"vnfSnapshotPkgUniqueId": "string",
|
|
93
|
+
"name": "string",
|
|
94
|
+
"checksum": "string",
|
|
95
|
+
"createdAt": "string",
|
|
96
|
+
"vnfSnapshotId": "string",
|
|
97
|
+
"vnfcSnapshotInfoIds": {},
|
|
98
|
+
"isFullSnapshot": true,
|
|
99
|
+
"vnfdInfo": {
|
|
100
|
+
"avnfdId": "string",
|
|
101
|
+
"vnfdPath": "string",
|
|
102
|
+
"checksum": "string",
|
|
103
|
+
"isEncrypted": false
|
|
104
|
+
},
|
|
105
|
+
"vnfsr": {
|
|
106
|
+
"recordPath": "string",
|
|
107
|
+
"checksum": "string",
|
|
108
|
+
"isEncrypted": true
|
|
109
|
+
},
|
|
110
|
+
"vnfcSnapshotImages": {},
|
|
111
|
+
"additionalArtifacts": {},
|
|
112
|
+
"state": "EXTRACTING",
|
|
113
|
+
"isCancelPending": true,
|
|
114
|
+
"failureDetails": {
|
|
115
|
+
"errorType": "EXTRACTION_ERROR",
|
|
116
|
+
"details": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"title": "string",
|
|
119
|
+
"status": 10,
|
|
120
|
+
"detail": "string",
|
|
121
|
+
"instance": "string"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"userDefinedData": {},
|
|
125
|
+
"_links": {
|
|
126
|
+
"self": {
|
|
127
|
+
"href": "string"
|
|
128
|
+
},
|
|
129
|
+
"packageContent": {
|
|
130
|
+
"href": "string"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "string",
|
|
136
|
+
"vnfSnapshotPkgUniqueId": "string",
|
|
137
|
+
"name": "string",
|
|
138
|
+
"checksum": "string",
|
|
139
|
+
"createdAt": "string",
|
|
140
|
+
"vnfSnapshotId": "string",
|
|
141
|
+
"vnfcSnapshotInfoIds": {},
|
|
142
|
+
"isFullSnapshot": true,
|
|
143
|
+
"vnfdInfo": {
|
|
144
|
+
"avnfdId": "string",
|
|
145
|
+
"vnfdPath": "string",
|
|
146
|
+
"checksum": "string",
|
|
147
|
+
"isEncrypted": true
|
|
148
|
+
},
|
|
149
|
+
"vnfsr": {
|
|
150
|
+
"recordPath": "string",
|
|
151
|
+
"checksum": "string",
|
|
152
|
+
"isEncrypted": true
|
|
153
|
+
},
|
|
154
|
+
"vnfcSnapshotImages": {},
|
|
155
|
+
"additionalArtifacts": {},
|
|
156
|
+
"state": "BUILDING",
|
|
157
|
+
"isCancelPending": true,
|
|
158
|
+
"failureDetails": {
|
|
159
|
+
"errorType": "EXTRACTION_ERROR",
|
|
160
|
+
"details": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"title": "string",
|
|
163
|
+
"status": 10,
|
|
164
|
+
"detail": "string",
|
|
165
|
+
"instance": "string"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"userDefinedData": {},
|
|
169
|
+
"_links": {
|
|
170
|
+
"self": {
|
|
171
|
+
"href": "string"
|
|
172
|
+
},
|
|
173
|
+
"packageContent": {
|
|
174
|
+
"href": "string"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"vnfSnapshotPkgUniqueId": "string",
|
|
4
|
+
"name": "string",
|
|
5
|
+
"checksum": "string",
|
|
6
|
+
"createdAt": "string",
|
|
7
|
+
"vnfSnapshotId": "string",
|
|
8
|
+
"vnfcSnapshotInfoIds": {},
|
|
9
|
+
"isFullSnapshot": false,
|
|
10
|
+
"vnfdInfo": {
|
|
11
|
+
"avnfdId": "string",
|
|
12
|
+
"vnfdPath": "string",
|
|
13
|
+
"checksum": "string",
|
|
14
|
+
"isEncrypted": false
|
|
15
|
+
},
|
|
16
|
+
"vnfsr": {
|
|
17
|
+
"recordPath": "string",
|
|
18
|
+
"checksum": "string",
|
|
19
|
+
"isEncrypted": true
|
|
20
|
+
},
|
|
21
|
+
"vnfcSnapshotImages": {},
|
|
22
|
+
"additionalArtifacts": {},
|
|
23
|
+
"state": "BUILDING",
|
|
24
|
+
"isCancelPending": true,
|
|
25
|
+
"failureDetails": {
|
|
26
|
+
"errorType": "CANCELLED",
|
|
27
|
+
"details": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"title": "string",
|
|
30
|
+
"status": 8,
|
|
31
|
+
"detail": "string",
|
|
32
|
+
"instance": "string"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"userDefinedData": {},
|
|
36
|
+
"_links": {
|
|
37
|
+
"self": {
|
|
38
|
+
"href": "string"
|
|
39
|
+
},
|
|
40
|
+
"packageContent": {
|
|
41
|
+
"href": "string"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getVnfSnapshotPackages",
|
|
14
|
+
"getVnfSnapshotPackagesVnfSnapshotPkgId",
|
|
15
|
+
"getVnfSnapshotPackagesVnfSnapshotPkgIdPackageContent",
|
|
16
|
+
"getVnfSnapshotPackagesVnfSnapshotPkgIdArtifactsArtifactPath"
|
|
17
|
+
],
|
|
18
|
+
"external_name": "ph_request_type"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"definitions": {}
|
|
22
|
+
}
|