@xen-orchestra/rest-api 0.14.0 → 0.16.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/dist/abstract-classes/base-controller.mjs +4 -2
- package/dist/abstract-classes/xapi-xo-controller.mjs +2 -6
- package/dist/alarms/alarm.service.mjs +2 -1
- package/dist/backup-jobs/backup-job.controller.mjs +284 -0
- package/dist/backup-jobs/backup-job.service.mjs +25 -0
- package/dist/backup-jobs/backup-job.type.mjs +1 -0
- package/dist/backup-logs/backup-log.controller.mjs +75 -0
- package/dist/backup-logs/backup-log.service.mjs +5 -0
- package/dist/groups/group.controller.mjs +37 -1
- package/dist/helpers/error.helper.mjs +10 -0
- package/dist/hosts/host.controller.mjs +24 -4
- package/dist/hosts/host.service.mjs +6 -7
- package/dist/hosts/host.type.mjs +1 -0
- package/dist/index.mjs +4 -0
- package/dist/ioc/ioc.mjs +36 -0
- package/dist/middlewares/generic-error-handler.middleware.mjs +5 -1
- package/dist/open-api/common/response.common.mjs +8 -0
- package/dist/open-api/oa-examples/backup-job.oa-example.mjs +128 -0
- package/dist/open-api/oa-examples/backup-log.oa-example.mjs +93 -0
- package/dist/open-api/oa-examples/host.oa-example.mjs +30 -0
- package/dist/open-api/oa-examples/pool.oa-example.mjs +30 -0
- package/dist/open-api/oa-examples/proxy.oa-example.mjs +25 -0
- package/dist/open-api/oa-examples/restore-log.oa-example.mjs +53 -0
- package/dist/open-api/oa-examples/task.oa-example.mjs +46 -0
- package/dist/open-api/oa-examples/user.oa-example.mjs +32 -0
- package/dist/open-api/oa-examples/vdi.oa-example.mjs +3 -0
- package/dist/open-api/routes/routes.js +2079 -490
- package/dist/pools/pool.controller.mjs +16 -1
- package/dist/pools/pool.service.mjs +18 -8
- package/dist/proxies/proxy.controller.mjs +61 -0
- package/dist/rest-api/rest-api.mjs +6 -2
- package/dist/restore-logs/restore-log.controller.mjs +144 -0
- package/dist/srs/sr.controller.mjs +39 -2
- package/dist/tasks/task.controller.mjs +167 -0
- package/dist/tasks/task.service.mjs +24 -0
- package/dist/users/user.controller.mjs +91 -12
- package/dist/users/user.service.mjs +21 -0
- package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +46 -4
- package/dist/vdis/vdi.controller.mjs +43 -4
- package/dist/vdis/vdi.service.mjs +21 -0
- package/dist/vm-snapshots/vm-snapshot.controller.mjs +72 -3
- package/dist/vm-templates/vm-template.controller.mjs +43 -2
- package/dist/vms/vm.controller.mjs +135 -5
- package/dist/vms/vm.service.mjs +18 -0
- package/dist/xoa/xoa.service.mjs +14 -4
- package/open-api/spec/swagger.json +11733 -6660
- package/package.json +6 -5
- package/tsconfig.json +1 -0
- package/tsoa.json +27 -0
|
@@ -20,6 +20,8 @@ import { VbdController } from './../../vbds/vbd.controller.mjs';
|
|
|
20
20
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
21
21
|
import { UserController } from './../../users/user.controller.mjs';
|
|
22
22
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
23
|
+
import { TaskController } from './../../tasks/task.controller.mjs';
|
|
24
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
23
25
|
import { SrController } from './../../srs/sr.controller.mjs';
|
|
24
26
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
25
27
|
import { SmController } from './../../sms/sm.controller.mjs';
|
|
@@ -28,6 +30,12 @@ import { ServerController } from './../../servers/server.controller.mjs';
|
|
|
28
30
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
29
31
|
import { ScheduleController } from './../../schedules/schedule.controller.mjs';
|
|
30
32
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
33
|
+
import { RestoreLogController } from './../../restore-logs/restore-log.controller.mjs';
|
|
34
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
35
|
+
import { DeprecatedRestoreController } from './../../restore-logs/restore-log.controller.mjs';
|
|
36
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
37
|
+
import { ProxyController } from './../../proxies/proxy.controller.mjs';
|
|
38
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
31
39
|
import { PoolController } from './../../pools/pool.controller.mjs';
|
|
32
40
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
33
41
|
import { PifController } from './../../pifs/pif.controller.mjs';
|
|
@@ -46,6 +54,12 @@ import { GroupController } from './../../groups/group.controller.mjs';
|
|
|
46
54
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
47
55
|
import { BackupRepositoryController } from './../../backup-repositories/backup-repositories.controller.mjs';
|
|
48
56
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
57
|
+
import { BackupLogController } from './../../backup-logs/backup-log.controller.mjs';
|
|
58
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
59
|
+
import { BackupJobController } from './../../backup-jobs/backup-job.controller.mjs';
|
|
60
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
61
|
+
import { DeprecatedBackupController } from './../../backup-jobs/backup-job.controller.mjs';
|
|
62
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
49
63
|
import { AlarmController } from './../../alarms/alarm.controller.mjs';
|
|
50
64
|
import { expressAuthentication } from './../../middlewares/authentication.middleware.mjs';
|
|
51
65
|
// @ts-ignore - no great way to install types from subpackage
|
|
@@ -203,6 +217,81 @@ const models = {
|
|
|
203
217
|
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoVdi___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
204
218
|
},
|
|
205
219
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
220
|
+
"XoBackupJobGeneralSettings": {
|
|
221
|
+
"dataType": "refAlias",
|
|
222
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "hideSuccessfulItems": { "dataType": "boolean" }, "reportWhen": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["always"] }, { "dataType": "enum", "enums": ["error"] }, { "dataType": "enum", "enums": ["failure"] }, { "dataType": "enum", "enums": ["never"] }] }, "backupReportTpl": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["compactMjml"] }, { "dataType": "enum", "enums": ["mjml"] }] } }, "additionalProperties": { "dataType": "any" }, "validators": {} },
|
|
223
|
+
},
|
|
224
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
225
|
+
"Record_string.unknown_": {
|
|
226
|
+
"dataType": "refAlias",
|
|
227
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "dataType": "any" }, "validators": {} },
|
|
228
|
+
},
|
|
229
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
230
|
+
"XoVmBackupJobGeneralSettings": {
|
|
231
|
+
"dataType": "refAlias",
|
|
232
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "XoBackupJobGeneralSettings" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "timeout": { "dataType": "double" }, "offlineBackup": { "dataType": "boolean" }, "mergeBackupsSynchronously": { "dataType": "boolean" }, "timezone": { "dataType": "string" }, "preferNbd": { "dataType": "boolean" }, "nRetriesVmBackupFailures": { "dataType": "double" }, "nbdConcurrency": { "dataType": "double" }, "maxExportRate": { "dataType": "double" }, "longTermRetention": { "dataType": "nestedObjectLiteral", "nestedProperties": { "yearly": { "dataType": "nestedObjectLiteral", "nestedProperties": { "settings": { "ref": "Record_string.unknown_", "required": true }, "retention": { "dataType": "double", "required": true } } }, "monthly": { "dataType": "nestedObjectLiteral", "nestedProperties": { "settings": { "ref": "Record_string.unknown_", "required": true }, "retention": { "dataType": "double", "required": true } } }, "weekly": { "dataType": "nestedObjectLiteral", "nestedProperties": { "settings": { "ref": "Record_string.unknown_", "required": true }, "retention": { "dataType": "double", "required": true } } }, "daily": { "dataType": "nestedObjectLiteral", "nestedProperties": { "settings": { "ref": "Record_string.unknown_", "required": true }, "retention": { "dataType": "double", "required": true } } } } }, "concurrency": { "dataType": "double" }, "cbtDestroySnapshotData": { "dataType": "boolean" } }, "additionalProperties": { "dataType": "any" } }], "validators": {} },
|
|
233
|
+
},
|
|
234
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
235
|
+
"Unbrand_XoVmBackupJobScheduleSettings_": {
|
|
236
|
+
"dataType": "refAlias",
|
|
237
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
238
|
+
},
|
|
239
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
240
|
+
"Partial_UnbrandXoVmBackupJob_": {
|
|
241
|
+
"dataType": "refAlias",
|
|
242
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["backup"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "compression": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [""] }, { "dataType": "enum", "enums": ["native"] }, { "dataType": "enum", "enums": ["zstd"] }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }, { "dataType": "undefined" }] }, "remotes": { "dataType": "any" }, "vms": { "dataType": "any" }, "srs": { "dataType": "any" }, "settings": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "ref": "XoVmBackupJobGeneralSettings", "required": true } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "Unbrand_XoVmBackupJobScheduleSettings_" }, { "dataType": "undefined" }] } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
243
|
+
},
|
|
244
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
245
|
+
"WithHref_Partial_UnbrandXoVmBackupJob__": {
|
|
246
|
+
"dataType": "refAlias",
|
|
247
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandXoVmBackupJob_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
248
|
+
},
|
|
249
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
250
|
+
"SendObjects_Partial_UnbrandXoVmBackupJob__": {
|
|
251
|
+
"dataType": "refAlias",
|
|
252
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandXoVmBackupJob__" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
253
|
+
},
|
|
254
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
255
|
+
"Partial_Unbrand_XoMessage__": {
|
|
256
|
+
"dataType": "refAlias",
|
|
257
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$object": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
258
|
+
},
|
|
259
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
260
|
+
"WithHref_Partial_Unbrand_XoMessage___": {
|
|
261
|
+
"dataType": "refAlias",
|
|
262
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoMessage__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
263
|
+
},
|
|
264
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
265
|
+
"SendObjects_Partial_Unbrand_XoMessage___": {
|
|
266
|
+
"dataType": "refAlias",
|
|
267
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoMessage___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
268
|
+
},
|
|
269
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
270
|
+
"Branded_task_": {
|
|
271
|
+
"dataType": "refAlias",
|
|
272
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["task"], "required": true } } }], "validators": {} },
|
|
273
|
+
},
|
|
274
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
275
|
+
"XoTask": {
|
|
276
|
+
"dataType": "refAlias",
|
|
277
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "warnings": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "message": { "dataType": "string", "required": true }, "data": { "dataType": "any", "required": true } } } }, "updatedAt": { "dataType": "double" }, "tasks": { "dataType": "array", "array": { "dataType": "refAlias", "ref": "XoTask" } }, "status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["failure"] }, { "dataType": "enum", "enums": ["interrupted"] }, { "dataType": "enum", "enums": ["pending"] }, { "dataType": "enum", "enums": ["success"] }], "required": true }, "start": { "dataType": "double", "required": true }, "result": { "ref": "Record_string.unknown_", "required": true }, "properties": { "dataType": "nestedObjectLiteral", "nestedProperties": { "userId": { "dataType": "string" }, "type": { "dataType": "string" }, "params": { "ref": "Record_string.unknown_" }, "objectId": { "dataType": "string" }, "name": { "dataType": "string" }, "method": { "dataType": "string" } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "dataType": "any" }, { "dataType": "undefined" }] }, "required": true }, "infos": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "message": { "dataType": "string", "required": true }, "data": { "dataType": "any", "required": true } } } }, "id": { "ref": "Branded_task_", "required": true }, "end": { "dataType": "double" }, "abortionRequestedAt": { "dataType": "double" } }, "validators": {} },
|
|
278
|
+
},
|
|
279
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
280
|
+
"Partial_Unbrand_XoTask__": {
|
|
281
|
+
"dataType": "refAlias",
|
|
282
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "abortionRequestedAt": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "end": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "infos": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "message": { "dataType": "string", "required": true }, "data": { "dataType": "any", "required": true } } } }, { "dataType": "undefined" }] }, "properties": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "userId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "params": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "objectId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "additionalProperties": { "dataType": "any" } }, { "dataType": "undefined" }] }, "result": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "start": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["failure"] }, { "dataType": "enum", "enums": ["interrupted"] }, { "dataType": "enum", "enums": ["pending"] }, { "dataType": "enum", "enums": ["success"] }, { "dataType": "undefined" }] }, "tasks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "refAlias", "ref": "XoTask" } }, { "dataType": "undefined" }] }, "updatedAt": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "warnings": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "message": { "dataType": "string", "required": true }, "data": { "dataType": "any", "required": true } } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
283
|
+
},
|
|
284
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
285
|
+
"WithHref_Partial_Unbrand_XoTask___": {
|
|
286
|
+
"dataType": "refAlias",
|
|
287
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoTask__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
288
|
+
},
|
|
289
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
290
|
+
"SendObjects_Partial_Unbrand_XoTask___": {
|
|
291
|
+
"dataType": "refAlias",
|
|
292
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoTask___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
293
|
+
},
|
|
294
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
206
295
|
"Partial_Unbrand_XoVmTemplate__": {
|
|
207
296
|
"dataType": "refAlias",
|
|
208
297
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "CPUs": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } } }, { "dataType": "undefined" }] }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VIFs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VTPMs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "addresses": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "bios_strings": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "blockedOperations": { "dataType": "union", "subSchemas": [{ "ref": "Record_VM_OPERATIONS.string_" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VM_OPERATIONS_" }, { "dataType": "undefined" }] }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "isNestedVirtEnabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "hasVendorDevice": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "high_availability": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "isFirmwareSupported": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "memory": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "static": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "size": { "dataType": "double", "required": true }, "dynamic": { "dataType": "array", "array": { "dataType": "double" }, "required": true } } }, { "dataType": "undefined" }] }, "mainIpAddress": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "managementAgentDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "needsVtpm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "nicType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "notes": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "os_version": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "other": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "power_state": { "dataType": "union", "subSchemas": [{ "ref": "VM_POWER_STATE" }, { "dataType": "undefined" }] }, "pvDriversDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversUpToDate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversVersion": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "resourceSet": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "secureBoot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "startDelay": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "virtualizationMode": { "dataType": "union", "subSchemas": [{ "ref": "DOMAIN_TYPE" }, { "dataType": "undefined" }] }, "xenStoreData": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "isDefaultTemplate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template_info": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "install_repository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "install_methods": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "SR": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "bootable": { "dataType": "enum", "enums": [true], "required": true } } }, "required": true }, "arch": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -384,6 +473,36 @@ const models = {
|
|
|
384
473
|
"additionalProperties": false,
|
|
385
474
|
},
|
|
386
475
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
476
|
+
"Partial_Unbrand_XoGroup__": {
|
|
477
|
+
"dataType": "refAlias",
|
|
478
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "provider": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "providerGroupId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "users": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
479
|
+
},
|
|
480
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
481
|
+
"WithHref_Partial_Unbrand_XoGroup___": {
|
|
482
|
+
"dataType": "refAlias",
|
|
483
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoGroup__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
484
|
+
},
|
|
485
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
486
|
+
"SendObjects_Partial_Unbrand_XoGroup___": {
|
|
487
|
+
"dataType": "refAlias",
|
|
488
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoGroup___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
489
|
+
},
|
|
490
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
491
|
+
"Record_string._timestamp-number__": {
|
|
492
|
+
"dataType": "refAlias",
|
|
493
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
494
|
+
},
|
|
495
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
496
|
+
"Unbrand_XoAuthenticationToken_": {
|
|
497
|
+
"dataType": "refAlias",
|
|
498
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "client": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true } }, "additionalProperties": { "dataType": "any" } }, { "dataType": "undefined" }] }, "created_at": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "user_id": { "dataType": "string", "required": true }, "expiration": { "dataType": "double", "required": true }, "last_uses": { "dataType": "union", "subSchemas": [{ "ref": "Record_string._timestamp-number__" }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true } }, "validators": {} },
|
|
499
|
+
},
|
|
500
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
501
|
+
"Unbrand_XoTask_": {
|
|
502
|
+
"dataType": "refAlias",
|
|
503
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "abortionRequestedAt": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "end": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "infos": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "message": { "dataType": "string", "required": true }, "data": { "dataType": "any", "required": true } } } }, { "dataType": "undefined" }] }, "properties": { "dataType": "nestedObjectLiteral", "nestedProperties": { "userId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "params": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "objectId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "additionalProperties": { "dataType": "any" }, "required": true }, "result": { "ref": "Record_string.unknown_", "required": true }, "start": { "dataType": "double", "required": true }, "status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["failure"] }, { "dataType": "enum", "enums": ["interrupted"] }, { "dataType": "enum", "enums": ["pending"] }, { "dataType": "enum", "enums": ["success"] }], "required": true }, "tasks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "refAlias", "ref": "XoTask" } }, { "dataType": "undefined" }] }, "updatedAt": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "warnings": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "message": { "dataType": "string", "required": true }, "data": { "dataType": "any", "required": true } } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
504
|
+
},
|
|
505
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
387
506
|
"Record_string.STORAGE_OPERATIONS_": {
|
|
388
507
|
"dataType": "refAlias",
|
|
389
508
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
@@ -434,11 +553,6 @@ const models = {
|
|
|
434
553
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "SM_type": { "dataType": "string", "required": true }, "vendor": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "name_description": { "dataType": "string", "required": true }, "configuration": { "ref": "Record_string.string_", "required": true }, "features": { "ref": "Record_string.number_", "required": true }, "driver_filename": { "dataType": "string", "required": true }, "required_cluster_stack": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "supported_image_formats": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["SM"], "required": true } }, "validators": {} },
|
|
435
554
|
},
|
|
436
555
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
437
|
-
"Record_string.unknown_": {
|
|
438
|
-
"dataType": "refAlias",
|
|
439
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
440
|
-
},
|
|
441
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
442
556
|
"Partial_Unbrand_XoServer__": {
|
|
443
557
|
"dataType": "refAlias",
|
|
444
558
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "allowUnauthorized": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "host": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "httpProxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "master": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "poolNameDescription": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "poolNameLabel": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "readOnly": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["connected"] }, { "dataType": "enum", "enums": ["disconnected"] }, { "dataType": "enum", "enums": ["connecting"] }, { "dataType": "undefined" }] }, "username": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -493,6 +607,46 @@ const models = {
|
|
|
493
607
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cron": { "dataType": "string", "required": true }, "enabled": { "dataType": "boolean", "required": true }, "id": { "dataType": "string", "required": true }, "jobId": { "dataType": "string", "required": true }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "timezone": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
494
608
|
},
|
|
495
609
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
610
|
+
"Partial_Unbrand_XoRestoreLog__": {
|
|
611
|
+
"dataType": "refAlias",
|
|
612
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "message": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["restore"] }, { "dataType": "undefined" }] } }, "additionalProperties": { "dataType": "any" }, "validators": {} },
|
|
613
|
+
},
|
|
614
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
615
|
+
"WithHref_Partial_Unbrand_XoRestoreLog___": {
|
|
616
|
+
"dataType": "refAlias",
|
|
617
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoRestoreLog__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
618
|
+
},
|
|
619
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
620
|
+
"SendObjects_Partial_Unbrand_XoRestoreLog___": {
|
|
621
|
+
"dataType": "refAlias",
|
|
622
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoRestoreLog___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
623
|
+
},
|
|
624
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
625
|
+
"Unbrand_XoRestoreLog_": {
|
|
626
|
+
"dataType": "refAlias",
|
|
627
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "message": { "dataType": "enum", "enums": ["restore"], "required": true } }, "additionalProperties": { "dataType": "any" }, "validators": {} },
|
|
628
|
+
},
|
|
629
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
630
|
+
"Partial_Unbrand_XoProxy__": {
|
|
631
|
+
"dataType": "refAlias",
|
|
632
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "address": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vmUuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "address": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vmUuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "address": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vmUuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }], "validators": {} },
|
|
633
|
+
},
|
|
634
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
635
|
+
"WithHref_Partial_Unbrand_XoProxy___": {
|
|
636
|
+
"dataType": "refAlias",
|
|
637
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoProxy__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
638
|
+
},
|
|
639
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
640
|
+
"SendObjects_Partial_Unbrand_XoProxy___": {
|
|
641
|
+
"dataType": "refAlias",
|
|
642
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoProxy___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
643
|
+
},
|
|
644
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
645
|
+
"Unbrand_XoProxy_": {
|
|
646
|
+
"dataType": "refAlias",
|
|
647
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "url": { "dataType": "string", "required": true }, "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "string", "required": true }, "address": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vmUuid": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "url": { "dataType": "string", "required": true }, "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "string", "required": true }, "address": { "dataType": "string", "required": true }, "vmUuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "url": { "dataType": "string", "required": true }, "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "string", "required": true }, "address": { "dataType": "string", "required": true }, "vmUuid": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
648
|
+
},
|
|
649
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
496
650
|
"Record_string.POOL_ALLOWED_OPERATIONS_": {
|
|
497
651
|
"dataType": "refAlias",
|
|
498
652
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
@@ -572,7 +726,7 @@ const models = {
|
|
|
572
726
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
573
727
|
"PoolDashboard": {
|
|
574
728
|
"dataType": "refAlias",
|
|
575
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cpuProvisioning": { "dataType": "nestedObjectLiteral", "nestedProperties": { "percent": { "dataType": "double", "required": true }, "assigned": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true } }, "required": true }, "alarms": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "srs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "topFiveUsage": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "double", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "percent": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true } }, "required": true }, "vms": { "dataType": "nestedObjectLiteral", "nestedProperties": { "topFiveUsage": { "dataType": "nestedObjectLiteral", "nestedProperties": { "isExpired": { "dataType": "boolean" }, "ram": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "memoryFree": { "dataType": "double", "required": true }, "memory": { "dataType": "double", "required": true }, "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true }, "cpu": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true } } }, "status": { "dataType": "nestedObjectLiteral", "nestedProperties": { "suspended": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "paused": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true } }, "required": true }, "hosts": { "dataType": "nestedObjectLiteral", "nestedProperties": { "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "missingPatches": { "dataType": "
|
|
729
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cpuProvisioning": { "dataType": "nestedObjectLiteral", "nestedProperties": { "percent": { "dataType": "double", "required": true }, "assigned": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true } }, "required": true }, "alarms": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "srs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "topFiveUsage": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "double", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "percent": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true } }, "required": true }, "vms": { "dataType": "nestedObjectLiteral", "nestedProperties": { "topFiveUsage": { "dataType": "nestedObjectLiteral", "nestedProperties": { "isExpired": { "dataType": "boolean" }, "ram": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "memoryFree": { "dataType": "double", "required": true }, "memory": { "dataType": "double", "required": true }, "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true }, "cpu": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true } } }, "status": { "dataType": "nestedObjectLiteral", "nestedProperties": { "suspended": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "paused": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true } }, "required": true }, "hosts": { "dataType": "nestedObjectLiteral", "nestedProperties": { "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "refAlias", "ref": "XcpPatches" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "XsPatches" } }], "required": true }, "hasAuthorization": { "dataType": "enum", "enums": [true], "required": true } } }], "required": true }, "topFiveUsage": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cpu": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true }, "ram": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "percent": { "dataType": "double", "required": true }, "usage": { "dataType": "double", "required": true }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true } }, "required": true }, "status": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "disabled": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true } }, "required": true } }, "validators": {} },
|
|
576
730
|
},
|
|
577
731
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
578
732
|
"Branded_PIF_": {
|
|
@@ -755,21 +909,6 @@ const models = {
|
|
|
755
909
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$PBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$PCIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$PGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$PIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "PCIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "PGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "PIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "CPUs": { "ref": "Record_string.string_", "required": true }, "address": { "dataType": "string", "required": true }, "agentStartTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "bios_string": { "ref": "Record_string.string_", "required": true }, "build": { "dataType": "string", "required": true }, "certificates": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "notAfter": { "dataType": "double", "required": true }, "fingerprint": { "dataType": "string", "required": true } } } }, { "dataType": "undefined" }] }, "chipset_info": { "dataType": "nestedObjectLiteral", "nestedProperties": { "iommu": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "required": true }, "controlDomain": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "cpus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "sockets": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cores": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } }, "required": true }, "current_operations": { "ref": "Record_string.HOST_ALLOWED_OPERATIONS_", "required": true }, "enabled": { "dataType": "boolean", "required": true }, "hostname": { "dataType": "string", "required": true }, "hvmCapable": { "dataType": "boolean", "required": true }, "id": { "dataType": "string", "required": true }, "iscsiIqn": { "dataType": "string", "required": true }, "license_expiry": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "license_params": { "ref": "Record_string.string_", "required": true }, "license_server": { "ref": "Record_string.string_", "required": true }, "logging": { "ref": "Record_string.string_", "required": true }, "memory": { "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "double", "required": true }, "total": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true } }, "required": true }, "multipathing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "otherConfig": { "ref": "Record_string.string_", "required": true }, "patches": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "power_state": { "ref": "HOST_POWER_STATE", "required": true }, "powerOnMode": { "dataType": "string", "required": true }, "productBrand": { "dataType": "string", "required": true }, "rebootRequired": { "dataType": "boolean", "required": true }, "residentVms": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "supplementalPacks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "vdi": { "ref": "Branded_VDI_", "required": true }, "version": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "name": { "dataType": "string", "required": true }, "hosts": { "dataType": "array", "array": { "dataType": "refAlias", "ref": "Branded_host_" }, "required": true }, "guidance": { "dataType": "string", "required": true }, "description": { "dataType": "string", "required": true }, "author": { "dataType": "string", "required": true } } } }, { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "description": { "dataType": "string", "required": true }, "author": { "dataType": "string", "required": true } } } }], "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["host"], "required": true }, "version": { "dataType": "string", "required": true }, "zstdSupported": { "dataType": "boolean", "required": true } }, "validators": {} },
|
|
756
910
|
},
|
|
757
911
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
758
|
-
"Partial_Unbrand_XoGroup__": {
|
|
759
|
-
"dataType": "refAlias",
|
|
760
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "provider": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "providerGroupId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "users": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
761
|
-
},
|
|
762
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
763
|
-
"WithHref_Partial_Unbrand_XoGroup___": {
|
|
764
|
-
"dataType": "refAlias",
|
|
765
|
-
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoGroup__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
766
|
-
},
|
|
767
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
768
|
-
"SendObjects_Partial_Unbrand_XoGroup___": {
|
|
769
|
-
"dataType": "refAlias",
|
|
770
|
-
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoGroup___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
771
|
-
},
|
|
772
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
773
912
|
"Unbrand_XoGroup_": {
|
|
774
913
|
"dataType": "refAlias",
|
|
775
914
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "provider": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "providerGroupId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "users": { "dataType": "array", "array": { "dataType": "string" }, "required": true } }, "validators": {} },
|
|
@@ -803,6 +942,121 @@ const models = {
|
|
|
803
942
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "benchmarks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "writeRate": { "dataType": "double", "required": true }, "timestamp": { "dataType": "double", "required": true }, "readRate": { "dataType": "double", "required": true } } } }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "options": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "string", "required": true } }, "validators": {} },
|
|
804
943
|
},
|
|
805
944
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
945
|
+
"Partial_Unbrand_XoBackupLog__": {
|
|
946
|
+
"dataType": "refAlias",
|
|
947
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "message": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["backup"] }, { "dataType": "enum", "enums": ["metadata"] }, { "dataType": "undefined" }] } }, "additionalProperties": { "dataType": "any" }, "validators": {} },
|
|
948
|
+
},
|
|
949
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
950
|
+
"WithHref_Partial_Unbrand_XoBackupLog___": {
|
|
951
|
+
"dataType": "refAlias",
|
|
952
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoBackupLog__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
953
|
+
},
|
|
954
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
955
|
+
"SendObjects_Partial_Unbrand_XoBackupLog___": {
|
|
956
|
+
"dataType": "refAlias",
|
|
957
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoBackupLog___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
958
|
+
},
|
|
959
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
960
|
+
"Unbrand_XoBackupLog_": {
|
|
961
|
+
"dataType": "refAlias",
|
|
962
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "message": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["backup"] }, { "dataType": "enum", "enums": ["metadata"] }], "required": true } }, "additionalProperties": { "dataType": "any" }, "validators": {} },
|
|
963
|
+
},
|
|
964
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
965
|
+
"XoMetadataBackupJobScheduleSettings": {
|
|
966
|
+
"dataType": "refAlias",
|
|
967
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "retentionXoMetadata": { "dataType": "double" }, "retentionPoolMetadata": { "dataType": "double" } }, "additionalProperties": { "dataType": "any" }, "validators": {} },
|
|
968
|
+
},
|
|
969
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
970
|
+
"XoMirrorBackupGeneralSettings": {
|
|
971
|
+
"dataType": "refAlias",
|
|
972
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "XoBackupJobGeneralSettings" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "reportWhen": { "dataType": "enum", "enums": ["failure"], "required": true }, "backupReportTpl": { "dataType": "enum", "enums": ["compactMjml"] }, "maxExportRate": { "dataType": "double" }, "timeout": { "dataType": "double" }, "nRetriesVmBackupFailures": { "dataType": "double" }, "concurrency": { "dataType": "double" } }, "additionalProperties": { "dataType": "any" } }], "validators": {} },
|
|
973
|
+
},
|
|
974
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
975
|
+
"Unbrand_XoMirrorBackupScheduleSettings_": {
|
|
976
|
+
"dataType": "refAlias",
|
|
977
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
978
|
+
},
|
|
979
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
980
|
+
"Partial_UnbrandAnyXoBackupJob_": {
|
|
981
|
+
"dataType": "refAlias",
|
|
982
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["backup"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "compression": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [""] }, { "dataType": "enum", "enums": ["native"] }, { "dataType": "enum", "enums": ["zstd"] }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }, { "dataType": "undefined" }] }, "remotes": { "dataType": "any" }, "vms": { "dataType": "any" }, "srs": { "dataType": "any" }, "settings": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "ref": "XoVmBackupJobGeneralSettings", "required": true } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "Unbrand_XoVmBackupJobScheduleSettings_" }, { "dataType": "undefined" }] } }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["metadataBackup"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "xoMetadata": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "userId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "pools": { "dataType": "any" }, "remotes": { "dataType": "any" }, "settings": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "dataType": "union", "subSchemas": [{ "ref": "XoBackupJobGeneralSettings" }, { "dataType": "undefined" }] } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "XoMetadataBackupJobScheduleSettings" }, { "dataType": "undefined" }] } }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["mirrorBackup"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }, { "dataType": "undefined" }] }, "sourceRemote": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "remotes": { "dataType": "any" }, "settings": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "ref": "XoMirrorBackupGeneralSettings", "required": true } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "Unbrand_XoMirrorBackupScheduleSettings_" }, { "dataType": "undefined" }] } }, { "dataType": "undefined" }] } } }], "validators": {} },
|
|
983
|
+
},
|
|
984
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
985
|
+
"WithHref_Partial_UnbrandAnyXoBackupJob__": {
|
|
986
|
+
"dataType": "refAlias",
|
|
987
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandAnyXoBackupJob_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
988
|
+
},
|
|
989
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
990
|
+
"SendObjects_Partial_UnbrandAnyXoBackupJob__": {
|
|
991
|
+
"dataType": "refAlias",
|
|
992
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandAnyXoBackupJob__" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
993
|
+
},
|
|
994
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
995
|
+
"Unbrand_UnbrandedXoVmBackupJob_": {
|
|
996
|
+
"dataType": "refAlias",
|
|
997
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["backup"], "required": true }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "compression": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [""] }, { "dataType": "enum", "enums": ["native"] }, { "dataType": "enum", "enums": ["zstd"] }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }], "required": true }, "remotes": { "dataType": "any" }, "vms": { "dataType": "any", "required": true }, "srs": { "dataType": "any" }, "settings": { "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "ref": "XoVmBackupJobGeneralSettings", "required": true } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "Unbrand_XoVmBackupJobScheduleSettings_" }, { "dataType": "undefined" }] }, "required": true } }, "validators": {} },
|
|
998
|
+
},
|
|
999
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1000
|
+
"UnbrandXoVmBackupJob": {
|
|
1001
|
+
"dataType": "refAlias",
|
|
1002
|
+
"type": { "ref": "Unbrand_UnbrandedXoVmBackupJob_", "validators": {} },
|
|
1003
|
+
},
|
|
1004
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1005
|
+
"Unbrand_UnbrandedXoMetadataBackupJob_": {
|
|
1006
|
+
"dataType": "refAlias",
|
|
1007
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["metadataBackup"], "required": true }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "xoMetadata": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "userId": { "dataType": "string", "required": true }, "pools": { "dataType": "any" }, "remotes": { "dataType": "any", "required": true }, "settings": { "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "dataType": "union", "subSchemas": [{ "ref": "XoBackupJobGeneralSettings" }, { "dataType": "undefined" }] } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "XoMetadataBackupJobScheduleSettings" }, { "dataType": "undefined" }] }, "required": true } }, "validators": {} },
|
|
1008
|
+
},
|
|
1009
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1010
|
+
"UnbrandXoMetadataBackupJob": {
|
|
1011
|
+
"dataType": "refAlias",
|
|
1012
|
+
"type": { "ref": "Unbrand_UnbrandedXoMetadataBackupJob_", "validators": {} },
|
|
1013
|
+
},
|
|
1014
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1015
|
+
"Unbrand_UnbrandedXoMirrorBackupJob_": {
|
|
1016
|
+
"dataType": "refAlias",
|
|
1017
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["mirrorBackup"], "required": true }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }], "required": true }, "sourceRemote": { "dataType": "string", "required": true }, "remotes": { "dataType": "any", "required": true }, "settings": { "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "ref": "XoMirrorBackupGeneralSettings", "required": true } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "Unbrand_XoMirrorBackupScheduleSettings_" }, { "dataType": "undefined" }] }, "required": true } }, "validators": {} },
|
|
1018
|
+
},
|
|
1019
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1020
|
+
"UnbrandXoMirrorBackupJob": {
|
|
1021
|
+
"dataType": "refAlias",
|
|
1022
|
+
"type": { "ref": "Unbrand_UnbrandedXoMirrorBackupJob_", "validators": {} },
|
|
1023
|
+
},
|
|
1024
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1025
|
+
"UnbrandAnyXoBackupJob": {
|
|
1026
|
+
"dataType": "refAlias",
|
|
1027
|
+
"type": { "dataType": "union", "subSchemas": [{ "ref": "UnbrandXoVmBackupJob" }, { "ref": "UnbrandXoMetadataBackupJob" }, { "ref": "UnbrandXoMirrorBackupJob" }], "validators": {} },
|
|
1028
|
+
},
|
|
1029
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1030
|
+
"Partial_UnbrandXoMetadataBackupJob_": {
|
|
1031
|
+
"dataType": "refAlias",
|
|
1032
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["metadataBackup"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "xoMetadata": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "userId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "pools": { "dataType": "any" }, "remotes": { "dataType": "any" }, "settings": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "dataType": "union", "subSchemas": [{ "ref": "XoBackupJobGeneralSettings" }, { "dataType": "undefined" }] } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "XoMetadataBackupJobScheduleSettings" }, { "dataType": "undefined" }] } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
1033
|
+
},
|
|
1034
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1035
|
+
"WithHref_Partial_UnbrandXoMetadataBackupJob__": {
|
|
1036
|
+
"dataType": "refAlias",
|
|
1037
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandXoMetadataBackupJob_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
1038
|
+
},
|
|
1039
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1040
|
+
"SendObjects_Partial_UnbrandXoMetadataBackupJob__": {
|
|
1041
|
+
"dataType": "refAlias",
|
|
1042
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandXoMetadataBackupJob__" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
1043
|
+
},
|
|
1044
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1045
|
+
"Partial_UnbrandXoMirrorBackupJob_": {
|
|
1046
|
+
"dataType": "refAlias",
|
|
1047
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["mirrorBackup"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }, { "dataType": "undefined" }] }, "sourceRemote": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "remotes": { "dataType": "any" }, "settings": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "": { "ref": "XoMirrorBackupGeneralSettings", "required": true } }, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "Unbrand_XoMirrorBackupScheduleSettings_" }, { "dataType": "undefined" }] } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
1048
|
+
},
|
|
1049
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1050
|
+
"WithHref_Partial_UnbrandXoMirrorBackupJob__": {
|
|
1051
|
+
"dataType": "refAlias",
|
|
1052
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandXoMirrorBackupJob_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
1053
|
+
},
|
|
1054
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1055
|
+
"SendObjects_Partial_UnbrandXoMirrorBackupJob__": {
|
|
1056
|
+
"dataType": "refAlias",
|
|
1057
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandXoMirrorBackupJob__" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
1058
|
+
},
|
|
1059
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
806
1060
|
"Partial_UnbrandedXoAlarm_": {
|
|
807
1061
|
"dataType": "refAlias",
|
|
808
1062
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "object": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -895,6 +1149,36 @@ export function RegisterRoutes(app) {
|
|
|
895
1149
|
}
|
|
896
1150
|
});
|
|
897
1151
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1152
|
+
const argsVmController_exportVm = {
|
|
1153
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1154
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1155
|
+
format: { "in": "path", "name": "format", "required": true, "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["xva"] }, { "dataType": "enum", "enums": ["ova"] }] },
|
|
1156
|
+
compress: { "in": "query", "name": "compress", "dataType": "boolean" },
|
|
1157
|
+
};
|
|
1158
|
+
app.get('/rest/v0/vms/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.exportVm)), async function VmController_exportVm(request, response, next) {
|
|
1159
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1160
|
+
let validatedArgs = [];
|
|
1161
|
+
try {
|
|
1162
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_exportVm, request, response });
|
|
1163
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1164
|
+
const controller = await container.get(VmController);
|
|
1165
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1166
|
+
controller.setStatus(undefined);
|
|
1167
|
+
}
|
|
1168
|
+
await templateService.apiHandler({
|
|
1169
|
+
methodName: 'exportVm',
|
|
1170
|
+
controller,
|
|
1171
|
+
response,
|
|
1172
|
+
next,
|
|
1173
|
+
validatedArgs,
|
|
1174
|
+
successStatus: 200,
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
catch (err) {
|
|
1178
|
+
return next(err);
|
|
1179
|
+
}
|
|
1180
|
+
});
|
|
1181
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
898
1182
|
const argsVmController_getVm = {
|
|
899
1183
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
900
1184
|
};
|
|
@@ -922,6 +1206,33 @@ export function RegisterRoutes(app) {
|
|
|
922
1206
|
}
|
|
923
1207
|
});
|
|
924
1208
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1209
|
+
const argsVmController_deleteVm = {
|
|
1210
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1211
|
+
};
|
|
1212
|
+
app.delete('/rest/v0/vms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.deleteVm)), async function VmController_deleteVm(request, response, next) {
|
|
1213
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1214
|
+
let validatedArgs = [];
|
|
1215
|
+
try {
|
|
1216
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_deleteVm, request, response });
|
|
1217
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1218
|
+
const controller = await container.get(VmController);
|
|
1219
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1220
|
+
controller.setStatus(undefined);
|
|
1221
|
+
}
|
|
1222
|
+
await templateService.apiHandler({
|
|
1223
|
+
methodName: 'deleteVm',
|
|
1224
|
+
controller,
|
|
1225
|
+
response,
|
|
1226
|
+
next,
|
|
1227
|
+
validatedArgs,
|
|
1228
|
+
successStatus: 204,
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
catch (err) {
|
|
1232
|
+
return next(err);
|
|
1233
|
+
}
|
|
1234
|
+
});
|
|
1235
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
925
1236
|
const argsVmController_getVmStats = {
|
|
926
1237
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
927
1238
|
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
@@ -1352,25 +1663,26 @@ export function RegisterRoutes(app) {
|
|
|
1352
1663
|
}
|
|
1353
1664
|
});
|
|
1354
1665
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1355
|
-
const
|
|
1666
|
+
const argsVmController_vmGetVmBackupJobs = {
|
|
1356
1667
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1668
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1357
1669
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1358
1670
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1359
1671
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1360
1672
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1361
1673
|
};
|
|
1362
|
-
app.get('/rest/v0/
|
|
1674
|
+
app.get('/rest/v0/vms/:id/backup-jobs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.vmGetVmBackupJobs)), async function VmController_vmGetVmBackupJobs(request, response, next) {
|
|
1363
1675
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1364
1676
|
let validatedArgs = [];
|
|
1365
1677
|
try {
|
|
1366
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1678
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_vmGetVmBackupJobs, request, response });
|
|
1367
1679
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1368
|
-
const controller = await container.get(
|
|
1680
|
+
const controller = await container.get(VmController);
|
|
1369
1681
|
if (typeof controller['setStatus'] === 'function') {
|
|
1370
1682
|
controller.setStatus(undefined);
|
|
1371
1683
|
}
|
|
1372
1684
|
await templateService.apiHandler({
|
|
1373
|
-
methodName: '
|
|
1685
|
+
methodName: 'vmGetVmBackupJobs',
|
|
1374
1686
|
controller,
|
|
1375
1687
|
response,
|
|
1376
1688
|
next,
|
|
@@ -1383,14 +1695,139 @@ export function RegisterRoutes(app) {
|
|
|
1383
1695
|
}
|
|
1384
1696
|
});
|
|
1385
1697
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1386
|
-
const
|
|
1698
|
+
const argsVmController_getVmMessages = {
|
|
1699
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1387
1700
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1701
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1702
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1703
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1704
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1388
1705
|
};
|
|
1389
|
-
app.get('/rest/v0/
|
|
1706
|
+
app.get('/rest/v0/vms/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVmMessages)), async function VmController_getVmMessages(request, response, next) {
|
|
1390
1707
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1391
1708
|
let validatedArgs = [];
|
|
1392
1709
|
try {
|
|
1393
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1710
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVmMessages, request, response });
|
|
1711
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1712
|
+
const controller = await container.get(VmController);
|
|
1713
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1714
|
+
controller.setStatus(undefined);
|
|
1715
|
+
}
|
|
1716
|
+
await templateService.apiHandler({
|
|
1717
|
+
methodName: 'getVmMessages',
|
|
1718
|
+
controller,
|
|
1719
|
+
response,
|
|
1720
|
+
next,
|
|
1721
|
+
validatedArgs,
|
|
1722
|
+
successStatus: undefined,
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
catch (err) {
|
|
1726
|
+
return next(err);
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1729
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1730
|
+
const argsVmController_getVmTasks = {
|
|
1731
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1732
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1733
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1734
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1735
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1736
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1737
|
+
};
|
|
1738
|
+
app.get('/rest/v0/vms/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVmTasks)), async function VmController_getVmTasks(request, response, next) {
|
|
1739
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1740
|
+
let validatedArgs = [];
|
|
1741
|
+
try {
|
|
1742
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVmTasks, request, response });
|
|
1743
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1744
|
+
const controller = await container.get(VmController);
|
|
1745
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1746
|
+
controller.setStatus(undefined);
|
|
1747
|
+
}
|
|
1748
|
+
await templateService.apiHandler({
|
|
1749
|
+
methodName: 'getVmTasks',
|
|
1750
|
+
controller,
|
|
1751
|
+
response,
|
|
1752
|
+
next,
|
|
1753
|
+
validatedArgs,
|
|
1754
|
+
successStatus: undefined,
|
|
1755
|
+
});
|
|
1756
|
+
}
|
|
1757
|
+
catch (err) {
|
|
1758
|
+
return next(err);
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1762
|
+
const argsVmTemplateController_getVmTemplates = {
|
|
1763
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1764
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1765
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1766
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1767
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1768
|
+
};
|
|
1769
|
+
app.get('/rest/v0/vm-templates', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplates)), async function VmTemplateController_getVmTemplates(request, response, next) {
|
|
1770
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1771
|
+
let validatedArgs = [];
|
|
1772
|
+
try {
|
|
1773
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplates, request, response });
|
|
1774
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1775
|
+
const controller = await container.get(VmTemplateController);
|
|
1776
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1777
|
+
controller.setStatus(undefined);
|
|
1778
|
+
}
|
|
1779
|
+
await templateService.apiHandler({
|
|
1780
|
+
methodName: 'getVmTemplates',
|
|
1781
|
+
controller,
|
|
1782
|
+
response,
|
|
1783
|
+
next,
|
|
1784
|
+
validatedArgs,
|
|
1785
|
+
successStatus: undefined,
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
catch (err) {
|
|
1789
|
+
return next(err);
|
|
1790
|
+
}
|
|
1791
|
+
});
|
|
1792
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1793
|
+
const argsVmTemplateController_exportVmTemplate = {
|
|
1794
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1795
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1796
|
+
format: { "in": "path", "name": "format", "required": true, "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["xva"] }, { "dataType": "enum", "enums": ["ova"] }] },
|
|
1797
|
+
compress: { "in": "query", "name": "compress", "dataType": "boolean" },
|
|
1798
|
+
};
|
|
1799
|
+
app.get('/rest/v0/vm-templates/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.exportVmTemplate)), async function VmTemplateController_exportVmTemplate(request, response, next) {
|
|
1800
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1801
|
+
let validatedArgs = [];
|
|
1802
|
+
try {
|
|
1803
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_exportVmTemplate, request, response });
|
|
1804
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1805
|
+
const controller = await container.get(VmTemplateController);
|
|
1806
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1807
|
+
controller.setStatus(undefined);
|
|
1808
|
+
}
|
|
1809
|
+
await templateService.apiHandler({
|
|
1810
|
+
methodName: 'exportVmTemplate',
|
|
1811
|
+
controller,
|
|
1812
|
+
response,
|
|
1813
|
+
next,
|
|
1814
|
+
validatedArgs,
|
|
1815
|
+
successStatus: 200,
|
|
1816
|
+
});
|
|
1817
|
+
}
|
|
1818
|
+
catch (err) {
|
|
1819
|
+
return next(err);
|
|
1820
|
+
}
|
|
1821
|
+
});
|
|
1822
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1823
|
+
const argsVmTemplateController_getVmTemplate = {
|
|
1824
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1825
|
+
};
|
|
1826
|
+
app.get('/rest/v0/vm-templates/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplate)), async function VmTemplateController_getVmTemplate(request, response, next) {
|
|
1827
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1828
|
+
let validatedArgs = [];
|
|
1829
|
+
try {
|
|
1830
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplate, request, response });
|
|
1394
1831
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1395
1832
|
const controller = await container.get(VmTemplateController);
|
|
1396
1833
|
if (typeof controller['setStatus'] === 'function') {
|
|
@@ -1410,6 +1847,33 @@ export function RegisterRoutes(app) {
|
|
|
1410
1847
|
}
|
|
1411
1848
|
});
|
|
1412
1849
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1850
|
+
const argsVmTemplateController_deleteVmTemplate = {
|
|
1851
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1852
|
+
};
|
|
1853
|
+
app.delete('/rest/v0/vm-templates/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.deleteVmTemplate)), async function VmTemplateController_deleteVmTemplate(request, response, next) {
|
|
1854
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1855
|
+
let validatedArgs = [];
|
|
1856
|
+
try {
|
|
1857
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_deleteVmTemplate, request, response });
|
|
1858
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1859
|
+
const controller = await container.get(VmTemplateController);
|
|
1860
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1861
|
+
controller.setStatus(undefined);
|
|
1862
|
+
}
|
|
1863
|
+
await templateService.apiHandler({
|
|
1864
|
+
methodName: 'deleteVmTemplate',
|
|
1865
|
+
controller,
|
|
1866
|
+
response,
|
|
1867
|
+
next,
|
|
1868
|
+
validatedArgs,
|
|
1869
|
+
successStatus: 204,
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
catch (err) {
|
|
1873
|
+
return next(err);
|
|
1874
|
+
}
|
|
1875
|
+
});
|
|
1876
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1413
1877
|
const argsVmTemplateController_getVmTemplateAlarms = {
|
|
1414
1878
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1415
1879
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
@@ -1505,6 +1969,36 @@ export function RegisterRoutes(app) {
|
|
|
1505
1969
|
}
|
|
1506
1970
|
});
|
|
1507
1971
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1972
|
+
const argsVmSnapshotController_exportVmSnapshot = {
|
|
1973
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1974
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1975
|
+
format: { "in": "path", "name": "format", "required": true, "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["xva"] }, { "dataType": "enum", "enums": ["ova"] }] },
|
|
1976
|
+
compress: { "in": "query", "name": "compress", "dataType": "boolean" },
|
|
1977
|
+
};
|
|
1978
|
+
app.get('/rest/v0/vm-snapshots/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.exportVmSnapshot)), async function VmSnapshotController_exportVmSnapshot(request, response, next) {
|
|
1979
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1980
|
+
let validatedArgs = [];
|
|
1981
|
+
try {
|
|
1982
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_exportVmSnapshot, request, response });
|
|
1983
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1984
|
+
const controller = await container.get(VmSnapshotController);
|
|
1985
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1986
|
+
controller.setStatus(undefined);
|
|
1987
|
+
}
|
|
1988
|
+
await templateService.apiHandler({
|
|
1989
|
+
methodName: 'exportVmSnapshot',
|
|
1990
|
+
controller,
|
|
1991
|
+
response,
|
|
1992
|
+
next,
|
|
1993
|
+
validatedArgs,
|
|
1994
|
+
successStatus: 200,
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1997
|
+
catch (err) {
|
|
1998
|
+
return next(err);
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1508
2002
|
const argsVmSnapshotController_getVmSnapshot = {
|
|
1509
2003
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1510
2004
|
};
|
|
@@ -1532,6 +2026,33 @@ export function RegisterRoutes(app) {
|
|
|
1532
2026
|
}
|
|
1533
2027
|
});
|
|
1534
2028
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2029
|
+
const argsVmSnapshotController_deleteVmSnapshot = {
|
|
2030
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2031
|
+
};
|
|
2032
|
+
app.delete('/rest/v0/vm-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.deleteVmSnapshot)), async function VmSnapshotController_deleteVmSnapshot(request, response, next) {
|
|
2033
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2034
|
+
let validatedArgs = [];
|
|
2035
|
+
try {
|
|
2036
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_deleteVmSnapshot, request, response });
|
|
2037
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2038
|
+
const controller = await container.get(VmSnapshotController);
|
|
2039
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2040
|
+
controller.setStatus(undefined);
|
|
2041
|
+
}
|
|
2042
|
+
await templateService.apiHandler({
|
|
2043
|
+
methodName: 'deleteVmSnapshot',
|
|
2044
|
+
controller,
|
|
2045
|
+
response,
|
|
2046
|
+
next,
|
|
2047
|
+
validatedArgs,
|
|
2048
|
+
successStatus: 204,
|
|
2049
|
+
});
|
|
2050
|
+
}
|
|
2051
|
+
catch (err) {
|
|
2052
|
+
return next(err);
|
|
2053
|
+
}
|
|
2054
|
+
});
|
|
2055
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1535
2056
|
const argsVmSnapshotController_getVmSnapshotAlarms = {
|
|
1536
2057
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1537
2058
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
@@ -1596,6 +2117,38 @@ export function RegisterRoutes(app) {
|
|
|
1596
2117
|
}
|
|
1597
2118
|
});
|
|
1598
2119
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2120
|
+
const argsVmSnapshotController_getVmSnapshotsMessages = {
|
|
2121
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2122
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2123
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2124
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2125
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2126
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2127
|
+
};
|
|
2128
|
+
app.get('/rest/v0/vm-snapshots/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshotsMessages)), async function VmSnapshotController_getVmSnapshotsMessages(request, response, next) {
|
|
2129
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2130
|
+
let validatedArgs = [];
|
|
2131
|
+
try {
|
|
2132
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshotsMessages, request, response });
|
|
2133
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2134
|
+
const controller = await container.get(VmSnapshotController);
|
|
2135
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2136
|
+
controller.setStatus(undefined);
|
|
2137
|
+
}
|
|
2138
|
+
await templateService.apiHandler({
|
|
2139
|
+
methodName: 'getVmSnapshotsMessages',
|
|
2140
|
+
controller,
|
|
2141
|
+
response,
|
|
2142
|
+
next,
|
|
2143
|
+
validatedArgs,
|
|
2144
|
+
successStatus: undefined,
|
|
2145
|
+
});
|
|
2146
|
+
}
|
|
2147
|
+
catch (err) {
|
|
2148
|
+
return next(err);
|
|
2149
|
+
}
|
|
2150
|
+
});
|
|
2151
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1599
2152
|
const argsVmControllerController_getVmControllers = {
|
|
1600
2153
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1601
2154
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1839,26 +2392,28 @@ export function RegisterRoutes(app) {
|
|
|
1839
2392
|
}
|
|
1840
2393
|
});
|
|
1841
2394
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1842
|
-
const
|
|
2395
|
+
const argsVdiController_exportVdiContent = {
|
|
2396
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1843
2397
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2398
|
+
format: { "in": "path", "name": "format", "required": true, "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["vhd"] }, { "dataType": "enum", "enums": ["raw"] }] },
|
|
1844
2399
|
};
|
|
1845
|
-
app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.
|
|
2400
|
+
app.get('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.exportVdiContent)), async function VdiController_exportVdiContent(request, response, next) {
|
|
1846
2401
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1847
2402
|
let validatedArgs = [];
|
|
1848
2403
|
try {
|
|
1849
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2404
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_exportVdiContent, request, response });
|
|
1850
2405
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1851
2406
|
const controller = await container.get(VdiController);
|
|
1852
2407
|
if (typeof controller['setStatus'] === 'function') {
|
|
1853
2408
|
controller.setStatus(undefined);
|
|
1854
2409
|
}
|
|
1855
2410
|
await templateService.apiHandler({
|
|
1856
|
-
methodName: '
|
|
2411
|
+
methodName: 'exportVdiContent',
|
|
1857
2412
|
controller,
|
|
1858
2413
|
response,
|
|
1859
2414
|
next,
|
|
1860
2415
|
validatedArgs,
|
|
1861
|
-
successStatus:
|
|
2416
|
+
successStatus: 200,
|
|
1862
2417
|
});
|
|
1863
2418
|
}
|
|
1864
2419
|
catch (err) {
|
|
@@ -1866,26 +2421,21 @@ export function RegisterRoutes(app) {
|
|
|
1866
2421
|
}
|
|
1867
2422
|
});
|
|
1868
2423
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1869
|
-
const
|
|
1870
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2424
|
+
const argsVdiController_getVdi = {
|
|
1871
2425
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1872
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1873
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1874
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1875
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1876
2426
|
};
|
|
1877
|
-
app.get('/rest/v0/vdis/:id
|
|
2427
|
+
app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
|
|
1878
2428
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1879
2429
|
let validatedArgs = [];
|
|
1880
2430
|
try {
|
|
1881
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2431
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
|
|
1882
2432
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1883
2433
|
const controller = await container.get(VdiController);
|
|
1884
2434
|
if (typeof controller['setStatus'] === 'function') {
|
|
1885
2435
|
controller.setStatus(undefined);
|
|
1886
2436
|
}
|
|
1887
2437
|
await templateService.apiHandler({
|
|
1888
|
-
methodName: '
|
|
2438
|
+
methodName: 'getVdi',
|
|
1889
2439
|
controller,
|
|
1890
2440
|
response,
|
|
1891
2441
|
next,
|
|
@@ -1898,25 +2448,26 @@ export function RegisterRoutes(app) {
|
|
|
1898
2448
|
}
|
|
1899
2449
|
});
|
|
1900
2450
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1901
|
-
const
|
|
2451
|
+
const argsVdiController_getVdiAlarms = {
|
|
1902
2452
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2453
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1903
2454
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1904
2455
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1905
2456
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1906
2457
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1907
2458
|
};
|
|
1908
|
-
app.get('/rest/v0/
|
|
2459
|
+
app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
|
|
1909
2460
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1910
2461
|
let validatedArgs = [];
|
|
1911
2462
|
try {
|
|
1912
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2463
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
|
|
1913
2464
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1914
|
-
const controller = await container.get(
|
|
2465
|
+
const controller = await container.get(VdiController);
|
|
1915
2466
|
if (typeof controller['setStatus'] === 'function') {
|
|
1916
2467
|
controller.setStatus(undefined);
|
|
1917
2468
|
}
|
|
1918
2469
|
await templateService.apiHandler({
|
|
1919
|
-
methodName: '
|
|
2470
|
+
methodName: 'getVdiAlarms',
|
|
1920
2471
|
controller,
|
|
1921
2472
|
response,
|
|
1922
2473
|
next,
|
|
@@ -1929,26 +2480,26 @@ export function RegisterRoutes(app) {
|
|
|
1929
2480
|
}
|
|
1930
2481
|
});
|
|
1931
2482
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1932
|
-
const
|
|
2483
|
+
const argsVdiController_deleteVdi = {
|
|
1933
2484
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1934
2485
|
};
|
|
1935
|
-
app.
|
|
2486
|
+
app.delete('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdi)), async function VdiController_deleteVdi(request, response, next) {
|
|
1936
2487
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1937
2488
|
let validatedArgs = [];
|
|
1938
2489
|
try {
|
|
1939
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2490
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdi, request, response });
|
|
1940
2491
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1941
|
-
const controller = await container.get(
|
|
2492
|
+
const controller = await container.get(VdiController);
|
|
1942
2493
|
if (typeof controller['setStatus'] === 'function') {
|
|
1943
2494
|
controller.setStatus(undefined);
|
|
1944
2495
|
}
|
|
1945
2496
|
await templateService.apiHandler({
|
|
1946
|
-
methodName: '
|
|
2497
|
+
methodName: 'deleteVdi',
|
|
1947
2498
|
controller,
|
|
1948
2499
|
response,
|
|
1949
2500
|
next,
|
|
1950
2501
|
validatedArgs,
|
|
1951
|
-
successStatus:
|
|
2502
|
+
successStatus: 204,
|
|
1952
2503
|
});
|
|
1953
2504
|
}
|
|
1954
2505
|
catch (err) {
|
|
@@ -1956,26 +2507,25 @@ export function RegisterRoutes(app) {
|
|
|
1956
2507
|
}
|
|
1957
2508
|
});
|
|
1958
2509
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1959
|
-
const
|
|
2510
|
+
const argsVdiSnapshotController_getVdiSnapshots = {
|
|
1960
2511
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1961
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1962
2512
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1963
2513
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1964
2514
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1965
2515
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1966
2516
|
};
|
|
1967
|
-
app.get('/rest/v0/vdi-snapshots
|
|
2517
|
+
app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
|
|
1968
2518
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1969
2519
|
let validatedArgs = [];
|
|
1970
2520
|
try {
|
|
1971
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2521
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
|
|
1972
2522
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1973
2523
|
const controller = await container.get(VdiSnapshotController);
|
|
1974
2524
|
if (typeof controller['setStatus'] === 'function') {
|
|
1975
2525
|
controller.setStatus(undefined);
|
|
1976
2526
|
}
|
|
1977
2527
|
await templateService.apiHandler({
|
|
1978
|
-
methodName: '
|
|
2528
|
+
methodName: 'getVdiSnapshots',
|
|
1979
2529
|
controller,
|
|
1980
2530
|
response,
|
|
1981
2531
|
next,
|
|
@@ -1988,30 +2538,28 @@ export function RegisterRoutes(app) {
|
|
|
1988
2538
|
}
|
|
1989
2539
|
});
|
|
1990
2540
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1991
|
-
const
|
|
2541
|
+
const argsVdiSnapshotController_exportVdiSnapshotContent = {
|
|
1992
2542
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1996
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2543
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2544
|
+
format: { "in": "path", "name": "format", "required": true, "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["vhd"] }, { "dataType": "enum", "enums": ["raw"] }] },
|
|
1997
2545
|
};
|
|
1998
|
-
app.get('/rest/v0/
|
|
2546
|
+
app.get('/rest/v0/vdi-snapshots/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.exportVdiSnapshotContent)), async function VdiSnapshotController_exportVdiSnapshotContent(request, response, next) {
|
|
1999
2547
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2000
2548
|
let validatedArgs = [];
|
|
2001
2549
|
try {
|
|
2002
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2550
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_exportVdiSnapshotContent, request, response });
|
|
2003
2551
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2004
|
-
const controller = await container.get(
|
|
2552
|
+
const controller = await container.get(VdiSnapshotController);
|
|
2005
2553
|
if (typeof controller['setStatus'] === 'function') {
|
|
2006
2554
|
controller.setStatus(undefined);
|
|
2007
2555
|
}
|
|
2008
2556
|
await templateService.apiHandler({
|
|
2009
|
-
methodName: '
|
|
2557
|
+
methodName: 'exportVdiSnapshotContent',
|
|
2010
2558
|
controller,
|
|
2011
2559
|
response,
|
|
2012
2560
|
next,
|
|
2013
2561
|
validatedArgs,
|
|
2014
|
-
successStatus:
|
|
2562
|
+
successStatus: 200,
|
|
2015
2563
|
});
|
|
2016
2564
|
}
|
|
2017
2565
|
catch (err) {
|
|
@@ -2019,21 +2567,21 @@ export function RegisterRoutes(app) {
|
|
|
2019
2567
|
}
|
|
2020
2568
|
});
|
|
2021
2569
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2022
|
-
const
|
|
2570
|
+
const argsVdiSnapshotController_getVdiSnapshot = {
|
|
2023
2571
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2024
2572
|
};
|
|
2025
|
-
app.get('/rest/v0/
|
|
2573
|
+
app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
|
|
2026
2574
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2027
2575
|
let validatedArgs = [];
|
|
2028
2576
|
try {
|
|
2029
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2577
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
|
|
2030
2578
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2031
|
-
const controller = await container.get(
|
|
2579
|
+
const controller = await container.get(VdiSnapshotController);
|
|
2032
2580
|
if (typeof controller['setStatus'] === 'function') {
|
|
2033
2581
|
controller.setStatus(undefined);
|
|
2034
2582
|
}
|
|
2035
2583
|
await templateService.apiHandler({
|
|
2036
|
-
methodName: '
|
|
2584
|
+
methodName: 'getVdiSnapshot',
|
|
2037
2585
|
controller,
|
|
2038
2586
|
response,
|
|
2039
2587
|
next,
|
|
@@ -2046,7 +2594,7 @@ export function RegisterRoutes(app) {
|
|
|
2046
2594
|
}
|
|
2047
2595
|
});
|
|
2048
2596
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2049
|
-
const
|
|
2597
|
+
const argsVdiSnapshotController_getVdiSnapshotAlarms = {
|
|
2050
2598
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2051
2599
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2052
2600
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2054,18 +2602,18 @@ export function RegisterRoutes(app) {
|
|
|
2054
2602
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2055
2603
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2056
2604
|
};
|
|
2057
|
-
app.get('/rest/v0/
|
|
2605
|
+
app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
|
|
2058
2606
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2059
2607
|
let validatedArgs = [];
|
|
2060
2608
|
try {
|
|
2061
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2609
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
|
|
2062
2610
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2063
|
-
const controller = await container.get(
|
|
2611
|
+
const controller = await container.get(VdiSnapshotController);
|
|
2064
2612
|
if (typeof controller['setStatus'] === 'function') {
|
|
2065
2613
|
controller.setStatus(undefined);
|
|
2066
2614
|
}
|
|
2067
2615
|
await templateService.apiHandler({
|
|
2068
|
-
methodName: '
|
|
2616
|
+
methodName: 'getVdiSnapshotAlarms',
|
|
2069
2617
|
controller,
|
|
2070
2618
|
response,
|
|
2071
2619
|
next,
|
|
@@ -2078,25 +2626,52 @@ export function RegisterRoutes(app) {
|
|
|
2078
2626
|
}
|
|
2079
2627
|
});
|
|
2080
2628
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2081
|
-
const
|
|
2629
|
+
const argsVdiSnapshotController_deleteVdiSnapshot = {
|
|
2630
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2631
|
+
};
|
|
2632
|
+
app.delete('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshot)), async function VdiSnapshotController_deleteVdiSnapshot(request, response, next) {
|
|
2633
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2634
|
+
let validatedArgs = [];
|
|
2635
|
+
try {
|
|
2636
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshot, request, response });
|
|
2637
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2638
|
+
const controller = await container.get(VdiSnapshotController);
|
|
2639
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2640
|
+
controller.setStatus(undefined);
|
|
2641
|
+
}
|
|
2642
|
+
await templateService.apiHandler({
|
|
2643
|
+
methodName: 'deleteVdiSnapshot',
|
|
2644
|
+
controller,
|
|
2645
|
+
response,
|
|
2646
|
+
next,
|
|
2647
|
+
validatedArgs,
|
|
2648
|
+
successStatus: 204,
|
|
2649
|
+
});
|
|
2650
|
+
}
|
|
2651
|
+
catch (err) {
|
|
2652
|
+
return next(err);
|
|
2653
|
+
}
|
|
2654
|
+
});
|
|
2655
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2656
|
+
const argsVbdController_getVbds = {
|
|
2082
2657
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2083
2658
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2084
2659
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2085
2660
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2086
2661
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2087
2662
|
};
|
|
2088
|
-
app.get('/rest/v0/
|
|
2663
|
+
app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
|
|
2089
2664
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2090
2665
|
let validatedArgs = [];
|
|
2091
2666
|
try {
|
|
2092
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2667
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
|
|
2093
2668
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2094
|
-
const controller = await container.get(
|
|
2669
|
+
const controller = await container.get(VbdController);
|
|
2095
2670
|
if (typeof controller['setStatus'] === 'function') {
|
|
2096
2671
|
controller.setStatus(undefined);
|
|
2097
2672
|
}
|
|
2098
2673
|
await templateService.apiHandler({
|
|
2099
|
-
methodName: '
|
|
2674
|
+
methodName: 'getVbds',
|
|
2100
2675
|
controller,
|
|
2101
2676
|
response,
|
|
2102
2677
|
next,
|
|
@@ -2109,21 +2684,21 @@ export function RegisterRoutes(app) {
|
|
|
2109
2684
|
}
|
|
2110
2685
|
});
|
|
2111
2686
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2112
|
-
const
|
|
2687
|
+
const argsVbdController_getVbd = {
|
|
2113
2688
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2114
2689
|
};
|
|
2115
|
-
app.get('/rest/v0/
|
|
2690
|
+
app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
|
|
2116
2691
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2117
2692
|
let validatedArgs = [];
|
|
2118
2693
|
try {
|
|
2119
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2694
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
|
|
2120
2695
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2121
|
-
const controller = await container.get(
|
|
2696
|
+
const controller = await container.get(VbdController);
|
|
2122
2697
|
if (typeof controller['setStatus'] === 'function') {
|
|
2123
2698
|
controller.setStatus(undefined);
|
|
2124
2699
|
}
|
|
2125
2700
|
await templateService.apiHandler({
|
|
2126
|
-
methodName: '
|
|
2701
|
+
methodName: 'getVbd',
|
|
2127
2702
|
controller,
|
|
2128
2703
|
response,
|
|
2129
2704
|
next,
|
|
@@ -2136,27 +2711,31 @@ export function RegisterRoutes(app) {
|
|
|
2136
2711
|
}
|
|
2137
2712
|
});
|
|
2138
2713
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2139
|
-
const
|
|
2714
|
+
const argsVbdController_getVbdAlarms = {
|
|
2715
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2140
2716
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2141
|
-
|
|
2717
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2718
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2719
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2720
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2142
2721
|
};
|
|
2143
|
-
app.
|
|
2722
|
+
app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
|
|
2144
2723
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2145
2724
|
let validatedArgs = [];
|
|
2146
2725
|
try {
|
|
2147
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2726
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
|
|
2148
2727
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2149
|
-
const controller = await container.get(
|
|
2728
|
+
const controller = await container.get(VbdController);
|
|
2150
2729
|
if (typeof controller['setStatus'] === 'function') {
|
|
2151
2730
|
controller.setStatus(undefined);
|
|
2152
2731
|
}
|
|
2153
2732
|
await templateService.apiHandler({
|
|
2154
|
-
methodName: '
|
|
2733
|
+
methodName: 'getVbdAlarms',
|
|
2155
2734
|
controller,
|
|
2156
2735
|
response,
|
|
2157
2736
|
next,
|
|
2158
2737
|
validatedArgs,
|
|
2159
|
-
successStatus:
|
|
2738
|
+
successStatus: undefined,
|
|
2160
2739
|
});
|
|
2161
2740
|
}
|
|
2162
2741
|
catch (err) {
|
|
@@ -2164,26 +2743,30 @@ export function RegisterRoutes(app) {
|
|
|
2164
2743
|
}
|
|
2165
2744
|
});
|
|
2166
2745
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2167
|
-
const
|
|
2168
|
-
|
|
2746
|
+
const argsUserController_getUsers = {
|
|
2747
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2748
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2749
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2750
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2751
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2169
2752
|
};
|
|
2170
|
-
app.
|
|
2753
|
+
app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
|
|
2171
2754
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2172
2755
|
let validatedArgs = [];
|
|
2173
2756
|
try {
|
|
2174
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2757
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
|
|
2175
2758
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2176
2759
|
const controller = await container.get(UserController);
|
|
2177
2760
|
if (typeof controller['setStatus'] === 'function') {
|
|
2178
2761
|
controller.setStatus(undefined);
|
|
2179
2762
|
}
|
|
2180
2763
|
await templateService.apiHandler({
|
|
2181
|
-
methodName: '
|
|
2764
|
+
methodName: 'getUsers',
|
|
2182
2765
|
controller,
|
|
2183
2766
|
response,
|
|
2184
2767
|
next,
|
|
2185
2768
|
validatedArgs,
|
|
2186
|
-
successStatus:
|
|
2769
|
+
successStatus: undefined,
|
|
2187
2770
|
});
|
|
2188
2771
|
}
|
|
2189
2772
|
catch (err) {
|
|
@@ -2191,26 +2774,26 @@ export function RegisterRoutes(app) {
|
|
|
2191
2774
|
}
|
|
2192
2775
|
});
|
|
2193
2776
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2194
|
-
const
|
|
2195
|
-
|
|
2777
|
+
const argsUserController_redirectMe = {
|
|
2778
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2196
2779
|
};
|
|
2197
|
-
app.
|
|
2780
|
+
app.get('/rest/v0/users/me', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.redirectMe)), async function UserController_redirectMe(request, response, next) {
|
|
2198
2781
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2199
2782
|
let validatedArgs = [];
|
|
2200
2783
|
try {
|
|
2201
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2784
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_redirectMe, request, response });
|
|
2202
2785
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2203
2786
|
const controller = await container.get(UserController);
|
|
2204
2787
|
if (typeof controller['setStatus'] === 'function') {
|
|
2205
2788
|
controller.setStatus(undefined);
|
|
2206
2789
|
}
|
|
2207
2790
|
await templateService.apiHandler({
|
|
2208
|
-
methodName: '
|
|
2791
|
+
methodName: 'redirectMe',
|
|
2209
2792
|
controller,
|
|
2210
2793
|
response,
|
|
2211
2794
|
next,
|
|
2212
2795
|
validatedArgs,
|
|
2213
|
-
successStatus:
|
|
2796
|
+
successStatus: 307,
|
|
2214
2797
|
});
|
|
2215
2798
|
}
|
|
2216
2799
|
catch (err) {
|
|
@@ -2218,30 +2801,26 @@ export function RegisterRoutes(app) {
|
|
|
2218
2801
|
}
|
|
2219
2802
|
});
|
|
2220
2803
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2221
|
-
const
|
|
2804
|
+
const argsUserController_redirectMeWithPath = {
|
|
2222
2805
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2223
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2224
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2225
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2226
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2227
2806
|
};
|
|
2228
|
-
app.get('/rest/v0/
|
|
2807
|
+
app.get('/rest/v0/users/me/*', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.redirectMeWithPath)), async function UserController_redirectMeWithPath(request, response, next) {
|
|
2229
2808
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2230
2809
|
let validatedArgs = [];
|
|
2231
2810
|
try {
|
|
2232
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2811
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_redirectMeWithPath, request, response });
|
|
2233
2812
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2234
|
-
const controller = await container.get(
|
|
2813
|
+
const controller = await container.get(UserController);
|
|
2235
2814
|
if (typeof controller['setStatus'] === 'function') {
|
|
2236
2815
|
controller.setStatus(undefined);
|
|
2237
2816
|
}
|
|
2238
2817
|
await templateService.apiHandler({
|
|
2239
|
-
methodName: '
|
|
2818
|
+
methodName: 'redirectMeWithPath',
|
|
2240
2819
|
controller,
|
|
2241
2820
|
response,
|
|
2242
2821
|
next,
|
|
2243
2822
|
validatedArgs,
|
|
2244
|
-
successStatus:
|
|
2823
|
+
successStatus: 307,
|
|
2245
2824
|
});
|
|
2246
2825
|
}
|
|
2247
2826
|
catch (err) {
|
|
@@ -2249,21 +2828,21 @@ export function RegisterRoutes(app) {
|
|
|
2249
2828
|
}
|
|
2250
2829
|
});
|
|
2251
2830
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2252
|
-
const
|
|
2831
|
+
const argsUserController_getUser = {
|
|
2253
2832
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2254
2833
|
};
|
|
2255
|
-
app.get('/rest/v0/
|
|
2834
|
+
app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
|
|
2256
2835
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2257
2836
|
let validatedArgs = [];
|
|
2258
2837
|
try {
|
|
2259
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2838
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
|
|
2260
2839
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2261
|
-
const controller = await container.get(
|
|
2840
|
+
const controller = await container.get(UserController);
|
|
2262
2841
|
if (typeof controller['setStatus'] === 'function') {
|
|
2263
2842
|
controller.setStatus(undefined);
|
|
2264
2843
|
}
|
|
2265
2844
|
await templateService.apiHandler({
|
|
2266
|
-
methodName: '
|
|
2845
|
+
methodName: 'getUser',
|
|
2267
2846
|
controller,
|
|
2268
2847
|
response,
|
|
2269
2848
|
next,
|
|
@@ -2276,31 +2855,27 @@ export function RegisterRoutes(app) {
|
|
|
2276
2855
|
}
|
|
2277
2856
|
});
|
|
2278
2857
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2279
|
-
const
|
|
2280
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2858
|
+
const argsUserController_updateUser = {
|
|
2281
2859
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2282
|
-
|
|
2283
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2284
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2285
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2860
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
|
|
2286
2861
|
};
|
|
2287
|
-
app.
|
|
2862
|
+
app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
|
|
2288
2863
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2289
2864
|
let validatedArgs = [];
|
|
2290
2865
|
try {
|
|
2291
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2866
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
|
|
2292
2867
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2293
|
-
const controller = await container.get(
|
|
2868
|
+
const controller = await container.get(UserController);
|
|
2294
2869
|
if (typeof controller['setStatus'] === 'function') {
|
|
2295
2870
|
controller.setStatus(undefined);
|
|
2296
2871
|
}
|
|
2297
2872
|
await templateService.apiHandler({
|
|
2298
|
-
methodName: '
|
|
2873
|
+
methodName: 'updateUser',
|
|
2299
2874
|
controller,
|
|
2300
2875
|
response,
|
|
2301
2876
|
next,
|
|
2302
2877
|
validatedArgs,
|
|
2303
|
-
successStatus:
|
|
2878
|
+
successStatus: 204,
|
|
2304
2879
|
});
|
|
2305
2880
|
}
|
|
2306
2881
|
catch (err) {
|
|
@@ -2308,30 +2883,26 @@ export function RegisterRoutes(app) {
|
|
|
2308
2883
|
}
|
|
2309
2884
|
});
|
|
2310
2885
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2311
|
-
const
|
|
2312
|
-
|
|
2313
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2314
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2315
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2316
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2886
|
+
const argsUserController_createUser = {
|
|
2887
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
|
|
2317
2888
|
};
|
|
2318
|
-
app.
|
|
2889
|
+
app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
|
|
2319
2890
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2320
2891
|
let validatedArgs = [];
|
|
2321
2892
|
try {
|
|
2322
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2893
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
|
|
2323
2894
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2324
|
-
const controller = await container.get(
|
|
2895
|
+
const controller = await container.get(UserController);
|
|
2325
2896
|
if (typeof controller['setStatus'] === 'function') {
|
|
2326
2897
|
controller.setStatus(undefined);
|
|
2327
2898
|
}
|
|
2328
2899
|
await templateService.apiHandler({
|
|
2329
|
-
methodName: '
|
|
2900
|
+
methodName: 'createUser',
|
|
2330
2901
|
controller,
|
|
2331
2902
|
response,
|
|
2332
2903
|
next,
|
|
2333
2904
|
validatedArgs,
|
|
2334
|
-
successStatus:
|
|
2905
|
+
successStatus: 201,
|
|
2335
2906
|
});
|
|
2336
2907
|
}
|
|
2337
2908
|
catch (err) {
|
|
@@ -2339,26 +2910,26 @@ export function RegisterRoutes(app) {
|
|
|
2339
2910
|
}
|
|
2340
2911
|
});
|
|
2341
2912
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2342
|
-
const
|
|
2913
|
+
const argsUserController_deleteUser = {
|
|
2343
2914
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2344
2915
|
};
|
|
2345
|
-
app.
|
|
2916
|
+
app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
|
|
2346
2917
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2347
2918
|
let validatedArgs = [];
|
|
2348
2919
|
try {
|
|
2349
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2920
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
|
|
2350
2921
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2351
|
-
const controller = await container.get(
|
|
2922
|
+
const controller = await container.get(UserController);
|
|
2352
2923
|
if (typeof controller['setStatus'] === 'function') {
|
|
2353
2924
|
controller.setStatus(undefined);
|
|
2354
2925
|
}
|
|
2355
2926
|
await templateService.apiHandler({
|
|
2356
|
-
methodName: '
|
|
2927
|
+
methodName: 'deleteUser',
|
|
2357
2928
|
controller,
|
|
2358
2929
|
response,
|
|
2359
2930
|
next,
|
|
2360
2931
|
validatedArgs,
|
|
2361
|
-
successStatus:
|
|
2932
|
+
successStatus: 204,
|
|
2362
2933
|
});
|
|
2363
2934
|
}
|
|
2364
2935
|
catch (err) {
|
|
@@ -2366,25 +2937,26 @@ export function RegisterRoutes(app) {
|
|
|
2366
2937
|
}
|
|
2367
2938
|
});
|
|
2368
2939
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2369
|
-
const
|
|
2940
|
+
const argsUserController_getUserGroups = {
|
|
2370
2941
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2942
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2371
2943
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2372
2944
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2373
2945
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2374
2946
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2375
2947
|
};
|
|
2376
|
-
app.get('/rest/v0/
|
|
2948
|
+
app.get('/rest/v0/users/:id/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserGroups)), async function UserController_getUserGroups(request, response, next) {
|
|
2377
2949
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2378
2950
|
let validatedArgs = [];
|
|
2379
2951
|
try {
|
|
2380
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2952
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserGroups, request, response });
|
|
2381
2953
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2382
|
-
const controller = await container.get(
|
|
2954
|
+
const controller = await container.get(UserController);
|
|
2383
2955
|
if (typeof controller['setStatus'] === 'function') {
|
|
2384
2956
|
controller.setStatus(undefined);
|
|
2385
2957
|
}
|
|
2386
2958
|
await templateService.apiHandler({
|
|
2387
|
-
methodName: '
|
|
2959
|
+
methodName: 'getUserGroups',
|
|
2388
2960
|
controller,
|
|
2389
2961
|
response,
|
|
2390
2962
|
next,
|
|
@@ -2397,21 +2969,24 @@ export function RegisterRoutes(app) {
|
|
|
2397
2969
|
}
|
|
2398
2970
|
});
|
|
2399
2971
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2400
|
-
const
|
|
2972
|
+
const argsUserController_getAuthenticationTokens = {
|
|
2973
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2401
2974
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2975
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2976
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2402
2977
|
};
|
|
2403
|
-
app.get('/rest/v0/
|
|
2978
|
+
app.get('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getAuthenticationTokens)), async function UserController_getAuthenticationTokens(request, response, next) {
|
|
2404
2979
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2405
2980
|
let validatedArgs = [];
|
|
2406
2981
|
try {
|
|
2407
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2982
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAuthenticationTokens, request, response });
|
|
2408
2983
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2409
|
-
const controller = await container.get(
|
|
2984
|
+
const controller = await container.get(UserController);
|
|
2410
2985
|
if (typeof controller['setStatus'] === 'function') {
|
|
2411
2986
|
controller.setStatus(undefined);
|
|
2412
2987
|
}
|
|
2413
2988
|
await templateService.apiHandler({
|
|
2414
|
-
methodName: '
|
|
2989
|
+
methodName: 'getAuthenticationTokens',
|
|
2415
2990
|
controller,
|
|
2416
2991
|
response,
|
|
2417
2992
|
next,
|
|
@@ -2424,26 +2999,31 @@ export function RegisterRoutes(app) {
|
|
|
2424
2999
|
}
|
|
2425
3000
|
});
|
|
2426
3001
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2427
|
-
const
|
|
2428
|
-
|
|
3002
|
+
const argsTaskController_getTasks = {
|
|
3003
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3004
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3005
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3006
|
+
watch: { "in": "query", "name": "watch", "dataType": "boolean" },
|
|
3007
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3008
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2429
3009
|
};
|
|
2430
|
-
app.
|
|
3010
|
+
app.get('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTasks)), async function TaskController_getTasks(request, response, next) {
|
|
2431
3011
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2432
3012
|
let validatedArgs = [];
|
|
2433
3013
|
try {
|
|
2434
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3014
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTasks, request, response });
|
|
2435
3015
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2436
|
-
const controller = await container.get(
|
|
3016
|
+
const controller = await container.get(TaskController);
|
|
2437
3017
|
if (typeof controller['setStatus'] === 'function') {
|
|
2438
3018
|
controller.setStatus(undefined);
|
|
2439
3019
|
}
|
|
2440
3020
|
await templateService.apiHandler({
|
|
2441
|
-
methodName: '
|
|
3021
|
+
methodName: 'getTasks',
|
|
2442
3022
|
controller,
|
|
2443
3023
|
response,
|
|
2444
3024
|
next,
|
|
2445
3025
|
validatedArgs,
|
|
2446
|
-
successStatus:
|
|
3026
|
+
successStatus: undefined,
|
|
2447
3027
|
});
|
|
2448
3028
|
}
|
|
2449
3029
|
catch (err) {
|
|
@@ -2451,26 +3031,28 @@ export function RegisterRoutes(app) {
|
|
|
2451
3031
|
}
|
|
2452
3032
|
});
|
|
2453
3033
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2454
|
-
const
|
|
2455
|
-
|
|
3034
|
+
const argsTaskController_getTask = {
|
|
3035
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3036
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3037
|
+
wait: { "in": "query", "name": "wait", "dataType": "boolean" },
|
|
2456
3038
|
};
|
|
2457
|
-
app.
|
|
3039
|
+
app.get('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTask)), async function TaskController_getTask(request, response, next) {
|
|
2458
3040
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2459
3041
|
let validatedArgs = [];
|
|
2460
3042
|
try {
|
|
2461
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3043
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
|
|
2462
3044
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2463
|
-
const controller = await container.get(
|
|
3045
|
+
const controller = await container.get(TaskController);
|
|
2464
3046
|
if (typeof controller['setStatus'] === 'function') {
|
|
2465
3047
|
controller.setStatus(undefined);
|
|
2466
3048
|
}
|
|
2467
3049
|
await templateService.apiHandler({
|
|
2468
|
-
methodName: '
|
|
3050
|
+
methodName: 'getTask',
|
|
2469
3051
|
controller,
|
|
2470
3052
|
response,
|
|
2471
3053
|
next,
|
|
2472
3054
|
validatedArgs,
|
|
2473
|
-
successStatus:
|
|
3055
|
+
successStatus: undefined,
|
|
2474
3056
|
});
|
|
2475
3057
|
}
|
|
2476
3058
|
catch (err) {
|
|
@@ -2478,27 +3060,24 @@ export function RegisterRoutes(app) {
|
|
|
2478
3060
|
}
|
|
2479
3061
|
});
|
|
2480
3062
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2481
|
-
const
|
|
2482
|
-
|
|
2483
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2484
|
-
};
|
|
2485
|
-
app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
|
|
3063
|
+
const argsTaskController_deleteTasks = {};
|
|
3064
|
+
app.delete('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTasks)), async function TaskController_deleteTasks(request, response, next) {
|
|
2486
3065
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2487
3066
|
let validatedArgs = [];
|
|
2488
3067
|
try {
|
|
2489
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3068
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTasks, request, response });
|
|
2490
3069
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2491
|
-
const controller = await container.get(
|
|
3070
|
+
const controller = await container.get(TaskController);
|
|
2492
3071
|
if (typeof controller['setStatus'] === 'function') {
|
|
2493
3072
|
controller.setStatus(undefined);
|
|
2494
3073
|
}
|
|
2495
3074
|
await templateService.apiHandler({
|
|
2496
|
-
methodName: '
|
|
3075
|
+
methodName: 'deleteTasks',
|
|
2497
3076
|
controller,
|
|
2498
3077
|
response,
|
|
2499
3078
|
next,
|
|
2500
3079
|
validatedArgs,
|
|
2501
|
-
successStatus:
|
|
3080
|
+
successStatus: 204,
|
|
2502
3081
|
});
|
|
2503
3082
|
}
|
|
2504
3083
|
catch (err) {
|
|
@@ -2506,27 +3085,26 @@ export function RegisterRoutes(app) {
|
|
|
2506
3085
|
}
|
|
2507
3086
|
});
|
|
2508
3087
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2509
|
-
const
|
|
3088
|
+
const argsTaskController_deleteTask = {
|
|
2510
3089
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2511
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2512
3090
|
};
|
|
2513
|
-
app.
|
|
3091
|
+
app.delete('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTask)), async function TaskController_deleteTask(request, response, next) {
|
|
2514
3092
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2515
3093
|
let validatedArgs = [];
|
|
2516
3094
|
try {
|
|
2517
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3095
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTask, request, response });
|
|
2518
3096
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2519
|
-
const controller = await container.get(
|
|
3097
|
+
const controller = await container.get(TaskController);
|
|
2520
3098
|
if (typeof controller['setStatus'] === 'function') {
|
|
2521
3099
|
controller.setStatus(undefined);
|
|
2522
3100
|
}
|
|
2523
3101
|
await templateService.apiHandler({
|
|
2524
|
-
methodName: '
|
|
3102
|
+
methodName: 'deleteTask',
|
|
2525
3103
|
controller,
|
|
2526
3104
|
response,
|
|
2527
3105
|
next,
|
|
2528
3106
|
validatedArgs,
|
|
2529
|
-
successStatus:
|
|
3107
|
+
successStatus: 204,
|
|
2530
3108
|
});
|
|
2531
3109
|
}
|
|
2532
3110
|
catch (err) {
|
|
@@ -2534,30 +3112,27 @@ export function RegisterRoutes(app) {
|
|
|
2534
3112
|
}
|
|
2535
3113
|
});
|
|
2536
3114
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2541
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2542
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3115
|
+
const argsTaskController_abortTask = {
|
|
3116
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3117
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2543
3118
|
};
|
|
2544
|
-
app.
|
|
3119
|
+
app.post('/rest/v0/tasks/:id/actions/abort', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.abortTask)), async function TaskController_abortTask(request, response, next) {
|
|
2545
3120
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2546
3121
|
let validatedArgs = [];
|
|
2547
3122
|
try {
|
|
2548
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3123
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_abortTask, request, response });
|
|
2549
3124
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2550
|
-
const controller = await container.get(
|
|
3125
|
+
const controller = await container.get(TaskController);
|
|
2551
3126
|
if (typeof controller['setStatus'] === 'function') {
|
|
2552
3127
|
controller.setStatus(undefined);
|
|
2553
3128
|
}
|
|
2554
3129
|
await templateService.apiHandler({
|
|
2555
|
-
methodName: '
|
|
3130
|
+
methodName: 'abortTask',
|
|
2556
3131
|
controller,
|
|
2557
3132
|
response,
|
|
2558
3133
|
next,
|
|
2559
3134
|
validatedArgs,
|
|
2560
|
-
successStatus:
|
|
3135
|
+
successStatus: 202,
|
|
2561
3136
|
});
|
|
2562
3137
|
}
|
|
2563
3138
|
catch (err) {
|
|
@@ -2565,21 +3140,25 @@ export function RegisterRoutes(app) {
|
|
|
2565
3140
|
}
|
|
2566
3141
|
});
|
|
2567
3142
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2568
|
-
const
|
|
2569
|
-
|
|
3143
|
+
const argsSrController_getSrs = {
|
|
3144
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3145
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3146
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3147
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3148
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2570
3149
|
};
|
|
2571
|
-
app.get('/rest/v0/
|
|
3150
|
+
app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
|
|
2572
3151
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2573
3152
|
let validatedArgs = [];
|
|
2574
3153
|
try {
|
|
2575
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3154
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
|
|
2576
3155
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2577
|
-
const controller = await container.get(
|
|
3156
|
+
const controller = await container.get(SrController);
|
|
2578
3157
|
if (typeof controller['setStatus'] === 'function') {
|
|
2579
3158
|
controller.setStatus(undefined);
|
|
2580
3159
|
}
|
|
2581
3160
|
await templateService.apiHandler({
|
|
2582
|
-
methodName: '
|
|
3161
|
+
methodName: 'getSrs',
|
|
2583
3162
|
controller,
|
|
2584
3163
|
response,
|
|
2585
3164
|
next,
|
|
@@ -2592,27 +3171,26 @@ export function RegisterRoutes(app) {
|
|
|
2592
3171
|
}
|
|
2593
3172
|
});
|
|
2594
3173
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2595
|
-
const
|
|
3174
|
+
const argsSrController_getSr = {
|
|
2596
3175
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2597
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2598
3176
|
};
|
|
2599
|
-
app.
|
|
3177
|
+
app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
|
|
2600
3178
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2601
3179
|
let validatedArgs = [];
|
|
2602
3180
|
try {
|
|
2603
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3181
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
|
|
2604
3182
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2605
|
-
const controller = await container.get(
|
|
3183
|
+
const controller = await container.get(SrController);
|
|
2606
3184
|
if (typeof controller['setStatus'] === 'function') {
|
|
2607
3185
|
controller.setStatus(undefined);
|
|
2608
3186
|
}
|
|
2609
3187
|
await templateService.apiHandler({
|
|
2610
|
-
methodName: '
|
|
3188
|
+
methodName: 'getSr',
|
|
2611
3189
|
controller,
|
|
2612
3190
|
response,
|
|
2613
3191
|
next,
|
|
2614
3192
|
validatedArgs,
|
|
2615
|
-
successStatus:
|
|
3193
|
+
successStatus: undefined,
|
|
2616
3194
|
});
|
|
2617
3195
|
}
|
|
2618
3196
|
catch (err) {
|
|
@@ -2620,25 +3198,26 @@ export function RegisterRoutes(app) {
|
|
|
2620
3198
|
}
|
|
2621
3199
|
});
|
|
2622
3200
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2623
|
-
const
|
|
3201
|
+
const argsSrController_getSrAlarms = {
|
|
2624
3202
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3203
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2625
3204
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2626
3205
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2627
3206
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2628
3207
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2629
3208
|
};
|
|
2630
|
-
app.get('/rest/v0/
|
|
3209
|
+
app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
|
|
2631
3210
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2632
3211
|
let validatedArgs = [];
|
|
2633
3212
|
try {
|
|
2634
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3213
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
|
|
2635
3214
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2636
|
-
const controller = await container.get(
|
|
3215
|
+
const controller = await container.get(SrController);
|
|
2637
3216
|
if (typeof controller['setStatus'] === 'function') {
|
|
2638
3217
|
controller.setStatus(undefined);
|
|
2639
3218
|
}
|
|
2640
3219
|
await templateService.apiHandler({
|
|
2641
|
-
methodName: '
|
|
3220
|
+
methodName: 'getSrAlarms',
|
|
2642
3221
|
controller,
|
|
2643
3222
|
response,
|
|
2644
3223
|
next,
|
|
@@ -2651,26 +3230,30 @@ export function RegisterRoutes(app) {
|
|
|
2651
3230
|
}
|
|
2652
3231
|
});
|
|
2653
3232
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2654
|
-
const
|
|
3233
|
+
const argsSrController_srImportVdi = {
|
|
3234
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2655
3235
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3236
|
+
name_label: { "in": "query", "name": "name_label", "dataType": "string" },
|
|
3237
|
+
name_description: { "in": "query", "name": "name_description", "dataType": "string" },
|
|
3238
|
+
raw: { "in": "query", "name": "raw", "dataType": "boolean" },
|
|
2656
3239
|
};
|
|
2657
|
-
app.
|
|
3240
|
+
app.post('/rest/v0/srs/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.srImportVdi)), async function SrController_srImportVdi(request, response, next) {
|
|
2658
3241
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2659
3242
|
let validatedArgs = [];
|
|
2660
3243
|
try {
|
|
2661
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3244
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_srImportVdi, request, response });
|
|
2662
3245
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2663
|
-
const controller = await container.get(
|
|
3246
|
+
const controller = await container.get(SrController);
|
|
2664
3247
|
if (typeof controller['setStatus'] === 'function') {
|
|
2665
3248
|
controller.setStatus(undefined);
|
|
2666
3249
|
}
|
|
2667
3250
|
await templateService.apiHandler({
|
|
2668
|
-
methodName: '
|
|
3251
|
+
methodName: 'srImportVdi',
|
|
2669
3252
|
controller,
|
|
2670
3253
|
response,
|
|
2671
3254
|
next,
|
|
2672
3255
|
validatedArgs,
|
|
2673
|
-
successStatus:
|
|
3256
|
+
successStatus: 201,
|
|
2674
3257
|
});
|
|
2675
3258
|
}
|
|
2676
3259
|
catch (err) {
|
|
@@ -2678,28 +3261,30 @@ export function RegisterRoutes(app) {
|
|
|
2678
3261
|
}
|
|
2679
3262
|
});
|
|
2680
3263
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2681
|
-
const
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
3264
|
+
const argsSmController_getSrs = {
|
|
3265
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3266
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3267
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3268
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3269
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2685
3270
|
};
|
|
2686
|
-
app.
|
|
3271
|
+
app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
|
|
2687
3272
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2688
3273
|
let validatedArgs = [];
|
|
2689
3274
|
try {
|
|
2690
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3275
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
|
|
2691
3276
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2692
|
-
const controller = await container.get(
|
|
3277
|
+
const controller = await container.get(SmController);
|
|
2693
3278
|
if (typeof controller['setStatus'] === 'function') {
|
|
2694
3279
|
controller.setStatus(undefined);
|
|
2695
3280
|
}
|
|
2696
3281
|
await templateService.apiHandler({
|
|
2697
|
-
methodName: '
|
|
3282
|
+
methodName: 'getSrs',
|
|
2698
3283
|
controller,
|
|
2699
3284
|
response,
|
|
2700
3285
|
next,
|
|
2701
3286
|
validatedArgs,
|
|
2702
|
-
successStatus:
|
|
3287
|
+
successStatus: undefined,
|
|
2703
3288
|
});
|
|
2704
3289
|
}
|
|
2705
3290
|
catch (err) {
|
|
@@ -2707,27 +3292,26 @@ export function RegisterRoutes(app) {
|
|
|
2707
3292
|
}
|
|
2708
3293
|
});
|
|
2709
3294
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2710
|
-
const
|
|
3295
|
+
const argsSmController_getSr = {
|
|
2711
3296
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2712
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2713
3297
|
};
|
|
2714
|
-
app.
|
|
3298
|
+
app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
|
|
2715
3299
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2716
3300
|
let validatedArgs = [];
|
|
2717
3301
|
try {
|
|
2718
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3302
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
|
|
2719
3303
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2720
|
-
const controller = await container.get(
|
|
3304
|
+
const controller = await container.get(SmController);
|
|
2721
3305
|
if (typeof controller['setStatus'] === 'function') {
|
|
2722
3306
|
controller.setStatus(undefined);
|
|
2723
3307
|
}
|
|
2724
3308
|
await templateService.apiHandler({
|
|
2725
|
-
methodName: '
|
|
3309
|
+
methodName: 'getSr',
|
|
2726
3310
|
controller,
|
|
2727
3311
|
response,
|
|
2728
3312
|
next,
|
|
2729
3313
|
validatedArgs,
|
|
2730
|
-
successStatus:
|
|
3314
|
+
successStatus: undefined,
|
|
2731
3315
|
});
|
|
2732
3316
|
}
|
|
2733
3317
|
catch (err) {
|
|
@@ -2735,27 +3319,30 @@ export function RegisterRoutes(app) {
|
|
|
2735
3319
|
}
|
|
2736
3320
|
});
|
|
2737
3321
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2738
|
-
const
|
|
2739
|
-
|
|
2740
|
-
|
|
3322
|
+
const argsServerController_getServers = {
|
|
3323
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3324
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3325
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3326
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3327
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2741
3328
|
};
|
|
2742
|
-
app.
|
|
3329
|
+
app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
|
|
2743
3330
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2744
3331
|
let validatedArgs = [];
|
|
2745
3332
|
try {
|
|
2746
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3333
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
|
|
2747
3334
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2748
|
-
const controller = await container.get(
|
|
3335
|
+
const controller = await container.get(ServerController);
|
|
2749
3336
|
if (typeof controller['setStatus'] === 'function') {
|
|
2750
3337
|
controller.setStatus(undefined);
|
|
2751
3338
|
}
|
|
2752
3339
|
await templateService.apiHandler({
|
|
2753
|
-
methodName: '
|
|
3340
|
+
methodName: 'getServers',
|
|
2754
3341
|
controller,
|
|
2755
3342
|
response,
|
|
2756
3343
|
next,
|
|
2757
3344
|
validatedArgs,
|
|
2758
|
-
successStatus:
|
|
3345
|
+
successStatus: undefined,
|
|
2759
3346
|
});
|
|
2760
3347
|
}
|
|
2761
3348
|
catch (err) {
|
|
@@ -2763,27 +3350,26 @@ export function RegisterRoutes(app) {
|
|
|
2763
3350
|
}
|
|
2764
3351
|
});
|
|
2765
3352
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2766
|
-
const
|
|
3353
|
+
const argsServerController_getServer = {
|
|
2767
3354
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2768
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2769
3355
|
};
|
|
2770
|
-
app.
|
|
3356
|
+
app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
|
|
2771
3357
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2772
3358
|
let validatedArgs = [];
|
|
2773
3359
|
try {
|
|
2774
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3360
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
|
|
2775
3361
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2776
|
-
const controller = await container.get(
|
|
3362
|
+
const controller = await container.get(ServerController);
|
|
2777
3363
|
if (typeof controller['setStatus'] === 'function') {
|
|
2778
3364
|
controller.setStatus(undefined);
|
|
2779
3365
|
}
|
|
2780
3366
|
await templateService.apiHandler({
|
|
2781
|
-
methodName: '
|
|
3367
|
+
methodName: 'getServer',
|
|
2782
3368
|
controller,
|
|
2783
3369
|
response,
|
|
2784
3370
|
next,
|
|
2785
3371
|
validatedArgs,
|
|
2786
|
-
successStatus:
|
|
3372
|
+
successStatus: undefined,
|
|
2787
3373
|
});
|
|
2788
3374
|
}
|
|
2789
3375
|
catch (err) {
|
|
@@ -2791,28 +3377,26 @@ export function RegisterRoutes(app) {
|
|
|
2791
3377
|
}
|
|
2792
3378
|
});
|
|
2793
3379
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2794
|
-
const
|
|
2795
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3380
|
+
const argsServerController_deleteServer = {
|
|
2796
3381
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2797
|
-
sr: { "in": "query", "name": "sr", "dataType": "string" },
|
|
2798
3382
|
};
|
|
2799
|
-
app.
|
|
3383
|
+
app.delete('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.deleteServer)), async function ServerController_deleteServer(request, response, next) {
|
|
2800
3384
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2801
3385
|
let validatedArgs = [];
|
|
2802
3386
|
try {
|
|
2803
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3387
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_deleteServer, request, response });
|
|
2804
3388
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2805
|
-
const controller = await container.get(
|
|
3389
|
+
const controller = await container.get(ServerController);
|
|
2806
3390
|
if (typeof controller['setStatus'] === 'function') {
|
|
2807
3391
|
controller.setStatus(undefined);
|
|
2808
3392
|
}
|
|
2809
3393
|
await templateService.apiHandler({
|
|
2810
|
-
methodName: '
|
|
3394
|
+
methodName: 'deleteServer',
|
|
2811
3395
|
controller,
|
|
2812
3396
|
response,
|
|
2813
3397
|
next,
|
|
2814
3398
|
validatedArgs,
|
|
2815
|
-
successStatus:
|
|
3399
|
+
successStatus: 204,
|
|
2816
3400
|
});
|
|
2817
3401
|
}
|
|
2818
3402
|
catch (err) {
|
|
@@ -2820,23 +3404,21 @@ export function RegisterRoutes(app) {
|
|
|
2820
3404
|
}
|
|
2821
3405
|
});
|
|
2822
3406
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2825
|
-
body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
|
|
2826
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3407
|
+
const argsServerController_addServer = {
|
|
3408
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "InsertableXoServer" },
|
|
2827
3409
|
};
|
|
2828
|
-
app.post('/rest/v0/
|
|
3410
|
+
app.post('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.addServer)), async function ServerController_addServer(request, response, next) {
|
|
2829
3411
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2830
3412
|
let validatedArgs = [];
|
|
2831
3413
|
try {
|
|
2832
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3414
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_addServer, request, response });
|
|
2833
3415
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2834
|
-
const controller = await container.get(
|
|
3416
|
+
const controller = await container.get(ServerController);
|
|
2835
3417
|
if (typeof controller['setStatus'] === 'function') {
|
|
2836
3418
|
controller.setStatus(undefined);
|
|
2837
3419
|
}
|
|
2838
3420
|
await templateService.apiHandler({
|
|
2839
|
-
methodName: '
|
|
3421
|
+
methodName: 'addServer',
|
|
2840
3422
|
controller,
|
|
2841
3423
|
response,
|
|
2842
3424
|
next,
|
|
@@ -2849,27 +3431,27 @@ export function RegisterRoutes(app) {
|
|
|
2849
3431
|
}
|
|
2850
3432
|
});
|
|
2851
3433
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2852
|
-
const
|
|
3434
|
+
const argsServerController_connectServer = {
|
|
2853
3435
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2854
|
-
|
|
3436
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2855
3437
|
};
|
|
2856
|
-
app.
|
|
3438
|
+
app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
|
|
2857
3439
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2858
3440
|
let validatedArgs = [];
|
|
2859
3441
|
try {
|
|
2860
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3442
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_connectServer, request, response });
|
|
2861
3443
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2862
|
-
const controller = await container.get(
|
|
3444
|
+
const controller = await container.get(ServerController);
|
|
2863
3445
|
if (typeof controller['setStatus'] === 'function') {
|
|
2864
3446
|
controller.setStatus(undefined);
|
|
2865
3447
|
}
|
|
2866
3448
|
await templateService.apiHandler({
|
|
2867
|
-
methodName: '
|
|
3449
|
+
methodName: 'connectServer',
|
|
2868
3450
|
controller,
|
|
2869
3451
|
response,
|
|
2870
3452
|
next,
|
|
2871
3453
|
validatedArgs,
|
|
2872
|
-
successStatus:
|
|
3454
|
+
successStatus: 202,
|
|
2873
3455
|
});
|
|
2874
3456
|
}
|
|
2875
3457
|
catch (err) {
|
|
@@ -2877,28 +3459,27 @@ export function RegisterRoutes(app) {
|
|
|
2877
3459
|
}
|
|
2878
3460
|
});
|
|
2879
3461
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2880
|
-
const
|
|
2881
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3462
|
+
const argsServerController_disconnectServer = {
|
|
2882
3463
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2883
|
-
|
|
3464
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2884
3465
|
};
|
|
2885
|
-
app.
|
|
3466
|
+
app.post('/rest/v0/servers/:id/actions/disconnect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.disconnectServer)), async function ServerController_disconnectServer(request, response, next) {
|
|
2886
3467
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2887
3468
|
let validatedArgs = [];
|
|
2888
3469
|
try {
|
|
2889
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3470
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_disconnectServer, request, response });
|
|
2890
3471
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2891
|
-
const controller = await container.get(
|
|
3472
|
+
const controller = await container.get(ServerController);
|
|
2892
3473
|
if (typeof controller['setStatus'] === 'function') {
|
|
2893
3474
|
controller.setStatus(undefined);
|
|
2894
3475
|
}
|
|
2895
3476
|
await templateService.apiHandler({
|
|
2896
|
-
methodName: '
|
|
3477
|
+
methodName: 'disconnectServer',
|
|
2897
3478
|
controller,
|
|
2898
3479
|
response,
|
|
2899
3480
|
next,
|
|
2900
3481
|
validatedArgs,
|
|
2901
|
-
successStatus:
|
|
3482
|
+
successStatus: 202,
|
|
2902
3483
|
});
|
|
2903
3484
|
}
|
|
2904
3485
|
catch (err) {
|
|
@@ -2906,26 +3487,25 @@ export function RegisterRoutes(app) {
|
|
|
2906
3487
|
}
|
|
2907
3488
|
});
|
|
2908
3489
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2909
|
-
const
|
|
3490
|
+
const argsScheduleController_getSchedules = {
|
|
2910
3491
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2911
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2912
3492
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2913
3493
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2914
3494
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2915
3495
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2916
3496
|
};
|
|
2917
|
-
app.get('/rest/v0/
|
|
3497
|
+
app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
|
|
2918
3498
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2919
3499
|
let validatedArgs = [];
|
|
2920
3500
|
try {
|
|
2921
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3501
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
|
|
2922
3502
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2923
|
-
const controller = await container.get(
|
|
3503
|
+
const controller = await container.get(ScheduleController);
|
|
2924
3504
|
if (typeof controller['setStatus'] === 'function') {
|
|
2925
3505
|
controller.setStatus(undefined);
|
|
2926
3506
|
}
|
|
2927
3507
|
await templateService.apiHandler({
|
|
2928
|
-
methodName: '
|
|
3508
|
+
methodName: 'getSchedules',
|
|
2929
3509
|
controller,
|
|
2930
3510
|
response,
|
|
2931
3511
|
next,
|
|
@@ -2938,25 +3518,21 @@ export function RegisterRoutes(app) {
|
|
|
2938
3518
|
}
|
|
2939
3519
|
});
|
|
2940
3520
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2941
|
-
const
|
|
2942
|
-
|
|
2943
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2944
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2945
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2946
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3521
|
+
const argsScheduleController_getSchedule = {
|
|
3522
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2947
3523
|
};
|
|
2948
|
-
app.get('/rest/v0/
|
|
3524
|
+
app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
|
|
2949
3525
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2950
3526
|
let validatedArgs = [];
|
|
2951
3527
|
try {
|
|
2952
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3528
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
|
|
2953
3529
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2954
|
-
const controller = await container.get(
|
|
3530
|
+
const controller = await container.get(ScheduleController);
|
|
2955
3531
|
if (typeof controller['setStatus'] === 'function') {
|
|
2956
3532
|
controller.setStatus(undefined);
|
|
2957
3533
|
}
|
|
2958
3534
|
await templateService.apiHandler({
|
|
2959
|
-
methodName: '
|
|
3535
|
+
methodName: 'getSchedule',
|
|
2960
3536
|
controller,
|
|
2961
3537
|
response,
|
|
2962
3538
|
next,
|
|
@@ -2969,26 +3545,27 @@ export function RegisterRoutes(app) {
|
|
|
2969
3545
|
}
|
|
2970
3546
|
});
|
|
2971
3547
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2972
|
-
const
|
|
3548
|
+
const argsScheduleController_runSchedule = {
|
|
2973
3549
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3550
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2974
3551
|
};
|
|
2975
|
-
app.
|
|
3552
|
+
app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
|
|
2976
3553
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2977
3554
|
let validatedArgs = [];
|
|
2978
3555
|
try {
|
|
2979
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3556
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
|
|
2980
3557
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2981
|
-
const controller = await container.get(
|
|
3558
|
+
const controller = await container.get(ScheduleController);
|
|
2982
3559
|
if (typeof controller['setStatus'] === 'function') {
|
|
2983
3560
|
controller.setStatus(undefined);
|
|
2984
3561
|
}
|
|
2985
3562
|
await templateService.apiHandler({
|
|
2986
|
-
methodName: '
|
|
3563
|
+
methodName: 'runSchedule',
|
|
2987
3564
|
controller,
|
|
2988
3565
|
response,
|
|
2989
3566
|
next,
|
|
2990
3567
|
validatedArgs,
|
|
2991
|
-
successStatus:
|
|
3568
|
+
successStatus: 202,
|
|
2992
3569
|
});
|
|
2993
3570
|
}
|
|
2994
3571
|
catch (err) {
|
|
@@ -2996,26 +3573,25 @@ export function RegisterRoutes(app) {
|
|
|
2996
3573
|
}
|
|
2997
3574
|
});
|
|
2998
3575
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2999
|
-
const
|
|
3576
|
+
const argsRestoreLogController_getRestoreLogs = {
|
|
3000
3577
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3001
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3002
3578
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3003
3579
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3004
3580
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3005
3581
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3006
3582
|
};
|
|
3007
|
-
app.get('/rest/v0/
|
|
3583
|
+
app.get('/rest/v0/restore-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLogs)), async function RestoreLogController_getRestoreLogs(request, response, next) {
|
|
3008
3584
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3009
3585
|
let validatedArgs = [];
|
|
3010
3586
|
try {
|
|
3011
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3587
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLogs, request, response });
|
|
3012
3588
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3013
|
-
const controller = await container.get(
|
|
3589
|
+
const controller = await container.get(RestoreLogController);
|
|
3014
3590
|
if (typeof controller['setStatus'] === 'function') {
|
|
3015
3591
|
controller.setStatus(undefined);
|
|
3016
3592
|
}
|
|
3017
3593
|
await templateService.apiHandler({
|
|
3018
|
-
methodName: '
|
|
3594
|
+
methodName: 'getRestoreLogs',
|
|
3019
3595
|
controller,
|
|
3020
3596
|
response,
|
|
3021
3597
|
next,
|
|
@@ -3028,25 +3604,52 @@ export function RegisterRoutes(app) {
|
|
|
3028
3604
|
}
|
|
3029
3605
|
});
|
|
3030
3606
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3031
|
-
const
|
|
3607
|
+
const argsRestoreLogController_getRestoreLog = {
|
|
3608
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3609
|
+
};
|
|
3610
|
+
app.get('/rest/v0/restore-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLog)), async function RestoreLogController_getRestoreLog(request, response, next) {
|
|
3611
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3612
|
+
let validatedArgs = [];
|
|
3613
|
+
try {
|
|
3614
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLog, request, response });
|
|
3615
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3616
|
+
const controller = await container.get(RestoreLogController);
|
|
3617
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3618
|
+
controller.setStatus(undefined);
|
|
3619
|
+
}
|
|
3620
|
+
await templateService.apiHandler({
|
|
3621
|
+
methodName: 'getRestoreLog',
|
|
3622
|
+
controller,
|
|
3623
|
+
response,
|
|
3624
|
+
next,
|
|
3625
|
+
validatedArgs,
|
|
3626
|
+
successStatus: undefined,
|
|
3627
|
+
});
|
|
3628
|
+
}
|
|
3629
|
+
catch (err) {
|
|
3630
|
+
return next(err);
|
|
3631
|
+
}
|
|
3632
|
+
});
|
|
3633
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3634
|
+
const argsDeprecatedRestoreController_getDeprecatedRestoreLogs = {
|
|
3032
3635
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3033
3636
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3034
3637
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3035
3638
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3036
3639
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3037
3640
|
};
|
|
3038
|
-
app.get('/rest/v0/
|
|
3641
|
+
app.get('/rest/v0/restore/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLogs)), async function DeprecatedRestoreController_getDeprecatedRestoreLogs(request, response, next) {
|
|
3039
3642
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3040
3643
|
let validatedArgs = [];
|
|
3041
3644
|
try {
|
|
3042
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3645
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLogs, request, response });
|
|
3043
3646
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3044
|
-
const controller = await container.get(
|
|
3647
|
+
const controller = await container.get(DeprecatedRestoreController);
|
|
3045
3648
|
if (typeof controller['setStatus'] === 'function') {
|
|
3046
3649
|
controller.setStatus(undefined);
|
|
3047
3650
|
}
|
|
3048
3651
|
await templateService.apiHandler({
|
|
3049
|
-
methodName: '
|
|
3652
|
+
methodName: 'getDeprecatedRestoreLogs',
|
|
3050
3653
|
controller,
|
|
3051
3654
|
response,
|
|
3052
3655
|
next,
|
|
@@ -3059,21 +3662,1006 @@ export function RegisterRoutes(app) {
|
|
|
3059
3662
|
}
|
|
3060
3663
|
});
|
|
3061
3664
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3062
|
-
const
|
|
3665
|
+
const argsDeprecatedRestoreController_getDeprecatedRestoreLog = {
|
|
3063
3666
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3064
3667
|
};
|
|
3065
|
-
app.get('/rest/v0/
|
|
3668
|
+
app.get('/rest/v0/restore/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLog)), async function DeprecatedRestoreController_getDeprecatedRestoreLog(request, response, next) {
|
|
3066
3669
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3067
3670
|
let validatedArgs = [];
|
|
3068
3671
|
try {
|
|
3069
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3672
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLog, request, response });
|
|
3070
3673
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3071
|
-
const controller = await container.get(
|
|
3674
|
+
const controller = await container.get(DeprecatedRestoreController);
|
|
3072
3675
|
if (typeof controller['setStatus'] === 'function') {
|
|
3073
3676
|
controller.setStatus(undefined);
|
|
3074
3677
|
}
|
|
3075
3678
|
await templateService.apiHandler({
|
|
3076
|
-
methodName: '
|
|
3679
|
+
methodName: 'getDeprecatedRestoreLog',
|
|
3680
|
+
controller,
|
|
3681
|
+
response,
|
|
3682
|
+
next,
|
|
3683
|
+
validatedArgs,
|
|
3684
|
+
successStatus: undefined,
|
|
3685
|
+
});
|
|
3686
|
+
}
|
|
3687
|
+
catch (err) {
|
|
3688
|
+
return next(err);
|
|
3689
|
+
}
|
|
3690
|
+
});
|
|
3691
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3692
|
+
const argsProxyController_getProxies = {
|
|
3693
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3694
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3695
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3696
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3697
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3698
|
+
};
|
|
3699
|
+
app.get('/rest/v0/proxies', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxies)), async function ProxyController_getProxies(request, response, next) {
|
|
3700
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3701
|
+
let validatedArgs = [];
|
|
3702
|
+
try {
|
|
3703
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxies, request, response });
|
|
3704
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3705
|
+
const controller = await container.get(ProxyController);
|
|
3706
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3707
|
+
controller.setStatus(undefined);
|
|
3708
|
+
}
|
|
3709
|
+
await templateService.apiHandler({
|
|
3710
|
+
methodName: 'getProxies',
|
|
3711
|
+
controller,
|
|
3712
|
+
response,
|
|
3713
|
+
next,
|
|
3714
|
+
validatedArgs,
|
|
3715
|
+
successStatus: undefined,
|
|
3716
|
+
});
|
|
3717
|
+
}
|
|
3718
|
+
catch (err) {
|
|
3719
|
+
return next(err);
|
|
3720
|
+
}
|
|
3721
|
+
});
|
|
3722
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3723
|
+
const argsProxyController_getProxy = {
|
|
3724
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3725
|
+
};
|
|
3726
|
+
app.get('/rest/v0/proxies/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxy)), async function ProxyController_getProxy(request, response, next) {
|
|
3727
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3728
|
+
let validatedArgs = [];
|
|
3729
|
+
try {
|
|
3730
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxy, request, response });
|
|
3731
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3732
|
+
const controller = await container.get(ProxyController);
|
|
3733
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3734
|
+
controller.setStatus(undefined);
|
|
3735
|
+
}
|
|
3736
|
+
await templateService.apiHandler({
|
|
3737
|
+
methodName: 'getProxy',
|
|
3738
|
+
controller,
|
|
3739
|
+
response,
|
|
3740
|
+
next,
|
|
3741
|
+
validatedArgs,
|
|
3742
|
+
successStatus: undefined,
|
|
3743
|
+
});
|
|
3744
|
+
}
|
|
3745
|
+
catch (err) {
|
|
3746
|
+
return next(err);
|
|
3747
|
+
}
|
|
3748
|
+
});
|
|
3749
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3750
|
+
const argsPoolController_getPools = {
|
|
3751
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3752
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3753
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3754
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3755
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3756
|
+
};
|
|
3757
|
+
app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPools)), async function PoolController_getPools(request, response, next) {
|
|
3758
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3759
|
+
let validatedArgs = [];
|
|
3760
|
+
try {
|
|
3761
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPools, request, response });
|
|
3762
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3763
|
+
const controller = await container.get(PoolController);
|
|
3764
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3765
|
+
controller.setStatus(undefined);
|
|
3766
|
+
}
|
|
3767
|
+
await templateService.apiHandler({
|
|
3768
|
+
methodName: 'getPools',
|
|
3769
|
+
controller,
|
|
3770
|
+
response,
|
|
3771
|
+
next,
|
|
3772
|
+
validatedArgs,
|
|
3773
|
+
successStatus: undefined,
|
|
3774
|
+
});
|
|
3775
|
+
}
|
|
3776
|
+
catch (err) {
|
|
3777
|
+
return next(err);
|
|
3778
|
+
}
|
|
3779
|
+
});
|
|
3780
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3781
|
+
const argsPoolController_getPool = {
|
|
3782
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3783
|
+
};
|
|
3784
|
+
app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPool)), async function PoolController_getPool(request, response, next) {
|
|
3785
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3786
|
+
let validatedArgs = [];
|
|
3787
|
+
try {
|
|
3788
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPool, request, response });
|
|
3789
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3790
|
+
const controller = await container.get(PoolController);
|
|
3791
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3792
|
+
controller.setStatus(undefined);
|
|
3793
|
+
}
|
|
3794
|
+
await templateService.apiHandler({
|
|
3795
|
+
methodName: 'getPool',
|
|
3796
|
+
controller,
|
|
3797
|
+
response,
|
|
3798
|
+
next,
|
|
3799
|
+
validatedArgs,
|
|
3800
|
+
successStatus: undefined,
|
|
3801
|
+
});
|
|
3802
|
+
}
|
|
3803
|
+
catch (err) {
|
|
3804
|
+
return next(err);
|
|
3805
|
+
}
|
|
3806
|
+
});
|
|
3807
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3808
|
+
const argsPoolController_createNetwork = {
|
|
3809
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3810
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateNetworkBody" },
|
|
3811
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3812
|
+
};
|
|
3813
|
+
app.post('/rest/v0/pools/:id/actions/create_network', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createNetwork)), async function PoolController_createNetwork(request, response, next) {
|
|
3814
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3815
|
+
let validatedArgs = [];
|
|
3816
|
+
try {
|
|
3817
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createNetwork, request, response });
|
|
3818
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3819
|
+
const controller = await container.get(PoolController);
|
|
3820
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3821
|
+
controller.setStatus(undefined);
|
|
3822
|
+
}
|
|
3823
|
+
await templateService.apiHandler({
|
|
3824
|
+
methodName: 'createNetwork',
|
|
3825
|
+
controller,
|
|
3826
|
+
response,
|
|
3827
|
+
next,
|
|
3828
|
+
validatedArgs,
|
|
3829
|
+
successStatus: 201,
|
|
3830
|
+
});
|
|
3831
|
+
}
|
|
3832
|
+
catch (err) {
|
|
3833
|
+
return next(err);
|
|
3834
|
+
}
|
|
3835
|
+
});
|
|
3836
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3837
|
+
const argsPoolController_emergencyShutdown = {
|
|
3838
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3839
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3840
|
+
};
|
|
3841
|
+
app.post('/rest/v0/pools/:id/actions/emergency_shutdown', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.emergencyShutdown)), async function PoolController_emergencyShutdown(request, response, next) {
|
|
3842
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3843
|
+
let validatedArgs = [];
|
|
3844
|
+
try {
|
|
3845
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_emergencyShutdown, request, response });
|
|
3846
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3847
|
+
const controller = await container.get(PoolController);
|
|
3848
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3849
|
+
controller.setStatus(undefined);
|
|
3850
|
+
}
|
|
3851
|
+
await templateService.apiHandler({
|
|
3852
|
+
methodName: 'emergencyShutdown',
|
|
3853
|
+
controller,
|
|
3854
|
+
response,
|
|
3855
|
+
next,
|
|
3856
|
+
validatedArgs,
|
|
3857
|
+
successStatus: 202,
|
|
3858
|
+
});
|
|
3859
|
+
}
|
|
3860
|
+
catch (err) {
|
|
3861
|
+
return next(err);
|
|
3862
|
+
}
|
|
3863
|
+
});
|
|
3864
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3865
|
+
const argsPoolController_rollingReboot = {
|
|
3866
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3867
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3868
|
+
};
|
|
3869
|
+
app.post('/rest/v0/pools/:id/actions/rolling_reboot', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingReboot)), async function PoolController_rollingReboot(request, response, next) {
|
|
3870
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3871
|
+
let validatedArgs = [];
|
|
3872
|
+
try {
|
|
3873
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingReboot, request, response });
|
|
3874
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3875
|
+
const controller = await container.get(PoolController);
|
|
3876
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3877
|
+
controller.setStatus(undefined);
|
|
3878
|
+
}
|
|
3879
|
+
await templateService.apiHandler({
|
|
3880
|
+
methodName: 'rollingReboot',
|
|
3881
|
+
controller,
|
|
3882
|
+
response,
|
|
3883
|
+
next,
|
|
3884
|
+
validatedArgs,
|
|
3885
|
+
successStatus: 202,
|
|
3886
|
+
});
|
|
3887
|
+
}
|
|
3888
|
+
catch (err) {
|
|
3889
|
+
return next(err);
|
|
3890
|
+
}
|
|
3891
|
+
});
|
|
3892
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3893
|
+
const argsPoolController_rollingUpdate = {
|
|
3894
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3895
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3896
|
+
};
|
|
3897
|
+
app.post('/rest/v0/pools/:id/actions/rolling_update', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingUpdate)), async function PoolController_rollingUpdate(request, response, next) {
|
|
3898
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3899
|
+
let validatedArgs = [];
|
|
3900
|
+
try {
|
|
3901
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingUpdate, request, response });
|
|
3902
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3903
|
+
const controller = await container.get(PoolController);
|
|
3904
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3905
|
+
controller.setStatus(undefined);
|
|
3906
|
+
}
|
|
3907
|
+
await templateService.apiHandler({
|
|
3908
|
+
methodName: 'rollingUpdate',
|
|
3909
|
+
controller,
|
|
3910
|
+
response,
|
|
3911
|
+
next,
|
|
3912
|
+
validatedArgs,
|
|
3913
|
+
successStatus: 202,
|
|
3914
|
+
});
|
|
3915
|
+
}
|
|
3916
|
+
catch (err) {
|
|
3917
|
+
return next(err);
|
|
3918
|
+
}
|
|
3919
|
+
});
|
|
3920
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3921
|
+
const argsPoolController_importVm = {
|
|
3922
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3923
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3924
|
+
sr: { "in": "query", "name": "sr", "dataType": "string" },
|
|
3925
|
+
};
|
|
3926
|
+
app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
|
|
3927
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3928
|
+
let validatedArgs = [];
|
|
3929
|
+
try {
|
|
3930
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
|
|
3931
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3932
|
+
const controller = await container.get(PoolController);
|
|
3933
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3934
|
+
controller.setStatus(undefined);
|
|
3935
|
+
}
|
|
3936
|
+
await templateService.apiHandler({
|
|
3937
|
+
methodName: 'importVm',
|
|
3938
|
+
controller,
|
|
3939
|
+
response,
|
|
3940
|
+
next,
|
|
3941
|
+
validatedArgs,
|
|
3942
|
+
successStatus: 201,
|
|
3943
|
+
});
|
|
3944
|
+
}
|
|
3945
|
+
catch (err) {
|
|
3946
|
+
return next(err);
|
|
3947
|
+
}
|
|
3948
|
+
});
|
|
3949
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3950
|
+
const argsPoolController_createVm = {
|
|
3951
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3952
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
|
|
3953
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3954
|
+
};
|
|
3955
|
+
app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
|
|
3956
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3957
|
+
let validatedArgs = [];
|
|
3958
|
+
try {
|
|
3959
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
|
|
3960
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3961
|
+
const controller = await container.get(PoolController);
|
|
3962
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3963
|
+
controller.setStatus(undefined);
|
|
3964
|
+
}
|
|
3965
|
+
await templateService.apiHandler({
|
|
3966
|
+
methodName: 'createVm',
|
|
3967
|
+
controller,
|
|
3968
|
+
response,
|
|
3969
|
+
next,
|
|
3970
|
+
validatedArgs,
|
|
3971
|
+
successStatus: 201,
|
|
3972
|
+
});
|
|
3973
|
+
}
|
|
3974
|
+
catch (err) {
|
|
3975
|
+
return next(err);
|
|
3976
|
+
}
|
|
3977
|
+
});
|
|
3978
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3979
|
+
const argsPoolController_getStats = {
|
|
3980
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3981
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
3982
|
+
};
|
|
3983
|
+
app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
|
|
3984
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3985
|
+
let validatedArgs = [];
|
|
3986
|
+
try {
|
|
3987
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
|
|
3988
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3989
|
+
const controller = await container.get(PoolController);
|
|
3990
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3991
|
+
controller.setStatus(undefined);
|
|
3992
|
+
}
|
|
3993
|
+
await templateService.apiHandler({
|
|
3994
|
+
methodName: 'getStats',
|
|
3995
|
+
controller,
|
|
3996
|
+
response,
|
|
3997
|
+
next,
|
|
3998
|
+
validatedArgs,
|
|
3999
|
+
successStatus: undefined,
|
|
4000
|
+
});
|
|
4001
|
+
}
|
|
4002
|
+
catch (err) {
|
|
4003
|
+
return next(err);
|
|
4004
|
+
}
|
|
4005
|
+
});
|
|
4006
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4007
|
+
const argsPoolController_getPoolDashboard = {
|
|
4008
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4009
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4010
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4011
|
+
};
|
|
4012
|
+
app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
|
|
4013
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4014
|
+
let validatedArgs = [];
|
|
4015
|
+
try {
|
|
4016
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
|
|
4017
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4018
|
+
const controller = await container.get(PoolController);
|
|
4019
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4020
|
+
controller.setStatus(undefined);
|
|
4021
|
+
}
|
|
4022
|
+
await templateService.apiHandler({
|
|
4023
|
+
methodName: 'getPoolDashboard',
|
|
4024
|
+
controller,
|
|
4025
|
+
response,
|
|
4026
|
+
next,
|
|
4027
|
+
validatedArgs,
|
|
4028
|
+
successStatus: undefined,
|
|
4029
|
+
});
|
|
4030
|
+
}
|
|
4031
|
+
catch (err) {
|
|
4032
|
+
return next(err);
|
|
4033
|
+
}
|
|
4034
|
+
});
|
|
4035
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4036
|
+
const argsPoolController_getPoolAlarms = {
|
|
4037
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4038
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4039
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4040
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4041
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4042
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4043
|
+
};
|
|
4044
|
+
app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
|
|
4045
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4046
|
+
let validatedArgs = [];
|
|
4047
|
+
try {
|
|
4048
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
|
|
4049
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4050
|
+
const controller = await container.get(PoolController);
|
|
4051
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4052
|
+
controller.setStatus(undefined);
|
|
4053
|
+
}
|
|
4054
|
+
await templateService.apiHandler({
|
|
4055
|
+
methodName: 'getPoolAlarms',
|
|
4056
|
+
controller,
|
|
4057
|
+
response,
|
|
4058
|
+
next,
|
|
4059
|
+
validatedArgs,
|
|
4060
|
+
successStatus: undefined,
|
|
4061
|
+
});
|
|
4062
|
+
}
|
|
4063
|
+
catch (err) {
|
|
4064
|
+
return next(err);
|
|
4065
|
+
}
|
|
4066
|
+
});
|
|
4067
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4068
|
+
const argsPoolController_getPoolMissingPatches = {
|
|
4069
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4070
|
+
};
|
|
4071
|
+
app.get('/rest/v0/pools/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMissingPatches)), async function PoolController_getPoolMissingPatches(request, response, next) {
|
|
4072
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4073
|
+
let validatedArgs = [];
|
|
4074
|
+
try {
|
|
4075
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMissingPatches, request, response });
|
|
4076
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4077
|
+
const controller = await container.get(PoolController);
|
|
4078
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4079
|
+
controller.setStatus(undefined);
|
|
4080
|
+
}
|
|
4081
|
+
await templateService.apiHandler({
|
|
4082
|
+
methodName: 'getPoolMissingPatches',
|
|
4083
|
+
controller,
|
|
4084
|
+
response,
|
|
4085
|
+
next,
|
|
4086
|
+
validatedArgs,
|
|
4087
|
+
successStatus: undefined,
|
|
4088
|
+
});
|
|
4089
|
+
}
|
|
4090
|
+
catch (err) {
|
|
4091
|
+
return next(err);
|
|
4092
|
+
}
|
|
4093
|
+
});
|
|
4094
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4095
|
+
const argsPifController_getPifs = {
|
|
4096
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4097
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4098
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4099
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4100
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4101
|
+
};
|
|
4102
|
+
app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
|
|
4103
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4104
|
+
let validatedArgs = [];
|
|
4105
|
+
try {
|
|
4106
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
|
|
4107
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4108
|
+
const controller = await container.get(PifController);
|
|
4109
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4110
|
+
controller.setStatus(undefined);
|
|
4111
|
+
}
|
|
4112
|
+
await templateService.apiHandler({
|
|
4113
|
+
methodName: 'getPifs',
|
|
4114
|
+
controller,
|
|
4115
|
+
response,
|
|
4116
|
+
next,
|
|
4117
|
+
validatedArgs,
|
|
4118
|
+
successStatus: undefined,
|
|
4119
|
+
});
|
|
4120
|
+
}
|
|
4121
|
+
catch (err) {
|
|
4122
|
+
return next(err);
|
|
4123
|
+
}
|
|
4124
|
+
});
|
|
4125
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4126
|
+
const argsPifController_getPif = {
|
|
4127
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4128
|
+
};
|
|
4129
|
+
app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
|
|
4130
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4131
|
+
let validatedArgs = [];
|
|
4132
|
+
try {
|
|
4133
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPif, request, response });
|
|
4134
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4135
|
+
const controller = await container.get(PifController);
|
|
4136
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4137
|
+
controller.setStatus(undefined);
|
|
4138
|
+
}
|
|
4139
|
+
await templateService.apiHandler({
|
|
4140
|
+
methodName: 'getPif',
|
|
4141
|
+
controller,
|
|
4142
|
+
response,
|
|
4143
|
+
next,
|
|
4144
|
+
validatedArgs,
|
|
4145
|
+
successStatus: undefined,
|
|
4146
|
+
});
|
|
4147
|
+
}
|
|
4148
|
+
catch (err) {
|
|
4149
|
+
return next(err);
|
|
4150
|
+
}
|
|
4151
|
+
});
|
|
4152
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4153
|
+
const argsPifController_getPifAlarms = {
|
|
4154
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4155
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4156
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4157
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4158
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4159
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4160
|
+
};
|
|
4161
|
+
app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
|
|
4162
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4163
|
+
let validatedArgs = [];
|
|
4164
|
+
try {
|
|
4165
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
|
|
4166
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4167
|
+
const controller = await container.get(PifController);
|
|
4168
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4169
|
+
controller.setStatus(undefined);
|
|
4170
|
+
}
|
|
4171
|
+
await templateService.apiHandler({
|
|
4172
|
+
methodName: 'getPifAlarms',
|
|
4173
|
+
controller,
|
|
4174
|
+
response,
|
|
4175
|
+
next,
|
|
4176
|
+
validatedArgs,
|
|
4177
|
+
successStatus: undefined,
|
|
4178
|
+
});
|
|
4179
|
+
}
|
|
4180
|
+
catch (err) {
|
|
4181
|
+
return next(err);
|
|
4182
|
+
}
|
|
4183
|
+
});
|
|
4184
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4185
|
+
const argsPgpuController_getPgpus = {
|
|
4186
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4187
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4188
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4189
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4190
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4191
|
+
};
|
|
4192
|
+
app.get('/rest/v0/pgpus', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpus)), async function PgpuController_getPgpus(request, response, next) {
|
|
4193
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4194
|
+
let validatedArgs = [];
|
|
4195
|
+
try {
|
|
4196
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpus, request, response });
|
|
4197
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4198
|
+
const controller = await container.get(PgpuController);
|
|
4199
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4200
|
+
controller.setStatus(undefined);
|
|
4201
|
+
}
|
|
4202
|
+
await templateService.apiHandler({
|
|
4203
|
+
methodName: 'getPgpus',
|
|
4204
|
+
controller,
|
|
4205
|
+
response,
|
|
4206
|
+
next,
|
|
4207
|
+
validatedArgs,
|
|
4208
|
+
successStatus: undefined,
|
|
4209
|
+
});
|
|
4210
|
+
}
|
|
4211
|
+
catch (err) {
|
|
4212
|
+
return next(err);
|
|
4213
|
+
}
|
|
4214
|
+
});
|
|
4215
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4216
|
+
const argsPgpuController_getPgpu = {
|
|
4217
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4218
|
+
};
|
|
4219
|
+
app.get('/rest/v0/pgpus/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpu)), async function PgpuController_getPgpu(request, response, next) {
|
|
4220
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4221
|
+
let validatedArgs = [];
|
|
4222
|
+
try {
|
|
4223
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpu, request, response });
|
|
4224
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4225
|
+
const controller = await container.get(PgpuController);
|
|
4226
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4227
|
+
controller.setStatus(undefined);
|
|
4228
|
+
}
|
|
4229
|
+
await templateService.apiHandler({
|
|
4230
|
+
methodName: 'getPgpu',
|
|
4231
|
+
controller,
|
|
4232
|
+
response,
|
|
4233
|
+
next,
|
|
4234
|
+
validatedArgs,
|
|
4235
|
+
successStatus: undefined,
|
|
4236
|
+
});
|
|
4237
|
+
}
|
|
4238
|
+
catch (err) {
|
|
4239
|
+
return next(err);
|
|
4240
|
+
}
|
|
4241
|
+
});
|
|
4242
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4243
|
+
const argsPciController_getPcis = {
|
|
4244
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4245
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4246
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4247
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4248
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4249
|
+
};
|
|
4250
|
+
app.get('/rest/v0/pcis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPcis)), async function PciController_getPcis(request, response, next) {
|
|
4251
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4252
|
+
let validatedArgs = [];
|
|
4253
|
+
try {
|
|
4254
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPcis, request, response });
|
|
4255
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4256
|
+
const controller = await container.get(PciController);
|
|
4257
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4258
|
+
controller.setStatus(undefined);
|
|
4259
|
+
}
|
|
4260
|
+
await templateService.apiHandler({
|
|
4261
|
+
methodName: 'getPcis',
|
|
4262
|
+
controller,
|
|
4263
|
+
response,
|
|
4264
|
+
next,
|
|
4265
|
+
validatedArgs,
|
|
4266
|
+
successStatus: undefined,
|
|
4267
|
+
});
|
|
4268
|
+
}
|
|
4269
|
+
catch (err) {
|
|
4270
|
+
return next(err);
|
|
4271
|
+
}
|
|
4272
|
+
});
|
|
4273
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4274
|
+
const argsPciController_getPci = {
|
|
4275
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4276
|
+
};
|
|
4277
|
+
app.get('/rest/v0/pcis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPci)), async function PciController_getPci(request, response, next) {
|
|
4278
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4279
|
+
let validatedArgs = [];
|
|
4280
|
+
try {
|
|
4281
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPci, request, response });
|
|
4282
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4283
|
+
const controller = await container.get(PciController);
|
|
4284
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4285
|
+
controller.setStatus(undefined);
|
|
4286
|
+
}
|
|
4287
|
+
await templateService.apiHandler({
|
|
4288
|
+
methodName: 'getPci',
|
|
4289
|
+
controller,
|
|
4290
|
+
response,
|
|
4291
|
+
next,
|
|
4292
|
+
validatedArgs,
|
|
4293
|
+
successStatus: undefined,
|
|
4294
|
+
});
|
|
4295
|
+
}
|
|
4296
|
+
catch (err) {
|
|
4297
|
+
return next(err);
|
|
4298
|
+
}
|
|
4299
|
+
});
|
|
4300
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4301
|
+
const argsNetworkController_getNetworks = {
|
|
4302
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4303
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4304
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4305
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4306
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4307
|
+
};
|
|
4308
|
+
app.get('/rest/v0/networks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworks)), async function NetworkController_getNetworks(request, response, next) {
|
|
4309
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4310
|
+
let validatedArgs = [];
|
|
4311
|
+
try {
|
|
4312
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworks, request, response });
|
|
4313
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4314
|
+
const controller = await container.get(NetworkController);
|
|
4315
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4316
|
+
controller.setStatus(undefined);
|
|
4317
|
+
}
|
|
4318
|
+
await templateService.apiHandler({
|
|
4319
|
+
methodName: 'getNetworks',
|
|
4320
|
+
controller,
|
|
4321
|
+
response,
|
|
4322
|
+
next,
|
|
4323
|
+
validatedArgs,
|
|
4324
|
+
successStatus: undefined,
|
|
4325
|
+
});
|
|
4326
|
+
}
|
|
4327
|
+
catch (err) {
|
|
4328
|
+
return next(err);
|
|
4329
|
+
}
|
|
4330
|
+
});
|
|
4331
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4332
|
+
const argsNetworkController_getNetwork = {
|
|
4333
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4334
|
+
};
|
|
4335
|
+
app.get('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetwork)), async function NetworkController_getNetwork(request, response, next) {
|
|
4336
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4337
|
+
let validatedArgs = [];
|
|
4338
|
+
try {
|
|
4339
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetwork, request, response });
|
|
4340
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4341
|
+
const controller = await container.get(NetworkController);
|
|
4342
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4343
|
+
controller.setStatus(undefined);
|
|
4344
|
+
}
|
|
4345
|
+
await templateService.apiHandler({
|
|
4346
|
+
methodName: 'getNetwork',
|
|
4347
|
+
controller,
|
|
4348
|
+
response,
|
|
4349
|
+
next,
|
|
4350
|
+
validatedArgs,
|
|
4351
|
+
successStatus: undefined,
|
|
4352
|
+
});
|
|
4353
|
+
}
|
|
4354
|
+
catch (err) {
|
|
4355
|
+
return next(err);
|
|
4356
|
+
}
|
|
4357
|
+
});
|
|
4358
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4359
|
+
const argsNetworkController_deleteNetwork = {
|
|
4360
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4361
|
+
};
|
|
4362
|
+
app.delete('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetwork)), async function NetworkController_deleteNetwork(request, response, next) {
|
|
4363
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4364
|
+
let validatedArgs = [];
|
|
4365
|
+
try {
|
|
4366
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetwork, request, response });
|
|
4367
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4368
|
+
const controller = await container.get(NetworkController);
|
|
4369
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4370
|
+
controller.setStatus(undefined);
|
|
4371
|
+
}
|
|
4372
|
+
await templateService.apiHandler({
|
|
4373
|
+
methodName: 'deleteNetwork',
|
|
4374
|
+
controller,
|
|
4375
|
+
response,
|
|
4376
|
+
next,
|
|
4377
|
+
validatedArgs,
|
|
4378
|
+
successStatus: 204,
|
|
4379
|
+
});
|
|
4380
|
+
}
|
|
4381
|
+
catch (err) {
|
|
4382
|
+
return next(err);
|
|
4383
|
+
}
|
|
4384
|
+
});
|
|
4385
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4386
|
+
const argsNetworkController_getNetworkAlarms = {
|
|
4387
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4388
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4389
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4390
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4391
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4392
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4393
|
+
};
|
|
4394
|
+
app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
|
|
4395
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4396
|
+
let validatedArgs = [];
|
|
4397
|
+
try {
|
|
4398
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
|
|
4399
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4400
|
+
const controller = await container.get(NetworkController);
|
|
4401
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4402
|
+
controller.setStatus(undefined);
|
|
4403
|
+
}
|
|
4404
|
+
await templateService.apiHandler({
|
|
4405
|
+
methodName: 'getNetworkAlarms',
|
|
4406
|
+
controller,
|
|
4407
|
+
response,
|
|
4408
|
+
next,
|
|
4409
|
+
validatedArgs,
|
|
4410
|
+
successStatus: undefined,
|
|
4411
|
+
});
|
|
4412
|
+
}
|
|
4413
|
+
catch (err) {
|
|
4414
|
+
return next(err);
|
|
4415
|
+
}
|
|
4416
|
+
});
|
|
4417
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4418
|
+
const argsMessageController_getMessages = {
|
|
4419
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4420
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4421
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4422
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4423
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4424
|
+
};
|
|
4425
|
+
app.get('/rest/v0/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(MessageController)), ...(fetchMiddlewares(MessageController.prototype.getMessages)), async function MessageController_getMessages(request, response, next) {
|
|
4426
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4427
|
+
let validatedArgs = [];
|
|
4428
|
+
try {
|
|
4429
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMessageController_getMessages, request, response });
|
|
4430
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4431
|
+
const controller = await container.get(MessageController);
|
|
4432
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4433
|
+
controller.setStatus(undefined);
|
|
4434
|
+
}
|
|
4435
|
+
await templateService.apiHandler({
|
|
4436
|
+
methodName: 'getMessages',
|
|
4437
|
+
controller,
|
|
4438
|
+
response,
|
|
4439
|
+
next,
|
|
4440
|
+
validatedArgs,
|
|
4441
|
+
successStatus: undefined,
|
|
4442
|
+
});
|
|
4443
|
+
}
|
|
4444
|
+
catch (err) {
|
|
4445
|
+
return next(err);
|
|
4446
|
+
}
|
|
4447
|
+
});
|
|
4448
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4449
|
+
const argsMessageController_getMessage = {
|
|
4450
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4451
|
+
};
|
|
4452
|
+
app.get('/rest/v0/messages/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(MessageController)), ...(fetchMiddlewares(MessageController.prototype.getMessage)), async function MessageController_getMessage(request, response, next) {
|
|
4453
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4454
|
+
let validatedArgs = [];
|
|
4455
|
+
try {
|
|
4456
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMessageController_getMessage, request, response });
|
|
4457
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4458
|
+
const controller = await container.get(MessageController);
|
|
4459
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4460
|
+
controller.setStatus(undefined);
|
|
4461
|
+
}
|
|
4462
|
+
await templateService.apiHandler({
|
|
4463
|
+
methodName: 'getMessage',
|
|
4464
|
+
controller,
|
|
4465
|
+
response,
|
|
4466
|
+
next,
|
|
4467
|
+
validatedArgs,
|
|
4468
|
+
successStatus: undefined,
|
|
4469
|
+
});
|
|
4470
|
+
}
|
|
4471
|
+
catch (err) {
|
|
4472
|
+
return next(err);
|
|
4473
|
+
}
|
|
4474
|
+
});
|
|
4475
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4476
|
+
const argsHostController_getHosts = {
|
|
4477
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4478
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4479
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4480
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4481
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4482
|
+
};
|
|
4483
|
+
app.get('/rest/v0/hosts', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHosts)), async function HostController_getHosts(request, response, next) {
|
|
4484
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4485
|
+
let validatedArgs = [];
|
|
4486
|
+
try {
|
|
4487
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHosts, request, response });
|
|
4488
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4489
|
+
const controller = await container.get(HostController);
|
|
4490
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4491
|
+
controller.setStatus(undefined);
|
|
4492
|
+
}
|
|
4493
|
+
await templateService.apiHandler({
|
|
4494
|
+
methodName: 'getHosts',
|
|
4495
|
+
controller,
|
|
4496
|
+
response,
|
|
4497
|
+
next,
|
|
4498
|
+
validatedArgs,
|
|
4499
|
+
successStatus: undefined,
|
|
4500
|
+
});
|
|
4501
|
+
}
|
|
4502
|
+
catch (err) {
|
|
4503
|
+
return next(err);
|
|
4504
|
+
}
|
|
4505
|
+
});
|
|
4506
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4507
|
+
const argsHostController_getHost = {
|
|
4508
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4509
|
+
};
|
|
4510
|
+
app.get('/rest/v0/hosts/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHost)), async function HostController_getHost(request, response, next) {
|
|
4511
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4512
|
+
let validatedArgs = [];
|
|
4513
|
+
try {
|
|
4514
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHost, request, response });
|
|
4515
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4516
|
+
const controller = await container.get(HostController);
|
|
4517
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4518
|
+
controller.setStatus(undefined);
|
|
4519
|
+
}
|
|
4520
|
+
await templateService.apiHandler({
|
|
4521
|
+
methodName: 'getHost',
|
|
4522
|
+
controller,
|
|
4523
|
+
response,
|
|
4524
|
+
next,
|
|
4525
|
+
validatedArgs,
|
|
4526
|
+
successStatus: undefined,
|
|
4527
|
+
});
|
|
4528
|
+
}
|
|
4529
|
+
catch (err) {
|
|
4530
|
+
return next(err);
|
|
4531
|
+
}
|
|
4532
|
+
});
|
|
4533
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4534
|
+
const argsHostController_getHostStats = {
|
|
4535
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4536
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
4537
|
+
};
|
|
4538
|
+
app.get('/rest/v0/hosts/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostStats)), async function HostController_getHostStats(request, response, next) {
|
|
4539
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4540
|
+
let validatedArgs = [];
|
|
4541
|
+
try {
|
|
4542
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostStats, request, response });
|
|
4543
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4544
|
+
const controller = await container.get(HostController);
|
|
4545
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4546
|
+
controller.setStatus(undefined);
|
|
4547
|
+
}
|
|
4548
|
+
await templateService.apiHandler({
|
|
4549
|
+
methodName: 'getHostStats',
|
|
4550
|
+
controller,
|
|
4551
|
+
response,
|
|
4552
|
+
next,
|
|
4553
|
+
validatedArgs,
|
|
4554
|
+
successStatus: undefined,
|
|
4555
|
+
});
|
|
4556
|
+
}
|
|
4557
|
+
catch (err) {
|
|
4558
|
+
return next(err);
|
|
4559
|
+
}
|
|
4560
|
+
});
|
|
4561
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4562
|
+
const argsHostController_getAuditLog = {
|
|
4563
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4564
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4565
|
+
};
|
|
4566
|
+
app.get('/rest/v0/hosts/:id/audit.txt', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getAuditLog)), async function HostController_getAuditLog(request, response, next) {
|
|
4567
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4568
|
+
let validatedArgs = [];
|
|
4569
|
+
try {
|
|
4570
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getAuditLog, request, response });
|
|
4571
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4572
|
+
const controller = await container.get(HostController);
|
|
4573
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4574
|
+
controller.setStatus(undefined);
|
|
4575
|
+
}
|
|
4576
|
+
await templateService.apiHandler({
|
|
4577
|
+
methodName: 'getAuditLog',
|
|
4578
|
+
controller,
|
|
4579
|
+
response,
|
|
4580
|
+
next,
|
|
4581
|
+
validatedArgs,
|
|
4582
|
+
successStatus: 200,
|
|
4583
|
+
});
|
|
4584
|
+
}
|
|
4585
|
+
catch (err) {
|
|
4586
|
+
return next(err);
|
|
4587
|
+
}
|
|
4588
|
+
});
|
|
4589
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4590
|
+
const argsHostController_getHostLogs = {
|
|
4591
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4592
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4593
|
+
};
|
|
4594
|
+
app.get('/rest/v0/hosts/:id/logs.tgz', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostLogs)), async function HostController_getHostLogs(request, response, next) {
|
|
4595
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4596
|
+
let validatedArgs = [];
|
|
4597
|
+
try {
|
|
4598
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostLogs, request, response });
|
|
4599
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4600
|
+
const controller = await container.get(HostController);
|
|
4601
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4602
|
+
controller.setStatus(undefined);
|
|
4603
|
+
}
|
|
4604
|
+
await templateService.apiHandler({
|
|
4605
|
+
methodName: 'getHostLogs',
|
|
4606
|
+
controller,
|
|
4607
|
+
response,
|
|
4608
|
+
next,
|
|
4609
|
+
validatedArgs,
|
|
4610
|
+
successStatus: 200,
|
|
4611
|
+
});
|
|
4612
|
+
}
|
|
4613
|
+
catch (err) {
|
|
4614
|
+
return next(err);
|
|
4615
|
+
}
|
|
4616
|
+
});
|
|
4617
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4618
|
+
const argsHostController_getHostAlarms = {
|
|
4619
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4620
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4621
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4622
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4623
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4624
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4625
|
+
};
|
|
4626
|
+
app.get('/rest/v0/hosts/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostAlarms)), async function HostController_getHostAlarms(request, response, next) {
|
|
4627
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4628
|
+
let validatedArgs = [];
|
|
4629
|
+
try {
|
|
4630
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostAlarms, request, response });
|
|
4631
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4632
|
+
const controller = await container.get(HostController);
|
|
4633
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4634
|
+
controller.setStatus(undefined);
|
|
4635
|
+
}
|
|
4636
|
+
await templateService.apiHandler({
|
|
4637
|
+
methodName: 'getHostAlarms',
|
|
4638
|
+
controller,
|
|
4639
|
+
response,
|
|
4640
|
+
next,
|
|
4641
|
+
validatedArgs,
|
|
4642
|
+
successStatus: undefined,
|
|
4643
|
+
});
|
|
4644
|
+
}
|
|
4645
|
+
catch (err) {
|
|
4646
|
+
return next(err);
|
|
4647
|
+
}
|
|
4648
|
+
});
|
|
4649
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4650
|
+
const argsHostController_gethostSmt = {
|
|
4651
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4652
|
+
};
|
|
4653
|
+
app.get('/rest/v0/hosts/:id/smt', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.gethostSmt)), async function HostController_gethostSmt(request, response, next) {
|
|
4654
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4655
|
+
let validatedArgs = [];
|
|
4656
|
+
try {
|
|
4657
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_gethostSmt, request, response });
|
|
4658
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4659
|
+
const controller = await container.get(HostController);
|
|
4660
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4661
|
+
controller.setStatus(undefined);
|
|
4662
|
+
}
|
|
4663
|
+
await templateService.apiHandler({
|
|
4664
|
+
methodName: 'gethostSmt',
|
|
3077
4665
|
controller,
|
|
3078
4666
|
response,
|
|
3079
4667
|
next,
|
|
@@ -3086,25 +4674,21 @@ export function RegisterRoutes(app) {
|
|
|
3086
4674
|
}
|
|
3087
4675
|
});
|
|
3088
4676
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3089
|
-
const
|
|
3090
|
-
|
|
3091
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3092
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3093
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3094
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4677
|
+
const argsHostController_getMissingPatches = {
|
|
4678
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3095
4679
|
};
|
|
3096
|
-
app.get('/rest/v0/
|
|
4680
|
+
app.get('/rest/v0/hosts/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getMissingPatches)), async function HostController_getMissingPatches(request, response, next) {
|
|
3097
4681
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3098
4682
|
let validatedArgs = [];
|
|
3099
4683
|
try {
|
|
3100
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4684
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getMissingPatches, request, response });
|
|
3101
4685
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3102
|
-
const controller = await container.get(
|
|
4686
|
+
const controller = await container.get(HostController);
|
|
3103
4687
|
if (typeof controller['setStatus'] === 'function') {
|
|
3104
4688
|
controller.setStatus(undefined);
|
|
3105
4689
|
}
|
|
3106
4690
|
await templateService.apiHandler({
|
|
3107
|
-
methodName: '
|
|
4691
|
+
methodName: 'getMissingPatches',
|
|
3108
4692
|
controller,
|
|
3109
4693
|
response,
|
|
3110
4694
|
next,
|
|
@@ -3117,21 +4701,25 @@ export function RegisterRoutes(app) {
|
|
|
3117
4701
|
}
|
|
3118
4702
|
});
|
|
3119
4703
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3120
|
-
const
|
|
3121
|
-
|
|
4704
|
+
const argsGroupController_getGroups = {
|
|
4705
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4706
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4707
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4708
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4709
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3122
4710
|
};
|
|
3123
|
-
app.get('/rest/v0/
|
|
4711
|
+
app.get('/rest/v0/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroups)), async function GroupController_getGroups(request, response, next) {
|
|
3124
4712
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3125
4713
|
let validatedArgs = [];
|
|
3126
4714
|
try {
|
|
3127
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4715
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroups, request, response });
|
|
3128
4716
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3129
|
-
const controller = await container.get(
|
|
4717
|
+
const controller = await container.get(GroupController);
|
|
3130
4718
|
if (typeof controller['setStatus'] === 'function') {
|
|
3131
4719
|
controller.setStatus(undefined);
|
|
3132
4720
|
}
|
|
3133
4721
|
await templateService.apiHandler({
|
|
3134
|
-
methodName: '
|
|
4722
|
+
methodName: 'getGroups',
|
|
3135
4723
|
controller,
|
|
3136
4724
|
response,
|
|
3137
4725
|
next,
|
|
@@ -3144,25 +4732,21 @@ export function RegisterRoutes(app) {
|
|
|
3144
4732
|
}
|
|
3145
4733
|
});
|
|
3146
4734
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3147
|
-
const
|
|
3148
|
-
|
|
3149
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3150
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3151
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3152
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4735
|
+
const argsGroupController_getGroup = {
|
|
4736
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3153
4737
|
};
|
|
3154
|
-
app.get('/rest/v0/
|
|
4738
|
+
app.get('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroup)), async function GroupController_getGroup(request, response, next) {
|
|
3155
4739
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3156
4740
|
let validatedArgs = [];
|
|
3157
4741
|
try {
|
|
3158
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4742
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroup, request, response });
|
|
3159
4743
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3160
|
-
const controller = await container.get(
|
|
4744
|
+
const controller = await container.get(GroupController);
|
|
3161
4745
|
if (typeof controller['setStatus'] === 'function') {
|
|
3162
4746
|
controller.setStatus(undefined);
|
|
3163
4747
|
}
|
|
3164
4748
|
await templateService.apiHandler({
|
|
3165
|
-
methodName: '
|
|
4749
|
+
methodName: 'getGroup',
|
|
3166
4750
|
controller,
|
|
3167
4751
|
response,
|
|
3168
4752
|
next,
|
|
@@ -3175,26 +4759,27 @@ export function RegisterRoutes(app) {
|
|
|
3175
4759
|
}
|
|
3176
4760
|
});
|
|
3177
4761
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3178
|
-
const
|
|
4762
|
+
const argsGroupController_updateGroup = {
|
|
3179
4763
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4764
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateGroupRequestBody" },
|
|
3180
4765
|
};
|
|
3181
|
-
app.
|
|
4766
|
+
app.patch('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.updateGroup)), async function GroupController_updateGroup(request, response, next) {
|
|
3182
4767
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3183
4768
|
let validatedArgs = [];
|
|
3184
4769
|
try {
|
|
3185
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4770
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_updateGroup, request, response });
|
|
3186
4771
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3187
|
-
const controller = await container.get(
|
|
4772
|
+
const controller = await container.get(GroupController);
|
|
3188
4773
|
if (typeof controller['setStatus'] === 'function') {
|
|
3189
4774
|
controller.setStatus(undefined);
|
|
3190
4775
|
}
|
|
3191
4776
|
await templateService.apiHandler({
|
|
3192
|
-
methodName: '
|
|
4777
|
+
methodName: 'updateGroup',
|
|
3193
4778
|
controller,
|
|
3194
4779
|
response,
|
|
3195
4780
|
next,
|
|
3196
4781
|
validatedArgs,
|
|
3197
|
-
successStatus:
|
|
4782
|
+
successStatus: 204,
|
|
3198
4783
|
});
|
|
3199
4784
|
}
|
|
3200
4785
|
catch (err) {
|
|
@@ -3202,26 +4787,26 @@ export function RegisterRoutes(app) {
|
|
|
3202
4787
|
}
|
|
3203
4788
|
});
|
|
3204
4789
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3205
|
-
const
|
|
3206
|
-
|
|
4790
|
+
const argsGroupController_createGroup = {
|
|
4791
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true } } },
|
|
3207
4792
|
};
|
|
3208
|
-
app.
|
|
4793
|
+
app.post('/rest/v0/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.createGroup)), async function GroupController_createGroup(request, response, next) {
|
|
3209
4794
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3210
4795
|
let validatedArgs = [];
|
|
3211
4796
|
try {
|
|
3212
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4797
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_createGroup, request, response });
|
|
3213
4798
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3214
|
-
const controller = await container.get(
|
|
4799
|
+
const controller = await container.get(GroupController);
|
|
3215
4800
|
if (typeof controller['setStatus'] === 'function') {
|
|
3216
4801
|
controller.setStatus(undefined);
|
|
3217
4802
|
}
|
|
3218
4803
|
await templateService.apiHandler({
|
|
3219
|
-
methodName: '
|
|
4804
|
+
methodName: 'createGroup',
|
|
3220
4805
|
controller,
|
|
3221
4806
|
response,
|
|
3222
4807
|
next,
|
|
3223
4808
|
validatedArgs,
|
|
3224
|
-
successStatus:
|
|
4809
|
+
successStatus: 201,
|
|
3225
4810
|
});
|
|
3226
4811
|
}
|
|
3227
4812
|
catch (err) {
|
|
@@ -3229,31 +4814,26 @@ export function RegisterRoutes(app) {
|
|
|
3229
4814
|
}
|
|
3230
4815
|
});
|
|
3231
4816
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3232
|
-
const
|
|
3233
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4817
|
+
const argsGroupController_deleteGroup = {
|
|
3234
4818
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3235
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3236
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3237
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3238
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3239
4819
|
};
|
|
3240
|
-
app.
|
|
4820
|
+
app.delete('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.deleteGroup)), async function GroupController_deleteGroup(request, response, next) {
|
|
3241
4821
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3242
4822
|
let validatedArgs = [];
|
|
3243
4823
|
try {
|
|
3244
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4824
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_deleteGroup, request, response });
|
|
3245
4825
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3246
|
-
const controller = await container.get(
|
|
4826
|
+
const controller = await container.get(GroupController);
|
|
3247
4827
|
if (typeof controller['setStatus'] === 'function') {
|
|
3248
4828
|
controller.setStatus(undefined);
|
|
3249
4829
|
}
|
|
3250
4830
|
await templateService.apiHandler({
|
|
3251
|
-
methodName: '
|
|
4831
|
+
methodName: 'deleteGroup',
|
|
3252
4832
|
controller,
|
|
3253
4833
|
response,
|
|
3254
4834
|
next,
|
|
3255
4835
|
validatedArgs,
|
|
3256
|
-
successStatus:
|
|
4836
|
+
successStatus: 204,
|
|
3257
4837
|
});
|
|
3258
4838
|
}
|
|
3259
4839
|
catch (err) {
|
|
@@ -3261,30 +4841,27 @@ export function RegisterRoutes(app) {
|
|
|
3261
4841
|
}
|
|
3262
4842
|
});
|
|
3263
4843
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3264
|
-
const
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3268
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3269
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4844
|
+
const argsGroupController_removeUserFromGroup = {
|
|
4845
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4846
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
3270
4847
|
};
|
|
3271
|
-
app.
|
|
4848
|
+
app.delete('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.removeUserFromGroup)), async function GroupController_removeUserFromGroup(request, response, next) {
|
|
3272
4849
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3273
4850
|
let validatedArgs = [];
|
|
3274
4851
|
try {
|
|
3275
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4852
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_removeUserFromGroup, request, response });
|
|
3276
4853
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3277
|
-
const controller = await container.get(
|
|
4854
|
+
const controller = await container.get(GroupController);
|
|
3278
4855
|
if (typeof controller['setStatus'] === 'function') {
|
|
3279
4856
|
controller.setStatus(undefined);
|
|
3280
4857
|
}
|
|
3281
4858
|
await templateService.apiHandler({
|
|
3282
|
-
methodName: '
|
|
4859
|
+
methodName: 'removeUserFromGroup',
|
|
3283
4860
|
controller,
|
|
3284
4861
|
response,
|
|
3285
4862
|
next,
|
|
3286
4863
|
validatedArgs,
|
|
3287
|
-
successStatus:
|
|
4864
|
+
successStatus: 204,
|
|
3288
4865
|
});
|
|
3289
4866
|
}
|
|
3290
4867
|
catch (err) {
|
|
@@ -3292,26 +4869,27 @@ export function RegisterRoutes(app) {
|
|
|
3292
4869
|
}
|
|
3293
4870
|
});
|
|
3294
4871
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3295
|
-
const
|
|
4872
|
+
const argsGroupController_addUserToGroup = {
|
|
3296
4873
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4874
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
3297
4875
|
};
|
|
3298
|
-
app.
|
|
4876
|
+
app.put('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.addUserToGroup)), async function GroupController_addUserToGroup(request, response, next) {
|
|
3299
4877
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3300
4878
|
let validatedArgs = [];
|
|
3301
4879
|
try {
|
|
3302
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4880
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_addUserToGroup, request, response });
|
|
3303
4881
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3304
|
-
const controller = await container.get(
|
|
4882
|
+
const controller = await container.get(GroupController);
|
|
3305
4883
|
if (typeof controller['setStatus'] === 'function') {
|
|
3306
4884
|
controller.setStatus(undefined);
|
|
3307
4885
|
}
|
|
3308
4886
|
await templateService.apiHandler({
|
|
3309
|
-
methodName: '
|
|
4887
|
+
methodName: 'addUserToGroup',
|
|
3310
4888
|
controller,
|
|
3311
4889
|
response,
|
|
3312
4890
|
next,
|
|
3313
4891
|
validatedArgs,
|
|
3314
|
-
successStatus:
|
|
4892
|
+
successStatus: 204,
|
|
3315
4893
|
});
|
|
3316
4894
|
}
|
|
3317
4895
|
catch (err) {
|
|
@@ -3319,25 +4897,26 @@ export function RegisterRoutes(app) {
|
|
|
3319
4897
|
}
|
|
3320
4898
|
});
|
|
3321
4899
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3322
|
-
const
|
|
4900
|
+
const argsGroupController_getGroupUsers = {
|
|
3323
4901
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4902
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3324
4903
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3325
4904
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3326
4905
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3327
4906
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3328
4907
|
};
|
|
3329
|
-
app.get('/rest/v0/
|
|
4908
|
+
app.get('/rest/v0/groups/:id/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroupUsers)), async function GroupController_getGroupUsers(request, response, next) {
|
|
3330
4909
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3331
4910
|
let validatedArgs = [];
|
|
3332
4911
|
try {
|
|
3333
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4912
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroupUsers, request, response });
|
|
3334
4913
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3335
|
-
const controller = await container.get(
|
|
4914
|
+
const controller = await container.get(GroupController);
|
|
3336
4915
|
if (typeof controller['setStatus'] === 'function') {
|
|
3337
4916
|
controller.setStatus(undefined);
|
|
3338
4917
|
}
|
|
3339
4918
|
await templateService.apiHandler({
|
|
3340
|
-
methodName: '
|
|
4919
|
+
methodName: 'getGroupUsers',
|
|
3341
4920
|
controller,
|
|
3342
4921
|
response,
|
|
3343
4922
|
next,
|
|
@@ -3350,21 +4929,25 @@ export function RegisterRoutes(app) {
|
|
|
3350
4929
|
}
|
|
3351
4930
|
});
|
|
3352
4931
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3353
|
-
const
|
|
3354
|
-
|
|
4932
|
+
const argsBackupRepositoryController_getRepositories = {
|
|
4933
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4934
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4935
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4936
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4937
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3355
4938
|
};
|
|
3356
|
-
app.get('/rest/v0/
|
|
4939
|
+
app.get('/rest/v0/backup-repositories', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepositories)), async function BackupRepositoryController_getRepositories(request, response, next) {
|
|
3357
4940
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3358
4941
|
let validatedArgs = [];
|
|
3359
4942
|
try {
|
|
3360
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4943
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepositories, request, response });
|
|
3361
4944
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3362
|
-
const controller = await container.get(
|
|
4945
|
+
const controller = await container.get(BackupRepositoryController);
|
|
3363
4946
|
if (typeof controller['setStatus'] === 'function') {
|
|
3364
4947
|
controller.setStatus(undefined);
|
|
3365
4948
|
}
|
|
3366
4949
|
await templateService.apiHandler({
|
|
3367
|
-
methodName: '
|
|
4950
|
+
methodName: 'getRepositories',
|
|
3368
4951
|
controller,
|
|
3369
4952
|
response,
|
|
3370
4953
|
next,
|
|
@@ -3377,22 +4960,21 @@ export function RegisterRoutes(app) {
|
|
|
3377
4960
|
}
|
|
3378
4961
|
});
|
|
3379
4962
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3380
|
-
const
|
|
4963
|
+
const argsBackupRepositoryController_getRepository = {
|
|
3381
4964
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3382
|
-
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
3383
4965
|
};
|
|
3384
|
-
app.get('/rest/v0/
|
|
4966
|
+
app.get('/rest/v0/backup-repositories/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepository)), async function BackupRepositoryController_getRepository(request, response, next) {
|
|
3385
4967
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3386
4968
|
let validatedArgs = [];
|
|
3387
4969
|
try {
|
|
3388
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4970
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepository, request, response });
|
|
3389
4971
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3390
|
-
const controller = await container.get(
|
|
4972
|
+
const controller = await container.get(BackupRepositoryController);
|
|
3391
4973
|
if (typeof controller['setStatus'] === 'function') {
|
|
3392
4974
|
controller.setStatus(undefined);
|
|
3393
4975
|
}
|
|
3394
4976
|
await templateService.apiHandler({
|
|
3395
|
-
methodName: '
|
|
4977
|
+
methodName: 'getRepository',
|
|
3396
4978
|
controller,
|
|
3397
4979
|
response,
|
|
3398
4980
|
next,
|
|
@@ -3405,27 +4987,30 @@ export function RegisterRoutes(app) {
|
|
|
3405
4987
|
}
|
|
3406
4988
|
});
|
|
3407
4989
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3408
|
-
const
|
|
4990
|
+
const argsBackupLogController_getBackupLogs = {
|
|
3409
4991
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3410
|
-
|
|
4992
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4993
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4994
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4995
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3411
4996
|
};
|
|
3412
|
-
app.get('/rest/v0/
|
|
4997
|
+
app.get('/rest/v0/backup-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupLogController)), ...(fetchMiddlewares(BackupLogController.prototype.getBackupLogs)), async function BackupLogController_getBackupLogs(request, response, next) {
|
|
3413
4998
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3414
4999
|
let validatedArgs = [];
|
|
3415
5000
|
try {
|
|
3416
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5001
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupLogController_getBackupLogs, request, response });
|
|
3417
5002
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3418
|
-
const controller = await container.get(
|
|
5003
|
+
const controller = await container.get(BackupLogController);
|
|
3419
5004
|
if (typeof controller['setStatus'] === 'function') {
|
|
3420
5005
|
controller.setStatus(undefined);
|
|
3421
5006
|
}
|
|
3422
5007
|
await templateService.apiHandler({
|
|
3423
|
-
methodName: '
|
|
5008
|
+
methodName: 'getBackupLogs',
|
|
3424
5009
|
controller,
|
|
3425
5010
|
response,
|
|
3426
5011
|
next,
|
|
3427
5012
|
validatedArgs,
|
|
3428
|
-
successStatus:
|
|
5013
|
+
successStatus: undefined,
|
|
3429
5014
|
});
|
|
3430
5015
|
}
|
|
3431
5016
|
catch (err) {
|
|
@@ -3433,27 +5018,26 @@ export function RegisterRoutes(app) {
|
|
|
3433
5018
|
}
|
|
3434
5019
|
});
|
|
3435
5020
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3436
|
-
const
|
|
3437
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5021
|
+
const argsBackupLogController_getBackupLog = {
|
|
3438
5022
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3439
5023
|
};
|
|
3440
|
-
app.get('/rest/v0/
|
|
5024
|
+
app.get('/rest/v0/backup-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupLogController)), ...(fetchMiddlewares(BackupLogController.prototype.getBackupLog)), async function BackupLogController_getBackupLog(request, response, next) {
|
|
3441
5025
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3442
5026
|
let validatedArgs = [];
|
|
3443
5027
|
try {
|
|
3444
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5028
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupLogController_getBackupLog, request, response });
|
|
3445
5029
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3446
|
-
const controller = await container.get(
|
|
5030
|
+
const controller = await container.get(BackupLogController);
|
|
3447
5031
|
if (typeof controller['setStatus'] === 'function') {
|
|
3448
5032
|
controller.setStatus(undefined);
|
|
3449
5033
|
}
|
|
3450
5034
|
await templateService.apiHandler({
|
|
3451
|
-
methodName: '
|
|
5035
|
+
methodName: 'getBackupLog',
|
|
3452
5036
|
controller,
|
|
3453
5037
|
response,
|
|
3454
5038
|
next,
|
|
3455
5039
|
validatedArgs,
|
|
3456
|
-
successStatus:
|
|
5040
|
+
successStatus: undefined,
|
|
3457
5041
|
});
|
|
3458
5042
|
}
|
|
3459
5043
|
catch (err) {
|
|
@@ -3461,26 +5045,25 @@ export function RegisterRoutes(app) {
|
|
|
3461
5045
|
}
|
|
3462
5046
|
});
|
|
3463
5047
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3464
|
-
const
|
|
5048
|
+
const argsBackupJobController_getBackupJobs = {
|
|
3465
5049
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3466
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3467
5050
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3468
5051
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3469
5052
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3470
5053
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3471
5054
|
};
|
|
3472
|
-
app.get('/rest/v0/
|
|
5055
|
+
app.get('/rest/v0/backup-jobs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupJobController)), ...(fetchMiddlewares(BackupJobController.prototype.getBackupJobs)), async function BackupJobController_getBackupJobs(request, response, next) {
|
|
3473
5056
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3474
5057
|
let validatedArgs = [];
|
|
3475
5058
|
try {
|
|
3476
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5059
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupJobController_getBackupJobs, request, response });
|
|
3477
5060
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3478
|
-
const controller = await container.get(
|
|
5061
|
+
const controller = await container.get(BackupJobController);
|
|
3479
5062
|
if (typeof controller['setStatus'] === 'function') {
|
|
3480
5063
|
controller.setStatus(undefined);
|
|
3481
5064
|
}
|
|
3482
5065
|
await templateService.apiHandler({
|
|
3483
|
-
methodName: '
|
|
5066
|
+
methodName: 'getBackupJobs',
|
|
3484
5067
|
controller,
|
|
3485
5068
|
response,
|
|
3486
5069
|
next,
|
|
@@ -3493,21 +5076,21 @@ export function RegisterRoutes(app) {
|
|
|
3493
5076
|
}
|
|
3494
5077
|
});
|
|
3495
5078
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3496
|
-
const
|
|
5079
|
+
const argsBackupJobController_getBackupJob = {
|
|
3497
5080
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3498
5081
|
};
|
|
3499
|
-
app.get('/rest/v0/
|
|
5082
|
+
app.get('/rest/v0/backup-jobs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupJobController)), ...(fetchMiddlewares(BackupJobController.prototype.getBackupJob)), async function BackupJobController_getBackupJob(request, response, next) {
|
|
3500
5083
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3501
5084
|
let validatedArgs = [];
|
|
3502
5085
|
try {
|
|
3503
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5086
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupJobController_getBackupJob, request, response });
|
|
3504
5087
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3505
|
-
const controller = await container.get(
|
|
5088
|
+
const controller = await container.get(BackupJobController);
|
|
3506
5089
|
if (typeof controller['setStatus'] === 'function') {
|
|
3507
5090
|
controller.setStatus(undefined);
|
|
3508
5091
|
}
|
|
3509
5092
|
await templateService.apiHandler({
|
|
3510
|
-
methodName: '
|
|
5093
|
+
methodName: 'getBackupJob',
|
|
3511
5094
|
controller,
|
|
3512
5095
|
response,
|
|
3513
5096
|
next,
|
|
@@ -3520,25 +5103,25 @@ export function RegisterRoutes(app) {
|
|
|
3520
5103
|
}
|
|
3521
5104
|
});
|
|
3522
5105
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3523
|
-
const
|
|
5106
|
+
const argsDeprecatedBackupController_getVmBackupJobs = {
|
|
3524
5107
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3525
5108
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3526
5109
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3527
5110
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3528
5111
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3529
5112
|
};
|
|
3530
|
-
app.get('/rest/v0/
|
|
5113
|
+
app.get('/rest/v0/backup/jobs/vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getVmBackupJobs)), async function DeprecatedBackupController_getVmBackupJobs(request, response, next) {
|
|
3531
5114
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3532
5115
|
let validatedArgs = [];
|
|
3533
5116
|
try {
|
|
3534
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5117
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getVmBackupJobs, request, response });
|
|
3535
5118
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3536
|
-
const controller = await container.get(
|
|
5119
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3537
5120
|
if (typeof controller['setStatus'] === 'function') {
|
|
3538
5121
|
controller.setStatus(undefined);
|
|
3539
5122
|
}
|
|
3540
5123
|
await templateService.apiHandler({
|
|
3541
|
-
methodName: '
|
|
5124
|
+
methodName: 'getVmBackupJobs',
|
|
3542
5125
|
controller,
|
|
3543
5126
|
response,
|
|
3544
5127
|
next,
|
|
@@ -3551,21 +5134,22 @@ export function RegisterRoutes(app) {
|
|
|
3551
5134
|
}
|
|
3552
5135
|
});
|
|
3553
5136
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3554
|
-
const
|
|
5137
|
+
const argsDeprecatedBackupController_redirectToVmBackupJob = {
|
|
5138
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3555
5139
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3556
5140
|
};
|
|
3557
|
-
app.get('/rest/v0/
|
|
5141
|
+
app.get('/rest/v0/backup/jobs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.redirectToVmBackupJob)), async function DeprecatedBackupController_redirectToVmBackupJob(request, response, next) {
|
|
3558
5142
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3559
5143
|
let validatedArgs = [];
|
|
3560
5144
|
try {
|
|
3561
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5145
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_redirectToVmBackupJob, request, response });
|
|
3562
5146
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3563
|
-
const controller = await container.get(
|
|
5147
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3564
5148
|
if (typeof controller['setStatus'] === 'function') {
|
|
3565
5149
|
controller.setStatus(undefined);
|
|
3566
5150
|
}
|
|
3567
5151
|
await templateService.apiHandler({
|
|
3568
|
-
methodName: '
|
|
5152
|
+
methodName: 'redirectToVmBackupJob',
|
|
3569
5153
|
controller,
|
|
3570
5154
|
response,
|
|
3571
5155
|
next,
|
|
@@ -3578,27 +5162,26 @@ export function RegisterRoutes(app) {
|
|
|
3578
5162
|
}
|
|
3579
5163
|
});
|
|
3580
5164
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3581
|
-
const
|
|
5165
|
+
const argsDeprecatedBackupController_getVmBackupJob = {
|
|
3582
5166
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3583
|
-
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateGroupRequestBody" },
|
|
3584
5167
|
};
|
|
3585
|
-
app.
|
|
5168
|
+
app.get('/rest/v0/backup/jobs/vm/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getVmBackupJob)), async function DeprecatedBackupController_getVmBackupJob(request, response, next) {
|
|
3586
5169
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3587
5170
|
let validatedArgs = [];
|
|
3588
5171
|
try {
|
|
3589
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5172
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getVmBackupJob, request, response });
|
|
3590
5173
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3591
|
-
const controller = await container.get(
|
|
5174
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3592
5175
|
if (typeof controller['setStatus'] === 'function') {
|
|
3593
5176
|
controller.setStatus(undefined);
|
|
3594
5177
|
}
|
|
3595
5178
|
await templateService.apiHandler({
|
|
3596
|
-
methodName: '
|
|
5179
|
+
methodName: 'getVmBackupJob',
|
|
3597
5180
|
controller,
|
|
3598
5181
|
response,
|
|
3599
5182
|
next,
|
|
3600
5183
|
validatedArgs,
|
|
3601
|
-
successStatus:
|
|
5184
|
+
successStatus: undefined,
|
|
3602
5185
|
});
|
|
3603
5186
|
}
|
|
3604
5187
|
catch (err) {
|
|
@@ -3606,26 +5189,30 @@ export function RegisterRoutes(app) {
|
|
|
3606
5189
|
}
|
|
3607
5190
|
});
|
|
3608
5191
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3609
|
-
const
|
|
3610
|
-
|
|
5192
|
+
const argsDeprecatedBackupController_getMetadataBackupJobs = {
|
|
5193
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5194
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5195
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5196
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5197
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3611
5198
|
};
|
|
3612
|
-
app.
|
|
5199
|
+
app.get('/rest/v0/backup/jobs/metadata', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getMetadataBackupJobs)), async function DeprecatedBackupController_getMetadataBackupJobs(request, response, next) {
|
|
3613
5200
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3614
5201
|
let validatedArgs = [];
|
|
3615
5202
|
try {
|
|
3616
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5203
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getMetadataBackupJobs, request, response });
|
|
3617
5204
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3618
|
-
const controller = await container.get(
|
|
5205
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3619
5206
|
if (typeof controller['setStatus'] === 'function') {
|
|
3620
5207
|
controller.setStatus(undefined);
|
|
3621
5208
|
}
|
|
3622
5209
|
await templateService.apiHandler({
|
|
3623
|
-
methodName: '
|
|
5210
|
+
methodName: 'getMetadataBackupJobs',
|
|
3624
5211
|
controller,
|
|
3625
5212
|
response,
|
|
3626
5213
|
next,
|
|
3627
5214
|
validatedArgs,
|
|
3628
|
-
successStatus:
|
|
5215
|
+
successStatus: undefined,
|
|
3629
5216
|
});
|
|
3630
5217
|
}
|
|
3631
5218
|
catch (err) {
|
|
@@ -3633,26 +5220,26 @@ export function RegisterRoutes(app) {
|
|
|
3633
5220
|
}
|
|
3634
5221
|
});
|
|
3635
5222
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3636
|
-
const
|
|
5223
|
+
const argsDeprecatedBackupController_getMetadataBackupJob = {
|
|
3637
5224
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3638
5225
|
};
|
|
3639
|
-
app.
|
|
5226
|
+
app.get('/rest/v0/backup/jobs/metadata/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getMetadataBackupJob)), async function DeprecatedBackupController_getMetadataBackupJob(request, response, next) {
|
|
3640
5227
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3641
5228
|
let validatedArgs = [];
|
|
3642
5229
|
try {
|
|
3643
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5230
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getMetadataBackupJob, request, response });
|
|
3644
5231
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3645
|
-
const controller = await container.get(
|
|
5232
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3646
5233
|
if (typeof controller['setStatus'] === 'function') {
|
|
3647
5234
|
controller.setStatus(undefined);
|
|
3648
5235
|
}
|
|
3649
5236
|
await templateService.apiHandler({
|
|
3650
|
-
methodName: '
|
|
5237
|
+
methodName: 'getMetadataBackupJob',
|
|
3651
5238
|
controller,
|
|
3652
5239
|
response,
|
|
3653
5240
|
next,
|
|
3654
5241
|
validatedArgs,
|
|
3655
|
-
successStatus:
|
|
5242
|
+
successStatus: undefined,
|
|
3656
5243
|
});
|
|
3657
5244
|
}
|
|
3658
5245
|
catch (err) {
|
|
@@ -3660,27 +5247,30 @@ export function RegisterRoutes(app) {
|
|
|
3660
5247
|
}
|
|
3661
5248
|
});
|
|
3662
5249
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3663
|
-
const
|
|
3664
|
-
|
|
3665
|
-
|
|
5250
|
+
const argsDeprecatedBackupController_getMirrorBackupJobs = {
|
|
5251
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5252
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5253
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5254
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5255
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3666
5256
|
};
|
|
3667
|
-
app.
|
|
5257
|
+
app.get('/rest/v0/backup/jobs/mirror', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getMirrorBackupJobs)), async function DeprecatedBackupController_getMirrorBackupJobs(request, response, next) {
|
|
3668
5258
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3669
5259
|
let validatedArgs = [];
|
|
3670
5260
|
try {
|
|
3671
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5261
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getMirrorBackupJobs, request, response });
|
|
3672
5262
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3673
|
-
const controller = await container.get(
|
|
5263
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3674
5264
|
if (typeof controller['setStatus'] === 'function') {
|
|
3675
5265
|
controller.setStatus(undefined);
|
|
3676
5266
|
}
|
|
3677
5267
|
await templateService.apiHandler({
|
|
3678
|
-
methodName: '
|
|
5268
|
+
methodName: 'getMirrorBackupJobs',
|
|
3679
5269
|
controller,
|
|
3680
5270
|
response,
|
|
3681
5271
|
next,
|
|
3682
5272
|
validatedArgs,
|
|
3683
|
-
successStatus:
|
|
5273
|
+
successStatus: undefined,
|
|
3684
5274
|
});
|
|
3685
5275
|
}
|
|
3686
5276
|
catch (err) {
|
|
@@ -3688,27 +5278,26 @@ export function RegisterRoutes(app) {
|
|
|
3688
5278
|
}
|
|
3689
5279
|
});
|
|
3690
5280
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3691
|
-
const
|
|
5281
|
+
const argsDeprecatedBackupController_getMirrorBackupJob = {
|
|
3692
5282
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3693
|
-
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
3694
5283
|
};
|
|
3695
|
-
app.
|
|
5284
|
+
app.get('/rest/v0/backup/jobs/mirror/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getMirrorBackupJob)), async function DeprecatedBackupController_getMirrorBackupJob(request, response, next) {
|
|
3696
5285
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3697
5286
|
let validatedArgs = [];
|
|
3698
5287
|
try {
|
|
3699
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5288
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getMirrorBackupJob, request, response });
|
|
3700
5289
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3701
|
-
const controller = await container.get(
|
|
5290
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3702
5291
|
if (typeof controller['setStatus'] === 'function') {
|
|
3703
5292
|
controller.setStatus(undefined);
|
|
3704
5293
|
}
|
|
3705
5294
|
await templateService.apiHandler({
|
|
3706
|
-
methodName: '
|
|
5295
|
+
methodName: 'getMirrorBackupJob',
|
|
3707
5296
|
controller,
|
|
3708
5297
|
response,
|
|
3709
5298
|
next,
|
|
3710
5299
|
validatedArgs,
|
|
3711
|
-
successStatus:
|
|
5300
|
+
successStatus: undefined,
|
|
3712
5301
|
});
|
|
3713
5302
|
}
|
|
3714
5303
|
catch (err) {
|
|
@@ -3716,25 +5305,25 @@ export function RegisterRoutes(app) {
|
|
|
3716
5305
|
}
|
|
3717
5306
|
});
|
|
3718
5307
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3719
|
-
const
|
|
5308
|
+
const argsDeprecatedBackupController_getDeprecatedBackupLogs = {
|
|
3720
5309
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3721
5310
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3722
5311
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3723
5312
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3724
5313
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3725
5314
|
};
|
|
3726
|
-
app.get('/rest/v0/backup
|
|
5315
|
+
app.get('/rest/v0/backup/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getDeprecatedBackupLogs)), async function DeprecatedBackupController_getDeprecatedBackupLogs(request, response, next) {
|
|
3727
5316
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3728
5317
|
let validatedArgs = [];
|
|
3729
5318
|
try {
|
|
3730
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5319
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getDeprecatedBackupLogs, request, response });
|
|
3731
5320
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3732
|
-
const controller = await container.get(
|
|
5321
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3733
5322
|
if (typeof controller['setStatus'] === 'function') {
|
|
3734
5323
|
controller.setStatus(undefined);
|
|
3735
5324
|
}
|
|
3736
5325
|
await templateService.apiHandler({
|
|
3737
|
-
methodName: '
|
|
5326
|
+
methodName: 'getDeprecatedBackupLogs',
|
|
3738
5327
|
controller,
|
|
3739
5328
|
response,
|
|
3740
5329
|
next,
|
|
@@ -3747,21 +5336,21 @@ export function RegisterRoutes(app) {
|
|
|
3747
5336
|
}
|
|
3748
5337
|
});
|
|
3749
5338
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3750
|
-
const
|
|
5339
|
+
const argsDeprecatedBackupController_getDeprecatedBackupLog = {
|
|
3751
5340
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3752
5341
|
};
|
|
3753
|
-
app.get('/rest/v0/backup
|
|
5342
|
+
app.get('/rest/v0/backup/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getDeprecatedBackupLog)), async function DeprecatedBackupController_getDeprecatedBackupLog(request, response, next) {
|
|
3754
5343
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3755
5344
|
let validatedArgs = [];
|
|
3756
5345
|
try {
|
|
3757
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5346
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getDeprecatedBackupLog, request, response });
|
|
3758
5347
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3759
|
-
const controller = await container.get(
|
|
5348
|
+
const controller = await container.get(DeprecatedBackupController);
|
|
3760
5349
|
if (typeof controller['setStatus'] === 'function') {
|
|
3761
5350
|
controller.setStatus(undefined);
|
|
3762
5351
|
}
|
|
3763
5352
|
await templateService.apiHandler({
|
|
3764
|
-
methodName: '
|
|
5353
|
+
methodName: 'getDeprecatedBackupLog',
|
|
3765
5354
|
controller,
|
|
3766
5355
|
response,
|
|
3767
5356
|
next,
|