@itentialopensource/adapter-bluecat_ipam 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 (108) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +19 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +3069 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +13 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +681 -0
  13. package/README.md +344 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +25 -0
  16. package/TAB1.md +15 -0
  17. package/TAB2.md +318 -0
  18. package/TROUBLESHOOT.md +56 -0
  19. package/UTILITIES.md +473 -0
  20. package/adapter.js +47832 -0
  21. package/adapterBase.js +1526 -0
  22. package/entities/.generic/action.json +214 -0
  23. package/entities/.generic/schema.json +28 -0
  24. package/entities/.system/action.json +50 -0
  25. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  26. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  27. package/entities/.system/schema.json +19 -0
  28. package/entities/.system/schemaTokenReq.json +53 -0
  29. package/entities/.system/schemaTokenResp.json +53 -0
  30. package/entities/ACLResources/action.json +127 -0
  31. package/entities/ACLResources/schema.json +24 -0
  32. package/entities/AdminResources/action.json +1954 -0
  33. package/entities/AdminResources/schema.json +113 -0
  34. package/entities/ConfigurationResources/action.json +106 -0
  35. package/entities/ConfigurationResources/schema.json +23 -0
  36. package/entities/DHCPClientClassResources/action.json +250 -0
  37. package/entities/DHCPClientClassResources/schema.json +30 -0
  38. package/entities/DHCPZoneResources/action.json +250 -0
  39. package/entities/DHCPZoneResources/schema.json +30 -0
  40. package/entities/DNSSECResources/action.json +147 -0
  41. package/entities/DNSSECResources/schema.json +25 -0
  42. package/entities/DeploymentOptionResources/action.json +250 -0
  43. package/entities/DeploymentOptionResources/schema.json +30 -0
  44. package/entities/DeploymentRoleResources/action.json +169 -0
  45. package/entities/DeploymentRoleResources/schema.json +26 -0
  46. package/entities/DeviceResources/action.json +352 -0
  47. package/entities/DeviceResources/schema.json +35 -0
  48. package/entities/FavoriteResources/action.json +65 -0
  49. package/entities/FavoriteResources/schema.json +21 -0
  50. package/entities/IPv4AndIPv6Resources/action.json +1964 -0
  51. package/entities/IPv4AndIPv6Resources/schema.json +113 -0
  52. package/entities/KerberosResources/action.json +393 -0
  53. package/entities/KerberosResources/schema.json +37 -0
  54. package/entities/LocationResources/action.json +209 -0
  55. package/entities/LocationResources/schema.json +28 -0
  56. package/entities/MACAddressAndClientIdentifierResources/action.json +395 -0
  57. package/entities/MACAddressAndClientIdentifierResources/schema.json +37 -0
  58. package/entities/NamingPolicyResources/action.json +476 -0
  59. package/entities/NamingPolicyResources/schema.json +41 -0
  60. package/entities/ResourceRecordResources/action.json +377 -0
  61. package/entities/ResourceRecordResources/schema.json +36 -0
  62. package/entities/ServerResources/action.json +784 -0
  63. package/entities/ServerResources/schema.json +56 -0
  64. package/entities/TFTPResources/action.json +250 -0
  65. package/entities/TFTPResources/schema.json +30 -0
  66. package/entities/TagResources/action.json +495 -0
  67. package/entities/TagResources/schema.json +42 -0
  68. package/entities/TaskResources/action.json +106 -0
  69. package/entities/TaskResources/schema.json +23 -0
  70. package/entities/VendorProfileResources/action.json +106 -0
  71. package/entities/VendorProfileResources/schema.json +23 -0
  72. package/entities/ViewAndZoneResources/action.json +660 -0
  73. package/entities/ViewAndZoneResources/schema.json +50 -0
  74. package/error.json +190 -0
  75. package/metadata.json +84 -0
  76. package/package.json +75 -0
  77. package/pronghorn.json +34480 -0
  78. package/propertiesDecorators.json +18 -0
  79. package/propertiesSchema.json +1777 -0
  80. package/report/Bluecat IPAM 9.5 v2 API.yml-OpenApi3Json.json +114720 -0
  81. package/report/adapterInfo.json +10 -0
  82. package/report/auto-adapter-openapi.json +28663 -0
  83. package/report/creationReport.json +2910 -0
  84. package/sampleProperties.json +264 -0
  85. package/test/integration/adapterTestBasicGet.js +117 -0
  86. package/test/integration/adapterTestConnectivity.js +117 -0
  87. package/test/integration/adapterTestIntegration.js +12568 -0
  88. package/test/unit/adapterBaseTestUnit.js +1628 -0
  89. package/test/unit/adapterTestUnit.js +16058 -0
  90. package/utils/adapterInfo.js +156 -0
  91. package/utils/argParser.js +44 -0
  92. package/utils/checkMigrate.js +102 -0
  93. package/utils/entitiesToDB.js +190 -0
  94. package/utils/findPath.js +74 -0
  95. package/utils/logger.js +26 -0
  96. package/utils/methodDocumentor.js +298 -0
  97. package/utils/modify.js +153 -0
  98. package/utils/mongoDbConnection.js +79 -0
  99. package/utils/mongoUtils.js +162 -0
  100. package/utils/pre-commit.sh +32 -0
  101. package/utils/removeHooks.js +20 -0
  102. package/utils/setup.js +33 -0
  103. package/utils/taskMover.js +308 -0
  104. package/utils/tbScript.js +103 -0
  105. package/utils/tbUtils.js +347 -0
  106. package/utils/testRunner.js +298 -0
  107. package/utils/troubleshootingAdapter.js +177 -0
  108. package/utils/updateAdapterConfig.js +158 -0
@@ -0,0 +1,209 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getLocationAnnotatedResources",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}/annotatedResources?{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": "postLocationAnnotatedResource",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}/annotatedResources?{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": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getLocationAnnotatedResource",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}/annotatedResources/{pathv2}?{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": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "deleteLocationAnnotatedResource",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}/annotatedResources/{pathv2}?{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": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "getLocations",
87
+ "protocol": "REST",
88
+ "method": "GET",
89
+ "entitypath": "{base_path}/{version}/api/v2/locations?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "sendGetBody": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": ""
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "name": "getLocation",
108
+ "protocol": "REST",
109
+ "method": "GET",
110
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}?{query}",
111
+ "requestSchema": "schema.json",
112
+ "responseSchema": "schema.json",
113
+ "timeout": 0,
114
+ "sendEmpty": false,
115
+ "sendGetBody": false,
116
+ "requestDatatype": "JSON",
117
+ "responseDatatype": "JSON",
118
+ "headers": {},
119
+ "responseObjects": [
120
+ {
121
+ "type": "default",
122
+ "key": "",
123
+ "mockFile": ""
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "name": "putLocation",
129
+ "protocol": "REST",
130
+ "method": "PUT",
131
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}?{query}",
132
+ "requestSchema": "schema.json",
133
+ "responseSchema": "schema.json",
134
+ "timeout": 0,
135
+ "sendEmpty": false,
136
+ "requestDatatype": "JSON",
137
+ "responseDatatype": "JSON",
138
+ "headers": {},
139
+ "responseObjects": [
140
+ {
141
+ "type": "default",
142
+ "key": "",
143
+ "mockFile": ""
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "name": "deleteLocation",
149
+ "protocol": "REST",
150
+ "method": "DELETE",
151
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}?{query}",
152
+ "requestSchema": "schema.json",
153
+ "responseSchema": "schema.json",
154
+ "timeout": 0,
155
+ "sendEmpty": false,
156
+ "requestDatatype": "JSON",
157
+ "responseDatatype": "JSON",
158
+ "headers": {},
159
+ "responseObjects": [
160
+ {
161
+ "type": "default",
162
+ "key": "",
163
+ "mockFile": ""
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "name": "getLocationLocations",
169
+ "protocol": "REST",
170
+ "method": "GET",
171
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}/locations?{query}",
172
+ "requestSchema": "schema.json",
173
+ "responseSchema": "schema.json",
174
+ "timeout": 0,
175
+ "sendEmpty": false,
176
+ "sendGetBody": false,
177
+ "requestDatatype": "JSON",
178
+ "responseDatatype": "JSON",
179
+ "headers": {},
180
+ "responseObjects": [
181
+ {
182
+ "type": "default",
183
+ "key": "",
184
+ "mockFile": ""
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "name": "postLocationLocation",
190
+ "protocol": "REST",
191
+ "method": "POST",
192
+ "entitypath": "{base_path}/{version}/api/v2/locations/{pathv1}/locations?{query}",
193
+ "requestSchema": "schema.json",
194
+ "responseSchema": "schema.json",
195
+ "timeout": 0,
196
+ "sendEmpty": false,
197
+ "requestDatatype": "JSON",
198
+ "responseDatatype": "JSON",
199
+ "headers": {},
200
+ "responseObjects": [
201
+ {
202
+ "type": "default",
203
+ "key": "",
204
+ "mockFile": ""
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ }
@@ -0,0 +1,28 @@
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": "getLocationAnnotatedResources",
12
+ "enum": [
13
+ "getLocationAnnotatedResources",
14
+ "postLocationAnnotatedResource",
15
+ "getLocationAnnotatedResource",
16
+ "deleteLocationAnnotatedResource",
17
+ "getLocations",
18
+ "getLocation",
19
+ "putLocation",
20
+ "deleteLocation",
21
+ "getLocationLocations",
22
+ "postLocationLocation"
23
+ ],
24
+ "external_name": "ph_request_type"
25
+ }
26
+ },
27
+ "definitions": {}
28
+ }
@@ -0,0 +1,395 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getClientIdentifiers",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/api/v2/clientIdentifiers?{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": "getClientIdentifier",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/api/v2/clientIdentifiers/{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": ""
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "getConfigurationClientIdentifiers",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/api/v2/configurations/{pathv1}/clientIdentifiers?{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": "getMacAddresses",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/api/v2/macAddresses?{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": "getMacAddress",
89
+ "protocol": "REST",
90
+ "method": "GET",
91
+ "entitypath": "{base_path}/{version}/api/v2/macAddresses/{pathv1}?{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": "putMacAddress",
110
+ "protocol": "REST",
111
+ "method": "PUT",
112
+ "entitypath": "{base_path}/{version}/api/v2/macAddresses/{pathv1}?{query}",
113
+ "requestSchema": "schema.json",
114
+ "responseSchema": "schema.json",
115
+ "timeout": 0,
116
+ "sendEmpty": false,
117
+ "requestDatatype": "JSON",
118
+ "responseDatatype": "JSON",
119
+ "headers": {},
120
+ "responseObjects": [
121
+ {
122
+ "type": "default",
123
+ "key": "",
124
+ "mockFile": ""
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "name": "deleteMacAddress",
130
+ "protocol": "REST",
131
+ "method": "DELETE",
132
+ "entitypath": "{base_path}/{version}/api/v2/macAddresses/{pathv1}?{query}",
133
+ "requestSchema": "schema.json",
134
+ "responseSchema": "schema.json",
135
+ "timeout": 0,
136
+ "sendEmpty": false,
137
+ "requestDatatype": "JSON",
138
+ "responseDatatype": "JSON",
139
+ "headers": {},
140
+ "responseObjects": [
141
+ {
142
+ "type": "default",
143
+ "key": "",
144
+ "mockFile": ""
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "getConfigurationMacAddresses",
150
+ "protocol": "REST",
151
+ "method": "GET",
152
+ "entitypath": "{base_path}/{version}/api/v2/configurations/{pathv1}/macAddresses?{query}",
153
+ "requestSchema": "schema.json",
154
+ "responseSchema": "schema.json",
155
+ "timeout": 0,
156
+ "sendEmpty": false,
157
+ "sendGetBody": false,
158
+ "requestDatatype": "JSON",
159
+ "responseDatatype": "JSON",
160
+ "headers": {},
161
+ "responseObjects": [
162
+ {
163
+ "type": "default",
164
+ "key": "",
165
+ "mockFile": ""
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "name": "postConfigurationMacAddress",
171
+ "protocol": "REST",
172
+ "method": "POST",
173
+ "entitypath": "{base_path}/{version}/api/v2/configurations/{pathv1}/macAddresses?{query}",
174
+ "requestSchema": "schema.json",
175
+ "responseSchema": "schema.json",
176
+ "timeout": 0,
177
+ "sendEmpty": false,
178
+ "requestDatatype": "JSON",
179
+ "responseDatatype": "JSON",
180
+ "headers": {},
181
+ "responseObjects": [
182
+ {
183
+ "type": "default",
184
+ "key": "",
185
+ "mockFile": ""
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "name": "getMacPoolMacAddresses",
191
+ "protocol": "REST",
192
+ "method": "GET",
193
+ "entitypath": "{base_path}/{version}/api/v2/macPools/{pathv1}/macAddresses?{query}",
194
+ "requestSchema": "schema.json",
195
+ "responseSchema": "schema.json",
196
+ "timeout": 0,
197
+ "sendEmpty": false,
198
+ "sendGetBody": false,
199
+ "requestDatatype": "JSON",
200
+ "responseDatatype": "JSON",
201
+ "headers": {},
202
+ "responseObjects": [
203
+ {
204
+ "type": "default",
205
+ "key": "",
206
+ "mockFile": ""
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "name": "postMacPoolMacAddress",
212
+ "protocol": "REST",
213
+ "method": "POST",
214
+ "entitypath": "{base_path}/{version}/api/v2/macPools/{pathv1}/macAddresses?{query}",
215
+ "requestSchema": "schema.json",
216
+ "responseSchema": "schema.json",
217
+ "timeout": 0,
218
+ "sendEmpty": false,
219
+ "requestDatatype": "JSON",
220
+ "responseDatatype": "JSON",
221
+ "headers": {},
222
+ "responseObjects": [
223
+ {
224
+ "type": "default",
225
+ "key": "",
226
+ "mockFile": ""
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ "name": "getMacPoolMacAddress",
232
+ "protocol": "REST",
233
+ "method": "GET",
234
+ "entitypath": "{base_path}/{version}/api/v2/macPools/{pathv1}/macAddresses/{pathv2}?{query}",
235
+ "requestSchema": "schema.json",
236
+ "responseSchema": "schema.json",
237
+ "timeout": 0,
238
+ "sendEmpty": false,
239
+ "sendGetBody": false,
240
+ "requestDatatype": "JSON",
241
+ "responseDatatype": "JSON",
242
+ "headers": {},
243
+ "responseObjects": [
244
+ {
245
+ "type": "default",
246
+ "key": "",
247
+ "mockFile": ""
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "name": "deleteMacPoolMacAddress",
253
+ "protocol": "REST",
254
+ "method": "DELETE",
255
+ "entitypath": "{base_path}/{version}/api/v2/macPools/{pathv1}/macAddresses/{pathv2}?{query}",
256
+ "requestSchema": "schema.json",
257
+ "responseSchema": "schema.json",
258
+ "timeout": 0,
259
+ "sendEmpty": false,
260
+ "requestDatatype": "JSON",
261
+ "responseDatatype": "JSON",
262
+ "headers": {},
263
+ "responseObjects": [
264
+ {
265
+ "type": "default",
266
+ "key": "",
267
+ "mockFile": ""
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "name": "getMacPools",
273
+ "protocol": "REST",
274
+ "method": "GET",
275
+ "entitypath": "{base_path}/{version}/api/v2/macPools?{query}",
276
+ "requestSchema": "schema.json",
277
+ "responseSchema": "schema.json",
278
+ "timeout": 0,
279
+ "sendEmpty": false,
280
+ "sendGetBody": false,
281
+ "requestDatatype": "JSON",
282
+ "responseDatatype": "JSON",
283
+ "headers": {},
284
+ "responseObjects": [
285
+ {
286
+ "type": "default",
287
+ "key": "",
288
+ "mockFile": ""
289
+ }
290
+ ]
291
+ },
292
+ {
293
+ "name": "getMacPool",
294
+ "protocol": "REST",
295
+ "method": "GET",
296
+ "entitypath": "{base_path}/{version}/api/v2/macPools/{pathv1}?{query}",
297
+ "requestSchema": "schema.json",
298
+ "responseSchema": "schema.json",
299
+ "timeout": 0,
300
+ "sendEmpty": false,
301
+ "sendGetBody": false,
302
+ "requestDatatype": "JSON",
303
+ "responseDatatype": "JSON",
304
+ "headers": {},
305
+ "responseObjects": [
306
+ {
307
+ "type": "default",
308
+ "key": "",
309
+ "mockFile": ""
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "name": "putMacPool",
315
+ "protocol": "REST",
316
+ "method": "PUT",
317
+ "entitypath": "{base_path}/{version}/api/v2/macPools/{pathv1}?{query}",
318
+ "requestSchema": "schema.json",
319
+ "responseSchema": "schema.json",
320
+ "timeout": 0,
321
+ "sendEmpty": false,
322
+ "requestDatatype": "JSON",
323
+ "responseDatatype": "JSON",
324
+ "headers": {},
325
+ "responseObjects": [
326
+ {
327
+ "type": "default",
328
+ "key": "",
329
+ "mockFile": ""
330
+ }
331
+ ]
332
+ },
333
+ {
334
+ "name": "deleteMacPool",
335
+ "protocol": "REST",
336
+ "method": "DELETE",
337
+ "entitypath": "{base_path}/{version}/api/v2/macPools/{pathv1}?{query}",
338
+ "requestSchema": "schema.json",
339
+ "responseSchema": "schema.json",
340
+ "timeout": 0,
341
+ "sendEmpty": false,
342
+ "requestDatatype": "JSON",
343
+ "responseDatatype": "JSON",
344
+ "headers": {},
345
+ "responseObjects": [
346
+ {
347
+ "type": "default",
348
+ "key": "",
349
+ "mockFile": ""
350
+ }
351
+ ]
352
+ },
353
+ {
354
+ "name": "getConfigurationMacPools",
355
+ "protocol": "REST",
356
+ "method": "GET",
357
+ "entitypath": "{base_path}/{version}/api/v2/configurations/{pathv1}/macPools?{query}",
358
+ "requestSchema": "schema.json",
359
+ "responseSchema": "schema.json",
360
+ "timeout": 0,
361
+ "sendEmpty": false,
362
+ "sendGetBody": false,
363
+ "requestDatatype": "JSON",
364
+ "responseDatatype": "JSON",
365
+ "headers": {},
366
+ "responseObjects": [
367
+ {
368
+ "type": "default",
369
+ "key": "",
370
+ "mockFile": ""
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "name": "postConfigurationMacPool",
376
+ "protocol": "REST",
377
+ "method": "POST",
378
+ "entitypath": "{base_path}/{version}/api/v2/configurations/{pathv1}/macPools?{query}",
379
+ "requestSchema": "schema.json",
380
+ "responseSchema": "schema.json",
381
+ "timeout": 0,
382
+ "sendEmpty": false,
383
+ "requestDatatype": "JSON",
384
+ "responseDatatype": "JSON",
385
+ "headers": {},
386
+ "responseObjects": [
387
+ {
388
+ "type": "default",
389
+ "key": "",
390
+ "mockFile": ""
391
+ }
392
+ ]
393
+ }
394
+ ]
395
+ }
@@ -0,0 +1,37 @@
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": "getClientIdentifiers",
12
+ "enum": [
13
+ "getClientIdentifiers",
14
+ "getClientIdentifier",
15
+ "getConfigurationClientIdentifiers",
16
+ "getMacAddresses",
17
+ "getMacAddress",
18
+ "putMacAddress",
19
+ "deleteMacAddress",
20
+ "getConfigurationMacAddresses",
21
+ "postConfigurationMacAddress",
22
+ "getMacPoolMacAddresses",
23
+ "postMacPoolMacAddress",
24
+ "getMacPoolMacAddress",
25
+ "deleteMacPoolMacAddress",
26
+ "getMacPools",
27
+ "getMacPool",
28
+ "putMacPool",
29
+ "deleteMacPool",
30
+ "getConfigurationMacPools",
31
+ "postConfigurationMacPool"
32
+ ],
33
+ "external_name": "ph_request_type"
34
+ }
35
+ },
36
+ "definitions": {}
37
+ }