@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.
- 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 +10403 -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 +126 -0
- package/entities/Alarms/mockdatafiles/getAlarmsAlarmId-default.json +45 -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 +55 -0
- package/entities/ApiVersions/schema.json +19 -0
- package/entities/CapacityThresholds/action.json +106 -0
- package/entities/CapacityThresholds/mockdatafiles/getCapacityThresholds-default.json +193 -0
- package/entities/CapacityThresholds/mockdatafiles/getCapacityThresholdsCapacityThresholdId-default.json +63 -0
- package/entities/CapacityThresholds/mockdatafiles/patchCapacityThresholdsCapacityThresholdId-default.json +26 -0
- package/entities/CapacityThresholds/mockdatafiles/postCapacityThresholds-default.json +50 -0
- package/entities/CapacityThresholds/schema.json +23 -0
- package/entities/NfviCapacityInfos/action.json +46 -0
- package/entities/NfviCapacityInfos/mockdatafiles/getNfviCapacityInfos-default.json +1457 -0
- package/entities/NfviCapacityInfos/mockdatafiles/getNfviCapacityInfosVimId-default.json +487 -0
- package/entities/NfviCapacityInfos/schema.json +20 -0
- package/entities/NsDescriptors/action.json +210 -0
- package/entities/NsDescriptors/mockdatafiles/getNsDescriptors-default.json +354 -0
- package/entities/NsDescriptors/mockdatafiles/getNsDescriptorsNsdInfoId-default.json +101 -0
- package/entities/NsDescriptors/mockdatafiles/patchNsDescriptorsNsdInfoId-default.json +10 -0
- package/entities/NsDescriptors/mockdatafiles/postNsDescriptors-default.json +136 -0
- package/entities/NsDescriptors/schema.json +83 -0
- package/entities/NsInstances/action.json +186 -0
- package/entities/NsInstances/mockdatafiles/querymultipleNSinstances-default.json +85311 -0
- package/entities/NsInstances/schema.json +27 -0
- package/entities/NsLcmOpOccs/action.json +106 -0
- package/entities/NsLcmOpOccs/mockdatafiles/querymultipleNSLCMoperationoccurrences-default.json +57603 -0
- package/entities/NsLcmOpOccs/schema.json +23 -0
- package/entities/Nslcm/action.json +44 -0
- package/entities/Nslcm/schema.json +20 -0
- package/entities/PmJobs/action.json +127 -0
- package/entities/PmJobs/mockdatafiles/getPmJobs-default.json +122 -0
- package/entities/PmJobs/mockdatafiles/getPmJobsPmJobId-default.json +60 -0
- package/entities/PmJobs/mockdatafiles/getPmJobsPmJobIdReportsReportId-default.json +148 -0
- package/entities/PmJobs/mockdatafiles/patchPmJobsPmJobId-default.json +22 -0
- package/entities/PmJobs/mockdatafiles/postPmJobs-default.json +52 -0
- package/entities/PmJobs/schema.json +24 -0
- package/entities/PnfDescriptors/action.json +210 -0
- package/entities/PnfDescriptors/mockdatafiles/getPnfDescriptors-default.json +113 -0
- package/entities/PnfDescriptors/mockdatafiles/getPnfDescriptorsPnfdInfoId-default.json +57 -0
- package/entities/PnfDescriptors/mockdatafiles/patchPnfDescriptorsPnfdInfoId-default.json +3 -0
- package/entities/PnfDescriptors/mockdatafiles/postPnfDescriptors-default.json +102 -0
- package/entities/PnfDescriptors/schema.json +83 -0
- package/entities/Subscriptions/action.json +86 -0
- package/entities/Subscriptions/mockdatafiles/getSubscriptions-default.json +482 -0
- package/entities/Subscriptions/mockdatafiles/getSubscriptionsSubscriptionId-default.json +152 -0
- package/entities/Subscriptions/mockdatafiles/postSubscriptions-default.json +151 -0
- package/entities/Subscriptions/schema.json +33 -0
- package/entities/Thresholds/action.json +106 -0
- package/entities/Thresholds/mockdatafiles/getThresholds-default.json +34 -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 +32 -0
- package/entities/Thresholds/schema.json +23 -0
- package/entities/VnfPackages/action.json +292 -0
- package/entities/VnfPackages/mockdatafiles/getVnfPackages-default.json +453 -0
- package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgId-default.json +204 -0
- package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgIdExtArtifactsAccess-default.json +14 -0
- package/entities/VnfPackages/mockdatafiles/patchVnfPackagesVnfPkgId-default.json +4 -0
- package/entities/VnfPackages/mockdatafiles/postVnfPackages-default.json +236 -0
- package/entities/VnfPackages/mockdatafiles/putVnfPackagesVnfPkgIdExtArtifactsAccess-default.json +14 -0
- package/entities/VnfPackages/schema.json +32 -0
- package/entities/VnfSnapshotPackages/action.json +289 -0
- package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackages-default.json +227 -0
- package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackagesVnfSnapshotPkgId-default.json +268 -0
- package/entities/VnfSnapshotPackages/mockdatafiles/patchVnfSnapshotPackagesVnfSnapshotPkgId-default.json +5 -0
- package/entities/VnfSnapshotPackages/mockdatafiles/postVnfSnapshotPackages-default.json +146 -0
- package/entities/VnfSnapshotPackages/schema.json +32 -0
- package/entities/VnfSnapshots/action.json +66 -0
- package/entities/VnfSnapshots/mockdatafiles/queryVNFsnapshots-default.json +1694 -0
- package/entities/VnfSnapshots/schema.json +21 -0
- package/error.json +184 -0
- package/package.json +85 -0
- package/pronghorn.json +18371 -0
- package/propertiesSchema.json +840 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +279 -0
- package/report/sol005_NSDmgmt_openapi.json +24207 -0
- package/report/sol005_capacity_openapi.json +14837 -0
- package/report/sol005_fault_openapi.json +8757 -0
- package/report/sol005_lifecycle_opneapi.json +61923 -0
- package/report/sol005_lifecycle_opneapi.json-OpenApi3Json.json +24758 -0
- package/report/sol005_package_openapi.json +19471 -0
- package/report/sol005_perf_openapi.json +11124 -0
- package/report/sol005_snapshot_openapi.json +16610 -0
- package/report/updateReport1646246505328.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 +3685 -0
- package/test/unit/adapterBaseTestUnit.js +944 -0
- package/test/unit/adapterTestUnit.js +4287 -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,19 @@
|
|
|
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": "getApiVersions",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getApiVersions"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"definitions": {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getCapacityThresholds",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/nfvici/v1/capacity_thresholds?{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/getCapacityThresholds-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "postCapacityThresholds",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/nfvici/v1/capacity_thresholds?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": "mockdatafiles/postCapacityThresholds-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "getCapacityThresholdsCapacityThresholdId",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/nfvici/v1/capacity_thresholds/{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/getCapacityThresholdsCapacityThresholdId-default.json"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "patchCapacityThresholdsCapacityThresholdId",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "PATCH",
|
|
69
|
+
"entitypath": "{base_path}/{version}/nfvici/v1/capacity_thresholds/{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/patchCapacityThresholdsCapacityThresholdId-default.json"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "deleteCapacityThresholdsCapacityThresholdId",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "DELETE",
|
|
89
|
+
"entitypath": "{base_path}/{version}/nfvici/v1/capacity_thresholds/{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
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "string",
|
|
4
|
+
"objectInstanceId": "string",
|
|
5
|
+
"subObjectInstanceIds": [
|
|
6
|
+
"string",
|
|
7
|
+
"string",
|
|
8
|
+
"string",
|
|
9
|
+
"string",
|
|
10
|
+
"string",
|
|
11
|
+
"string",
|
|
12
|
+
"string"
|
|
13
|
+
],
|
|
14
|
+
"criteria": {
|
|
15
|
+
"capacityMetric": {
|
|
16
|
+
"resourceType": "VR_STORAGE",
|
|
17
|
+
"capacityMeasurementName": "string",
|
|
18
|
+
"capacityType": "ALLOCATED"
|
|
19
|
+
},
|
|
20
|
+
"thresholdType": "SIMPLE",
|
|
21
|
+
"simpleThresholdDetails": [
|
|
22
|
+
{
|
|
23
|
+
"thresholdValue": 6,
|
|
24
|
+
"hysteresis": 7
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"thresholdValue": 3,
|
|
28
|
+
"hysteresis": 6
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"thresholdValue": 6,
|
|
32
|
+
"hysteresis": 7
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"thresholdValue": 7,
|
|
36
|
+
"hysteresis": 1
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"thresholdValue": 4,
|
|
40
|
+
"hysteresis": 6
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"thresholdValue": 3,
|
|
44
|
+
"hysteresis": 4
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"thresholdValue": 1,
|
|
48
|
+
"hysteresis": 7
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"thresholdValue": 8,
|
|
52
|
+
"hysteresis": 1
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"thresholdValue": 6,
|
|
56
|
+
"hysteresis": 10
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"callbackUri": "string",
|
|
61
|
+
"_links": {
|
|
62
|
+
"self": {
|
|
63
|
+
"href": "string"
|
|
64
|
+
},
|
|
65
|
+
"object": {
|
|
66
|
+
"href": "string"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "string",
|
|
72
|
+
"objectInstanceId": "string",
|
|
73
|
+
"subObjectInstanceIds": [
|
|
74
|
+
"string",
|
|
75
|
+
"string",
|
|
76
|
+
"string",
|
|
77
|
+
"string",
|
|
78
|
+
"string",
|
|
79
|
+
"string",
|
|
80
|
+
"string",
|
|
81
|
+
"string"
|
|
82
|
+
],
|
|
83
|
+
"criteria": {
|
|
84
|
+
"capacityMetric": {
|
|
85
|
+
"resourceType": "HOST_COMPUTE",
|
|
86
|
+
"capacityMeasurementName": "string",
|
|
87
|
+
"capacityType": "RESERVED"
|
|
88
|
+
},
|
|
89
|
+
"thresholdType": "SIMPLE",
|
|
90
|
+
"simpleThresholdDetails": [
|
|
91
|
+
{
|
|
92
|
+
"thresholdValue": 9,
|
|
93
|
+
"hysteresis": 3
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"thresholdValue": 2,
|
|
97
|
+
"hysteresis": 9
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"thresholdValue": 6,
|
|
101
|
+
"hysteresis": 3
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"thresholdValue": 5,
|
|
105
|
+
"hysteresis": 4
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"thresholdValue": 4,
|
|
109
|
+
"hysteresis": 5
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"thresholdValue": 2,
|
|
113
|
+
"hysteresis": 1
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"thresholdValue": 8,
|
|
117
|
+
"hysteresis": 9
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"thresholdValue": 1,
|
|
121
|
+
"hysteresis": 1
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"thresholdValue": 5,
|
|
125
|
+
"hysteresis": 3
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"callbackUri": "string",
|
|
130
|
+
"_links": {
|
|
131
|
+
"self": {
|
|
132
|
+
"href": "string"
|
|
133
|
+
},
|
|
134
|
+
"object": {
|
|
135
|
+
"href": "string"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "string",
|
|
141
|
+
"objectInstanceId": "string",
|
|
142
|
+
"subObjectInstanceIds": [
|
|
143
|
+
"string",
|
|
144
|
+
"string",
|
|
145
|
+
"string",
|
|
146
|
+
"string",
|
|
147
|
+
"string"
|
|
148
|
+
],
|
|
149
|
+
"criteria": {
|
|
150
|
+
"capacityMetric": {
|
|
151
|
+
"resourceType": "HOST_COMPUTE",
|
|
152
|
+
"capacityMeasurementName": "string",
|
|
153
|
+
"capacityType": "RESERVED"
|
|
154
|
+
},
|
|
155
|
+
"thresholdType": "SIMPLE",
|
|
156
|
+
"simpleThresholdDetails": [
|
|
157
|
+
{
|
|
158
|
+
"thresholdValue": 8,
|
|
159
|
+
"hysteresis": 6
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"thresholdValue": 1,
|
|
163
|
+
"hysteresis": 4
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"thresholdValue": 2,
|
|
167
|
+
"hysteresis": 8
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"thresholdValue": 9,
|
|
171
|
+
"hysteresis": 7
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"thresholdValue": 2,
|
|
175
|
+
"hysteresis": 7
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"thresholdValue": 4,
|
|
179
|
+
"hysteresis": 1
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"callbackUri": "string",
|
|
184
|
+
"_links": {
|
|
185
|
+
"self": {
|
|
186
|
+
"href": "string"
|
|
187
|
+
},
|
|
188
|
+
"object": {
|
|
189
|
+
"href": "string"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
]
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"objectInstanceId": "string",
|
|
4
|
+
"subObjectInstanceIds": [
|
|
5
|
+
"string",
|
|
6
|
+
"string",
|
|
7
|
+
"string",
|
|
8
|
+
"string",
|
|
9
|
+
"string",
|
|
10
|
+
"string",
|
|
11
|
+
"string",
|
|
12
|
+
"string",
|
|
13
|
+
"string",
|
|
14
|
+
"string"
|
|
15
|
+
],
|
|
16
|
+
"criteria": {
|
|
17
|
+
"capacityMetric": {
|
|
18
|
+
"resourceType": "VR_STORAGE",
|
|
19
|
+
"capacityMeasurementName": "string",
|
|
20
|
+
"capacityType": "RESERVED"
|
|
21
|
+
},
|
|
22
|
+
"thresholdType": "SIMPLE",
|
|
23
|
+
"simpleThresholdDetails": [
|
|
24
|
+
{
|
|
25
|
+
"thresholdValue": 8,
|
|
26
|
+
"hysteresis": 8
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"thresholdValue": 5,
|
|
30
|
+
"hysteresis": 8
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"thresholdValue": 8,
|
|
34
|
+
"hysteresis": 3
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"thresholdValue": 4,
|
|
38
|
+
"hysteresis": 1
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"thresholdValue": 4,
|
|
42
|
+
"hysteresis": 9
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"thresholdValue": 9,
|
|
46
|
+
"hysteresis": 4
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"thresholdValue": 2,
|
|
50
|
+
"hysteresis": 3
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"callbackUri": "string",
|
|
55
|
+
"_links": {
|
|
56
|
+
"self": {
|
|
57
|
+
"href": "string"
|
|
58
|
+
},
|
|
59
|
+
"object": {
|
|
60
|
+
"href": "string"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"callbackUri": "string",
|
|
3
|
+
"authentication": {
|
|
4
|
+
"authType": [
|
|
5
|
+
"OAUTH2_CLIENT_CREDENTIALS",
|
|
6
|
+
"TLS_CERT",
|
|
7
|
+
"TLS_CERT",
|
|
8
|
+
"BASIC",
|
|
9
|
+
"TLS_CERT",
|
|
10
|
+
"TLS_CERT",
|
|
11
|
+
"TLS_CERT",
|
|
12
|
+
"OAUTH2_CLIENT_CREDENTIALS",
|
|
13
|
+
"OAUTH2_CLIENT_CREDENTIALS",
|
|
14
|
+
"OAUTH2_CLIENT_CREDENTIALS"
|
|
15
|
+
],
|
|
16
|
+
"paramsBasic": {
|
|
17
|
+
"userName": "string",
|
|
18
|
+
"password": "string"
|
|
19
|
+
},
|
|
20
|
+
"paramsOauth2ClientCredentials": {
|
|
21
|
+
"clientId": "string",
|
|
22
|
+
"clientPassword": "string",
|
|
23
|
+
"tokenEndpoint": "string"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"objectInstanceId": "string",
|
|
4
|
+
"subObjectInstanceIds": [
|
|
5
|
+
"string",
|
|
6
|
+
"string",
|
|
7
|
+
"string",
|
|
8
|
+
"string",
|
|
9
|
+
"string"
|
|
10
|
+
],
|
|
11
|
+
"criteria": {
|
|
12
|
+
"capacityMetric": {
|
|
13
|
+
"resourceType": "VR_STORAGE",
|
|
14
|
+
"capacityMeasurementName": "string",
|
|
15
|
+
"capacityType": "AVAILABLE"
|
|
16
|
+
},
|
|
17
|
+
"thresholdType": "SIMPLE",
|
|
18
|
+
"simpleThresholdDetails": [
|
|
19
|
+
{
|
|
20
|
+
"thresholdValue": 9,
|
|
21
|
+
"hysteresis": 3
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"thresholdValue": 6,
|
|
25
|
+
"hysteresis": 1
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"thresholdValue": 6,
|
|
29
|
+
"hysteresis": 6
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"thresholdValue": 8,
|
|
33
|
+
"hysteresis": 3
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"thresholdValue": 2,
|
|
37
|
+
"hysteresis": 1
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"callbackUri": "string",
|
|
42
|
+
"_links": {
|
|
43
|
+
"self": {
|
|
44
|
+
"href": "string"
|
|
45
|
+
},
|
|
46
|
+
"object": {
|
|
47
|
+
"href": "string"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
"getCapacityThresholds",
|
|
14
|
+
"postCapacityThresholds",
|
|
15
|
+
"getCapacityThresholdsCapacityThresholdId",
|
|
16
|
+
"patchCapacityThresholdsCapacityThresholdId",
|
|
17
|
+
"deleteCapacityThresholdsCapacityThresholdId"
|
|
18
|
+
],
|
|
19
|
+
"external_name": "ph_request_type"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"definitions": {}
|
|
23
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getNfviCapacityInfos",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/nfvici/v1/nfvi_capacity_infos?{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/getNfviCapacityInfos-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "getNfviCapacityInfosVimId",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"entitypath": "{base_path}/{version}/nfvici/v1/nfvi_capacity_infos/{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/getNfviCapacityInfosVimId-default.json"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|