@itentialopensource/adapter-dna_center 0.5.6 → 0.5.7

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/pronghorn.json CHANGED
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "methods": [
11
11
  {
12
- "name": "updateAdapterConfiguration",
12
+ "name": "iapUpdateAdapterConfiguration",
13
13
  "summary": "Updates the adapter configuration",
14
14
  "description": "Updates the adapter configuration file with the provided changes",
15
15
  "input": [
@@ -78,31 +78,63 @@
78
78
  ],
79
79
  "route": {
80
80
  "verb": "POST",
81
- "path": "/updateAdapterConfiguration"
81
+ "path": "/iapUpdateAdapterConfiguration"
82
82
  },
83
83
  "task": true
84
84
  },
85
85
  {
86
- "name": "findPath",
86
+ "name": "iapFindAdapterPath",
87
87
  "summary": "Provides the ability to see if a particular API path is supported by the adapter",
88
88
  "description": "Provides the ability to see if a particular API path is supported by the adapter",
89
- "input": [
90
- {
91
- "name": "apiPath",
92
- "type": "string",
93
- "info": "The API Path you want to check - make sure to not include base path and version",
94
- "description": "The API Path you want to check - make sure to not include base path and version",
95
- "schema": {
96
- "title": "apiPath",
97
- "type": "string"
98
- },
99
- "required": true
89
+ "input": [{
90
+ "name": "apiPath",
91
+ "type": "string",
92
+ "info": "The API Path you want to check - make sure to not include base path and version",
93
+ "description": "The API Path you want to check - make sure to not include base path and version",
94
+ "schema": {
95
+ "title": "apiPath",
96
+ "type": "string"
97
+ },
98
+ "required": true
99
+ }],
100
+ "output": {
101
+ "name": "result",
102
+ "type": "object",
103
+ "description": "A JSON Object containing the result",
104
+ "schema": {
105
+ "title": "result",
106
+ "type": "object"
100
107
  }
108
+ },
109
+ "roles": [
110
+ "admin"
101
111
  ],
112
+ "route": {
113
+ "verb": "POST",
114
+ "path": "/iapFindAdapterPath"
115
+ },
116
+ "task": true
117
+ },
118
+ {
119
+ "name": "iapSuspendAdapter",
120
+ "summary": "Suspends the adapter",
121
+ "description": "Suspends the adapter",
122
+ "input": [{
123
+ "name": "mode",
124
+ "type": "enum",
125
+ "enumerals": ["pause", "error"],
126
+ "info": "How incoming requests are handled. Defaults to 'pause'",
127
+ "description": "How incoming requests are handled. Defaults to 'pause'",
128
+ "schema": {
129
+ "title": "mode",
130
+ "type": "string"
131
+ },
132
+ "required": false
133
+ }],
102
134
  "output": {
103
135
  "name": "result",
104
136
  "type": "object",
105
- "description": "A JSON Object containing the result",
137
+ "description": "A JSON Object containing the adapter suspended status",
106
138
  "schema": {
107
139
  "title": "result",
108
140
  "type": "object"
@@ -113,12 +145,58 @@
113
145
  ],
114
146
  "route": {
115
147
  "verb": "POST",
116
- "path": "/findPath"
148
+ "path": "/iapSuspendAdapter"
117
149
  },
118
150
  "task": true
119
151
  },
120
152
  {
121
- "name": "troubleshoot",
153
+ "name": "iapUnsuspendAdapter",
154
+ "summary": "Unsuspends the adapter",
155
+ "description": "Unsuspends the adapter",
156
+ "input": [],
157
+ "output": {
158
+ "name": "result",
159
+ "type": "object",
160
+ "description": "A JSON Object containing the adapter suspended status",
161
+ "schema": {
162
+ "title": "result",
163
+ "type": "object"
164
+ }
165
+ },
166
+ "roles": [
167
+ "admin"
168
+ ],
169
+ "route": {
170
+ "verb": "POST",
171
+ "path": "/iapUnsuspendAdapter"
172
+ },
173
+ "task": true
174
+ },
175
+ {
176
+ "name": "iapGetAdapterQueue",
177
+ "summary": "Return the requests that are waiting in the queue if throttling is enabled",
178
+ "description": "Return the requests that are waiting in the queue if throttling is enabled",
179
+ "input": [],
180
+ "output": {
181
+ "name": "result",
182
+ "type": "object",
183
+ "description": "A JSON Object containing the adapter queue",
184
+ "schema": {
185
+ "title": "result",
186
+ "type": "object"
187
+ }
188
+ },
189
+ "roles": [
190
+ "admin"
191
+ ],
192
+ "route": {
193
+ "verb": "POST",
194
+ "path": "/iapGetAdapterQueue"
195
+ },
196
+ "task": true
197
+ },
198
+ {
199
+ "name": "iapTroubleshootAdapter",
122
200
  "summary": "Runs troubleshoot script for adapter",
123
201
  "description": "Runs troubleshoot script for adapter",
124
202
  "input": [
@@ -153,12 +231,12 @@
153
231
  ],
154
232
  "route": {
155
233
  "verb": "POST",
156
- "path": "/troubleshoot"
234
+ "path": "/iapTroubleshootAdapter"
157
235
  },
158
236
  "task": true
159
237
  },
160
238
  {
161
- "name": "runHealthcheck",
239
+ "name": "iapRunAdapterHealthcheck",
162
240
  "summary": "Runs healthcheck script for adapter",
163
241
  "description": "Runs healthcheck script for adapter",
164
242
  "input": [],
@@ -172,12 +250,12 @@
172
250
  ],
173
251
  "route": {
174
252
  "verb": "POST",
175
- "path": "/runHealthcheck"
253
+ "path": "/iapRunAdapterHealthcheck"
176
254
  },
177
255
  "task": true
178
256
  },
179
257
  {
180
- "name": "runConnectivity",
258
+ "name": "iapRunAdapterConnectivity",
181
259
  "summary": "Runs connectivity check script for adapter",
182
260
  "description": "Runs connectivity check script for adapter",
183
261
  "input": [],
@@ -195,12 +273,12 @@
195
273
  ],
196
274
  "route": {
197
275
  "verb": "POST",
198
- "path": "/runConnectivity"
276
+ "path": "/iapRunAdapterConnectivity"
199
277
  },
200
278
  "task": true
201
279
  },
202
280
  {
203
- "name": "runBasicGet",
281
+ "name": "iapRunAdapterBasicGet",
204
282
  "summary": "Runs basicGet script for adapter",
205
283
  "description": "Runs basicGet script for adapter",
206
284
  "input": [],
@@ -218,37 +296,21 @@
218
296
  ],
219
297
  "route": {
220
298
  "verb": "POST",
221
- "path": "/runBasicGet"
299
+ "path": "/iapRunAdapterBasicGet"
222
300
  },
223
301
  "task": true
224
302
  },
225
303
  {
226
- "name": "suspend",
227
- "summary": "Suspends the adapter",
228
- "description": "Suspends the adapter",
229
- "input": [
230
- {
231
- "name": "mode",
232
- "type": "enum",
233
- "enumerals": [
234
- "pause",
235
- "error"
236
- ],
237
- "info": "How incoming requests are handled. Defaults to 'pause'",
238
- "description": "How incoming requests are handled. Defaults to 'pause'",
239
- "schema": {
240
- "title": "mode",
241
- "type": "string"
242
- },
243
- "required": false
244
- }
245
- ],
304
+ "name": "iapMoveAdapterEntitiesToDB",
305
+ "summary": "Moves entities from an adapter into the IAP database",
306
+ "description": "Moves entities from an adapter into the IAP database",
307
+ "input": [],
246
308
  "output": {
247
- "name": "result",
309
+ "name": "res",
248
310
  "type": "object",
249
- "description": "A JSON Object containing the adapter suspended status",
311
+ "description": "A JSON Object containing status, code and the response from the mongo transaction",
250
312
  "schema": {
251
- "title": "result",
313
+ "title": "res",
252
314
  "type": "object"
253
315
  }
254
316
  },
@@ -257,42 +319,75 @@
257
319
  ],
258
320
  "route": {
259
321
  "verb": "POST",
260
- "path": "/suspend"
322
+ "path": "/iapMoveAdapterEntitiesToDB"
261
323
  },
262
324
  "task": true
263
325
  },
264
326
  {
265
- "name": "unsuspend",
266
- "summary": "Unsuspends the adapter",
267
- "description": "Unsuspends the adapter",
268
- "input": [],
269
- "output": {
270
- "name": "result",
271
- "type": "object",
272
- "description": "A JSON Object containing the adapter suspended status",
273
- "schema": {
274
- "title": "result",
275
- "type": "object"
327
+ "name": "genericAdapterRequest",
328
+ "summary": "Makes the requested generic call",
329
+ "description": "Makes the requested generic call",
330
+ "input": [
331
+ {
332
+ "name": "uriPath",
333
+ "type": "string",
334
+ "info": "the path of the api call - do not include the host, port, base path or version",
335
+ "description": "the path of the api call",
336
+ "schema": {
337
+ "title": "uriPath",
338
+ "type": "string"
339
+ },
340
+ "required": true
341
+ },
342
+ {
343
+ "name": "restMethod",
344
+ "type": "string",
345
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
346
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
347
+ "schema": {
348
+ "title": "restMethod",
349
+ "type": "string"
350
+ },
351
+ "required": true
352
+ },
353
+ {
354
+ "name": "queryData",
355
+ "type": "object",
356
+ "info": "the query parameters to be put on the url (optional)",
357
+ "description": "the query parameters to be put on the url (optional)",
358
+ "schema": {
359
+ "title": "queryData",
360
+ "type": "object"
361
+ },
362
+ "required": false
363
+ },
364
+ {
365
+ "name": "requestBody",
366
+ "type": "object",
367
+ "info": "the payload to be sent with the request (optional)",
368
+ "description": "the payload to be sent with the request (optional)",
369
+ "schema": {
370
+ "title": "requestBody",
371
+ "type": "object"
372
+ },
373
+ "required": false
374
+ },
375
+ {
376
+ "name": "addlHeaders",
377
+ "type": "object",
378
+ "info": "additional headers to be put on the call (optional)",
379
+ "description": "additional headers to be put on the call (optional)",
380
+ "schema": {
381
+ "title": "addlHeaders",
382
+ "type": "object"
383
+ },
384
+ "required": false
276
385
  }
277
- },
278
- "roles": [
279
- "admin"
280
386
  ],
281
- "route": {
282
- "verb": "POST",
283
- "path": "/unsuspend"
284
- },
285
- "task": true
286
- },
287
- {
288
- "name": "getQueue",
289
- "summary": "Return the requests that are waiting in the queue if throttling is enabled",
290
- "description": "Return the requests that are waiting in the queue if throttling is enabled",
291
- "input": [],
292
387
  "output": {
293
388
  "name": "result",
294
389
  "type": "object",
295
- "description": "A JSON Object containing the adapter queue",
390
+ "description": "A JSON Object containing status, code and the result",
296
391
  "schema": {
297
392
  "title": "result",
298
393
  "type": "object"
@@ -303,14 +398,14 @@
303
398
  ],
304
399
  "route": {
305
400
  "verb": "POST",
306
- "path": "/getQueue"
401
+ "path": "/genericAdapterRequest"
307
402
  },
308
403
  "task": true
309
404
  },
310
405
  {
311
- "name": "genericAdapterRequest",
312
- "summary": "Makes the requested generic call",
313
- "description": "Makes the requested generic call",
406
+ "name": "genericAdapterRequestNoBasePath",
407
+ "summary": "Makes the requested generic call with no base path or version",
408
+ "description": "Makes the requested generic call with no base path or version",
314
409
  "input": [
315
410
  {
316
411
  "name": "uriPath",
@@ -382,10 +477,179 @@
382
477
  ],
383
478
  "route": {
384
479
  "verb": "POST",
385
- "path": "/genericAdapterRequest"
480
+ "path": "/genericAdapterRequestNoBasePath"
386
481
  },
387
482
  "task": true
388
483
  },
484
+ {
485
+ "name": "getDevice",
486
+ "summary": "Get the Appliance",
487
+ "description": "Get the Appliance",
488
+ "input": [
489
+ {
490
+ "name": "deviceName",
491
+ "type": "string",
492
+ "info": "An Appliance Device Name",
493
+ "required": true,
494
+ "schema": {
495
+ "title": "deviceName",
496
+ "type": "string"
497
+ }
498
+ }
499
+ ],
500
+ "output": {
501
+ "name": "result",
502
+ "type": "object",
503
+ "description": "A JSON Object containing status, code and the result",
504
+ "schema": {
505
+ "title": "result",
506
+ "type": "object"
507
+ }
508
+ },
509
+ "roles": [
510
+ "admin"
511
+ ],
512
+ "route": {
513
+ "verb": "POST",
514
+ "path": "/getDevice"
515
+ },
516
+ "task": false
517
+ },
518
+ {
519
+ "name": "getDevicesFiltered",
520
+ "summary": "Get Appliances that match the filter",
521
+ "description": "Get Appliances that match the filter",
522
+ "input": [
523
+ {
524
+ "name": "options",
525
+ "type": "object",
526
+ "info": "options - e.g. { 'start': 1, 'limit': 20, 'filter': { 'name': 'abc123' } }",
527
+ "required": true,
528
+ "schema": {
529
+ "title": "options",
530
+ "type": "object"
531
+ }
532
+ }
533
+ ],
534
+ "output": {
535
+ "name": "result",
536
+ "type": "array",
537
+ "description": "A JSON Object containing status, code and the result",
538
+ "schema": {
539
+ "title": "result",
540
+ "type": "array"
541
+ }
542
+ },
543
+ "roles": [
544
+ "admin"
545
+ ],
546
+ "route": {
547
+ "verb": "POST",
548
+ "path": "/getDevicesFiltered"
549
+ },
550
+ "task": false
551
+ },
552
+ {
553
+ "name": "isAlive",
554
+ "summary": "Checks the status for the provided Appliance",
555
+ "description": "Checks the status for the provided Appliance",
556
+ "input": [
557
+ {
558
+ "name": "deviceName",
559
+ "type": "string",
560
+ "info": "An Appliance Device Name",
561
+ "required": true,
562
+ "schema": {
563
+ "title": "deviceName",
564
+ "type": "string"
565
+ }
566
+ }
567
+ ],
568
+ "output": {
569
+ "name": "result",
570
+ "type": "boolean",
571
+ "description": "A JSON Object containing status, code and the result",
572
+ "schema": {
573
+ "title": "result",
574
+ "type": "boolean"
575
+ }
576
+ },
577
+ "roles": [
578
+ "admin"
579
+ ],
580
+ "route": {
581
+ "verb": "POST",
582
+ "path": "/isAlive"
583
+ },
584
+ "task": false
585
+ },
586
+ {
587
+ "name": "getConfig",
588
+ "summary": "Gets a config for the provided Appliance",
589
+ "description": "Gets a config for the provided Appliance",
590
+ "input": [
591
+ {
592
+ "name": "deviceName",
593
+ "type": "string",
594
+ "info": "An Appliance Device Name",
595
+ "required": true,
596
+ "schema": {
597
+ "title": "deviceName",
598
+ "type": "string"
599
+ }
600
+ },
601
+ {
602
+ "name": "format",
603
+ "type": "string",
604
+ "info": "The format to be returned - this is ignored as we always return json",
605
+ "required": false,
606
+ "schema": {
607
+ "title": "format",
608
+ "type": "string"
609
+ }
610
+ }
611
+ ],
612
+ "output": {
613
+ "name": "result",
614
+ "type": "object",
615
+ "description": "A JSON Object containing status, code and the result",
616
+ "schema": {
617
+ "title": "result",
618
+ "type": "object"
619
+ }
620
+ },
621
+ "roles": [
622
+ "admin"
623
+ ],
624
+ "route": {
625
+ "verb": "POST",
626
+ "path": "/getConfig"
627
+ },
628
+ "task": false
629
+ },
630
+ {
631
+ "name": "iapGetDeviceCount",
632
+ "summary": "Gets a device count from the system",
633
+ "description": "Gets a device count from the system",
634
+ "input": [],
635
+ "output": {
636
+ "name": "result",
637
+ "type": "object",
638
+ "description": "A JSON Object containing status, code and the result",
639
+ "schema": {
640
+ "title": "result",
641
+ "type": "object"
642
+ }
643
+ },
644
+ "roles": [
645
+ "admin"
646
+ ],
647
+ "route": {
648
+ "verb": "POST",
649
+ "path": "/iapGetDeviceCount"
650
+ },
651
+ "task": false
652
+ },
389
653
  {
390
654
  "name": "postDnaintentapiv1templateProgrammerproject",
391
655
  "summary": "Create Project",
@@ -7318,6 +7582,144 @@
7318
7582
  },
7319
7583
  "task": true
7320
7584
  },
7585
+ {
7586
+ "name": "postDnasystemapiv1sitesiteIddevice",
7587
+ "summary": "Assign Device To Site",
7588
+ "description": "Assigns list of devices to a site",
7589
+ "input": [
7590
+ {
7591
+ "name": "request",
7592
+ "type": "object",
7593
+ "info": "request",
7594
+ "required": true,
7595
+ "schema": {
7596
+ "title": "request",
7597
+ "type": "object"
7598
+ }
7599
+ },
7600
+ {
7601
+ "name": "Runsync",
7602
+ "type": "boolean",
7603
+ "info": "Enable this parameter to execute the API and return a response synchronously",
7604
+ "required": true,
7605
+ "schema": {
7606
+ "title": "Runsync",
7607
+ "type": "boolean"
7608
+ }
7609
+ },
7610
+ {
7611
+ "name": "Persistbapioutput",
7612
+ "type": "boolean",
7613
+ "info": "Persist bapi sync response",
7614
+ "required": true,
7615
+ "schema": {
7616
+ "title": "Persistbapioutput",
7617
+ "type": "boolean"
7618
+ }
7619
+ },
7620
+ {
7621
+ "name": "Timeout",
7622
+ "type": "number",
7623
+ "info": "During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated",
7624
+ "required": false,
7625
+ "schema": {
7626
+ "title": "Timeout",
7627
+ "type": "number"
7628
+ }
7629
+ },
7630
+ {
7631
+ "name": "siteId",
7632
+ "type": "string",
7633
+ "info": "Site id to which the device is assigned",
7634
+ "required": true,
7635
+ "schema": {
7636
+ "title": "siteId",
7637
+ "type": "string"
7638
+ }
7639
+ }
7640
+ ],
7641
+ "output": {
7642
+ "name": "result",
7643
+ "type": "object",
7644
+ "description": "A JSON Object containing status, code and the result",
7645
+ "schema": {
7646
+ "title": "result",
7647
+ "type": "object"
7648
+ }
7649
+ },
7650
+ "roles": [
7651
+ "admin"
7652
+ ],
7653
+ "route": {
7654
+ "verb": "POST",
7655
+ "path": "/postDnasystemapiv1sitesiteIddevice"
7656
+ },
7657
+ "task": true
7658
+ },
7659
+ {
7660
+ "name": "postDnaintentapiv1site",
7661
+ "summary": "Create Site",
7662
+ "description": "Creates site with area/building/floor with specified hierarchy.",
7663
+ "input": [
7664
+ {
7665
+ "name": "request",
7666
+ "type": "object",
7667
+ "info": "request",
7668
+ "required": true,
7669
+ "schema": {
7670
+ "title": "request",
7671
+ "type": "object"
7672
+ }
7673
+ },
7674
+ {
7675
+ "name": "Runsync",
7676
+ "type": "boolean",
7677
+ "info": "Enable this parameter to execute the API and return a response synchronously",
7678
+ "required": true,
7679
+ "schema": {
7680
+ "title": "Runsync",
7681
+ "type": "boolean"
7682
+ }
7683
+ },
7684
+ {
7685
+ "name": "Timeout",
7686
+ "type": "number",
7687
+ "info": "During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated",
7688
+ "required": false,
7689
+ "schema": {
7690
+ "title": "Timeout",
7691
+ "type": "number"
7692
+ }
7693
+ },
7694
+ {
7695
+ "name": "Persistbapioutput",
7696
+ "type": "boolean",
7697
+ "info": "Persist bapi sync response",
7698
+ "required": true,
7699
+ "schema": {
7700
+ "title": "Persistbapioutput",
7701
+ "type": "boolean"
7702
+ }
7703
+ }
7704
+ ],
7705
+ "output": {
7706
+ "name": "result",
7707
+ "type": "object",
7708
+ "description": "A JSON Object containing status, code and the result",
7709
+ "schema": {
7710
+ "title": "result",
7711
+ "type": "object"
7712
+ }
7713
+ },
7714
+ "roles": [
7715
+ "admin"
7716
+ ],
7717
+ "route": {
7718
+ "verb": "POST",
7719
+ "path": "/postDnaintentapiv1site"
7720
+ },
7721
+ "task": true
7722
+ },
7321
7723
  {
7322
7724
  "name": "postDnasystemapiv1site",
7323
7725
  "summary": "Create Site",