@xen-orchestra/rest-api 0.15.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.
Files changed (36) hide show
  1. package/dist/abstract-classes/base-controller.mjs +4 -2
  2. package/dist/abstract-classes/xapi-xo-controller.mjs +2 -6
  3. package/dist/alarms/alarm.service.mjs +2 -1
  4. package/dist/backup-jobs/backup-job.controller.mjs +284 -0
  5. package/dist/backup-jobs/backup-job.service.mjs +25 -0
  6. package/dist/backup-jobs/backup-job.type.mjs +1 -0
  7. package/dist/backup-logs/backup-log.controller.mjs +75 -0
  8. package/dist/backup-logs/backup-log.service.mjs +5 -0
  9. package/dist/groups/group.controller.mjs +37 -1
  10. package/dist/ioc/ioc.mjs +36 -0
  11. package/dist/open-api/common/response.common.mjs +4 -0
  12. package/dist/open-api/oa-examples/backup-job.oa-example.mjs +128 -0
  13. package/dist/open-api/oa-examples/backup-log.oa-example.mjs +93 -0
  14. package/dist/open-api/oa-examples/proxy.oa-example.mjs +25 -0
  15. package/dist/open-api/oa-examples/restore-log.oa-example.mjs +53 -0
  16. package/dist/open-api/oa-examples/user.oa-example.mjs +32 -0
  17. package/dist/open-api/oa-examples/vdi.oa-example.mjs +3 -0
  18. package/dist/open-api/routes/routes.js +1955 -513
  19. package/dist/proxies/proxy.controller.mjs +61 -0
  20. package/dist/rest-api/rest-api.mjs +6 -2
  21. package/dist/restore-logs/restore-log.controller.mjs +144 -0
  22. package/dist/srs/sr.controller.mjs +39 -2
  23. package/dist/tasks/task.controller.mjs +49 -3
  24. package/dist/tasks/task.service.mjs +24 -0
  25. package/dist/users/user.controller.mjs +91 -12
  26. package/dist/users/user.service.mjs +21 -0
  27. package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +46 -4
  28. package/dist/vdis/vdi.controller.mjs +43 -4
  29. package/dist/vdis/vdi.service.mjs +21 -0
  30. package/dist/vm-snapshots/vm-snapshot.controller.mjs +72 -3
  31. package/dist/vm-templates/vm-template.controller.mjs +43 -2
  32. package/dist/vms/vm.controller.mjs +135 -5
  33. package/dist/vms/vm.service.mjs +18 -0
  34. package/open-api/spec/swagger.json +8373 -4057
  35. package/package.json +4 -4
  36. package/tsoa.json +15 -0
@@ -30,6 +30,12 @@ import { ServerController } from './../../servers/server.controller.mjs';
30
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
31
31
  import { ScheduleController } from './../../schedules/schedule.controller.mjs';
32
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
33
39
  import { PoolController } from './../../pools/pool.controller.mjs';
34
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
35
41
  import { PifController } from './../../pifs/pif.controller.mjs';
@@ -48,6 +54,12 @@ import { GroupController } from './../../groups/group.controller.mjs';
48
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
49
55
  import { BackupRepositoryController } from './../../backup-repositories/backup-repositories.controller.mjs';
50
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
51
63
  import { AlarmController } from './../../alarms/alarm.controller.mjs';
52
64
  import { expressAuthentication } from './../../middlewares/authentication.middleware.mjs';
53
65
  // @ts-ignore - no great way to install types from subpackage
@@ -205,6 +217,81 @@ const models = {
205
217
  "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoVdi___" } }, { "ref": "NdjsonStream" }], "validators": {} },
206
218
  },
207
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
208
295
  "Partial_Unbrand_XoVmTemplate__": {
209
296
  "dataType": "refAlias",
210
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": {} },
@@ -386,39 +473,34 @@ const models = {
386
473
  "additionalProperties": false,
387
474
  },
388
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
389
- "Record_string.unknown_": {
390
- "dataType": "refAlias",
391
- "type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
392
- },
393
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
394
- "Branded_task_": {
476
+ "Partial_Unbrand_XoGroup__": {
395
477
  "dataType": "refAlias",
396
- "type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["task"], "required": true } } }], "validators": {} },
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": {} },
397
479
  },
398
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
399
- "XoTask": {
481
+ "WithHref_Partial_Unbrand_XoGroup___": {
400
482
  "dataType": "refAlias",
401
- "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "warning": { "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": {} },
483
+ "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoGroup__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
402
484
  },
403
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
404
- "Partial_Unbrand_XoTask__": {
486
+ "SendObjects_Partial_Unbrand_XoGroup___": {
405
487
  "dataType": "refAlias",
406
- "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" }] }, "warning": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "message": { "dataType": "string", "required": true }, "data": { "dataType": "any", "required": true } } } }, { "dataType": "undefined" }] } }, "validators": {} },
488
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoGroup___" } }, { "ref": "NdjsonStream" }], "validators": {} },
407
489
  },
408
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
409
- "WithHref_Partial_Unbrand_XoTask___": {
491
+ "Record_string._timestamp-number__": {
410
492
  "dataType": "refAlias",
411
- "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoTask__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
493
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
412
494
  },
413
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
414
- "SendObjects_Partial_Unbrand_XoTask___": {
496
+ "Unbrand_XoAuthenticationToken_": {
415
497
  "dataType": "refAlias",
416
- "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoTask___" } }, { "ref": "NdjsonStream" }], "validators": {} },
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": {} },
417
499
  },
418
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
419
501
  "Unbrand_XoTask_": {
420
502
  "dataType": "refAlias",
421
- "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" }] }, "warning": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "message": { "dataType": "string", "required": true }, "data": { "dataType": "any", "required": true } } } }, { "dataType": "undefined" }] } }, "validators": {} },
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": {} },
422
504
  },
423
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
424
506
  "Record_string.STORAGE_OPERATIONS_": {
@@ -525,6 +607,46 @@ const models = {
525
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": {} },
526
608
  },
527
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
528
650
  "Record_string.POOL_ALLOWED_OPERATIONS_": {
529
651
  "dataType": "refAlias",
530
652
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
@@ -787,21 +909,6 @@ const models = {
787
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": {} },
788
910
  },
789
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
790
- "Partial_Unbrand_XoGroup__": {
791
- "dataType": "refAlias",
792
- "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": {} },
793
- },
794
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
795
- "WithHref_Partial_Unbrand_XoGroup___": {
796
- "dataType": "refAlias",
797
- "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoGroup__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
798
- },
799
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
800
- "SendObjects_Partial_Unbrand_XoGroup___": {
801
- "dataType": "refAlias",
802
- "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoGroup___" } }, { "ref": "NdjsonStream" }], "validators": {} },
803
- },
804
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
805
912
  "Unbrand_XoGroup_": {
806
913
  "dataType": "refAlias",
807
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": {} },
@@ -835,6 +942,121 @@ const models = {
835
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": {} },
836
943
  },
837
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
838
1060
  "Partial_UnbrandedXoAlarm_": {
839
1061
  "dataType": "refAlias",
840
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": {} },
@@ -927,6 +1149,36 @@ export function RegisterRoutes(app) {
927
1149
  }
928
1150
  });
929
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
930
1182
  const argsVmController_getVm = {
931
1183
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
932
1184
  };
@@ -954,6 +1206,33 @@ export function RegisterRoutes(app) {
954
1206
  }
955
1207
  });
956
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
957
1236
  const argsVmController_getVmStats = {
958
1237
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
959
1238
  granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
@@ -1384,25 +1663,26 @@ export function RegisterRoutes(app) {
1384
1663
  }
1385
1664
  });
1386
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
1387
- const argsVmTemplateController_getVmTemplates = {
1666
+ const argsVmController_vmGetVmBackupJobs = {
1388
1667
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1668
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1389
1669
  fields: { "in": "query", "name": "fields", "dataType": "string" },
1390
1670
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
1391
1671
  filter: { "in": "query", "name": "filter", "dataType": "string" },
1392
1672
  limit: { "in": "query", "name": "limit", "dataType": "double" },
1393
1673
  };
1394
- app.get('/rest/v0/vm-templates', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplates)), async function VmTemplateController_getVmTemplates(request, response, next) {
1674
+ app.get('/rest/v0/vms/:id/backup-jobs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.vmGetVmBackupJobs)), async function VmController_vmGetVmBackupJobs(request, response, next) {
1395
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
1396
1676
  let validatedArgs = [];
1397
1677
  try {
1398
- validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplates, request, response });
1678
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmController_vmGetVmBackupJobs, request, response });
1399
1679
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1400
- const controller = await container.get(VmTemplateController);
1680
+ const controller = await container.get(VmController);
1401
1681
  if (typeof controller['setStatus'] === 'function') {
1402
1682
  controller.setStatus(undefined);
1403
1683
  }
1404
1684
  await templateService.apiHandler({
1405
- methodName: 'getVmTemplates',
1685
+ methodName: 'vmGetVmBackupJobs',
1406
1686
  controller,
1407
1687
  response,
1408
1688
  next,
@@ -1415,21 +1695,26 @@ export function RegisterRoutes(app) {
1415
1695
  }
1416
1696
  });
1417
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
1418
- const argsVmTemplateController_getVmTemplate = {
1698
+ const argsVmController_getVmMessages = {
1699
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1419
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" },
1420
1705
  };
1421
- app.get('/rest/v0/vm-templates/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplate)), async function VmTemplateController_getVmTemplate(request, response, next) {
1706
+ app.get('/rest/v0/vms/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVmMessages)), async function VmController_getVmMessages(request, response, next) {
1422
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
1423
1708
  let validatedArgs = [];
1424
1709
  try {
1425
- validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplate, request, response });
1710
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVmMessages, request, response });
1426
1711
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1427
- const controller = await container.get(VmTemplateController);
1712
+ const controller = await container.get(VmController);
1428
1713
  if (typeof controller['setStatus'] === 'function') {
1429
1714
  controller.setStatus(undefined);
1430
1715
  }
1431
1716
  await templateService.apiHandler({
1432
- methodName: 'getVmTemplate',
1717
+ methodName: 'getVmMessages',
1433
1718
  controller,
1434
1719
  response,
1435
1720
  next,
@@ -1442,6 +1727,153 @@ export function RegisterRoutes(app) {
1442
1727
  }
1443
1728
  });
1444
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 });
1831
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1832
+ const controller = await container.get(VmTemplateController);
1833
+ if (typeof controller['setStatus'] === 'function') {
1834
+ controller.setStatus(undefined);
1835
+ }
1836
+ await templateService.apiHandler({
1837
+ methodName: 'getVmTemplate',
1838
+ controller,
1839
+ response,
1840
+ next,
1841
+ validatedArgs,
1842
+ successStatus: undefined,
1843
+ });
1844
+ }
1845
+ catch (err) {
1846
+ return next(err);
1847
+ }
1848
+ });
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
1445
1877
  const argsVmTemplateController_getVmTemplateAlarms = {
1446
1878
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1447
1879
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
@@ -1537,6 +1969,36 @@ export function RegisterRoutes(app) {
1537
1969
  }
1538
1970
  });
1539
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
1540
2002
  const argsVmSnapshotController_getVmSnapshot = {
1541
2003
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1542
2004
  };
@@ -1564,6 +2026,33 @@ export function RegisterRoutes(app) {
1564
2026
  }
1565
2027
  });
1566
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
1567
2056
  const argsVmSnapshotController_getVmSnapshotAlarms = {
1568
2057
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1569
2058
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
@@ -1628,6 +2117,38 @@ export function RegisterRoutes(app) {
1628
2117
  }
1629
2118
  });
1630
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
1631
2152
  const argsVmControllerController_getVmControllers = {
1632
2153
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1633
2154
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -1871,26 +2392,28 @@ export function RegisterRoutes(app) {
1871
2392
  }
1872
2393
  });
1873
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
1874
- const argsVdiController_getVdi = {
2395
+ const argsVdiController_exportVdiContent = {
2396
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1875
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"] }] },
1876
2399
  };
1877
- app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
2400
+ app.get('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.exportVdiContent)), async function VdiController_exportVdiContent(request, response, next) {
1878
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
1879
2402
  let validatedArgs = [];
1880
2403
  try {
1881
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
2404
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_exportVdiContent, request, response });
1882
2405
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1883
2406
  const controller = await container.get(VdiController);
1884
2407
  if (typeof controller['setStatus'] === 'function') {
1885
2408
  controller.setStatus(undefined);
1886
2409
  }
1887
2410
  await templateService.apiHandler({
1888
- methodName: 'getVdi',
2411
+ methodName: 'exportVdiContent',
1889
2412
  controller,
1890
2413
  response,
1891
2414
  next,
1892
2415
  validatedArgs,
1893
- successStatus: undefined,
2416
+ successStatus: 200,
1894
2417
  });
1895
2418
  }
1896
2419
  catch (err) {
@@ -1898,26 +2421,21 @@ export function RegisterRoutes(app) {
1898
2421
  }
1899
2422
  });
1900
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
1901
- const argsVdiController_getVdiAlarms = {
1902
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2424
+ const argsVdiController_getVdi = {
1903
2425
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1904
- fields: { "in": "query", "name": "fields", "dataType": "string" },
1905
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
1906
- filter: { "in": "query", "name": "filter", "dataType": "string" },
1907
- limit: { "in": "query", "name": "limit", "dataType": "double" },
1908
2426
  };
1909
- app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
2427
+ app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
1910
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
1911
2429
  let validatedArgs = [];
1912
2430
  try {
1913
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
2431
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
1914
2432
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1915
2433
  const controller = await container.get(VdiController);
1916
2434
  if (typeof controller['setStatus'] === 'function') {
1917
2435
  controller.setStatus(undefined);
1918
2436
  }
1919
2437
  await templateService.apiHandler({
1920
- methodName: 'getVdiAlarms',
2438
+ methodName: 'getVdi',
1921
2439
  controller,
1922
2440
  response,
1923
2441
  next,
@@ -1930,25 +2448,26 @@ export function RegisterRoutes(app) {
1930
2448
  }
1931
2449
  });
1932
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
1933
- const argsVdiSnapshotController_getVdiSnapshots = {
2451
+ const argsVdiController_getVdiAlarms = {
1934
2452
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2453
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1935
2454
  fields: { "in": "query", "name": "fields", "dataType": "string" },
1936
2455
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
1937
2456
  filter: { "in": "query", "name": "filter", "dataType": "string" },
1938
2457
  limit: { "in": "query", "name": "limit", "dataType": "double" },
1939
2458
  };
1940
- app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
2459
+ app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
1941
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
1942
2461
  let validatedArgs = [];
1943
2462
  try {
1944
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
2463
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
1945
2464
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1946
- const controller = await container.get(VdiSnapshotController);
2465
+ const controller = await container.get(VdiController);
1947
2466
  if (typeof controller['setStatus'] === 'function') {
1948
2467
  controller.setStatus(undefined);
1949
2468
  }
1950
2469
  await templateService.apiHandler({
1951
- methodName: 'getVdiSnapshots',
2470
+ methodName: 'getVdiAlarms',
1952
2471
  controller,
1953
2472
  response,
1954
2473
  next,
@@ -1961,26 +2480,26 @@ export function RegisterRoutes(app) {
1961
2480
  }
1962
2481
  });
1963
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
1964
- const argsVdiSnapshotController_getVdiSnapshot = {
2483
+ const argsVdiController_deleteVdi = {
1965
2484
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1966
2485
  };
1967
- app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
2486
+ app.delete('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdi)), async function VdiController_deleteVdi(request, response, next) {
1968
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
1969
2488
  let validatedArgs = [];
1970
2489
  try {
1971
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
2490
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdi, request, response });
1972
2491
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1973
- const controller = await container.get(VdiSnapshotController);
2492
+ const controller = await container.get(VdiController);
1974
2493
  if (typeof controller['setStatus'] === 'function') {
1975
2494
  controller.setStatus(undefined);
1976
2495
  }
1977
2496
  await templateService.apiHandler({
1978
- methodName: 'getVdiSnapshot',
2497
+ methodName: 'deleteVdi',
1979
2498
  controller,
1980
2499
  response,
1981
2500
  next,
1982
2501
  validatedArgs,
1983
- successStatus: undefined,
2502
+ successStatus: 204,
1984
2503
  });
1985
2504
  }
1986
2505
  catch (err) {
@@ -1988,26 +2507,25 @@ export function RegisterRoutes(app) {
1988
2507
  }
1989
2508
  });
1990
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
1991
- const argsVdiSnapshotController_getVdiSnapshotAlarms = {
2510
+ const argsVdiSnapshotController_getVdiSnapshots = {
1992
2511
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1993
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1994
2512
  fields: { "in": "query", "name": "fields", "dataType": "string" },
1995
2513
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
1996
2514
  filter: { "in": "query", "name": "filter", "dataType": "string" },
1997
2515
  limit: { "in": "query", "name": "limit", "dataType": "double" },
1998
2516
  };
1999
- app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
2517
+ app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
2000
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
2001
2519
  let validatedArgs = [];
2002
2520
  try {
2003
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
2521
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
2004
2522
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2005
2523
  const controller = await container.get(VdiSnapshotController);
2006
2524
  if (typeof controller['setStatus'] === 'function') {
2007
2525
  controller.setStatus(undefined);
2008
2526
  }
2009
2527
  await templateService.apiHandler({
2010
- methodName: 'getVdiSnapshotAlarms',
2528
+ methodName: 'getVdiSnapshots',
2011
2529
  controller,
2012
2530
  response,
2013
2531
  next,
@@ -2020,30 +2538,28 @@ export function RegisterRoutes(app) {
2020
2538
  }
2021
2539
  });
2022
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
2023
- const argsVbdController_getVbds = {
2541
+ const argsVdiSnapshotController_exportVdiSnapshotContent = {
2024
2542
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2025
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2026
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2027
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2028
- 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"] }] },
2029
2545
  };
2030
- app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
2546
+ app.get('/rest/v0/vdi-snapshots/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.exportVdiSnapshotContent)), async function VdiSnapshotController_exportVdiSnapshotContent(request, response, next) {
2031
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
2032
2548
  let validatedArgs = [];
2033
2549
  try {
2034
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
2550
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_exportVdiSnapshotContent, request, response });
2035
2551
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2036
- const controller = await container.get(VbdController);
2552
+ const controller = await container.get(VdiSnapshotController);
2037
2553
  if (typeof controller['setStatus'] === 'function') {
2038
2554
  controller.setStatus(undefined);
2039
2555
  }
2040
2556
  await templateService.apiHandler({
2041
- methodName: 'getVbds',
2557
+ methodName: 'exportVdiSnapshotContent',
2042
2558
  controller,
2043
2559
  response,
2044
2560
  next,
2045
2561
  validatedArgs,
2046
- successStatus: undefined,
2562
+ successStatus: 200,
2047
2563
  });
2048
2564
  }
2049
2565
  catch (err) {
@@ -2051,21 +2567,21 @@ export function RegisterRoutes(app) {
2051
2567
  }
2052
2568
  });
2053
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
2054
- const argsVbdController_getVbd = {
2570
+ const argsVdiSnapshotController_getVdiSnapshot = {
2055
2571
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2056
2572
  };
2057
- app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
2573
+ app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
2058
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
2059
2575
  let validatedArgs = [];
2060
2576
  try {
2061
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
2577
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
2062
2578
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2063
- const controller = await container.get(VbdController);
2579
+ const controller = await container.get(VdiSnapshotController);
2064
2580
  if (typeof controller['setStatus'] === 'function') {
2065
2581
  controller.setStatus(undefined);
2066
2582
  }
2067
2583
  await templateService.apiHandler({
2068
- methodName: 'getVbd',
2584
+ methodName: 'getVdiSnapshot',
2069
2585
  controller,
2070
2586
  response,
2071
2587
  next,
@@ -2078,7 +2594,7 @@ export function RegisterRoutes(app) {
2078
2594
  }
2079
2595
  });
2080
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
2081
- const argsVbdController_getVbdAlarms = {
2597
+ const argsVdiSnapshotController_getVdiSnapshotAlarms = {
2082
2598
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2083
2599
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2084
2600
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2086,18 +2602,18 @@ export function RegisterRoutes(app) {
2086
2602
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2087
2603
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2088
2604
  };
2089
- app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
2605
+ app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
2090
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
2091
2607
  let validatedArgs = [];
2092
2608
  try {
2093
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
2609
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
2094
2610
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2095
- const controller = await container.get(VbdController);
2611
+ const controller = await container.get(VdiSnapshotController);
2096
2612
  if (typeof controller['setStatus'] === 'function') {
2097
2613
  controller.setStatus(undefined);
2098
2614
  }
2099
2615
  await templateService.apiHandler({
2100
- methodName: 'getVbdAlarms',
2616
+ methodName: 'getVdiSnapshotAlarms',
2101
2617
  controller,
2102
2618
  response,
2103
2619
  next,
@@ -2110,25 +2626,52 @@ export function RegisterRoutes(app) {
2110
2626
  }
2111
2627
  });
2112
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
2113
- const argsUserController_getUsers = {
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 = {
2114
2657
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2115
2658
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2116
2659
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2117
2660
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2118
2661
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2119
2662
  };
2120
- app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
2663
+ app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
2121
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
2122
2665
  let validatedArgs = [];
2123
2666
  try {
2124
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
2667
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
2125
2668
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2126
- const controller = await container.get(UserController);
2669
+ const controller = await container.get(VbdController);
2127
2670
  if (typeof controller['setStatus'] === 'function') {
2128
2671
  controller.setStatus(undefined);
2129
2672
  }
2130
2673
  await templateService.apiHandler({
2131
- methodName: 'getUsers',
2674
+ methodName: 'getVbds',
2132
2675
  controller,
2133
2676
  response,
2134
2677
  next,
@@ -2141,21 +2684,21 @@ export function RegisterRoutes(app) {
2141
2684
  }
2142
2685
  });
2143
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
2144
- const argsUserController_getUser = {
2687
+ const argsVbdController_getVbd = {
2145
2688
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2146
2689
  };
2147
- app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
2690
+ app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
2148
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
2149
2692
  let validatedArgs = [];
2150
2693
  try {
2151
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
2694
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
2152
2695
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2153
- const controller = await container.get(UserController);
2696
+ const controller = await container.get(VbdController);
2154
2697
  if (typeof controller['setStatus'] === 'function') {
2155
2698
  controller.setStatus(undefined);
2156
2699
  }
2157
2700
  await templateService.apiHandler({
2158
- methodName: 'getUser',
2701
+ methodName: 'getVbd',
2159
2702
  controller,
2160
2703
  response,
2161
2704
  next,
@@ -2168,27 +2711,31 @@ export function RegisterRoutes(app) {
2168
2711
  }
2169
2712
  });
2170
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
2171
- const argsUserController_updateUser = {
2714
+ const argsVbdController_getVbdAlarms = {
2715
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2172
2716
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2173
- body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
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" },
2174
2721
  };
2175
- app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
2722
+ app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
2176
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
2177
2724
  let validatedArgs = [];
2178
2725
  try {
2179
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
2726
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
2180
2727
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2181
- const controller = await container.get(UserController);
2728
+ const controller = await container.get(VbdController);
2182
2729
  if (typeof controller['setStatus'] === 'function') {
2183
2730
  controller.setStatus(undefined);
2184
2731
  }
2185
2732
  await templateService.apiHandler({
2186
- methodName: 'updateUser',
2733
+ methodName: 'getVbdAlarms',
2187
2734
  controller,
2188
2735
  response,
2189
2736
  next,
2190
2737
  validatedArgs,
2191
- successStatus: 204,
2738
+ successStatus: undefined,
2192
2739
  });
2193
2740
  }
2194
2741
  catch (err) {
@@ -2196,26 +2743,30 @@ export function RegisterRoutes(app) {
2196
2743
  }
2197
2744
  });
2198
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
2199
- const argsUserController_createUser = {
2200
- body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
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" },
2201
2752
  };
2202
- app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
2753
+ app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
2203
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
2204
2755
  let validatedArgs = [];
2205
2756
  try {
2206
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
2757
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
2207
2758
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2208
2759
  const controller = await container.get(UserController);
2209
2760
  if (typeof controller['setStatus'] === 'function') {
2210
2761
  controller.setStatus(undefined);
2211
2762
  }
2212
2763
  await templateService.apiHandler({
2213
- methodName: 'createUser',
2764
+ methodName: 'getUsers',
2214
2765
  controller,
2215
2766
  response,
2216
2767
  next,
2217
2768
  validatedArgs,
2218
- successStatus: 201,
2769
+ successStatus: undefined,
2219
2770
  });
2220
2771
  }
2221
2772
  catch (err) {
@@ -2223,26 +2774,26 @@ export function RegisterRoutes(app) {
2223
2774
  }
2224
2775
  });
2225
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
2226
- const argsUserController_deleteUser = {
2227
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2777
+ const argsUserController_redirectMe = {
2778
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2228
2779
  };
2229
- app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
2780
+ app.get('/rest/v0/users/me', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.redirectMe)), async function UserController_redirectMe(request, response, next) {
2230
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
2231
2782
  let validatedArgs = [];
2232
2783
  try {
2233
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
2784
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_redirectMe, request, response });
2234
2785
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2235
2786
  const controller = await container.get(UserController);
2236
2787
  if (typeof controller['setStatus'] === 'function') {
2237
2788
  controller.setStatus(undefined);
2238
2789
  }
2239
2790
  await templateService.apiHandler({
2240
- methodName: 'deleteUser',
2791
+ methodName: 'redirectMe',
2241
2792
  controller,
2242
2793
  response,
2243
2794
  next,
2244
2795
  validatedArgs,
2245
- successStatus: 204,
2796
+ successStatus: 307,
2246
2797
  });
2247
2798
  }
2248
2799
  catch (err) {
@@ -2250,31 +2801,26 @@ export function RegisterRoutes(app) {
2250
2801
  }
2251
2802
  });
2252
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
2253
- const argsTaskController_getTasks = {
2804
+ const argsUserController_redirectMeWithPath = {
2254
2805
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2255
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2256
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2257
- watch: { "in": "query", "name": "watch", "dataType": "boolean" },
2258
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2259
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2260
2806
  };
2261
- app.get('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTasks)), async function TaskController_getTasks(request, response, next) {
2807
+ app.get('/rest/v0/users/me/*', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.redirectMeWithPath)), async function UserController_redirectMeWithPath(request, response, next) {
2262
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
2263
2809
  let validatedArgs = [];
2264
2810
  try {
2265
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTasks, request, response });
2811
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_redirectMeWithPath, request, response });
2266
2812
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2267
- const controller = await container.get(TaskController);
2813
+ const controller = await container.get(UserController);
2268
2814
  if (typeof controller['setStatus'] === 'function') {
2269
2815
  controller.setStatus(undefined);
2270
2816
  }
2271
2817
  await templateService.apiHandler({
2272
- methodName: 'getTasks',
2818
+ methodName: 'redirectMeWithPath',
2273
2819
  controller,
2274
2820
  response,
2275
2821
  next,
2276
2822
  validatedArgs,
2277
- successStatus: undefined,
2823
+ successStatus: 307,
2278
2824
  });
2279
2825
  }
2280
2826
  catch (err) {
@@ -2282,23 +2828,21 @@ export function RegisterRoutes(app) {
2282
2828
  }
2283
2829
  });
2284
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
2285
- const argsTaskController_getTask = {
2286
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2831
+ const argsUserController_getUser = {
2287
2832
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2288
- wait: { "in": "query", "name": "wait", "dataType": "boolean" },
2289
2833
  };
2290
- app.get('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTask)), async function TaskController_getTask(request, response, next) {
2834
+ app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
2291
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
2292
2836
  let validatedArgs = [];
2293
2837
  try {
2294
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
2838
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
2295
2839
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2296
- const controller = await container.get(TaskController);
2840
+ const controller = await container.get(UserController);
2297
2841
  if (typeof controller['setStatus'] === 'function') {
2298
2842
  controller.setStatus(undefined);
2299
2843
  }
2300
2844
  await templateService.apiHandler({
2301
- methodName: 'getTask',
2845
+ methodName: 'getUser',
2302
2846
  controller,
2303
2847
  response,
2304
2848
  next,
@@ -2311,30 +2855,27 @@ export function RegisterRoutes(app) {
2311
2855
  }
2312
2856
  });
2313
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
2314
- const argsSrController_getSrs = {
2315
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2316
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2317
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2318
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2319
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2858
+ const argsUserController_updateUser = {
2859
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2860
+ body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
2320
2861
  };
2321
- app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
2862
+ app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
2322
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
2323
2864
  let validatedArgs = [];
2324
2865
  try {
2325
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
2866
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
2326
2867
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2327
- const controller = await container.get(SrController);
2868
+ const controller = await container.get(UserController);
2328
2869
  if (typeof controller['setStatus'] === 'function') {
2329
2870
  controller.setStatus(undefined);
2330
2871
  }
2331
2872
  await templateService.apiHandler({
2332
- methodName: 'getSrs',
2873
+ methodName: 'updateUser',
2333
2874
  controller,
2334
2875
  response,
2335
2876
  next,
2336
2877
  validatedArgs,
2337
- successStatus: undefined,
2878
+ successStatus: 204,
2338
2879
  });
2339
2880
  }
2340
2881
  catch (err) {
@@ -2342,26 +2883,26 @@ export function RegisterRoutes(app) {
2342
2883
  }
2343
2884
  });
2344
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
2345
- const argsSrController_getSr = {
2346
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
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 } } },
2347
2888
  };
2348
- app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
2889
+ app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
2349
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
2350
2891
  let validatedArgs = [];
2351
2892
  try {
2352
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
2893
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
2353
2894
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2354
- const controller = await container.get(SrController);
2895
+ const controller = await container.get(UserController);
2355
2896
  if (typeof controller['setStatus'] === 'function') {
2356
2897
  controller.setStatus(undefined);
2357
2898
  }
2358
2899
  await templateService.apiHandler({
2359
- methodName: 'getSr',
2900
+ methodName: 'createUser',
2360
2901
  controller,
2361
2902
  response,
2362
2903
  next,
2363
2904
  validatedArgs,
2364
- successStatus: undefined,
2905
+ successStatus: 201,
2365
2906
  });
2366
2907
  }
2367
2908
  catch (err) {
@@ -2369,31 +2910,26 @@ export function RegisterRoutes(app) {
2369
2910
  }
2370
2911
  });
2371
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
2372
- const argsSrController_getSrAlarms = {
2373
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2913
+ const argsUserController_deleteUser = {
2374
2914
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2375
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2376
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2377
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2378
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2379
2915
  };
2380
- app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
2916
+ app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
2381
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
2382
2918
  let validatedArgs = [];
2383
2919
  try {
2384
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
2920
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
2385
2921
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2386
- const controller = await container.get(SrController);
2922
+ const controller = await container.get(UserController);
2387
2923
  if (typeof controller['setStatus'] === 'function') {
2388
2924
  controller.setStatus(undefined);
2389
2925
  }
2390
2926
  await templateService.apiHandler({
2391
- methodName: 'getSrAlarms',
2927
+ methodName: 'deleteUser',
2392
2928
  controller,
2393
2929
  response,
2394
2930
  next,
2395
2931
  validatedArgs,
2396
- successStatus: undefined,
2932
+ successStatus: 204,
2397
2933
  });
2398
2934
  }
2399
2935
  catch (err) {
@@ -2401,25 +2937,26 @@ export function RegisterRoutes(app) {
2401
2937
  }
2402
2938
  });
2403
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
2404
- const argsSmController_getSrs = {
2940
+ const argsUserController_getUserGroups = {
2405
2941
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2942
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2406
2943
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2407
2944
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2408
2945
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2409
2946
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2410
2947
  };
2411
- app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
2948
+ app.get('/rest/v0/users/:id/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserGroups)), async function UserController_getUserGroups(request, response, next) {
2412
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
2413
2950
  let validatedArgs = [];
2414
2951
  try {
2415
- validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
2952
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserGroups, request, response });
2416
2953
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2417
- const controller = await container.get(SmController);
2954
+ const controller = await container.get(UserController);
2418
2955
  if (typeof controller['setStatus'] === 'function') {
2419
2956
  controller.setStatus(undefined);
2420
2957
  }
2421
2958
  await templateService.apiHandler({
2422
- methodName: 'getSrs',
2959
+ methodName: 'getUserGroups',
2423
2960
  controller,
2424
2961
  response,
2425
2962
  next,
@@ -2432,21 +2969,24 @@ export function RegisterRoutes(app) {
2432
2969
  }
2433
2970
  });
2434
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
2435
- const argsSmController_getSr = {
2972
+ const argsUserController_getAuthenticationTokens = {
2973
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2436
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" },
2437
2977
  };
2438
- app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
2978
+ app.get('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getAuthenticationTokens)), async function UserController_getAuthenticationTokens(request, response, next) {
2439
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
2440
2980
  let validatedArgs = [];
2441
2981
  try {
2442
- validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
2982
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAuthenticationTokens, request, response });
2443
2983
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2444
- const controller = await container.get(SmController);
2984
+ const controller = await container.get(UserController);
2445
2985
  if (typeof controller['setStatus'] === 'function') {
2446
2986
  controller.setStatus(undefined);
2447
2987
  }
2448
2988
  await templateService.apiHandler({
2449
- methodName: 'getSr',
2989
+ methodName: 'getAuthenticationTokens',
2450
2990
  controller,
2451
2991
  response,
2452
2992
  next,
@@ -2459,25 +2999,26 @@ export function RegisterRoutes(app) {
2459
2999
  }
2460
3000
  });
2461
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
2462
- const argsServerController_getServers = {
3002
+ const argsTaskController_getTasks = {
2463
3003
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2464
3004
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2465
3005
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3006
+ watch: { "in": "query", "name": "watch", "dataType": "boolean" },
2466
3007
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2467
3008
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2468
3009
  };
2469
- app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
3010
+ app.get('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTasks)), async function TaskController_getTasks(request, response, next) {
2470
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
2471
3012
  let validatedArgs = [];
2472
3013
  try {
2473
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
3014
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTasks, request, response });
2474
3015
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2475
- const controller = await container.get(ServerController);
3016
+ const controller = await container.get(TaskController);
2476
3017
  if (typeof controller['setStatus'] === 'function') {
2477
3018
  controller.setStatus(undefined);
2478
3019
  }
2479
3020
  await templateService.apiHandler({
2480
- methodName: 'getServers',
3021
+ methodName: 'getTasks',
2481
3022
  controller,
2482
3023
  response,
2483
3024
  next,
@@ -2490,21 +3031,23 @@ export function RegisterRoutes(app) {
2490
3031
  }
2491
3032
  });
2492
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
2493
- const argsServerController_getServer = {
3034
+ const argsTaskController_getTask = {
3035
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2494
3036
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3037
+ wait: { "in": "query", "name": "wait", "dataType": "boolean" },
2495
3038
  };
2496
- app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
3039
+ app.get('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTask)), async function TaskController_getTask(request, response, next) {
2497
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
2498
3041
  let validatedArgs = [];
2499
3042
  try {
2500
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
3043
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
2501
3044
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2502
- const controller = await container.get(ServerController);
3045
+ const controller = await container.get(TaskController);
2503
3046
  if (typeof controller['setStatus'] === 'function') {
2504
3047
  controller.setStatus(undefined);
2505
3048
  }
2506
3049
  await templateService.apiHandler({
2507
- methodName: 'getServer',
3050
+ methodName: 'getTask',
2508
3051
  controller,
2509
3052
  response,
2510
3053
  next,
@@ -2517,21 +3060,19 @@ export function RegisterRoutes(app) {
2517
3060
  }
2518
3061
  });
2519
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
2520
- const argsServerController_deleteServer = {
2521
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2522
- };
2523
- app.delete('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.deleteServer)), async function ServerController_deleteServer(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) {
2524
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
2525
3066
  let validatedArgs = [];
2526
3067
  try {
2527
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_deleteServer, request, response });
3068
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTasks, request, response });
2528
3069
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2529
- const controller = await container.get(ServerController);
3070
+ const controller = await container.get(TaskController);
2530
3071
  if (typeof controller['setStatus'] === 'function') {
2531
3072
  controller.setStatus(undefined);
2532
3073
  }
2533
3074
  await templateService.apiHandler({
2534
- methodName: 'deleteServer',
3075
+ methodName: 'deleteTasks',
2535
3076
  controller,
2536
3077
  response,
2537
3078
  next,
@@ -2544,26 +3085,26 @@ export function RegisterRoutes(app) {
2544
3085
  }
2545
3086
  });
2546
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
2547
- const argsServerController_addServer = {
2548
- body: { "in": "body", "name": "body", "required": true, "ref": "InsertableXoServer" },
3088
+ const argsTaskController_deleteTask = {
3089
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2549
3090
  };
2550
- app.post('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.addServer)), async function ServerController_addServer(request, response, next) {
3091
+ app.delete('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTask)), async function TaskController_deleteTask(request, response, next) {
2551
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
2552
3093
  let validatedArgs = [];
2553
3094
  try {
2554
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_addServer, request, response });
3095
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTask, request, response });
2555
3096
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2556
- const controller = await container.get(ServerController);
3097
+ const controller = await container.get(TaskController);
2557
3098
  if (typeof controller['setStatus'] === 'function') {
2558
3099
  controller.setStatus(undefined);
2559
3100
  }
2560
3101
  await templateService.apiHandler({
2561
- methodName: 'addServer',
3102
+ methodName: 'deleteTask',
2562
3103
  controller,
2563
3104
  response,
2564
3105
  next,
2565
3106
  validatedArgs,
2566
- successStatus: 201,
3107
+ successStatus: 204,
2567
3108
  });
2568
3109
  }
2569
3110
  catch (err) {
@@ -2571,22 +3112,22 @@ export function RegisterRoutes(app) {
2571
3112
  }
2572
3113
  });
2573
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
2574
- const argsServerController_connectServer = {
3115
+ const argsTaskController_abortTask = {
2575
3116
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2576
3117
  sync: { "in": "query", "name": "sync", "dataType": "boolean" },
2577
3118
  };
2578
- app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
3119
+ app.post('/rest/v0/tasks/:id/actions/abort', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.abortTask)), async function TaskController_abortTask(request, response, next) {
2579
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
2580
3121
  let validatedArgs = [];
2581
3122
  try {
2582
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_connectServer, request, response });
3123
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_abortTask, request, response });
2583
3124
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2584
- const controller = await container.get(ServerController);
3125
+ const controller = await container.get(TaskController);
2585
3126
  if (typeof controller['setStatus'] === 'function') {
2586
3127
  controller.setStatus(undefined);
2587
3128
  }
2588
3129
  await templateService.apiHandler({
2589
- methodName: 'connectServer',
3130
+ methodName: 'abortTask',
2590
3131
  controller,
2591
3132
  response,
2592
3133
  next,
@@ -2599,27 +3140,30 @@ export function RegisterRoutes(app) {
2599
3140
  }
2600
3141
  });
2601
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
2602
- const argsServerController_disconnectServer = {
2603
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2604
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
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" },
2605
3149
  };
2606
- app.post('/rest/v0/servers/:id/actions/disconnect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.disconnectServer)), async function ServerController_disconnectServer(request, response, next) {
3150
+ app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
2607
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
2608
3152
  let validatedArgs = [];
2609
3153
  try {
2610
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_disconnectServer, request, response });
3154
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
2611
3155
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2612
- const controller = await container.get(ServerController);
3156
+ const controller = await container.get(SrController);
2613
3157
  if (typeof controller['setStatus'] === 'function') {
2614
3158
  controller.setStatus(undefined);
2615
3159
  }
2616
3160
  await templateService.apiHandler({
2617
- methodName: 'disconnectServer',
3161
+ methodName: 'getSrs',
2618
3162
  controller,
2619
3163
  response,
2620
3164
  next,
2621
3165
  validatedArgs,
2622
- successStatus: 202,
3166
+ successStatus: undefined,
2623
3167
  });
2624
3168
  }
2625
3169
  catch (err) {
@@ -2627,25 +3171,21 @@ export function RegisterRoutes(app) {
2627
3171
  }
2628
3172
  });
2629
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
2630
- const argsScheduleController_getSchedules = {
2631
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2632
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2633
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2634
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2635
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3174
+ const argsSrController_getSr = {
3175
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2636
3176
  };
2637
- app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
3177
+ app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
2638
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
2639
3179
  let validatedArgs = [];
2640
3180
  try {
2641
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
3181
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
2642
3182
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2643
- const controller = await container.get(ScheduleController);
3183
+ const controller = await container.get(SrController);
2644
3184
  if (typeof controller['setStatus'] === 'function') {
2645
3185
  controller.setStatus(undefined);
2646
3186
  }
2647
3187
  await templateService.apiHandler({
2648
- methodName: 'getSchedules',
3188
+ methodName: 'getSr',
2649
3189
  controller,
2650
3190
  response,
2651
3191
  next,
@@ -2658,21 +3198,26 @@ export function RegisterRoutes(app) {
2658
3198
  }
2659
3199
  });
2660
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
2661
- const argsScheduleController_getSchedule = {
3201
+ const argsSrController_getSrAlarms = {
3202
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2662
3203
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3204
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3205
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3206
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3207
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2663
3208
  };
2664
- app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
3209
+ app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
2665
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
2666
3211
  let validatedArgs = [];
2667
3212
  try {
2668
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
3213
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
2669
3214
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2670
- const controller = await container.get(ScheduleController);
3215
+ const controller = await container.get(SrController);
2671
3216
  if (typeof controller['setStatus'] === 'function') {
2672
3217
  controller.setStatus(undefined);
2673
3218
  }
2674
3219
  await templateService.apiHandler({
2675
- methodName: 'getSchedule',
3220
+ methodName: 'getSrAlarms',
2676
3221
  controller,
2677
3222
  response,
2678
3223
  next,
@@ -2685,27 +3230,30 @@ export function RegisterRoutes(app) {
2685
3230
  }
2686
3231
  });
2687
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
2688
- const argsScheduleController_runSchedule = {
3233
+ const argsSrController_srImportVdi = {
3234
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2689
3235
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2690
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
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" },
2691
3239
  };
2692
- app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
3240
+ app.post('/rest/v0/srs/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.srImportVdi)), async function SrController_srImportVdi(request, response, next) {
2693
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
2694
3242
  let validatedArgs = [];
2695
3243
  try {
2696
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
3244
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_srImportVdi, request, response });
2697
3245
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2698
- const controller = await container.get(ScheduleController);
3246
+ const controller = await container.get(SrController);
2699
3247
  if (typeof controller['setStatus'] === 'function') {
2700
3248
  controller.setStatus(undefined);
2701
3249
  }
2702
3250
  await templateService.apiHandler({
2703
- methodName: 'runSchedule',
3251
+ methodName: 'srImportVdi',
2704
3252
  controller,
2705
3253
  response,
2706
3254
  next,
2707
3255
  validatedArgs,
2708
- successStatus: 202,
3256
+ successStatus: 201,
2709
3257
  });
2710
3258
  }
2711
3259
  catch (err) {
@@ -2713,25 +3261,25 @@ export function RegisterRoutes(app) {
2713
3261
  }
2714
3262
  });
2715
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
2716
- const argsPoolController_getPools = {
3264
+ const argsSmController_getSrs = {
2717
3265
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2718
3266
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2719
3267
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2720
3268
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2721
3269
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2722
3270
  };
2723
- app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPools)), async function PoolController_getPools(request, response, next) {
3271
+ app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
2724
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
2725
3273
  let validatedArgs = [];
2726
3274
  try {
2727
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPools, request, response });
3275
+ validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
2728
3276
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2729
- const controller = await container.get(PoolController);
3277
+ const controller = await container.get(SmController);
2730
3278
  if (typeof controller['setStatus'] === 'function') {
2731
3279
  controller.setStatus(undefined);
2732
3280
  }
2733
3281
  await templateService.apiHandler({
2734
- methodName: 'getPools',
3282
+ methodName: 'getSrs',
2735
3283
  controller,
2736
3284
  response,
2737
3285
  next,
@@ -2744,21 +3292,21 @@ export function RegisterRoutes(app) {
2744
3292
  }
2745
3293
  });
2746
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
2747
- const argsPoolController_getPool = {
3295
+ const argsSmController_getSr = {
2748
3296
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2749
3297
  };
2750
- app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPool)), async function PoolController_getPool(request, response, next) {
3298
+ app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
2751
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
2752
3300
  let validatedArgs = [];
2753
3301
  try {
2754
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPool, request, response });
3302
+ validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
2755
3303
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2756
- const controller = await container.get(PoolController);
3304
+ const controller = await container.get(SmController);
2757
3305
  if (typeof controller['setStatus'] === 'function') {
2758
3306
  controller.setStatus(undefined);
2759
3307
  }
2760
3308
  await templateService.apiHandler({
2761
- methodName: 'getPool',
3309
+ methodName: 'getSr',
2762
3310
  controller,
2763
3311
  response,
2764
3312
  next,
@@ -2771,28 +3319,30 @@ export function RegisterRoutes(app) {
2771
3319
  }
2772
3320
  });
2773
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
2774
- const argsPoolController_createNetwork = {
2775
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2776
- body: { "in": "body", "name": "body", "required": true, "ref": "CreateNetworkBody" },
2777
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
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" },
2778
3328
  };
2779
- app.post('/rest/v0/pools/:id/actions/create_network', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createNetwork)), async function PoolController_createNetwork(request, response, next) {
3329
+ app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
2780
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
2781
3331
  let validatedArgs = [];
2782
3332
  try {
2783
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createNetwork, request, response });
3333
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
2784
3334
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2785
- const controller = await container.get(PoolController);
3335
+ const controller = await container.get(ServerController);
2786
3336
  if (typeof controller['setStatus'] === 'function') {
2787
3337
  controller.setStatus(undefined);
2788
3338
  }
2789
3339
  await templateService.apiHandler({
2790
- methodName: 'createNetwork',
3340
+ methodName: 'getServers',
2791
3341
  controller,
2792
3342
  response,
2793
3343
  next,
2794
3344
  validatedArgs,
2795
- successStatus: 201,
3345
+ successStatus: undefined,
2796
3346
  });
2797
3347
  }
2798
3348
  catch (err) {
@@ -2800,27 +3350,26 @@ export function RegisterRoutes(app) {
2800
3350
  }
2801
3351
  });
2802
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
2803
- const argsPoolController_emergencyShutdown = {
3353
+ const argsServerController_getServer = {
2804
3354
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2805
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
2806
3355
  };
2807
- app.post('/rest/v0/pools/:id/actions/emergency_shutdown', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.emergencyShutdown)), async function PoolController_emergencyShutdown(request, response, next) {
3356
+ app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
2808
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
2809
3358
  let validatedArgs = [];
2810
3359
  try {
2811
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_emergencyShutdown, request, response });
3360
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
2812
3361
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2813
- const controller = await container.get(PoolController);
3362
+ const controller = await container.get(ServerController);
2814
3363
  if (typeof controller['setStatus'] === 'function') {
2815
3364
  controller.setStatus(undefined);
2816
3365
  }
2817
3366
  await templateService.apiHandler({
2818
- methodName: 'emergencyShutdown',
3367
+ methodName: 'getServer',
2819
3368
  controller,
2820
3369
  response,
2821
3370
  next,
2822
3371
  validatedArgs,
2823
- successStatus: 202,
3372
+ successStatus: undefined,
2824
3373
  });
2825
3374
  }
2826
3375
  catch (err) {
@@ -2828,27 +3377,26 @@ export function RegisterRoutes(app) {
2828
3377
  }
2829
3378
  });
2830
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
2831
- const argsPoolController_rollingReboot = {
3380
+ const argsServerController_deleteServer = {
2832
3381
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2833
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
2834
3382
  };
2835
- app.post('/rest/v0/pools/:id/actions/rolling_reboot', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingReboot)), async function PoolController_rollingReboot(request, response, next) {
3383
+ app.delete('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.deleteServer)), async function ServerController_deleteServer(request, response, next) {
2836
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
2837
3385
  let validatedArgs = [];
2838
3386
  try {
2839
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingReboot, request, response });
3387
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_deleteServer, request, response });
2840
3388
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2841
- const controller = await container.get(PoolController);
3389
+ const controller = await container.get(ServerController);
2842
3390
  if (typeof controller['setStatus'] === 'function') {
2843
3391
  controller.setStatus(undefined);
2844
3392
  }
2845
3393
  await templateService.apiHandler({
2846
- methodName: 'rollingReboot',
3394
+ methodName: 'deleteServer',
2847
3395
  controller,
2848
3396
  response,
2849
3397
  next,
2850
3398
  validatedArgs,
2851
- successStatus: 202,
3399
+ successStatus: 204,
2852
3400
  });
2853
3401
  }
2854
3402
  catch (err) {
@@ -2856,22 +3404,49 @@ export function RegisterRoutes(app) {
2856
3404
  }
2857
3405
  });
2858
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
2859
- const argsPoolController_rollingUpdate = {
3407
+ const argsServerController_addServer = {
3408
+ body: { "in": "body", "name": "body", "required": true, "ref": "InsertableXoServer" },
3409
+ };
3410
+ app.post('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.addServer)), async function ServerController_addServer(request, response, next) {
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
3412
+ let validatedArgs = [];
3413
+ try {
3414
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_addServer, request, response });
3415
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3416
+ const controller = await container.get(ServerController);
3417
+ if (typeof controller['setStatus'] === 'function') {
3418
+ controller.setStatus(undefined);
3419
+ }
3420
+ await templateService.apiHandler({
3421
+ methodName: 'addServer',
3422
+ controller,
3423
+ response,
3424
+ next,
3425
+ validatedArgs,
3426
+ successStatus: 201,
3427
+ });
3428
+ }
3429
+ catch (err) {
3430
+ return next(err);
3431
+ }
3432
+ });
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
3434
+ const argsServerController_connectServer = {
2860
3435
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2861
3436
  sync: { "in": "query", "name": "sync", "dataType": "boolean" },
2862
3437
  };
2863
- app.post('/rest/v0/pools/:id/actions/rolling_update', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingUpdate)), async function PoolController_rollingUpdate(request, response, next) {
3438
+ app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
2864
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
2865
3440
  let validatedArgs = [];
2866
3441
  try {
2867
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingUpdate, request, response });
3442
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_connectServer, request, response });
2868
3443
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2869
- const controller = await container.get(PoolController);
3444
+ const controller = await container.get(ServerController);
2870
3445
  if (typeof controller['setStatus'] === 'function') {
2871
3446
  controller.setStatus(undefined);
2872
3447
  }
2873
3448
  await templateService.apiHandler({
2874
- methodName: 'rollingUpdate',
3449
+ methodName: 'connectServer',
2875
3450
  controller,
2876
3451
  response,
2877
3452
  next,
@@ -2884,28 +3459,27 @@ export function RegisterRoutes(app) {
2884
3459
  }
2885
3460
  });
2886
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
2887
- const argsPoolController_importVm = {
2888
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3462
+ const argsServerController_disconnectServer = {
2889
3463
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2890
- sr: { "in": "query", "name": "sr", "dataType": "string" },
3464
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
2891
3465
  };
2892
- app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
3466
+ app.post('/rest/v0/servers/:id/actions/disconnect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.disconnectServer)), async function ServerController_disconnectServer(request, response, next) {
2893
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
2894
3468
  let validatedArgs = [];
2895
3469
  try {
2896
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
3470
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_disconnectServer, request, response });
2897
3471
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2898
- const controller = await container.get(PoolController);
3472
+ const controller = await container.get(ServerController);
2899
3473
  if (typeof controller['setStatus'] === 'function') {
2900
3474
  controller.setStatus(undefined);
2901
3475
  }
2902
3476
  await templateService.apiHandler({
2903
- methodName: 'importVm',
3477
+ methodName: 'disconnectServer',
2904
3478
  controller,
2905
3479
  response,
2906
3480
  next,
2907
3481
  validatedArgs,
2908
- successStatus: 201,
3482
+ successStatus: 202,
2909
3483
  });
2910
3484
  }
2911
3485
  catch (err) {
@@ -2913,28 +3487,30 @@ export function RegisterRoutes(app) {
2913
3487
  }
2914
3488
  });
2915
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
2916
- const argsPoolController_createVm = {
2917
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2918
- body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
2919
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3490
+ const argsScheduleController_getSchedules = {
3491
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3492
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3493
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3494
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3495
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2920
3496
  };
2921
- app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
3497
+ app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
2922
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
2923
3499
  let validatedArgs = [];
2924
3500
  try {
2925
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
3501
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
2926
3502
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2927
- const controller = await container.get(PoolController);
3503
+ const controller = await container.get(ScheduleController);
2928
3504
  if (typeof controller['setStatus'] === 'function') {
2929
3505
  controller.setStatus(undefined);
2930
3506
  }
2931
3507
  await templateService.apiHandler({
2932
- methodName: 'createVm',
3508
+ methodName: 'getSchedules',
2933
3509
  controller,
2934
3510
  response,
2935
3511
  next,
2936
3512
  validatedArgs,
2937
- successStatus: 201,
3513
+ successStatus: undefined,
2938
3514
  });
2939
3515
  }
2940
3516
  catch (err) {
@@ -2942,22 +3518,21 @@ export function RegisterRoutes(app) {
2942
3518
  }
2943
3519
  });
2944
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
2945
- const argsPoolController_getStats = {
3521
+ const argsScheduleController_getSchedule = {
2946
3522
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2947
- granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
2948
3523
  };
2949
- app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
3524
+ app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
2950
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
2951
3526
  let validatedArgs = [];
2952
3527
  try {
2953
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
3528
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
2954
3529
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2955
- const controller = await container.get(PoolController);
3530
+ const controller = await container.get(ScheduleController);
2956
3531
  if (typeof controller['setStatus'] === 'function') {
2957
3532
  controller.setStatus(undefined);
2958
3533
  }
2959
3534
  await templateService.apiHandler({
2960
- methodName: 'getStats',
3535
+ methodName: 'getSchedule',
2961
3536
  controller,
2962
3537
  response,
2963
3538
  next,
@@ -2970,28 +3545,27 @@ export function RegisterRoutes(app) {
2970
3545
  }
2971
3546
  });
2972
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
2973
- const argsPoolController_getPoolDashboard = {
2974
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3548
+ const argsScheduleController_runSchedule = {
2975
3549
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2976
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3550
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
2977
3551
  };
2978
- app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
3552
+ app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
2979
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
2980
3554
  let validatedArgs = [];
2981
3555
  try {
2982
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
3556
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
2983
3557
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2984
- const controller = await container.get(PoolController);
3558
+ const controller = await container.get(ScheduleController);
2985
3559
  if (typeof controller['setStatus'] === 'function') {
2986
3560
  controller.setStatus(undefined);
2987
3561
  }
2988
3562
  await templateService.apiHandler({
2989
- methodName: 'getPoolDashboard',
3563
+ methodName: 'runSchedule',
2990
3564
  controller,
2991
3565
  response,
2992
3566
  next,
2993
3567
  validatedArgs,
2994
- successStatus: undefined,
3568
+ successStatus: 202,
2995
3569
  });
2996
3570
  }
2997
3571
  catch (err) {
@@ -2999,26 +3573,25 @@ export function RegisterRoutes(app) {
2999
3573
  }
3000
3574
  });
3001
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
3002
- const argsPoolController_getPoolAlarms = {
3576
+ const argsRestoreLogController_getRestoreLogs = {
3003
3577
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3004
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3005
3578
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3006
3579
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3007
3580
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3008
3581
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3009
3582
  };
3010
- app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
3583
+ app.get('/rest/v0/restore-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLogs)), async function RestoreLogController_getRestoreLogs(request, response, next) {
3011
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
3012
3585
  let validatedArgs = [];
3013
3586
  try {
3014
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
3587
+ validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLogs, request, response });
3015
3588
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3016
- const controller = await container.get(PoolController);
3589
+ const controller = await container.get(RestoreLogController);
3017
3590
  if (typeof controller['setStatus'] === 'function') {
3018
3591
  controller.setStatus(undefined);
3019
3592
  }
3020
3593
  await templateService.apiHandler({
3021
- methodName: 'getPoolAlarms',
3594
+ methodName: 'getRestoreLogs',
3022
3595
  controller,
3023
3596
  response,
3024
3597
  next,
@@ -3031,21 +3604,21 @@ export function RegisterRoutes(app) {
3031
3604
  }
3032
3605
  });
3033
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
3034
- const argsPoolController_getPoolMissingPatches = {
3607
+ const argsRestoreLogController_getRestoreLog = {
3035
3608
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3036
3609
  };
3037
- app.get('/rest/v0/pools/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMissingPatches)), async function PoolController_getPoolMissingPatches(request, response, next) {
3610
+ app.get('/rest/v0/restore-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLog)), async function RestoreLogController_getRestoreLog(request, response, next) {
3038
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
3039
3612
  let validatedArgs = [];
3040
3613
  try {
3041
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMissingPatches, request, response });
3614
+ validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLog, request, response });
3042
3615
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3043
- const controller = await container.get(PoolController);
3616
+ const controller = await container.get(RestoreLogController);
3044
3617
  if (typeof controller['setStatus'] === 'function') {
3045
3618
  controller.setStatus(undefined);
3046
3619
  }
3047
3620
  await templateService.apiHandler({
3048
- methodName: 'getPoolMissingPatches',
3621
+ methodName: 'getRestoreLog',
3049
3622
  controller,
3050
3623
  response,
3051
3624
  next,
@@ -3058,25 +3631,25 @@ export function RegisterRoutes(app) {
3058
3631
  }
3059
3632
  });
3060
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
3061
- const argsPifController_getPifs = {
3634
+ const argsDeprecatedRestoreController_getDeprecatedRestoreLogs = {
3062
3635
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3063
3636
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3064
3637
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3065
3638
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3066
3639
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3067
3640
  };
3068
- app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
3641
+ app.get('/rest/v0/restore/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLogs)), async function DeprecatedRestoreController_getDeprecatedRestoreLogs(request, response, next) {
3069
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
3070
3643
  let validatedArgs = [];
3071
3644
  try {
3072
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
3645
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLogs, request, response });
3073
3646
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3074
- const controller = await container.get(PifController);
3647
+ const controller = await container.get(DeprecatedRestoreController);
3075
3648
  if (typeof controller['setStatus'] === 'function') {
3076
3649
  controller.setStatus(undefined);
3077
3650
  }
3078
3651
  await templateService.apiHandler({
3079
- methodName: 'getPifs',
3652
+ methodName: 'getDeprecatedRestoreLogs',
3080
3653
  controller,
3081
3654
  response,
3082
3655
  next,
@@ -3089,21 +3662,21 @@ export function RegisterRoutes(app) {
3089
3662
  }
3090
3663
  });
3091
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
3092
- const argsPifController_getPif = {
3665
+ const argsDeprecatedRestoreController_getDeprecatedRestoreLog = {
3093
3666
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3094
3667
  };
3095
- app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
3668
+ app.get('/rest/v0/restore/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLog)), async function DeprecatedRestoreController_getDeprecatedRestoreLog(request, response, next) {
3096
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
3097
3670
  let validatedArgs = [];
3098
3671
  try {
3099
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPif, request, response });
3672
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLog, request, response });
3100
3673
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3101
- const controller = await container.get(PifController);
3674
+ const controller = await container.get(DeprecatedRestoreController);
3102
3675
  if (typeof controller['setStatus'] === 'function') {
3103
3676
  controller.setStatus(undefined);
3104
3677
  }
3105
3678
  await templateService.apiHandler({
3106
- methodName: 'getPif',
3679
+ methodName: 'getDeprecatedRestoreLog',
3107
3680
  controller,
3108
3681
  response,
3109
3682
  next,
@@ -3116,26 +3689,25 @@ export function RegisterRoutes(app) {
3116
3689
  }
3117
3690
  });
3118
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
3119
- const argsPifController_getPifAlarms = {
3692
+ const argsProxyController_getProxies = {
3120
3693
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3121
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3122
3694
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3123
3695
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3124
3696
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3125
3697
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3126
3698
  };
3127
- app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
3699
+ app.get('/rest/v0/proxies', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxies)), async function ProxyController_getProxies(request, response, next) {
3128
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
3129
3701
  let validatedArgs = [];
3130
3702
  try {
3131
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
3703
+ validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxies, request, response });
3132
3704
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3133
- const controller = await container.get(PifController);
3705
+ const controller = await container.get(ProxyController);
3134
3706
  if (typeof controller['setStatus'] === 'function') {
3135
3707
  controller.setStatus(undefined);
3136
3708
  }
3137
3709
  await templateService.apiHandler({
3138
- methodName: 'getPifAlarms',
3710
+ methodName: 'getProxies',
3139
3711
  controller,
3140
3712
  response,
3141
3713
  next,
@@ -3148,25 +3720,689 @@ export function RegisterRoutes(app) {
3148
3720
  }
3149
3721
  });
3150
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
3151
- const argsPgpuController_getPgpus = {
3152
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3153
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3154
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3155
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3156
- limit: { "in": "query", "name": "limit", "dataType": "double" },
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" },
3157
4191
  };
3158
4192
  app.get('/rest/v0/pgpus', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpus)), async function PgpuController_getPgpus(request, response, next) {
3159
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
3160
4194
  let validatedArgs = [];
3161
4195
  try {
3162
- validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpus, request, response });
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 });
3163
4399
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3164
- const controller = await container.get(PgpuController);
4400
+ const controller = await container.get(NetworkController);
3165
4401
  if (typeof controller['setStatus'] === 'function') {
3166
4402
  controller.setStatus(undefined);
3167
4403
  }
3168
4404
  await templateService.apiHandler({
3169
- methodName: 'getPgpus',
4405
+ methodName: 'getNetworkAlarms',
3170
4406
  controller,
3171
4407
  response,
3172
4408
  next,
@@ -3179,21 +4415,52 @@ export function RegisterRoutes(app) {
3179
4415
  }
3180
4416
  });
3181
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
3182
- const argsPgpuController_getPgpu = {
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 = {
3183
4450
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3184
4451
  };
3185
- app.get('/rest/v0/pgpus/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpu)), async function PgpuController_getPgpu(request, response, next) {
4452
+ app.get('/rest/v0/messages/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(MessageController)), ...(fetchMiddlewares(MessageController.prototype.getMessage)), async function MessageController_getMessage(request, response, next) {
3186
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
3187
4454
  let validatedArgs = [];
3188
4455
  try {
3189
- validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpu, request, response });
4456
+ validatedArgs = templateService.getValidatedArgs({ args: argsMessageController_getMessage, request, response });
3190
4457
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3191
- const controller = await container.get(PgpuController);
4458
+ const controller = await container.get(MessageController);
3192
4459
  if (typeof controller['setStatus'] === 'function') {
3193
4460
  controller.setStatus(undefined);
3194
4461
  }
3195
4462
  await templateService.apiHandler({
3196
- methodName: 'getPgpu',
4463
+ methodName: 'getMessage',
3197
4464
  controller,
3198
4465
  response,
3199
4466
  next,
@@ -3206,25 +4473,25 @@ export function RegisterRoutes(app) {
3206
4473
  }
3207
4474
  });
3208
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
3209
- const argsPciController_getPcis = {
4476
+ const argsHostController_getHosts = {
3210
4477
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3211
4478
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3212
4479
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3213
4480
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3214
4481
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3215
4482
  };
3216
- app.get('/rest/v0/pcis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPcis)), async function PciController_getPcis(request, response, next) {
4483
+ app.get('/rest/v0/hosts', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHosts)), async function HostController_getHosts(request, response, next) {
3217
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
3218
4485
  let validatedArgs = [];
3219
4486
  try {
3220
- validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPcis, request, response });
4487
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHosts, request, response });
3221
4488
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3222
- const controller = await container.get(PciController);
4489
+ const controller = await container.get(HostController);
3223
4490
  if (typeof controller['setStatus'] === 'function') {
3224
4491
  controller.setStatus(undefined);
3225
4492
  }
3226
4493
  await templateService.apiHandler({
3227
- methodName: 'getPcis',
4494
+ methodName: 'getHosts',
3228
4495
  controller,
3229
4496
  response,
3230
4497
  next,
@@ -3237,21 +4504,191 @@ export function RegisterRoutes(app) {
3237
4504
  }
3238
4505
  });
3239
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
3240
- const argsPciController_getPci = {
4507
+ const argsHostController_getHost = {
3241
4508
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3242
4509
  };
3243
- app.get('/rest/v0/pcis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPci)), async function PciController_getPci(request, response, next) {
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',
4665
+ controller,
4666
+ response,
4667
+ next,
4668
+ validatedArgs,
4669
+ successStatus: undefined,
4670
+ });
4671
+ }
4672
+ catch (err) {
4673
+ return next(err);
4674
+ }
4675
+ });
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
4677
+ const argsHostController_getMissingPatches = {
4678
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4679
+ };
4680
+ app.get('/rest/v0/hosts/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getMissingPatches)), async function HostController_getMissingPatches(request, response, next) {
3244
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
3245
4682
  let validatedArgs = [];
3246
4683
  try {
3247
- validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPci, request, response });
4684
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getMissingPatches, request, response });
3248
4685
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3249
- const controller = await container.get(PciController);
4686
+ const controller = await container.get(HostController);
3250
4687
  if (typeof controller['setStatus'] === 'function') {
3251
4688
  controller.setStatus(undefined);
3252
4689
  }
3253
4690
  await templateService.apiHandler({
3254
- methodName: 'getPci',
4691
+ methodName: 'getMissingPatches',
3255
4692
  controller,
3256
4693
  response,
3257
4694
  next,
@@ -3264,25 +4701,25 @@ export function RegisterRoutes(app) {
3264
4701
  }
3265
4702
  });
3266
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
3267
- const argsNetworkController_getNetworks = {
4704
+ const argsGroupController_getGroups = {
3268
4705
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3269
4706
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3270
4707
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3271
4708
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3272
4709
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3273
4710
  };
3274
- app.get('/rest/v0/networks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworks)), async function NetworkController_getNetworks(request, response, next) {
4711
+ app.get('/rest/v0/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroups)), async function GroupController_getGroups(request, response, next) {
3275
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
3276
4713
  let validatedArgs = [];
3277
4714
  try {
3278
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworks, request, response });
4715
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroups, request, response });
3279
4716
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3280
- const controller = await container.get(NetworkController);
4717
+ const controller = await container.get(GroupController);
3281
4718
  if (typeof controller['setStatus'] === 'function') {
3282
4719
  controller.setStatus(undefined);
3283
4720
  }
3284
4721
  await templateService.apiHandler({
3285
- methodName: 'getNetworks',
4722
+ methodName: 'getGroups',
3286
4723
  controller,
3287
4724
  response,
3288
4725
  next,
@@ -3295,21 +4732,21 @@ export function RegisterRoutes(app) {
3295
4732
  }
3296
4733
  });
3297
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
3298
- const argsNetworkController_getNetwork = {
4735
+ const argsGroupController_getGroup = {
3299
4736
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3300
4737
  };
3301
- app.get('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetwork)), async function NetworkController_getNetwork(request, response, next) {
4738
+ app.get('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroup)), async function GroupController_getGroup(request, response, next) {
3302
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
3303
4740
  let validatedArgs = [];
3304
4741
  try {
3305
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetwork, request, response });
4742
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroup, request, response });
3306
4743
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3307
- const controller = await container.get(NetworkController);
4744
+ const controller = await container.get(GroupController);
3308
4745
  if (typeof controller['setStatus'] === 'function') {
3309
4746
  controller.setStatus(undefined);
3310
4747
  }
3311
4748
  await templateService.apiHandler({
3312
- methodName: 'getNetwork',
4749
+ methodName: 'getGroup',
3313
4750
  controller,
3314
4751
  response,
3315
4752
  next,
@@ -3322,21 +4759,22 @@ export function RegisterRoutes(app) {
3322
4759
  }
3323
4760
  });
3324
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
3325
- const argsNetworkController_deleteNetwork = {
4762
+ const argsGroupController_updateGroup = {
3326
4763
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4764
+ body: { "in": "body", "name": "body", "required": true, "ref": "UpdateGroupRequestBody" },
3327
4765
  };
3328
- app.delete('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetwork)), async function NetworkController_deleteNetwork(request, response, next) {
4766
+ app.patch('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.updateGroup)), async function GroupController_updateGroup(request, response, next) {
3329
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
3330
4768
  let validatedArgs = [];
3331
4769
  try {
3332
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetwork, request, response });
4770
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_updateGroup, request, response });
3333
4771
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3334
- const controller = await container.get(NetworkController);
4772
+ const controller = await container.get(GroupController);
3335
4773
  if (typeof controller['setStatus'] === 'function') {
3336
4774
  controller.setStatus(undefined);
3337
4775
  }
3338
4776
  await templateService.apiHandler({
3339
- methodName: 'deleteNetwork',
4777
+ methodName: 'updateGroup',
3340
4778
  controller,
3341
4779
  response,
3342
4780
  next,
@@ -3349,31 +4787,26 @@ export function RegisterRoutes(app) {
3349
4787
  }
3350
4788
  });
3351
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
3352
- const argsNetworkController_getNetworkAlarms = {
3353
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3354
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3355
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3356
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3357
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3358
- limit: { "in": "query", "name": "limit", "dataType": "double" },
4790
+ const argsGroupController_createGroup = {
4791
+ body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true } } },
3359
4792
  };
3360
- app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
4793
+ app.post('/rest/v0/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.createGroup)), async function GroupController_createGroup(request, response, next) {
3361
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
3362
4795
  let validatedArgs = [];
3363
4796
  try {
3364
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
4797
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_createGroup, request, response });
3365
4798
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3366
- const controller = await container.get(NetworkController);
4799
+ const controller = await container.get(GroupController);
3367
4800
  if (typeof controller['setStatus'] === 'function') {
3368
4801
  controller.setStatus(undefined);
3369
4802
  }
3370
4803
  await templateService.apiHandler({
3371
- methodName: 'getNetworkAlarms',
4804
+ methodName: 'createGroup',
3372
4805
  controller,
3373
4806
  response,
3374
4807
  next,
3375
4808
  validatedArgs,
3376
- successStatus: undefined,
4809
+ successStatus: 201,
3377
4810
  });
3378
4811
  }
3379
4812
  catch (err) {
@@ -3381,30 +4814,26 @@ export function RegisterRoutes(app) {
3381
4814
  }
3382
4815
  });
3383
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
3384
- const argsMessageController_getMessages = {
3385
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3386
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3387
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3388
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3389
- limit: { "in": "query", "name": "limit", "dataType": "double" },
4817
+ const argsGroupController_deleteGroup = {
4818
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3390
4819
  };
3391
- app.get('/rest/v0/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(MessageController)), ...(fetchMiddlewares(MessageController.prototype.getMessages)), async function MessageController_getMessages(request, response, next) {
4820
+ app.delete('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.deleteGroup)), async function GroupController_deleteGroup(request, response, next) {
3392
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
3393
4822
  let validatedArgs = [];
3394
4823
  try {
3395
- validatedArgs = templateService.getValidatedArgs({ args: argsMessageController_getMessages, request, response });
4824
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_deleteGroup, request, response });
3396
4825
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3397
- const controller = await container.get(MessageController);
4826
+ const controller = await container.get(GroupController);
3398
4827
  if (typeof controller['setStatus'] === 'function') {
3399
4828
  controller.setStatus(undefined);
3400
4829
  }
3401
4830
  await templateService.apiHandler({
3402
- methodName: 'getMessages',
4831
+ methodName: 'deleteGroup',
3403
4832
  controller,
3404
4833
  response,
3405
4834
  next,
3406
4835
  validatedArgs,
3407
- successStatus: undefined,
4836
+ successStatus: 204,
3408
4837
  });
3409
4838
  }
3410
4839
  catch (err) {
@@ -3412,26 +4841,27 @@ export function RegisterRoutes(app) {
3412
4841
  }
3413
4842
  });
3414
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
3415
- const argsMessageController_getMessage = {
4844
+ const argsGroupController_removeUserFromGroup = {
3416
4845
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4846
+ userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
3417
4847
  };
3418
- app.get('/rest/v0/messages/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(MessageController)), ...(fetchMiddlewares(MessageController.prototype.getMessage)), async function MessageController_getMessage(request, response, next) {
4848
+ app.delete('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.removeUserFromGroup)), async function GroupController_removeUserFromGroup(request, response, next) {
3419
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
3420
4850
  let validatedArgs = [];
3421
4851
  try {
3422
- validatedArgs = templateService.getValidatedArgs({ args: argsMessageController_getMessage, request, response });
4852
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_removeUserFromGroup, request, response });
3423
4853
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3424
- const controller = await container.get(MessageController);
4854
+ const controller = await container.get(GroupController);
3425
4855
  if (typeof controller['setStatus'] === 'function') {
3426
4856
  controller.setStatus(undefined);
3427
4857
  }
3428
4858
  await templateService.apiHandler({
3429
- methodName: 'getMessage',
4859
+ methodName: 'removeUserFromGroup',
3430
4860
  controller,
3431
4861
  response,
3432
4862
  next,
3433
4863
  validatedArgs,
3434
- successStatus: undefined,
4864
+ successStatus: 204,
3435
4865
  });
3436
4866
  }
3437
4867
  catch (err) {
@@ -3439,30 +4869,27 @@ export function RegisterRoutes(app) {
3439
4869
  }
3440
4870
  });
3441
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
3442
- const argsHostController_getHosts = {
3443
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3444
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3445
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3446
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3447
- limit: { "in": "query", "name": "limit", "dataType": "double" },
4872
+ const argsGroupController_addUserToGroup = {
4873
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4874
+ userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
3448
4875
  };
3449
- app.get('/rest/v0/hosts', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHosts)), async function HostController_getHosts(request, response, next) {
4876
+ app.put('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.addUserToGroup)), async function GroupController_addUserToGroup(request, response, next) {
3450
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
3451
4878
  let validatedArgs = [];
3452
4879
  try {
3453
- validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHosts, request, response });
4880
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_addUserToGroup, request, response });
3454
4881
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3455
- const controller = await container.get(HostController);
4882
+ const controller = await container.get(GroupController);
3456
4883
  if (typeof controller['setStatus'] === 'function') {
3457
4884
  controller.setStatus(undefined);
3458
4885
  }
3459
4886
  await templateService.apiHandler({
3460
- methodName: 'getHosts',
4887
+ methodName: 'addUserToGroup',
3461
4888
  controller,
3462
4889
  response,
3463
4890
  next,
3464
4891
  validatedArgs,
3465
- successStatus: undefined,
4892
+ successStatus: 204,
3466
4893
  });
3467
4894
  }
3468
4895
  catch (err) {
@@ -3470,21 +4897,26 @@ export function RegisterRoutes(app) {
3470
4897
  }
3471
4898
  });
3472
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
3473
- const argsHostController_getHost = {
4900
+ const argsGroupController_getGroupUsers = {
4901
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3474
4902
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4903
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4904
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4905
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4906
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3475
4907
  };
3476
- app.get('/rest/v0/hosts/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHost)), async function HostController_getHost(request, response, next) {
4908
+ app.get('/rest/v0/groups/:id/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroupUsers)), async function GroupController_getGroupUsers(request, response, next) {
3477
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
3478
4910
  let validatedArgs = [];
3479
4911
  try {
3480
- validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHost, request, response });
4912
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroupUsers, request, response });
3481
4913
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3482
- const controller = await container.get(HostController);
4914
+ const controller = await container.get(GroupController);
3483
4915
  if (typeof controller['setStatus'] === 'function') {
3484
4916
  controller.setStatus(undefined);
3485
4917
  }
3486
4918
  await templateService.apiHandler({
3487
- methodName: 'getHost',
4919
+ methodName: 'getGroupUsers',
3488
4920
  controller,
3489
4921
  response,
3490
4922
  next,
@@ -3497,22 +4929,25 @@ export function RegisterRoutes(app) {
3497
4929
  }
3498
4930
  });
3499
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
3500
- const argsHostController_getHostStats = {
3501
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3502
- granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
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" },
3503
4938
  };
3504
- app.get('/rest/v0/hosts/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostStats)), async function HostController_getHostStats(request, response, next) {
4939
+ app.get('/rest/v0/backup-repositories', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepositories)), async function BackupRepositoryController_getRepositories(request, response, next) {
3505
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
3506
4941
  let validatedArgs = [];
3507
4942
  try {
3508
- validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostStats, request, response });
4943
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepositories, request, response });
3509
4944
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3510
- const controller = await container.get(HostController);
4945
+ const controller = await container.get(BackupRepositoryController);
3511
4946
  if (typeof controller['setStatus'] === 'function') {
3512
4947
  controller.setStatus(undefined);
3513
4948
  }
3514
4949
  await templateService.apiHandler({
3515
- methodName: 'getHostStats',
4950
+ methodName: 'getRepositories',
3516
4951
  controller,
3517
4952
  response,
3518
4953
  next,
@@ -3525,27 +4960,26 @@ export function RegisterRoutes(app) {
3525
4960
  }
3526
4961
  });
3527
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
3528
- const argsHostController_getAuditLog = {
3529
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4963
+ const argsBackupRepositoryController_getRepository = {
3530
4964
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3531
4965
  };
3532
- app.get('/rest/v0/hosts/:id/audit.txt', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getAuditLog)), async function HostController_getAuditLog(request, response, next) {
4966
+ app.get('/rest/v0/backup-repositories/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepository)), async function BackupRepositoryController_getRepository(request, response, next) {
3533
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
3534
4968
  let validatedArgs = [];
3535
4969
  try {
3536
- validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getAuditLog, request, response });
4970
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepository, request, response });
3537
4971
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3538
- const controller = await container.get(HostController);
4972
+ const controller = await container.get(BackupRepositoryController);
3539
4973
  if (typeof controller['setStatus'] === 'function') {
3540
4974
  controller.setStatus(undefined);
3541
4975
  }
3542
4976
  await templateService.apiHandler({
3543
- methodName: 'getAuditLog',
4977
+ methodName: 'getRepository',
3544
4978
  controller,
3545
4979
  response,
3546
4980
  next,
3547
4981
  validatedArgs,
3548
- successStatus: 200,
4982
+ successStatus: undefined,
3549
4983
  });
3550
4984
  }
3551
4985
  catch (err) {
@@ -3553,27 +4987,30 @@ export function RegisterRoutes(app) {
3553
4987
  }
3554
4988
  });
3555
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
3556
- const argsHostController_getHostLogs = {
4990
+ const argsBackupLogController_getBackupLogs = {
3557
4991
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3558
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
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" },
3559
4996
  };
3560
- app.get('/rest/v0/hosts/:id/logs.tgz', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostLogs)), async function HostController_getHostLogs(request, response, next) {
4997
+ app.get('/rest/v0/backup-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupLogController)), ...(fetchMiddlewares(BackupLogController.prototype.getBackupLogs)), async function BackupLogController_getBackupLogs(request, response, next) {
3561
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
3562
4999
  let validatedArgs = [];
3563
5000
  try {
3564
- validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostLogs, request, response });
5001
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupLogController_getBackupLogs, request, response });
3565
5002
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3566
- const controller = await container.get(HostController);
5003
+ const controller = await container.get(BackupLogController);
3567
5004
  if (typeof controller['setStatus'] === 'function') {
3568
5005
  controller.setStatus(undefined);
3569
5006
  }
3570
5007
  await templateService.apiHandler({
3571
- methodName: 'getHostLogs',
5008
+ methodName: 'getBackupLogs',
3572
5009
  controller,
3573
5010
  response,
3574
5011
  next,
3575
5012
  validatedArgs,
3576
- successStatus: 200,
5013
+ successStatus: undefined,
3577
5014
  });
3578
5015
  }
3579
5016
  catch (err) {
@@ -3581,26 +5018,21 @@ export function RegisterRoutes(app) {
3581
5018
  }
3582
5019
  });
3583
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
3584
- const argsHostController_getHostAlarms = {
3585
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5021
+ const argsBackupLogController_getBackupLog = {
3586
5022
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3587
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3588
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3589
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3590
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3591
5023
  };
3592
- app.get('/rest/v0/hosts/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostAlarms)), async function HostController_getHostAlarms(request, response, next) {
5024
+ app.get('/rest/v0/backup-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupLogController)), ...(fetchMiddlewares(BackupLogController.prototype.getBackupLog)), async function BackupLogController_getBackupLog(request, response, next) {
3593
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
3594
5026
  let validatedArgs = [];
3595
5027
  try {
3596
- validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostAlarms, request, response });
5028
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupLogController_getBackupLog, request, response });
3597
5029
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3598
- const controller = await container.get(HostController);
5030
+ const controller = await container.get(BackupLogController);
3599
5031
  if (typeof controller['setStatus'] === 'function') {
3600
5032
  controller.setStatus(undefined);
3601
5033
  }
3602
5034
  await templateService.apiHandler({
3603
- methodName: 'getHostAlarms',
5035
+ methodName: 'getBackupLog',
3604
5036
  controller,
3605
5037
  response,
3606
5038
  next,
@@ -3613,21 +5045,25 @@ export function RegisterRoutes(app) {
3613
5045
  }
3614
5046
  });
3615
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
3616
- const argsHostController_gethostSmt = {
3617
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5048
+ const argsBackupJobController_getBackupJobs = {
5049
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5050
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5051
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5052
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5053
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3618
5054
  };
3619
- app.get('/rest/v0/hosts/:id/smt', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.gethostSmt)), async function HostController_gethostSmt(request, response, next) {
5055
+ app.get('/rest/v0/backup-jobs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupJobController)), ...(fetchMiddlewares(BackupJobController.prototype.getBackupJobs)), async function BackupJobController_getBackupJobs(request, response, next) {
3620
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
3621
5057
  let validatedArgs = [];
3622
5058
  try {
3623
- validatedArgs = templateService.getValidatedArgs({ args: argsHostController_gethostSmt, request, response });
5059
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupJobController_getBackupJobs, request, response });
3624
5060
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3625
- const controller = await container.get(HostController);
5061
+ const controller = await container.get(BackupJobController);
3626
5062
  if (typeof controller['setStatus'] === 'function') {
3627
5063
  controller.setStatus(undefined);
3628
5064
  }
3629
5065
  await templateService.apiHandler({
3630
- methodName: 'gethostSmt',
5066
+ methodName: 'getBackupJobs',
3631
5067
  controller,
3632
5068
  response,
3633
5069
  next,
@@ -3640,21 +5076,21 @@ export function RegisterRoutes(app) {
3640
5076
  }
3641
5077
  });
3642
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
3643
- const argsHostController_getMissingPatches = {
5079
+ const argsBackupJobController_getBackupJob = {
3644
5080
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3645
5081
  };
3646
- app.get('/rest/v0/hosts/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getMissingPatches)), async function HostController_getMissingPatches(request, response, next) {
5082
+ app.get('/rest/v0/backup-jobs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupJobController)), ...(fetchMiddlewares(BackupJobController.prototype.getBackupJob)), async function BackupJobController_getBackupJob(request, response, next) {
3647
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
3648
5084
  let validatedArgs = [];
3649
5085
  try {
3650
- validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getMissingPatches, request, response });
5086
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupJobController_getBackupJob, request, response });
3651
5087
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3652
- const controller = await container.get(HostController);
5088
+ const controller = await container.get(BackupJobController);
3653
5089
  if (typeof controller['setStatus'] === 'function') {
3654
5090
  controller.setStatus(undefined);
3655
5091
  }
3656
5092
  await templateService.apiHandler({
3657
- methodName: 'getMissingPatches',
5093
+ methodName: 'getBackupJob',
3658
5094
  controller,
3659
5095
  response,
3660
5096
  next,
@@ -3667,25 +5103,25 @@ export function RegisterRoutes(app) {
3667
5103
  }
3668
5104
  });
3669
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
3670
- const argsGroupController_getGroups = {
5106
+ const argsDeprecatedBackupController_getVmBackupJobs = {
3671
5107
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3672
5108
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3673
5109
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3674
5110
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3675
5111
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3676
5112
  };
3677
- app.get('/rest/v0/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroups)), async function GroupController_getGroups(request, response, next) {
5113
+ app.get('/rest/v0/backup/jobs/vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getVmBackupJobs)), async function DeprecatedBackupController_getVmBackupJobs(request, response, next) {
3678
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
3679
5115
  let validatedArgs = [];
3680
5116
  try {
3681
- validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroups, request, response });
5117
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getVmBackupJobs, request, response });
3682
5118
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3683
- const controller = await container.get(GroupController);
5119
+ const controller = await container.get(DeprecatedBackupController);
3684
5120
  if (typeof controller['setStatus'] === 'function') {
3685
5121
  controller.setStatus(undefined);
3686
5122
  }
3687
5123
  await templateService.apiHandler({
3688
- methodName: 'getGroups',
5124
+ methodName: 'getVmBackupJobs',
3689
5125
  controller,
3690
5126
  response,
3691
5127
  next,
@@ -3698,21 +5134,22 @@ export function RegisterRoutes(app) {
3698
5134
  }
3699
5135
  });
3700
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
3701
- const argsGroupController_getGroup = {
5137
+ const argsDeprecatedBackupController_redirectToVmBackupJob = {
5138
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3702
5139
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3703
5140
  };
3704
- app.get('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroup)), async function GroupController_getGroup(request, response, next) {
5141
+ app.get('/rest/v0/backup/jobs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.redirectToVmBackupJob)), async function DeprecatedBackupController_redirectToVmBackupJob(request, response, next) {
3705
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
3706
5143
  let validatedArgs = [];
3707
5144
  try {
3708
- validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroup, request, response });
5145
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_redirectToVmBackupJob, request, response });
3709
5146
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3710
- const controller = await container.get(GroupController);
5147
+ const controller = await container.get(DeprecatedBackupController);
3711
5148
  if (typeof controller['setStatus'] === 'function') {
3712
5149
  controller.setStatus(undefined);
3713
5150
  }
3714
5151
  await templateService.apiHandler({
3715
- methodName: 'getGroup',
5152
+ methodName: 'redirectToVmBackupJob',
3716
5153
  controller,
3717
5154
  response,
3718
5155
  next,
@@ -3725,27 +5162,26 @@ export function RegisterRoutes(app) {
3725
5162
  }
3726
5163
  });
3727
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
3728
- const argsGroupController_updateGroup = {
5165
+ const argsDeprecatedBackupController_getVmBackupJob = {
3729
5166
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3730
- body: { "in": "body", "name": "body", "required": true, "ref": "UpdateGroupRequestBody" },
3731
5167
  };
3732
- app.patch('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.updateGroup)), async function GroupController_updateGroup(request, response, next) {
5168
+ app.get('/rest/v0/backup/jobs/vm/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getVmBackupJob)), async function DeprecatedBackupController_getVmBackupJob(request, response, next) {
3733
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
3734
5170
  let validatedArgs = [];
3735
5171
  try {
3736
- validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_updateGroup, request, response });
5172
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getVmBackupJob, request, response });
3737
5173
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3738
- const controller = await container.get(GroupController);
5174
+ const controller = await container.get(DeprecatedBackupController);
3739
5175
  if (typeof controller['setStatus'] === 'function') {
3740
5176
  controller.setStatus(undefined);
3741
5177
  }
3742
5178
  await templateService.apiHandler({
3743
- methodName: 'updateGroup',
5179
+ methodName: 'getVmBackupJob',
3744
5180
  controller,
3745
5181
  response,
3746
5182
  next,
3747
5183
  validatedArgs,
3748
- successStatus: 204,
5184
+ successStatus: undefined,
3749
5185
  });
3750
5186
  }
3751
5187
  catch (err) {
@@ -3753,26 +5189,30 @@ export function RegisterRoutes(app) {
3753
5189
  }
3754
5190
  });
3755
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
3756
- const argsGroupController_createGroup = {
3757
- body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true } } },
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" },
3758
5198
  };
3759
- app.post('/rest/v0/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.createGroup)), async function GroupController_createGroup(request, response, next) {
5199
+ app.get('/rest/v0/backup/jobs/metadata', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getMetadataBackupJobs)), async function DeprecatedBackupController_getMetadataBackupJobs(request, response, next) {
3760
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
3761
5201
  let validatedArgs = [];
3762
5202
  try {
3763
- validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_createGroup, request, response });
5203
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getMetadataBackupJobs, request, response });
3764
5204
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3765
- const controller = await container.get(GroupController);
5205
+ const controller = await container.get(DeprecatedBackupController);
3766
5206
  if (typeof controller['setStatus'] === 'function') {
3767
5207
  controller.setStatus(undefined);
3768
5208
  }
3769
5209
  await templateService.apiHandler({
3770
- methodName: 'createGroup',
5210
+ methodName: 'getMetadataBackupJobs',
3771
5211
  controller,
3772
5212
  response,
3773
5213
  next,
3774
5214
  validatedArgs,
3775
- successStatus: 201,
5215
+ successStatus: undefined,
3776
5216
  });
3777
5217
  }
3778
5218
  catch (err) {
@@ -3780,26 +5220,26 @@ export function RegisterRoutes(app) {
3780
5220
  }
3781
5221
  });
3782
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
3783
- const argsGroupController_deleteGroup = {
5223
+ const argsDeprecatedBackupController_getMetadataBackupJob = {
3784
5224
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3785
5225
  };
3786
- app.delete('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.deleteGroup)), async function GroupController_deleteGroup(request, response, next) {
5226
+ app.get('/rest/v0/backup/jobs/metadata/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getMetadataBackupJob)), async function DeprecatedBackupController_getMetadataBackupJob(request, response, next) {
3787
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
3788
5228
  let validatedArgs = [];
3789
5229
  try {
3790
- validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_deleteGroup, request, response });
5230
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getMetadataBackupJob, request, response });
3791
5231
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3792
- const controller = await container.get(GroupController);
5232
+ const controller = await container.get(DeprecatedBackupController);
3793
5233
  if (typeof controller['setStatus'] === 'function') {
3794
5234
  controller.setStatus(undefined);
3795
5235
  }
3796
5236
  await templateService.apiHandler({
3797
- methodName: 'deleteGroup',
5237
+ methodName: 'getMetadataBackupJob',
3798
5238
  controller,
3799
5239
  response,
3800
5240
  next,
3801
5241
  validatedArgs,
3802
- successStatus: 204,
5242
+ successStatus: undefined,
3803
5243
  });
3804
5244
  }
3805
5245
  catch (err) {
@@ -3807,27 +5247,30 @@ export function RegisterRoutes(app) {
3807
5247
  }
3808
5248
  });
3809
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
3810
- const argsGroupController_removeUserFromGroup = {
3811
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3812
- userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
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" },
3813
5256
  };
3814
- app.delete('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.removeUserFromGroup)), async function GroupController_removeUserFromGroup(request, response, next) {
5257
+ app.get('/rest/v0/backup/jobs/mirror', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getMirrorBackupJobs)), async function DeprecatedBackupController_getMirrorBackupJobs(request, response, next) {
3815
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
3816
5259
  let validatedArgs = [];
3817
5260
  try {
3818
- validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_removeUserFromGroup, request, response });
5261
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getMirrorBackupJobs, request, response });
3819
5262
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3820
- const controller = await container.get(GroupController);
5263
+ const controller = await container.get(DeprecatedBackupController);
3821
5264
  if (typeof controller['setStatus'] === 'function') {
3822
5265
  controller.setStatus(undefined);
3823
5266
  }
3824
5267
  await templateService.apiHandler({
3825
- methodName: 'removeUserFromGroup',
5268
+ methodName: 'getMirrorBackupJobs',
3826
5269
  controller,
3827
5270
  response,
3828
5271
  next,
3829
5272
  validatedArgs,
3830
- successStatus: 204,
5273
+ successStatus: undefined,
3831
5274
  });
3832
5275
  }
3833
5276
  catch (err) {
@@ -3835,27 +5278,26 @@ export function RegisterRoutes(app) {
3835
5278
  }
3836
5279
  });
3837
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
3838
- const argsGroupController_addUserToGroup = {
5281
+ const argsDeprecatedBackupController_getMirrorBackupJob = {
3839
5282
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3840
- userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
3841
5283
  };
3842
- app.put('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.addUserToGroup)), async function GroupController_addUserToGroup(request, response, next) {
5284
+ app.get('/rest/v0/backup/jobs/mirror/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getMirrorBackupJob)), async function DeprecatedBackupController_getMirrorBackupJob(request, response, next) {
3843
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
3844
5286
  let validatedArgs = [];
3845
5287
  try {
3846
- validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_addUserToGroup, request, response });
5288
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getMirrorBackupJob, request, response });
3847
5289
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3848
- const controller = await container.get(GroupController);
5290
+ const controller = await container.get(DeprecatedBackupController);
3849
5291
  if (typeof controller['setStatus'] === 'function') {
3850
5292
  controller.setStatus(undefined);
3851
5293
  }
3852
5294
  await templateService.apiHandler({
3853
- methodName: 'addUserToGroup',
5295
+ methodName: 'getMirrorBackupJob',
3854
5296
  controller,
3855
5297
  response,
3856
5298
  next,
3857
5299
  validatedArgs,
3858
- successStatus: 204,
5300
+ successStatus: undefined,
3859
5301
  });
3860
5302
  }
3861
5303
  catch (err) {
@@ -3863,25 +5305,25 @@ export function RegisterRoutes(app) {
3863
5305
  }
3864
5306
  });
3865
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
3866
- const argsBackupRepositoryController_getRepositories = {
5308
+ const argsDeprecatedBackupController_getDeprecatedBackupLogs = {
3867
5309
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3868
5310
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3869
5311
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3870
5312
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3871
5313
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3872
5314
  };
3873
- app.get('/rest/v0/backup-repositories', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepositories)), async function BackupRepositoryController_getRepositories(request, response, next) {
5315
+ app.get('/rest/v0/backup/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getDeprecatedBackupLogs)), async function DeprecatedBackupController_getDeprecatedBackupLogs(request, response, next) {
3874
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
3875
5317
  let validatedArgs = [];
3876
5318
  try {
3877
- validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepositories, request, response });
5319
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getDeprecatedBackupLogs, request, response });
3878
5320
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3879
- const controller = await container.get(BackupRepositoryController);
5321
+ const controller = await container.get(DeprecatedBackupController);
3880
5322
  if (typeof controller['setStatus'] === 'function') {
3881
5323
  controller.setStatus(undefined);
3882
5324
  }
3883
5325
  await templateService.apiHandler({
3884
- methodName: 'getRepositories',
5326
+ methodName: 'getDeprecatedBackupLogs',
3885
5327
  controller,
3886
5328
  response,
3887
5329
  next,
@@ -3894,21 +5336,21 @@ export function RegisterRoutes(app) {
3894
5336
  }
3895
5337
  });
3896
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
3897
- const argsBackupRepositoryController_getRepository = {
5339
+ const argsDeprecatedBackupController_getDeprecatedBackupLog = {
3898
5340
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3899
5341
  };
3900
- app.get('/rest/v0/backup-repositories/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepository)), async function BackupRepositoryController_getRepository(request, response, next) {
5342
+ app.get('/rest/v0/backup/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedBackupController)), ...(fetchMiddlewares(DeprecatedBackupController.prototype.getDeprecatedBackupLog)), async function DeprecatedBackupController_getDeprecatedBackupLog(request, response, next) {
3901
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
3902
5344
  let validatedArgs = [];
3903
5345
  try {
3904
- validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepository, request, response });
5346
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedBackupController_getDeprecatedBackupLog, request, response });
3905
5347
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3906
- const controller = await container.get(BackupRepositoryController);
5348
+ const controller = await container.get(DeprecatedBackupController);
3907
5349
  if (typeof controller['setStatus'] === 'function') {
3908
5350
  controller.setStatus(undefined);
3909
5351
  }
3910
5352
  await templateService.apiHandler({
3911
- methodName: 'getRepository',
5353
+ methodName: 'getDeprecatedBackupLog',
3912
5354
  controller,
3913
5355
  response,
3914
5356
  next,