@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,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,3 @@
1
+ {
2
+ "token": "garbagetoken"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "mockkey": "mockvalue"
3
+ }
@@ -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}/nsfm/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}/nsfm/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}/nsfm/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,126 @@
1
+ [
2
+ {
3
+ "id": "string",
4
+ "managedObjectId": "string",
5
+ "rootCauseFaultyComponent": {
6
+ "faultyNestedNsInstanceId": "string",
7
+ "faultyResourceType": "string",
8
+ "faultyNsVirtualLinkInstanceId": "string"
9
+ },
10
+ "rootCauseFaultyResource": {
11
+ "faultyResource": {
12
+ "vimId": "string",
13
+ "resourceProviderId": "string",
14
+ "resourceId": "string",
15
+ "vimLevelResourceType": "string"
16
+ },
17
+ "faultyResourceType": "COMPUTE"
18
+ },
19
+ "alarmRaisedTime": null,
20
+ "alarmChangedTime": null,
21
+ "alarmClearedTime": null,
22
+ "alarmAcknowledgedTime": null,
23
+ "ackState": "ACKNOWLEDGED",
24
+ "perceivedSeverity": "CLEARED",
25
+ "eventTime": null,
26
+ "eventType": "COMMUNICATIONS_ALARM",
27
+ "faultType": "string",
28
+ "probableCause": "string",
29
+ "isRootCause": false,
30
+ "correlatedAlarmIds": [
31
+ "string",
32
+ "string",
33
+ "string"
34
+ ],
35
+ "faultDetails": "string",
36
+ "_links": {
37
+ "self": {
38
+ "href": "string"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "id": "string",
44
+ "managedObjectId": "string",
45
+ "rootCauseFaultyComponent": {
46
+ "faultyNestedNsInstanceId": "string",
47
+ "faultyResourceType": "string",
48
+ "faultyNsVirtualLinkInstanceId": "string"
49
+ },
50
+ "rootCauseFaultyResource": {
51
+ "faultyResource": {
52
+ "vimId": "string",
53
+ "resourceProviderId": "string",
54
+ "resourceId": "string",
55
+ "vimLevelResourceType": "string"
56
+ },
57
+ "faultyResourceType": "NETWORK"
58
+ },
59
+ "alarmRaisedTime": null,
60
+ "alarmChangedTime": null,
61
+ "alarmClearedTime": null,
62
+ "alarmAcknowledgedTime": null,
63
+ "ackState": "UNACKNOWLEDGED",
64
+ "perceivedSeverity": "MAJOR",
65
+ "eventTime": null,
66
+ "eventType": "EQUIPMENT_ALARM",
67
+ "faultType": "string",
68
+ "probableCause": "string",
69
+ "isRootCause": true,
70
+ "correlatedAlarmIds": [
71
+ "string",
72
+ "string",
73
+ "string",
74
+ "string",
75
+ "string",
76
+ "string",
77
+ "string"
78
+ ],
79
+ "faultDetails": "string",
80
+ "_links": {
81
+ "self": {
82
+ "href": "string"
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "id": "string",
88
+ "managedObjectId": "string",
89
+ "rootCauseFaultyComponent": {
90
+ "faultyNestedNsInstanceId": "string",
91
+ "faultyResourceType": "string",
92
+ "faultyNsVirtualLinkInstanceId": "string"
93
+ },
94
+ "rootCauseFaultyResource": {
95
+ "faultyResource": {
96
+ "vimId": "string",
97
+ "resourceProviderId": "string",
98
+ "resourceId": "string",
99
+ "vimLevelResourceType": "string"
100
+ },
101
+ "faultyResourceType": "STORAGE"
102
+ },
103
+ "alarmRaisedTime": null,
104
+ "alarmChangedTime": null,
105
+ "alarmClearedTime": null,
106
+ "alarmAcknowledgedTime": null,
107
+ "ackState": "ACKNOWLEDGED",
108
+ "perceivedSeverity": "WARNING",
109
+ "eventTime": null,
110
+ "eventType": "EQUIPMENT_ALARM",
111
+ "faultType": "string",
112
+ "probableCause": "string",
113
+ "isRootCause": false,
114
+ "correlatedAlarmIds": [
115
+ "string",
116
+ "string",
117
+ "string"
118
+ ],
119
+ "faultDetails": "string",
120
+ "_links": {
121
+ "self": {
122
+ "href": "string"
123
+ }
124
+ }
125
+ }
126
+ ]
@@ -0,0 +1,45 @@
1
+ {
2
+ "id": "string",
3
+ "managedObjectId": "string",
4
+ "rootCauseFaultyComponent": {
5
+ "faultyNestedNsInstanceId": "string",
6
+ "faultyResourceType": "string",
7
+ "faultyNsVirtualLinkInstanceId": "string"
8
+ },
9
+ "rootCauseFaultyResource": {
10
+ "faultyResource": {
11
+ "vimId": "string",
12
+ "resourceProviderId": "string",
13
+ "resourceId": "string",
14
+ "vimLevelResourceType": "string"
15
+ },
16
+ "faultyResourceType": "NETWORK"
17
+ },
18
+ "alarmRaisedTime": null,
19
+ "alarmChangedTime": null,
20
+ "alarmClearedTime": null,
21
+ "alarmAcknowledgedTime": null,
22
+ "ackState": "ACKNOWLEDGED",
23
+ "perceivedSeverity": "CLEARED",
24
+ "eventTime": null,
25
+ "eventType": "EQUIPMENT_ALARM",
26
+ "faultType": "string",
27
+ "probableCause": "string",
28
+ "isRootCause": false,
29
+ "correlatedAlarmIds": [
30
+ "string",
31
+ "string",
32
+ "string",
33
+ "string",
34
+ "string",
35
+ "string",
36
+ "string",
37
+ "string"
38
+ ],
39
+ "faultDetails": "string",
40
+ "_links": {
41
+ "self": {
42
+ "href": "string"
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "ackState": "UNACKNOWLEDGED"
3
+ }
@@ -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}/nsd/v2/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,55 @@
1
+ {
2
+ "uriPrefix": "string",
3
+ "apiVersions": [
4
+ {
5
+ "version": "string",
6
+ "isDeprecated": false,
7
+ "retirementDate": null
8
+ },
9
+ {
10
+ "version": "string",
11
+ "isDeprecated": false,
12
+ "retirementDate": null
13
+ },
14
+ {
15
+ "version": "string",
16
+ "isDeprecated": true,
17
+ "retirementDate": null
18
+ },
19
+ {
20
+ "version": "string",
21
+ "isDeprecated": true,
22
+ "retirementDate": null
23
+ },
24
+ {
25
+ "version": "string",
26
+ "isDeprecated": false,
27
+ "retirementDate": null
28
+ },
29
+ {
30
+ "version": "string",
31
+ "isDeprecated": false,
32
+ "retirementDate": null
33
+ },
34
+ {
35
+ "version": "string",
36
+ "isDeprecated": true,
37
+ "retirementDate": null
38
+ },
39
+ {
40
+ "version": "string",
41
+ "isDeprecated": true,
42
+ "retirementDate": null
43
+ },
44
+ {
45
+ "version": "string",
46
+ "isDeprecated": true,
47
+ "retirementDate": null
48
+ },
49
+ {
50
+ "version": "string",
51
+ "isDeprecated": false,
52
+ "retirementDate": null
53
+ }
54
+ ]
55
+ }