@itentialopensource/adapter-opengear_lighthouse 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 (193) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +1052 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +13 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +346 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +15086 -0
  23. package/adapterBase.js +1452 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/Auth/action.json +45 -0
  33. package/entities/Auth/mockdatafiles/getAuth-default.json +39 -0
  34. package/entities/Auth/mockdatafiles/putAuth-default.json +36 -0
  35. package/entities/Auth/schema.json +20 -0
  36. package/entities/Bundles/action.json +209 -0
  37. package/entities/Bundles/mockdatafiles/addBundle-default.json +25 -0
  38. package/entities/Bundles/mockdatafiles/createBundleTag-default.json +7 -0
  39. package/entities/Bundles/mockdatafiles/findBundleByID-default.json +25 -0
  40. package/entities/Bundles/mockdatafiles/getBundleTags-default.json +19 -0
  41. package/entities/Bundles/mockdatafiles/getBundles-default.json +47 -0
  42. package/entities/Bundles/mockdatafiles/getBundlesIdAutomaticTagsTagValueId-default.json +7 -0
  43. package/entities/Bundles/mockdatafiles/putBundle-default.json +21 -0
  44. package/entities/Bundles/schema.json +50 -0
  45. package/entities/Interfaces/action.json +66 -0
  46. package/entities/Interfaces/mockdatafiles/getInterfaces-default.json +121 -0
  47. package/entities/Interfaces/mockdatafiles/getInterfacesId-default.json +27 -0
  48. package/entities/Interfaces/schema.json +32 -0
  49. package/entities/ManagedDevices/action.json +25 -0
  50. package/entities/ManagedDevices/mockdatafiles/getManagedDevices-default.json +197 -0
  51. package/entities/ManagedDevices/schema.json +30 -0
  52. package/entities/MultipleInstance/action.json +167 -0
  53. package/entities/MultipleInstance/mockdatafiles/getMultipleInstanceDependentLighthouses-default.json +25 -0
  54. package/entities/MultipleInstance/mockdatafiles/getMultipleInstanceDependentLighthousesId-default.json +23 -0
  55. package/entities/MultipleInstance/mockdatafiles/getMultipleInstanceLhvpn-default.json +6 -0
  56. package/entities/MultipleInstance/mockdatafiles/postMultipleInstanceDependentLighthouses-default.json +23 -0
  57. package/entities/MultipleInstance/mockdatafiles/postMultipleInstanceRegistration-default.json +3 -0
  58. package/entities/MultipleInstance/mockdatafiles/putMultipleInstanceDependentLighthousesId-default.json +23 -0
  59. package/entities/MultipleInstance/mockdatafiles/putMultipleInstanceLhvpn-default.json +6 -0
  60. package/entities/MultipleInstance/schema.json +26 -0
  61. package/entities/Netops/action.json +169 -0
  62. package/entities/Netops/mockdatafiles/putNetopsModulesId-default.json +5 -0
  63. package/entities/Netops/schema.json +37 -0
  64. package/entities/Nodes/action.json +457 -0
  65. package/entities/Nodes/mockdatafiles/createNodeSmartgroup-default.json +11 -0
  66. package/entities/Nodes/mockdatafiles/createNodeTag-default.json +7 -0
  67. package/entities/Nodes/mockdatafiles/enrollNewNode-default.json +37 -0
  68. package/entities/Nodes/mockdatafiles/findNodeByID-default.json +60 -0
  69. package/entities/Nodes/mockdatafiles/getNodeCellHealthRuntimeDetails-default.json +18 -0
  70. package/entities/Nodes/mockdatafiles/getNodeSmartgroup-default.json +11 -0
  71. package/entities/Nodes/mockdatafiles/getNodeSmartgroupList-default.json +52 -0
  72. package/entities/Nodes/mockdatafiles/getNodeTags-default.json +19 -0
  73. package/entities/Nodes/mockdatafiles/getNodes-default.json +189 -0
  74. package/entities/Nodes/mockdatafiles/getNodesIdTagsTagValueId-default.json +9 -0
  75. package/entities/Nodes/mockdatafiles/getnodesearchfields-default.json +13 -0
  76. package/entities/Nodes/mockdatafiles/getnodesearchfields1-default.json +53 -0
  77. package/entities/Nodes/mockdatafiles/putNode-default.json +54 -0
  78. package/entities/Nodes/mockdatafiles/updateNodeSmartgroup-default.json +11 -0
  79. package/entities/Nodes/schema.json +62 -0
  80. package/entities/Ports/action.json +148 -0
  81. package/entities/Ports/mockdatafiles/getPorts-default.json +27 -0
  82. package/entities/Ports/mockdatafiles/getPortsSmartgroups-default.json +25 -0
  83. package/entities/Ports/mockdatafiles/getPortsSmartgroupsId-default.json +11 -0
  84. package/entities/Ports/mockdatafiles/postPortsSmartgroups-default.json +11 -0
  85. package/entities/Ports/mockdatafiles/putPortsSmartgroupsId-default.json +11 -0
  86. package/entities/Ports/schema.json +36 -0
  87. package/entities/Search/action.json +67 -0
  88. package/entities/Search/mockdatafiles/getSearchId-default.json +5 -0
  89. package/entities/Search/mockdatafiles/getSearchId1-default.json +5 -0
  90. package/entities/Search/mockdatafiles/getSearchId2-default.json +5 -0
  91. package/entities/Search/schema.json +21 -0
  92. package/entities/Services/action.json +393 -0
  93. package/entities/Services/mockdatafiles/getServicesCellhealth-default.json +12 -0
  94. package/entities/Services/mockdatafiles/getServicesConsoleGateway-default.json +6 -0
  95. package/entities/Services/mockdatafiles/getServicesHttps-default.json +23 -0
  96. package/entities/Services/mockdatafiles/getServicesNtp-default.json +16 -0
  97. package/entities/Services/mockdatafiles/getServicesSyslog-default.json +16 -0
  98. package/entities/Services/mockdatafiles/getServicesSyslogSyslogServerId-default.json +8 -0
  99. package/entities/Services/mockdatafiles/postServicesSyslog-default.json +8 -0
  100. package/entities/Services/mockdatafiles/putServicesCellhealth-default.json +12 -0
  101. package/entities/Services/mockdatafiles/putServicesConsoleGateway-default.json +6 -0
  102. package/entities/Services/mockdatafiles/putServicesHttps-default.json +23 -0
  103. package/entities/Services/mockdatafiles/putServicesNtp-default.json +19 -0
  104. package/entities/Services/mockdatafiles/putServicesSyslogSyslogServerId-default.json +8 -0
  105. package/entities/Services/schema.json +48 -0
  106. package/entities/Sessions/action.json +85 -0
  107. package/entities/Sessions/mockdatafiles/createSession-default.json +6 -0
  108. package/entities/Sessions/mockdatafiles/getSession-default.json +6 -0
  109. package/entities/Sessions/schema.json +22 -0
  110. package/entities/Stats/action.json +46 -0
  111. package/entities/Stats/mockdatafiles/getStatsNodesCellularHealthSummary-default.json +20 -0
  112. package/entities/Stats/mockdatafiles/getStatsNodesConnectionSummary-default.json +16 -0
  113. package/entities/Stats/schema.json +20 -0
  114. package/entities/SupportReport/action.json +25 -0
  115. package/entities/SupportReport/mockdatafiles/getSupportReport-default.json +7 -0
  116. package/entities/SupportReport/schema.json +19 -0
  117. package/entities/System/action.json +742 -0
  118. package/entities/System/mockdatafiles/getSystemAlternateApi-default.json +6 -0
  119. package/entities/System/mockdatafiles/getSystemCliSessionTimeout-default.json +5 -0
  120. package/entities/System/mockdatafiles/getSystemExternalEndpoints-default.json +18 -0
  121. package/entities/System/mockdatafiles/getSystemExternalEndpointsId-default.json +9 -0
  122. package/entities/System/mockdatafiles/getSystemFirmwareUpgradeStatus-default.json +6 -0
  123. package/entities/System/mockdatafiles/getSystemGlobalEnrollmentToken-default.json +5 -0
  124. package/entities/System/mockdatafiles/getSystemHostname-default.json +5 -0
  125. package/entities/System/mockdatafiles/getSystemLighthouseName-default.json +5 -0
  126. package/entities/System/mockdatafiles/getSystemManifestLink-default.json +5 -0
  127. package/entities/System/mockdatafiles/getSystemOsDefaultAddress-default.json +5 -0
  128. package/entities/System/mockdatafiles/getSystemSshPort-default.json +5 -0
  129. package/entities/System/mockdatafiles/getSystemTime-default.json +5 -0
  130. package/entities/System/mockdatafiles/getSystemTimezone-default.json +5 -0
  131. package/entities/System/mockdatafiles/getSystemVersion-default.json +6 -0
  132. package/entities/System/mockdatafiles/getSystemWebuiSessionTimeout-default.json +5 -0
  133. package/entities/System/mockdatafiles/postSystemConfigBackup-default.json +5 -0
  134. package/entities/System/mockdatafiles/postSystemConfigRestore-default.json +5 -0
  135. package/entities/System/mockdatafiles/postSystemExternalEndpoints-default.json +9 -0
  136. package/entities/System/mockdatafiles/postSystemFirmwareUpgrade-default.json +5 -0
  137. package/entities/System/mockdatafiles/postSystemUploadRestore-default.json +7 -0
  138. package/entities/System/mockdatafiles/putSystemAlternateApi-default.json +6 -0
  139. package/entities/System/mockdatafiles/putSystemCliSessionTimeout-default.json +5 -0
  140. package/entities/System/mockdatafiles/putSystemExternalEndpointsId-default.json +9 -0
  141. package/entities/System/mockdatafiles/putSystemGlobalEnrollmentToken-default.json +5 -0
  142. package/entities/System/mockdatafiles/putSystemHostname-default.json +5 -0
  143. package/entities/System/mockdatafiles/putSystemSshPort-default.json +5 -0
  144. package/entities/System/mockdatafiles/putSystemTime-default.json +5 -0
  145. package/entities/System/mockdatafiles/putSystemTimezone-default.json +5 -0
  146. package/entities/System/mockdatafiles/putSystemWebuiSessionTimeout-default.json +5 -0
  147. package/entities/System/schema.json +76 -0
  148. package/entities/Tags/action.json +85 -0
  149. package/entities/Tags/mockdatafiles/getTagsNodeTags-default.json +53 -0
  150. package/entities/Tags/mockdatafiles/postTagsNodeTags-default.json +16 -0
  151. package/entities/Tags/schema.json +44 -0
  152. package/entities/TemplatePush/action.json +65 -0
  153. package/entities/TemplatePush/schema.json +21 -0
  154. package/entities/Templates/action.json +106 -0
  155. package/entities/Templates/schema.json +23 -0
  156. package/entities/Users/action.json +187 -0
  157. package/entities/Users/mockdatafiles/getGroupResponse-default.json +17 -0
  158. package/entities/Users/schema.json +27 -0
  159. package/error.json +190 -0
  160. package/metadata.json +45 -0
  161. package/package.json +85 -0
  162. package/pronghorn.json +12606 -0
  163. package/propertiesDecorators.json +14 -0
  164. package/propertiesSchema.json +1569 -0
  165. package/refs?service=git-upload-pack +0 -0
  166. package/report/Lighthouse35.json-OpenApi3Json (1).json +22993 -0
  167. package/report/adapterInfo.json +10 -0
  168. package/report/creationReport.json +745 -0
  169. package/sampleProperties.json +256 -0
  170. package/test/integration/adapterTestBasicGet.js +83 -0
  171. package/test/integration/adapterTestConnectivity.js +142 -0
  172. package/test/integration/adapterTestIntegration.js +4521 -0
  173. package/test/unit/adapterBaseTestUnit.js +1024 -0
  174. package/test/unit/adapterTestUnit.js +5272 -0
  175. package/utils/adapterInfo.js +206 -0
  176. package/utils/addAuth.js +94 -0
  177. package/utils/artifactize.js +146 -0
  178. package/utils/basicGet.js +50 -0
  179. package/utils/checkMigrate.js +63 -0
  180. package/utils/entitiesToDB.js +179 -0
  181. package/utils/findPath.js +74 -0
  182. package/utils/methodDocumentor.js +273 -0
  183. package/utils/modify.js +152 -0
  184. package/utils/packModificationScript.js +35 -0
  185. package/utils/patches2bundledDeps.js +90 -0
  186. package/utils/pre-commit.sh +32 -0
  187. package/utils/removeHooks.js +20 -0
  188. package/utils/setup.js +33 -0
  189. package/utils/taskMover.js +309 -0
  190. package/utils/tbScript.js +239 -0
  191. package/utils/tbUtils.js +489 -0
  192. package/utils/testRunner.js +298 -0
  193. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,214 @@
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
+ "name": "getGenericsNoBase",
110
+ "protocol": "REST",
111
+ "method": "GET",
112
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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
+ "name": "createGenericNoBase",
131
+ "protocol": "REST",
132
+ "method": "POST",
133
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
134
+ "requestSchema": "schema.json",
135
+ "responseSchema": "schema.json",
136
+ "timeout": 0,
137
+ "sendEmpty": false,
138
+ "sendGetBody": false,
139
+ "requestDatatype": "JSON",
140
+ "responseDatatype": "JSON",
141
+ "headers": {},
142
+ "responseObjects": [
143
+ {
144
+ "type": "default",
145
+ "key": "",
146
+ "mockFile": ""
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "name": "updateGenericNoBase",
152
+ "protocol": "REST",
153
+ "method": "PUT",
154
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
155
+ "requestSchema": "schema.json",
156
+ "responseSchema": "schema.json",
157
+ "timeout": 0,
158
+ "sendEmpty": false,
159
+ "sendGetBody": false,
160
+ "requestDatatype": "JSON",
161
+ "responseDatatype": "JSON",
162
+ "headers": {},
163
+ "responseObjects": [
164
+ {
165
+ "type": "default",
166
+ "key": "",
167
+ "mockFile": ""
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "name": "patchGenericNoBase",
173
+ "protocol": "REST",
174
+ "method": "PATCH",
175
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
176
+ "requestSchema": "schema.json",
177
+ "responseSchema": "schema.json",
178
+ "timeout": 0,
179
+ "sendEmpty": false,
180
+ "sendGetBody": false,
181
+ "requestDatatype": "JSON",
182
+ "responseDatatype": "JSON",
183
+ "headers": {},
184
+ "responseObjects": [
185
+ {
186
+ "type": "default",
187
+ "key": "",
188
+ "mockFile": ""
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "name": "deleteGenericNoBase",
194
+ "protocol": "REST",
195
+ "method": "DELETE",
196
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
197
+ "requestSchema": "schema.json",
198
+ "responseSchema": "schema.json",
199
+ "timeout": 0,
200
+ "sendEmpty": false,
201
+ "sendGetBody": false,
202
+ "requestDatatype": "JSON",
203
+ "responseDatatype": "JSON",
204
+ "headers": {},
205
+ "responseObjects": [
206
+ {
207
+ "type": "default",
208
+ "key": "",
209
+ "mockFile": ""
210
+ }
211
+ ]
212
+ }
213
+ ]
214
+ }
@@ -0,0 +1,28 @@
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
+ "getGenericsNoBase",
19
+ "createGenericNoBase",
20
+ "updateGenericNoBase",
21
+ "patchGenericNoBase",
22
+ "deleteGenericNoBase"
23
+ ],
24
+ "external_name": "ph_request_type"
25
+ }
26
+ },
27
+ "definitions": {}
28
+ }
@@ -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,45 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getAuth",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/auth?{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/getAuth-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "putAuth",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/auth?{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/putAuth-default.json"
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "auth": {
3
+ "mode": "tacacs",
4
+ "authStyle": "auth_local",
5
+ "radiusAuthenticationServers": [
6
+ {
7
+ "id": "auth_radius_authenticationServers-2",
8
+ "hostname": "192.168.250.1.2"
9
+ }
10
+ ],
11
+ "radiusAccountingServers": [
12
+ {
13
+ "id": "auth_radius_accountingServers-1",
14
+ "hostname": "192.168.250.1.2"
15
+ }
16
+ ],
17
+ "tacacsService": "raccess",
18
+ "tacacsMethod": "pap",
19
+ "tacacsAuthenticationServers": [
20
+ {
21
+ "hostname": "192.168.1.2",
22
+ "id": "auth_tacacs_authenticationServers-2"
23
+ }
24
+ ],
25
+ "ldapAuthenticationServers": [
26
+ {
27
+ "id": "auth_ldap_authenticationServers-1",
28
+ "hostname": "192.168.1.2"
29
+ }
30
+ ],
31
+ "ldapBaseDN": "cn=Users,dc=example,dc=com",
32
+ "ldapBindDN": "cn=Administrator,cn=Users,dc=example,dc=com",
33
+ "ldapIgnoreReferrals": false,
34
+ "ldapUsernameAttribute": "sAMAccountName",
35
+ "ldapSslMode": "ldaps_preferred",
36
+ "ldapSslIgnoreCertErrors": false,
37
+ "ldapSslCaCert": "-----BEGIN CERTIFICATE-----\nMIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF\nADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\nb24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL\nMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv\nb3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj\nca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM\n9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw\nIFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6\nVOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L\n93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm\njgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC\nAYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA\nA4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI\nU5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs\nN+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv\no/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU\n5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy\nrqXRfboQnoZsG4q5WTP468SQvvG5\n-----END CERTIFICATE-----"
38
+ }
39
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "auth": {
3
+ "mode": "radius",
4
+ "authStyle": "auth",
5
+ "radiusAuthenticationServers": [
6
+ {
7
+ "id": "auth_radius_authenticationServers-1",
8
+ "hostname": "192.168.250.2"
9
+ }
10
+ ],
11
+ "radiusAccountingServers": [
12
+ {
13
+ "id": "auth_radius_accountingServers-1",
14
+ "hostname": "192.168.250.2"
15
+ }
16
+ ],
17
+ "tacacsService": "raccess",
18
+ "tacacsMethod": "pap",
19
+ "tacacsAuthenticationServers": [
20
+ {
21
+ "hostname": "192.168.1.2",
22
+ "id": "auth_tacacs_authenticationServers-2"
23
+ }
24
+ ],
25
+ "ldapAuthenticationServers": [
26
+ {
27
+ "id": "auth_ldap_authenticationServers-1",
28
+ "hostname": "192.168.1.2"
29
+ }
30
+ ],
31
+ "ldapBaseDN": "cn=Users,dc=example,dc=com",
32
+ "ldapBindDN": "cn=Administrator,cn=Users,dc=example,dc=com",
33
+ "ldapIgnoreReferrals": true,
34
+ "ldapUsernameAttribute": "sAMAccountName"
35
+ }
36
+ }
@@ -0,0 +1,20 @@
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": "getAuth",
12
+ "enum": [
13
+ "getAuth",
14
+ "putAuth"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }