@itentialopensource/adapter-docker 0.5.2 → 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.
- package/.eslintignore +1 -0
- package/.eslintrc.js +12 -12
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +57 -13
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +244 -392
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +1210 -35
- package/adapterBase.js +1331 -50
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +1 -1
- package/error.json +12 -0
- package/package.json +47 -23
- package/pronghorn.json +642 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +505 -11
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1594147165646.json +95 -0
- package/report/updateReport1614892699741.json +95 -0
- package/report/updateReport1653089048005.json +120 -0
- package/sampleProperties.json +110 -6
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +33 -96
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +643 -104
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +9 -14
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +4 -1
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +184 -0
- package/utils/tbUtils.js +469 -0
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +190 -0
- package/gl-code-quality-report.json +0 -1
package/adapter.js
CHANGED
|
@@ -10,12 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
/* Required libraries. */
|
|
12
12
|
const path = require('path');
|
|
13
|
-
// const xmldom = require('xmldom');
|
|
14
13
|
|
|
15
14
|
/* Fetch in the other needed components for the this Adaptor */
|
|
16
15
|
const AdapterBaseCl = require(path.join(__dirname, 'adapterBase.js'));
|
|
17
16
|
|
|
18
|
-
|
|
19
17
|
/**
|
|
20
18
|
* This is the adapter/interface into Docker
|
|
21
19
|
*/
|
|
@@ -25,69 +23,303 @@ class Docker extends AdapterBaseCl {
|
|
|
25
23
|
/**
|
|
26
24
|
* Docker Adapter
|
|
27
25
|
* @constructor
|
|
26
|
+
*/
|
|
27
|
+
/* Working on changing the way we do Emit methods due to size and time constrainsts
|
|
28
28
|
constructor(prongid, properties) {
|
|
29
29
|
// Instantiate the AdapterBase super class
|
|
30
30
|
super(prongid, properties);
|
|
31
31
|
|
|
32
|
+
const restFunctionNames = this.getWorkflowFunctions();
|
|
33
|
+
|
|
34
|
+
// Dynamically bind emit functions
|
|
35
|
+
for (let i = 0; i < restFunctionNames.length; i += 1) {
|
|
36
|
+
// Bind function to have name fnNameEmit for fnName
|
|
37
|
+
const version = restFunctionNames[i].match(/__v[0-9]+/);
|
|
38
|
+
const baseFnName = restFunctionNames[i].replace(/__v[0-9]+/, '');
|
|
39
|
+
const fnNameEmit = version ? `${baseFnName}Emit${version}` : `${baseFnName}Emit`;
|
|
40
|
+
this[fnNameEmit] = function (...args) {
|
|
41
|
+
// extract the callback
|
|
42
|
+
const callback = args[args.length - 1];
|
|
43
|
+
// slice the callback from args so we can insert our own
|
|
44
|
+
const functionArgs = args.slice(0, args.length - 1);
|
|
45
|
+
// create a random name for the listener
|
|
46
|
+
const eventName = `${restFunctionNames[i]}:${Math.random().toString(36)}`;
|
|
47
|
+
// tell the calling class to start listening
|
|
48
|
+
callback({ event: eventName, status: 'received' });
|
|
49
|
+
// store parent for use of this context later
|
|
50
|
+
const parent = this;
|
|
51
|
+
// store emission function
|
|
52
|
+
const func = function (val, err) {
|
|
53
|
+
parent.removeListener(eventName, func);
|
|
54
|
+
parent.emit(eventName, val, err);
|
|
55
|
+
};
|
|
56
|
+
// Use apply to call the function in a specific context
|
|
57
|
+
this[restFunctionNames[i]].apply(this, functionArgs.concat([func])); // eslint-disable-line prefer-spread
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
32
61
|
// Uncomment if you have things to add to the constructor like using your own properties.
|
|
33
62
|
// Otherwise the constructor in the adapterBase will be used.
|
|
34
63
|
// Capture my own properties - they need to be defined in propertiesSchema.json
|
|
35
|
-
if (this.allProps && this.allProps.myownproperty) {
|
|
36
|
-
|
|
37
|
-
}
|
|
64
|
+
// if (this.allProps && this.allProps.myownproperty) {
|
|
65
|
+
// mypropvariable = this.allProps.myownproperty;
|
|
66
|
+
// }
|
|
38
67
|
}
|
|
39
68
|
*/
|
|
40
69
|
|
|
41
|
-
|
|
42
70
|
/**
|
|
43
71
|
* @callback healthCallback
|
|
44
|
-
* @param {Object}
|
|
72
|
+
* @param {Object} reqObj - the request to send into the healthcheck
|
|
73
|
+
* @param {Callback} callback - The results of the call
|
|
45
74
|
*/
|
|
75
|
+
healthCheck(reqObj, callback) {
|
|
76
|
+
// you can modify what is passed into the healthcheck by changing things in the newReq
|
|
77
|
+
let newReq = null;
|
|
78
|
+
if (reqObj) {
|
|
79
|
+
newReq = Object.assign(...reqObj);
|
|
80
|
+
}
|
|
81
|
+
super.healthCheck(newReq, callback);
|
|
82
|
+
}
|
|
83
|
+
|
|
46
84
|
/**
|
|
47
|
-
* @
|
|
48
|
-
* @param {Object} result - the result of the get request (entity/ies)
|
|
49
|
-
* @param {String} error - any error that occurred
|
|
85
|
+
* @iapGetAdapterWorkflowFunctions
|
|
50
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
|
+
|
|
51
110
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
111
|
+
* iapUpdateAdapterConfiguration is used to update any of the adapter configuration files. This
|
|
112
|
+
* allows customers to make changes to adapter configuration without having to be on the
|
|
113
|
+
* file system.
|
|
114
|
+
*
|
|
115
|
+
* @function iapUpdateAdapterConfiguration
|
|
116
|
+
* @param {string} configFile - the name of the file being updated (required)
|
|
117
|
+
* @param {Object} changes - an object containing all of the changes = formatted like the configuration file (required)
|
|
118
|
+
* @param {string} entity - the entity to be changed, if an action, schema or mock data file (optional)
|
|
119
|
+
* @param {string} type - the type of entity file to change, (action, schema, mock) (optional)
|
|
120
|
+
* @param {string} action - the action to be changed, if an action, schema or mock data file (optional)
|
|
121
|
+
* @param {Callback} callback - The results of the call
|
|
55
122
|
*/
|
|
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);
|
|
129
|
+
}
|
|
130
|
+
|
|
56
131
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* @
|
|
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
|
|
60
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
|
+
|
|
61
146
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
+
|
|
165
|
+
/**
|
|
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
|
+
|
|
184
|
+
/**
|
|
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
|
+
|
|
198
|
+
/**
|
|
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
|
|
65
284
|
*/
|
|
285
|
+
iapMoveAdapterEntitiesToDB(callback) {
|
|
286
|
+
const meth = 'adapter-iapMoveAdapterEntitiesToDB';
|
|
287
|
+
const origin = `${this.id}-${meth}`;
|
|
288
|
+
log.trace(origin);
|
|
66
289
|
|
|
290
|
+
try {
|
|
291
|
+
return super.iapMoveAdapterEntitiesToDB(callback);
|
|
292
|
+
} catch (err) {
|
|
293
|
+
log.error(`${origin}: ${err}`);
|
|
294
|
+
return callback(null, err);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* BROKER CALLS */
|
|
67
299
|
/**
|
|
68
300
|
* @summary Determines if this adapter supports the specific entity
|
|
69
301
|
*
|
|
70
|
-
* @function
|
|
302
|
+
* @function iapHasAdapterEntity
|
|
71
303
|
* @param {String} entityType - the entity type to check for
|
|
72
304
|
* @param {String/Array} entityId - the specific entity we are looking for
|
|
73
305
|
*
|
|
74
306
|
* @param {Callback} callback - An array of whether the adapter can has the
|
|
75
307
|
* desired capability or an error
|
|
76
308
|
*/
|
|
77
|
-
|
|
78
|
-
const origin = `${this.id}-adapter-
|
|
309
|
+
iapHasAdapterEntity(entityType, entityId, callback) {
|
|
310
|
+
const origin = `${this.id}-adapter-iapHasAdapterEntity`;
|
|
79
311
|
log.trace(origin);
|
|
80
312
|
|
|
81
313
|
// Make the call -
|
|
82
|
-
//
|
|
83
|
-
return this.
|
|
314
|
+
// iapVerifyAdapterCapability(entityType, actionType, entityId, callback)
|
|
315
|
+
return this.iapVerifyAdapterCapability(entityType, null, entityId, callback);
|
|
84
316
|
}
|
|
85
317
|
|
|
86
318
|
/**
|
|
87
319
|
* @summary Provides a way for the adapter to tell north bound integrations
|
|
88
320
|
* whether the adapter supports type, action and specific entity
|
|
89
321
|
*
|
|
90
|
-
* @function
|
|
322
|
+
* @function iapVerifyAdapterCapability
|
|
91
323
|
* @param {String} entityType - the entity type to check for
|
|
92
324
|
* @param {String} actionType - the action type to check for
|
|
93
325
|
* @param {String/Array} entityId - the specific entity we are looking for
|
|
@@ -95,15 +327,15 @@ class Docker extends AdapterBaseCl {
|
|
|
95
327
|
* @param {Callback} callback - An array of whether the adapter can has the
|
|
96
328
|
* desired capability or an error
|
|
97
329
|
*/
|
|
98
|
-
|
|
99
|
-
const meth = 'adapterBase-
|
|
330
|
+
iapVerifyAdapterCapability(entityType, actionType, entityId, callback) {
|
|
331
|
+
const meth = 'adapterBase-iapVerifyAdapterCapability';
|
|
100
332
|
const origin = `${this.id}-${meth}`;
|
|
101
333
|
log.trace(origin);
|
|
102
334
|
|
|
103
335
|
// if caching
|
|
104
336
|
if (this.caching) {
|
|
105
|
-
// Make the call -
|
|
106
|
-
return this.requestHandlerInst.
|
|
337
|
+
// Make the call - iapVerifyAdapterCapability(entityType, actionType, entityId, callback)
|
|
338
|
+
return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, entityId, (results, error) => {
|
|
107
339
|
if (error) {
|
|
108
340
|
return callback(null, error);
|
|
109
341
|
}
|
|
@@ -121,7 +353,7 @@ class Docker extends AdapterBaseCl {
|
|
|
121
353
|
}
|
|
122
354
|
|
|
123
355
|
// need to check the cache again since it has been updated
|
|
124
|
-
return this.requestHandlerInst.
|
|
356
|
+
return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, entityId, (vcapable, verror) => {
|
|
125
357
|
if (verror) {
|
|
126
358
|
return callback(null, verror);
|
|
127
359
|
}
|
|
@@ -154,7 +386,7 @@ class Docker extends AdapterBaseCl {
|
|
|
154
386
|
// if no entity id
|
|
155
387
|
if (!entityId) {
|
|
156
388
|
// need to check the cache again since it has been updated
|
|
157
|
-
return this.requestHandlerInst.
|
|
389
|
+
return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, null, (vcapable, verror) => {
|
|
158
390
|
if (verror) {
|
|
159
391
|
return callback(null, verror);
|
|
160
392
|
}
|
|
@@ -175,7 +407,7 @@ class Docker extends AdapterBaseCl {
|
|
|
175
407
|
}
|
|
176
408
|
|
|
177
409
|
// need to check the cache again since it has been updated
|
|
178
|
-
return this.requestHandlerInst.
|
|
410
|
+
return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, null, (vcapable, verror) => {
|
|
179
411
|
if (verror) {
|
|
180
412
|
return callback(null, verror);
|
|
181
413
|
}
|
|
@@ -216,11 +448,11 @@ class Docker extends AdapterBaseCl {
|
|
|
216
448
|
/**
|
|
217
449
|
* @summary Updates the cache for all entities by call the get All entity method
|
|
218
450
|
*
|
|
219
|
-
* @function
|
|
451
|
+
* @function iapUpdateAdapterEntityCache
|
|
220
452
|
*
|
|
221
453
|
*/
|
|
222
|
-
|
|
223
|
-
const origin = `${this.id}-adapter-
|
|
454
|
+
iapUpdateAdapterEntityCache() {
|
|
455
|
+
const origin = `${this.id}-adapter-iapUpdateAdapterEntityCache`;
|
|
224
456
|
log.trace(origin);
|
|
225
457
|
|
|
226
458
|
if (this.caching) {
|
|
@@ -233,6 +465,385 @@ class Docker extends AdapterBaseCl {
|
|
|
233
465
|
}
|
|
234
466
|
}
|
|
235
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
|
+
|
|
236
847
|
/**
|
|
237
848
|
* @summary List containers
|
|
238
849
|
*
|
|
@@ -249,6 +860,12 @@ class Docker extends AdapterBaseCl {
|
|
|
249
860
|
const origin = `${this.id}-${meth}`;
|
|
250
861
|
log.trace(origin);
|
|
251
862
|
|
|
863
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
864
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
865
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
866
|
+
return callback(null, errorObj);
|
|
867
|
+
}
|
|
868
|
+
|
|
252
869
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
253
870
|
|
|
254
871
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -313,6 +930,12 @@ class Docker extends AdapterBaseCl {
|
|
|
313
930
|
const origin = `${this.id}-${meth}`;
|
|
314
931
|
log.trace(origin);
|
|
315
932
|
|
|
933
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
934
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
935
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
936
|
+
return callback(null, errorObj);
|
|
937
|
+
}
|
|
938
|
+
|
|
316
939
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
317
940
|
if (body === undefined || body === null || body === '') {
|
|
318
941
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['body'], null, null, null);
|
|
@@ -382,6 +1005,12 @@ class Docker extends AdapterBaseCl {
|
|
|
382
1005
|
const origin = `${this.id}-${meth}`;
|
|
383
1006
|
log.trace(origin);
|
|
384
1007
|
|
|
1008
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1009
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1010
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1011
|
+
return callback(null, errorObj);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
385
1014
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
386
1015
|
if (id === undefined || id === null || id === '') {
|
|
387
1016
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -451,6 +1080,12 @@ class Docker extends AdapterBaseCl {
|
|
|
451
1080
|
const origin = `${this.id}-${meth}`;
|
|
452
1081
|
log.trace(origin);
|
|
453
1082
|
|
|
1083
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1084
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1085
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1086
|
+
return callback(null, errorObj);
|
|
1087
|
+
}
|
|
1088
|
+
|
|
454
1089
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
455
1090
|
if (id === undefined || id === null || id === '') {
|
|
456
1091
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -525,6 +1160,12 @@ class Docker extends AdapterBaseCl {
|
|
|
525
1160
|
const origin = `${this.id}-${meth}`;
|
|
526
1161
|
log.trace(origin);
|
|
527
1162
|
|
|
1163
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1164
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1165
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1166
|
+
return callback(null, errorObj);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
528
1169
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
529
1170
|
if (id === undefined || id === null || id === '') {
|
|
530
1171
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -593,6 +1234,12 @@ class Docker extends AdapterBaseCl {
|
|
|
593
1234
|
const origin = `${this.id}-${meth}`;
|
|
594
1235
|
log.trace(origin);
|
|
595
1236
|
|
|
1237
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1238
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1239
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1240
|
+
return callback(null, errorObj);
|
|
1241
|
+
}
|
|
1242
|
+
|
|
596
1243
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
597
1244
|
if (id === undefined || id === null || id === '') {
|
|
598
1245
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -661,6 +1308,12 @@ class Docker extends AdapterBaseCl {
|
|
|
661
1308
|
const origin = `${this.id}-${meth}`;
|
|
662
1309
|
log.trace(origin);
|
|
663
1310
|
|
|
1311
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1312
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1313
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1314
|
+
return callback(null, errorObj);
|
|
1315
|
+
}
|
|
1316
|
+
|
|
664
1317
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
665
1318
|
if (id === undefined || id === null || id === '') {
|
|
666
1319
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -730,6 +1383,12 @@ class Docker extends AdapterBaseCl {
|
|
|
730
1383
|
const origin = `${this.id}-${meth}`;
|
|
731
1384
|
log.trace(origin);
|
|
732
1385
|
|
|
1386
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1387
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1388
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1389
|
+
return callback(null, errorObj);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
733
1392
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
734
1393
|
if (id === undefined || id === null || id === '') {
|
|
735
1394
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -800,6 +1459,12 @@ class Docker extends AdapterBaseCl {
|
|
|
800
1459
|
const origin = `${this.id}-${meth}`;
|
|
801
1460
|
log.trace(origin);
|
|
802
1461
|
|
|
1462
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1463
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1464
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1465
|
+
return callback(null, errorObj);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
803
1468
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
804
1469
|
if (id === undefined || id === null || id === '') {
|
|
805
1470
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -869,6 +1534,12 @@ class Docker extends AdapterBaseCl {
|
|
|
869
1534
|
const origin = `${this.id}-${meth}`;
|
|
870
1535
|
log.trace(origin);
|
|
871
1536
|
|
|
1537
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1538
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1539
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1540
|
+
return callback(null, errorObj);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
872
1543
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
873
1544
|
if (id === undefined || id === null || id === '') {
|
|
874
1545
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -938,6 +1609,12 @@ class Docker extends AdapterBaseCl {
|
|
|
938
1609
|
const origin = `${this.id}-${meth}`;
|
|
939
1610
|
log.trace(origin);
|
|
940
1611
|
|
|
1612
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1613
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1614
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1615
|
+
return callback(null, errorObj);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
941
1618
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
942
1619
|
if (id === undefined || id === null || id === '') {
|
|
943
1620
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1007,6 +1684,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1007
1684
|
const origin = `${this.id}-${meth}`;
|
|
1008
1685
|
log.trace(origin);
|
|
1009
1686
|
|
|
1687
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1688
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1689
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1690
|
+
return callback(null, errorObj);
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1010
1693
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1011
1694
|
if (id === undefined || id === null || id === '') {
|
|
1012
1695
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1076,6 +1759,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1076
1759
|
const origin = `${this.id}-${meth}`;
|
|
1077
1760
|
log.trace(origin);
|
|
1078
1761
|
|
|
1762
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1763
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1764
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1765
|
+
return callback(null, errorObj);
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1079
1768
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1080
1769
|
if (id === undefined || id === null || id === '') {
|
|
1081
1770
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1145,6 +1834,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1145
1834
|
const origin = `${this.id}-${meth}`;
|
|
1146
1835
|
log.trace(origin);
|
|
1147
1836
|
|
|
1837
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1838
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1839
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1840
|
+
return callback(null, errorObj);
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1148
1843
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1149
1844
|
if (id === undefined || id === null || id === '') {
|
|
1150
1845
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1219,6 +1914,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1219
1914
|
const origin = `${this.id}-${meth}`;
|
|
1220
1915
|
log.trace(origin);
|
|
1221
1916
|
|
|
1917
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1918
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1919
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1920
|
+
return callback(null, errorObj);
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1222
1923
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1223
1924
|
if (id === undefined || id === null || id === '') {
|
|
1224
1925
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1292,6 +1993,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1292
1993
|
const origin = `${this.id}-${meth}`;
|
|
1293
1994
|
log.trace(origin);
|
|
1294
1995
|
|
|
1996
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1997
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1998
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1999
|
+
return callback(null, errorObj);
|
|
2000
|
+
}
|
|
2001
|
+
|
|
1295
2002
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1296
2003
|
if (id === undefined || id === null || id === '') {
|
|
1297
2004
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1360,6 +2067,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1360
2067
|
const origin = `${this.id}-${meth}`;
|
|
1361
2068
|
log.trace(origin);
|
|
1362
2069
|
|
|
2070
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2071
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2072
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2073
|
+
return callback(null, errorObj);
|
|
2074
|
+
}
|
|
2075
|
+
|
|
1363
2076
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1364
2077
|
if (id === undefined || id === null || id === '') {
|
|
1365
2078
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1434,6 +2147,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1434
2147
|
const origin = `${this.id}-${meth}`;
|
|
1435
2148
|
log.trace(origin);
|
|
1436
2149
|
|
|
2150
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2151
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2152
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2153
|
+
return callback(null, errorObj);
|
|
2154
|
+
}
|
|
2155
|
+
|
|
1437
2156
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1438
2157
|
if (id === undefined || id === null || id === '') {
|
|
1439
2158
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1508,6 +2227,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1508
2227
|
const origin = `${this.id}-${meth}`;
|
|
1509
2228
|
log.trace(origin);
|
|
1510
2229
|
|
|
2230
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2231
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2232
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2233
|
+
return callback(null, errorObj);
|
|
2234
|
+
}
|
|
2235
|
+
|
|
1511
2236
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1512
2237
|
if (id === undefined || id === null || id === '') {
|
|
1513
2238
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1576,6 +2301,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1576
2301
|
const origin = `${this.id}-${meth}`;
|
|
1577
2302
|
log.trace(origin);
|
|
1578
2303
|
|
|
2304
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2305
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2306
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2307
|
+
return callback(null, errorObj);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
1579
2310
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1580
2311
|
if (id === undefined || id === null || id === '') {
|
|
1581
2312
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1646,6 +2377,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1646
2377
|
const origin = `${this.id}-${meth}`;
|
|
1647
2378
|
log.trace(origin);
|
|
1648
2379
|
|
|
2380
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2381
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2382
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2383
|
+
return callback(null, errorObj);
|
|
2384
|
+
}
|
|
2385
|
+
|
|
1649
2386
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1650
2387
|
if (id === undefined || id === null || id === '') {
|
|
1651
2388
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1715,6 +2452,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1715
2452
|
const origin = `${this.id}-${meth}`;
|
|
1716
2453
|
log.trace(origin);
|
|
1717
2454
|
|
|
2455
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2456
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2457
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2458
|
+
return callback(null, errorObj);
|
|
2459
|
+
}
|
|
2460
|
+
|
|
1718
2461
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1719
2462
|
if (id === undefined || id === null || id === '') {
|
|
1720
2463
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1789,6 +2532,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1789
2532
|
const origin = `${this.id}-${meth}`;
|
|
1790
2533
|
log.trace(origin);
|
|
1791
2534
|
|
|
2535
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2536
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2537
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2538
|
+
return callback(null, errorObj);
|
|
2539
|
+
}
|
|
2540
|
+
|
|
1792
2541
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1793
2542
|
if (id === undefined || id === null || id === '') {
|
|
1794
2543
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1865,6 +2614,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1865
2614
|
const origin = `${this.id}-${meth}`;
|
|
1866
2615
|
log.trace(origin);
|
|
1867
2616
|
|
|
2617
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2618
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2619
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2620
|
+
return callback(null, errorObj);
|
|
2621
|
+
}
|
|
2622
|
+
|
|
1868
2623
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1869
2624
|
if (id === undefined || id === null || id === '') {
|
|
1870
2625
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -1943,6 +2698,12 @@ class Docker extends AdapterBaseCl {
|
|
|
1943
2698
|
const origin = `${this.id}-${meth}`;
|
|
1944
2699
|
log.trace(origin);
|
|
1945
2700
|
|
|
2701
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2702
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2703
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2704
|
+
return callback(null, errorObj);
|
|
2705
|
+
}
|
|
2706
|
+
|
|
1946
2707
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1947
2708
|
|
|
1948
2709
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2008,6 +2769,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2008
2769
|
const origin = `${this.id}-${meth}`;
|
|
2009
2770
|
log.trace(origin);
|
|
2010
2771
|
|
|
2772
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2773
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2774
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2775
|
+
return callback(null, errorObj);
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2011
2778
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2012
2779
|
|
|
2013
2780
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2093,6 +2860,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2093
2860
|
const origin = `${this.id}-${meth}`;
|
|
2094
2861
|
log.trace(origin);
|
|
2095
2862
|
|
|
2863
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2864
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2865
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2866
|
+
return callback(null, errorObj);
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2096
2869
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2097
2870
|
|
|
2098
2871
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2161,6 +2934,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2161
2934
|
const origin = `${this.id}-${meth}`;
|
|
2162
2935
|
log.trace(origin);
|
|
2163
2936
|
|
|
2937
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2938
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2939
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2940
|
+
return callback(null, errorObj);
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2164
2943
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2165
2944
|
|
|
2166
2945
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2224,6 +3003,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2224
3003
|
const origin = `${this.id}-${meth}`;
|
|
2225
3004
|
log.trace(origin);
|
|
2226
3005
|
|
|
3006
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3007
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3008
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3009
|
+
return callback(null, errorObj);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
2227
3012
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2228
3013
|
if (name === undefined || name === null || name === '') {
|
|
2229
3014
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -2292,6 +3077,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2292
3077
|
const origin = `${this.id}-${meth}`;
|
|
2293
3078
|
log.trace(origin);
|
|
2294
3079
|
|
|
3080
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3081
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3082
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3083
|
+
return callback(null, errorObj);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
2295
3086
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2296
3087
|
if (name === undefined || name === null || name === '') {
|
|
2297
3088
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -2362,6 +3153,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2362
3153
|
const origin = `${this.id}-${meth}`;
|
|
2363
3154
|
log.trace(origin);
|
|
2364
3155
|
|
|
3156
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3157
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3158
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3159
|
+
return callback(null, errorObj);
|
|
3160
|
+
}
|
|
3161
|
+
|
|
2365
3162
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2366
3163
|
if (name === undefined || name === null || name === '') {
|
|
2367
3164
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -2437,6 +3234,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2437
3234
|
const origin = `${this.id}-${meth}`;
|
|
2438
3235
|
log.trace(origin);
|
|
2439
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
|
+
|
|
2440
3243
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2441
3244
|
if (name === undefined || name === null || name === '') {
|
|
2442
3245
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -2507,6 +3310,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2507
3310
|
const origin = `${this.id}-${meth}`;
|
|
2508
3311
|
log.trace(origin);
|
|
2509
3312
|
|
|
3313
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3314
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3315
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3316
|
+
return callback(null, errorObj);
|
|
3317
|
+
}
|
|
3318
|
+
|
|
2510
3319
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2511
3320
|
if (name === undefined || name === null || name === '') {
|
|
2512
3321
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -2577,6 +3386,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2577
3386
|
const origin = `${this.id}-${meth}`;
|
|
2578
3387
|
log.trace(origin);
|
|
2579
3388
|
|
|
3389
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3390
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3391
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3392
|
+
return callback(null, errorObj);
|
|
3393
|
+
}
|
|
3394
|
+
|
|
2580
3395
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2581
3396
|
if (term === undefined || term === null || term === '') {
|
|
2582
3397
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['term'], null, null, null);
|
|
@@ -2645,6 +3460,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2645
3460
|
const origin = `${this.id}-${meth}`;
|
|
2646
3461
|
log.trace(origin);
|
|
2647
3462
|
|
|
3463
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3464
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3465
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3466
|
+
return callback(null, errorObj);
|
|
3467
|
+
}
|
|
3468
|
+
|
|
2648
3469
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2649
3470
|
|
|
2650
3471
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2715,6 +3536,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2715
3536
|
const origin = `${this.id}-${meth}`;
|
|
2716
3537
|
log.trace(origin);
|
|
2717
3538
|
|
|
3539
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3540
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3541
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3542
|
+
return callback(null, errorObj);
|
|
3543
|
+
}
|
|
3544
|
+
|
|
2718
3545
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2719
3546
|
|
|
2720
3547
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2778,6 +3605,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2778
3605
|
const origin = `${this.id}-${meth}`;
|
|
2779
3606
|
log.trace(origin);
|
|
2780
3607
|
|
|
3608
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3609
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3610
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3611
|
+
return callback(null, errorObj);
|
|
3612
|
+
}
|
|
3613
|
+
|
|
2781
3614
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2782
3615
|
if (name === undefined || name === null || name === '') {
|
|
2783
3616
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -2846,6 +3679,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2846
3679
|
const origin = `${this.id}-${meth}`;
|
|
2847
3680
|
log.trace(origin);
|
|
2848
3681
|
|
|
3682
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3683
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3684
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3685
|
+
return callback(null, errorObj);
|
|
3686
|
+
}
|
|
3687
|
+
|
|
2849
3688
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2850
3689
|
|
|
2851
3690
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2910,6 +3749,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2910
3749
|
const origin = `${this.id}-${meth}`;
|
|
2911
3750
|
log.trace(origin);
|
|
2912
3751
|
|
|
3752
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3753
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3754
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3755
|
+
return callback(null, errorObj);
|
|
3756
|
+
}
|
|
3757
|
+
|
|
2913
3758
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2914
3759
|
|
|
2915
3760
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2973,6 +3818,12 @@ class Docker extends AdapterBaseCl {
|
|
|
2973
3818
|
const origin = `${this.id}-${meth}`;
|
|
2974
3819
|
log.trace(origin);
|
|
2975
3820
|
|
|
3821
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3822
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3823
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3824
|
+
return callback(null, errorObj);
|
|
3825
|
+
}
|
|
3826
|
+
|
|
2976
3827
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2977
3828
|
|
|
2978
3829
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3035,6 +3886,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3035
3886
|
const origin = `${this.id}-${meth}`;
|
|
3036
3887
|
log.trace(origin);
|
|
3037
3888
|
|
|
3889
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3890
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3891
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3892
|
+
return callback(null, errorObj);
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3038
3895
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3039
3896
|
|
|
3040
3897
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3079,6 +3936,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3079
3936
|
const origin = `${this.id}-${meth}`;
|
|
3080
3937
|
log.trace(origin);
|
|
3081
3938
|
|
|
3939
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3940
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3941
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3942
|
+
return callback(null, errorObj);
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3082
3945
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3083
3946
|
|
|
3084
3947
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3123,6 +3986,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3123
3986
|
const origin = `${this.id}-${meth}`;
|
|
3124
3987
|
log.trace(origin);
|
|
3125
3988
|
|
|
3989
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3990
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3991
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3992
|
+
return callback(null, errorObj);
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3126
3995
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3127
3996
|
|
|
3128
3997
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3170,6 +4039,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3170
4039
|
const origin = `${this.id}-${meth}`;
|
|
3171
4040
|
log.trace(origin);
|
|
3172
4041
|
|
|
4042
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4043
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4044
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4045
|
+
return callback(null, errorObj);
|
|
4046
|
+
}
|
|
4047
|
+
|
|
3173
4048
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3174
4049
|
|
|
3175
4050
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3235,6 +4110,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3235
4110
|
const origin = `${this.id}-${meth}`;
|
|
3236
4111
|
log.trace(origin);
|
|
3237
4112
|
|
|
4113
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4114
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4115
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4116
|
+
return callback(null, errorObj);
|
|
4117
|
+
}
|
|
4118
|
+
|
|
3238
4119
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3239
4120
|
|
|
3240
4121
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3281,6 +4162,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3281
4162
|
const origin = `${this.id}-${meth}`;
|
|
3282
4163
|
log.trace(origin);
|
|
3283
4164
|
|
|
4165
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4166
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4167
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4168
|
+
return callback(null, errorObj);
|
|
4169
|
+
}
|
|
4170
|
+
|
|
3284
4171
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3285
4172
|
if (execConfig === undefined || execConfig === null || execConfig === '') {
|
|
3286
4173
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['execConfig'], null, null, null);
|
|
@@ -3356,6 +4243,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3356
4243
|
const origin = `${this.id}-${meth}`;
|
|
3357
4244
|
log.trace(origin);
|
|
3358
4245
|
|
|
4246
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4247
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4248
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4249
|
+
return callback(null, errorObj);
|
|
4250
|
+
}
|
|
4251
|
+
|
|
3359
4252
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3360
4253
|
if (id === undefined || id === null || id === '') {
|
|
3361
4254
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -3426,6 +4319,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3426
4319
|
const origin = `${this.id}-${meth}`;
|
|
3427
4320
|
log.trace(origin);
|
|
3428
4321
|
|
|
4322
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4323
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4324
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4325
|
+
return callback(null, errorObj);
|
|
4326
|
+
}
|
|
4327
|
+
|
|
3429
4328
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3430
4329
|
if (id === undefined || id === null || id === '') {
|
|
3431
4330
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -3494,6 +4393,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3494
4393
|
const origin = `${this.id}-${meth}`;
|
|
3495
4394
|
log.trace(origin);
|
|
3496
4395
|
|
|
4396
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4397
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4398
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4399
|
+
return callback(null, errorObj);
|
|
4400
|
+
}
|
|
4401
|
+
|
|
3497
4402
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3498
4403
|
if (id === undefined || id === null || id === '') {
|
|
3499
4404
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -3562,6 +4467,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3562
4467
|
const origin = `${this.id}-${meth}`;
|
|
3563
4468
|
log.trace(origin);
|
|
3564
4469
|
|
|
4470
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4471
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4472
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4473
|
+
return callback(null, errorObj);
|
|
4474
|
+
}
|
|
4475
|
+
|
|
3565
4476
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3566
4477
|
|
|
3567
4478
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3625,6 +4536,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3625
4536
|
const origin = `${this.id}-${meth}`;
|
|
3626
4537
|
log.trace(origin);
|
|
3627
4538
|
|
|
4539
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4540
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4541
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4542
|
+
return callback(null, errorObj);
|
|
4543
|
+
}
|
|
4544
|
+
|
|
3628
4545
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3629
4546
|
if (volumeConfig === undefined || volumeConfig === null || volumeConfig === '') {
|
|
3630
4547
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['volumeConfig'], null, null, null);
|
|
@@ -3693,6 +4610,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3693
4610
|
const origin = `${this.id}-${meth}`;
|
|
3694
4611
|
log.trace(origin);
|
|
3695
4612
|
|
|
4613
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4614
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4615
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4616
|
+
return callback(null, errorObj);
|
|
4617
|
+
}
|
|
4618
|
+
|
|
3696
4619
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3697
4620
|
if (name === undefined || name === null || name === '') {
|
|
3698
4621
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -3762,6 +4685,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3762
4685
|
const origin = `${this.id}-${meth}`;
|
|
3763
4686
|
log.trace(origin);
|
|
3764
4687
|
|
|
4688
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4689
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4690
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4691
|
+
return callback(null, errorObj);
|
|
4692
|
+
}
|
|
4693
|
+
|
|
3765
4694
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3766
4695
|
if (name === undefined || name === null || name === '') {
|
|
3767
4696
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -3830,6 +4759,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3830
4759
|
const origin = `${this.id}-${meth}`;
|
|
3831
4760
|
log.trace(origin);
|
|
3832
4761
|
|
|
4762
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4763
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4764
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4765
|
+
return callback(null, errorObj);
|
|
4766
|
+
}
|
|
4767
|
+
|
|
3833
4768
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3834
4769
|
|
|
3835
4770
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3893,6 +4828,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3893
4828
|
const origin = `${this.id}-${meth}`;
|
|
3894
4829
|
log.trace(origin);
|
|
3895
4830
|
|
|
4831
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4832
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4833
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4834
|
+
return callback(null, errorObj);
|
|
4835
|
+
}
|
|
4836
|
+
|
|
3896
4837
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3897
4838
|
|
|
3898
4839
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3956,6 +4897,12 @@ class Docker extends AdapterBaseCl {
|
|
|
3956
4897
|
const origin = `${this.id}-${meth}`;
|
|
3957
4898
|
log.trace(origin);
|
|
3958
4899
|
|
|
4900
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4901
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4902
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4903
|
+
return callback(null, errorObj);
|
|
4904
|
+
}
|
|
4905
|
+
|
|
3959
4906
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3960
4907
|
if (id === undefined || id === null || id === '') {
|
|
3961
4908
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -4024,6 +4971,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4024
4971
|
const origin = `${this.id}-${meth}`;
|
|
4025
4972
|
log.trace(origin);
|
|
4026
4973
|
|
|
4974
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4975
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4976
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4977
|
+
return callback(null, errorObj);
|
|
4978
|
+
}
|
|
4979
|
+
|
|
4027
4980
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4028
4981
|
if (id === undefined || id === null || id === '') {
|
|
4029
4982
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -4092,6 +5045,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4092
5045
|
const origin = `${this.id}-${meth}`;
|
|
4093
5046
|
log.trace(origin);
|
|
4094
5047
|
|
|
5048
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5049
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5050
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5051
|
+
return callback(null, errorObj);
|
|
5052
|
+
}
|
|
5053
|
+
|
|
4095
5054
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4096
5055
|
if (networkConfig === undefined || networkConfig === null || networkConfig === '') {
|
|
4097
5056
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['networkConfig'], null, null, null);
|
|
@@ -4161,6 +5120,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4161
5120
|
const origin = `${this.id}-${meth}`;
|
|
4162
5121
|
log.trace(origin);
|
|
4163
5122
|
|
|
5123
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5124
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5125
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5126
|
+
return callback(null, errorObj);
|
|
5127
|
+
}
|
|
5128
|
+
|
|
4164
5129
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4165
5130
|
if (id === undefined || id === null || id === '') {
|
|
4166
5131
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -4235,6 +5200,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4235
5200
|
const origin = `${this.id}-${meth}`;
|
|
4236
5201
|
log.trace(origin);
|
|
4237
5202
|
|
|
5203
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5204
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5205
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5206
|
+
return callback(null, errorObj);
|
|
5207
|
+
}
|
|
5208
|
+
|
|
4238
5209
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4239
5210
|
if (id === undefined || id === null || id === '') {
|
|
4240
5211
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -4308,6 +5279,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4308
5279
|
const origin = `${this.id}-${meth}`;
|
|
4309
5280
|
log.trace(origin);
|
|
4310
5281
|
|
|
5282
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5283
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5284
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5285
|
+
return callback(null, errorObj);
|
|
5286
|
+
}
|
|
5287
|
+
|
|
4311
5288
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4312
5289
|
|
|
4313
5290
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4370,6 +5347,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4370
5347
|
const origin = `${this.id}-${meth}`;
|
|
4371
5348
|
log.trace(origin);
|
|
4372
5349
|
|
|
5350
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5351
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5352
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5353
|
+
return callback(null, errorObj);
|
|
5354
|
+
}
|
|
5355
|
+
|
|
4373
5356
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4374
5357
|
|
|
4375
5358
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4415,6 +5398,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4415
5398
|
const origin = `${this.id}-${meth}`;
|
|
4416
5399
|
log.trace(origin);
|
|
4417
5400
|
|
|
5401
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5402
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5403
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5404
|
+
return callback(null, errorObj);
|
|
5405
|
+
}
|
|
5406
|
+
|
|
4418
5407
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4419
5408
|
if (name === undefined || name === null || name === '') {
|
|
4420
5409
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -4487,6 +5476,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4487
5476
|
const origin = `${this.id}-${meth}`;
|
|
4488
5477
|
log.trace(origin);
|
|
4489
5478
|
|
|
5479
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5480
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5481
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5482
|
+
return callback(null, errorObj);
|
|
5483
|
+
}
|
|
5484
|
+
|
|
4490
5485
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4491
5486
|
if (remote === undefined || remote === null || remote === '') {
|
|
4492
5487
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['remote'], null, null, null);
|
|
@@ -4555,6 +5550,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4555
5550
|
const origin = `${this.id}-${meth}`;
|
|
4556
5551
|
log.trace(origin);
|
|
4557
5552
|
|
|
5553
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5554
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5555
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5556
|
+
return callback(null, errorObj);
|
|
5557
|
+
}
|
|
5558
|
+
|
|
4558
5559
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4559
5560
|
if (name === undefined || name === null || name === '') {
|
|
4560
5561
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -4624,6 +5625,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4624
5625
|
const origin = `${this.id}-${meth}`;
|
|
4625
5626
|
log.trace(origin);
|
|
4626
5627
|
|
|
5628
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5629
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5630
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5631
|
+
return callback(null, errorObj);
|
|
5632
|
+
}
|
|
5633
|
+
|
|
4627
5634
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4628
5635
|
if (name === undefined || name === null || name === '') {
|
|
4629
5636
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -4693,6 +5700,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4693
5700
|
const origin = `${this.id}-${meth}`;
|
|
4694
5701
|
log.trace(origin);
|
|
4695
5702
|
|
|
5703
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5704
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5705
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5706
|
+
return callback(null, errorObj);
|
|
5707
|
+
}
|
|
5708
|
+
|
|
4696
5709
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4697
5710
|
if (name === undefined || name === null || name === '') {
|
|
4698
5711
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -4761,6 +5774,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4761
5774
|
const origin = `${this.id}-${meth}`;
|
|
4762
5775
|
log.trace(origin);
|
|
4763
5776
|
|
|
5777
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5778
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5779
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5780
|
+
return callback(null, errorObj);
|
|
5781
|
+
}
|
|
5782
|
+
|
|
4764
5783
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4765
5784
|
if (name === undefined || name === null || name === '') {
|
|
4766
5785
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -4830,6 +5849,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4830
5849
|
const origin = `${this.id}-${meth}`;
|
|
4831
5850
|
log.trace(origin);
|
|
4832
5851
|
|
|
5852
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5853
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5854
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5855
|
+
return callback(null, errorObj);
|
|
5856
|
+
}
|
|
5857
|
+
|
|
4833
5858
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4834
5859
|
if (name === undefined || name === null || name === '') {
|
|
4835
5860
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -4898,6 +5923,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4898
5923
|
const origin = `${this.id}-${meth}`;
|
|
4899
5924
|
log.trace(origin);
|
|
4900
5925
|
|
|
5926
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5927
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5928
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5929
|
+
return callback(null, errorObj);
|
|
5930
|
+
}
|
|
5931
|
+
|
|
4901
5932
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4902
5933
|
if (name === undefined || name === null || name === '') {
|
|
4903
5934
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -4967,6 +5998,12 @@ class Docker extends AdapterBaseCl {
|
|
|
4967
5998
|
const origin = `${this.id}-${meth}`;
|
|
4968
5999
|
log.trace(origin);
|
|
4969
6000
|
|
|
6001
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6002
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6003
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6004
|
+
return callback(null, errorObj);
|
|
6005
|
+
}
|
|
6006
|
+
|
|
4970
6007
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4971
6008
|
if (name === undefined || name === null || name === '') {
|
|
4972
6009
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['name'], null, null, null);
|
|
@@ -5035,6 +6072,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5035
6072
|
const origin = `${this.id}-${meth}`;
|
|
5036
6073
|
log.trace(origin);
|
|
5037
6074
|
|
|
6075
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6076
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6077
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6078
|
+
return callback(null, errorObj);
|
|
6079
|
+
}
|
|
6080
|
+
|
|
5038
6081
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5039
6082
|
|
|
5040
6083
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5098,6 +6141,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5098
6141
|
const origin = `${this.id}-${meth}`;
|
|
5099
6142
|
log.trace(origin);
|
|
5100
6143
|
|
|
6144
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6145
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6146
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6147
|
+
return callback(null, errorObj);
|
|
6148
|
+
}
|
|
6149
|
+
|
|
5101
6150
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5102
6151
|
if (id === undefined || id === null || id === '') {
|
|
5103
6152
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -5167,6 +6216,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5167
6216
|
const origin = `${this.id}-${meth}`;
|
|
5168
6217
|
log.trace(origin);
|
|
5169
6218
|
|
|
6219
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6220
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6221
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6222
|
+
return callback(null, errorObj);
|
|
6223
|
+
}
|
|
6224
|
+
|
|
5170
6225
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5171
6226
|
if (id === undefined || id === null || id === '') {
|
|
5172
6227
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -5237,6 +6292,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5237
6292
|
const origin = `${this.id}-${meth}`;
|
|
5238
6293
|
log.trace(origin);
|
|
5239
6294
|
|
|
6295
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6296
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6297
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6298
|
+
return callback(null, errorObj);
|
|
6299
|
+
}
|
|
6300
|
+
|
|
5240
6301
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5241
6302
|
if (id === undefined || id === null || id === '') {
|
|
5242
6303
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -5309,6 +6370,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5309
6370
|
const origin = `${this.id}-${meth}`;
|
|
5310
6371
|
log.trace(origin);
|
|
5311
6372
|
|
|
6373
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6374
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6375
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6376
|
+
return callback(null, errorObj);
|
|
6377
|
+
}
|
|
6378
|
+
|
|
5312
6379
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5313
6380
|
|
|
5314
6381
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5354,6 +6421,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5354
6421
|
const origin = `${this.id}-${meth}`;
|
|
5355
6422
|
log.trace(origin);
|
|
5356
6423
|
|
|
6424
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6425
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6426
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6427
|
+
return callback(null, errorObj);
|
|
6428
|
+
}
|
|
6429
|
+
|
|
5357
6430
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5358
6431
|
if (body === undefined || body === null || body === '') {
|
|
5359
6432
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['body'], null, null, null);
|
|
@@ -5423,6 +6496,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5423
6496
|
const origin = `${this.id}-${meth}`;
|
|
5424
6497
|
log.trace(origin);
|
|
5425
6498
|
|
|
6499
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6500
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6501
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6502
|
+
return callback(null, errorObj);
|
|
6503
|
+
}
|
|
6504
|
+
|
|
5426
6505
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5427
6506
|
if (body === undefined || body === null || body === '') {
|
|
5428
6507
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['body'], null, null, null);
|
|
@@ -5491,6 +6570,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5491
6570
|
const origin = `${this.id}-${meth}`;
|
|
5492
6571
|
log.trace(origin);
|
|
5493
6572
|
|
|
6573
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6574
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6575
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6576
|
+
return callback(null, errorObj);
|
|
6577
|
+
}
|
|
6578
|
+
|
|
5494
6579
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5495
6580
|
|
|
5496
6581
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5558,6 +6643,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5558
6643
|
const origin = `${this.id}-${meth}`;
|
|
5559
6644
|
log.trace(origin);
|
|
5560
6645
|
|
|
6646
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6647
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6648
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6649
|
+
return callback(null, errorObj);
|
|
6650
|
+
}
|
|
6651
|
+
|
|
5561
6652
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5562
6653
|
if (body === undefined || body === null || body === '') {
|
|
5563
6654
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['body'], null, null, null);
|
|
@@ -5630,6 +6721,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5630
6721
|
const origin = `${this.id}-${meth}`;
|
|
5631
6722
|
log.trace(origin);
|
|
5632
6723
|
|
|
6724
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6725
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6726
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6727
|
+
return callback(null, errorObj);
|
|
6728
|
+
}
|
|
6729
|
+
|
|
5633
6730
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5634
6731
|
|
|
5635
6732
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5675,6 +6772,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5675
6772
|
const origin = `${this.id}-${meth}`;
|
|
5676
6773
|
log.trace(origin);
|
|
5677
6774
|
|
|
6775
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6776
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6777
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6778
|
+
return callback(null, errorObj);
|
|
6779
|
+
}
|
|
6780
|
+
|
|
5678
6781
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5679
6782
|
if (body === undefined || body === null || body === '') {
|
|
5680
6783
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['body'], null, null, null);
|
|
@@ -5744,6 +6847,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5744
6847
|
const origin = `${this.id}-${meth}`;
|
|
5745
6848
|
log.trace(origin);
|
|
5746
6849
|
|
|
6850
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6851
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6852
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6853
|
+
return callback(null, errorObj);
|
|
6854
|
+
}
|
|
6855
|
+
|
|
5747
6856
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5748
6857
|
|
|
5749
6858
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5808,6 +6917,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5808
6917
|
const origin = `${this.id}-${meth}`;
|
|
5809
6918
|
log.trace(origin);
|
|
5810
6919
|
|
|
6920
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6921
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6922
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6923
|
+
return callback(null, errorObj);
|
|
6924
|
+
}
|
|
6925
|
+
|
|
5811
6926
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5812
6927
|
if (body === undefined || body === null || body === '') {
|
|
5813
6928
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['body'], null, null, null);
|
|
@@ -5876,6 +6991,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5876
6991
|
const origin = `${this.id}-${meth}`;
|
|
5877
6992
|
log.trace(origin);
|
|
5878
6993
|
|
|
6994
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6995
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6996
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6997
|
+
return callback(null, errorObj);
|
|
6998
|
+
}
|
|
6999
|
+
|
|
5879
7000
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5880
7001
|
if (id === undefined || id === null || id === '') {
|
|
5881
7002
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -5944,6 +7065,12 @@ class Docker extends AdapterBaseCl {
|
|
|
5944
7065
|
const origin = `${this.id}-${meth}`;
|
|
5945
7066
|
log.trace(origin);
|
|
5946
7067
|
|
|
7068
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7069
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7070
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7071
|
+
return callback(null, errorObj);
|
|
7072
|
+
}
|
|
7073
|
+
|
|
5947
7074
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5948
7075
|
if (id === undefined || id === null || id === '') {
|
|
5949
7076
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -6016,6 +7143,12 @@ class Docker extends AdapterBaseCl {
|
|
|
6016
7143
|
const origin = `${this.id}-${meth}`;
|
|
6017
7144
|
log.trace(origin);
|
|
6018
7145
|
|
|
7146
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7147
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7148
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7149
|
+
return callback(null, errorObj);
|
|
7150
|
+
}
|
|
7151
|
+
|
|
6019
7152
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6020
7153
|
if (id === undefined || id === null || id === '') {
|
|
6021
7154
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -6101,6 +7234,12 @@ class Docker extends AdapterBaseCl {
|
|
|
6101
7234
|
const origin = `${this.id}-${meth}`;
|
|
6102
7235
|
log.trace(origin);
|
|
6103
7236
|
|
|
7237
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7238
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7239
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7240
|
+
return callback(null, errorObj);
|
|
7241
|
+
}
|
|
7242
|
+
|
|
6104
7243
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6105
7244
|
if (id === undefined || id === null || id === '') {
|
|
6106
7245
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -6169,6 +7308,12 @@ class Docker extends AdapterBaseCl {
|
|
|
6169
7308
|
const origin = `${this.id}-${meth}`;
|
|
6170
7309
|
log.trace(origin);
|
|
6171
7310
|
|
|
7311
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7312
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7313
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7314
|
+
return callback(null, errorObj);
|
|
7315
|
+
}
|
|
7316
|
+
|
|
6172
7317
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6173
7318
|
|
|
6174
7319
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6232,6 +7377,12 @@ class Docker extends AdapterBaseCl {
|
|
|
6232
7377
|
const origin = `${this.id}-${meth}`;
|
|
6233
7378
|
log.trace(origin);
|
|
6234
7379
|
|
|
7380
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7381
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7382
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7383
|
+
return callback(null, errorObj);
|
|
7384
|
+
}
|
|
7385
|
+
|
|
6235
7386
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6236
7387
|
if (id === undefined || id === null || id === '') {
|
|
6237
7388
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -6300,6 +7451,12 @@ class Docker extends AdapterBaseCl {
|
|
|
6300
7451
|
const origin = `${this.id}-${meth}`;
|
|
6301
7452
|
log.trace(origin);
|
|
6302
7453
|
|
|
7454
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7455
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7456
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7457
|
+
return callback(null, errorObj);
|
|
7458
|
+
}
|
|
7459
|
+
|
|
6303
7460
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6304
7461
|
|
|
6305
7462
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6363,6 +7520,12 @@ class Docker extends AdapterBaseCl {
|
|
|
6363
7520
|
const origin = `${this.id}-${meth}`;
|
|
6364
7521
|
log.trace(origin);
|
|
6365
7522
|
|
|
7523
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7524
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7525
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7526
|
+
return callback(null, errorObj);
|
|
7527
|
+
}
|
|
7528
|
+
|
|
6366
7529
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6367
7530
|
|
|
6368
7531
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6426,6 +7589,12 @@ class Docker extends AdapterBaseCl {
|
|
|
6426
7589
|
const origin = `${this.id}-${meth}`;
|
|
6427
7590
|
log.trace(origin);
|
|
6428
7591
|
|
|
7592
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7593
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7594
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7595
|
+
return callback(null, errorObj);
|
|
7596
|
+
}
|
|
7597
|
+
|
|
6429
7598
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6430
7599
|
if (id === undefined || id === null || id === '') {
|
|
6431
7600
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
@@ -6494,6 +7663,12 @@ class Docker extends AdapterBaseCl {
|
|
|
6494
7663
|
const origin = `${this.id}-${meth}`;
|
|
6495
7664
|
log.trace(origin);
|
|
6496
7665
|
|
|
7666
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7667
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7668
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7669
|
+
return callback(null, errorObj);
|
|
7670
|
+
}
|
|
7671
|
+
|
|
6497
7672
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6498
7673
|
if (id === undefined || id === null || id === '') {
|
|
6499
7674
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|