@itentialopensource/adapter-dna_center 0.5.5 → 0.6.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.
Files changed (52) hide show
  1. package/.eslintignore +1 -0
  2. package/AUTH.md +39 -0
  3. package/BROKER.md +199 -0
  4. package/CALLS.md +169 -0
  5. package/CHANGELOG.md +58 -24
  6. package/CODE_OF_CONDUCT.md +12 -17
  7. package/CONTRIBUTING.md +88 -74
  8. package/ENHANCE.md +69 -0
  9. package/PROPERTIES.md +641 -0
  10. package/README.md +228 -420
  11. package/SUMMARY.md +9 -0
  12. package/SYSTEMINFO.md +11 -0
  13. package/TROUBLESHOOT.md +47 -0
  14. package/adapter.js +1818 -78
  15. package/adapterBase.js +1270 -238
  16. package/entities/.generic/action.json +214 -0
  17. package/entities/.generic/schema.json +28 -0
  18. package/entities/.system/schemaTokenReq.json +2 -6
  19. package/entities/Sites/action.json +42 -0
  20. package/entities/Sites/schema.json +2 -0
  21. package/error.json +12 -0
  22. package/package.json +41 -18
  23. package/pronghorn.json +780 -74
  24. package/propertiesDecorators.json +14 -0
  25. package/propertiesSchema.json +472 -4
  26. package/refs?service=git-upload-pack +0 -0
  27. package/report/adapterInfo.json +10 -0
  28. package/report/updateReport1614887797185.json +95 -0
  29. package/report/updateReport1651598418513.json +114 -0
  30. package/report/updateReport1653138367120.json +120 -0
  31. package/sampleProperties.json +102 -5
  32. package/test/integration/adapterTestBasicGet.js +85 -0
  33. package/test/integration/adapterTestConnectivity.js +93 -0
  34. package/test/integration/adapterTestIntegration.js +85 -98
  35. package/test/unit/adapterBaseTestUnit.js +949 -0
  36. package/test/unit/adapterTestUnit.js +785 -109
  37. package/utils/adapterInfo.js +206 -0
  38. package/utils/addAuth.js +94 -0
  39. package/utils/basicGet.js +50 -0
  40. package/utils/checkMigrate.js +63 -0
  41. package/utils/entitiesToDB.js +179 -0
  42. package/utils/findPath.js +74 -0
  43. package/utils/modify.js +154 -0
  44. package/utils/packModificationScript.js +1 -1
  45. package/utils/patches2bundledDeps.js +90 -0
  46. package/utils/pre-commit.sh +3 -0
  47. package/utils/removeHooks.js +20 -0
  48. package/utils/tbScript.js +184 -0
  49. package/utils/tbUtils.js +469 -0
  50. package/utils/testRunner.js +16 -16
  51. package/utils/troubleshootingAdapter.js +190 -0
  52. package/img/adapter.png +0 -0
package/adapter.js CHANGED
@@ -82,11 +82,37 @@ class DnaCenter extends AdapterBaseCl {
82
82
  }
83
83
 
84
84
  /**
85
- * updateAdapterConfiguration is used to update any of the adapter configuration files. This
85
+ * @iapGetAdapterWorkflowFunctions
86
+ */
87
+ iapGetAdapterWorkflowFunctions(inIgnore) {
88
+ let myIgnore = [
89
+ 'healthCheck',
90
+ 'iapGetAdapterWorkflowFunctions',
91
+ 'iapHasAdapterEntity',
92
+ 'iapVerifyAdapterCapability',
93
+ 'iapUpdateAdapterEntityCache',
94
+ 'hasEntities',
95
+ 'getAuthorization'
96
+ ];
97
+ if (!inIgnore && Array.isArray(inIgnore)) {
98
+ myIgnore = inIgnore;
99
+ } else if (!inIgnore && typeof inIgnore === 'string') {
100
+ myIgnore = [inIgnore];
101
+ }
102
+
103
+ // The generic adapter functions should already be ignored (e.g. healthCheck)
104
+ // you can add specific methods that you do not want to be workflow functions to ignore like below
105
+ // myIgnore.push('myMethodNotInWorkflow');
106
+
107
+ return super.iapGetAdapterWorkflowFunctions(myIgnore);
108
+ }
109
+
110
+ /**
111
+ * iapUpdateAdapterConfiguration is used to update any of the adapter configuration files. This
86
112
  * allows customers to make changes to adapter configuration without having to be on the
87
113
  * file system.
88
114
  *
89
- * @function updateAdapterConfiguration
115
+ * @function iapUpdateAdapterConfiguration
90
116
  * @param {string} configFile - the name of the file being updated (required)
91
117
  * @param {Object} changes - an object containing all of the changes = formatted like the configuration file (required)
92
118
  * @param {string} entity - the entity to be changed, if an action, schema or mock data file (optional)
@@ -94,59 +120,206 @@ class DnaCenter extends AdapterBaseCl {
94
120
  * @param {string} action - the action to be changed, if an action, schema or mock data file (optional)
95
121
  * @param {Callback} callback - The results of the call
96
122
  */
97
- updateAdapterConfiguration(configFile, changes, entity, type, action, callback) {
98
- super.updateAdapterConfiguration(configFile, changes, entity, type, action, callback);
123
+ iapUpdateAdapterConfiguration(configFile, changes, entity, type, action, callback) {
124
+ const meth = 'adapter-iapUpdateAdapterConfiguration';
125
+ const origin = `${this.id}-${meth}`;
126
+ log.trace(origin);
127
+
128
+ super.iapUpdateAdapterConfiguration(configFile, changes, entity, type, action, callback);
99
129
  }
100
130
 
101
131
  /**
102
- * @callback healthCallback
103
- * @param {Object} result - the result of the get request (contains an id and a status)
132
+ * See if the API path provided is found in this adapter
133
+ *
134
+ * @function iapFindAdapterPath
135
+ * @param {string} apiPath - the api path to check on
136
+ * @param {Callback} callback - The results of the call
104
137
  */
138
+ iapFindAdapterPath(apiPath, callback) {
139
+ const meth = 'adapter-iapFindAdapterPath';
140
+ const origin = `${this.id}-${meth}`;
141
+ log.trace(origin);
142
+
143
+ super.iapFindAdapterPath(apiPath, callback);
144
+ }
145
+
105
146
  /**
106
- * @callback getCallback
107
- * @param {Object} result - the result of the get request (entity/ies)
108
- * @param {String} error - any error that occurred
109
- */
147
+ * @summary Suspends adapter
148
+ *
149
+ * @function iapSuspendAdapter
150
+ * @param {Callback} callback - callback function
151
+ */
152
+ iapSuspendAdapter(mode, callback) {
153
+ const meth = 'adapter-iapSuspendAdapter';
154
+ const origin = `${this.id}-${meth}`;
155
+ log.trace(origin);
156
+
157
+ try {
158
+ return super.iapSuspendAdapter(mode, callback);
159
+ } catch (error) {
160
+ log.error(`${origin}: ${error}`);
161
+ return callback(null, error);
162
+ }
163
+ }
164
+
110
165
  /**
111
- * @callback createCallback
112
- * @param {Object} item - the newly created entity
113
- * @param {String} error - any error that occurred
114
- */
166
+ * @summary Unsuspends adapter
167
+ *
168
+ * @function iapUnsuspendAdapter
169
+ * @param {Callback} callback - callback function
170
+ */
171
+ iapUnsuspendAdapter(callback) {
172
+ const meth = 'adapter-iapUnsuspendAdapter';
173
+ const origin = `${this.id}-${meth}`;
174
+ log.trace(origin);
175
+
176
+ try {
177
+ return super.iapUnsuspendAdapter(callback);
178
+ } catch (error) {
179
+ log.error(`${origin}: ${error}`);
180
+ return callback(null, error);
181
+ }
182
+ }
183
+
115
184
  /**
116
- * @callback updateCallback
117
- * @param {String} status - the status of the update action
118
- * @param {String} error - any error that occurred
119
- */
185
+ * @summary Get the Adaoter Queue
186
+ *
187
+ * @function iapGetAdapterQueue
188
+ * @param {Callback} callback - callback function
189
+ */
190
+ iapGetAdapterQueue(callback) {
191
+ const meth = 'adapter-iapGetAdapterQueue';
192
+ const origin = `${this.id}-${meth}`;
193
+ log.trace(origin);
194
+
195
+ return super.iapGetAdapterQueue(callback);
196
+ }
197
+
120
198
  /**
121
- * @callback deleteCallback
122
- * @param {String} status - the status of the delete action
123
- * @param {String} error - any error that occurred
199
+ * @summary Runs troubleshoot scripts for adapter
200
+ *
201
+ * @function iapTroubleshootAdapter
202
+ * @param {Object} props - the connection, healthcheck and authentication properties
203
+ *
204
+ * @param {boolean} persistFlag - whether the adapter properties should be updated
205
+ * @param {Callback} callback - The results of the call
206
+ */
207
+ iapTroubleshootAdapter(props, persistFlag, callback) {
208
+ const meth = 'adapter-iapTroubleshootAdapter';
209
+ const origin = `${this.id}-${meth}`;
210
+ log.trace(origin);
211
+
212
+ try {
213
+ return super.iapTroubleshootAdapter(props, persistFlag, this, callback);
214
+ } catch (error) {
215
+ log.error(`${origin}: ${error}`);
216
+ return callback(null, error);
217
+ }
218
+ }
219
+
220
+ /**
221
+ * @summary runs healthcheck script for adapter
222
+ *
223
+ * @function iapRunAdapterHealthcheck
224
+ * @param {Adapter} adapter - adapter instance to troubleshoot
225
+ * @param {Callback} callback - callback function
226
+ */
227
+ iapRunAdapterHealthcheck(callback) {
228
+ const meth = 'adapter-iapRunAdapterHealthcheck';
229
+ const origin = `${this.id}-${meth}`;
230
+ log.trace(origin);
231
+
232
+ try {
233
+ return super.iapRunAdapterHealthcheck(this, callback);
234
+ } catch (error) {
235
+ log.error(`${origin}: ${error}`);
236
+ return callback(null, error);
237
+ }
238
+ }
239
+
240
+ /**
241
+ * @summary runs connectivity check script for adapter
242
+ *
243
+ * @function iapRunAdapterConnectivity
244
+ * @param {Callback} callback - callback function
245
+ */
246
+ iapRunAdapterConnectivity(callback) {
247
+ const meth = 'adapter-iapRunAdapterConnectivity';
248
+ const origin = `${this.id}-${meth}`;
249
+ log.trace(origin);
250
+
251
+ try {
252
+ return super.iapRunAdapterConnectivity(callback);
253
+ } catch (error) {
254
+ log.error(`${origin}: ${error}`);
255
+ return callback(null, error);
256
+ }
257
+ }
258
+
259
+ /**
260
+ * @summary runs basicGet script for adapter
261
+ *
262
+ * @function iapRunAdapterBasicGet
263
+ * @param {Callback} callback - callback function
264
+ */
265
+ iapRunAdapterBasicGet(callback) {
266
+ const meth = 'adapter-iapRunAdapterBasicGet';
267
+ const origin = `${this.id}-${meth}`;
268
+ log.trace(origin);
269
+
270
+ try {
271
+ return super.iapRunAdapterBasicGet(callback);
272
+ } catch (error) {
273
+ log.error(`${origin}: ${error}`);
274
+ return callback(null, error);
275
+ }
276
+ }
277
+
278
+ /**
279
+ * @summary moves entites into Mongo DB
280
+ *
281
+ * @function iapMoveAdapterEntitiesToDB
282
+ * @param {getCallback} callback - a callback function to return the result (Generics)
283
+ * or the error
124
284
  */
285
+ iapMoveAdapterEntitiesToDB(callback) {
286
+ const meth = 'adapter-iapMoveAdapterEntitiesToDB';
287
+ const origin = `${this.id}-${meth}`;
288
+ log.trace(origin);
289
+
290
+ try {
291
+ return super.iapMoveAdapterEntitiesToDB(callback);
292
+ } catch (err) {
293
+ log.error(`${origin}: ${err}`);
294
+ return callback(null, err);
295
+ }
296
+ }
125
297
 
298
+ /* BROKER CALLS */
126
299
  /**
127
300
  * @summary Determines if this adapter supports the specific entity
128
301
  *
129
- * @function hasEntity
302
+ * @function iapHasAdapterEntity
130
303
  * @param {String} entityType - the entity type to check for
131
304
  * @param {String/Array} entityId - the specific entity we are looking for
132
305
  *
133
306
  * @param {Callback} callback - An array of whether the adapter can has the
134
307
  * desired capability or an error
135
308
  */
136
- hasEntity(entityType, entityId, callback) {
137
- const origin = `${this.id}-adapter-hasEntity`;
309
+ iapHasAdapterEntity(entityType, entityId, callback) {
310
+ const origin = `${this.id}-adapter-iapHasAdapterEntity`;
138
311
  log.trace(origin);
139
312
 
140
313
  // Make the call -
141
- // verifyCapability(entityType, actionType, entityId, callback)
142
- return this.verifyCapability(entityType, null, entityId, callback);
314
+ // iapVerifyAdapterCapability(entityType, actionType, entityId, callback)
315
+ return this.iapVerifyAdapterCapability(entityType, null, entityId, callback);
143
316
  }
144
317
 
145
318
  /**
146
319
  * @summary Provides a way for the adapter to tell north bound integrations
147
320
  * whether the adapter supports type, action and specific entity
148
321
  *
149
- * @function verifyCapability
322
+ * @function iapVerifyAdapterCapability
150
323
  * @param {String} entityType - the entity type to check for
151
324
  * @param {String} actionType - the action type to check for
152
325
  * @param {String/Array} entityId - the specific entity we are looking for
@@ -154,15 +327,15 @@ class DnaCenter extends AdapterBaseCl {
154
327
  * @param {Callback} callback - An array of whether the adapter can has the
155
328
  * desired capability or an error
156
329
  */
157
- verifyCapability(entityType, actionType, entityId, callback) {
158
- const meth = 'adapterBase-verifyCapability';
330
+ iapVerifyAdapterCapability(entityType, actionType, entityId, callback) {
331
+ const meth = 'adapterBase-iapVerifyAdapterCapability';
159
332
  const origin = `${this.id}-${meth}`;
160
333
  log.trace(origin);
161
334
 
162
335
  // if caching
163
336
  if (this.caching) {
164
- // Make the call - verifyCapability(entityType, actionType, entityId, callback)
165
- return this.requestHandlerInst.verifyCapability(entityType, actionType, entityId, (results, error) => {
337
+ // Make the call - iapVerifyAdapterCapability(entityType, actionType, entityId, callback)
338
+ return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, entityId, (results, error) => {
166
339
  if (error) {
167
340
  return callback(null, error);
168
341
  }
@@ -180,7 +353,7 @@ class DnaCenter extends AdapterBaseCl {
180
353
  }
181
354
 
182
355
  // need to check the cache again since it has been updated
183
- return this.requestHandlerInst.verifyCapability(entityType, actionType, entityId, (vcapable, verror) => {
356
+ return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, entityId, (vcapable, verror) => {
184
357
  if (verror) {
185
358
  return callback(null, verror);
186
359
  }
@@ -213,7 +386,7 @@ class DnaCenter extends AdapterBaseCl {
213
386
  // if no entity id
214
387
  if (!entityId) {
215
388
  // need to check the cache again since it has been updated
216
- return this.requestHandlerInst.verifyCapability(entityType, actionType, null, (vcapable, verror) => {
389
+ return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, null, (vcapable, verror) => {
217
390
  if (verror) {
218
391
  return callback(null, verror);
219
392
  }
@@ -234,7 +407,7 @@ class DnaCenter extends AdapterBaseCl {
234
407
  }
235
408
 
236
409
  // need to check the cache again since it has been updated
237
- return this.requestHandlerInst.verifyCapability(entityType, actionType, null, (vcapable, verror) => {
410
+ return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, null, (vcapable, verror) => {
238
411
  if (verror) {
239
412
  return callback(null, verror);
240
413
  }
@@ -275,11 +448,11 @@ class DnaCenter extends AdapterBaseCl {
275
448
  /**
276
449
  * @summary Updates the cache for all entities by call the get All entity method
277
450
  *
278
- * @function updateEntityCache
451
+ * @function iapUpdateAdapterEntityCache
279
452
  *
280
453
  */
281
- updateEntityCache() {
282
- const origin = `${this.id}-adapter-updateEntityCache`;
454
+ iapUpdateAdapterEntityCache() {
455
+ const origin = `${this.id}-adapter-iapUpdateAdapterEntityCache`;
283
456
  log.trace(origin);
284
457
 
285
458
  if (this.caching) {
@@ -292,6 +465,385 @@ class DnaCenter extends AdapterBaseCl {
292
465
  }
293
466
  }
294
467
 
468
+ /**
469
+ * @summary Determines if this adapter supports any in a list of entities
470
+ *
471
+ * @function hasEntities
472
+ * @param {String} entityType - the entity type to check for
473
+ * @param {Array} entityList - the list of entities we are looking for
474
+ *
475
+ * @param {Callback} callback - A map where the entity is the key and the
476
+ * value is true or false
477
+ */
478
+ hasEntities(entityType, entityList, callback) {
479
+ const meth = 'adapter-hasEntities';
480
+ const origin = `${this.id}-${meth}`;
481
+ log.trace(origin);
482
+
483
+ try {
484
+ return super.hasEntities(entityType, entityList, callback);
485
+ } catch (err) {
486
+ log.error(`${origin}: ${err}`);
487
+ return callback(null, err);
488
+ }
489
+ }
490
+
491
+ /**
492
+ * @summary Get Appliance that match the deviceName
493
+ *
494
+ * @function getDevice
495
+ * @param {String} deviceName - the deviceName to find (required)
496
+ *
497
+ * @param {getCallback} callback - a callback function to return the result
498
+ * (appliance) or the error
499
+ */
500
+ getDevice(deviceName, callback) {
501
+ const meth = 'adapter-getDevice';
502
+ const origin = `${this.id}-${meth}`;
503
+ log.trace(origin);
504
+
505
+ try {
506
+ return super.getDevice(deviceName, callback);
507
+ } catch (err) {
508
+ log.error(`${origin}: ${err}`);
509
+ return callback(null, err);
510
+ }
511
+ }
512
+
513
+ /**
514
+ * @summary Get Appliances that match the filter
515
+ *
516
+ * @function getDevicesFiltered
517
+ * @param {Object} options - the data to use to filter the appliances (optional)
518
+ *
519
+ * @param {getCallback} callback - a callback function to return the result
520
+ * (appliances) or the error
521
+ */
522
+ getDevicesFiltered(options, callback) {
523
+ const meth = 'adapter-getDevicesFiltered';
524
+ const origin = `${this.id}-${meth}`;
525
+ log.trace(origin);
526
+
527
+ try {
528
+ return super.getDevicesFiltered(options, callback);
529
+ } catch (err) {
530
+ log.error(`${origin}: ${err}`);
531
+ return callback(null, err);
532
+ }
533
+ }
534
+
535
+ /**
536
+ * @summary Gets the status for the provided appliance
537
+ *
538
+ * @function isAlive
539
+ * @param {String} deviceName - the deviceName of the appliance. (required)
540
+ *
541
+ * @param {configCallback} callback - callback function to return the result
542
+ * (appliance isAlive) or the error
543
+ */
544
+ isAlive(deviceName, callback) {
545
+ const meth = 'adapter-isAlive';
546
+ const origin = `${this.id}-${meth}`;
547
+ log.trace(origin);
548
+
549
+ try {
550
+ return super.isAlive(deviceName, callback);
551
+ } catch (err) {
552
+ log.error(`${origin}: ${err}`);
553
+ return callback(null, err);
554
+ }
555
+ }
556
+
557
+ /**
558
+ * @summary Gets a config for the provided Appliance
559
+ *
560
+ * @function getConfig
561
+ * @param {String} deviceName - the deviceName of the appliance. (required)
562
+ * @param {String} format - the desired format of the config. (optional)
563
+ *
564
+ * @param {configCallback} callback - callback function to return the result
565
+ * (appliance config) or the error
566
+ */
567
+ getConfig(deviceName, format, callback) {
568
+ const meth = 'adapter-getConfig';
569
+ const origin = `${this.id}-${meth}`;
570
+ log.trace(origin);
571
+
572
+ try {
573
+ return super.getConfig(deviceName, format, callback);
574
+ } catch (err) {
575
+ log.error(`${origin}: ${err}`);
576
+ return callback(null, err);
577
+ }
578
+ }
579
+
580
+ /**
581
+ * @summary Gets the device count from the system
582
+ *
583
+ * @function iapGetDeviceCount
584
+ *
585
+ * @param {getCallback} callback - callback function to return the result
586
+ * (count) or the error
587
+ */
588
+ iapGetDeviceCount(callback) {
589
+ const meth = 'adapter-iapGetDeviceCount';
590
+ const origin = `${this.id}-${meth}`;
591
+ log.trace(origin);
592
+
593
+ try {
594
+ return super.iapGetDeviceCount(callback);
595
+ } catch (err) {
596
+ log.error(`${origin}: ${err}`);
597
+ return callback(null, err);
598
+ }
599
+ }
600
+
601
+ /* GENERIC ADAPTER REQUEST - allows extension of adapter without new calls being added */
602
+ /**
603
+ * Makes the requested generic call
604
+ *
605
+ * @function genericAdapterRequest
606
+ * @param {String} uriPath - the path of the api call - do not include the host, port, base path or version (required)
607
+ * @param {String} restMethod - the rest method (GET, POST, PUT, PATCH, DELETE) (required)
608
+ * @param {Object} queryData - the parameters to be put on the url (optional).
609
+ * Can be a stringified Object.
610
+ * @param {Object} requestBody - the body to add to the request (optional).
611
+ * Can be a stringified Object.
612
+ * @param {Object} addlHeaders - additional headers to be put on the call (optional).
613
+ * Can be a stringified Object.
614
+ * @param {getCallback} callback - a callback function to return the result (Generics)
615
+ * or the error
616
+ */
617
+ genericAdapterRequest(uriPath, restMethod, queryData, requestBody, addlHeaders, callback) {
618
+ const meth = 'adapter-genericAdapterRequest';
619
+ const origin = `${this.id}-${meth}`;
620
+ log.trace(origin);
621
+
622
+ if (this.suspended && this.suspendMode === 'error') {
623
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
624
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
625
+ return callback(null, errorObj);
626
+ }
627
+
628
+ /* HERE IS WHERE YOU VALIDATE DATA */
629
+ if (uriPath === undefined || uriPath === null || uriPath === '') {
630
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['uriPath'], null, null, null);
631
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
632
+ return callback(null, errorObj);
633
+ }
634
+ if (restMethod === undefined || restMethod === null || restMethod === '') {
635
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['restMethod'], null, null, null);
636
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
637
+ return callback(null, errorObj);
638
+ }
639
+
640
+ /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
641
+ // remove any leading / and split the uripath into path variables
642
+ let myPath = uriPath;
643
+ while (myPath.indexOf('/') === 0) {
644
+ myPath = myPath.substring(1);
645
+ }
646
+ const pathVars = myPath.split('/');
647
+ const queryParamsAvailable = queryData;
648
+ const queryParams = {};
649
+ const bodyVars = requestBody;
650
+
651
+ // loop in template. long callback arg name to avoid identifier conflicts
652
+ Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
653
+ if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
654
+ && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
655
+ queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
656
+ }
657
+ });
658
+
659
+ // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
660
+ const reqObj = {
661
+ payload: bodyVars,
662
+ uriPathVars: pathVars,
663
+ uriQuery: queryParams,
664
+ uriOptions: {}
665
+ };
666
+ // add headers if provided
667
+ if (addlHeaders) {
668
+ reqObj.addlHeaders = addlHeaders;
669
+ }
670
+
671
+ // determine the call and return flag
672
+ let action = 'getGenerics';
673
+ let returnF = true;
674
+ if (restMethod.toUpperCase() === 'POST') {
675
+ action = 'createGeneric';
676
+ } else if (restMethod.toUpperCase() === 'PUT') {
677
+ action = 'updateGeneric';
678
+ } else if (restMethod.toUpperCase() === 'PATCH') {
679
+ action = 'patchGeneric';
680
+ } else if (restMethod.toUpperCase() === 'DELETE') {
681
+ action = 'deleteGeneric';
682
+ returnF = false;
683
+ }
684
+
685
+ try {
686
+ // Make the call -
687
+ // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
688
+ return this.requestHandlerInst.identifyRequest('.generic', action, reqObj, returnF, (irReturnData, irReturnError) => {
689
+ // if we received an error or their is no response on the results
690
+ // return an error
691
+ if (irReturnError) {
692
+ /* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
693
+ return callback(null, irReturnError);
694
+ }
695
+ if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
696
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['genericAdapterRequest'], null, null, null);
697
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
698
+ return callback(null, errorObj);
699
+ }
700
+
701
+ /* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
702
+ // return the response
703
+ return callback(irReturnData, null);
704
+ });
705
+ } catch (ex) {
706
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
707
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
708
+ return callback(null, errorObj);
709
+ }
710
+ }
711
+
712
+ /**
713
+ * Makes the requested generic call with no base path or version
714
+ *
715
+ * @function genericAdapterRequestNoBasePath
716
+ * @param {String} uriPath - the path of the api call - do not include the host, port, base path or version (required)
717
+ * @param {String} restMethod - the rest method (GET, POST, PUT, PATCH, DELETE) (required)
718
+ * @param {Object} queryData - the parameters to be put on the url (optional).
719
+ * Can be a stringified Object.
720
+ * @param {Object} requestBody - the body to add to the request (optional).
721
+ * Can be a stringified Object.
722
+ * @param {Object} addlHeaders - additional headers to be put on the call (optional).
723
+ * Can be a stringified Object.
724
+ * @param {getCallback} callback - a callback function to return the result (Generics)
725
+ * or the error
726
+ */
727
+ genericAdapterRequestNoBasePath(uriPath, restMethod, queryData, requestBody, addlHeaders, callback) {
728
+ const meth = 'adapter-genericAdapterRequestNoBasePath';
729
+ const origin = `${this.id}-${meth}`;
730
+ log.trace(origin);
731
+
732
+ if (this.suspended && this.suspendMode === 'error') {
733
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
734
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
735
+ return callback(null, errorObj);
736
+ }
737
+
738
+ /* HERE IS WHERE YOU VALIDATE DATA */
739
+ if (uriPath === undefined || uriPath === null || uriPath === '') {
740
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['uriPath'], null, null, null);
741
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
742
+ return callback(null, errorObj);
743
+ }
744
+ if (restMethod === undefined || restMethod === null || restMethod === '') {
745
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['restMethod'], null, null, null);
746
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
747
+ return callback(null, errorObj);
748
+ }
749
+
750
+ /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
751
+ // remove any leading / and split the uripath into path variables
752
+ let myPath = uriPath;
753
+ while (myPath.indexOf('/') === 0) {
754
+ myPath = myPath.substring(1);
755
+ }
756
+ const pathVars = myPath.split('/');
757
+ const queryParamsAvailable = queryData;
758
+ const queryParams = {};
759
+ const bodyVars = requestBody;
760
+
761
+ // loop in template. long callback arg name to avoid identifier conflicts
762
+ Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
763
+ if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
764
+ && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
765
+ queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
766
+ }
767
+ });
768
+
769
+ // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
770
+ const reqObj = {
771
+ payload: bodyVars,
772
+ uriPathVars: pathVars,
773
+ uriQuery: queryParams,
774
+ uriOptions: {}
775
+ };
776
+ // add headers if provided
777
+ if (addlHeaders) {
778
+ reqObj.addlHeaders = addlHeaders;
779
+ }
780
+
781
+ // determine the call and return flag
782
+ let action = 'getGenericsNoBase';
783
+ let returnF = true;
784
+ if (restMethod.toUpperCase() === 'POST') {
785
+ action = 'createGenericNoBase';
786
+ } else if (restMethod.toUpperCase() === 'PUT') {
787
+ action = 'updateGenericNoBase';
788
+ } else if (restMethod.toUpperCase() === 'PATCH') {
789
+ action = 'patchGenericNoBase';
790
+ } else if (restMethod.toUpperCase() === 'DELETE') {
791
+ action = 'deleteGenericNoBase';
792
+ returnF = false;
793
+ }
794
+
795
+ try {
796
+ // Make the call -
797
+ // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
798
+ return this.requestHandlerInst.identifyRequest('.generic', action, reqObj, returnF, (irReturnData, irReturnError) => {
799
+ // if we received an error or their is no response on the results
800
+ // return an error
801
+ if (irReturnError) {
802
+ /* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
803
+ return callback(null, irReturnError);
804
+ }
805
+ if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
806
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['genericAdapterRequestNoBasePath'], null, null, null);
807
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
808
+ return callback(null, errorObj);
809
+ }
810
+
811
+ /* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
812
+ // return the response
813
+ return callback(irReturnData, null);
814
+ });
815
+ } catch (ex) {
816
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
817
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
818
+ return callback(null, errorObj);
819
+ }
820
+ }
821
+
822
+ /**
823
+ * @callback healthCallback
824
+ * @param {Object} result - the result of the get request (contains an id and a status)
825
+ */
826
+ /**
827
+ * @callback getCallback
828
+ * @param {Object} result - the result of the get request (entity/ies)
829
+ * @param {String} error - any error that occurred
830
+ */
831
+ /**
832
+ * @callback createCallback
833
+ * @param {Object} item - the newly created entity
834
+ * @param {String} error - any error that occurred
835
+ */
836
+ /**
837
+ * @callback updateCallback
838
+ * @param {String} status - the status of the update action
839
+ * @param {String} error - any error that occurred
840
+ */
841
+ /**
842
+ * @callback deleteCallback
843
+ * @param {String} status - the status of the delete action
844
+ * @param {String} error - any error that occurred
845
+ */
846
+
295
847
  /**
296
848
  * @summary Create Project
297
849
  *
@@ -306,6 +858,12 @@ class DnaCenter extends AdapterBaseCl {
306
858
  const origin = `${this.id}-${meth}`;
307
859
  log.trace(origin);
308
860
 
861
+ if (this.suspended && this.suspendMode === 'error') {
862
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
863
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
864
+ return callback(null, errorObj);
865
+ }
866
+
309
867
  /* HERE IS WHERE YOU VALIDATE DATA */
310
868
  if (request === undefined || request === null || request === '') {
311
869
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -379,6 +937,12 @@ class DnaCenter extends AdapterBaseCl {
379
937
  const origin = `${this.id}-${meth}`;
380
938
  log.trace(origin);
381
939
 
940
+ if (this.suspended && this.suspendMode === 'error') {
941
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
942
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
943
+ return callback(null, errorObj);
944
+ }
945
+
382
946
  /* HERE IS WHERE YOU VALIDATE DATA */
383
947
 
384
948
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -443,6 +1007,12 @@ class DnaCenter extends AdapterBaseCl {
443
1007
  const origin = `${this.id}-${meth}`;
444
1008
  log.trace(origin);
445
1009
 
1010
+ if (this.suspended && this.suspendMode === 'error') {
1011
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1012
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1013
+ return callback(null, errorObj);
1014
+ }
1015
+
446
1016
  /* HERE IS WHERE YOU VALIDATE DATA */
447
1017
  if (request === undefined || request === null || request === '') {
448
1018
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -522,6 +1092,12 @@ class DnaCenter extends AdapterBaseCl {
522
1092
  const origin = `${this.id}-${meth}`;
523
1093
  log.trace(origin);
524
1094
 
1095
+ if (this.suspended && this.suspendMode === 'error') {
1096
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1097
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1098
+ return callback(null, errorObj);
1099
+ }
1100
+
525
1101
  /* HERE IS WHERE YOU VALIDATE DATA */
526
1102
 
527
1103
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -586,6 +1162,12 @@ class DnaCenter extends AdapterBaseCl {
586
1162
  const origin = `${this.id}-${meth}`;
587
1163
  log.trace(origin);
588
1164
 
1165
+ if (this.suspended && this.suspendMode === 'error') {
1166
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1167
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1168
+ return callback(null, errorObj);
1169
+ }
1170
+
589
1171
  /* HERE IS WHERE YOU VALIDATE DATA */
590
1172
  if (request === undefined || request === null || request === '') {
591
1173
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -660,6 +1242,12 @@ class DnaCenter extends AdapterBaseCl {
660
1242
  const origin = `${this.id}-${meth}`;
661
1243
  log.trace(origin);
662
1244
 
1245
+ if (this.suspended && this.suspendMode === 'error') {
1246
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1247
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1248
+ return callback(null, errorObj);
1249
+ }
1250
+
663
1251
  /* HERE IS WHERE YOU VALIDATE DATA */
664
1252
  if (request === undefined || request === null || request === '') {
665
1253
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -734,6 +1322,12 @@ class DnaCenter extends AdapterBaseCl {
734
1322
  const origin = `${this.id}-${meth}`;
735
1323
  log.trace(origin);
736
1324
 
1325
+ if (this.suspended && this.suspendMode === 'error') {
1326
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1327
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1328
+ return callback(null, errorObj);
1329
+ }
1330
+
737
1331
  /* HERE IS WHERE YOU VALIDATE DATA */
738
1332
  if (request === undefined || request === null || request === '') {
739
1333
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -808,6 +1402,12 @@ class DnaCenter extends AdapterBaseCl {
808
1402
  const origin = `${this.id}-${meth}`;
809
1403
  log.trace(origin);
810
1404
 
1405
+ if (this.suspended && this.suspendMode === 'error') {
1406
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1407
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1408
+ return callback(null, errorObj);
1409
+ }
1410
+
811
1411
  /* HERE IS WHERE YOU VALIDATE DATA */
812
1412
  if (templateId === undefined || templateId === null || templateId === '') {
813
1413
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['templateId'], null, null, null);
@@ -876,6 +1476,12 @@ class DnaCenter extends AdapterBaseCl {
876
1476
  const origin = `${this.id}-${meth}`;
877
1477
  log.trace(origin);
878
1478
 
1479
+ if (this.suspended && this.suspendMode === 'error') {
1480
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1481
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1482
+ return callback(null, errorObj);
1483
+ }
1484
+
879
1485
  /* HERE IS WHERE YOU VALIDATE DATA */
880
1486
  if (templateId === undefined || templateId === null || templateId === '') {
881
1487
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['templateId'], null, null, null);
@@ -944,6 +1550,12 @@ class DnaCenter extends AdapterBaseCl {
944
1550
  const origin = `${this.id}-${meth}`;
945
1551
  log.trace(origin);
946
1552
 
1553
+ if (this.suspended && this.suspendMode === 'error') {
1554
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1555
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1556
+ return callback(null, errorObj);
1557
+ }
1558
+
947
1559
  /* HERE IS WHERE YOU VALIDATE DATA */
948
1560
  if (deploymentId === undefined || deploymentId === null || deploymentId === '') {
949
1561
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['deploymentId'], null, null, null);
@@ -1012,6 +1624,12 @@ class DnaCenter extends AdapterBaseCl {
1012
1624
  const origin = `${this.id}-${meth}`;
1013
1625
  log.trace(origin);
1014
1626
 
1627
+ if (this.suspended && this.suspendMode === 'error') {
1628
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1629
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1630
+ return callback(null, errorObj);
1631
+ }
1632
+
1015
1633
  /* HERE IS WHERE YOU VALIDATE DATA */
1016
1634
  if (projectId === undefined || projectId === null || projectId === '') {
1017
1635
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['projectId'], null, null, null);
@@ -1080,6 +1698,12 @@ class DnaCenter extends AdapterBaseCl {
1080
1698
  const origin = `${this.id}-${meth}`;
1081
1699
  log.trace(origin);
1082
1700
 
1701
+ if (this.suspended && this.suspendMode === 'error') {
1702
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1703
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1704
+ return callback(null, errorObj);
1705
+ }
1706
+
1083
1707
  /* HERE IS WHERE YOU VALIDATE DATA */
1084
1708
  if (templateId === undefined || templateId === null || templateId === '') {
1085
1709
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['templateId'], null, null, null);
@@ -1149,6 +1773,12 @@ class DnaCenter extends AdapterBaseCl {
1149
1773
  const origin = `${this.id}-${meth}`;
1150
1774
  log.trace(origin);
1151
1775
 
1776
+ if (this.suspended && this.suspendMode === 'error') {
1777
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1778
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1779
+ return callback(null, errorObj);
1780
+ }
1781
+
1152
1782
  /* HERE IS WHERE YOU VALIDATE DATA */
1153
1783
  if (request === undefined || request === null || request === '') {
1154
1784
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -1224,6 +1854,12 @@ class DnaCenter extends AdapterBaseCl {
1224
1854
  const origin = `${this.id}-${meth}`;
1225
1855
  log.trace(origin);
1226
1856
 
1857
+ if (this.suspended && this.suspendMode === 'error') {
1858
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1859
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1860
+ return callback(null, errorObj);
1861
+ }
1862
+
1227
1863
  /* HERE IS WHERE YOU VALIDATE DATA */
1228
1864
  if (request === undefined || request === null || request === '') {
1229
1865
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -1304,6 +1940,12 @@ class DnaCenter extends AdapterBaseCl {
1304
1940
  const origin = `${this.id}-${meth}`;
1305
1941
  log.trace(origin);
1306
1942
 
1943
+ if (this.suspended && this.suspendMode === 'error') {
1944
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
1945
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
1946
+ return callback(null, errorObj);
1947
+ }
1948
+
1307
1949
  /* HERE IS WHERE YOU VALIDATE DATA */
1308
1950
  if (request === undefined || request === null || request === '') {
1309
1951
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -1387,6 +2029,12 @@ class DnaCenter extends AdapterBaseCl {
1387
2029
  const origin = `${this.id}-${meth}`;
1388
2030
  log.trace(origin);
1389
2031
 
2032
+ if (this.suspended && this.suspendMode === 'error') {
2033
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2034
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2035
+ return callback(null, errorObj);
2036
+ }
2037
+
1390
2038
  /* HERE IS WHERE YOU VALIDATE DATA */
1391
2039
  if (id === undefined || id === null || id === '') {
1392
2040
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -1461,6 +2109,12 @@ class DnaCenter extends AdapterBaseCl {
1461
2109
  const origin = `${this.id}-${meth}`;
1462
2110
  log.trace(origin);
1463
2111
 
2112
+ if (this.suspended && this.suspendMode === 'error') {
2113
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2114
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2115
+ return callback(null, errorObj);
2116
+ }
2117
+
1464
2118
  /* HERE IS WHERE YOU VALIDATE DATA */
1465
2119
  if (request === undefined || request === null || request === '') {
1466
2120
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -1535,6 +2189,12 @@ class DnaCenter extends AdapterBaseCl {
1535
2189
  const origin = `${this.id}-${meth}`;
1536
2190
  log.trace(origin);
1537
2191
 
2192
+ if (this.suspended && this.suspendMode === 'error') {
2193
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2194
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2195
+ return callback(null, errorObj);
2196
+ }
2197
+
1538
2198
  /* HERE IS WHERE YOU VALIDATE DATA */
1539
2199
  if (request === undefined || request === null || request === '') {
1540
2200
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -1618,6 +2278,12 @@ class DnaCenter extends AdapterBaseCl {
1618
2278
  const origin = `${this.id}-${meth}`;
1619
2279
  log.trace(origin);
1620
2280
 
2281
+ if (this.suspended && this.suspendMode === 'error') {
2282
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2283
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2284
+ return callback(null, errorObj);
2285
+ }
2286
+
1621
2287
  /* HERE IS WHERE YOU VALIDATE DATA */
1622
2288
 
1623
2289
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -1684,6 +2350,12 @@ class DnaCenter extends AdapterBaseCl {
1684
2350
  const origin = `${this.id}-${meth}`;
1685
2351
  log.trace(origin);
1686
2352
 
2353
+ if (this.suspended && this.suspendMode === 'error') {
2354
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2355
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2356
+ return callback(null, errorObj);
2357
+ }
2358
+
1687
2359
  /* HERE IS WHERE YOU VALIDATE DATA */
1688
2360
  if (id === undefined || id === null || id === '') {
1689
2361
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -1756,6 +2428,12 @@ class DnaCenter extends AdapterBaseCl {
1756
2428
  const origin = `${this.id}-${meth}`;
1757
2429
  log.trace(origin);
1758
2430
 
2431
+ if (this.suspended && this.suspendMode === 'error') {
2432
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2433
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2434
+ return callback(null, errorObj);
2435
+ }
2436
+
1759
2437
  /* HERE IS WHERE YOU VALIDATE DATA */
1760
2438
 
1761
2439
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -1802,6 +2480,12 @@ class DnaCenter extends AdapterBaseCl {
1802
2480
  const origin = `${this.id}-${meth}`;
1803
2481
  log.trace(origin);
1804
2482
 
2483
+ if (this.suspended && this.suspendMode === 'error') {
2484
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2485
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2486
+ return callback(null, errorObj);
2487
+ }
2488
+
1805
2489
  /* HERE IS WHERE YOU VALIDATE DATA */
1806
2490
  if (request === undefined || request === null || request === '') {
1807
2491
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -1876,6 +2560,12 @@ class DnaCenter extends AdapterBaseCl {
1876
2560
  const origin = `${this.id}-${meth}`;
1877
2561
  log.trace(origin);
1878
2562
 
2563
+ if (this.suspended && this.suspendMode === 'error') {
2564
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2565
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2566
+ return callback(null, errorObj);
2567
+ }
2568
+
1879
2569
  /* HERE IS WHERE YOU VALIDATE DATA */
1880
2570
  if (id === undefined || id === null || id === '') {
1881
2571
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -1944,6 +2634,12 @@ class DnaCenter extends AdapterBaseCl {
1944
2634
  const origin = `${this.id}-${meth}`;
1945
2635
  log.trace(origin);
1946
2636
 
2637
+ if (this.suspended && this.suspendMode === 'error') {
2638
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2639
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2640
+ return callback(null, errorObj);
2641
+ }
2642
+
1947
2643
  /* HERE IS WHERE YOU VALIDATE DATA */
1948
2644
  if (id === undefined || id === null || id === '') {
1949
2645
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -2017,6 +2713,12 @@ class DnaCenter extends AdapterBaseCl {
2017
2713
  const origin = `${this.id}-${meth}`;
2018
2714
  log.trace(origin);
2019
2715
 
2716
+ if (this.suspended && this.suspendMode === 'error') {
2717
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2718
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2719
+ return callback(null, errorObj);
2720
+ }
2721
+
2020
2722
  /* HERE IS WHERE YOU VALIDATE DATA */
2021
2723
 
2022
2724
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -2081,6 +2783,12 @@ class DnaCenter extends AdapterBaseCl {
2081
2783
  const origin = `${this.id}-${meth}`;
2082
2784
  log.trace(origin);
2083
2785
 
2786
+ if (this.suspended && this.suspendMode === 'error') {
2787
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2788
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2789
+ return callback(null, errorObj);
2790
+ }
2791
+
2084
2792
  /* HERE IS WHERE YOU VALIDATE DATA */
2085
2793
  if (id === undefined || id === null || id === '') {
2086
2794
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -2153,6 +2861,12 @@ class DnaCenter extends AdapterBaseCl {
2153
2861
  const origin = `${this.id}-${meth}`;
2154
2862
  log.trace(origin);
2155
2863
 
2864
+ if (this.suspended && this.suspendMode === 'error') {
2865
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2866
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2867
+ return callback(null, errorObj);
2868
+ }
2869
+
2156
2870
  /* HERE IS WHERE YOU VALIDATE DATA */
2157
2871
 
2158
2872
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -2199,6 +2913,12 @@ class DnaCenter extends AdapterBaseCl {
2199
2913
  const origin = `${this.id}-${meth}`;
2200
2914
  log.trace(origin);
2201
2915
 
2916
+ if (this.suspended && this.suspendMode === 'error') {
2917
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2918
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2919
+ return callback(null, errorObj);
2920
+ }
2921
+
2202
2922
  /* HERE IS WHERE YOU VALIDATE DATA */
2203
2923
  if (request === undefined || request === null || request === '') {
2204
2924
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2274,6 +2994,12 @@ class DnaCenter extends AdapterBaseCl {
2274
2994
  const origin = `${this.id}-${meth}`;
2275
2995
  log.trace(origin);
2276
2996
 
2997
+ if (this.suspended && this.suspendMode === 'error') {
2998
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
2999
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3000
+ return callback(null, errorObj);
3001
+ }
3002
+
2277
3003
  /* HERE IS WHERE YOU VALIDATE DATA */
2278
3004
  if (request === undefined || request === null || request === '') {
2279
3005
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2348,6 +3074,12 @@ class DnaCenter extends AdapterBaseCl {
2348
3074
  const origin = `${this.id}-${meth}`;
2349
3075
  log.trace(origin);
2350
3076
 
3077
+ if (this.suspended && this.suspendMode === 'error') {
3078
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3079
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3080
+ return callback(null, errorObj);
3081
+ }
3082
+
2351
3083
  /* HERE IS WHERE YOU VALIDATE DATA */
2352
3084
  if (request === undefined || request === null || request === '') {
2353
3085
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2422,6 +3154,12 @@ class DnaCenter extends AdapterBaseCl {
2422
3154
  const origin = `${this.id}-${meth}`;
2423
3155
  log.trace(origin);
2424
3156
 
3157
+ if (this.suspended && this.suspendMode === 'error') {
3158
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3159
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3160
+ return callback(null, errorObj);
3161
+ }
3162
+
2425
3163
  /* HERE IS WHERE YOU VALIDATE DATA */
2426
3164
  if (request === undefined || request === null || request === '') {
2427
3165
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2496,6 +3234,12 @@ class DnaCenter extends AdapterBaseCl {
2496
3234
  const origin = `${this.id}-${meth}`;
2497
3235
  log.trace(origin);
2498
3236
 
3237
+ if (this.suspended && this.suspendMode === 'error') {
3238
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3239
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3240
+ return callback(null, errorObj);
3241
+ }
3242
+
2499
3243
  /* HERE IS WHERE YOU VALIDATE DATA */
2500
3244
  if (request === undefined || request === null || request === '') {
2501
3245
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2570,6 +3314,12 @@ class DnaCenter extends AdapterBaseCl {
2570
3314
  const origin = `${this.id}-${meth}`;
2571
3315
  log.trace(origin);
2572
3316
 
3317
+ if (this.suspended && this.suspendMode === 'error') {
3318
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3319
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3320
+ return callback(null, errorObj);
3321
+ }
3322
+
2573
3323
  /* HERE IS WHERE YOU VALIDATE DATA */
2574
3324
  if (request === undefined || request === null || request === '') {
2575
3325
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2652,6 +3402,12 @@ class DnaCenter extends AdapterBaseCl {
2652
3402
  const origin = `${this.id}-${meth}`;
2653
3403
  log.trace(origin);
2654
3404
 
3405
+ if (this.suspended && this.suspendMode === 'error') {
3406
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3407
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3408
+ return callback(null, errorObj);
3409
+ }
3410
+
2655
3411
  /* HERE IS WHERE YOU VALIDATE DATA */
2656
3412
  if (id === undefined || id === null || id === '') {
2657
3413
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -2721,6 +3477,12 @@ class DnaCenter extends AdapterBaseCl {
2721
3477
  const origin = `${this.id}-${meth}`;
2722
3478
  log.trace(origin);
2723
3479
 
3480
+ if (this.suspended && this.suspendMode === 'error') {
3481
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3482
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3483
+ return callback(null, errorObj);
3484
+ }
3485
+
2724
3486
  /* HERE IS WHERE YOU VALIDATE DATA */
2725
3487
  if (request === undefined || request === null || request === '') {
2726
3488
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2795,6 +3557,12 @@ class DnaCenter extends AdapterBaseCl {
2795
3557
  const origin = `${this.id}-${meth}`;
2796
3558
  log.trace(origin);
2797
3559
 
3560
+ if (this.suspended && this.suspendMode === 'error') {
3561
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3562
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3563
+ return callback(null, errorObj);
3564
+ }
3565
+
2798
3566
  /* HERE IS WHERE YOU VALIDATE DATA */
2799
3567
  if (request === undefined || request === null || request === '') {
2800
3568
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2867,6 +3635,12 @@ class DnaCenter extends AdapterBaseCl {
2867
3635
  const origin = `${this.id}-${meth}`;
2868
3636
  log.trace(origin);
2869
3637
 
3638
+ if (this.suspended && this.suspendMode === 'error') {
3639
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3640
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3641
+ return callback(null, errorObj);
3642
+ }
3643
+
2870
3644
  /* HERE IS WHERE YOU VALIDATE DATA */
2871
3645
 
2872
3646
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -2913,6 +3687,12 @@ class DnaCenter extends AdapterBaseCl {
2913
3687
  const origin = `${this.id}-${meth}`;
2914
3688
  log.trace(origin);
2915
3689
 
3690
+ if (this.suspended && this.suspendMode === 'error') {
3691
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3692
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3693
+ return callback(null, errorObj);
3694
+ }
3695
+
2916
3696
  /* HERE IS WHERE YOU VALIDATE DATA */
2917
3697
  if (request === undefined || request === null || request === '') {
2918
3698
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -2987,6 +3767,12 @@ class DnaCenter extends AdapterBaseCl {
2987
3767
  const origin = `${this.id}-${meth}`;
2988
3768
  log.trace(origin);
2989
3769
 
3770
+ if (this.suspended && this.suspendMode === 'error') {
3771
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3772
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3773
+ return callback(null, errorObj);
3774
+ }
3775
+
2990
3776
  /* HERE IS WHERE YOU VALIDATE DATA */
2991
3777
  if (id === undefined || id === null || id === '') {
2992
3778
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -3055,6 +3841,12 @@ class DnaCenter extends AdapterBaseCl {
3055
3841
  const origin = `${this.id}-${meth}`;
3056
3842
  log.trace(origin);
3057
3843
 
3844
+ if (this.suspended && this.suspendMode === 'error') {
3845
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3846
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3847
+ return callback(null, errorObj);
3848
+ }
3849
+
3058
3850
  /* HERE IS WHERE YOU VALIDATE DATA */
3059
3851
  if (id === undefined || id === null || id === '') {
3060
3852
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -3124,6 +3916,12 @@ class DnaCenter extends AdapterBaseCl {
3124
3916
  const origin = `${this.id}-${meth}`;
3125
3917
  log.trace(origin);
3126
3918
 
3919
+ if (this.suspended && this.suspendMode === 'error') {
3920
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
3921
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
3922
+ return callback(null, errorObj);
3923
+ }
3924
+
3127
3925
  /* HERE IS WHERE YOU VALIDATE DATA */
3128
3926
  if (request === undefined || request === null || request === '') {
3129
3927
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -3198,6 +3996,12 @@ class DnaCenter extends AdapterBaseCl {
3198
3996
  const origin = `${this.id}-${meth}`;
3199
3997
  log.trace(origin);
3200
3998
 
3999
+ if (this.suspended && this.suspendMode === 'error') {
4000
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4001
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4002
+ return callback(null, errorObj);
4003
+ }
4004
+
3201
4005
  /* HERE IS WHERE YOU VALIDATE DATA */
3202
4006
  if (request === undefined || request === null || request === '') {
3203
4007
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -3270,6 +4074,12 @@ class DnaCenter extends AdapterBaseCl {
3270
4074
  const origin = `${this.id}-${meth}`;
3271
4075
  log.trace(origin);
3272
4076
 
4077
+ if (this.suspended && this.suspendMode === 'error') {
4078
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4079
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4080
+ return callback(null, errorObj);
4081
+ }
4082
+
3273
4083
  /* HERE IS WHERE YOU VALIDATE DATA */
3274
4084
 
3275
4085
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -3316,6 +4126,12 @@ class DnaCenter extends AdapterBaseCl {
3316
4126
  const origin = `${this.id}-${meth}`;
3317
4127
  log.trace(origin);
3318
4128
 
4129
+ if (this.suspended && this.suspendMode === 'error') {
4130
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4131
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4132
+ return callback(null, errorObj);
4133
+ }
4134
+
3319
4135
  /* HERE IS WHERE YOU VALIDATE DATA */
3320
4136
  if (request === undefined || request === null || request === '') {
3321
4137
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -3391,6 +4207,12 @@ class DnaCenter extends AdapterBaseCl {
3391
4207
  const origin = `${this.id}-${meth}`;
3392
4208
  log.trace(origin);
3393
4209
 
4210
+ if (this.suspended && this.suspendMode === 'error') {
4211
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4212
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4213
+ return callback(null, errorObj);
4214
+ }
4215
+
3394
4216
  /* HERE IS WHERE YOU VALIDATE DATA */
3395
4217
  if (request === undefined || request === null || request === '') {
3396
4218
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -3465,6 +4287,12 @@ class DnaCenter extends AdapterBaseCl {
3465
4287
  const origin = `${this.id}-${meth}`;
3466
4288
  log.trace(origin);
3467
4289
 
4290
+ if (this.suspended && this.suspendMode === 'error') {
4291
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4292
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4293
+ return callback(null, errorObj);
4294
+ }
4295
+
3468
4296
  /* HERE IS WHERE YOU VALIDATE DATA */
3469
4297
  if (startIndex === undefined || startIndex === null || startIndex === '') {
3470
4298
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['startIndex'], null, null, null);
@@ -3540,6 +4368,12 @@ class DnaCenter extends AdapterBaseCl {
3540
4368
  const origin = `${this.id}-${meth}`;
3541
4369
  log.trace(origin);
3542
4370
 
4371
+ if (this.suspended && this.suspendMode === 'error') {
4372
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4373
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4374
+ return callback(null, errorObj);
4375
+ }
4376
+
3543
4377
  /* HERE IS WHERE YOU VALIDATE DATA */
3544
4378
  if (request === undefined || request === null || request === '') {
3545
4379
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -3618,6 +4452,12 @@ class DnaCenter extends AdapterBaseCl {
3618
4452
  const origin = `${this.id}-${meth}`;
3619
4453
  log.trace(origin);
3620
4454
 
4455
+ if (this.suspended && this.suspendMode === 'error') {
4456
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4457
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4458
+ return callback(null, errorObj);
4459
+ }
4460
+
3621
4461
  /* HERE IS WHERE YOU VALIDATE DATA */
3622
4462
  if (globalCredentialId === undefined || globalCredentialId === null || globalCredentialId === '') {
3623
4463
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['globalCredentialId'], null, null, null);
@@ -3686,6 +4526,12 @@ class DnaCenter extends AdapterBaseCl {
3686
4526
  const origin = `${this.id}-${meth}`;
3687
4527
  log.trace(origin);
3688
4528
 
4529
+ if (this.suspended && this.suspendMode === 'error') {
4530
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4531
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4532
+ return callback(null, errorObj);
4533
+ }
4534
+
3689
4535
  /* HERE IS WHERE YOU VALIDATE DATA */
3690
4536
  if (id === undefined || id === null || id === '') {
3691
4537
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -3755,6 +4601,12 @@ class DnaCenter extends AdapterBaseCl {
3755
4601
  const origin = `${this.id}-${meth}`;
3756
4602
  log.trace(origin);
3757
4603
 
4604
+ if (this.suspended && this.suspendMode === 'error') {
4605
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4606
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4607
+ return callback(null, errorObj);
4608
+ }
4609
+
3758
4610
  /* HERE IS WHERE YOU VALIDATE DATA */
3759
4611
  if (request === undefined || request === null || request === '') {
3760
4612
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -3829,6 +4681,12 @@ class DnaCenter extends AdapterBaseCl {
3829
4681
  const origin = `${this.id}-${meth}`;
3830
4682
  log.trace(origin);
3831
4683
 
4684
+ if (this.suspended && this.suspendMode === 'error') {
4685
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4686
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4687
+ return callback(null, errorObj);
4688
+ }
4689
+
3832
4690
  /* HERE IS WHERE YOU VALIDATE DATA */
3833
4691
  if (request === undefined || request === null || request === '') {
3834
4692
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -3903,6 +4761,12 @@ class DnaCenter extends AdapterBaseCl {
3903
4761
  const origin = `${this.id}-${meth}`;
3904
4762
  log.trace(origin);
3905
4763
 
4764
+ if (this.suspended && this.suspendMode === 'error') {
4765
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4766
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4767
+ return callback(null, errorObj);
4768
+ }
4769
+
3906
4770
  /* HERE IS WHERE YOU VALIDATE DATA */
3907
4771
  if (request === undefined || request === null || request === '') {
3908
4772
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -3977,6 +4841,12 @@ class DnaCenter extends AdapterBaseCl {
3977
4841
  const origin = `${this.id}-${meth}`;
3978
4842
  log.trace(origin);
3979
4843
 
4844
+ if (this.suspended && this.suspendMode === 'error') {
4845
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4846
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4847
+ return callback(null, errorObj);
4848
+ }
4849
+
3980
4850
  /* HERE IS WHERE YOU VALIDATE DATA */
3981
4851
  if (request === undefined || request === null || request === '') {
3982
4852
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -4053,6 +4923,12 @@ class DnaCenter extends AdapterBaseCl {
4053
4923
  const origin = `${this.id}-${meth}`;
4054
4924
  log.trace(origin);
4055
4925
 
4926
+ if (this.suspended && this.suspendMode === 'error') {
4927
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
4928
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
4929
+ return callback(null, errorObj);
4930
+ }
4931
+
4056
4932
  /* HERE IS WHERE YOU VALIDATE DATA */
4057
4933
  if (ipAddress === undefined || ipAddress === null || ipAddress === '') {
4058
4934
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['ipAddress'], null, null, null);
@@ -4122,6 +4998,12 @@ class DnaCenter extends AdapterBaseCl {
4122
4998
  const origin = `${this.id}-${meth}`;
4123
4999
  log.trace(origin);
4124
5000
 
5001
+ if (this.suspended && this.suspendMode === 'error') {
5002
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5003
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5004
+ return callback(null, errorObj);
5005
+ }
5006
+
4125
5007
  /* HERE IS WHERE YOU VALIDATE DATA */
4126
5008
  if (id === undefined || id === null || id === '') {
4127
5009
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -4193,6 +5075,12 @@ class DnaCenter extends AdapterBaseCl {
4193
5075
  const origin = `${this.id}-${meth}`;
4194
5076
  log.trace(origin);
4195
5077
 
5078
+ if (this.suspended && this.suspendMode === 'error') {
5079
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5080
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5081
+ return callback(null, errorObj);
5082
+ }
5083
+
4196
5084
  /* HERE IS WHERE YOU VALIDATE DATA */
4197
5085
  if (id === undefined || id === null || id === '') {
4198
5086
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -4264,6 +5152,12 @@ class DnaCenter extends AdapterBaseCl {
4264
5152
  const origin = `${this.id}-${meth}`;
4265
5153
  log.trace(origin);
4266
5154
 
5155
+ if (this.suspended && this.suspendMode === 'error') {
5156
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5157
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5158
+ return callback(null, errorObj);
5159
+ }
5160
+
4267
5161
  /* HERE IS WHERE YOU VALIDATE DATA */
4268
5162
  if (id === undefined || id === null || id === '') {
4269
5163
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -4343,6 +5237,12 @@ class DnaCenter extends AdapterBaseCl {
4343
5237
  const origin = `${this.id}-${meth}`;
4344
5238
  log.trace(origin);
4345
5239
 
5240
+ if (this.suspended && this.suspendMode === 'error') {
5241
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5242
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5243
+ return callback(null, errorObj);
5244
+ }
5245
+
4346
5246
  /* HERE IS WHERE YOU VALIDATE DATA */
4347
5247
  if (startIndex === undefined || startIndex === null || startIndex === '') {
4348
5248
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['startIndex'], null, null, null);
@@ -4417,6 +5317,12 @@ class DnaCenter extends AdapterBaseCl {
4417
5317
  const origin = `${this.id}-${meth}`;
4418
5318
  log.trace(origin);
4419
5319
 
5320
+ if (this.suspended && this.suspendMode === 'error') {
5321
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5322
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5323
+ return callback(null, errorObj);
5324
+ }
5325
+
4420
5326
  /* HERE IS WHERE YOU VALIDATE DATA */
4421
5327
  if (id === undefined || id === null || id === '') {
4422
5328
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -4487,6 +5393,12 @@ class DnaCenter extends AdapterBaseCl {
4487
5393
  const origin = `${this.id}-${meth}`;
4488
5394
  log.trace(origin);
4489
5395
 
5396
+ if (this.suspended && this.suspendMode === 'error') {
5397
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5398
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5399
+ return callback(null, errorObj);
5400
+ }
5401
+
4490
5402
  /* HERE IS WHERE YOU VALIDATE DATA */
4491
5403
 
4492
5404
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -4551,6 +5463,12 @@ class DnaCenter extends AdapterBaseCl {
4551
5463
  const origin = `${this.id}-${meth}`;
4552
5464
  log.trace(origin);
4553
5465
 
5466
+ if (this.suspended && this.suspendMode === 'error') {
5467
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5468
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5469
+ return callback(null, errorObj);
5470
+ }
5471
+
4554
5472
  /* HERE IS WHERE YOU VALIDATE DATA */
4555
5473
  if (request === undefined || request === null || request === '') {
4556
5474
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -4625,6 +5543,12 @@ class DnaCenter extends AdapterBaseCl {
4625
5543
  const origin = `${this.id}-${meth}`;
4626
5544
  log.trace(origin);
4627
5545
 
5546
+ if (this.suspended && this.suspendMode === 'error') {
5547
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5548
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5549
+ return callback(null, errorObj);
5550
+ }
5551
+
4628
5552
  /* HERE IS WHERE YOU VALIDATE DATA */
4629
5553
  if (domain === undefined || domain === null || domain === '') {
4630
5554
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['domain'], null, null, null);
@@ -4700,6 +5624,12 @@ class DnaCenter extends AdapterBaseCl {
4700
5624
  const origin = `${this.id}-${meth}`;
4701
5625
  log.trace(origin);
4702
5626
 
5627
+ if (this.suspended && this.suspendMode === 'error') {
5628
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5629
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5630
+ return callback(null, errorObj);
5631
+ }
5632
+
4703
5633
  /* HERE IS WHERE YOU VALIDATE DATA */
4704
5634
  if (request === undefined || request === null || request === '') {
4705
5635
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -4778,6 +5708,12 @@ class DnaCenter extends AdapterBaseCl {
4778
5708
  const origin = `${this.id}-${meth}`;
4779
5709
  log.trace(origin);
4780
5710
 
5711
+ if (this.suspended && this.suspendMode === 'error') {
5712
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5713
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5714
+ return callback(null, errorObj);
5715
+ }
5716
+
4781
5717
  /* HERE IS WHERE YOU VALIDATE DATA */
4782
5718
  if (id === undefined || id === null || id === '') {
4783
5719
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -4846,6 +5782,12 @@ class DnaCenter extends AdapterBaseCl {
4846
5782
  const origin = `${this.id}-${meth}`;
4847
5783
  log.trace(origin);
4848
5784
 
5785
+ if (this.suspended && this.suspendMode === 'error') {
5786
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5787
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5788
+ return callback(null, errorObj);
5789
+ }
5790
+
4849
5791
  /* HERE IS WHERE YOU VALIDATE DATA */
4850
5792
  if (id === undefined || id === null || id === '') {
4851
5793
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -4915,6 +5857,12 @@ class DnaCenter extends AdapterBaseCl {
4915
5857
  const origin = `${this.id}-${meth}`;
4916
5858
  log.trace(origin);
4917
5859
 
5860
+ if (this.suspended && this.suspendMode === 'error') {
5861
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5862
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5863
+ return callback(null, errorObj);
5864
+ }
5865
+
4918
5866
  /* HERE IS WHERE YOU VALIDATE DATA */
4919
5867
  if (request === undefined || request === null || request === '') {
4920
5868
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -4989,6 +5937,12 @@ class DnaCenter extends AdapterBaseCl {
4989
5937
  const origin = `${this.id}-${meth}`;
4990
5938
  log.trace(origin);
4991
5939
 
5940
+ if (this.suspended && this.suspendMode === 'error') {
5941
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5942
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5943
+ return callback(null, errorObj);
5944
+ }
5945
+
4992
5946
  /* HERE IS WHERE YOU VALIDATE DATA */
4993
5947
  if (request === undefined || request === null || request === '') {
4994
5948
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -5063,6 +6017,12 @@ class DnaCenter extends AdapterBaseCl {
5063
6017
  const origin = `${this.id}-${meth}`;
5064
6018
  log.trace(origin);
5065
6019
 
6020
+ if (this.suspended && this.suspendMode === 'error') {
6021
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6022
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6023
+ return callback(null, errorObj);
6024
+ }
6025
+
5066
6026
  /* HERE IS WHERE YOU VALIDATE DATA */
5067
6027
  if (request === undefined || request === null || request === '') {
5068
6028
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -5138,6 +6098,12 @@ class DnaCenter extends AdapterBaseCl {
5138
6098
  const origin = `${this.id}-${meth}`;
5139
6099
  log.trace(origin);
5140
6100
 
6101
+ if (this.suspended && this.suspendMode === 'error') {
6102
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6103
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6104
+ return callback(null, errorObj);
6105
+ }
6106
+
5141
6107
  /* HERE IS WHERE YOU VALIDATE DATA */
5142
6108
  if (request === undefined || request === null || request === '') {
5143
6109
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -5216,6 +6182,12 @@ class DnaCenter extends AdapterBaseCl {
5216
6182
  const origin = `${this.id}-${meth}`;
5217
6183
  log.trace(origin);
5218
6184
 
6185
+ if (this.suspended && this.suspendMode === 'error') {
6186
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6187
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6188
+ return callback(null, errorObj);
6189
+ }
6190
+
5219
6191
  /* HERE IS WHERE YOU VALIDATE DATA */
5220
6192
  if (id === undefined || id === null || id === '') {
5221
6193
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -5284,6 +6256,12 @@ class DnaCenter extends AdapterBaseCl {
5284
6256
  const origin = `${this.id}-${meth}`;
5285
6257
  log.trace(origin);
5286
6258
 
6259
+ if (this.suspended && this.suspendMode === 'error') {
6260
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6261
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6262
+ return callback(null, errorObj);
6263
+ }
6264
+
5287
6265
  /* HERE IS WHERE YOU VALIDATE DATA */
5288
6266
  if (id === undefined || id === null || id === '') {
5289
6267
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -5353,6 +6331,12 @@ class DnaCenter extends AdapterBaseCl {
5353
6331
  const origin = `${this.id}-${meth}`;
5354
6332
  log.trace(origin);
5355
6333
 
6334
+ if (this.suspended && this.suspendMode === 'error') {
6335
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6336
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6337
+ return callback(null, errorObj);
6338
+ }
6339
+
5356
6340
  /* HERE IS WHERE YOU VALIDATE DATA */
5357
6341
  if (request === undefined || request === null || request === '') {
5358
6342
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -5427,6 +6411,12 @@ class DnaCenter extends AdapterBaseCl {
5427
6411
  const origin = `${this.id}-${meth}`;
5428
6412
  log.trace(origin);
5429
6413
 
6414
+ if (this.suspended && this.suspendMode === 'error') {
6415
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6416
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6417
+ return callback(null, errorObj);
6418
+ }
6419
+
5430
6420
  /* HERE IS WHERE YOU VALIDATE DATA */
5431
6421
  if (domain === undefined || domain === null || domain === '') {
5432
6422
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['domain'], null, null, null);
@@ -5499,6 +6489,12 @@ class DnaCenter extends AdapterBaseCl {
5499
6489
  const origin = `${this.id}-${meth}`;
5500
6490
  log.trace(origin);
5501
6491
 
6492
+ if (this.suspended && this.suspendMode === 'error') {
6493
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6494
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6495
+ return callback(null, errorObj);
6496
+ }
6497
+
5502
6498
  /* HERE IS WHERE YOU VALIDATE DATA */
5503
6499
 
5504
6500
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -5544,6 +6540,12 @@ class DnaCenter extends AdapterBaseCl {
5544
6540
  const origin = `${this.id}-${meth}`;
5545
6541
  log.trace(origin);
5546
6542
 
6543
+ if (this.suspended && this.suspendMode === 'error') {
6544
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6545
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6546
+ return callback(null, errorObj);
6547
+ }
6548
+
5547
6549
  /* HERE IS WHERE YOU VALIDATE DATA */
5548
6550
 
5549
6551
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -5608,6 +6610,12 @@ class DnaCenter extends AdapterBaseCl {
5608
6610
  const origin = `${this.id}-${meth}`;
5609
6611
  log.trace(origin);
5610
6612
 
6613
+ if (this.suspended && this.suspendMode === 'error') {
6614
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6615
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6616
+ return callback(null, errorObj);
6617
+ }
6618
+
5611
6619
  /* HERE IS WHERE YOU VALIDATE DATA */
5612
6620
  if (domain === undefined || domain === null || domain === '') {
5613
6621
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['domain'], null, null, null);
@@ -5677,6 +6685,12 @@ class DnaCenter extends AdapterBaseCl {
5677
6685
  const origin = `${this.id}-${meth}`;
5678
6686
  log.trace(origin);
5679
6687
 
6688
+ if (this.suspended && this.suspendMode === 'error') {
6689
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6690
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6691
+ return callback(null, errorObj);
6692
+ }
6693
+
5680
6694
  /* HERE IS WHERE YOU VALIDATE DATA */
5681
6695
  if (request === undefined || request === null || request === '') {
5682
6696
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -5749,6 +6763,12 @@ class DnaCenter extends AdapterBaseCl {
5749
6763
  const origin = `${this.id}-${meth}`;
5750
6764
  log.trace(origin);
5751
6765
 
6766
+ if (this.suspended && this.suspendMode === 'error') {
6767
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6768
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6769
+ return callback(null, errorObj);
6770
+ }
6771
+
5752
6772
  /* HERE IS WHERE YOU VALIDATE DATA */
5753
6773
 
5754
6774
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -5795,6 +6815,12 @@ class DnaCenter extends AdapterBaseCl {
5795
6815
  const origin = `${this.id}-${meth}`;
5796
6816
  log.trace(origin);
5797
6817
 
6818
+ if (this.suspended && this.suspendMode === 'error') {
6819
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6820
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6821
+ return callback(null, errorObj);
6822
+ }
6823
+
5798
6824
  /* HERE IS WHERE YOU VALIDATE DATA */
5799
6825
  if (request === undefined || request === null || request === '') {
5800
6826
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -5870,6 +6896,12 @@ class DnaCenter extends AdapterBaseCl {
5870
6896
  const origin = `${this.id}-${meth}`;
5871
6897
  log.trace(origin);
5872
6898
 
6899
+ if (this.suspended && this.suspendMode === 'error') {
6900
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6901
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6902
+ return callback(null, errorObj);
6903
+ }
6904
+
5873
6905
  /* HERE IS WHERE YOU VALIDATE DATA */
5874
6906
  if (request === undefined || request === null || request === '') {
5875
6907
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -5948,6 +6980,12 @@ class DnaCenter extends AdapterBaseCl {
5948
6980
  const origin = `${this.id}-${meth}`;
5949
6981
  log.trace(origin);
5950
6982
 
6983
+ if (this.suspended && this.suspendMode === 'error') {
6984
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
6985
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
6986
+ return callback(null, errorObj);
6987
+ }
6988
+
5951
6989
  /* HERE IS WHERE YOU VALIDATE DATA */
5952
6990
 
5953
6991
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -6012,6 +7050,12 @@ class DnaCenter extends AdapterBaseCl {
6012
7050
  const origin = `${this.id}-${meth}`;
6013
7051
  log.trace(origin);
6014
7052
 
7053
+ if (this.suspended && this.suspendMode === 'error') {
7054
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7055
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7056
+ return callback(null, errorObj);
7057
+ }
7058
+
6015
7059
  /* HERE IS WHERE YOU VALIDATE DATA */
6016
7060
  if (request === undefined || request === null || request === '') {
6017
7061
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -6098,6 +7142,12 @@ class DnaCenter extends AdapterBaseCl {
6098
7142
  const origin = `${this.id}-${meth}`;
6099
7143
  log.trace(origin);
6100
7144
 
7145
+ if (this.suspended && this.suspendMode === 'error') {
7146
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7147
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7148
+ return callback(null, errorObj);
7149
+ }
7150
+
6101
7151
  /* HERE IS WHERE YOU VALIDATE DATA */
6102
7152
 
6103
7153
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -6163,6 +7213,12 @@ class DnaCenter extends AdapterBaseCl {
6163
7213
  const origin = `${this.id}-${meth}`;
6164
7214
  log.trace(origin);
6165
7215
 
7216
+ if (this.suspended && this.suspendMode === 'error') {
7217
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7218
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7219
+ return callback(null, errorObj);
7220
+ }
7221
+
6166
7222
  /* HERE IS WHERE YOU VALIDATE DATA */
6167
7223
  if (serialNumber === undefined || serialNumber === null || serialNumber === '') {
6168
7224
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['serialNumber'], null, null, null);
@@ -6232,6 +7288,12 @@ class DnaCenter extends AdapterBaseCl {
6232
7288
  const origin = `${this.id}-${meth}`;
6233
7289
  log.trace(origin);
6234
7290
 
7291
+ if (this.suspended && this.suspendMode === 'error') {
7292
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7293
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7294
+ return callback(null, errorObj);
7295
+ }
7296
+
6235
7297
  /* HERE IS WHERE YOU VALIDATE DATA */
6236
7298
  if (request === undefined || request === null || request === '') {
6237
7299
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -6306,6 +7368,12 @@ class DnaCenter extends AdapterBaseCl {
6306
7368
  const origin = `${this.id}-${meth}`;
6307
7369
  log.trace(origin);
6308
7370
 
7371
+ if (this.suspended && this.suspendMode === 'error') {
7372
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7373
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7374
+ return callback(null, errorObj);
7375
+ }
7376
+
6309
7377
  /* HERE IS WHERE YOU VALIDATE DATA */
6310
7378
  if (request === undefined || request === null || request === '') {
6311
7379
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -6396,6 +7464,12 @@ class DnaCenter extends AdapterBaseCl {
6396
7464
  const origin = `${this.id}-${meth}`;
6397
7465
  log.trace(origin);
6398
7466
 
7467
+ if (this.suspended && this.suspendMode === 'error') {
7468
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7469
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7470
+ return callback(null, errorObj);
7471
+ }
7472
+
6399
7473
  /* HERE IS WHERE YOU VALIDATE DATA */
6400
7474
 
6401
7475
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -6460,6 +7534,12 @@ class DnaCenter extends AdapterBaseCl {
6460
7534
  const origin = `${this.id}-${meth}`;
6461
7535
  log.trace(origin);
6462
7536
 
7537
+ if (this.suspended && this.suspendMode === 'error') {
7538
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7539
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7540
+ return callback(null, errorObj);
7541
+ }
7542
+
6463
7543
  /* HERE IS WHERE YOU VALIDATE DATA */
6464
7544
  if (request === undefined || request === null || request === '') {
6465
7545
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -6550,6 +7630,12 @@ class DnaCenter extends AdapterBaseCl {
6550
7630
  const origin = `${this.id}-${meth}`;
6551
7631
  log.trace(origin);
6552
7632
 
7633
+ if (this.suspended && this.suspendMode === 'error') {
7634
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7635
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7636
+ return callback(null, errorObj);
7637
+ }
7638
+
6553
7639
  /* HERE IS WHERE YOU VALIDATE DATA */
6554
7640
 
6555
7641
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -6617,6 +7703,12 @@ class DnaCenter extends AdapterBaseCl {
6617
7703
  const origin = `${this.id}-${meth}`;
6618
7704
  log.trace(origin);
6619
7705
 
7706
+ if (this.suspended && this.suspendMode === 'error') {
7707
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7708
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7709
+ return callback(null, errorObj);
7710
+ }
7711
+
6620
7712
  /* HERE IS WHERE YOU VALIDATE DATA */
6621
7713
  if (ContentType === undefined || ContentType === null || ContentType === '') {
6622
7714
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['ContentType'], null, null, null);
@@ -6686,6 +7778,12 @@ class DnaCenter extends AdapterBaseCl {
6686
7778
  const origin = `${this.id}-${meth}`;
6687
7779
  log.trace(origin);
6688
7780
 
7781
+ if (this.suspended && this.suspendMode === 'error') {
7782
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7783
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7784
+ return callback(null, errorObj);
7785
+ }
7786
+
6689
7787
  /* HERE IS WHERE YOU VALIDATE DATA */
6690
7788
  if (request === undefined || request === null || request === '') {
6691
7789
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -6763,6 +7861,12 @@ class DnaCenter extends AdapterBaseCl {
6763
7861
  const origin = `${this.id}-${meth}`;
6764
7862
  log.trace(origin);
6765
7863
 
7864
+ if (this.suspended && this.suspendMode === 'error') {
7865
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7866
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7867
+ return callback(null, errorObj);
7868
+ }
7869
+
6766
7870
  /* HERE IS WHERE YOU VALIDATE DATA */
6767
7871
  if (request === undefined || request === null || request === '') {
6768
7872
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -6840,6 +7944,12 @@ class DnaCenter extends AdapterBaseCl {
6840
7944
  const origin = `${this.id}-${meth}`;
6841
7945
  log.trace(origin);
6842
7946
 
7947
+ if (this.suspended && this.suspendMode === 'error') {
7948
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
7949
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
7950
+ return callback(null, errorObj);
7951
+ }
7952
+
6843
7953
  /* HERE IS WHERE YOU VALIDATE DATA */
6844
7954
  if (request === undefined || request === null || request === '') {
6845
7955
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -6913,6 +8023,12 @@ class DnaCenter extends AdapterBaseCl {
6913
8023
  const origin = `${this.id}-${meth}`;
6914
8024
  log.trace(origin);
6915
8025
 
8026
+ if (this.suspended && this.suspendMode === 'error') {
8027
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8028
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8029
+ return callback(null, errorObj);
8030
+ }
8031
+
6916
8032
  /* HERE IS WHERE YOU VALIDATE DATA */
6917
8033
  if (id === undefined || id === null || id === '') {
6918
8034
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -7011,6 +8127,12 @@ class DnaCenter extends AdapterBaseCl {
7011
8127
  const origin = `${this.id}-${meth}`;
7012
8128
  log.trace(origin);
7013
8129
 
8130
+ if (this.suspended && this.suspendMode === 'error') {
8131
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8132
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8133
+ return callback(null, errorObj);
8134
+ }
8135
+
7014
8136
  /* HERE IS WHERE YOU VALIDATE DATA */
7015
8137
 
7016
8138
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -7075,6 +8197,12 @@ class DnaCenter extends AdapterBaseCl {
7075
8197
  const origin = `${this.id}-${meth}`;
7076
8198
  log.trace(origin);
7077
8199
 
8200
+ if (this.suspended && this.suspendMode === 'error') {
8201
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8202
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8203
+ return callback(null, errorObj);
8204
+ }
8205
+
7078
8206
  /* HERE IS WHERE YOU VALIDATE DATA */
7079
8207
  if (request === undefined || request === null || request === '') {
7080
8208
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -7149,6 +8277,12 @@ class DnaCenter extends AdapterBaseCl {
7149
8277
  const origin = `${this.id}-${meth}`;
7150
8278
  log.trace(origin);
7151
8279
 
8280
+ if (this.suspended && this.suspendMode === 'error') {
8281
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8282
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8283
+ return callback(null, errorObj);
8284
+ }
8285
+
7152
8286
  /* HERE IS WHERE YOU VALIDATE DATA */
7153
8287
  if (request === undefined || request === null || request === '') {
7154
8288
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -7223,6 +8357,12 @@ class DnaCenter extends AdapterBaseCl {
7223
8357
  const origin = `${this.id}-${meth}`;
7224
8358
  log.trace(origin);
7225
8359
 
8360
+ if (this.suspended && this.suspendMode === 'error') {
8361
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8362
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8363
+ return callback(null, errorObj);
8364
+ }
8365
+
7226
8366
  /* HERE IS WHERE YOU VALIDATE DATA */
7227
8367
  if (id === undefined || id === null || id === '') {
7228
8368
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -7293,6 +8433,12 @@ class DnaCenter extends AdapterBaseCl {
7293
8433
  const origin = `${this.id}-${meth}`;
7294
8434
  log.trace(origin);
7295
8435
 
8436
+ if (this.suspended && this.suspendMode === 'error') {
8437
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8438
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8439
+ return callback(null, errorObj);
8440
+ }
8441
+
7296
8442
  /* HERE IS WHERE YOU VALIDATE DATA */
7297
8443
  if (deviceId === undefined || deviceId === null || deviceId === '') {
7298
8444
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['deviceId'], null, null, null);
@@ -7370,6 +8516,12 @@ class DnaCenter extends AdapterBaseCl {
7370
8516
  const origin = `${this.id}-${meth}`;
7371
8517
  log.trace(origin);
7372
8518
 
8519
+ if (this.suspended && this.suspendMode === 'error') {
8520
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8521
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8522
+ return callback(null, errorObj);
8523
+ }
8524
+
7373
8525
  /* HERE IS WHERE YOU VALIDATE DATA */
7374
8526
 
7375
8527
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -7414,6 +8566,12 @@ class DnaCenter extends AdapterBaseCl {
7414
8566
  const origin = `${this.id}-${meth}`;
7415
8567
  log.trace(origin);
7416
8568
 
8569
+ if (this.suspended && this.suspendMode === 'error') {
8570
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8571
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8572
+ return callback(null, errorObj);
8573
+ }
8574
+
7417
8575
  /* HERE IS WHERE YOU VALIDATE DATA */
7418
8576
 
7419
8577
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -7460,6 +8618,12 @@ class DnaCenter extends AdapterBaseCl {
7460
8618
  const origin = `${this.id}-${meth}`;
7461
8619
  log.trace(origin);
7462
8620
 
8621
+ if (this.suspended && this.suspendMode === 'error') {
8622
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8623
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8624
+ return callback(null, errorObj);
8625
+ }
8626
+
7463
8627
  /* HERE IS WHERE YOU VALIDATE DATA */
7464
8628
  if (id === undefined || id === null || id === '') {
7465
8629
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -7530,6 +8694,12 @@ class DnaCenter extends AdapterBaseCl {
7530
8694
  const origin = `${this.id}-${meth}`;
7531
8695
  log.trace(origin);
7532
8696
 
8697
+ if (this.suspended && this.suspendMode === 'error') {
8698
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8699
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8700
+ return callback(null, errorObj);
8701
+ }
8702
+
7533
8703
  /* HERE IS WHERE YOU VALIDATE DATA */
7534
8704
  if (id === undefined || id === null || id === '') {
7535
8705
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -7600,6 +8770,12 @@ class DnaCenter extends AdapterBaseCl {
7600
8770
  const origin = `${this.id}-${meth}`;
7601
8771
  log.trace(origin);
7602
8772
 
8773
+ if (this.suspended && this.suspendMode === 'error') {
8774
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8775
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8776
+ return callback(null, errorObj);
8777
+ }
8778
+
7603
8779
  /* HERE IS WHERE YOU VALIDATE DATA */
7604
8780
  if (request === undefined || request === null || request === '') {
7605
8781
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -7672,6 +8848,12 @@ class DnaCenter extends AdapterBaseCl {
7672
8848
  const origin = `${this.id}-${meth}`;
7673
8849
  log.trace(origin);
7674
8850
 
8851
+ if (this.suspended && this.suspendMode === 'error') {
8852
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8853
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8854
+ return callback(null, errorObj);
8855
+ }
8856
+
7675
8857
  /* HERE IS WHERE YOU VALIDATE DATA */
7676
8858
 
7677
8859
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -7716,6 +8898,12 @@ class DnaCenter extends AdapterBaseCl {
7716
8898
  const origin = `${this.id}-${meth}`;
7717
8899
  log.trace(origin);
7718
8900
 
8901
+ if (this.suspended && this.suspendMode === 'error') {
8902
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8903
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8904
+ return callback(null, errorObj);
8905
+ }
8906
+
7719
8907
  /* HERE IS WHERE YOU VALIDATE DATA */
7720
8908
 
7721
8909
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -7761,6 +8949,12 @@ class DnaCenter extends AdapterBaseCl {
7761
8949
  const origin = `${this.id}-${meth}`;
7762
8950
  log.trace(origin);
7763
8951
 
8952
+ if (this.suspended && this.suspendMode === 'error') {
8953
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
8954
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
8955
+ return callback(null, errorObj);
8956
+ }
8957
+
7764
8958
  /* HERE IS WHERE YOU VALIDATE DATA */
7765
8959
  if (id === undefined || id === null || id === '') {
7766
8960
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -7832,6 +9026,12 @@ class DnaCenter extends AdapterBaseCl {
7832
9026
  const origin = `${this.id}-${meth}`;
7833
9027
  log.trace(origin);
7834
9028
 
9029
+ if (this.suspended && this.suspendMode === 'error') {
9030
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9031
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9032
+ return callback(null, errorObj);
9033
+ }
9034
+
7835
9035
  /* HERE IS WHERE YOU VALIDATE DATA */
7836
9036
  if (deviceId === undefined || deviceId === null || deviceId === '') {
7837
9037
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['deviceId'], null, null, null);
@@ -7909,6 +9109,12 @@ class DnaCenter extends AdapterBaseCl {
7909
9109
  const origin = `${this.id}-${meth}`;
7910
9110
  log.trace(origin);
7911
9111
 
9112
+ if (this.suspended && this.suspendMode === 'error') {
9113
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9114
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9115
+ return callback(null, errorObj);
9116
+ }
9117
+
7912
9118
  /* HERE IS WHERE YOU VALIDATE DATA */
7913
9119
  if (deviceId === undefined || deviceId === null || deviceId === '') {
7914
9120
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['deviceId'], null, null, null);
@@ -7977,6 +9183,12 @@ class DnaCenter extends AdapterBaseCl {
7977
9183
  const origin = `${this.id}-${meth}`;
7978
9184
  log.trace(origin);
7979
9185
 
9186
+ if (this.suspended && this.suspendMode === 'error') {
9187
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9188
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9189
+ return callback(null, errorObj);
9190
+ }
9191
+
7980
9192
  /* HERE IS WHERE YOU VALIDATE DATA */
7981
9193
  if (id === undefined || id === null || id === '') {
7982
9194
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -8045,6 +9257,12 @@ class DnaCenter extends AdapterBaseCl {
8045
9257
  const origin = `${this.id}-${meth}`;
8046
9258
  log.trace(origin);
8047
9259
 
9260
+ if (this.suspended && this.suspendMode === 'error') {
9261
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9262
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9263
+ return callback(null, errorObj);
9264
+ }
9265
+
8048
9266
  /* HERE IS WHERE YOU VALIDATE DATA */
8049
9267
  if (deviceId === undefined || deviceId === null || deviceId === '') {
8050
9268
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['deviceId'], null, null, null);
@@ -8113,6 +9331,12 @@ class DnaCenter extends AdapterBaseCl {
8113
9331
  const origin = `${this.id}-${meth}`;
8114
9332
  log.trace(origin);
8115
9333
 
9334
+ if (this.suspended && this.suspendMode === 'error') {
9335
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9336
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9337
+ return callback(null, errorObj);
9338
+ }
9339
+
8116
9340
  /* HERE IS WHERE YOU VALIDATE DATA */
8117
9341
  if (id === undefined || id === null || id === '') {
8118
9342
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -8181,6 +9405,12 @@ class DnaCenter extends AdapterBaseCl {
8181
9405
  const origin = `${this.id}-${meth}`;
8182
9406
  log.trace(origin);
8183
9407
 
9408
+ if (this.suspended && this.suspendMode === 'error') {
9409
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9410
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9411
+ return callback(null, errorObj);
9412
+ }
9413
+
8184
9414
  /* HERE IS WHERE YOU VALIDATE DATA */
8185
9415
  if (networkDeviceId === undefined || networkDeviceId === null || networkDeviceId === '') {
8186
9416
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['networkDeviceId'], null, null, null);
@@ -8248,6 +9478,12 @@ class DnaCenter extends AdapterBaseCl {
8248
9478
  const origin = `${this.id}-${meth}`;
8249
9479
  log.trace(origin);
8250
9480
 
9481
+ if (this.suspended && this.suspendMode === 'error') {
9482
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9483
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9484
+ return callback(null, errorObj);
9485
+ }
9486
+
8251
9487
  /* HERE IS WHERE YOU VALIDATE DATA */
8252
9488
 
8253
9489
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -8293,6 +9529,12 @@ class DnaCenter extends AdapterBaseCl {
8293
9529
  const origin = `${this.id}-${meth}`;
8294
9530
  log.trace(origin);
8295
9531
 
9532
+ if (this.suspended && this.suspendMode === 'error') {
9533
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9534
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9535
+ return callback(null, errorObj);
9536
+ }
9537
+
8296
9538
  /* HERE IS WHERE YOU VALIDATE DATA */
8297
9539
  if (id === undefined || id === null || id === '') {
8298
9540
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -8361,6 +9603,12 @@ class DnaCenter extends AdapterBaseCl {
8361
9603
  const origin = `${this.id}-${meth}`;
8362
9604
  log.trace(origin);
8363
9605
 
9606
+ if (this.suspended && this.suspendMode === 'error') {
9607
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9608
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9609
+ return callback(null, errorObj);
9610
+ }
9611
+
8364
9612
  /* HERE IS WHERE YOU VALIDATE DATA */
8365
9613
 
8366
9614
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -8405,6 +9653,12 @@ class DnaCenter extends AdapterBaseCl {
8405
9653
  const origin = `${this.id}-${meth}`;
8406
9654
  log.trace(origin);
8407
9655
 
9656
+ if (this.suspended && this.suspendMode === 'error') {
9657
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9658
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9659
+ return callback(null, errorObj);
9660
+ }
9661
+
8408
9662
  /* HERE IS WHERE YOU VALIDATE DATA */
8409
9663
 
8410
9664
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -8450,6 +9704,12 @@ class DnaCenter extends AdapterBaseCl {
8450
9704
  const origin = `${this.id}-${meth}`;
8451
9705
  log.trace(origin);
8452
9706
 
9707
+ if (this.suspended && this.suspendMode === 'error') {
9708
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9709
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9710
+ return callback(null, errorObj);
9711
+ }
9712
+
8453
9713
  /* HERE IS WHERE YOU VALIDATE DATA */
8454
9714
  if (id === undefined || id === null || id === '') {
8455
9715
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
@@ -8521,6 +9781,12 @@ class DnaCenter extends AdapterBaseCl {
8521
9781
  const origin = `${this.id}-${meth}`;
8522
9782
  log.trace(origin);
8523
9783
 
9784
+ if (this.suspended && this.suspendMode === 'error') {
9785
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9786
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9787
+ return callback(null, errorObj);
9788
+ }
9789
+
8524
9790
  /* HERE IS WHERE YOU VALIDATE DATA */
8525
9791
 
8526
9792
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -8584,6 +9850,12 @@ class DnaCenter extends AdapterBaseCl {
8584
9850
  const origin = `${this.id}-${meth}`;
8585
9851
  log.trace(origin);
8586
9852
 
9853
+ if (this.suspended && this.suspendMode === 'error') {
9854
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9855
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9856
+ return callback(null, errorObj);
9857
+ }
9858
+
8587
9859
  /* HERE IS WHERE YOU VALIDATE DATA */
8588
9860
  if (deviceId === undefined || deviceId === null || deviceId === '') {
8589
9861
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['deviceId'], null, null, null);
@@ -8653,6 +9925,12 @@ class DnaCenter extends AdapterBaseCl {
8653
9925
  const origin = `${this.id}-${meth}`;
8654
9926
  log.trace(origin);
8655
9927
 
9928
+ if (this.suspended && this.suspendMode === 'error') {
9929
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
9930
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9931
+ return callback(null, errorObj);
9932
+ }
9933
+
8656
9934
  /* HERE IS WHERE YOU VALIDATE DATA */
8657
9935
  if (request === undefined || request === null || request === '') {
8658
9936
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -8727,6 +10005,12 @@ class DnaCenter extends AdapterBaseCl {
8727
10005
  const origin = `${this.id}-${meth}`;
8728
10006
  log.trace(origin);
8729
10007
 
10008
+ if (this.suspended && this.suspendMode === 'error') {
10009
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10010
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10011
+ return callback(null, errorObj);
10012
+ }
10013
+
8730
10014
  /* HERE IS WHERE YOU VALIDATE DATA */
8731
10015
  if (request === undefined || request === null || request === '') {
8732
10016
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -8801,6 +10085,12 @@ class DnaCenter extends AdapterBaseCl {
8801
10085
  const origin = `${this.id}-${meth}`;
8802
10086
  log.trace(origin);
8803
10087
 
10088
+ if (this.suspended && this.suspendMode === 'error') {
10089
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10090
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10091
+ return callback(null, errorObj);
10092
+ }
10093
+
8804
10094
  /* HERE IS WHERE YOU VALIDATE DATA */
8805
10095
 
8806
10096
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -8864,6 +10154,12 @@ class DnaCenter extends AdapterBaseCl {
8864
10154
  const origin = `${this.id}-${meth}`;
8865
10155
  log.trace(origin);
8866
10156
 
10157
+ if (this.suspended && this.suspendMode === 'error') {
10158
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10159
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10160
+ return callback(null, errorObj);
10161
+ }
10162
+
8867
10163
  /* HERE IS WHERE YOU VALIDATE DATA */
8868
10164
  if (ipAddress === undefined || ipAddress === null || ipAddress === '') {
8869
10165
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['ipAddress'], null, null, null);
@@ -8932,6 +10228,12 @@ class DnaCenter extends AdapterBaseCl {
8932
10228
  const origin = `${this.id}-${meth}`;
8933
10229
  log.trace(origin);
8934
10230
 
10231
+ if (this.suspended && this.suspendMode === 'error') {
10232
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10233
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10234
+ return callback(null, errorObj);
10235
+ }
10236
+
8935
10237
  /* HERE IS WHERE YOU VALIDATE DATA */
8936
10238
  if (serialNumber === undefined || serialNumber === null || serialNumber === '') {
8937
10239
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['serialNumber'], null, null, null);
@@ -9000,6 +10302,12 @@ class DnaCenter extends AdapterBaseCl {
9000
10302
  const origin = `${this.id}-${meth}`;
9001
10303
  log.trace(origin);
9002
10304
 
10305
+ if (this.suspended && this.suspendMode === 'error') {
10306
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10307
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10308
+ return callback(null, errorObj);
10309
+ }
10310
+
9003
10311
  /* HERE IS WHERE YOU VALIDATE DATA */
9004
10312
  if (ipAddress === undefined || ipAddress === null || ipAddress === '') {
9005
10313
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['ipAddress'], null, null, null);
@@ -9074,6 +10382,12 @@ class DnaCenter extends AdapterBaseCl {
9074
10382
  const origin = `${this.id}-${meth}`;
9075
10383
  log.trace(origin);
9076
10384
 
10385
+ if (this.suspended && this.suspendMode === 'error') {
10386
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10387
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10388
+ return callback(null, errorObj);
10389
+ }
10390
+
9077
10391
  /* HERE IS WHERE YOU VALIDATE DATA */
9078
10392
  if (deviceId === undefined || deviceId === null || deviceId === '') {
9079
10393
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['deviceId'], null, null, null);
@@ -9143,6 +10457,12 @@ class DnaCenter extends AdapterBaseCl {
9143
10457
  const origin = `${this.id}-${meth}`;
9144
10458
  log.trace(origin);
9145
10459
 
10460
+ if (this.suspended && this.suspendMode === 'error') {
10461
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10462
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10463
+ return callback(null, errorObj);
10464
+ }
10465
+
9146
10466
  /* HERE IS WHERE YOU VALIDATE DATA */
9147
10467
  if (startIndex === undefined || startIndex === null || startIndex === '') {
9148
10468
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['startIndex'], null, null, null);
@@ -9218,6 +10538,12 @@ class DnaCenter extends AdapterBaseCl {
9218
10538
  const origin = `${this.id}-${meth}`;
9219
10539
  log.trace(origin);
9220
10540
 
10541
+ if (this.suspended && this.suspendMode === 'error') {
10542
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10543
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10544
+ return callback(null, errorObj);
10545
+ }
10546
+
9221
10547
  /* HERE IS WHERE YOU VALIDATE DATA */
9222
10548
  if (timestamp === undefined || timestamp === null || timestamp === '') {
9223
10549
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['timestamp'], null, null, null);
@@ -9295,6 +10621,12 @@ class DnaCenter extends AdapterBaseCl {
9295
10621
  const origin = `${this.id}-${meth}`;
9296
10622
  log.trace(origin);
9297
10623
 
10624
+ if (this.suspended && this.suspendMode === 'error') {
10625
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10626
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10627
+ return callback(null, errorObj);
10628
+ }
10629
+
9298
10630
  /* HERE IS WHERE YOU VALIDATE DATA */
9299
10631
 
9300
10632
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -9361,10 +10693,165 @@ class DnaCenter extends AdapterBaseCl {
9361
10693
  const origin = `${this.id}-${meth}`;
9362
10694
  log.trace(origin);
9363
10695
 
10696
+ if (this.suspended && this.suspendMode === 'error') {
10697
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10698
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10699
+ return callback(null, errorObj);
10700
+ }
10701
+
10702
+ /* HERE IS WHERE YOU VALIDATE DATA */
10703
+
10704
+ /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
10705
+ const queryParamsAvailable = { vrfName, managementIpAddress, hostname, macAddress, family, collectionStatus, collectionInterval, softwareVersion, softwareType, reachabilityStatus, reachabilityFailureReason, errorCode, platformId, series, type, serialNumber, upTime, role, roleSource, associatedWlcIp, offset, limit };
10706
+ const queryParams = {};
10707
+ const pathVars = [];
10708
+ const bodyVars = {};
10709
+
10710
+ // loop in template. long callback arg name to avoid identifier conflicts
10711
+ Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
10712
+ if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
10713
+ && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
10714
+ queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
10715
+ }
10716
+ });
10717
+
10718
+ // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
10719
+ // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
10720
+ const reqObj = {
10721
+ payload: bodyVars,
10722
+ uriPathVars: pathVars,
10723
+ uriQuery: queryParams
10724
+ };
10725
+
10726
+ try {
10727
+ // Make the call -
10728
+ // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
10729
+ return this.requestHandlerInst.identifyRequest('Devices', 'getDnaintentapiv1networkDeviceautocomplete', reqObj, true, (irReturnData, irReturnError) => {
10730
+ // if we received an error or their is no response on the results
10731
+ // return an error
10732
+ if (irReturnError) {
10733
+ /* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
10734
+ return callback(null, irReturnError);
10735
+ }
10736
+ if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
10737
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getDnaintentapiv1networkDeviceautocomplete'], null, null, null);
10738
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10739
+ return callback(null, errorObj);
10740
+ }
10741
+
10742
+ /* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
10743
+ // return the response
10744
+ return callback(irReturnData, null);
10745
+ });
10746
+ } catch (ex) {
10747
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
10748
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10749
+ return callback(null, errorObj);
10750
+ }
10751
+ }
10752
+
10753
+ /**
10754
+ * @summary Get wireless lan controller details by Id
10755
+ *
10756
+ * @function getDnaintentapiv1networkDeviceidwirelessInfo
10757
+ * @param {string} id - Device ID
10758
+ * @param {getCallback} callback - a callback function to return the result
10759
+ */
10760
+ /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
10761
+ getDnaintentapiv1networkDeviceidwirelessInfo(id, callback) {
10762
+ const meth = 'adapter-getDnaintentapiv1networkDeviceidwirelessInfo';
10763
+ const origin = `${this.id}-${meth}`;
10764
+ log.trace(origin);
10765
+
10766
+ if (this.suspended && this.suspendMode === 'error') {
10767
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10768
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10769
+ return callback(null, errorObj);
10770
+ }
10771
+
10772
+ /* HERE IS WHERE YOU VALIDATE DATA */
10773
+ if (id === undefined || id === null || id === '') {
10774
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
10775
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10776
+ return callback(null, errorObj);
10777
+ }
10778
+
10779
+ /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
10780
+ const queryParamsAvailable = {};
10781
+ const queryParams = {};
10782
+ const pathVars = [id];
10783
+ const bodyVars = {};
10784
+
10785
+ // loop in template. long callback arg name to avoid identifier conflicts
10786
+ Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
10787
+ if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
10788
+ && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
10789
+ queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
10790
+ }
10791
+ });
10792
+
10793
+ // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
10794
+ const reqObj = {
10795
+ payload: bodyVars,
10796
+ uriPathVars: pathVars,
10797
+ uriQuery: queryParams
10798
+ };
10799
+
10800
+ try {
10801
+ // Make the call -
10802
+ // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
10803
+ return this.requestHandlerInst.identifyRequest('Devices', 'getDnaintentapiv1networkDeviceidwirelessInfo', reqObj, true, (irReturnData, irReturnError) => {
10804
+ // if we received an error or their is no response on the results
10805
+ // return an error
10806
+ if (irReturnError) {
10807
+ /* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
10808
+ return callback(null, irReturnError);
10809
+ }
10810
+ if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
10811
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getDnaintentapiv1networkDeviceidwirelessInfo'], null, null, null);
10812
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10813
+ return callback(null, errorObj);
10814
+ }
10815
+
10816
+ /* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
10817
+ // return the response
10818
+ return callback(irReturnData, null);
10819
+ });
10820
+ } catch (ex) {
10821
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
10822
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10823
+ return callback(null, errorObj);
10824
+ }
10825
+ }
10826
+
10827
+ /**
10828
+ * @summary Get Site Health
10829
+ *
10830
+ * @function getDnaintentapiv1siteHealth
10831
+ * @param {string} timestamp - Epoch time(in milliseconds) when the Site Hierarchy data is required
10832
+ * @param {getCallback} callback - a callback function to return the result
10833
+ */
10834
+ /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
10835
+ getDnaintentapiv1siteHealth(timestamp, callback) {
10836
+ const meth = 'adapter-getDnaintentapiv1siteHealth';
10837
+ const origin = `${this.id}-${meth}`;
10838
+ log.trace(origin);
10839
+
10840
+ if (this.suspended && this.suspendMode === 'error') {
10841
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10842
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10843
+ return callback(null, errorObj);
10844
+ }
10845
+
9364
10846
  /* HERE IS WHERE YOU VALIDATE DATA */
10847
+ if (timestamp === undefined || timestamp === null || timestamp === '') {
10848
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['timestamp'], null, null, null);
10849
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10850
+ return callback(null, errorObj);
10851
+ }
9365
10852
 
9366
10853
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
9367
- const queryParamsAvailable = { vrfName, managementIpAddress, hostname, macAddress, family, collectionStatus, collectionInterval, softwareVersion, softwareType, reachabilityStatus, reachabilityFailureReason, errorCode, platformId, series, type, serialNumber, upTime, role, roleSource, associatedWlcIp, offset, limit };
10854
+ const queryParamsAvailable = { timestamp };
9368
10855
  const queryParams = {};
9369
10856
  const pathVars = [];
9370
10857
  const bodyVars = {};
@@ -9377,7 +10864,6 @@ class DnaCenter extends AdapterBaseCl {
9377
10864
  }
9378
10865
  });
9379
10866
 
9380
- // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
9381
10867
  // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
9382
10868
  const reqObj = {
9383
10869
  payload: bodyVars,
@@ -9388,7 +10874,7 @@ class DnaCenter extends AdapterBaseCl {
9388
10874
  try {
9389
10875
  // Make the call -
9390
10876
  // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
9391
- return this.requestHandlerInst.identifyRequest('Devices', 'getDnaintentapiv1networkDeviceautocomplete', reqObj, true, (irReturnData, irReturnError) => {
10877
+ return this.requestHandlerInst.identifyRequest('Sites', 'getDnaintentapiv1siteHealth', reqObj, true, (irReturnData, irReturnError) => {
9392
10878
  // if we received an error or their is no response on the results
9393
10879
  // return an error
9394
10880
  if (irReturnError) {
@@ -9396,7 +10882,7 @@ class DnaCenter extends AdapterBaseCl {
9396
10882
  return callback(null, irReturnError);
9397
10883
  }
9398
10884
  if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
9399
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getDnaintentapiv1networkDeviceautocomplete'], null, null, null);
10885
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getDnaintentapiv1siteHealth'], null, null, null);
9400
10886
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9401
10887
  return callback(null, errorObj);
9402
10888
  }
@@ -9413,21 +10899,46 @@ class DnaCenter extends AdapterBaseCl {
9413
10899
  }
9414
10900
 
9415
10901
  /**
9416
- * @summary Get wireless lan controller details by Id
10902
+ * @summary Assign Device To Site
9417
10903
  *
9418
- * @function getDnaintentapiv1networkDeviceidwirelessInfo
9419
- * @param {string} id - Device ID
10904
+ * @function postDnaintentapiv1sitesiteIddevice
10905
+ * @param {object} request - request
10906
+ * @param {boolean} Runsync - Enable this parameter to execute the API and return a response synchronously
10907
+ * @param {boolean} Persistbapioutput - Persist bapi sync response
10908
+ * @param {number} Timeout - During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated
10909
+ * @param {string} siteId - Site id to which the device is assigned
9420
10910
  * @param {getCallback} callback - a callback function to return the result
9421
10911
  */
9422
10912
  /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
9423
- getDnaintentapiv1networkDeviceidwirelessInfo(id, callback) {
9424
- const meth = 'adapter-getDnaintentapiv1networkDeviceidwirelessInfo';
10913
+ postDnaintentapiv1sitesiteIddevice(request, Runsync, Persistbapioutput, Timeout, siteId, callback) {
10914
+ const meth = 'adapter-postDnaintentapiv1sitesiteIddevice';
9425
10915
  const origin = `${this.id}-${meth}`;
9426
10916
  log.trace(origin);
9427
10917
 
10918
+ if (this.suspended && this.suspendMode === 'error') {
10919
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
10920
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10921
+ return callback(null, errorObj);
10922
+ }
10923
+
9428
10924
  /* HERE IS WHERE YOU VALIDATE DATA */
9429
- if (id === undefined || id === null || id === '') {
9430
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
10925
+ if (request === undefined || request === null || request === '') {
10926
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
10927
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10928
+ return callback(null, errorObj);
10929
+ }
10930
+ if (Runsync === undefined || Runsync === null || Runsync === '') {
10931
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['Runsync'], null, null, null);
10932
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10933
+ return callback(null, errorObj);
10934
+ }
10935
+ if (Persistbapioutput === undefined || Persistbapioutput === null || Persistbapioutput === '') {
10936
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['Persistbapioutput'], null, null, null);
10937
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
10938
+ return callback(null, errorObj);
10939
+ }
10940
+ if (siteId === undefined || siteId === null || siteId === '') {
10941
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['siteId'], null, null, null);
9431
10942
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9432
10943
  return callback(null, errorObj);
9433
10944
  }
@@ -9435,8 +10946,8 @@ class DnaCenter extends AdapterBaseCl {
9435
10946
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
9436
10947
  const queryParamsAvailable = {};
9437
10948
  const queryParams = {};
9438
- const pathVars = [id];
9439
- const bodyVars = {};
10949
+ const pathVars = [siteId];
10950
+ const bodyVars = request;
9440
10951
 
9441
10952
  // loop in template. long callback arg name to avoid identifier conflicts
9442
10953
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -9456,7 +10967,7 @@ class DnaCenter extends AdapterBaseCl {
9456
10967
  try {
9457
10968
  // Make the call -
9458
10969
  // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
9459
- return this.requestHandlerInst.identifyRequest('Devices', 'getDnaintentapiv1networkDeviceidwirelessInfo', reqObj, true, (irReturnData, irReturnError) => {
10970
+ return this.requestHandlerInst.identifyRequest('Sites', 'postDnaintentapiv1sitesiteIddevice', reqObj, true, (irReturnData, irReturnError) => {
9460
10971
  // if we received an error or their is no response on the results
9461
10972
  // return an error
9462
10973
  if (irReturnError) {
@@ -9464,7 +10975,7 @@ class DnaCenter extends AdapterBaseCl {
9464
10975
  return callback(null, irReturnError);
9465
10976
  }
9466
10977
  if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
9467
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getDnaintentapiv1networkDeviceidwirelessInfo'], null, null, null);
10978
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postDnaintentapiv1sitesiteIddevice'], null, null, null);
9468
10979
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9469
10980
  return callback(null, errorObj);
9470
10981
  }
@@ -9481,30 +10992,55 @@ class DnaCenter extends AdapterBaseCl {
9481
10992
  }
9482
10993
 
9483
10994
  /**
9484
- * @summary Get Site Health
10995
+ * @summary Assign Device To Site
9485
10996
  *
9486
- * @function getDnaintentapiv1siteHealth
9487
- * @param {string} timestamp - Epoch time(in milliseconds) when the Site Hierarchy data is required
10997
+ * @function postDnasystemapiv1sitesiteIddevice
10998
+ * @param {object} request - request
10999
+ * @param {boolean} Runsync - Enable this parameter to execute the API and return a response synchronously
11000
+ * @param {boolean} Persistbapioutput - Persist bapi sync response
11001
+ * @param {number} Timeout - During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated
11002
+ * @param {string} siteId - Site id to which the device is assigned
9488
11003
  * @param {getCallback} callback - a callback function to return the result
9489
11004
  */
9490
11005
  /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
9491
- getDnaintentapiv1siteHealth(timestamp, callback) {
9492
- const meth = 'adapter-getDnaintentapiv1siteHealth';
11006
+ postDnasystemapiv1sitesiteIddevice(request, Runsync, Persistbapioutput, Timeout, siteId, callback) {
11007
+ const meth = 'adapter-postDnasystemapiv1sitesiteIddevice';
9493
11008
  const origin = `${this.id}-${meth}`;
9494
11009
  log.trace(origin);
9495
11010
 
11011
+ if (this.suspended && this.suspendMode === 'error') {
11012
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11013
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11014
+ return callback(null, errorObj);
11015
+ }
11016
+
9496
11017
  /* HERE IS WHERE YOU VALIDATE DATA */
9497
- if (timestamp === undefined || timestamp === null || timestamp === '') {
9498
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['timestamp'], null, null, null);
11018
+ if (request === undefined || request === null || request === '') {
11019
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
11020
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11021
+ return callback(null, errorObj);
11022
+ }
11023
+ if (Runsync === undefined || Runsync === null || Runsync === '') {
11024
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['Runsync'], null, null, null);
11025
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11026
+ return callback(null, errorObj);
11027
+ }
11028
+ if (Persistbapioutput === undefined || Persistbapioutput === null || Persistbapioutput === '') {
11029
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['Persistbapioutput'], null, null, null);
11030
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11031
+ return callback(null, errorObj);
11032
+ }
11033
+ if (siteId === undefined || siteId === null || siteId === '') {
11034
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['siteId'], null, null, null);
9499
11035
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9500
11036
  return callback(null, errorObj);
9501
11037
  }
9502
11038
 
9503
11039
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
9504
- const queryParamsAvailable = { timestamp };
11040
+ const queryParamsAvailable = {};
9505
11041
  const queryParams = {};
9506
- const pathVars = [];
9507
- const bodyVars = {};
11042
+ const pathVars = [siteId];
11043
+ const bodyVars = request;
9508
11044
 
9509
11045
  // loop in template. long callback arg name to avoid identifier conflicts
9510
11046
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -9524,7 +11060,7 @@ class DnaCenter extends AdapterBaseCl {
9524
11060
  try {
9525
11061
  // Make the call -
9526
11062
  // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
9527
- return this.requestHandlerInst.identifyRequest('Sites', 'getDnaintentapiv1siteHealth', reqObj, true, (irReturnData, irReturnError) => {
11063
+ return this.requestHandlerInst.identifyRequest('Sites', 'postDnasystemapiv1sitesiteIddevice', reqObj, true, (irReturnData, irReturnError) => {
9528
11064
  // if we received an error or their is no response on the results
9529
11065
  // return an error
9530
11066
  if (irReturnError) {
@@ -9532,7 +11068,7 @@ class DnaCenter extends AdapterBaseCl {
9532
11068
  return callback(null, irReturnError);
9533
11069
  }
9534
11070
  if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
9535
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getDnaintentapiv1siteHealth'], null, null, null);
11071
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postDnasystemapiv1sitesiteIddevice'], null, null, null);
9536
11072
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9537
11073
  return callback(null, errorObj);
9538
11074
  }
@@ -9549,22 +11085,27 @@ class DnaCenter extends AdapterBaseCl {
9549
11085
  }
9550
11086
 
9551
11087
  /**
9552
- * @summary Assign Device To Site
11088
+ * @summary Create Site
9553
11089
  *
9554
- * @function postDnaintentapiv1sitesiteIddevice
11090
+ * @function postDnaintentapiv1site
9555
11091
  * @param {object} request - request
9556
11092
  * @param {boolean} Runsync - Enable this parameter to execute the API and return a response synchronously
9557
- * @param {boolean} Persistbapioutput - Persist bapi sync response
9558
11093
  * @param {number} Timeout - During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated
9559
- * @param {string} siteId - Site id to which the device is assigned
11094
+ * @param {boolean} Persistbapioutput - Persist bapi sync response
9560
11095
  * @param {getCallback} callback - a callback function to return the result
9561
11096
  */
9562
11097
  /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
9563
- postDnaintentapiv1sitesiteIddevice(request, Runsync, Persistbapioutput, Timeout, siteId, callback) {
9564
- const meth = 'adapter-postDnaintentapiv1sitesiteIddevice';
11098
+ postDnaintentapiv1site(request, Runsync, Timeout, Persistbapioutput, callback) {
11099
+ const meth = 'adapter-postDnaintentapiv1site';
9565
11100
  const origin = `${this.id}-${meth}`;
9566
11101
  log.trace(origin);
9567
11102
 
11103
+ if (this.suspended && this.suspendMode === 'error') {
11104
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11105
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11106
+ return callback(null, errorObj);
11107
+ }
11108
+
9568
11109
  /* HERE IS WHERE YOU VALIDATE DATA */
9569
11110
  if (request === undefined || request === null || request === '') {
9570
11111
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -9581,16 +11122,11 @@ class DnaCenter extends AdapterBaseCl {
9581
11122
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9582
11123
  return callback(null, errorObj);
9583
11124
  }
9584
- if (siteId === undefined || siteId === null || siteId === '') {
9585
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['siteId'], null, null, null);
9586
- log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9587
- return callback(null, errorObj);
9588
- }
9589
11125
 
9590
11126
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
9591
11127
  const queryParamsAvailable = {};
9592
11128
  const queryParams = {};
9593
- const pathVars = [siteId];
11129
+ const pathVars = [];
9594
11130
  const bodyVars = request;
9595
11131
 
9596
11132
  // loop in template. long callback arg name to avoid identifier conflicts
@@ -9611,7 +11147,7 @@ class DnaCenter extends AdapterBaseCl {
9611
11147
  try {
9612
11148
  // Make the call -
9613
11149
  // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
9614
- return this.requestHandlerInst.identifyRequest('Sites', 'postDnaintentapiv1sitesiteIddevice', reqObj, true, (irReturnData, irReturnError) => {
11150
+ return this.requestHandlerInst.identifyRequest('Sites', 'postDnaintentapiv1site', reqObj, true, (irReturnData, irReturnError) => {
9615
11151
  // if we received an error or their is no response on the results
9616
11152
  // return an error
9617
11153
  if (irReturnError) {
@@ -9619,7 +11155,7 @@ class DnaCenter extends AdapterBaseCl {
9619
11155
  return callback(null, irReturnError);
9620
11156
  }
9621
11157
  if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
9622
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postDnaintentapiv1sitesiteIddevice'], null, null, null);
11158
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postDnaintentapiv1site'], null, null, null);
9623
11159
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
9624
11160
  return callback(null, errorObj);
9625
11161
  }
@@ -9651,6 +11187,12 @@ class DnaCenter extends AdapterBaseCl {
9651
11187
  const origin = `${this.id}-${meth}`;
9652
11188
  log.trace(origin);
9653
11189
 
11190
+ if (this.suspended && this.suspendMode === 'error') {
11191
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11192
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11193
+ return callback(null, errorObj);
11194
+ }
11195
+
9654
11196
  /* HERE IS WHERE YOU VALIDATE DATA */
9655
11197
  if (request === undefined || request === null || request === '') {
9656
11198
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -9738,6 +11280,12 @@ class DnaCenter extends AdapterBaseCl {
9738
11280
  const origin = `${this.id}-${meth}`;
9739
11281
  log.trace(origin);
9740
11282
 
11283
+ if (this.suspended && this.suspendMode === 'error') {
11284
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11285
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11286
+ return callback(null, errorObj);
11287
+ }
11288
+
9741
11289
  /* HERE IS WHERE YOU VALIDATE DATA */
9742
11290
 
9743
11291
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -9801,6 +11349,12 @@ class DnaCenter extends AdapterBaseCl {
9801
11349
  const origin = `${this.id}-${meth}`;
9802
11350
  log.trace(origin);
9803
11351
 
11352
+ if (this.suspended && this.suspendMode === 'error') {
11353
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11354
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11355
+ return callback(null, errorObj);
11356
+ }
11357
+
9804
11358
  /* HERE IS WHERE YOU VALIDATE DATA */
9805
11359
  if (taskId === undefined || taskId === null || taskId === '') {
9806
11360
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['taskId'], null, null, null);
@@ -9882,6 +11436,12 @@ class DnaCenter extends AdapterBaseCl {
9882
11436
  const origin = `${this.id}-${meth}`;
9883
11437
  log.trace(origin);
9884
11438
 
11439
+ if (this.suspended && this.suspendMode === 'error') {
11440
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11441
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11442
+ return callback(null, errorObj);
11443
+ }
11444
+
9885
11445
  /* HERE IS WHERE YOU VALIDATE DATA */
9886
11446
 
9887
11447
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -9945,6 +11505,12 @@ class DnaCenter extends AdapterBaseCl {
9945
11505
  const origin = `${this.id}-${meth}`;
9946
11506
  log.trace(origin);
9947
11507
 
11508
+ if (this.suspended && this.suspendMode === 'error') {
11509
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11510
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11511
+ return callback(null, errorObj);
11512
+ }
11513
+
9948
11514
  /* HERE IS WHERE YOU VALIDATE DATA */
9949
11515
  if (taskId === undefined || taskId === null || taskId === '') {
9950
11516
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['taskId'], null, null, null);
@@ -10015,6 +11581,12 @@ class DnaCenter extends AdapterBaseCl {
10015
11581
  const origin = `${this.id}-${meth}`;
10016
11582
  log.trace(origin);
10017
11583
 
11584
+ if (this.suspended && this.suspendMode === 'error') {
11585
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11586
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11587
+ return callback(null, errorObj);
11588
+ }
11589
+
10018
11590
  /* HERE IS WHERE YOU VALIDATE DATA */
10019
11591
  if (operationId === undefined || operationId === null || operationId === '') {
10020
11592
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['operationId'], null, null, null);
@@ -10092,6 +11664,12 @@ class DnaCenter extends AdapterBaseCl {
10092
11664
  const origin = `${this.id}-${meth}`;
10093
11665
  log.trace(origin);
10094
11666
 
11667
+ if (this.suspended && this.suspendMode === 'error') {
11668
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11669
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11670
+ return callback(null, errorObj);
11671
+ }
11672
+
10095
11673
  /* HERE IS WHERE YOU VALIDATE DATA */
10096
11674
 
10097
11675
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -10137,6 +11715,12 @@ class DnaCenter extends AdapterBaseCl {
10137
11715
  const origin = `${this.id}-${meth}`;
10138
11716
  log.trace(origin);
10139
11717
 
11718
+ if (this.suspended && this.suspendMode === 'error') {
11719
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11720
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11721
+ return callback(null, errorObj);
11722
+ }
11723
+
10140
11724
  /* HERE IS WHERE YOU VALIDATE DATA */
10141
11725
  if (nameSpace === undefined || nameSpace === null || nameSpace === '') {
10142
11726
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['nameSpace'], null, null, null);
@@ -10206,6 +11790,12 @@ class DnaCenter extends AdapterBaseCl {
10206
11790
  const origin = `${this.id}-${meth}`;
10207
11791
  log.trace(origin);
10208
11792
 
11793
+ if (this.suspended && this.suspendMode === 'error') {
11794
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11795
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11796
+ return callback(null, errorObj);
11797
+ }
11798
+
10209
11799
  /* HERE IS WHERE YOU VALIDATE DATA */
10210
11800
  if (fileId === undefined || fileId === null || fileId === '') {
10211
11801
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['fileId'], null, null, null);
@@ -10273,6 +11863,12 @@ class DnaCenter extends AdapterBaseCl {
10273
11863
  const origin = `${this.id}-${meth}`;
10274
11864
  log.trace(origin);
10275
11865
 
11866
+ if (this.suspended && this.suspendMode === 'error') {
11867
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11868
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11869
+ return callback(null, errorObj);
11870
+ }
11871
+
10276
11872
  /* HERE IS WHERE YOU VALIDATE DATA */
10277
11873
 
10278
11874
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -10319,6 +11915,12 @@ class DnaCenter extends AdapterBaseCl {
10319
11915
  const origin = `${this.id}-${meth}`;
10320
11916
  log.trace(origin);
10321
11917
 
11918
+ if (this.suspended && this.suspendMode === 'error') {
11919
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11920
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
11921
+ return callback(null, errorObj);
11922
+ }
11923
+
10322
11924
  /* HERE IS WHERE YOU VALIDATE DATA */
10323
11925
  if (request === undefined || request === null || request === '') {
10324
11926
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -10392,6 +11994,12 @@ class DnaCenter extends AdapterBaseCl {
10392
11994
  const origin = `${this.id}-${meth}`;
10393
11995
  log.trace(origin);
10394
11996
 
11997
+ if (this.suspended && this.suspendMode === 'error') {
11998
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
11999
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12000
+ return callback(null, errorObj);
12001
+ }
12002
+
10395
12003
  /* HERE IS WHERE YOU VALIDATE DATA */
10396
12004
 
10397
12005
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -10436,6 +12044,12 @@ class DnaCenter extends AdapterBaseCl {
10436
12044
  const origin = `${this.id}-${meth}`;
10437
12045
  log.trace(origin);
10438
12046
 
12047
+ if (this.suspended && this.suspendMode === 'error') {
12048
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12049
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12050
+ return callback(null, errorObj);
12051
+ }
12052
+
10439
12053
  /* HERE IS WHERE YOU VALIDATE DATA */
10440
12054
 
10441
12055
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -10481,6 +12095,12 @@ class DnaCenter extends AdapterBaseCl {
10481
12095
  const origin = `${this.id}-${meth}`;
10482
12096
  log.trace(origin);
10483
12097
 
12098
+ if (this.suspended && this.suspendMode === 'error') {
12099
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12100
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12101
+ return callback(null, errorObj);
12102
+ }
12103
+
10484
12104
  /* HERE IS WHERE YOU VALIDATE DATA */
10485
12105
 
10486
12106
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -10546,6 +12166,12 @@ class DnaCenter extends AdapterBaseCl {
10546
12166
  const origin = `${this.id}-${meth}`;
10547
12167
  log.trace(origin);
10548
12168
 
12169
+ if (this.suspended && this.suspendMode === 'error') {
12170
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12171
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12172
+ return callback(null, errorObj);
12173
+ }
12174
+
10549
12175
  /* HERE IS WHERE YOU VALIDATE DATA */
10550
12176
  if (vlanID === undefined || vlanID === null || vlanID === '') {
10551
12177
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['vlanID'], null, null, null);
@@ -10614,6 +12240,12 @@ class DnaCenter extends AdapterBaseCl {
10614
12240
  const origin = `${this.id}-${meth}`;
10615
12241
  log.trace(origin);
10616
12242
 
12243
+ if (this.suspended && this.suspendMode === 'error') {
12244
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12245
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12246
+ return callback(null, errorObj);
12247
+ }
12248
+
10617
12249
  /* HERE IS WHERE YOU VALIDATE DATA */
10618
12250
  if (topologyType === undefined || topologyType === null || topologyType === '') {
10619
12251
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['topologyType'], null, null, null);
@@ -10682,6 +12314,12 @@ class DnaCenter extends AdapterBaseCl {
10682
12314
  const origin = `${this.id}-${meth}`;
10683
12315
  log.trace(origin);
10684
12316
 
12317
+ if (this.suspended && this.suspendMode === 'error') {
12318
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12319
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12320
+ return callback(null, errorObj);
12321
+ }
12322
+
10685
12323
  /* HERE IS WHERE YOU VALIDATE DATA */
10686
12324
  if (timestamp === undefined || timestamp === null || timestamp === '') {
10687
12325
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['timestamp'], null, null, null);
@@ -10764,6 +12402,12 @@ class DnaCenter extends AdapterBaseCl {
10764
12402
  const origin = `${this.id}-${meth}`;
10765
12403
  log.trace(origin);
10766
12404
 
12405
+ if (this.suspended && this.suspendMode === 'error') {
12406
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12407
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12408
+ return callback(null, errorObj);
12409
+ }
12410
+
10767
12411
  /* HERE IS WHERE YOU VALIDATE DATA */
10768
12412
 
10769
12413
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -10828,6 +12472,12 @@ class DnaCenter extends AdapterBaseCl {
10828
12472
  const origin = `${this.id}-${meth}`;
10829
12473
  log.trace(origin);
10830
12474
 
12475
+ if (this.suspended && this.suspendMode === 'error') {
12476
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12477
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12478
+ return callback(null, errorObj);
12479
+ }
12480
+
10831
12481
  /* HERE IS WHERE YOU VALIDATE DATA */
10832
12482
  if (request === undefined || request === null || request === '') {
10833
12483
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -10901,6 +12551,12 @@ class DnaCenter extends AdapterBaseCl {
10901
12551
  const origin = `${this.id}-${meth}`;
10902
12552
  log.trace(origin);
10903
12553
 
12554
+ if (this.suspended && this.suspendMode === 'error') {
12555
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12556
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12557
+ return callback(null, errorObj);
12558
+ }
12559
+
10904
12560
  /* HERE IS WHERE YOU VALIDATE DATA */
10905
12561
  if (flowAnalysisId === undefined || flowAnalysisId === null || flowAnalysisId === '') {
10906
12562
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['flowAnalysisId'], null, null, null);
@@ -10969,6 +12625,12 @@ class DnaCenter extends AdapterBaseCl {
10969
12625
  const origin = `${this.id}-${meth}`;
10970
12626
  log.trace(origin);
10971
12627
 
12628
+ if (this.suspended && this.suspendMode === 'error') {
12629
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12630
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12631
+ return callback(null, errorObj);
12632
+ }
12633
+
10972
12634
  /* HERE IS WHERE YOU VALIDATE DATA */
10973
12635
  if (flowAnalysisId === undefined || flowAnalysisId === null || flowAnalysisId === '') {
10974
12636
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['flowAnalysisId'], null, null, null);
@@ -11037,6 +12699,12 @@ class DnaCenter extends AdapterBaseCl {
11037
12699
  const origin = `${this.id}-${meth}`;
11038
12700
  log.trace(origin);
11039
12701
 
12702
+ if (this.suspended && this.suspendMode === 'error') {
12703
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12704
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12705
+ return callback(null, errorObj);
12706
+ }
12707
+
11040
12708
  /* HERE IS WHERE YOU VALIDATE DATA */
11041
12709
  if (deviceIp === undefined || deviceIp === null || deviceIp === '') {
11042
12710
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['deviceIp'], null, null, null);
@@ -11108,6 +12776,12 @@ class DnaCenter extends AdapterBaseCl {
11108
12776
  const origin = `${this.id}-${meth}`;
11109
12777
  log.trace(origin);
11110
12778
 
12779
+ if (this.suspended && this.suspendMode === 'error') {
12780
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12781
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12782
+ return callback(null, errorObj);
12783
+ }
12784
+
11111
12785
  /* HERE IS WHERE YOU VALIDATE DATA */
11112
12786
  if (request === undefined || request === null || request === '') {
11113
12787
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -11187,6 +12861,12 @@ class DnaCenter extends AdapterBaseCl {
11187
12861
  const origin = `${this.id}-${meth}`;
11188
12862
  log.trace(origin);
11189
12863
 
12864
+ if (this.suspended && this.suspendMode === 'error') {
12865
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12866
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12867
+ return callback(null, errorObj);
12868
+ }
12869
+
11190
12870
  /* HERE IS WHERE YOU VALIDATE DATA */
11191
12871
  if (ContentType === undefined || ContentType === null || ContentType === '') {
11192
12872
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['ContentType'], null, null, null);
@@ -11261,6 +12941,12 @@ class DnaCenter extends AdapterBaseCl {
11261
12941
  const origin = `${this.id}-${meth}`;
11262
12942
  log.trace(origin);
11263
12943
 
12944
+ if (this.suspended && this.suspendMode === 'error') {
12945
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
12946
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
12947
+ return callback(null, errorObj);
12948
+ }
12949
+
11264
12950
  /* HERE IS WHERE YOU VALIDATE DATA */
11265
12951
  if (ssidName === undefined || ssidName === null || ssidName === '') {
11266
12952
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['ssidName'], null, null, null);
@@ -11334,6 +13020,12 @@ class DnaCenter extends AdapterBaseCl {
11334
13020
  const origin = `${this.id}-${meth}`;
11335
13021
  log.trace(origin);
11336
13022
 
13023
+ if (this.suspended && this.suspendMode === 'error') {
13024
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13025
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13026
+ return callback(null, errorObj);
13027
+ }
13028
+
11337
13029
  /* HERE IS WHERE YOU VALIDATE DATA */
11338
13030
  if (request === undefined || request === null || request === '') {
11339
13031
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -11402,6 +13094,12 @@ class DnaCenter extends AdapterBaseCl {
11402
13094
  const origin = `${this.id}-${meth}`;
11403
13095
  log.trace(origin);
11404
13096
 
13097
+ if (this.suspended && this.suspendMode === 'error') {
13098
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13099
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13100
+ return callback(null, errorObj);
13101
+ }
13102
+
11405
13103
  /* HERE IS WHERE YOU VALIDATE DATA */
11406
13104
 
11407
13105
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
@@ -11465,6 +13163,12 @@ class DnaCenter extends AdapterBaseCl {
11465
13163
  const origin = `${this.id}-${meth}`;
11466
13164
  log.trace(origin);
11467
13165
 
13166
+ if (this.suspended && this.suspendMode === 'error') {
13167
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13168
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13169
+ return callback(null, errorObj);
13170
+ }
13171
+
11468
13172
  /* HERE IS WHERE YOU VALIDATE DATA */
11469
13173
  if (request === undefined || request === null || request === '') {
11470
13174
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -11533,6 +13237,12 @@ class DnaCenter extends AdapterBaseCl {
11533
13237
  const origin = `${this.id}-${meth}`;
11534
13238
  log.trace(origin);
11535
13239
 
13240
+ if (this.suspended && this.suspendMode === 'error') {
13241
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13242
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13243
+ return callback(null, errorObj);
13244
+ }
13245
+
11536
13246
  /* HERE IS WHERE YOU VALIDATE DATA */
11537
13247
  if (ssidName === undefined || ssidName === null || ssidName === '') {
11538
13248
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['ssidName'], null, null, null);
@@ -11602,6 +13312,12 @@ class DnaCenter extends AdapterBaseCl {
11602
13312
  const origin = `${this.id}-${meth}`;
11603
13313
  log.trace(origin);
11604
13314
 
13315
+ if (this.suspended && this.suspendMode === 'error') {
13316
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13317
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13318
+ return callback(null, errorObj);
13319
+ }
13320
+
11605
13321
  /* HERE IS WHERE YOU VALIDATE DATA */
11606
13322
  if (timestamp === undefined || timestamp === null || timestamp === '') {
11607
13323
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['timestamp'], null, null, null);
@@ -11675,6 +13391,12 @@ class DnaCenter extends AdapterBaseCl {
11675
13391
  const origin = `${this.id}-${meth}`;
11676
13392
  log.trace(origin);
11677
13393
 
13394
+ if (this.suspended && this.suspendMode === 'error') {
13395
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13396
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13397
+ return callback(null, errorObj);
13398
+ }
13399
+
11678
13400
  /* HERE IS WHERE YOU VALIDATE DATA */
11679
13401
  if (timestamp === undefined || timestamp === null || timestamp === '') {
11680
13402
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['timestamp'], null, null, null);
@@ -11744,6 +13466,12 @@ class DnaCenter extends AdapterBaseCl {
11744
13466
  const origin = `${this.id}-${meth}`;
11745
13467
  log.trace(origin);
11746
13468
 
13469
+ if (this.suspended && this.suspendMode === 'error') {
13470
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13471
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13472
+ return callback(null, errorObj);
13473
+ }
13474
+
11747
13475
  /* HERE IS WHERE YOU VALIDATE DATA */
11748
13476
  if (sdaborderdevice === undefined || sdaborderdevice === null || sdaborderdevice === '') {
11749
13477
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['sdaborderdevice'], null, null, null);
@@ -11821,6 +13549,12 @@ class DnaCenter extends AdapterBaseCl {
11821
13549
  const origin = `${this.id}-${meth}`;
11822
13550
  log.trace(origin);
11823
13551
 
13552
+ if (this.suspended && this.suspendMode === 'error') {
13553
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13554
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13555
+ return callback(null, errorObj);
13556
+ }
13557
+
11824
13558
  /* HERE IS WHERE YOU VALIDATE DATA */
11825
13559
  if (request === undefined || request === null || request === '') {
11826
13560
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);
@@ -11902,6 +13636,12 @@ class DnaCenter extends AdapterBaseCl {
11902
13636
  const origin = `${this.id}-${meth}`;
11903
13637
  log.trace(origin);
11904
13638
 
13639
+ if (this.suspended && this.suspendMode === 'error') {
13640
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
13641
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
13642
+ return callback(null, errorObj);
13643
+ }
13644
+
11905
13645
  /* HERE IS WHERE YOU VALIDATE DATA */
11906
13646
  if (request === undefined || request === null || request === '') {
11907
13647
  const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['request'], null, null, null);