@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,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getGenerics",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "createGeneric",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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": "updateGeneric",
|
|
47
|
+
"protocol": "REST",
|
|
48
|
+
"method": "PUT",
|
|
49
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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": "patchGeneric",
|
|
68
|
+
"protocol": "REST",
|
|
69
|
+
"method": "PATCH",
|
|
70
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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": "deleteGeneric",
|
|
89
|
+
"protocol": "REST",
|
|
90
|
+
"method": "DELETE",
|
|
91
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "generic_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": "getGeneric",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getGenerics",
|
|
14
|
+
"createGeneric",
|
|
15
|
+
"updateGeneric",
|
|
16
|
+
"patchGeneric",
|
|
17
|
+
"deleteGeneric"
|
|
18
|
+
],
|
|
19
|
+
"external_name": "ph_request_type"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"definitions": {}
|
|
23
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getToken",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/login",
|
|
8
|
+
"requestSchema": "schemaTokenReq.json",
|
|
9
|
+
"responseSchema": "schemaTokenResp.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "",
|
|
13
|
+
"responseDatatype": "",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"sso": {
|
|
16
|
+
"protocol": "",
|
|
17
|
+
"host": "",
|
|
18
|
+
"port": 0
|
|
19
|
+
},
|
|
20
|
+
"responseObjects": [
|
|
21
|
+
{
|
|
22
|
+
"type": "default",
|
|
23
|
+
"key": "",
|
|
24
|
+
"mockFile": "mockdatafiles/getToken-default.json"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "healthcheck",
|
|
30
|
+
"protocol": "REST",
|
|
31
|
+
"method": "GET",
|
|
32
|
+
"entitypath": "{base_path}/{version}/healthcheck?{query}",
|
|
33
|
+
"requestSchema": "schema.json",
|
|
34
|
+
"responseSchema": "schema.json",
|
|
35
|
+
"timeout": 0,
|
|
36
|
+
"sendEmpty": false,
|
|
37
|
+
"sendGetBody": false,
|
|
38
|
+
"requestDatatype": "",
|
|
39
|
+
"responseDatatype": "",
|
|
40
|
+
"headers": {},
|
|
41
|
+
"responseObjects": [
|
|
42
|
+
{
|
|
43
|
+
"type": "default",
|
|
44
|
+
"key": "",
|
|
45
|
+
"mockFile": "mockdatafiles/healthcheck-default.json"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -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": "healthcheck",
|
|
12
|
+
"enum": [
|
|
13
|
+
"healthcheck"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"definitions": {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": ".system-schemaTokenReq.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": "getToken",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getToken"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
},
|
|
17
|
+
"username": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "username to log in with",
|
|
20
|
+
"parse": false,
|
|
21
|
+
"encode": false,
|
|
22
|
+
"encrypt": {
|
|
23
|
+
"type": "AES",
|
|
24
|
+
"key": ""
|
|
25
|
+
},
|
|
26
|
+
"external_name": "username"
|
|
27
|
+
},
|
|
28
|
+
"password": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "password to log in with",
|
|
31
|
+
"parse": false,
|
|
32
|
+
"encode": false,
|
|
33
|
+
"encrypt": {
|
|
34
|
+
"type": "AES",
|
|
35
|
+
"key": ""
|
|
36
|
+
},
|
|
37
|
+
"external_name": "password"
|
|
38
|
+
},
|
|
39
|
+
"token": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "token returned by system",
|
|
42
|
+
"parse": false,
|
|
43
|
+
"encode": false,
|
|
44
|
+
"placement": "BODY",
|
|
45
|
+
"encrypt": {
|
|
46
|
+
"type": "AES",
|
|
47
|
+
"key": ""
|
|
48
|
+
},
|
|
49
|
+
"external_name": "token"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"definitions": {}
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": ".system-schemaTokenResp.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": "getToken",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getToken"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
},
|
|
17
|
+
"username": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "username to log in with",
|
|
20
|
+
"parse": false,
|
|
21
|
+
"encode": false,
|
|
22
|
+
"encrypt": {
|
|
23
|
+
"type": "AES",
|
|
24
|
+
"key": ""
|
|
25
|
+
},
|
|
26
|
+
"external_name": "username"
|
|
27
|
+
},
|
|
28
|
+
"password": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "password to log in with",
|
|
31
|
+
"parse": false,
|
|
32
|
+
"encode": false,
|
|
33
|
+
"encrypt": {
|
|
34
|
+
"type": "AES",
|
|
35
|
+
"key": ""
|
|
36
|
+
},
|
|
37
|
+
"external_name": "password"
|
|
38
|
+
},
|
|
39
|
+
"token": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "token returned by system",
|
|
42
|
+
"parse": false,
|
|
43
|
+
"encode": false,
|
|
44
|
+
"placement": "BODY",
|
|
45
|
+
"encrypt": {
|
|
46
|
+
"type": "AES",
|
|
47
|
+
"key": ""
|
|
48
|
+
},
|
|
49
|
+
"external_name": "token"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"definitions": {}
|
|
53
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getAlarms",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/vnffm/v1/alarms?{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/getAlarms-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "getAlarmsAlarmId",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"entitypath": "{base_path}/{version}/vnffm/v1/alarms/{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/getAlarmsAlarmId-default.json"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "patchAlarmsAlarmId",
|
|
47
|
+
"protocol": "REST",
|
|
48
|
+
"method": "PATCH",
|
|
49
|
+
"entitypath": "{base_path}/{version}/vnffm/v1/alarms/{pathv1}?{query}",
|
|
50
|
+
"requestSchema": "schema.json",
|
|
51
|
+
"responseSchema": "schema.json",
|
|
52
|
+
"timeout": 0,
|
|
53
|
+
"sendEmpty": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": "mockdatafiles/patchAlarmsAlarmId-default.json"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"managedObjectId": "string",
|
|
4
|
+
"rootCauseFaultyResource": {
|
|
5
|
+
"faultyResource": {
|
|
6
|
+
"vimConnectionId": "string",
|
|
7
|
+
"resourceProviderId": "string",
|
|
8
|
+
"resourceId": "string",
|
|
9
|
+
"vimLevelResourceType": "string"
|
|
10
|
+
},
|
|
11
|
+
"faultyResourceType": "NETWORK"
|
|
12
|
+
},
|
|
13
|
+
"alarmRaisedTime": "string",
|
|
14
|
+
"alarmChangedTime": "string",
|
|
15
|
+
"alarmClearedTime": "string",
|
|
16
|
+
"alarmAcknowledgedTime": "string",
|
|
17
|
+
"ackState": "ACKNOWLEDGED",
|
|
18
|
+
"perceivedSeverity": "WARNING",
|
|
19
|
+
"eventTime": "string",
|
|
20
|
+
"eventType": "COMMUNICATIONS_ALARM",
|
|
21
|
+
"faultType": "string",
|
|
22
|
+
"probableCause": "string",
|
|
23
|
+
"isRootCause": true,
|
|
24
|
+
"correlatedAlarmIds": [
|
|
25
|
+
"string",
|
|
26
|
+
"string",
|
|
27
|
+
"string",
|
|
28
|
+
"string",
|
|
29
|
+
"string",
|
|
30
|
+
"string",
|
|
31
|
+
"string",
|
|
32
|
+
"string",
|
|
33
|
+
"string"
|
|
34
|
+
],
|
|
35
|
+
"faultDetails": [
|
|
36
|
+
"string"
|
|
37
|
+
],
|
|
38
|
+
"_links": {
|
|
39
|
+
"self": {
|
|
40
|
+
"href": "string"
|
|
41
|
+
},
|
|
42
|
+
"objectInstance": {
|
|
43
|
+
"href": "string"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"managedObjectId": "string",
|
|
4
|
+
"rootCauseFaultyResource": {
|
|
5
|
+
"faultyResource": {
|
|
6
|
+
"vimConnectionId": "string",
|
|
7
|
+
"resourceProviderId": "string",
|
|
8
|
+
"resourceId": "string",
|
|
9
|
+
"vimLevelResourceType": "string"
|
|
10
|
+
},
|
|
11
|
+
"faultyResourceType": "COMPUTE"
|
|
12
|
+
},
|
|
13
|
+
"alarmRaisedTime": "string",
|
|
14
|
+
"alarmChangedTime": "string",
|
|
15
|
+
"alarmClearedTime": "string",
|
|
16
|
+
"alarmAcknowledgedTime": "string",
|
|
17
|
+
"ackState": "UNACKNOWLEDGED",
|
|
18
|
+
"perceivedSeverity": "WARNING",
|
|
19
|
+
"eventTime": "string",
|
|
20
|
+
"eventType": "ENVIRONMENTAL_ALARM",
|
|
21
|
+
"faultType": "string",
|
|
22
|
+
"probableCause": "string",
|
|
23
|
+
"isRootCause": true,
|
|
24
|
+
"correlatedAlarmIds": [
|
|
25
|
+
"string",
|
|
26
|
+
"string",
|
|
27
|
+
"string",
|
|
28
|
+
"string",
|
|
29
|
+
"string",
|
|
30
|
+
"string",
|
|
31
|
+
"string",
|
|
32
|
+
"string"
|
|
33
|
+
],
|
|
34
|
+
"faultDetails": [
|
|
35
|
+
"string",
|
|
36
|
+
"string",
|
|
37
|
+
"string",
|
|
38
|
+
"string",
|
|
39
|
+
"string",
|
|
40
|
+
"string"
|
|
41
|
+
],
|
|
42
|
+
"_links": {
|
|
43
|
+
"self": {
|
|
44
|
+
"href": "string"
|
|
45
|
+
},
|
|
46
|
+
"objectInstance": {
|
|
47
|
+
"href": "string"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
"getAlarms",
|
|
14
|
+
"getAlarmsAlarmId",
|
|
15
|
+
"patchAlarmsAlarmId"
|
|
16
|
+
],
|
|
17
|
+
"external_name": "ph_request_type"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"definitions": {}
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getApiVersions",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/vrqan/v1/api_versions?{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/getApiVersions-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -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,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "postGrants",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/grant/v1/grants?{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/postGrants-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getGrantsGrantId",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/grant/v1/grants/{pathv1}?{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/getGrantsGrantId-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|