@itentialopensource/adapter-netbox 0.7.0 → 0.9.0
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/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +87 -21
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +221 -571
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +6523 -5885
- package/adapterBase.js +1006 -252
- package/entities/.generic/action.json +105 -0
- package/entities/.generic/schema.json +6 -1
- package/entities/Dcim/action.json +182 -0
- package/entities/Dcim/mockdatafiles/getDcimLocations-default.json +688 -0
- package/entities/Dcim/schema.json +82 -19
- package/entities/Graphql/action.json +1 -1
- package/error.json +6 -0
- package/package.json +7 -5
- package/pronghorn.json +2153 -81
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +421 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1653302322815.json +120 -0
- package/sampleProperties.json +90 -1
- package/test/integration/adapterTestBasicGet.js +1 -1
- package/test/integration/adapterTestIntegration.js +278 -107
- package/test/unit/adapterBaseTestUnit.js +30 -25
- package/test/unit/adapterTestUnit.js +351 -177
- package/utils/adapterInfo.js +206 -0
- package/utils/entitiesToDB.js +12 -57
- package/utils/pre-commit.sh +3 -0
- package/utils/tbScript.js +35 -20
- package/utils/tbUtils.js +49 -31
- package/utils/testRunner.js +16 -16
|
@@ -104,6 +104,111 @@
|
|
|
104
104
|
"mockFile": ""
|
|
105
105
|
}
|
|
106
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
|
+
]
|
|
107
212
|
}
|
|
108
213
|
]
|
|
109
214
|
}
|
|
@@ -14,7 +14,12 @@
|
|
|
14
14
|
"createGeneric",
|
|
15
15
|
"updateGeneric",
|
|
16
16
|
"patchGeneric",
|
|
17
|
-
"deleteGeneric"
|
|
17
|
+
"deleteGeneric",
|
|
18
|
+
"getGenericsNoBase",
|
|
19
|
+
"createGenericNoBase",
|
|
20
|
+
"updateGenericNoBase",
|
|
21
|
+
"patchGenericNoBase",
|
|
22
|
+
"deleteGenericNoBase"
|
|
18
23
|
],
|
|
19
24
|
"external_name": "ph_request_type"
|
|
20
25
|
}
|
|
@@ -4197,6 +4197,188 @@
|
|
|
4197
4197
|
"mockFile": ""
|
|
4198
4198
|
}
|
|
4199
4199
|
]
|
|
4200
|
+
},
|
|
4201
|
+
{
|
|
4202
|
+
"name": "getDcimLocations",
|
|
4203
|
+
"protocol": "REST",
|
|
4204
|
+
"method": "GET",
|
|
4205
|
+
"entitypath": "{base_path}/{version}/dcim/locations/?{query}",
|
|
4206
|
+
"requestSchema": "schema.json",
|
|
4207
|
+
"responseSchema": "schema.json",
|
|
4208
|
+
"timeout": 0,
|
|
4209
|
+
"sendEmpty": false,
|
|
4210
|
+
"sendGetBody": false,
|
|
4211
|
+
"requestDatatype": "JSON",
|
|
4212
|
+
"responseDatatype": "JSON",
|
|
4213
|
+
"headers": {},
|
|
4214
|
+
"responseObjects": [
|
|
4215
|
+
{
|
|
4216
|
+
"type": "default",
|
|
4217
|
+
"key": "",
|
|
4218
|
+
"mockFile": "mockdatafiles/getDcimLocations-default.json"
|
|
4219
|
+
}
|
|
4220
|
+
]
|
|
4221
|
+
},
|
|
4222
|
+
{
|
|
4223
|
+
"name": "postDcimLocations",
|
|
4224
|
+
"protocol": "REST",
|
|
4225
|
+
"method": "POST",
|
|
4226
|
+
"entitypath": "{base_path}/{version}/dcim/locations/?{query}",
|
|
4227
|
+
"requestSchema": "schema.json",
|
|
4228
|
+
"responseSchema": "schema.json",
|
|
4229
|
+
"timeout": 0,
|
|
4230
|
+
"sendEmpty": false,
|
|
4231
|
+
"requestDatatype": "JSON",
|
|
4232
|
+
"responseDatatype": "JSON",
|
|
4233
|
+
"headers": {},
|
|
4234
|
+
"responseObjects": [
|
|
4235
|
+
{
|
|
4236
|
+
"type": "default",
|
|
4237
|
+
"key": "",
|
|
4238
|
+
"mockFile": ""
|
|
4239
|
+
}
|
|
4240
|
+
]
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"name": "putDcimLocations",
|
|
4244
|
+
"protocol": "REST",
|
|
4245
|
+
"method": "PUT",
|
|
4246
|
+
"entitypath": "{base_path}/{version}/dcim/locations/?{query}",
|
|
4247
|
+
"requestSchema": "schema.json",
|
|
4248
|
+
"responseSchema": "schema.json",
|
|
4249
|
+
"timeout": 0,
|
|
4250
|
+
"sendEmpty": false,
|
|
4251
|
+
"requestDatatype": "JSON",
|
|
4252
|
+
"responseDatatype": "JSON",
|
|
4253
|
+
"headers": {},
|
|
4254
|
+
"responseObjects": [
|
|
4255
|
+
{
|
|
4256
|
+
"type": "default",
|
|
4257
|
+
"key": "",
|
|
4258
|
+
"mockFile": ""
|
|
4259
|
+
}
|
|
4260
|
+
]
|
|
4261
|
+
},
|
|
4262
|
+
{
|
|
4263
|
+
"name": "patchDcimLocations",
|
|
4264
|
+
"protocol": "REST",
|
|
4265
|
+
"method": "PATCH",
|
|
4266
|
+
"entitypath": "{base_path}/{version}/dcim/locations/?{query}",
|
|
4267
|
+
"requestSchema": "schema.json",
|
|
4268
|
+
"responseSchema": "schema.json",
|
|
4269
|
+
"timeout": 0,
|
|
4270
|
+
"sendEmpty": false,
|
|
4271
|
+
"requestDatatype": "JSON",
|
|
4272
|
+
"responseDatatype": "JSON",
|
|
4273
|
+
"headers": {},
|
|
4274
|
+
"responseObjects": [
|
|
4275
|
+
{
|
|
4276
|
+
"type": "default",
|
|
4277
|
+
"key": "",
|
|
4278
|
+
"mockFile": ""
|
|
4279
|
+
}
|
|
4280
|
+
]
|
|
4281
|
+
},
|
|
4282
|
+
{
|
|
4283
|
+
"name": "deleteDcimLocations",
|
|
4284
|
+
"protocol": "REST",
|
|
4285
|
+
"method": "DELETE",
|
|
4286
|
+
"entitypath": "{base_path}/{version}/dcim/locations/?{query}",
|
|
4287
|
+
"requestSchema": "schema.json",
|
|
4288
|
+
"responseSchema": "schema.json",
|
|
4289
|
+
"timeout": 0,
|
|
4290
|
+
"sendEmpty": false,
|
|
4291
|
+
"requestDatatype": "JSON",
|
|
4292
|
+
"responseDatatype": "JSON",
|
|
4293
|
+
"headers": {},
|
|
4294
|
+
"responseObjects": [
|
|
4295
|
+
{
|
|
4296
|
+
"type": "default",
|
|
4297
|
+
"key": "",
|
|
4298
|
+
"mockFile": ""
|
|
4299
|
+
}
|
|
4300
|
+
]
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
"name": "getDcimLocationsId",
|
|
4304
|
+
"protocol": "REST",
|
|
4305
|
+
"method": "GET",
|
|
4306
|
+
"entitypath": "{base_path}/{version}/dcim/locations/{pathv1}/?{query}",
|
|
4307
|
+
"requestSchema": "schema.json",
|
|
4308
|
+
"responseSchema": "schema.json",
|
|
4309
|
+
"timeout": 0,
|
|
4310
|
+
"sendEmpty": false,
|
|
4311
|
+
"sendGetBody": false,
|
|
4312
|
+
"requestDatatype": "JSON",
|
|
4313
|
+
"responseDatatype": "JSON",
|
|
4314
|
+
"headers": {},
|
|
4315
|
+
"responseObjects": [
|
|
4316
|
+
{
|
|
4317
|
+
"type": "default",
|
|
4318
|
+
"key": "",
|
|
4319
|
+
"mockFile": ""
|
|
4320
|
+
}
|
|
4321
|
+
]
|
|
4322
|
+
},
|
|
4323
|
+
{
|
|
4324
|
+
"name": "putDcimLocationsId",
|
|
4325
|
+
"protocol": "REST",
|
|
4326
|
+
"method": "PUT",
|
|
4327
|
+
"entitypath": "{base_path}/{version}/dcim/locations/{pathv1}/?{query}",
|
|
4328
|
+
"requestSchema": "schema.json",
|
|
4329
|
+
"responseSchema": "schema.json",
|
|
4330
|
+
"timeout": 0,
|
|
4331
|
+
"sendEmpty": false,
|
|
4332
|
+
"requestDatatype": "JSON",
|
|
4333
|
+
"responseDatatype": "JSON",
|
|
4334
|
+
"headers": {},
|
|
4335
|
+
"responseObjects": [
|
|
4336
|
+
{
|
|
4337
|
+
"type": "default",
|
|
4338
|
+
"key": "",
|
|
4339
|
+
"mockFile": ""
|
|
4340
|
+
}
|
|
4341
|
+
]
|
|
4342
|
+
},
|
|
4343
|
+
{
|
|
4344
|
+
"name": "patchDcimLocationsId",
|
|
4345
|
+
"protocol": "REST",
|
|
4346
|
+
"method": "PATCH",
|
|
4347
|
+
"entitypath": "{base_path}/{version}/dcim/locations/{pathv1}/?{query}",
|
|
4348
|
+
"requestSchema": "schema.json",
|
|
4349
|
+
"responseSchema": "schema.json",
|
|
4350
|
+
"timeout": 0,
|
|
4351
|
+
"sendEmpty": false,
|
|
4352
|
+
"requestDatatype": "JSON",
|
|
4353
|
+
"responseDatatype": "JSON",
|
|
4354
|
+
"headers": {},
|
|
4355
|
+
"responseObjects": [
|
|
4356
|
+
{
|
|
4357
|
+
"type": "default",
|
|
4358
|
+
"key": "",
|
|
4359
|
+
"mockFile": ""
|
|
4360
|
+
}
|
|
4361
|
+
]
|
|
4362
|
+
},
|
|
4363
|
+
{
|
|
4364
|
+
"name": "deleteDcimLocationsId",
|
|
4365
|
+
"protocol": "REST",
|
|
4366
|
+
"method": "DELETE",
|
|
4367
|
+
"entitypath": "{base_path}/{version}/dcim/locations/{pathv1}/?{query}",
|
|
4368
|
+
"requestSchema": "schema.json",
|
|
4369
|
+
"responseSchema": "schema.json",
|
|
4370
|
+
"timeout": 0,
|
|
4371
|
+
"sendEmpty": false,
|
|
4372
|
+
"requestDatatype": "JSON",
|
|
4373
|
+
"responseDatatype": "JSON",
|
|
4374
|
+
"headers": {},
|
|
4375
|
+
"responseObjects": [
|
|
4376
|
+
{
|
|
4377
|
+
"type": "default",
|
|
4378
|
+
"key": "",
|
|
4379
|
+
"mockFile": ""
|
|
4380
|
+
}
|
|
4381
|
+
]
|
|
4200
4382
|
}
|
|
4201
4383
|
]
|
|
4202
4384
|
}
|