@xen-orchestra/rest-api 0.18.0 → 0.20.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 (48) hide show
  1. package/dist/abstract-classes/base-controller.mjs +20 -0
  2. package/dist/abstract-classes/xo-controller.mjs +1 -1
  3. package/dist/alarms/alarm.controller.mjs +2 -1
  4. package/dist/backup-archives/backup-archive.controller.mjs +96 -0
  5. package/dist/backup-jobs/backup-job.controller.mjs +3 -1
  6. package/dist/backup-logs/backup-log.controller.mjs +2 -1
  7. package/dist/backup-repositories/backup-repositories.controller.mjs +2 -1
  8. package/dist/groups/group.controller.mjs +26 -1
  9. package/dist/hosts/host.controller.mjs +57 -2
  10. package/dist/index.mjs +3 -2
  11. package/dist/ioc/ioc.mjs +0 -5
  12. package/dist/messages/message.controller.mjs +2 -1
  13. package/dist/middlewares/authentication.middleware.mjs +47 -20
  14. package/dist/networks/network.controller.mjs +81 -2
  15. package/dist/open-api/oa-examples/backup-archive.oa-example.mjs +60 -0
  16. package/dist/open-api/oa-examples/gui-routes.oa-example.mjs +4 -0
  17. package/dist/open-api/oa-examples/pbd.oa-example.mjs +41 -0
  18. package/dist/open-api/oa-examples/ping.oa-example.mjs +4 -0
  19. package/dist/open-api/oa-examples/user.oa-example.mjs +12 -0
  20. package/dist/open-api/routes/routes.js +2050 -530
  21. package/dist/pbds/pbd.controller.mjs +60 -0
  22. package/dist/pcis/pci.controller.mjs +2 -1
  23. package/dist/pgpus/pgpu.controller.mjs +2 -1
  24. package/dist/pifs/pif.controller.mjs +50 -1
  25. package/dist/pools/pool.controller.mjs +56 -3
  26. package/dist/proxies/proxy.controller.mjs +2 -1
  27. package/dist/restore-logs/restore-log.controller.mjs +3 -1
  28. package/dist/schedules/schedule.controller.mjs +2 -1
  29. package/dist/servers/server.controller.mjs +26 -2
  30. package/dist/sms/sm.controller.mjs +2 -1
  31. package/dist/srs/sr.controller.mjs +57 -2
  32. package/dist/tasks/task.controller.mjs +2 -1
  33. package/dist/users/user.controller.mjs +80 -31
  34. package/dist/users/user.middleware.mjs +11 -0
  35. package/dist/vbds/vbd.controller.mjs +50 -1
  36. package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +81 -2
  37. package/dist/vdis/vdi.controller.mjs +105 -2
  38. package/dist/vifs/vif.controller.mjs +50 -1
  39. package/dist/vm-controller/vm-controller.controller.mjs +81 -2
  40. package/dist/vm-snapshots/vm-snapshot.controller.mjs +57 -2
  41. package/dist/vm-templates/vm-template.controller.mjs +57 -2
  42. package/dist/vms/vm.controller.mjs +36 -13
  43. package/dist/xoa/xoa.controller.mjs +24 -2
  44. package/dist/xoa/xoa.service.mjs +17 -0
  45. package/open-api/spec/swagger.json +8223 -3060
  46. package/package.json +3 -3
  47. package/tsoa.json +19 -0
  48. package/dist/tasks/task.service.mjs +0 -24
@@ -44,6 +44,8 @@ import { PgpuController } from './../../pgpus/pgpu.controller.mjs';
44
44
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
45
45
  import { PciController } from './../../pcis/pci.controller.mjs';
46
46
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
47
+ import { PbdController } from './../../pbds/pbd.controller.mjs';
48
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
47
49
  import { NetworkController } from './../../networks/network.controller.mjs';
48
50
  // WARNING: This 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
51
  import { MessageController } from './../../messages/message.controller.mjs';
@@ -60,6 +62,8 @@ import { BackupJobController } from './../../backup-jobs/backup-job.controller.m
60
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
61
63
  import { DeprecatedBackupController } from './../../backup-jobs/backup-job.controller.mjs';
62
64
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
65
+ import { BackupArchiveController } from './../../backup-archives/backup-archive.controller.mjs';
66
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
63
67
  import { AlarmController } from './../../alarms/alarm.controller.mjs';
64
68
  import { expressAuthentication } from './../../middlewares/authentication.middleware.mjs';
65
69
  // @ts-ignore - no great way to install types from subpackage
@@ -92,6 +96,16 @@ const models = {
92
96
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "poolsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "unknown": { "dataType": "double", "required": true }, "unreachable": { "dataType": "double", "required": true }, "connected": { "dataType": "double", "required": true } }, "required": true }, "resourcesOverview": { "dataType": "nestedObjectLiteral", "nestedProperties": { "srSize": { "dataType": "double", "required": true }, "memorySize": { "dataType": "double", "required": true }, "nCpus": { "dataType": "double", "required": true } }, "required": true }, "backups": { "dataType": "union", "subSchemas": [{ "ref": "DashboardBackupsInfo" }, { "ref": "PromiseWriteInStreamError" }] }, "storageRepositories": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "used": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "replicated": { "dataType": "double", "required": true }, "other": { "dataType": "double", "required": true }, "available": { "dataType": "double", "required": true } }, "required": true } } }, { "ref": "PromiseWriteInStreamError" }], "required": true }, "backupRepositories": { "dataType": "union", "subSchemas": [{ "ref": "DashboardBackupRepositoriesSizeInfo" }, { "ref": "PromiseWriteInStreamError" }] }, "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "nHostsFailed": { "dataType": "double", "required": true }, "nPoolsWithMissingPatches": { "dataType": "double", "required": true }, "nHostsWithMissingPatches": { "dataType": "double", "required": true }, "hasAuthorization": { "dataType": "enum", "enums": [true], "required": true } } }], "required": true }, "vmsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "unknown": { "dataType": "double", "required": true }, "inactive": { "dataType": "double", "required": true }, "active": { "dataType": "double", "required": true } }, "required": true }, "hostsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "unknown": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true }, "nHostsEol": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "ref": "PromiseWriteInStreamError" }] }, "nHosts": { "dataType": "double", "required": true }, "nPools": { "dataType": "double", "required": true } }, "validators": {} },
93
97
  },
94
98
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
99
+ "PingResponse": {
100
+ "dataType": "refAlias",
101
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "timestamp": { "dataType": "double", "required": true }, "result": { "dataType": "enum", "enums": ["pong"], "required": true } }, "validators": {} },
102
+ },
103
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
104
+ "XoGuiRoutes": {
105
+ "dataType": "refAlias",
106
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "xo6": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "xo5": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true } }, "validators": {} },
107
+ },
108
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
95
109
  "Record_string.string_": {
96
110
  "dataType": "refAlias",
97
111
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
@@ -179,7 +193,7 @@ const models = {
179
193
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
180
194
  "Partial_Unbrand_XoAlarm__": {
181
195
  "dataType": "refAlias",
182
- "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": {} },
196
+ "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": ["PBD"] }, { "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": {} },
183
197
  },
184
198
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
185
199
  "WithHref_Partial_Unbrand_XoAlarm___": {
@@ -412,6 +426,11 @@ const models = {
412
426
  "type": { "ref": "Unbrand_XoVif_", "validators": {} },
413
427
  },
414
428
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
429
+ "Exclude_SUPPORTED_VDI_FORMAT.qcow2_": {
430
+ "dataType": "refAlias",
431
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["raw"] }, { "dataType": "enum", "enums": ["vhd"] }], "validators": {} },
432
+ },
433
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
415
434
  "Unbrand_XoVdi_": {
416
435
  "dataType": "refAlias",
417
436
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["VDI"], "required": true } }, "validators": {} },
@@ -525,7 +544,7 @@ const models = {
525
544
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
526
545
  "Unbrand_XoSr_": {
527
546
  "dataType": "refAlias",
528
- "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 }, "$container": { "dataType": "string", "required": true }, "VDIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }], "required": true }, "content_type": { "dataType": "string", "required": true }, "current_operations": { "ref": "Record_string.STORAGE_OPERATIONS_", "required": true }, "id": { "dataType": "string", "required": true }, "inMaintenanceMode": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "shared": { "dataType": "boolean", "required": true }, "size": { "dataType": "double", "required": true }, "sm_config": { "ref": "Record_string.string_", "required": true }, "SR_type": { "dataType": "string", "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["SR"], "required": true }, "usage": { "dataType": "double", "required": true } }, "validators": {} },
547
+ "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 }, "$container": { "dataType": "string", "required": true }, "VDIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "undefined" }] }, "content_type": { "dataType": "string", "required": true }, "current_operations": { "ref": "Record_string.STORAGE_OPERATIONS_", "required": true }, "id": { "dataType": "string", "required": true }, "inMaintenanceMode": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "shared": { "dataType": "boolean", "required": true }, "size": { "dataType": "double", "required": true }, "sm_config": { "ref": "Record_string.string_", "required": true }, "SR_type": { "dataType": "string", "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["SR"], "required": true }, "usage": { "dataType": "double", "required": true } }, "validators": {} },
529
548
  },
530
549
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
531
550
  "Record_string.number_": {
@@ -686,7 +705,7 @@ const models = {
686
705
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
687
706
  "Unbrand_CreateVmBody_": {
688
707
  "dataType": "refAlias",
689
- "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "memory": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "string", "required": true }, "clone": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "gpuGroup": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vgpuType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "autoPoweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "vifs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "network": { "dataType": "string", "required": true }, "mtu": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "mac": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "ipv6_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "ipv4_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "copyHostBiosStrings": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template": { "dataType": "string", "required": true }, "affinity": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vdis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "userdevice": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "userdervice": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "install": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "repository": { "dataType": "string", "required": true }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["cdrom"] }], "required": true } } }, { "dataType": "undefined" }] }, "cloud_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "network_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "destroy_cloud_config_vdi": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
708
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "memory": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "string", "required": true }, "clone": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "gpuGroup": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vgpuType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "autoPoweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "vifs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "network": { "dataType": "string", "required": true }, "mtu": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "mac": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "ipv6_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "ipv4_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "copyHostBiosStrings": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "hvmBootFirmware": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["uefi"] }, { "dataType": "enum", "enums": ["bios"] }, { "dataType": "undefined" }] }, "template": { "dataType": "string", "required": true }, "affinity": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vdis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "userdevice": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "userdervice": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "install": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "repository": { "dataType": "string", "required": true }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["cdrom"] }], "required": true } } }, { "dataType": "undefined" }] }, "cloud_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "network_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "destroy_cloud_config_vdi": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
690
709
  },
691
710
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
692
711
  "XapiHostStatsRaw": {
@@ -819,6 +838,26 @@ const models = {
819
838
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$host": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "class_name": { "dataType": "string", "required": true }, "device_name": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "pci_id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["PCI"], "required": true } }, "validators": {} },
820
839
  },
821
840
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
841
+ "Partial_Unbrand_XoPbd__": {
842
+ "dataType": "refAlias",
843
+ "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" }] }, "attached": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "device_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "location": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "legacy_mode": { "dataType": "string", "required": true }, "location": { "dataType": "string", "required": true }, "path": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "group-name": { "dataType": "string", "required": true }, "redundancy": { "dataType": "string", "required": true }, "provisioning": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "serverpath": { "dataType": "string", "required": true }, "server": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "location": { "dataType": "string", "required": true }, "type": { "dataType": "string", "required": true } } }, { "dataType": "undefined" }] }, "host": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "otherConfig": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["PBD"] }, { "dataType": "undefined" }] } }, "validators": {} },
844
+ },
845
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
846
+ "WithHref_Partial_Unbrand_XoPbd___": {
847
+ "dataType": "refAlias",
848
+ "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoPbd__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
849
+ },
850
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
851
+ "SendObjects_Partial_Unbrand_XoPbd___": {
852
+ "dataType": "refAlias",
853
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoPbd___" } }, { "ref": "NdjsonStream" }], "validators": {} },
854
+ },
855
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
856
+ "Unbrand_XoPbd_": {
857
+ "dataType": "refAlias",
858
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "attached": { "dataType": "boolean", "required": true }, "device_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "location": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "legacy_mode": { "dataType": "string", "required": true }, "location": { "dataType": "string", "required": true }, "path": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "group-name": { "dataType": "string", "required": true }, "redundancy": { "dataType": "string", "required": true }, "provisioning": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "serverpath": { "dataType": "string", "required": true }, "server": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "location": { "dataType": "string", "required": true }, "type": { "dataType": "string", "required": true } } }], "required": true }, "host": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "otherConfig": { "ref": "Record_string.string_", "required": true }, "SR": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["PBD"], "required": true } }, "validators": {} },
859
+ },
860
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
822
861
  "Record_string.attaching_": {
823
862
  "dataType": "refAlias",
824
863
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
@@ -1057,9 +1096,29 @@ const models = {
1057
1096
  "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandXoMirrorBackupJob__" } }, { "ref": "NdjsonStream" }], "validators": {} },
1058
1097
  },
1059
1098
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1099
+ "Partial_Unbrand_XoVmBackupArchive__": {
1100
+ "dataType": "refAlias",
1101
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["xo-vm-backup"] }, { "dataType": "undefined" }] }, "backupRepository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "disks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "uuid": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } } }, { "dataType": "undefined" }] }, "isImmutable": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "jobId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }, { "dataType": "undefined" }] }, "scheduleId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "timestamp": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "vm": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string", "required": true }, "name_description": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true } } }, { "dataType": "undefined" }] }, "differencingVhds": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "dynamicVhds": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "withMemory": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
1102
+ },
1103
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1104
+ "WithHref_Partial_Unbrand_XoVmBackupArchive___": {
1105
+ "dataType": "refAlias",
1106
+ "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVmBackupArchive__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
1107
+ },
1108
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1109
+ "SendObjects_Partial_Unbrand_XoVmBackupArchive___": {
1110
+ "dataType": "refAlias",
1111
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoVmBackupArchive___" } }, { "ref": "NdjsonStream" }], "validators": {} },
1112
+ },
1113
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1114
+ "Unbrand_XoVmBackupArchive_": {
1115
+ "dataType": "refAlias",
1116
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["xo-vm-backup"], "required": true }, "backupRepository": { "dataType": "string", "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "uuid": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true }, "isImmutable": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "jobId": { "dataType": "string", "required": true }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }], "required": true }, "scheduleId": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "timestamp": { "dataType": "double", "required": true }, "vm": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string", "required": true }, "name_description": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true } }, "required": true }, "differencingVhds": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "dynamicVhds": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "withMemory": { "dataType": "boolean", "required": true } }, "validators": {} },
1117
+ },
1118
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1060
1119
  "Partial_UnbrandedXoAlarm_": {
1061
1120
  "dataType": "refAlias",
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": {} },
1121
+ "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": ["PBD"] }, { "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": {} },
1063
1122
  },
1064
1123
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1065
1124
  "WithHref_Partial_UnbrandedXoAlarm__": {
@@ -1074,7 +1133,7 @@ const models = {
1074
1133
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1075
1134
  "Unbrand_XoAlarm_": {
1076
1135
  "dataType": "refAlias",
1077
- "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["message"], "required": true }, "name": { "dataType": "string", "required": true }, "time": { "dataType": "double", "required": true }, "body": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "required": true }, "object": { "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 } }, "required": true } }, "validators": {} },
1136
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["message"], "required": true }, "name": { "dataType": "string", "required": true }, "time": { "dataType": "double", "required": true }, "body": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "required": true }, "object": { "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": ["PBD"] }, { "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 } }, "required": true } }, "validators": {} },
1078
1137
  },
1079
1138
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1080
1139
  "UnbrandedXoAlarm": {
@@ -1118,6 +1177,56 @@ export function RegisterRoutes(app) {
1118
1177
  }
1119
1178
  });
1120
1179
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1180
+ const argsXoaController_ping = {};
1181
+ app.get('/rest/v0/ping', authenticateMiddleware([{ "none": [] }]), ...(fetchMiddlewares(XoaController)), ...(fetchMiddlewares(XoaController.prototype.ping)), async function XoaController_ping(request, response, next) {
1182
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1183
+ let validatedArgs = [];
1184
+ try {
1185
+ validatedArgs = templateService.getValidatedArgs({ args: argsXoaController_ping, request, response });
1186
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1187
+ const controller = await container.get(XoaController);
1188
+ if (typeof controller['setStatus'] === 'function') {
1189
+ controller.setStatus(undefined);
1190
+ }
1191
+ await templateService.apiHandler({
1192
+ methodName: 'ping',
1193
+ controller,
1194
+ response,
1195
+ next,
1196
+ validatedArgs,
1197
+ successStatus: undefined,
1198
+ });
1199
+ }
1200
+ catch (err) {
1201
+ return next(err);
1202
+ }
1203
+ });
1204
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1205
+ const argsXoaController_getGuiRoutes = {};
1206
+ app.get('/rest/v0/gui-routes', authenticateMiddleware([{ "none": [] }]), ...(fetchMiddlewares(XoaController)), ...(fetchMiddlewares(XoaController.prototype.getGuiRoutes)), async function XoaController_getGuiRoutes(request, response, next) {
1207
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1208
+ let validatedArgs = [];
1209
+ try {
1210
+ validatedArgs = templateService.getValidatedArgs({ args: argsXoaController_getGuiRoutes, request, response });
1211
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1212
+ const controller = await container.get(XoaController);
1213
+ if (typeof controller['setStatus'] === 'function') {
1214
+ controller.setStatus(undefined);
1215
+ }
1216
+ await templateService.apiHandler({
1217
+ methodName: 'getGuiRoutes',
1218
+ controller,
1219
+ response,
1220
+ next,
1221
+ validatedArgs,
1222
+ successStatus: undefined,
1223
+ });
1224
+ }
1225
+ catch (err) {
1226
+ return next(err);
1227
+ }
1228
+ });
1229
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1121
1230
  const argsVmController_getVms = {
1122
1231
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1123
1232
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -1759,6 +1868,62 @@ export function RegisterRoutes(app) {
1759
1868
  }
1760
1869
  });
1761
1870
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1871
+ const argsVmController_putVmTag = {
1872
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1873
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
1874
+ };
1875
+ app.put('/rest/v0/vms/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.putVmTag)), async function VmController_putVmTag(request, response, next) {
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
1877
+ let validatedArgs = [];
1878
+ try {
1879
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmController_putVmTag, request, response });
1880
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1881
+ const controller = await container.get(VmController);
1882
+ if (typeof controller['setStatus'] === 'function') {
1883
+ controller.setStatus(undefined);
1884
+ }
1885
+ await templateService.apiHandler({
1886
+ methodName: 'putVmTag',
1887
+ controller,
1888
+ response,
1889
+ next,
1890
+ validatedArgs,
1891
+ successStatus: 204,
1892
+ });
1893
+ }
1894
+ catch (err) {
1895
+ return next(err);
1896
+ }
1897
+ });
1898
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1899
+ const argsVmController_deleteVmTag = {
1900
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1901
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
1902
+ };
1903
+ app.delete('/rest/v0/vms/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.deleteVmTag)), async function VmController_deleteVmTag(request, response, next) {
1904
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1905
+ let validatedArgs = [];
1906
+ try {
1907
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmController_deleteVmTag, request, response });
1908
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1909
+ const controller = await container.get(VmController);
1910
+ if (typeof controller['setStatus'] === 'function') {
1911
+ controller.setStatus(undefined);
1912
+ }
1913
+ await templateService.apiHandler({
1914
+ methodName: 'deleteVmTag',
1915
+ controller,
1916
+ response,
1917
+ next,
1918
+ validatedArgs,
1919
+ successStatus: 204,
1920
+ });
1921
+ }
1922
+ catch (err) {
1923
+ return next(err);
1924
+ }
1925
+ });
1926
+ // WARNING: This 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
1927
  const argsVmTemplateController_getVmTemplates = {
1763
1928
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1764
1929
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -1970,6 +2135,94 @@ export function RegisterRoutes(app) {
1970
2135
  }
1971
2136
  });
1972
2137
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2138
+ const argsVmTemplateController_getVmTemplateTasks = {
2139
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2140
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2141
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2142
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2143
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2144
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2145
+ };
2146
+ app.get('/rest/v0/vm-templates/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplateTasks)), async function VmTemplateController_getVmTemplateTasks(request, response, next) {
2147
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2148
+ let validatedArgs = [];
2149
+ try {
2150
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplateTasks, request, response });
2151
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2152
+ const controller = await container.get(VmTemplateController);
2153
+ if (typeof controller['setStatus'] === 'function') {
2154
+ controller.setStatus(undefined);
2155
+ }
2156
+ await templateService.apiHandler({
2157
+ methodName: 'getVmTemplateTasks',
2158
+ controller,
2159
+ response,
2160
+ next,
2161
+ validatedArgs,
2162
+ successStatus: undefined,
2163
+ });
2164
+ }
2165
+ catch (err) {
2166
+ return next(err);
2167
+ }
2168
+ });
2169
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2170
+ const argsVmTemplateController_putVmTemplateTag = {
2171
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2172
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2173
+ };
2174
+ app.put('/rest/v0/vm-templates/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.putVmTemplateTag)), async function VmTemplateController_putVmTemplateTag(request, response, next) {
2175
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2176
+ let validatedArgs = [];
2177
+ try {
2178
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_putVmTemplateTag, request, response });
2179
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2180
+ const controller = await container.get(VmTemplateController);
2181
+ if (typeof controller['setStatus'] === 'function') {
2182
+ controller.setStatus(undefined);
2183
+ }
2184
+ await templateService.apiHandler({
2185
+ methodName: 'putVmTemplateTag',
2186
+ controller,
2187
+ response,
2188
+ next,
2189
+ validatedArgs,
2190
+ successStatus: 204,
2191
+ });
2192
+ }
2193
+ catch (err) {
2194
+ return next(err);
2195
+ }
2196
+ });
2197
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2198
+ const argsVmTemplateController_deleteVmTemplateTag = {
2199
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2200
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2201
+ };
2202
+ app.delete('/rest/v0/vm-templates/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.deleteVmTemplateTag)), async function VmTemplateController_deleteVmTemplateTag(request, response, next) {
2203
+ // WARNING: This 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
+ let validatedArgs = [];
2205
+ try {
2206
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_deleteVmTemplateTag, request, response });
2207
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2208
+ const controller = await container.get(VmTemplateController);
2209
+ if (typeof controller['setStatus'] === 'function') {
2210
+ controller.setStatus(undefined);
2211
+ }
2212
+ await templateService.apiHandler({
2213
+ methodName: 'deleteVmTemplateTag',
2214
+ controller,
2215
+ response,
2216
+ next,
2217
+ validatedArgs,
2218
+ successStatus: 204,
2219
+ });
2220
+ }
2221
+ catch (err) {
2222
+ return next(err);
2223
+ }
2224
+ });
2225
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1973
2226
  const argsVmSnapshotController_getVmSnapshots = {
1974
2227
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1975
2228
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2181,25 +2434,26 @@ export function RegisterRoutes(app) {
2181
2434
  }
2182
2435
  });
2183
2436
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2184
- const argsVmControllerController_getVmControllers = {
2437
+ const argsVmSnapshotController_getVmSnapshotTasks = {
2185
2438
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2439
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2186
2440
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2187
2441
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2188
2442
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2189
2443
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2190
2444
  };
2191
- app.get('/rest/v0/vm-controllers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllers)), async function VmControllerController_getVmControllers(request, response, next) {
2445
+ app.get('/rest/v0/vm-snapshots/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshotTasks)), async function VmSnapshotController_getVmSnapshotTasks(request, response, next) {
2192
2446
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2193
2447
  let validatedArgs = [];
2194
2448
  try {
2195
- validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllers, request, response });
2449
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshotTasks, request, response });
2196
2450
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2197
- const controller = await container.get(VmControllerController);
2451
+ const controller = await container.get(VmSnapshotController);
2198
2452
  if (typeof controller['setStatus'] === 'function') {
2199
2453
  controller.setStatus(undefined);
2200
2454
  }
2201
2455
  await templateService.apiHandler({
2202
- methodName: 'getVmControllers',
2456
+ methodName: 'getVmSnapshotTasks',
2203
2457
  controller,
2204
2458
  response,
2205
2459
  next,
@@ -2212,26 +2466,27 @@ export function RegisterRoutes(app) {
2212
2466
  }
2213
2467
  });
2214
2468
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2215
- const argsVmControllerController_getVmController = {
2469
+ const argsVmSnapshotController_putVmSnapshotTag = {
2216
2470
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2471
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2217
2472
  };
2218
- app.get('/rest/v0/vm-controllers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmController)), async function VmControllerController_getVmController(request, response, next) {
2473
+ app.put('/rest/v0/vm-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.putVmSnapshotTag)), async function VmSnapshotController_putVmSnapshotTag(request, response, next) {
2219
2474
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2220
2475
  let validatedArgs = [];
2221
2476
  try {
2222
- validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmController, request, response });
2477
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_putVmSnapshotTag, request, response });
2223
2478
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2224
- const controller = await container.get(VmControllerController);
2479
+ const controller = await container.get(VmSnapshotController);
2225
2480
  if (typeof controller['setStatus'] === 'function') {
2226
2481
  controller.setStatus(undefined);
2227
2482
  }
2228
2483
  await templateService.apiHandler({
2229
- methodName: 'getVmController',
2484
+ methodName: 'putVmSnapshotTag',
2230
2485
  controller,
2231
2486
  response,
2232
2487
  next,
2233
2488
  validatedArgs,
2234
- successStatus: undefined,
2489
+ successStatus: 204,
2235
2490
  });
2236
2491
  }
2237
2492
  catch (err) {
@@ -2239,31 +2494,27 @@ export function RegisterRoutes(app) {
2239
2494
  }
2240
2495
  });
2241
2496
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2242
- const argsVmControllerController_getVmControllerAlarms = {
2243
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2497
+ const argsVmSnapshotController_deleteVmSnapshotTag = {
2244
2498
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2245
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2246
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2247
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2248
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2499
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2249
2500
  };
2250
- app.get('/rest/v0/vm-controllers/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerAlarms)), async function VmControllerController_getVmControllerAlarms(request, response, next) {
2501
+ app.delete('/rest/v0/vm-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.deleteVmSnapshotTag)), async function VmSnapshotController_deleteVmSnapshotTag(request, response, next) {
2251
2502
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2252
2503
  let validatedArgs = [];
2253
2504
  try {
2254
- validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerAlarms, request, response });
2505
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_deleteVmSnapshotTag, request, response });
2255
2506
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2256
- const controller = await container.get(VmControllerController);
2507
+ const controller = await container.get(VmSnapshotController);
2257
2508
  if (typeof controller['setStatus'] === 'function') {
2258
2509
  controller.setStatus(undefined);
2259
2510
  }
2260
2511
  await templateService.apiHandler({
2261
- methodName: 'getVmControllerAlarms',
2512
+ methodName: 'deleteVmSnapshotTag',
2262
2513
  controller,
2263
2514
  response,
2264
2515
  next,
2265
2516
  validatedArgs,
2266
- successStatus: undefined,
2517
+ successStatus: 204,
2267
2518
  });
2268
2519
  }
2269
2520
  catch (err) {
@@ -2271,26 +2522,25 @@ export function RegisterRoutes(app) {
2271
2522
  }
2272
2523
  });
2273
2524
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2274
- const argsVmControllerController_getVmControllerVdis = {
2525
+ const argsVmControllerController_getVmControllers = {
2275
2526
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2276
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2277
2527
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2278
2528
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2279
2529
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2280
2530
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2281
2531
  };
2282
- app.get('/rest/v0/vm-controllers/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerVdis)), async function VmControllerController_getVmControllerVdis(request, response, next) {
2532
+ app.get('/rest/v0/vm-controllers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllers)), async function VmControllerController_getVmControllers(request, response, next) {
2283
2533
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2284
2534
  let validatedArgs = [];
2285
2535
  try {
2286
- validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerVdis, request, response });
2536
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllers, request, response });
2287
2537
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2288
2538
  const controller = await container.get(VmControllerController);
2289
2539
  if (typeof controller['setStatus'] === 'function') {
2290
2540
  controller.setStatus(undefined);
2291
2541
  }
2292
2542
  await templateService.apiHandler({
2293
- methodName: 'getVmControllerVdis',
2543
+ methodName: 'getVmControllers',
2294
2544
  controller,
2295
2545
  response,
2296
2546
  next,
@@ -2303,25 +2553,21 @@ export function RegisterRoutes(app) {
2303
2553
  }
2304
2554
  });
2305
2555
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2306
- const argsVifController_getVifs = {
2307
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2308
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2309
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2310
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2311
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2556
+ const argsVmControllerController_getVmController = {
2557
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2312
2558
  };
2313
- app.get('/rest/v0/vifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifs)), async function VifController_getVifs(request, response, next) {
2559
+ app.get('/rest/v0/vm-controllers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmController)), async function VmControllerController_getVmController(request, response, next) {
2314
2560
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2315
2561
  let validatedArgs = [];
2316
2562
  try {
2317
- validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifs, request, response });
2563
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmController, request, response });
2318
2564
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2319
- const controller = await container.get(VifController);
2565
+ const controller = await container.get(VmControllerController);
2320
2566
  if (typeof controller['setStatus'] === 'function') {
2321
2567
  controller.setStatus(undefined);
2322
2568
  }
2323
2569
  await templateService.apiHandler({
2324
- methodName: 'getVifs',
2570
+ methodName: 'getVmController',
2325
2571
  controller,
2326
2572
  response,
2327
2573
  next,
@@ -2334,21 +2580,26 @@ export function RegisterRoutes(app) {
2334
2580
  }
2335
2581
  });
2336
2582
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2337
- const argsVifController_getVif = {
2583
+ const argsVmControllerController_getVmControllerAlarms = {
2584
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2338
2585
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2339
- };
2340
- app.get('/rest/v0/vifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVif)), async function VifController_getVif(request, response, next) {
2341
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2586
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2587
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2588
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2589
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2590
+ };
2591
+ app.get('/rest/v0/vm-controllers/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerAlarms)), async function VmControllerController_getVmControllerAlarms(request, response, next) {
2592
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2342
2593
  let validatedArgs = [];
2343
2594
  try {
2344
- validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVif, request, response });
2595
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerAlarms, request, response });
2345
2596
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2346
- const controller = await container.get(VifController);
2597
+ const controller = await container.get(VmControllerController);
2347
2598
  if (typeof controller['setStatus'] === 'function') {
2348
2599
  controller.setStatus(undefined);
2349
2600
  }
2350
2601
  await templateService.apiHandler({
2351
- methodName: 'getVif',
2602
+ methodName: 'getVmControllerAlarms',
2352
2603
  controller,
2353
2604
  response,
2354
2605
  next,
@@ -2361,7 +2612,7 @@ export function RegisterRoutes(app) {
2361
2612
  }
2362
2613
  });
2363
2614
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2364
- const argsVifController_getVifAlarms = {
2615
+ const argsVmControllerController_getVmControllerVdis = {
2365
2616
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2366
2617
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2367
2618
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2369,18 +2620,18 @@ export function RegisterRoutes(app) {
2369
2620
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2370
2621
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2371
2622
  };
2372
- app.get('/rest/v0/vifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifAlarms)), async function VifController_getVifAlarms(request, response, next) {
2623
+ app.get('/rest/v0/vm-controllers/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerVdis)), async function VmControllerController_getVmControllerVdis(request, response, next) {
2373
2624
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2374
2625
  let validatedArgs = [];
2375
2626
  try {
2376
- validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifAlarms, request, response });
2627
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerVdis, request, response });
2377
2628
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2378
- const controller = await container.get(VifController);
2629
+ const controller = await container.get(VmControllerController);
2379
2630
  if (typeof controller['setStatus'] === 'function') {
2380
2631
  controller.setStatus(undefined);
2381
2632
  }
2382
2633
  await templateService.apiHandler({
2383
- methodName: 'getVifAlarms',
2634
+ methodName: 'getVmControllerVdis',
2384
2635
  controller,
2385
2636
  response,
2386
2637
  next,
@@ -2393,25 +2644,26 @@ export function RegisterRoutes(app) {
2393
2644
  }
2394
2645
  });
2395
2646
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2396
- const argsVdiController_getVdis = {
2647
+ const argsVmControllerController_getVmControllerMessages = {
2397
2648
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2649
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2398
2650
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2399
2651
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2400
2652
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2401
2653
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2402
2654
  };
2403
- app.get('/rest/v0/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdis)), async function VdiController_getVdis(request, response, next) {
2655
+ app.get('/rest/v0/vm-controllers/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerMessages)), async function VmControllerController_getVmControllerMessages(request, response, next) {
2404
2656
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2405
2657
  let validatedArgs = [];
2406
2658
  try {
2407
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdis, request, response });
2659
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerMessages, request, response });
2408
2660
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2409
- const controller = await container.get(VdiController);
2661
+ const controller = await container.get(VmControllerController);
2410
2662
  if (typeof controller['setStatus'] === 'function') {
2411
2663
  controller.setStatus(undefined);
2412
2664
  }
2413
2665
  await templateService.apiHandler({
2414
- methodName: 'getVdis',
2666
+ methodName: 'getVmControllerMessages',
2415
2667
  controller,
2416
2668
  response,
2417
2669
  next,
@@ -2424,28 +2676,31 @@ export function RegisterRoutes(app) {
2424
2676
  }
2425
2677
  });
2426
2678
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2427
- const argsVdiController_exportVdiContent = {
2679
+ const argsVmControllerController_getVmControllerTasks = {
2428
2680
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2429
2681
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2430
- format: { "in": "path", "name": "format", "required": true, "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["vhd"] }, { "dataType": "enum", "enums": ["raw"] }] },
2682
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2683
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2684
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2685
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2431
2686
  };
2432
- app.get('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.exportVdiContent)), async function VdiController_exportVdiContent(request, response, next) {
2687
+ app.get('/rest/v0/vm-controllers/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerTasks)), async function VmControllerController_getVmControllerTasks(request, response, next) {
2433
2688
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2434
2689
  let validatedArgs = [];
2435
2690
  try {
2436
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_exportVdiContent, request, response });
2691
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerTasks, request, response });
2437
2692
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2438
- const controller = await container.get(VdiController);
2693
+ const controller = await container.get(VmControllerController);
2439
2694
  if (typeof controller['setStatus'] === 'function') {
2440
2695
  controller.setStatus(undefined);
2441
2696
  }
2442
2697
  await templateService.apiHandler({
2443
- methodName: 'exportVdiContent',
2698
+ methodName: 'getVmControllerTasks',
2444
2699
  controller,
2445
2700
  response,
2446
2701
  next,
2447
2702
  validatedArgs,
2448
- successStatus: 200,
2703
+ successStatus: undefined,
2449
2704
  });
2450
2705
  }
2451
2706
  catch (err) {
@@ -2453,26 +2708,27 @@ export function RegisterRoutes(app) {
2453
2708
  }
2454
2709
  });
2455
2710
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2456
- const argsVdiController_getVdi = {
2711
+ const argsVmControllerController_putVmControllerTag = {
2457
2712
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2713
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2458
2714
  };
2459
- app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
2715
+ app.put('/rest/v0/vm-controllers/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.putVmControllerTag)), async function VmControllerController_putVmControllerTag(request, response, next) {
2460
2716
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2461
2717
  let validatedArgs = [];
2462
2718
  try {
2463
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
2719
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_putVmControllerTag, request, response });
2464
2720
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2465
- const controller = await container.get(VdiController);
2721
+ const controller = await container.get(VmControllerController);
2466
2722
  if (typeof controller['setStatus'] === 'function') {
2467
2723
  controller.setStatus(undefined);
2468
2724
  }
2469
2725
  await templateService.apiHandler({
2470
- methodName: 'getVdi',
2726
+ methodName: 'putVmControllerTag',
2471
2727
  controller,
2472
2728
  response,
2473
2729
  next,
2474
2730
  validatedArgs,
2475
- successStatus: undefined,
2731
+ successStatus: 204,
2476
2732
  });
2477
2733
  }
2478
2734
  catch (err) {
@@ -2480,26 +2736,53 @@ export function RegisterRoutes(app) {
2480
2736
  }
2481
2737
  });
2482
2738
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2483
- const argsVdiController_getVdiAlarms = {
2484
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2739
+ const argsVmControllerController_deleteVmControllerTag = {
2485
2740
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2741
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2742
+ };
2743
+ app.delete('/rest/v0/vm-controllers/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.deleteVmControllerTag)), async function VmControllerController_deleteVmControllerTag(request, response, next) {
2744
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2745
+ let validatedArgs = [];
2746
+ try {
2747
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_deleteVmControllerTag, request, response });
2748
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2749
+ const controller = await container.get(VmControllerController);
2750
+ if (typeof controller['setStatus'] === 'function') {
2751
+ controller.setStatus(undefined);
2752
+ }
2753
+ await templateService.apiHandler({
2754
+ methodName: 'deleteVmControllerTag',
2755
+ controller,
2756
+ response,
2757
+ next,
2758
+ validatedArgs,
2759
+ successStatus: 204,
2760
+ });
2761
+ }
2762
+ catch (err) {
2763
+ return next(err);
2764
+ }
2765
+ });
2766
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2767
+ const argsVifController_getVifs = {
2768
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2486
2769
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2487
2770
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2488
2771
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2489
2772
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2490
2773
  };
2491
- app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
2774
+ app.get('/rest/v0/vifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifs)), async function VifController_getVifs(request, response, next) {
2492
2775
  // WARNING: This 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
2776
  let validatedArgs = [];
2494
2777
  try {
2495
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
2778
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifs, request, response });
2496
2779
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2497
- const controller = await container.get(VdiController);
2780
+ const controller = await container.get(VifController);
2498
2781
  if (typeof controller['setStatus'] === 'function') {
2499
2782
  controller.setStatus(undefined);
2500
2783
  }
2501
2784
  await templateService.apiHandler({
2502
- methodName: 'getVdiAlarms',
2785
+ methodName: 'getVifs',
2503
2786
  controller,
2504
2787
  response,
2505
2788
  next,
@@ -2512,26 +2795,26 @@ export function RegisterRoutes(app) {
2512
2795
  }
2513
2796
  });
2514
2797
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2515
- const argsVdiController_deleteVdi = {
2798
+ const argsVifController_getVif = {
2516
2799
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2517
2800
  };
2518
- app.delete('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdi)), async function VdiController_deleteVdi(request, response, next) {
2801
+ app.get('/rest/v0/vifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVif)), async function VifController_getVif(request, response, next) {
2519
2802
  // WARNING: This 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
2803
  let validatedArgs = [];
2521
2804
  try {
2522
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdi, request, response });
2805
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVif, request, response });
2523
2806
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2524
- const controller = await container.get(VdiController);
2807
+ const controller = await container.get(VifController);
2525
2808
  if (typeof controller['setStatus'] === 'function') {
2526
2809
  controller.setStatus(undefined);
2527
2810
  }
2528
2811
  await templateService.apiHandler({
2529
- methodName: 'deleteVdi',
2812
+ methodName: 'getVif',
2530
2813
  controller,
2531
2814
  response,
2532
2815
  next,
2533
2816
  validatedArgs,
2534
- successStatus: 204,
2817
+ successStatus: undefined,
2535
2818
  });
2536
2819
  }
2537
2820
  catch (err) {
@@ -2539,25 +2822,26 @@ export function RegisterRoutes(app) {
2539
2822
  }
2540
2823
  });
2541
2824
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2542
- const argsVdiSnapshotController_getVdiSnapshots = {
2825
+ const argsVifController_getVifAlarms = {
2543
2826
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2827
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2544
2828
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2545
2829
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2546
2830
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2547
2831
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2548
2832
  };
2549
- app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
2833
+ app.get('/rest/v0/vifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifAlarms)), async function VifController_getVifAlarms(request, response, next) {
2550
2834
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2551
2835
  let validatedArgs = [];
2552
2836
  try {
2553
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
2837
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifAlarms, request, response });
2554
2838
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2555
- const controller = await container.get(VdiSnapshotController);
2839
+ const controller = await container.get(VifController);
2556
2840
  if (typeof controller['setStatus'] === 'function') {
2557
2841
  controller.setStatus(undefined);
2558
2842
  }
2559
2843
  await templateService.apiHandler({
2560
- methodName: 'getVdiSnapshots',
2844
+ methodName: 'getVifAlarms',
2561
2845
  controller,
2562
2846
  response,
2563
2847
  next,
@@ -2570,28 +2854,31 @@ export function RegisterRoutes(app) {
2570
2854
  }
2571
2855
  });
2572
2856
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2573
- const argsVdiSnapshotController_exportVdiSnapshotContent = {
2857
+ const argsVifController_getVifMessages = {
2574
2858
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2575
2859
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2576
- format: { "in": "path", "name": "format", "required": true, "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["vhd"] }, { "dataType": "enum", "enums": ["raw"] }] },
2860
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2861
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2862
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2863
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2577
2864
  };
2578
- app.get('/rest/v0/vdi-snapshots/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.exportVdiSnapshotContent)), async function VdiSnapshotController_exportVdiSnapshotContent(request, response, next) {
2865
+ app.get('/rest/v0/vifs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifMessages)), async function VifController_getVifMessages(request, response, next) {
2579
2866
  // WARNING: This 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
2867
  let validatedArgs = [];
2581
2868
  try {
2582
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_exportVdiSnapshotContent, request, response });
2869
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifMessages, request, response });
2583
2870
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2584
- const controller = await container.get(VdiSnapshotController);
2871
+ const controller = await container.get(VifController);
2585
2872
  if (typeof controller['setStatus'] === 'function') {
2586
2873
  controller.setStatus(undefined);
2587
2874
  }
2588
2875
  await templateService.apiHandler({
2589
- methodName: 'exportVdiSnapshotContent',
2876
+ methodName: 'getVifMessages',
2590
2877
  controller,
2591
2878
  response,
2592
2879
  next,
2593
2880
  validatedArgs,
2594
- successStatus: 200,
2881
+ successStatus: undefined,
2595
2882
  });
2596
2883
  }
2597
2884
  catch (err) {
@@ -2599,21 +2886,26 @@ export function RegisterRoutes(app) {
2599
2886
  }
2600
2887
  });
2601
2888
  // WARNING: This 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 argsVdiSnapshotController_getVdiSnapshot = {
2889
+ const argsVifController_getVifTasks = {
2890
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2603
2891
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2892
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2893
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2894
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2895
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2604
2896
  };
2605
- app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
2897
+ app.get('/rest/v0/vifs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifTasks)), async function VifController_getVifTasks(request, response, next) {
2606
2898
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2607
2899
  let validatedArgs = [];
2608
2900
  try {
2609
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
2901
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifTasks, request, response });
2610
2902
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2611
- const controller = await container.get(VdiSnapshotController);
2903
+ const controller = await container.get(VifController);
2612
2904
  if (typeof controller['setStatus'] === 'function') {
2613
2905
  controller.setStatus(undefined);
2614
2906
  }
2615
2907
  await templateService.apiHandler({
2616
- methodName: 'getVdiSnapshot',
2908
+ methodName: 'getVifTasks',
2617
2909
  controller,
2618
2910
  response,
2619
2911
  next,
@@ -2626,26 +2918,25 @@ export function RegisterRoutes(app) {
2626
2918
  }
2627
2919
  });
2628
2920
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2629
- const argsVdiSnapshotController_getVdiSnapshotAlarms = {
2921
+ const argsVdiController_getVdis = {
2630
2922
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2631
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2632
2923
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2633
2924
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2634
2925
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2635
2926
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2636
2927
  };
2637
- app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
2928
+ app.get('/rest/v0/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdis)), async function VdiController_getVdis(request, response, next) {
2638
2929
  // WARNING: This 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
2930
  let validatedArgs = [];
2640
2931
  try {
2641
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
2932
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdis, request, response });
2642
2933
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2643
- const controller = await container.get(VdiSnapshotController);
2934
+ const controller = await container.get(VdiController);
2644
2935
  if (typeof controller['setStatus'] === 'function') {
2645
2936
  controller.setStatus(undefined);
2646
2937
  }
2647
2938
  await templateService.apiHandler({
2648
- methodName: 'getVdiSnapshotAlarms',
2939
+ methodName: 'getVdis',
2649
2940
  controller,
2650
2941
  response,
2651
2942
  next,
@@ -2658,26 +2949,28 @@ export function RegisterRoutes(app) {
2658
2949
  }
2659
2950
  });
2660
2951
  // WARNING: This 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 argsVdiSnapshotController_deleteVdiSnapshot = {
2952
+ const argsVdiController_exportVdiContent = {
2953
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2662
2954
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2955
+ format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
2663
2956
  };
2664
- app.delete('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshot)), async function VdiSnapshotController_deleteVdiSnapshot(request, response, next) {
2957
+ app.get('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.exportVdiContent)), async function VdiController_exportVdiContent(request, response, next) {
2665
2958
  // WARNING: This 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
2959
  let validatedArgs = [];
2667
2960
  try {
2668
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshot, request, response });
2961
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_exportVdiContent, request, response });
2669
2962
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2670
- const controller = await container.get(VdiSnapshotController);
2963
+ const controller = await container.get(VdiController);
2671
2964
  if (typeof controller['setStatus'] === 'function') {
2672
2965
  controller.setStatus(undefined);
2673
2966
  }
2674
2967
  await templateService.apiHandler({
2675
- methodName: 'deleteVdiSnapshot',
2968
+ methodName: 'exportVdiContent',
2676
2969
  controller,
2677
2970
  response,
2678
2971
  next,
2679
2972
  validatedArgs,
2680
- successStatus: 204,
2973
+ successStatus: 200,
2681
2974
  });
2682
2975
  }
2683
2976
  catch (err) {
@@ -2685,30 +2978,28 @@ export function RegisterRoutes(app) {
2685
2978
  }
2686
2979
  });
2687
2980
  // WARNING: This 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 argsVbdController_getVbds = {
2981
+ const argsVdiController_importVdiContent = {
2689
2982
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2690
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2691
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2692
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2693
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2983
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2984
+ format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
2694
2985
  };
2695
- app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
2986
+ app.put('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.importVdiContent)), async function VdiController_importVdiContent(request, response, next) {
2696
2987
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2697
2988
  let validatedArgs = [];
2698
2989
  try {
2699
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
2990
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_importVdiContent, request, response });
2700
2991
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2701
- const controller = await container.get(VbdController);
2992
+ const controller = await container.get(VdiController);
2702
2993
  if (typeof controller['setStatus'] === 'function') {
2703
2994
  controller.setStatus(undefined);
2704
2995
  }
2705
2996
  await templateService.apiHandler({
2706
- methodName: 'getVbds',
2997
+ methodName: 'importVdiContent',
2707
2998
  controller,
2708
2999
  response,
2709
3000
  next,
2710
3001
  validatedArgs,
2711
- successStatus: undefined,
3002
+ successStatus: 204,
2712
3003
  });
2713
3004
  }
2714
3005
  catch (err) {
@@ -2716,21 +3007,21 @@ export function RegisterRoutes(app) {
2716
3007
  }
2717
3008
  });
2718
3009
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2719
- const argsVbdController_getVbd = {
3010
+ const argsVdiController_getVdi = {
2720
3011
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2721
3012
  };
2722
- app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
3013
+ app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
2723
3014
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2724
3015
  let validatedArgs = [];
2725
3016
  try {
2726
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
3017
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
2727
3018
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2728
- const controller = await container.get(VbdController);
3019
+ const controller = await container.get(VdiController);
2729
3020
  if (typeof controller['setStatus'] === 'function') {
2730
3021
  controller.setStatus(undefined);
2731
3022
  }
2732
3023
  await templateService.apiHandler({
2733
- methodName: 'getVbd',
3024
+ methodName: 'getVdi',
2734
3025
  controller,
2735
3026
  response,
2736
3027
  next,
@@ -2743,7 +3034,7 @@ export function RegisterRoutes(app) {
2743
3034
  }
2744
3035
  });
2745
3036
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2746
- const argsVbdController_getVbdAlarms = {
3037
+ const argsVdiController_getVdiAlarms = {
2747
3038
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2748
3039
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2749
3040
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2751,18 +3042,18 @@ export function RegisterRoutes(app) {
2751
3042
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2752
3043
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2753
3044
  };
2754
- app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
3045
+ app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
2755
3046
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2756
3047
  let validatedArgs = [];
2757
3048
  try {
2758
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
3049
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
2759
3050
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2760
- const controller = await container.get(VbdController);
3051
+ const controller = await container.get(VdiController);
2761
3052
  if (typeof controller['setStatus'] === 'function') {
2762
3053
  controller.setStatus(undefined);
2763
3054
  }
2764
3055
  await templateService.apiHandler({
2765
- methodName: 'getVbdAlarms',
3056
+ methodName: 'getVdiAlarms',
2766
3057
  controller,
2767
3058
  response,
2768
3059
  next,
@@ -2775,30 +3066,26 @@ export function RegisterRoutes(app) {
2775
3066
  }
2776
3067
  });
2777
3068
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2778
- const argsUserController_getUsers = {
2779
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2780
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2781
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2782
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2783
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3069
+ const argsVdiController_deleteVdi = {
3070
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2784
3071
  };
2785
- app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
3072
+ app.delete('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdi)), async function VdiController_deleteVdi(request, response, next) {
2786
3073
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2787
3074
  let validatedArgs = [];
2788
3075
  try {
2789
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
3076
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdi, request, response });
2790
3077
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2791
- const controller = await container.get(UserController);
3078
+ const controller = await container.get(VdiController);
2792
3079
  if (typeof controller['setStatus'] === 'function') {
2793
3080
  controller.setStatus(undefined);
2794
3081
  }
2795
3082
  await templateService.apiHandler({
2796
- methodName: 'getUsers',
3083
+ methodName: 'deleteVdi',
2797
3084
  controller,
2798
3085
  response,
2799
3086
  next,
2800
3087
  validatedArgs,
2801
- successStatus: undefined,
3088
+ successStatus: 204,
2802
3089
  });
2803
3090
  }
2804
3091
  catch (err) {
@@ -2806,26 +3093,31 @@ export function RegisterRoutes(app) {
2806
3093
  }
2807
3094
  });
2808
3095
  // WARNING: This 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
- const argsUserController_redirectMe = {
3096
+ const argsVdiController_getVdiMessages = {
2810
3097
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3098
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3099
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3100
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3101
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3102
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2811
3103
  };
2812
- app.get('/rest/v0/users/me', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.redirectMe)), async function UserController_redirectMe(request, response, next) {
3104
+ app.get('/rest/v0/vdis/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiMessages)), async function VdiController_getVdiMessages(request, response, next) {
2813
3105
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2814
3106
  let validatedArgs = [];
2815
3107
  try {
2816
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_redirectMe, request, response });
3108
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiMessages, request, response });
2817
3109
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2818
- const controller = await container.get(UserController);
3110
+ const controller = await container.get(VdiController);
2819
3111
  if (typeof controller['setStatus'] === 'function') {
2820
3112
  controller.setStatus(undefined);
2821
3113
  }
2822
3114
  await templateService.apiHandler({
2823
- methodName: 'redirectMe',
3115
+ methodName: 'getVdiMessages',
2824
3116
  controller,
2825
3117
  response,
2826
3118
  next,
2827
3119
  validatedArgs,
2828
- successStatus: 307,
3120
+ successStatus: undefined,
2829
3121
  });
2830
3122
  }
2831
3123
  catch (err) {
@@ -2833,26 +3125,31 @@ export function RegisterRoutes(app) {
2833
3125
  }
2834
3126
  });
2835
3127
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2836
- const argsUserController_redirectMeWithPath = {
3128
+ const argsVdiController_getVdiTasks = {
2837
3129
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3130
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3131
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3132
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3133
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3134
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2838
3135
  };
2839
- app.get('/rest/v0/users/me/*', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.redirectMeWithPath)), async function UserController_redirectMeWithPath(request, response, next) {
3136
+ app.get('/rest/v0/vdis/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiTasks)), async function VdiController_getVdiTasks(request, response, next) {
2840
3137
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2841
3138
  let validatedArgs = [];
2842
3139
  try {
2843
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_redirectMeWithPath, request, response });
3140
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiTasks, request, response });
2844
3141
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2845
- const controller = await container.get(UserController);
3142
+ const controller = await container.get(VdiController);
2846
3143
  if (typeof controller['setStatus'] === 'function') {
2847
3144
  controller.setStatus(undefined);
2848
3145
  }
2849
3146
  await templateService.apiHandler({
2850
- methodName: 'redirectMeWithPath',
3147
+ methodName: 'getVdiTasks',
2851
3148
  controller,
2852
3149
  response,
2853
3150
  next,
2854
3151
  validatedArgs,
2855
- successStatus: 307,
3152
+ successStatus: undefined,
2856
3153
  });
2857
3154
  }
2858
3155
  catch (err) {
@@ -2860,26 +3157,27 @@ export function RegisterRoutes(app) {
2860
3157
  }
2861
3158
  });
2862
3159
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2863
- const argsUserController_getUser = {
3160
+ const argsVdiController_putVdiTag = {
2864
3161
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3162
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2865
3163
  };
2866
- app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
3164
+ app.put('/rest/v0/vdis/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.putVdiTag)), async function VdiController_putVdiTag(request, response, next) {
2867
3165
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2868
3166
  let validatedArgs = [];
2869
3167
  try {
2870
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
3168
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_putVdiTag, request, response });
2871
3169
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2872
- const controller = await container.get(UserController);
3170
+ const controller = await container.get(VdiController);
2873
3171
  if (typeof controller['setStatus'] === 'function') {
2874
3172
  controller.setStatus(undefined);
2875
3173
  }
2876
3174
  await templateService.apiHandler({
2877
- methodName: 'getUser',
3175
+ methodName: 'putVdiTag',
2878
3176
  controller,
2879
3177
  response,
2880
3178
  next,
2881
3179
  validatedArgs,
2882
- successStatus: undefined,
3180
+ successStatus: 204,
2883
3181
  });
2884
3182
  }
2885
3183
  catch (err) {
@@ -2887,22 +3185,22 @@ export function RegisterRoutes(app) {
2887
3185
  }
2888
3186
  });
2889
3187
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2890
- const argsUserController_updateUser = {
3188
+ const argsVdiController_deleteVdiTag = {
2891
3189
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2892
- body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
3190
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2893
3191
  };
2894
- app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
3192
+ app.delete('/rest/v0/vdis/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdiTag)), async function VdiController_deleteVdiTag(request, response, next) {
2895
3193
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2896
3194
  let validatedArgs = [];
2897
3195
  try {
2898
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
3196
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdiTag, request, response });
2899
3197
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2900
- const controller = await container.get(UserController);
3198
+ const controller = await container.get(VdiController);
2901
3199
  if (typeof controller['setStatus'] === 'function') {
2902
3200
  controller.setStatus(undefined);
2903
3201
  }
2904
3202
  await templateService.apiHandler({
2905
- methodName: 'updateUser',
3203
+ methodName: 'deleteVdiTag',
2906
3204
  controller,
2907
3205
  response,
2908
3206
  next,
@@ -2915,26 +3213,30 @@ export function RegisterRoutes(app) {
2915
3213
  }
2916
3214
  });
2917
3215
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2918
- const argsUserController_createUser = {
2919
- body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
3216
+ const argsVdiSnapshotController_getVdiSnapshots = {
3217
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3218
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3219
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3220
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3221
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2920
3222
  };
2921
- app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
3223
+ app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
2922
3224
  // WARNING: This 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
3225
  let validatedArgs = [];
2924
3226
  try {
2925
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
3227
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
2926
3228
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2927
- const controller = await container.get(UserController);
3229
+ const controller = await container.get(VdiSnapshotController);
2928
3230
  if (typeof controller['setStatus'] === 'function') {
2929
3231
  controller.setStatus(undefined);
2930
3232
  }
2931
3233
  await templateService.apiHandler({
2932
- methodName: 'createUser',
3234
+ methodName: 'getVdiSnapshots',
2933
3235
  controller,
2934
3236
  response,
2935
3237
  next,
2936
3238
  validatedArgs,
2937
- successStatus: 201,
3239
+ successStatus: undefined,
2938
3240
  });
2939
3241
  }
2940
3242
  catch (err) {
@@ -2942,26 +3244,28 @@ export function RegisterRoutes(app) {
2942
3244
  }
2943
3245
  });
2944
3246
  // WARNING: This 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 argsUserController_deleteUser = {
2946
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3247
+ const argsVdiSnapshotController_exportVdiSnapshotContent = {
3248
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3249
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3250
+ format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
2947
3251
  };
2948
- app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
3252
+ app.get('/rest/v0/vdi-snapshots/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.exportVdiSnapshotContent)), async function VdiSnapshotController_exportVdiSnapshotContent(request, response, next) {
2949
3253
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2950
3254
  let validatedArgs = [];
2951
3255
  try {
2952
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
3256
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_exportVdiSnapshotContent, request, response });
2953
3257
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2954
- const controller = await container.get(UserController);
3258
+ const controller = await container.get(VdiSnapshotController);
2955
3259
  if (typeof controller['setStatus'] === 'function') {
2956
3260
  controller.setStatus(undefined);
2957
3261
  }
2958
3262
  await templateService.apiHandler({
2959
- methodName: 'deleteUser',
3263
+ methodName: 'exportVdiSnapshotContent',
2960
3264
  controller,
2961
3265
  response,
2962
3266
  next,
2963
3267
  validatedArgs,
2964
- successStatus: 204,
3268
+ successStatus: 200,
2965
3269
  });
2966
3270
  }
2967
3271
  catch (err) {
@@ -2969,26 +3273,21 @@ export function RegisterRoutes(app) {
2969
3273
  }
2970
3274
  });
2971
3275
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2972
- const argsUserController_getUserGroups = {
2973
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3276
+ const argsVdiSnapshotController_getVdiSnapshot = {
2974
3277
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2975
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2976
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2977
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2978
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2979
3278
  };
2980
- app.get('/rest/v0/users/:id/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserGroups)), async function UserController_getUserGroups(request, response, next) {
3279
+ app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
2981
3280
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2982
3281
  let validatedArgs = [];
2983
3282
  try {
2984
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserGroups, request, response });
3283
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
2985
3284
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2986
- const controller = await container.get(UserController);
3285
+ const controller = await container.get(VdiSnapshotController);
2987
3286
  if (typeof controller['setStatus'] === 'function') {
2988
3287
  controller.setStatus(undefined);
2989
3288
  }
2990
3289
  await templateService.apiHandler({
2991
- methodName: 'getUserGroups',
3290
+ methodName: 'getVdiSnapshot',
2992
3291
  controller,
2993
3292
  response,
2994
3293
  next,
@@ -3001,24 +3300,26 @@ export function RegisterRoutes(app) {
3001
3300
  }
3002
3301
  });
3003
3302
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3004
- const argsUserController_getAuthenticationTokens = {
3303
+ const argsVdiSnapshotController_getVdiSnapshotAlarms = {
3005
3304
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3006
3305
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3306
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3307
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3007
3308
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3008
3309
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3009
3310
  };
3010
- app.get('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getAuthenticationTokens)), async function UserController_getAuthenticationTokens(request, response, next) {
3311
+ app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
3011
3312
  // WARNING: This 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
3313
  let validatedArgs = [];
3013
3314
  try {
3014
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAuthenticationTokens, request, response });
3315
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
3015
3316
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3016
- const controller = await container.get(UserController);
3317
+ const controller = await container.get(VdiSnapshotController);
3017
3318
  if (typeof controller['setStatus'] === 'function') {
3018
3319
  controller.setStatus(undefined);
3019
3320
  }
3020
3321
  await templateService.apiHandler({
3021
- methodName: 'getAuthenticationTokens',
3322
+ methodName: 'getVdiSnapshotAlarms',
3022
3323
  controller,
3023
3324
  response,
3024
3325
  next,
@@ -3031,31 +3332,26 @@ export function RegisterRoutes(app) {
3031
3332
  }
3032
3333
  });
3033
3334
  // WARNING: This 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 argsTaskController_getTasks = {
3035
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3036
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3037
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3038
- watch: { "in": "query", "name": "watch", "dataType": "boolean" },
3039
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3040
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3335
+ const argsVdiSnapshotController_deleteVdiSnapshot = {
3336
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3041
3337
  };
3042
- app.get('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTasks)), async function TaskController_getTasks(request, response, next) {
3338
+ app.delete('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshot)), async function VdiSnapshotController_deleteVdiSnapshot(request, response, next) {
3043
3339
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3044
3340
  let validatedArgs = [];
3045
3341
  try {
3046
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTasks, request, response });
3342
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshot, request, response });
3047
3343
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3048
- const controller = await container.get(TaskController);
3344
+ const controller = await container.get(VdiSnapshotController);
3049
3345
  if (typeof controller['setStatus'] === 'function') {
3050
3346
  controller.setStatus(undefined);
3051
3347
  }
3052
3348
  await templateService.apiHandler({
3053
- methodName: 'getTasks',
3349
+ methodName: 'deleteVdiSnapshot',
3054
3350
  controller,
3055
3351
  response,
3056
3352
  next,
3057
3353
  validatedArgs,
3058
- successStatus: undefined,
3354
+ successStatus: 204,
3059
3355
  });
3060
3356
  }
3061
3357
  catch (err) {
@@ -3063,23 +3359,26 @@ export function RegisterRoutes(app) {
3063
3359
  }
3064
3360
  });
3065
3361
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3066
- const argsTaskController_getTask = {
3362
+ const argsVdiSnapshotController_getVdiSnapshotMessages = {
3067
3363
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3068
3364
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3069
- wait: { "in": "query", "name": "wait", "dataType": "boolean" },
3365
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3366
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3367
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3368
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3070
3369
  };
3071
- app.get('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTask)), async function TaskController_getTask(request, response, next) {
3370
+ app.get('/rest/v0/vdi-snapshots/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotMessages)), async function VdiSnapshotController_getVdiSnapshotMessages(request, response, next) {
3072
3371
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3073
3372
  let validatedArgs = [];
3074
3373
  try {
3075
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
3374
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotMessages, request, response });
3076
3375
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3077
- const controller = await container.get(TaskController);
3376
+ const controller = await container.get(VdiSnapshotController);
3078
3377
  if (typeof controller['setStatus'] === 'function') {
3079
3378
  controller.setStatus(undefined);
3080
3379
  }
3081
3380
  await templateService.apiHandler({
3082
- methodName: 'getTask',
3381
+ methodName: 'getVdiSnapshotMessages',
3083
3382
  controller,
3084
3383
  response,
3085
3384
  next,
@@ -3092,24 +3391,31 @@ export function RegisterRoutes(app) {
3092
3391
  }
3093
3392
  });
3094
3393
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3095
- const argsTaskController_deleteTasks = {};
3096
- app.delete('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTasks)), async function TaskController_deleteTasks(request, response, next) {
3394
+ const argsVdiSnapshotController_getVdiSnapshotTasks = {
3395
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3396
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3397
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3398
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3399
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3400
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3401
+ };
3402
+ app.get('/rest/v0/vdi-snapshots/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotTasks)), async function VdiSnapshotController_getVdiSnapshotTasks(request, response, next) {
3097
3403
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3098
3404
  let validatedArgs = [];
3099
3405
  try {
3100
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTasks, request, response });
3406
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotTasks, request, response });
3101
3407
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3102
- const controller = await container.get(TaskController);
3408
+ const controller = await container.get(VdiSnapshotController);
3103
3409
  if (typeof controller['setStatus'] === 'function') {
3104
3410
  controller.setStatus(undefined);
3105
3411
  }
3106
3412
  await templateService.apiHandler({
3107
- methodName: 'deleteTasks',
3413
+ methodName: 'getVdiSnapshotTasks',
3108
3414
  controller,
3109
3415
  response,
3110
3416
  next,
3111
3417
  validatedArgs,
3112
- successStatus: 204,
3418
+ successStatus: undefined,
3113
3419
  });
3114
3420
  }
3115
3421
  catch (err) {
@@ -3117,21 +3423,22 @@ export function RegisterRoutes(app) {
3117
3423
  }
3118
3424
  });
3119
3425
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3120
- const argsTaskController_deleteTask = {
3426
+ const argsVdiSnapshotController_putVdiSnapshotTag = {
3121
3427
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3428
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
3122
3429
  };
3123
- app.delete('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTask)), async function TaskController_deleteTask(request, response, next) {
3430
+ app.put('/rest/v0/vdi-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.putVdiSnapshotTag)), async function VdiSnapshotController_putVdiSnapshotTag(request, response, next) {
3124
3431
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3125
3432
  let validatedArgs = [];
3126
3433
  try {
3127
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTask, request, response });
3434
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_putVdiSnapshotTag, request, response });
3128
3435
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3129
- const controller = await container.get(TaskController);
3436
+ const controller = await container.get(VdiSnapshotController);
3130
3437
  if (typeof controller['setStatus'] === 'function') {
3131
3438
  controller.setStatus(undefined);
3132
3439
  }
3133
3440
  await templateService.apiHandler({
3134
- methodName: 'deleteTask',
3441
+ methodName: 'putVdiSnapshotTag',
3135
3442
  controller,
3136
3443
  response,
3137
3444
  next,
@@ -3144,27 +3451,27 @@ export function RegisterRoutes(app) {
3144
3451
  }
3145
3452
  });
3146
3453
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3147
- const argsTaskController_abortTask = {
3454
+ const argsVdiSnapshotController_deleteVdiSnapshotTag = {
3148
3455
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3149
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3456
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
3150
3457
  };
3151
- app.post('/rest/v0/tasks/:id/actions/abort', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.abortTask)), async function TaskController_abortTask(request, response, next) {
3458
+ app.delete('/rest/v0/vdi-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshotTag)), async function VdiSnapshotController_deleteVdiSnapshotTag(request, response, next) {
3152
3459
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3153
3460
  let validatedArgs = [];
3154
3461
  try {
3155
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_abortTask, request, response });
3462
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshotTag, request, response });
3156
3463
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3157
- const controller = await container.get(TaskController);
3464
+ const controller = await container.get(VdiSnapshotController);
3158
3465
  if (typeof controller['setStatus'] === 'function') {
3159
3466
  controller.setStatus(undefined);
3160
3467
  }
3161
3468
  await templateService.apiHandler({
3162
- methodName: 'abortTask',
3469
+ methodName: 'deleteVdiSnapshotTag',
3163
3470
  controller,
3164
3471
  response,
3165
3472
  next,
3166
3473
  validatedArgs,
3167
- successStatus: 202,
3474
+ successStatus: 204,
3168
3475
  });
3169
3476
  }
3170
3477
  catch (err) {
@@ -3172,25 +3479,25 @@ export function RegisterRoutes(app) {
3172
3479
  }
3173
3480
  });
3174
3481
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3175
- const argsSrController_getSrs = {
3482
+ const argsVbdController_getVbds = {
3176
3483
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3177
3484
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3178
3485
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3179
3486
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3180
3487
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3181
3488
  };
3182
- app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
3489
+ app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
3183
3490
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3184
3491
  let validatedArgs = [];
3185
3492
  try {
3186
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
3493
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
3187
3494
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3188
- const controller = await container.get(SrController);
3495
+ const controller = await container.get(VbdController);
3189
3496
  if (typeof controller['setStatus'] === 'function') {
3190
3497
  controller.setStatus(undefined);
3191
3498
  }
3192
3499
  await templateService.apiHandler({
3193
- methodName: 'getSrs',
3500
+ methodName: 'getVbds',
3194
3501
  controller,
3195
3502
  response,
3196
3503
  next,
@@ -3203,21 +3510,21 @@ export function RegisterRoutes(app) {
3203
3510
  }
3204
3511
  });
3205
3512
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3206
- const argsSrController_getSr = {
3513
+ const argsVbdController_getVbd = {
3207
3514
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3208
3515
  };
3209
- app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
3516
+ app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
3210
3517
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3211
3518
  let validatedArgs = [];
3212
3519
  try {
3213
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
3520
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
3214
3521
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3215
- const controller = await container.get(SrController);
3522
+ const controller = await container.get(VbdController);
3216
3523
  if (typeof controller['setStatus'] === 'function') {
3217
3524
  controller.setStatus(undefined);
3218
3525
  }
3219
3526
  await templateService.apiHandler({
3220
- methodName: 'getSr',
3527
+ methodName: 'getVbd',
3221
3528
  controller,
3222
3529
  response,
3223
3530
  next,
@@ -3230,7 +3537,7 @@ export function RegisterRoutes(app) {
3230
3537
  }
3231
3538
  });
3232
3539
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3233
- const argsSrController_getSrAlarms = {
3540
+ const argsVbdController_getVbdAlarms = {
3234
3541
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3235
3542
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3236
3543
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -3238,18 +3545,18 @@ export function RegisterRoutes(app) {
3238
3545
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3239
3546
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3240
3547
  };
3241
- app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
3548
+ app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
3242
3549
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3243
3550
  let validatedArgs = [];
3244
3551
  try {
3245
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
3552
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
3246
3553
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3247
- const controller = await container.get(SrController);
3554
+ const controller = await container.get(VbdController);
3248
3555
  if (typeof controller['setStatus'] === 'function') {
3249
3556
  controller.setStatus(undefined);
3250
3557
  }
3251
3558
  await templateService.apiHandler({
3252
- methodName: 'getSrAlarms',
3559
+ methodName: 'getVbdAlarms',
3253
3560
  controller,
3254
3561
  response,
3255
3562
  next,
@@ -3262,30 +3569,31 @@ export function RegisterRoutes(app) {
3262
3569
  }
3263
3570
  });
3264
3571
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3265
- const argsSrController_srImportVdi = {
3572
+ const argsVbdController_getVbdMessages = {
3266
3573
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3267
3574
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3268
- name_label: { "in": "query", "name": "name_label", "dataType": "string" },
3269
- name_description: { "in": "query", "name": "name_description", "dataType": "string" },
3270
- raw: { "in": "query", "name": "raw", "dataType": "boolean" },
3575
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3576
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3577
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3578
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3271
3579
  };
3272
- app.post('/rest/v0/srs/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.srImportVdi)), async function SrController_srImportVdi(request, response, next) {
3580
+ app.get('/rest/v0/vbds/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdMessages)), async function VbdController_getVbdMessages(request, response, next) {
3273
3581
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3274
3582
  let validatedArgs = [];
3275
3583
  try {
3276
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_srImportVdi, request, response });
3584
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdMessages, request, response });
3277
3585
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3278
- const controller = await container.get(SrController);
3586
+ const controller = await container.get(VbdController);
3279
3587
  if (typeof controller['setStatus'] === 'function') {
3280
3588
  controller.setStatus(undefined);
3281
3589
  }
3282
3590
  await templateService.apiHandler({
3283
- methodName: 'srImportVdi',
3591
+ methodName: 'getVbdMessages',
3284
3592
  controller,
3285
3593
  response,
3286
3594
  next,
3287
3595
  validatedArgs,
3288
- successStatus: 201,
3596
+ successStatus: undefined,
3289
3597
  });
3290
3598
  }
3291
3599
  catch (err) {
@@ -3293,7 +3601,7 @@ export function RegisterRoutes(app) {
3293
3601
  }
3294
3602
  });
3295
3603
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3296
- const argsSrController_getSrMessages = {
3604
+ const argsVbdController_getVbdTasks = {
3297
3605
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3298
3606
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3299
3607
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -3301,18 +3609,18 @@ export function RegisterRoutes(app) {
3301
3609
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3302
3610
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3303
3611
  };
3304
- app.get('/rest/v0/srs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrMessages)), async function SrController_getSrMessages(request, response, next) {
3612
+ app.get('/rest/v0/vbds/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdTasks)), async function VbdController_getVbdTasks(request, response, next) {
3305
3613
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3306
3614
  let validatedArgs = [];
3307
3615
  try {
3308
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrMessages, request, response });
3616
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdTasks, request, response });
3309
3617
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3310
- const controller = await container.get(SrController);
3618
+ const controller = await container.get(VbdController);
3311
3619
  if (typeof controller['setStatus'] === 'function') {
3312
3620
  controller.setStatus(undefined);
3313
3621
  }
3314
3622
  await templateService.apiHandler({
3315
- methodName: 'getSrMessages',
3623
+ methodName: 'getVbdTasks',
3316
3624
  controller,
3317
3625
  response,
3318
3626
  next,
@@ -3325,25 +3633,25 @@ export function RegisterRoutes(app) {
3325
3633
  }
3326
3634
  });
3327
3635
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3328
- const argsSmController_getSrs = {
3636
+ const argsUserController_getUsers = {
3329
3637
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3330
3638
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3331
3639
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3332
3640
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3333
3641
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3334
3642
  };
3335
- app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
3643
+ app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
3336
3644
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3337
3645
  let validatedArgs = [];
3338
3646
  try {
3339
- validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
3647
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
3340
3648
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3341
- const controller = await container.get(SmController);
3649
+ const controller = await container.get(UserController);
3342
3650
  if (typeof controller['setStatus'] === 'function') {
3343
3651
  controller.setStatus(undefined);
3344
3652
  }
3345
3653
  await templateService.apiHandler({
3346
- methodName: 'getSrs',
3654
+ methodName: 'getUsers',
3347
3655
  controller,
3348
3656
  response,
3349
3657
  next,
@@ -3356,21 +3664,21 @@ export function RegisterRoutes(app) {
3356
3664
  }
3357
3665
  });
3358
3666
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3359
- const argsSmController_getSr = {
3667
+ const argsUserController_getUser = {
3360
3668
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3361
3669
  };
3362
- app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
3670
+ app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
3363
3671
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3364
3672
  let validatedArgs = [];
3365
3673
  try {
3366
- validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
3674
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
3367
3675
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3368
- const controller = await container.get(SmController);
3676
+ const controller = await container.get(UserController);
3369
3677
  if (typeof controller['setStatus'] === 'function') {
3370
3678
  controller.setStatus(undefined);
3371
3679
  }
3372
3680
  await templateService.apiHandler({
3373
- methodName: 'getSr',
3681
+ methodName: 'getUser',
3374
3682
  controller,
3375
3683
  response,
3376
3684
  next,
@@ -3383,30 +3691,27 @@ export function RegisterRoutes(app) {
3383
3691
  }
3384
3692
  });
3385
3693
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3386
- const argsServerController_getServers = {
3387
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3388
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3389
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3390
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3391
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3694
+ const argsUserController_updateUser = {
3695
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3696
+ body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
3392
3697
  };
3393
- app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
3698
+ app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
3394
3699
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3395
3700
  let validatedArgs = [];
3396
3701
  try {
3397
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
3702
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
3398
3703
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3399
- const controller = await container.get(ServerController);
3704
+ const controller = await container.get(UserController);
3400
3705
  if (typeof controller['setStatus'] === 'function') {
3401
3706
  controller.setStatus(undefined);
3402
3707
  }
3403
3708
  await templateService.apiHandler({
3404
- methodName: 'getServers',
3709
+ methodName: 'updateUser',
3405
3710
  controller,
3406
3711
  response,
3407
3712
  next,
3408
3713
  validatedArgs,
3409
- successStatus: undefined,
3714
+ successStatus: 204,
3410
3715
  });
3411
3716
  }
3412
3717
  catch (err) {
@@ -3414,26 +3719,26 @@ export function RegisterRoutes(app) {
3414
3719
  }
3415
3720
  });
3416
3721
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3417
- const argsServerController_getServer = {
3418
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3722
+ const argsUserController_createUser = {
3723
+ body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
3419
3724
  };
3420
- app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
3725
+ app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
3421
3726
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3422
3727
  let validatedArgs = [];
3423
3728
  try {
3424
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
3729
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
3425
3730
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3426
- const controller = await container.get(ServerController);
3731
+ const controller = await container.get(UserController);
3427
3732
  if (typeof controller['setStatus'] === 'function') {
3428
3733
  controller.setStatus(undefined);
3429
3734
  }
3430
3735
  await templateService.apiHandler({
3431
- methodName: 'getServer',
3736
+ methodName: 'createUser',
3432
3737
  controller,
3433
3738
  response,
3434
3739
  next,
3435
3740
  validatedArgs,
3436
- successStatus: undefined,
3741
+ successStatus: 201,
3437
3742
  });
3438
3743
  }
3439
3744
  catch (err) {
@@ -3441,21 +3746,21 @@ export function RegisterRoutes(app) {
3441
3746
  }
3442
3747
  });
3443
3748
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3444
- const argsServerController_deleteServer = {
3749
+ const argsUserController_deleteUser = {
3445
3750
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3446
3751
  };
3447
- app.delete('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.deleteServer)), async function ServerController_deleteServer(request, response, next) {
3752
+ app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
3448
3753
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3449
3754
  let validatedArgs = [];
3450
3755
  try {
3451
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_deleteServer, request, response });
3756
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
3452
3757
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3453
- const controller = await container.get(ServerController);
3758
+ const controller = await container.get(UserController);
3454
3759
  if (typeof controller['setStatus'] === 'function') {
3455
3760
  controller.setStatus(undefined);
3456
3761
  }
3457
3762
  await templateService.apiHandler({
3458
- methodName: 'deleteServer',
3763
+ methodName: 'deleteUser',
3459
3764
  controller,
3460
3765
  response,
3461
3766
  next,
@@ -3468,26 +3773,31 @@ export function RegisterRoutes(app) {
3468
3773
  }
3469
3774
  });
3470
3775
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3471
- const argsServerController_addServer = {
3472
- body: { "in": "body", "name": "body", "required": true, "ref": "InsertableXoServer" },
3776
+ const argsUserController_getUserGroups = {
3777
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3778
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3779
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3780
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3781
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3782
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3473
3783
  };
3474
- app.post('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.addServer)), async function ServerController_addServer(request, response, next) {
3784
+ app.get('/rest/v0/users/:id/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserGroups)), async function UserController_getUserGroups(request, response, next) {
3475
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
3476
3786
  let validatedArgs = [];
3477
3787
  try {
3478
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_addServer, request, response });
3788
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserGroups, request, response });
3479
3789
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3480
- const controller = await container.get(ServerController);
3790
+ const controller = await container.get(UserController);
3481
3791
  if (typeof controller['setStatus'] === 'function') {
3482
3792
  controller.setStatus(undefined);
3483
3793
  }
3484
3794
  await templateService.apiHandler({
3485
- methodName: 'addServer',
3795
+ methodName: 'getUserGroups',
3486
3796
  controller,
3487
3797
  response,
3488
3798
  next,
3489
3799
  validatedArgs,
3490
- successStatus: 201,
3800
+ successStatus: undefined,
3491
3801
  });
3492
3802
  }
3493
3803
  catch (err) {
@@ -3495,27 +3805,29 @@ export function RegisterRoutes(app) {
3495
3805
  }
3496
3806
  });
3497
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
3498
- const argsServerController_connectServer = {
3808
+ const argsUserController_getAuthenticationTokens = {
3809
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3499
3810
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3500
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3811
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3812
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3501
3813
  };
3502
- app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
3814
+ app.get('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getAuthenticationTokens)), async function UserController_getAuthenticationTokens(request, response, next) {
3503
3815
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3504
3816
  let validatedArgs = [];
3505
3817
  try {
3506
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_connectServer, request, response });
3818
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAuthenticationTokens, request, response });
3507
3819
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3508
- const controller = await container.get(ServerController);
3820
+ const controller = await container.get(UserController);
3509
3821
  if (typeof controller['setStatus'] === 'function') {
3510
3822
  controller.setStatus(undefined);
3511
3823
  }
3512
3824
  await templateService.apiHandler({
3513
- methodName: 'connectServer',
3825
+ methodName: 'getAuthenticationTokens',
3514
3826
  controller,
3515
3827
  response,
3516
3828
  next,
3517
3829
  validatedArgs,
3518
- successStatus: 202,
3830
+ successStatus: undefined,
3519
3831
  });
3520
3832
  }
3521
3833
  catch (err) {
@@ -3523,27 +3835,31 @@ export function RegisterRoutes(app) {
3523
3835
  }
3524
3836
  });
3525
3837
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3526
- const argsServerController_disconnectServer = {
3838
+ const argsUserController_getUserTasks = {
3839
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3527
3840
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3528
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3841
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3842
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3843
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3844
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3529
3845
  };
3530
- app.post('/rest/v0/servers/:id/actions/disconnect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.disconnectServer)), async function ServerController_disconnectServer(request, response, next) {
3846
+ app.get('/rest/v0/users/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserTasks)), async function UserController_getUserTasks(request, response, next) {
3531
3847
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3532
3848
  let validatedArgs = [];
3533
3849
  try {
3534
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_disconnectServer, request, response });
3850
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserTasks, request, response });
3535
3851
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3536
- const controller = await container.get(ServerController);
3852
+ const controller = await container.get(UserController);
3537
3853
  if (typeof controller['setStatus'] === 'function') {
3538
3854
  controller.setStatus(undefined);
3539
3855
  }
3540
3856
  await templateService.apiHandler({
3541
- methodName: 'disconnectServer',
3857
+ methodName: 'getUserTasks',
3542
3858
  controller,
3543
3859
  response,
3544
3860
  next,
3545
3861
  validatedArgs,
3546
- successStatus: 202,
3862
+ successStatus: undefined,
3547
3863
  });
3548
3864
  }
3549
3865
  catch (err) {
@@ -3551,25 +3867,81 @@ export function RegisterRoutes(app) {
3551
3867
  }
3552
3868
  });
3553
3869
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3554
- const argsScheduleController_getSchedules = {
3870
+ const argsUserController_postDeprecatedAuthenticationTokens = {
3871
+ body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "expiresIn": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "double" }] }, "description": { "dataType": "string" }, "client": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string" } } } } },
3872
+ };
3873
+ app.post('/rest/v0/users/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.postDeprecatedAuthenticationTokens)), async function UserController_postDeprecatedAuthenticationTokens(request, response, next) {
3874
+ // WARNING: This 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
+ let validatedArgs = [];
3876
+ try {
3877
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_postDeprecatedAuthenticationTokens, request, response });
3878
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3879
+ const controller = await container.get(UserController);
3880
+ if (typeof controller['setStatus'] === 'function') {
3881
+ controller.setStatus(undefined);
3882
+ }
3883
+ await templateService.apiHandler({
3884
+ methodName: 'postDeprecatedAuthenticationTokens',
3885
+ controller,
3886
+ response,
3887
+ next,
3888
+ validatedArgs,
3889
+ successStatus: 201,
3890
+ });
3891
+ }
3892
+ catch (err) {
3893
+ return next(err);
3894
+ }
3895
+ });
3896
+ // WARNING: This 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 argsUserController_postAuthenticationTokens = {
3898
+ body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "expiresIn": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "double" }] }, "description": { "dataType": "string" }, "client": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "enum", "enums": ["string"] } } } } },
3899
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3900
+ };
3901
+ app.post('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.postAuthenticationTokens)), async function UserController_postAuthenticationTokens(request, response, next) {
3902
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3903
+ let validatedArgs = [];
3904
+ try {
3905
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_postAuthenticationTokens, request, response });
3906
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3907
+ const controller = await container.get(UserController);
3908
+ if (typeof controller['setStatus'] === 'function') {
3909
+ controller.setStatus(undefined);
3910
+ }
3911
+ await templateService.apiHandler({
3912
+ methodName: 'postAuthenticationTokens',
3913
+ controller,
3914
+ response,
3915
+ next,
3916
+ validatedArgs,
3917
+ successStatus: 201,
3918
+ });
3919
+ }
3920
+ catch (err) {
3921
+ return next(err);
3922
+ }
3923
+ });
3924
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3925
+ const argsTaskController_getTasks = {
3555
3926
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3556
3927
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3557
3928
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3929
+ watch: { "in": "query", "name": "watch", "dataType": "boolean" },
3558
3930
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3559
3931
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3560
3932
  };
3561
- app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
3933
+ app.get('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTasks)), async function TaskController_getTasks(request, response, next) {
3562
3934
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3563
3935
  let validatedArgs = [];
3564
3936
  try {
3565
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
3937
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTasks, request, response });
3566
3938
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3567
- const controller = await container.get(ScheduleController);
3939
+ const controller = await container.get(TaskController);
3568
3940
  if (typeof controller['setStatus'] === 'function') {
3569
3941
  controller.setStatus(undefined);
3570
3942
  }
3571
3943
  await templateService.apiHandler({
3572
- methodName: 'getSchedules',
3944
+ methodName: 'getTasks',
3573
3945
  controller,
3574
3946
  response,
3575
3947
  next,
@@ -3582,21 +3954,23 @@ export function RegisterRoutes(app) {
3582
3954
  }
3583
3955
  });
3584
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
3585
- const argsScheduleController_getSchedule = {
3957
+ const argsTaskController_getTask = {
3958
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3586
3959
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3960
+ wait: { "in": "query", "name": "wait", "dataType": "boolean" },
3587
3961
  };
3588
- app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
3962
+ app.get('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTask)), async function TaskController_getTask(request, response, next) {
3589
3963
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3590
3964
  let validatedArgs = [];
3591
3965
  try {
3592
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
3966
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
3593
3967
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3594
- const controller = await container.get(ScheduleController);
3968
+ const controller = await container.get(TaskController);
3595
3969
  if (typeof controller['setStatus'] === 'function') {
3596
3970
  controller.setStatus(undefined);
3597
3971
  }
3598
3972
  await templateService.apiHandler({
3599
- methodName: 'getSchedule',
3973
+ methodName: 'getTask',
3600
3974
  controller,
3601
3975
  response,
3602
3976
  next,
@@ -3609,22 +3983,74 @@ export function RegisterRoutes(app) {
3609
3983
  }
3610
3984
  });
3611
3985
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3612
- const argsScheduleController_runSchedule = {
3986
+ const argsTaskController_deleteTasks = {};
3987
+ app.delete('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTasks)), async function TaskController_deleteTasks(request, response, next) {
3988
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3989
+ let validatedArgs = [];
3990
+ try {
3991
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTasks, request, response });
3992
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3993
+ const controller = await container.get(TaskController);
3994
+ if (typeof controller['setStatus'] === 'function') {
3995
+ controller.setStatus(undefined);
3996
+ }
3997
+ await templateService.apiHandler({
3998
+ methodName: 'deleteTasks',
3999
+ controller,
4000
+ response,
4001
+ next,
4002
+ validatedArgs,
4003
+ successStatus: 204,
4004
+ });
4005
+ }
4006
+ catch (err) {
4007
+ return next(err);
4008
+ }
4009
+ });
4010
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4011
+ const argsTaskController_deleteTask = {
4012
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4013
+ };
4014
+ app.delete('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTask)), async function TaskController_deleteTask(request, response, next) {
4015
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4016
+ let validatedArgs = [];
4017
+ try {
4018
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTask, request, response });
4019
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4020
+ const controller = await container.get(TaskController);
4021
+ if (typeof controller['setStatus'] === 'function') {
4022
+ controller.setStatus(undefined);
4023
+ }
4024
+ await templateService.apiHandler({
4025
+ methodName: 'deleteTask',
4026
+ controller,
4027
+ response,
4028
+ next,
4029
+ validatedArgs,
4030
+ successStatus: 204,
4031
+ });
4032
+ }
4033
+ catch (err) {
4034
+ return next(err);
4035
+ }
4036
+ });
4037
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4038
+ const argsTaskController_abortTask = {
3613
4039
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3614
4040
  sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3615
4041
  };
3616
- app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
4042
+ app.post('/rest/v0/tasks/:id/actions/abort', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.abortTask)), async function TaskController_abortTask(request, response, next) {
3617
4043
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3618
4044
  let validatedArgs = [];
3619
4045
  try {
3620
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
4046
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_abortTask, request, response });
3621
4047
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3622
- const controller = await container.get(ScheduleController);
4048
+ const controller = await container.get(TaskController);
3623
4049
  if (typeof controller['setStatus'] === 'function') {
3624
4050
  controller.setStatus(undefined);
3625
4051
  }
3626
4052
  await templateService.apiHandler({
3627
- methodName: 'runSchedule',
4053
+ methodName: 'abortTask',
3628
4054
  controller,
3629
4055
  response,
3630
4056
  next,
@@ -3637,30 +4063,929 @@ export function RegisterRoutes(app) {
3637
4063
  }
3638
4064
  });
3639
4065
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3640
- const argsRestoreLogController_getRestoreLogs = {
4066
+ const argsSrController_getSrs = {
4067
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4068
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4069
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4070
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4071
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4072
+ };
4073
+ app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
4074
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4075
+ let validatedArgs = [];
4076
+ try {
4077
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
4078
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4079
+ const controller = await container.get(SrController);
4080
+ if (typeof controller['setStatus'] === 'function') {
4081
+ controller.setStatus(undefined);
4082
+ }
4083
+ await templateService.apiHandler({
4084
+ methodName: 'getSrs',
4085
+ controller,
4086
+ response,
4087
+ next,
4088
+ validatedArgs,
4089
+ successStatus: undefined,
4090
+ });
4091
+ }
4092
+ catch (err) {
4093
+ return next(err);
4094
+ }
4095
+ });
4096
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4097
+ const argsSrController_getSr = {
4098
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4099
+ };
4100
+ app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
4101
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4102
+ let validatedArgs = [];
4103
+ try {
4104
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
4105
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4106
+ const controller = await container.get(SrController);
4107
+ if (typeof controller['setStatus'] === 'function') {
4108
+ controller.setStatus(undefined);
4109
+ }
4110
+ await templateService.apiHandler({
4111
+ methodName: 'getSr',
4112
+ controller,
4113
+ response,
4114
+ next,
4115
+ validatedArgs,
4116
+ successStatus: undefined,
4117
+ });
4118
+ }
4119
+ catch (err) {
4120
+ return next(err);
4121
+ }
4122
+ });
4123
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4124
+ const argsSrController_getSrAlarms = {
3641
4125
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4126
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3642
4127
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3643
4128
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3644
4129
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3645
4130
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3646
4131
  };
3647
- app.get('/rest/v0/restore-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLogs)), async function RestoreLogController_getRestoreLogs(request, response, next) {
4132
+ app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
4133
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4134
+ let validatedArgs = [];
4135
+ try {
4136
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
4137
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4138
+ const controller = await container.get(SrController);
4139
+ if (typeof controller['setStatus'] === 'function') {
4140
+ controller.setStatus(undefined);
4141
+ }
4142
+ await templateService.apiHandler({
4143
+ methodName: 'getSrAlarms',
4144
+ controller,
4145
+ response,
4146
+ next,
4147
+ validatedArgs,
4148
+ successStatus: undefined,
4149
+ });
4150
+ }
4151
+ catch (err) {
4152
+ return next(err);
4153
+ }
4154
+ });
4155
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4156
+ const argsSrController_srImportVdi = {
4157
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4158
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4159
+ name_label: { "in": "query", "name": "name_label", "dataType": "string" },
4160
+ name_description: { "in": "query", "name": "name_description", "dataType": "string" },
4161
+ raw: { "in": "query", "name": "raw", "dataType": "boolean" },
4162
+ };
4163
+ app.post('/rest/v0/srs/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.srImportVdi)), async function SrController_srImportVdi(request, response, next) {
4164
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4165
+ let validatedArgs = [];
4166
+ try {
4167
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_srImportVdi, request, response });
4168
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4169
+ const controller = await container.get(SrController);
4170
+ if (typeof controller['setStatus'] === 'function') {
4171
+ controller.setStatus(undefined);
4172
+ }
4173
+ await templateService.apiHandler({
4174
+ methodName: 'srImportVdi',
4175
+ controller,
4176
+ response,
4177
+ next,
4178
+ validatedArgs,
4179
+ successStatus: 201,
4180
+ });
4181
+ }
4182
+ catch (err) {
4183
+ return next(err);
4184
+ }
4185
+ });
4186
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4187
+ const argsSrController_getSrMessages = {
4188
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4189
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4190
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4191
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4192
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4193
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4194
+ };
4195
+ app.get('/rest/v0/srs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrMessages)), async function SrController_getSrMessages(request, response, next) {
4196
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4197
+ let validatedArgs = [];
4198
+ try {
4199
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrMessages, request, response });
4200
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4201
+ const controller = await container.get(SrController);
4202
+ if (typeof controller['setStatus'] === 'function') {
4203
+ controller.setStatus(undefined);
4204
+ }
4205
+ await templateService.apiHandler({
4206
+ methodName: 'getSrMessages',
4207
+ controller,
4208
+ response,
4209
+ next,
4210
+ validatedArgs,
4211
+ successStatus: undefined,
4212
+ });
4213
+ }
4214
+ catch (err) {
4215
+ return next(err);
4216
+ }
4217
+ });
4218
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4219
+ const argsSrController_getSrTasks = {
4220
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4221
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4222
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4223
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4224
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4225
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4226
+ };
4227
+ app.get('/rest/v0/srs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrTasks)), async function SrController_getSrTasks(request, response, next) {
4228
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4229
+ let validatedArgs = [];
4230
+ try {
4231
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrTasks, request, response });
4232
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4233
+ const controller = await container.get(SrController);
4234
+ if (typeof controller['setStatus'] === 'function') {
4235
+ controller.setStatus(undefined);
4236
+ }
4237
+ await templateService.apiHandler({
4238
+ methodName: 'getSrTasks',
4239
+ controller,
4240
+ response,
4241
+ next,
4242
+ validatedArgs,
4243
+ successStatus: undefined,
4244
+ });
4245
+ }
4246
+ catch (err) {
4247
+ return next(err);
4248
+ }
4249
+ });
4250
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4251
+ const argsSrController_putSrTag = {
4252
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4253
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
4254
+ };
4255
+ app.put('/rest/v0/srs/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.putSrTag)), async function SrController_putSrTag(request, response, next) {
4256
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4257
+ let validatedArgs = [];
4258
+ try {
4259
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_putSrTag, request, response });
4260
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4261
+ const controller = await container.get(SrController);
4262
+ if (typeof controller['setStatus'] === 'function') {
4263
+ controller.setStatus(undefined);
4264
+ }
4265
+ await templateService.apiHandler({
4266
+ methodName: 'putSrTag',
4267
+ controller,
4268
+ response,
4269
+ next,
4270
+ validatedArgs,
4271
+ successStatus: 204,
4272
+ });
4273
+ }
4274
+ catch (err) {
4275
+ return next(err);
4276
+ }
4277
+ });
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
+ const argsSrController_deleteSrTag = {
4280
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4281
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
4282
+ };
4283
+ app.delete('/rest/v0/srs/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.deleteSrTag)), async function SrController_deleteSrTag(request, response, next) {
4284
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4285
+ let validatedArgs = [];
4286
+ try {
4287
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_deleteSrTag, request, response });
4288
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4289
+ const controller = await container.get(SrController);
4290
+ if (typeof controller['setStatus'] === 'function') {
4291
+ controller.setStatus(undefined);
4292
+ }
4293
+ await templateService.apiHandler({
4294
+ methodName: 'deleteSrTag',
4295
+ controller,
4296
+ response,
4297
+ next,
4298
+ validatedArgs,
4299
+ successStatus: 204,
4300
+ });
4301
+ }
4302
+ catch (err) {
4303
+ return next(err);
4304
+ }
4305
+ });
4306
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4307
+ const argsSmController_getSrs = {
4308
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4309
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4310
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4311
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4312
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4313
+ };
4314
+ app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
4315
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4316
+ let validatedArgs = [];
4317
+ try {
4318
+ validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
4319
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4320
+ const controller = await container.get(SmController);
4321
+ if (typeof controller['setStatus'] === 'function') {
4322
+ controller.setStatus(undefined);
4323
+ }
4324
+ await templateService.apiHandler({
4325
+ methodName: 'getSrs',
4326
+ controller,
4327
+ response,
4328
+ next,
4329
+ validatedArgs,
4330
+ successStatus: undefined,
4331
+ });
4332
+ }
4333
+ catch (err) {
4334
+ return next(err);
4335
+ }
4336
+ });
4337
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4338
+ const argsSmController_getSr = {
4339
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4340
+ };
4341
+ app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
4342
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4343
+ let validatedArgs = [];
4344
+ try {
4345
+ validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
4346
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4347
+ const controller = await container.get(SmController);
4348
+ if (typeof controller['setStatus'] === 'function') {
4349
+ controller.setStatus(undefined);
4350
+ }
4351
+ await templateService.apiHandler({
4352
+ methodName: 'getSr',
4353
+ controller,
4354
+ response,
4355
+ next,
4356
+ validatedArgs,
4357
+ successStatus: undefined,
4358
+ });
4359
+ }
4360
+ catch (err) {
4361
+ return next(err);
4362
+ }
4363
+ });
4364
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4365
+ const argsServerController_getServers = {
4366
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4367
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4368
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4369
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4370
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4371
+ };
4372
+ app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
4373
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4374
+ let validatedArgs = [];
4375
+ try {
4376
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
4377
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4378
+ const controller = await container.get(ServerController);
4379
+ if (typeof controller['setStatus'] === 'function') {
4380
+ controller.setStatus(undefined);
4381
+ }
4382
+ await templateService.apiHandler({
4383
+ methodName: 'getServers',
4384
+ controller,
4385
+ response,
4386
+ next,
4387
+ validatedArgs,
4388
+ successStatus: undefined,
4389
+ });
4390
+ }
4391
+ catch (err) {
4392
+ return next(err);
4393
+ }
4394
+ });
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
+ const argsServerController_getServer = {
4397
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4398
+ };
4399
+ app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
4400
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4401
+ let validatedArgs = [];
4402
+ try {
4403
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
4404
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4405
+ const controller = await container.get(ServerController);
4406
+ if (typeof controller['setStatus'] === 'function') {
4407
+ controller.setStatus(undefined);
4408
+ }
4409
+ await templateService.apiHandler({
4410
+ methodName: 'getServer',
4411
+ controller,
4412
+ response,
4413
+ next,
4414
+ validatedArgs,
4415
+ successStatus: undefined,
4416
+ });
4417
+ }
4418
+ catch (err) {
4419
+ return next(err);
4420
+ }
4421
+ });
4422
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4423
+ const argsServerController_deleteServer = {
4424
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4425
+ };
4426
+ app.delete('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.deleteServer)), async function ServerController_deleteServer(request, response, next) {
4427
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4428
+ let validatedArgs = [];
4429
+ try {
4430
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_deleteServer, request, response });
4431
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4432
+ const controller = await container.get(ServerController);
4433
+ if (typeof controller['setStatus'] === 'function') {
4434
+ controller.setStatus(undefined);
4435
+ }
4436
+ await templateService.apiHandler({
4437
+ methodName: 'deleteServer',
4438
+ controller,
4439
+ response,
4440
+ next,
4441
+ validatedArgs,
4442
+ successStatus: 204,
4443
+ });
4444
+ }
4445
+ catch (err) {
4446
+ return next(err);
4447
+ }
4448
+ });
4449
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4450
+ const argsServerController_addServer = {
4451
+ body: { "in": "body", "name": "body", "required": true, "ref": "InsertableXoServer" },
4452
+ };
4453
+ app.post('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.addServer)), async function ServerController_addServer(request, response, next) {
4454
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4455
+ let validatedArgs = [];
4456
+ try {
4457
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_addServer, request, response });
4458
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4459
+ const controller = await container.get(ServerController);
4460
+ if (typeof controller['setStatus'] === 'function') {
4461
+ controller.setStatus(undefined);
4462
+ }
4463
+ await templateService.apiHandler({
4464
+ methodName: 'addServer',
4465
+ controller,
4466
+ response,
4467
+ next,
4468
+ validatedArgs,
4469
+ successStatus: 201,
4470
+ });
4471
+ }
4472
+ catch (err) {
4473
+ return next(err);
4474
+ }
4475
+ });
4476
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4477
+ const argsServerController_connectServer = {
4478
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4479
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4480
+ };
4481
+ app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
4482
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4483
+ let validatedArgs = [];
4484
+ try {
4485
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_connectServer, request, response });
4486
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4487
+ const controller = await container.get(ServerController);
4488
+ if (typeof controller['setStatus'] === 'function') {
4489
+ controller.setStatus(undefined);
4490
+ }
4491
+ await templateService.apiHandler({
4492
+ methodName: 'connectServer',
4493
+ controller,
4494
+ response,
4495
+ next,
4496
+ validatedArgs,
4497
+ successStatus: 202,
4498
+ });
4499
+ }
4500
+ catch (err) {
4501
+ return next(err);
4502
+ }
4503
+ });
4504
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4505
+ const argsServerController_disconnectServer = {
4506
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4507
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4508
+ };
4509
+ app.post('/rest/v0/servers/:id/actions/disconnect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.disconnectServer)), async function ServerController_disconnectServer(request, response, next) {
4510
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4511
+ let validatedArgs = [];
4512
+ try {
4513
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_disconnectServer, request, response });
4514
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4515
+ const controller = await container.get(ServerController);
4516
+ if (typeof controller['setStatus'] === 'function') {
4517
+ controller.setStatus(undefined);
4518
+ }
4519
+ await templateService.apiHandler({
4520
+ methodName: 'disconnectServer',
4521
+ controller,
4522
+ response,
4523
+ next,
4524
+ validatedArgs,
4525
+ successStatus: 202,
4526
+ });
4527
+ }
4528
+ catch (err) {
4529
+ return next(err);
4530
+ }
4531
+ });
4532
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4533
+ const argsServerController_getServerTasks = {
4534
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4535
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4536
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4537
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4538
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4539
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4540
+ };
4541
+ app.get('/rest/v0/servers/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServerTasks)), async function ServerController_getServerTasks(request, response, next) {
4542
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4543
+ let validatedArgs = [];
4544
+ try {
4545
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServerTasks, request, response });
4546
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4547
+ const controller = await container.get(ServerController);
4548
+ if (typeof controller['setStatus'] === 'function') {
4549
+ controller.setStatus(undefined);
4550
+ }
4551
+ await templateService.apiHandler({
4552
+ methodName: 'getServerTasks',
4553
+ controller,
4554
+ response,
4555
+ next,
4556
+ validatedArgs,
4557
+ successStatus: undefined,
4558
+ });
4559
+ }
4560
+ catch (err) {
4561
+ return next(err);
4562
+ }
4563
+ });
4564
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4565
+ const argsScheduleController_getSchedules = {
4566
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4567
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4568
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4569
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4570
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4571
+ };
4572
+ app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
4573
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4574
+ let validatedArgs = [];
4575
+ try {
4576
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
4577
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4578
+ const controller = await container.get(ScheduleController);
4579
+ if (typeof controller['setStatus'] === 'function') {
4580
+ controller.setStatus(undefined);
4581
+ }
4582
+ await templateService.apiHandler({
4583
+ methodName: 'getSchedules',
4584
+ controller,
4585
+ response,
4586
+ next,
4587
+ validatedArgs,
4588
+ successStatus: undefined,
4589
+ });
4590
+ }
4591
+ catch (err) {
4592
+ return next(err);
4593
+ }
4594
+ });
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
+ const argsScheduleController_getSchedule = {
4597
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4598
+ };
4599
+ app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
4600
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4601
+ let validatedArgs = [];
4602
+ try {
4603
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
4604
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4605
+ const controller = await container.get(ScheduleController);
4606
+ if (typeof controller['setStatus'] === 'function') {
4607
+ controller.setStatus(undefined);
4608
+ }
4609
+ await templateService.apiHandler({
4610
+ methodName: 'getSchedule',
4611
+ controller,
4612
+ response,
4613
+ next,
4614
+ validatedArgs,
4615
+ successStatus: undefined,
4616
+ });
4617
+ }
4618
+ catch (err) {
4619
+ return next(err);
4620
+ }
4621
+ });
4622
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4623
+ const argsScheduleController_runSchedule = {
4624
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4625
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4626
+ };
4627
+ app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
4628
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4629
+ let validatedArgs = [];
4630
+ try {
4631
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
4632
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4633
+ const controller = await container.get(ScheduleController);
4634
+ if (typeof controller['setStatus'] === 'function') {
4635
+ controller.setStatus(undefined);
4636
+ }
4637
+ await templateService.apiHandler({
4638
+ methodName: 'runSchedule',
4639
+ controller,
4640
+ response,
4641
+ next,
4642
+ validatedArgs,
4643
+ successStatus: 202,
4644
+ });
4645
+ }
4646
+ catch (err) {
4647
+ return next(err);
4648
+ }
4649
+ });
4650
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4651
+ const argsRestoreLogController_getRestoreLogs = {
4652
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4653
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4654
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4655
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4656
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4657
+ };
4658
+ app.get('/rest/v0/restore-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLogs)), async function RestoreLogController_getRestoreLogs(request, response, next) {
4659
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4660
+ let validatedArgs = [];
4661
+ try {
4662
+ validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLogs, request, response });
4663
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4664
+ const controller = await container.get(RestoreLogController);
4665
+ if (typeof controller['setStatus'] === 'function') {
4666
+ controller.setStatus(undefined);
4667
+ }
4668
+ await templateService.apiHandler({
4669
+ methodName: 'getRestoreLogs',
4670
+ controller,
4671
+ response,
4672
+ next,
4673
+ validatedArgs,
4674
+ successStatus: undefined,
4675
+ });
4676
+ }
4677
+ catch (err) {
4678
+ return next(err);
4679
+ }
4680
+ });
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
4682
+ const argsRestoreLogController_getRestoreLog = {
4683
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4684
+ };
4685
+ app.get('/rest/v0/restore-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLog)), async function RestoreLogController_getRestoreLog(request, response, next) {
4686
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4687
+ let validatedArgs = [];
4688
+ try {
4689
+ validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLog, request, response });
4690
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4691
+ const controller = await container.get(RestoreLogController);
4692
+ if (typeof controller['setStatus'] === 'function') {
4693
+ controller.setStatus(undefined);
4694
+ }
4695
+ await templateService.apiHandler({
4696
+ methodName: 'getRestoreLog',
4697
+ controller,
4698
+ response,
4699
+ next,
4700
+ validatedArgs,
4701
+ successStatus: undefined,
4702
+ });
4703
+ }
4704
+ catch (err) {
4705
+ return next(err);
4706
+ }
4707
+ });
4708
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4709
+ const argsDeprecatedRestoreController_getDeprecatedRestoreLogs = {
4710
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4711
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4712
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4713
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4714
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4715
+ };
4716
+ app.get('/rest/v0/restore/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLogs)), async function DeprecatedRestoreController_getDeprecatedRestoreLogs(request, response, next) {
4717
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4718
+ let validatedArgs = [];
4719
+ try {
4720
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLogs, request, response });
4721
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4722
+ const controller = await container.get(DeprecatedRestoreController);
4723
+ if (typeof controller['setStatus'] === 'function') {
4724
+ controller.setStatus(undefined);
4725
+ }
4726
+ await templateService.apiHandler({
4727
+ methodName: 'getDeprecatedRestoreLogs',
4728
+ controller,
4729
+ response,
4730
+ next,
4731
+ validatedArgs,
4732
+ successStatus: undefined,
4733
+ });
4734
+ }
4735
+ catch (err) {
4736
+ return next(err);
4737
+ }
4738
+ });
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
4740
+ const argsDeprecatedRestoreController_getDeprecatedRestoreLog = {
4741
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4742
+ };
4743
+ app.get('/rest/v0/restore/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLog)), async function DeprecatedRestoreController_getDeprecatedRestoreLog(request, response, next) {
4744
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4745
+ let validatedArgs = [];
4746
+ try {
4747
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLog, request, response });
4748
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4749
+ const controller = await container.get(DeprecatedRestoreController);
4750
+ if (typeof controller['setStatus'] === 'function') {
4751
+ controller.setStatus(undefined);
4752
+ }
4753
+ await templateService.apiHandler({
4754
+ methodName: 'getDeprecatedRestoreLog',
4755
+ controller,
4756
+ response,
4757
+ next,
4758
+ validatedArgs,
4759
+ successStatus: undefined,
4760
+ });
4761
+ }
4762
+ catch (err) {
4763
+ return next(err);
4764
+ }
4765
+ });
4766
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4767
+ const argsProxyController_getProxies = {
4768
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4769
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4770
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4771
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4772
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4773
+ };
4774
+ app.get('/rest/v0/proxies', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxies)), async function ProxyController_getProxies(request, response, next) {
4775
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4776
+ let validatedArgs = [];
4777
+ try {
4778
+ validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxies, request, response });
4779
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4780
+ const controller = await container.get(ProxyController);
4781
+ if (typeof controller['setStatus'] === 'function') {
4782
+ controller.setStatus(undefined);
4783
+ }
4784
+ await templateService.apiHandler({
4785
+ methodName: 'getProxies',
4786
+ controller,
4787
+ response,
4788
+ next,
4789
+ validatedArgs,
4790
+ successStatus: undefined,
4791
+ });
4792
+ }
4793
+ catch (err) {
4794
+ return next(err);
4795
+ }
4796
+ });
4797
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4798
+ const argsProxyController_getProxy = {
4799
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4800
+ };
4801
+ app.get('/rest/v0/proxies/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxy)), async function ProxyController_getProxy(request, response, next) {
4802
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4803
+ let validatedArgs = [];
4804
+ try {
4805
+ validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxy, request, response });
4806
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4807
+ const controller = await container.get(ProxyController);
4808
+ if (typeof controller['setStatus'] === 'function') {
4809
+ controller.setStatus(undefined);
4810
+ }
4811
+ await templateService.apiHandler({
4812
+ methodName: 'getProxy',
4813
+ controller,
4814
+ response,
4815
+ next,
4816
+ validatedArgs,
4817
+ successStatus: undefined,
4818
+ });
4819
+ }
4820
+ catch (err) {
4821
+ return next(err);
4822
+ }
4823
+ });
4824
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4825
+ const argsPoolController_getPools = {
4826
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4827
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4828
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4829
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4830
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4831
+ };
4832
+ app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPools)), async function PoolController_getPools(request, response, next) {
4833
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4834
+ let validatedArgs = [];
4835
+ try {
4836
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPools, request, response });
4837
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4838
+ const controller = await container.get(PoolController);
4839
+ if (typeof controller['setStatus'] === 'function') {
4840
+ controller.setStatus(undefined);
4841
+ }
4842
+ await templateService.apiHandler({
4843
+ methodName: 'getPools',
4844
+ controller,
4845
+ response,
4846
+ next,
4847
+ validatedArgs,
4848
+ successStatus: undefined,
4849
+ });
4850
+ }
4851
+ catch (err) {
4852
+ return next(err);
4853
+ }
4854
+ });
4855
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4856
+ const argsPoolController_getPool = {
4857
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4858
+ };
4859
+ app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPool)), async function PoolController_getPool(request, response, next) {
4860
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4861
+ let validatedArgs = [];
4862
+ try {
4863
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPool, request, response });
4864
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4865
+ const controller = await container.get(PoolController);
4866
+ if (typeof controller['setStatus'] === 'function') {
4867
+ controller.setStatus(undefined);
4868
+ }
4869
+ await templateService.apiHandler({
4870
+ methodName: 'getPool',
4871
+ controller,
4872
+ response,
4873
+ next,
4874
+ validatedArgs,
4875
+ successStatus: undefined,
4876
+ });
4877
+ }
4878
+ catch (err) {
4879
+ return next(err);
4880
+ }
4881
+ });
4882
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4883
+ const argsPoolController_createNetwork = {
4884
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4885
+ body: { "in": "body", "name": "body", "required": true, "ref": "CreateNetworkBody" },
4886
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4887
+ };
4888
+ app.post('/rest/v0/pools/:id/actions/create_network', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createNetwork)), async function PoolController_createNetwork(request, response, next) {
4889
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4890
+ let validatedArgs = [];
4891
+ try {
4892
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createNetwork, request, response });
4893
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4894
+ const controller = await container.get(PoolController);
4895
+ if (typeof controller['setStatus'] === 'function') {
4896
+ controller.setStatus(undefined);
4897
+ }
4898
+ await templateService.apiHandler({
4899
+ methodName: 'createNetwork',
4900
+ controller,
4901
+ response,
4902
+ next,
4903
+ validatedArgs,
4904
+ successStatus: 201,
4905
+ });
4906
+ }
4907
+ catch (err) {
4908
+ return next(err);
4909
+ }
4910
+ });
4911
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4912
+ const argsPoolController_emergencyShutdown = {
4913
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4914
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4915
+ };
4916
+ app.post('/rest/v0/pools/:id/actions/emergency_shutdown', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.emergencyShutdown)), async function PoolController_emergencyShutdown(request, response, next) {
4917
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4918
+ let validatedArgs = [];
4919
+ try {
4920
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_emergencyShutdown, request, response });
4921
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4922
+ const controller = await container.get(PoolController);
4923
+ if (typeof controller['setStatus'] === 'function') {
4924
+ controller.setStatus(undefined);
4925
+ }
4926
+ await templateService.apiHandler({
4927
+ methodName: 'emergencyShutdown',
4928
+ controller,
4929
+ response,
4930
+ next,
4931
+ validatedArgs,
4932
+ successStatus: 202,
4933
+ });
4934
+ }
4935
+ catch (err) {
4936
+ return next(err);
4937
+ }
4938
+ });
4939
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4940
+ const argsPoolController_rollingReboot = {
4941
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4942
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4943
+ };
4944
+ app.post('/rest/v0/pools/:id/actions/rolling_reboot', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingReboot)), async function PoolController_rollingReboot(request, response, next) {
4945
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4946
+ let validatedArgs = [];
4947
+ try {
4948
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingReboot, request, response });
4949
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4950
+ const controller = await container.get(PoolController);
4951
+ if (typeof controller['setStatus'] === 'function') {
4952
+ controller.setStatus(undefined);
4953
+ }
4954
+ await templateService.apiHandler({
4955
+ methodName: 'rollingReboot',
4956
+ controller,
4957
+ response,
4958
+ next,
4959
+ validatedArgs,
4960
+ successStatus: 202,
4961
+ });
4962
+ }
4963
+ catch (err) {
4964
+ return next(err);
4965
+ }
4966
+ });
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
4968
+ const argsPoolController_rollingUpdate = {
4969
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4970
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4971
+ };
4972
+ app.post('/rest/v0/pools/:id/actions/rolling_update', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingUpdate)), async function PoolController_rollingUpdate(request, response, next) {
3648
4973
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3649
4974
  let validatedArgs = [];
3650
4975
  try {
3651
- validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLogs, request, response });
4976
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingUpdate, request, response });
3652
4977
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3653
- const controller = await container.get(RestoreLogController);
4978
+ const controller = await container.get(PoolController);
3654
4979
  if (typeof controller['setStatus'] === 'function') {
3655
4980
  controller.setStatus(undefined);
3656
4981
  }
3657
4982
  await templateService.apiHandler({
3658
- methodName: 'getRestoreLogs',
4983
+ methodName: 'rollingUpdate',
3659
4984
  controller,
3660
4985
  response,
3661
4986
  next,
3662
4987
  validatedArgs,
3663
- successStatus: undefined,
4988
+ successStatus: 202,
3664
4989
  });
3665
4990
  }
3666
4991
  catch (err) {
@@ -3668,26 +4993,28 @@ export function RegisterRoutes(app) {
3668
4993
  }
3669
4994
  });
3670
4995
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3671
- const argsRestoreLogController_getRestoreLog = {
4996
+ const argsPoolController_importVm = {
4997
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3672
4998
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4999
+ sr: { "in": "query", "name": "sr", "dataType": "string" },
3673
5000
  };
3674
- app.get('/rest/v0/restore-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLog)), async function RestoreLogController_getRestoreLog(request, response, next) {
5001
+ app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
3675
5002
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3676
5003
  let validatedArgs = [];
3677
5004
  try {
3678
- validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLog, request, response });
5005
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
3679
5006
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3680
- const controller = await container.get(RestoreLogController);
5007
+ const controller = await container.get(PoolController);
3681
5008
  if (typeof controller['setStatus'] === 'function') {
3682
5009
  controller.setStatus(undefined);
3683
5010
  }
3684
5011
  await templateService.apiHandler({
3685
- methodName: 'getRestoreLog',
5012
+ methodName: 'importVm',
3686
5013
  controller,
3687
5014
  response,
3688
5015
  next,
3689
5016
  validatedArgs,
3690
- successStatus: undefined,
5017
+ successStatus: 201,
3691
5018
  });
3692
5019
  }
3693
5020
  catch (err) {
@@ -3695,30 +5022,28 @@ export function RegisterRoutes(app) {
3695
5022
  }
3696
5023
  });
3697
5024
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3698
- const argsDeprecatedRestoreController_getDeprecatedRestoreLogs = {
3699
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3700
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3701
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3702
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3703
- limit: { "in": "query", "name": "limit", "dataType": "double" },
5025
+ const argsPoolController_createVm = {
5026
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5027
+ body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
5028
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3704
5029
  };
3705
- app.get('/rest/v0/restore/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLogs)), async function DeprecatedRestoreController_getDeprecatedRestoreLogs(request, response, next) {
5030
+ app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
3706
5031
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3707
5032
  let validatedArgs = [];
3708
5033
  try {
3709
- validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLogs, request, response });
5034
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
3710
5035
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3711
- const controller = await container.get(DeprecatedRestoreController);
5036
+ const controller = await container.get(PoolController);
3712
5037
  if (typeof controller['setStatus'] === 'function') {
3713
5038
  controller.setStatus(undefined);
3714
5039
  }
3715
5040
  await templateService.apiHandler({
3716
- methodName: 'getDeprecatedRestoreLogs',
5041
+ methodName: 'createVm',
3717
5042
  controller,
3718
5043
  response,
3719
5044
  next,
3720
5045
  validatedArgs,
3721
- successStatus: undefined,
5046
+ successStatus: 201,
3722
5047
  });
3723
5048
  }
3724
5049
  catch (err) {
@@ -3726,21 +5051,22 @@ export function RegisterRoutes(app) {
3726
5051
  }
3727
5052
  });
3728
5053
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3729
- const argsDeprecatedRestoreController_getDeprecatedRestoreLog = {
5054
+ const argsPoolController_getStats = {
3730
5055
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5056
+ granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
3731
5057
  };
3732
- app.get('/rest/v0/restore/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLog)), async function DeprecatedRestoreController_getDeprecatedRestoreLog(request, response, next) {
5058
+ app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
3733
5059
  // WARNING: This 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
5060
  let validatedArgs = [];
3735
5061
  try {
3736
- validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLog, request, response });
5062
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
3737
5063
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3738
- const controller = await container.get(DeprecatedRestoreController);
5064
+ const controller = await container.get(PoolController);
3739
5065
  if (typeof controller['setStatus'] === 'function') {
3740
5066
  controller.setStatus(undefined);
3741
5067
  }
3742
5068
  await templateService.apiHandler({
3743
- methodName: 'getDeprecatedRestoreLog',
5069
+ methodName: 'getStats',
3744
5070
  controller,
3745
5071
  response,
3746
5072
  next,
@@ -3753,25 +5079,23 @@ export function RegisterRoutes(app) {
3753
5079
  }
3754
5080
  });
3755
5081
  // WARNING: This 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 argsProxyController_getProxies = {
5082
+ const argsPoolController_getPoolDashboard = {
3757
5083
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3758
- fields: { "in": "query", "name": "fields", "dataType": "string" },
5084
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3759
5085
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3760
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3761
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3762
5086
  };
3763
- app.get('/rest/v0/proxies', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxies)), async function ProxyController_getProxies(request, response, next) {
5087
+ app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
3764
5088
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3765
5089
  let validatedArgs = [];
3766
5090
  try {
3767
- validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxies, request, response });
5091
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
3768
5092
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3769
- const controller = await container.get(ProxyController);
5093
+ const controller = await container.get(PoolController);
3770
5094
  if (typeof controller['setStatus'] === 'function') {
3771
5095
  controller.setStatus(undefined);
3772
5096
  }
3773
5097
  await templateService.apiHandler({
3774
- methodName: 'getProxies',
5098
+ methodName: 'getPoolDashboard',
3775
5099
  controller,
3776
5100
  response,
3777
5101
  next,
@@ -3784,21 +5108,26 @@ export function RegisterRoutes(app) {
3784
5108
  }
3785
5109
  });
3786
5110
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3787
- const argsProxyController_getProxy = {
5111
+ const argsPoolController_getPoolAlarms = {
5112
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3788
5113
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5114
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5115
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5116
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5117
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3789
5118
  };
3790
- app.get('/rest/v0/proxies/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxy)), async function ProxyController_getProxy(request, response, next) {
5119
+ app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
3791
5120
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3792
5121
  let validatedArgs = [];
3793
5122
  try {
3794
- validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxy, request, response });
5123
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
3795
5124
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3796
- const controller = await container.get(ProxyController);
5125
+ const controller = await container.get(PoolController);
3797
5126
  if (typeof controller['setStatus'] === 'function') {
3798
5127
  controller.setStatus(undefined);
3799
5128
  }
3800
5129
  await templateService.apiHandler({
3801
- methodName: 'getProxy',
5130
+ methodName: 'getPoolAlarms',
3802
5131
  controller,
3803
5132
  response,
3804
5133
  next,
@@ -3811,25 +5140,21 @@ export function RegisterRoutes(app) {
3811
5140
  }
3812
5141
  });
3813
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
3814
- const argsPoolController_getPools = {
3815
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3816
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3817
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3818
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3819
- limit: { "in": "query", "name": "limit", "dataType": "double" },
5143
+ const argsPoolController_getPoolMissingPatches = {
5144
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3820
5145
  };
3821
- app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPools)), async function PoolController_getPools(request, response, next) {
5146
+ app.get('/rest/v0/pools/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMissingPatches)), async function PoolController_getPoolMissingPatches(request, response, next) {
3822
5147
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3823
5148
  let validatedArgs = [];
3824
5149
  try {
3825
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPools, request, response });
5150
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMissingPatches, request, response });
3826
5151
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3827
5152
  const controller = await container.get(PoolController);
3828
5153
  if (typeof controller['setStatus'] === 'function') {
3829
5154
  controller.setStatus(undefined);
3830
5155
  }
3831
5156
  await templateService.apiHandler({
3832
- methodName: 'getPools',
5157
+ methodName: 'getPoolMissingPatches',
3833
5158
  controller,
3834
5159
  response,
3835
5160
  next,
@@ -3842,21 +5167,26 @@ export function RegisterRoutes(app) {
3842
5167
  }
3843
5168
  });
3844
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
3845
- const argsPoolController_getPool = {
5170
+ const argsPoolController_getPoolMessages = {
5171
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3846
5172
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5173
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5174
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5175
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5176
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3847
5177
  };
3848
- app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPool)), async function PoolController_getPool(request, response, next) {
5178
+ app.get('/rest/v0/pools/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMessages)), async function PoolController_getPoolMessages(request, response, next) {
3849
5179
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3850
5180
  let validatedArgs = [];
3851
5181
  try {
3852
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPool, request, response });
5182
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMessages, request, response });
3853
5183
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3854
5184
  const controller = await container.get(PoolController);
3855
5185
  if (typeof controller['setStatus'] === 'function') {
3856
5186
  controller.setStatus(undefined);
3857
5187
  }
3858
5188
  await templateService.apiHandler({
3859
- methodName: 'getPool',
5189
+ methodName: 'getPoolMessages',
3860
5190
  controller,
3861
5191
  response,
3862
5192
  next,
@@ -3869,28 +5199,27 @@ export function RegisterRoutes(app) {
3869
5199
  }
3870
5200
  });
3871
5201
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3872
- const argsPoolController_createNetwork = {
5202
+ const argsPoolController_putPoolTag = {
3873
5203
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3874
- body: { "in": "body", "name": "body", "required": true, "ref": "CreateNetworkBody" },
3875
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5204
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
3876
5205
  };
3877
- app.post('/rest/v0/pools/:id/actions/create_network', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createNetwork)), async function PoolController_createNetwork(request, response, next) {
5206
+ app.put('/rest/v0/pools/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.putPoolTag)), async function PoolController_putPoolTag(request, response, next) {
3878
5207
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3879
5208
  let validatedArgs = [];
3880
5209
  try {
3881
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createNetwork, request, response });
5210
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_putPoolTag, request, response });
3882
5211
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3883
5212
  const controller = await container.get(PoolController);
3884
5213
  if (typeof controller['setStatus'] === 'function') {
3885
5214
  controller.setStatus(undefined);
3886
5215
  }
3887
5216
  await templateService.apiHandler({
3888
- methodName: 'createNetwork',
5217
+ methodName: 'putPoolTag',
3889
5218
  controller,
3890
5219
  response,
3891
5220
  next,
3892
5221
  validatedArgs,
3893
- successStatus: 201,
5222
+ successStatus: 204,
3894
5223
  });
3895
5224
  }
3896
5225
  catch (err) {
@@ -3898,27 +5227,27 @@ export function RegisterRoutes(app) {
3898
5227
  }
3899
5228
  });
3900
5229
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3901
- const argsPoolController_emergencyShutdown = {
5230
+ const argsPoolController_deletePoolTag = {
3902
5231
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3903
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5232
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
3904
5233
  };
3905
- app.post('/rest/v0/pools/:id/actions/emergency_shutdown', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.emergencyShutdown)), async function PoolController_emergencyShutdown(request, response, next) {
5234
+ app.delete('/rest/v0/pools/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.deletePoolTag)), async function PoolController_deletePoolTag(request, response, next) {
3906
5235
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3907
5236
  let validatedArgs = [];
3908
5237
  try {
3909
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_emergencyShutdown, request, response });
5238
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_deletePoolTag, request, response });
3910
5239
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3911
5240
  const controller = await container.get(PoolController);
3912
5241
  if (typeof controller['setStatus'] === 'function') {
3913
5242
  controller.setStatus(undefined);
3914
5243
  }
3915
5244
  await templateService.apiHandler({
3916
- methodName: 'emergencyShutdown',
5245
+ methodName: 'deletePoolTag',
3917
5246
  controller,
3918
5247
  response,
3919
5248
  next,
3920
5249
  validatedArgs,
3921
- successStatus: 202,
5250
+ successStatus: 204,
3922
5251
  });
3923
5252
  }
3924
5253
  catch (err) {
@@ -3926,27 +5255,31 @@ export function RegisterRoutes(app) {
3926
5255
  }
3927
5256
  });
3928
5257
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3929
- const argsPoolController_rollingReboot = {
5258
+ const argsPoolController_getPoolTasks = {
5259
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3930
5260
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3931
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5261
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5262
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5263
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5264
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3932
5265
  };
3933
- app.post('/rest/v0/pools/:id/actions/rolling_reboot', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingReboot)), async function PoolController_rollingReboot(request, response, next) {
5266
+ app.get('/rest/v0/pools/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolTasks)), async function PoolController_getPoolTasks(request, response, next) {
3934
5267
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3935
5268
  let validatedArgs = [];
3936
5269
  try {
3937
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingReboot, request, response });
5270
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolTasks, request, response });
3938
5271
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3939
5272
  const controller = await container.get(PoolController);
3940
5273
  if (typeof controller['setStatus'] === 'function') {
3941
5274
  controller.setStatus(undefined);
3942
5275
  }
3943
5276
  await templateService.apiHandler({
3944
- methodName: 'rollingReboot',
5277
+ methodName: 'getPoolTasks',
3945
5278
  controller,
3946
5279
  response,
3947
5280
  next,
3948
5281
  validatedArgs,
3949
- successStatus: 202,
5282
+ successStatus: undefined,
3950
5283
  });
3951
5284
  }
3952
5285
  catch (err) {
@@ -3954,27 +5287,30 @@ export function RegisterRoutes(app) {
3954
5287
  }
3955
5288
  });
3956
5289
  // WARNING: This 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
- const argsPoolController_rollingUpdate = {
3958
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3959
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5290
+ const argsPifController_getPifs = {
5291
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5292
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5293
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5294
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5295
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3960
5296
  };
3961
- app.post('/rest/v0/pools/:id/actions/rolling_update', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingUpdate)), async function PoolController_rollingUpdate(request, response, next) {
5297
+ app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
3962
5298
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3963
5299
  let validatedArgs = [];
3964
5300
  try {
3965
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingUpdate, request, response });
5301
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
3966
5302
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3967
- const controller = await container.get(PoolController);
5303
+ const controller = await container.get(PifController);
3968
5304
  if (typeof controller['setStatus'] === 'function') {
3969
5305
  controller.setStatus(undefined);
3970
5306
  }
3971
5307
  await templateService.apiHandler({
3972
- methodName: 'rollingUpdate',
5308
+ methodName: 'getPifs',
3973
5309
  controller,
3974
5310
  response,
3975
5311
  next,
3976
5312
  validatedArgs,
3977
- successStatus: 202,
5313
+ successStatus: undefined,
3978
5314
  });
3979
5315
  }
3980
5316
  catch (err) {
@@ -3982,28 +5318,26 @@ export function RegisterRoutes(app) {
3982
5318
  }
3983
5319
  });
3984
5320
  // WARNING: This 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
- const argsPoolController_importVm = {
3986
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5321
+ const argsPifController_getPif = {
3987
5322
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3988
- sr: { "in": "query", "name": "sr", "dataType": "string" },
3989
5323
  };
3990
- app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
5324
+ app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
3991
5325
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3992
5326
  let validatedArgs = [];
3993
5327
  try {
3994
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
5328
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPif, request, response });
3995
5329
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3996
- const controller = await container.get(PoolController);
5330
+ const controller = await container.get(PifController);
3997
5331
  if (typeof controller['setStatus'] === 'function') {
3998
5332
  controller.setStatus(undefined);
3999
5333
  }
4000
5334
  await templateService.apiHandler({
4001
- methodName: 'importVm',
5335
+ methodName: 'getPif',
4002
5336
  controller,
4003
5337
  response,
4004
5338
  next,
4005
5339
  validatedArgs,
4006
- successStatus: 201,
5340
+ successStatus: undefined,
4007
5341
  });
4008
5342
  }
4009
5343
  catch (err) {
@@ -4011,28 +5345,31 @@ export function RegisterRoutes(app) {
4011
5345
  }
4012
5346
  });
4013
5347
  // WARNING: This 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
- const argsPoolController_createVm = {
5348
+ const argsPifController_getPifAlarms = {
5349
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4015
5350
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4016
- body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
4017
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5351
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5352
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5353
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5354
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4018
5355
  };
4019
- app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
5356
+ app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
4020
5357
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4021
5358
  let validatedArgs = [];
4022
5359
  try {
4023
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
5360
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
4024
5361
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4025
- const controller = await container.get(PoolController);
5362
+ const controller = await container.get(PifController);
4026
5363
  if (typeof controller['setStatus'] === 'function') {
4027
5364
  controller.setStatus(undefined);
4028
5365
  }
4029
5366
  await templateService.apiHandler({
4030
- methodName: 'createVm',
5367
+ methodName: 'getPifAlarms',
4031
5368
  controller,
4032
5369
  response,
4033
5370
  next,
4034
5371
  validatedArgs,
4035
- successStatus: 201,
5372
+ successStatus: undefined,
4036
5373
  });
4037
5374
  }
4038
5375
  catch (err) {
@@ -4040,22 +5377,26 @@ export function RegisterRoutes(app) {
4040
5377
  }
4041
5378
  });
4042
5379
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4043
- const argsPoolController_getStats = {
5380
+ const argsPifController_getPifMessages = {
5381
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4044
5382
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4045
- granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
5383
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5384
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5385
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5386
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4046
5387
  };
4047
- app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
5388
+ app.get('/rest/v0/pifs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifMessages)), async function PifController_getPifMessages(request, response, next) {
4048
5389
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4049
5390
  let validatedArgs = [];
4050
5391
  try {
4051
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
5392
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifMessages, request, response });
4052
5393
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4053
- const controller = await container.get(PoolController);
5394
+ const controller = await container.get(PifController);
4054
5395
  if (typeof controller['setStatus'] === 'function') {
4055
5396
  controller.setStatus(undefined);
4056
5397
  }
4057
5398
  await templateService.apiHandler({
4058
- methodName: 'getStats',
5399
+ methodName: 'getPifMessages',
4059
5400
  controller,
4060
5401
  response,
4061
5402
  next,
@@ -4068,23 +5409,26 @@ export function RegisterRoutes(app) {
4068
5409
  }
4069
5410
  });
4070
5411
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4071
- const argsPoolController_getPoolDashboard = {
5412
+ const argsPifController_getPifTasks = {
4072
5413
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4073
5414
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5415
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4074
5416
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5417
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5418
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4075
5419
  };
4076
- app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
5420
+ app.get('/rest/v0/pifs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifTasks)), async function PifController_getPifTasks(request, response, next) {
4077
5421
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4078
5422
  let validatedArgs = [];
4079
5423
  try {
4080
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
5424
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifTasks, request, response });
4081
5425
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4082
- const controller = await container.get(PoolController);
5426
+ const controller = await container.get(PifController);
4083
5427
  if (typeof controller['setStatus'] === 'function') {
4084
5428
  controller.setStatus(undefined);
4085
5429
  }
4086
5430
  await templateService.apiHandler({
4087
- methodName: 'getPoolDashboard',
5431
+ methodName: 'getPifTasks',
4088
5432
  controller,
4089
5433
  response,
4090
5434
  next,
@@ -4097,26 +5441,25 @@ export function RegisterRoutes(app) {
4097
5441
  }
4098
5442
  });
4099
5443
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4100
- const argsPoolController_getPoolAlarms = {
5444
+ const argsPgpuController_getPgpus = {
4101
5445
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4102
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4103
5446
  fields: { "in": "query", "name": "fields", "dataType": "string" },
4104
5447
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4105
5448
  filter: { "in": "query", "name": "filter", "dataType": "string" },
4106
5449
  limit: { "in": "query", "name": "limit", "dataType": "double" },
4107
5450
  };
4108
- app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
5451
+ app.get('/rest/v0/pgpus', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpus)), async function PgpuController_getPgpus(request, response, next) {
4109
5452
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4110
5453
  let validatedArgs = [];
4111
5454
  try {
4112
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
5455
+ validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpus, request, response });
4113
5456
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4114
- const controller = await container.get(PoolController);
5457
+ const controller = await container.get(PgpuController);
4115
5458
  if (typeof controller['setStatus'] === 'function') {
4116
5459
  controller.setStatus(undefined);
4117
5460
  }
4118
5461
  await templateService.apiHandler({
4119
- methodName: 'getPoolAlarms',
5462
+ methodName: 'getPgpus',
4120
5463
  controller,
4121
5464
  response,
4122
5465
  next,
@@ -4129,21 +5472,21 @@ export function RegisterRoutes(app) {
4129
5472
  }
4130
5473
  });
4131
5474
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4132
- const argsPoolController_getPoolMissingPatches = {
5475
+ const argsPgpuController_getPgpu = {
4133
5476
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4134
5477
  };
4135
- app.get('/rest/v0/pools/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMissingPatches)), async function PoolController_getPoolMissingPatches(request, response, next) {
5478
+ app.get('/rest/v0/pgpus/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpu)), async function PgpuController_getPgpu(request, response, next) {
4136
5479
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4137
5480
  let validatedArgs = [];
4138
5481
  try {
4139
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMissingPatches, request, response });
5482
+ validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpu, request, response });
4140
5483
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4141
- const controller = await container.get(PoolController);
5484
+ const controller = await container.get(PgpuController);
4142
5485
  if (typeof controller['setStatus'] === 'function') {
4143
5486
  controller.setStatus(undefined);
4144
5487
  }
4145
5488
  await templateService.apiHandler({
4146
- methodName: 'getPoolMissingPatches',
5489
+ methodName: 'getPgpu',
4147
5490
  controller,
4148
5491
  response,
4149
5492
  next,
@@ -4156,26 +5499,25 @@ export function RegisterRoutes(app) {
4156
5499
  }
4157
5500
  });
4158
5501
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4159
- const argsPoolController_getPoolMessages = {
5502
+ const argsPciController_getPcis = {
4160
5503
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4161
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4162
5504
  fields: { "in": "query", "name": "fields", "dataType": "string" },
4163
5505
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4164
5506
  filter: { "in": "query", "name": "filter", "dataType": "string" },
4165
5507
  limit: { "in": "query", "name": "limit", "dataType": "double" },
4166
5508
  };
4167
- app.get('/rest/v0/pools/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMessages)), async function PoolController_getPoolMessages(request, response, next) {
5509
+ app.get('/rest/v0/pcis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPcis)), async function PciController_getPcis(request, response, next) {
4168
5510
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4169
5511
  let validatedArgs = [];
4170
5512
  try {
4171
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMessages, request, response });
5513
+ validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPcis, request, response });
4172
5514
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4173
- const controller = await container.get(PoolController);
5515
+ const controller = await container.get(PciController);
4174
5516
  if (typeof controller['setStatus'] === 'function') {
4175
5517
  controller.setStatus(undefined);
4176
5518
  }
4177
5519
  await templateService.apiHandler({
4178
- methodName: 'getPoolMessages',
5520
+ methodName: 'getPcis',
4179
5521
  controller,
4180
5522
  response,
4181
5523
  next,
@@ -4188,25 +5530,21 @@ export function RegisterRoutes(app) {
4188
5530
  }
4189
5531
  });
4190
5532
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4191
- const argsPifController_getPifs = {
4192
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4193
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4194
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4195
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4196
- limit: { "in": "query", "name": "limit", "dataType": "double" },
5533
+ const argsPciController_getPci = {
5534
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4197
5535
  };
4198
- app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
5536
+ app.get('/rest/v0/pcis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPci)), async function PciController_getPci(request, response, next) {
4199
5537
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4200
5538
  let validatedArgs = [];
4201
5539
  try {
4202
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
5540
+ validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPci, request, response });
4203
5541
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4204
- const controller = await container.get(PifController);
5542
+ const controller = await container.get(PciController);
4205
5543
  if (typeof controller['setStatus'] === 'function') {
4206
5544
  controller.setStatus(undefined);
4207
5545
  }
4208
5546
  await templateService.apiHandler({
4209
- methodName: 'getPifs',
5547
+ methodName: 'getPci',
4210
5548
  controller,
4211
5549
  response,
4212
5550
  next,
@@ -4219,21 +5557,25 @@ export function RegisterRoutes(app) {
4219
5557
  }
4220
5558
  });
4221
5559
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4222
- const argsPifController_getPif = {
4223
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5560
+ const argsPbdController_getPbds = {
5561
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5562
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5563
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5564
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5565
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4224
5566
  };
4225
- app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
5567
+ app.get('/rest/v0/pbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PbdController)), ...(fetchMiddlewares(PbdController.prototype.getPbds)), async function PbdController_getPbds(request, response, next) {
4226
5568
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4227
5569
  let validatedArgs = [];
4228
5570
  try {
4229
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPif, request, response });
5571
+ validatedArgs = templateService.getValidatedArgs({ args: argsPbdController_getPbds, request, response });
4230
5572
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4231
- const controller = await container.get(PifController);
5573
+ const controller = await container.get(PbdController);
4232
5574
  if (typeof controller['setStatus'] === 'function') {
4233
5575
  controller.setStatus(undefined);
4234
5576
  }
4235
5577
  await templateService.apiHandler({
4236
- methodName: 'getPif',
5578
+ methodName: 'getPbds',
4237
5579
  controller,
4238
5580
  response,
4239
5581
  next,
@@ -4246,26 +5588,21 @@ export function RegisterRoutes(app) {
4246
5588
  }
4247
5589
  });
4248
5590
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4249
- const argsPifController_getPifAlarms = {
4250
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5591
+ const argsPbdController_getPbd = {
4251
5592
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4252
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4253
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4254
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4255
- limit: { "in": "query", "name": "limit", "dataType": "double" },
4256
5593
  };
4257
- app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
5594
+ app.get('/rest/v0/pbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PbdController)), ...(fetchMiddlewares(PbdController.prototype.getPbd)), async function PbdController_getPbd(request, response, next) {
4258
5595
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4259
5596
  let validatedArgs = [];
4260
5597
  try {
4261
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
5598
+ validatedArgs = templateService.getValidatedArgs({ args: argsPbdController_getPbd, request, response });
4262
5599
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4263
- const controller = await container.get(PifController);
5600
+ const controller = await container.get(PbdController);
4264
5601
  if (typeof controller['setStatus'] === 'function') {
4265
5602
  controller.setStatus(undefined);
4266
5603
  }
4267
5604
  await templateService.apiHandler({
4268
- methodName: 'getPifAlarms',
5605
+ methodName: 'getPbd',
4269
5606
  controller,
4270
5607
  response,
4271
5608
  next,
@@ -4278,25 +5615,25 @@ export function RegisterRoutes(app) {
4278
5615
  }
4279
5616
  });
4280
5617
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4281
- const argsPgpuController_getPgpus = {
5618
+ const argsNetworkController_getNetworks = {
4282
5619
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4283
5620
  fields: { "in": "query", "name": "fields", "dataType": "string" },
4284
5621
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4285
5622
  filter: { "in": "query", "name": "filter", "dataType": "string" },
4286
5623
  limit: { "in": "query", "name": "limit", "dataType": "double" },
4287
5624
  };
4288
- app.get('/rest/v0/pgpus', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpus)), async function PgpuController_getPgpus(request, response, next) {
5625
+ app.get('/rest/v0/networks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworks)), async function NetworkController_getNetworks(request, response, next) {
4289
5626
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4290
5627
  let validatedArgs = [];
4291
5628
  try {
4292
- validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpus, request, response });
5629
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworks, request, response });
4293
5630
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4294
- const controller = await container.get(PgpuController);
5631
+ const controller = await container.get(NetworkController);
4295
5632
  if (typeof controller['setStatus'] === 'function') {
4296
5633
  controller.setStatus(undefined);
4297
5634
  }
4298
5635
  await templateService.apiHandler({
4299
- methodName: 'getPgpus',
5636
+ methodName: 'getNetworks',
4300
5637
  controller,
4301
5638
  response,
4302
5639
  next,
@@ -4309,21 +5646,21 @@ export function RegisterRoutes(app) {
4309
5646
  }
4310
5647
  });
4311
5648
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4312
- const argsPgpuController_getPgpu = {
5649
+ const argsNetworkController_getNetwork = {
4313
5650
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4314
5651
  };
4315
- app.get('/rest/v0/pgpus/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpu)), async function PgpuController_getPgpu(request, response, next) {
5652
+ app.get('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetwork)), async function NetworkController_getNetwork(request, response, next) {
4316
5653
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4317
5654
  let validatedArgs = [];
4318
5655
  try {
4319
- validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpu, request, response });
5656
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetwork, request, response });
4320
5657
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4321
- const controller = await container.get(PgpuController);
5658
+ const controller = await container.get(NetworkController);
4322
5659
  if (typeof controller['setStatus'] === 'function') {
4323
5660
  controller.setStatus(undefined);
4324
5661
  }
4325
5662
  await templateService.apiHandler({
4326
- methodName: 'getPgpu',
5663
+ methodName: 'getNetwork',
4327
5664
  controller,
4328
5665
  response,
4329
5666
  next,
@@ -4336,30 +5673,26 @@ export function RegisterRoutes(app) {
4336
5673
  }
4337
5674
  });
4338
5675
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4339
- const argsPciController_getPcis = {
4340
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4341
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4342
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4343
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4344
- limit: { "in": "query", "name": "limit", "dataType": "double" },
5676
+ const argsNetworkController_deleteNetwork = {
5677
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4345
5678
  };
4346
- app.get('/rest/v0/pcis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPcis)), async function PciController_getPcis(request, response, next) {
5679
+ app.delete('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetwork)), async function NetworkController_deleteNetwork(request, response, next) {
4347
5680
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4348
5681
  let validatedArgs = [];
4349
5682
  try {
4350
- validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPcis, request, response });
5683
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetwork, request, response });
4351
5684
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4352
- const controller = await container.get(PciController);
5685
+ const controller = await container.get(NetworkController);
4353
5686
  if (typeof controller['setStatus'] === 'function') {
4354
5687
  controller.setStatus(undefined);
4355
5688
  }
4356
5689
  await templateService.apiHandler({
4357
- methodName: 'getPcis',
5690
+ methodName: 'deleteNetwork',
4358
5691
  controller,
4359
5692
  response,
4360
5693
  next,
4361
5694
  validatedArgs,
4362
- successStatus: undefined,
5695
+ successStatus: 204,
4363
5696
  });
4364
5697
  }
4365
5698
  catch (err) {
@@ -4367,21 +5700,26 @@ export function RegisterRoutes(app) {
4367
5700
  }
4368
5701
  });
4369
5702
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4370
- const argsPciController_getPci = {
5703
+ const argsNetworkController_getNetworkAlarms = {
5704
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4371
5705
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5706
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5707
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5708
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5709
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4372
5710
  };
4373
- app.get('/rest/v0/pcis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPci)), async function PciController_getPci(request, response, next) {
5711
+ app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
4374
5712
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4375
5713
  let validatedArgs = [];
4376
5714
  try {
4377
- validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPci, request, response });
5715
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
4378
5716
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4379
- const controller = await container.get(PciController);
5717
+ const controller = await container.get(NetworkController);
4380
5718
  if (typeof controller['setStatus'] === 'function') {
4381
5719
  controller.setStatus(undefined);
4382
5720
  }
4383
5721
  await templateService.apiHandler({
4384
- methodName: 'getPci',
5722
+ methodName: 'getNetworkAlarms',
4385
5723
  controller,
4386
5724
  response,
4387
5725
  next,
@@ -4394,25 +5732,26 @@ export function RegisterRoutes(app) {
4394
5732
  }
4395
5733
  });
4396
5734
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4397
- const argsNetworkController_getNetworks = {
5735
+ const argsNetworkController_getNetworkMessages = {
4398
5736
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5737
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4399
5738
  fields: { "in": "query", "name": "fields", "dataType": "string" },
4400
5739
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4401
5740
  filter: { "in": "query", "name": "filter", "dataType": "string" },
4402
5741
  limit: { "in": "query", "name": "limit", "dataType": "double" },
4403
5742
  };
4404
- app.get('/rest/v0/networks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworks)), async function NetworkController_getNetworks(request, response, next) {
5743
+ app.get('/rest/v0/networks/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkMessages)), async function NetworkController_getNetworkMessages(request, response, next) {
4405
5744
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4406
5745
  let validatedArgs = [];
4407
5746
  try {
4408
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworks, request, response });
5747
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkMessages, request, response });
4409
5748
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4410
5749
  const controller = await container.get(NetworkController);
4411
5750
  if (typeof controller['setStatus'] === 'function') {
4412
5751
  controller.setStatus(undefined);
4413
5752
  }
4414
5753
  await templateService.apiHandler({
4415
- methodName: 'getNetworks',
5754
+ methodName: 'getNetworkMessages',
4416
5755
  controller,
4417
5756
  response,
4418
5757
  next,
@@ -4425,21 +5764,26 @@ export function RegisterRoutes(app) {
4425
5764
  }
4426
5765
  });
4427
5766
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4428
- const argsNetworkController_getNetwork = {
5767
+ const argsNetworkController_getNetworkTasks = {
5768
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4429
5769
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5770
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5771
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5772
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5773
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4430
5774
  };
4431
- app.get('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetwork)), async function NetworkController_getNetwork(request, response, next) {
5775
+ app.get('/rest/v0/networks/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkTasks)), async function NetworkController_getNetworkTasks(request, response, next) {
4432
5776
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4433
5777
  let validatedArgs = [];
4434
5778
  try {
4435
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetwork, request, response });
5779
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkTasks, request, response });
4436
5780
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4437
5781
  const controller = await container.get(NetworkController);
4438
5782
  if (typeof controller['setStatus'] === 'function') {
4439
5783
  controller.setStatus(undefined);
4440
5784
  }
4441
5785
  await templateService.apiHandler({
4442
- methodName: 'getNetwork',
5786
+ methodName: 'getNetworkTasks',
4443
5787
  controller,
4444
5788
  response,
4445
5789
  next,
@@ -4452,21 +5796,22 @@ export function RegisterRoutes(app) {
4452
5796
  }
4453
5797
  });
4454
5798
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4455
- const argsNetworkController_deleteNetwork = {
5799
+ const argsNetworkController_putNetworkTag = {
4456
5800
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5801
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
4457
5802
  };
4458
- app.delete('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetwork)), async function NetworkController_deleteNetwork(request, response, next) {
5803
+ app.put('/rest/v0/networks/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.putNetworkTag)), async function NetworkController_putNetworkTag(request, response, next) {
4459
5804
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4460
5805
  let validatedArgs = [];
4461
5806
  try {
4462
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetwork, request, response });
5807
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_putNetworkTag, request, response });
4463
5808
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4464
5809
  const controller = await container.get(NetworkController);
4465
5810
  if (typeof controller['setStatus'] === 'function') {
4466
5811
  controller.setStatus(undefined);
4467
5812
  }
4468
5813
  await templateService.apiHandler({
4469
- methodName: 'deleteNetwork',
5814
+ methodName: 'putNetworkTag',
4470
5815
  controller,
4471
5816
  response,
4472
5817
  next,
@@ -4479,31 +5824,27 @@ export function RegisterRoutes(app) {
4479
5824
  }
4480
5825
  });
4481
5826
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4482
- const argsNetworkController_getNetworkAlarms = {
4483
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5827
+ const argsNetworkController_deleteNetworkTag = {
4484
5828
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4485
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4486
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4487
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4488
- limit: { "in": "query", "name": "limit", "dataType": "double" },
5829
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
4489
5830
  };
4490
- app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
5831
+ app.delete('/rest/v0/networks/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetworkTag)), async function NetworkController_deleteNetworkTag(request, response, next) {
4491
5832
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4492
5833
  let validatedArgs = [];
4493
5834
  try {
4494
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
5835
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetworkTag, request, response });
4495
5836
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4496
5837
  const controller = await container.get(NetworkController);
4497
5838
  if (typeof controller['setStatus'] === 'function') {
4498
5839
  controller.setStatus(undefined);
4499
5840
  }
4500
5841
  await templateService.apiHandler({
4501
- methodName: 'getNetworkAlarms',
5842
+ methodName: 'deleteNetworkTag',
4502
5843
  controller,
4503
5844
  response,
4504
5845
  next,
4505
5846
  validatedArgs,
4506
- successStatus: undefined,
5847
+ successStatus: 204,
4507
5848
  });
4508
5849
  }
4509
5850
  catch (err) {
@@ -4829,6 +6170,94 @@ export function RegisterRoutes(app) {
4829
6170
  }
4830
6171
  });
4831
6172
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6173
+ const argsHostController_getHostTasks = {
6174
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
6175
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6176
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
6177
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
6178
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
6179
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
6180
+ };
6181
+ app.get('/rest/v0/hosts/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostTasks)), async function HostController_getHostTasks(request, response, next) {
6182
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6183
+ let validatedArgs = [];
6184
+ try {
6185
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostTasks, request, response });
6186
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6187
+ const controller = await container.get(HostController);
6188
+ if (typeof controller['setStatus'] === 'function') {
6189
+ controller.setStatus(undefined);
6190
+ }
6191
+ await templateService.apiHandler({
6192
+ methodName: 'getHostTasks',
6193
+ controller,
6194
+ response,
6195
+ next,
6196
+ validatedArgs,
6197
+ successStatus: undefined,
6198
+ });
6199
+ }
6200
+ catch (err) {
6201
+ return next(err);
6202
+ }
6203
+ });
6204
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6205
+ const argsHostController_putHostTag = {
6206
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6207
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
6208
+ };
6209
+ app.put('/rest/v0/hosts/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.putHostTag)), async function HostController_putHostTag(request, response, next) {
6210
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6211
+ let validatedArgs = [];
6212
+ try {
6213
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_putHostTag, request, response });
6214
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6215
+ const controller = await container.get(HostController);
6216
+ if (typeof controller['setStatus'] === 'function') {
6217
+ controller.setStatus(undefined);
6218
+ }
6219
+ await templateService.apiHandler({
6220
+ methodName: 'putHostTag',
6221
+ controller,
6222
+ response,
6223
+ next,
6224
+ validatedArgs,
6225
+ successStatus: 204,
6226
+ });
6227
+ }
6228
+ catch (err) {
6229
+ return next(err);
6230
+ }
6231
+ });
6232
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6233
+ const argsHostController_deleteHostTag = {
6234
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6235
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
6236
+ };
6237
+ app.delete('/rest/v0/hosts/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.deleteHostTag)), async function HostController_deleteHostTag(request, response, next) {
6238
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6239
+ let validatedArgs = [];
6240
+ try {
6241
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_deleteHostTag, request, response });
6242
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6243
+ const controller = await container.get(HostController);
6244
+ if (typeof controller['setStatus'] === 'function') {
6245
+ controller.setStatus(undefined);
6246
+ }
6247
+ await templateService.apiHandler({
6248
+ methodName: 'deleteHostTag',
6249
+ controller,
6250
+ response,
6251
+ next,
6252
+ validatedArgs,
6253
+ successStatus: 204,
6254
+ });
6255
+ }
6256
+ catch (err) {
6257
+ return next(err);
6258
+ }
6259
+ });
6260
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4832
6261
  const argsGroupController_getGroups = {
4833
6262
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4834
6263
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -5057,6 +6486,38 @@ export function RegisterRoutes(app) {
5057
6486
  }
5058
6487
  });
5059
6488
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6489
+ const argsGroupController_getGroupTasks = {
6490
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
6491
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6492
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
6493
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
6494
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
6495
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
6496
+ };
6497
+ app.get('/rest/v0/groups/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroupTasks)), async function GroupController_getGroupTasks(request, response, next) {
6498
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6499
+ let validatedArgs = [];
6500
+ try {
6501
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroupTasks, request, response });
6502
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6503
+ const controller = await container.get(GroupController);
6504
+ if (typeof controller['setStatus'] === 'function') {
6505
+ controller.setStatus(undefined);
6506
+ }
6507
+ await templateService.apiHandler({
6508
+ methodName: 'getGroupTasks',
6509
+ controller,
6510
+ response,
6511
+ next,
6512
+ validatedArgs,
6513
+ successStatus: undefined,
6514
+ });
6515
+ }
6516
+ catch (err) {
6517
+ return next(err);
6518
+ }
6519
+ });
6520
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
5060
6521
  const argsBackupRepositoryController_getRepositories = {
5061
6522
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5062
6523
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -5491,6 +6952,65 @@ export function RegisterRoutes(app) {
5491
6952
  }
5492
6953
  });
5493
6954
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6955
+ const argsBackupArchiveController_getBackupArchives = {
6956
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
6957
+ backupRepositories: { "in": "query", "name": "backup-repository", "dataType": "array", "array": { "dataType": "string" } },
6958
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
6959
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
6960
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
6961
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
6962
+ };
6963
+ app.get('/rest/v0/backup-archives', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupArchiveController)), ...(fetchMiddlewares(BackupArchiveController.prototype.getBackupArchives)), async function BackupArchiveController_getBackupArchives(request, response, next) {
6964
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6965
+ let validatedArgs = [];
6966
+ try {
6967
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupArchiveController_getBackupArchives, request, response });
6968
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6969
+ const controller = await container.get(BackupArchiveController);
6970
+ if (typeof controller['setStatus'] === 'function') {
6971
+ controller.setStatus(undefined);
6972
+ }
6973
+ await templateService.apiHandler({
6974
+ methodName: 'getBackupArchives',
6975
+ controller,
6976
+ response,
6977
+ next,
6978
+ validatedArgs,
6979
+ successStatus: undefined,
6980
+ });
6981
+ }
6982
+ catch (err) {
6983
+ return next(err);
6984
+ }
6985
+ });
6986
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6987
+ const argsBackupArchiveController_getBackupArchive = {
6988
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6989
+ };
6990
+ app.get('/rest/v0/backup-archives/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupArchiveController)), ...(fetchMiddlewares(BackupArchiveController.prototype.getBackupArchive)), async function BackupArchiveController_getBackupArchive(request, response, next) {
6991
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6992
+ let validatedArgs = [];
6993
+ try {
6994
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupArchiveController_getBackupArchive, request, response });
6995
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6996
+ const controller = await container.get(BackupArchiveController);
6997
+ if (typeof controller['setStatus'] === 'function') {
6998
+ controller.setStatus(undefined);
6999
+ }
7000
+ await templateService.apiHandler({
7001
+ methodName: 'getBackupArchive',
7002
+ controller,
7003
+ response,
7004
+ next,
7005
+ validatedArgs,
7006
+ successStatus: undefined,
7007
+ });
7008
+ }
7009
+ catch (err) {
7010
+ return next(err);
7011
+ }
7012
+ });
7013
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
5494
7014
  const argsAlarmController_getAlarms = {
5495
7015
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5496
7016
  fields: { "in": "query", "name": "fields", "dataType": "string" },