@xen-orchestra/rest-api 0.17.0 → 0.19.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 (47) hide show
  1. package/dist/abstract-classes/base-controller.mjs +20 -0
  2. package/dist/abstract-classes/xapi-xo-controller.mjs +10 -0
  3. package/dist/abstract-classes/xo-controller.mjs +1 -1
  4. package/dist/alarms/alarm.controller.mjs +2 -1
  5. package/dist/backup-archives/backup-archive.controller.mjs +96 -0
  6. package/dist/backup-jobs/backup-job.controller.mjs +3 -1
  7. package/dist/backup-logs/backup-log.controller.mjs +2 -1
  8. package/dist/backup-repositories/backup-repositories.controller.mjs +2 -1
  9. package/dist/groups/group.controller.mjs +26 -1
  10. package/dist/hosts/host.controller.mjs +81 -2
  11. package/dist/index.mjs +3 -2
  12. package/dist/ioc/ioc.mjs +0 -5
  13. package/dist/messages/message.controller.mjs +3 -2
  14. package/dist/middlewares/authentication.middleware.mjs +44 -20
  15. package/dist/networks/network.controller.mjs +81 -2
  16. package/dist/open-api/oa-examples/backup-archive.oa-example.mjs +60 -0
  17. package/dist/open-api/oa-examples/pbd.oa-example.mjs +41 -0
  18. package/dist/open-api/oa-examples/user.oa-example.mjs +12 -0
  19. package/dist/open-api/routes/routes.js +2094 -538
  20. package/dist/pbds/pbd.controller.mjs +60 -0
  21. package/dist/pcis/pci.controller.mjs +2 -1
  22. package/dist/pgpus/pgpu.controller.mjs +2 -1
  23. package/dist/pifs/pif.controller.mjs +50 -1
  24. package/dist/pools/pool.controller.mjs +80 -3
  25. package/dist/proxies/proxy.controller.mjs +2 -1
  26. package/dist/restore-logs/restore-log.controller.mjs +3 -1
  27. package/dist/schedules/schedule.controller.mjs +2 -1
  28. package/dist/servers/server.controller.mjs +26 -2
  29. package/dist/sms/sm.controller.mjs +2 -1
  30. package/dist/srs/sr.controller.mjs +81 -2
  31. package/dist/tasks/task.controller.mjs +2 -1
  32. package/dist/users/user.controller.mjs +80 -31
  33. package/dist/users/user.middleware.mjs +11 -0
  34. package/dist/vbds/vbd.controller.mjs +50 -1
  35. package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +81 -2
  36. package/dist/vdis/vdi.controller.mjs +105 -2
  37. package/dist/vifs/vif.controller.mjs +50 -1
  38. package/dist/vm-controller/vm-controller.controller.mjs +81 -2
  39. package/dist/vm-snapshots/vm-snapshot.controller.mjs +59 -8
  40. package/dist/vm-templates/vm-template.controller.mjs +59 -8
  41. package/dist/vms/vm.controller.mjs +38 -19
  42. package/dist/xoa/xoa.controller.mjs +2 -1
  43. package/open-api/spec/swagger.json +6380 -1008
  44. package/package.json +4 -4
  45. package/tsconfig.json +1 -0
  46. package/tsoa.json +19 -0
  47. 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
@@ -179,7 +183,7 @@ const models = {
179
183
  // WARNING: This 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
184
  "Partial_Unbrand_XoAlarm__": {
181
185
  "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": {} },
186
+ "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
187
  },
184
188
  // WARNING: This 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
189
  "WithHref_Partial_Unbrand_XoAlarm___": {
@@ -412,6 +416,11 @@ const models = {
412
416
  "type": { "ref": "Unbrand_XoVif_", "validators": {} },
413
417
  },
414
418
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
419
+ "Exclude_SUPPORTED_VDI_FORMAT.qcow2_": {
420
+ "dataType": "refAlias",
421
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["raw"] }, { "dataType": "enum", "enums": ["vhd"] }], "validators": {} },
422
+ },
423
+ // WARNING: This 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
424
  "Unbrand_XoVdi_": {
416
425
  "dataType": "refAlias",
417
426
  "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 +534,7 @@ const models = {
525
534
  // WARNING: This 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
535
  "Unbrand_XoSr_": {
527
536
  "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": {} },
537
+ "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
538
  },
530
539
  // WARNING: This 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
540
  "Record_string.number_": {
@@ -819,6 +828,26 @@ const models = {
819
828
  "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
829
  },
821
830
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
831
+ "Partial_Unbrand_XoPbd__": {
832
+ "dataType": "refAlias",
833
+ "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": {} },
834
+ },
835
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
836
+ "WithHref_Partial_Unbrand_XoPbd___": {
837
+ "dataType": "refAlias",
838
+ "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoPbd__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
839
+ },
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
+ "SendObjects_Partial_Unbrand_XoPbd___": {
842
+ "dataType": "refAlias",
843
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoPbd___" } }, { "ref": "NdjsonStream" }], "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
+ "Unbrand_XoPbd_": {
847
+ "dataType": "refAlias",
848
+ "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": {} },
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
822
851
  "Record_string.attaching_": {
823
852
  "dataType": "refAlias",
824
853
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
@@ -1057,9 +1086,29 @@ const models = {
1057
1086
  "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandXoMirrorBackupJob__" } }, { "ref": "NdjsonStream" }], "validators": {} },
1058
1087
  },
1059
1088
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1089
+ "Partial_Unbrand_XoVmBackupArchive__": {
1090
+ "dataType": "refAlias",
1091
+ "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": {} },
1092
+ },
1093
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1094
+ "WithHref_Partial_Unbrand_XoVmBackupArchive___": {
1095
+ "dataType": "refAlias",
1096
+ "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVmBackupArchive__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
1097
+ },
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
+ "SendObjects_Partial_Unbrand_XoVmBackupArchive___": {
1100
+ "dataType": "refAlias",
1101
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoVmBackupArchive___" } }, { "ref": "NdjsonStream" }], "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
+ "Unbrand_XoVmBackupArchive_": {
1105
+ "dataType": "refAlias",
1106
+ "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": {} },
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
1060
1109
  "Partial_UnbrandedXoAlarm_": {
1061
1110
  "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": {} },
1111
+ "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
1112
  },
1064
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
1065
1114
  "WithHref_Partial_UnbrandedXoAlarm__": {
@@ -1074,7 +1123,7 @@ const models = {
1074
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
1075
1124
  "Unbrand_XoAlarm_": {
1076
1125
  "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": {} },
1126
+ "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
1127
  },
1079
1128
  // WARNING: This 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
1129
  "UnbrandedXoAlarm": {
@@ -1759,6 +1808,62 @@ export function RegisterRoutes(app) {
1759
1808
  }
1760
1809
  });
1761
1810
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1811
+ const argsVmController_putVmTag = {
1812
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1813
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
1814
+ };
1815
+ app.put('/rest/v0/vms/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.putVmTag)), async function VmController_putVmTag(request, response, next) {
1816
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1817
+ let validatedArgs = [];
1818
+ try {
1819
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmController_putVmTag, request, response });
1820
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1821
+ const controller = await container.get(VmController);
1822
+ if (typeof controller['setStatus'] === 'function') {
1823
+ controller.setStatus(undefined);
1824
+ }
1825
+ await templateService.apiHandler({
1826
+ methodName: 'putVmTag',
1827
+ controller,
1828
+ response,
1829
+ next,
1830
+ validatedArgs,
1831
+ successStatus: 204,
1832
+ });
1833
+ }
1834
+ catch (err) {
1835
+ return next(err);
1836
+ }
1837
+ });
1838
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1839
+ const argsVmController_deleteVmTag = {
1840
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1841
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
1842
+ };
1843
+ app.delete('/rest/v0/vms/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.deleteVmTag)), async function VmController_deleteVmTag(request, response, next) {
1844
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1845
+ let validatedArgs = [];
1846
+ try {
1847
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmController_deleteVmTag, request, response });
1848
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1849
+ const controller = await container.get(VmController);
1850
+ if (typeof controller['setStatus'] === 'function') {
1851
+ controller.setStatus(undefined);
1852
+ }
1853
+ await templateService.apiHandler({
1854
+ methodName: 'deleteVmTag',
1855
+ controller,
1856
+ response,
1857
+ next,
1858
+ validatedArgs,
1859
+ successStatus: 204,
1860
+ });
1861
+ }
1862
+ catch (err) {
1863
+ return next(err);
1864
+ }
1865
+ });
1866
+ // WARNING: This 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
1867
  const argsVmTemplateController_getVmTemplates = {
1763
1868
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1764
1869
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -1970,6 +2075,94 @@ export function RegisterRoutes(app) {
1970
2075
  }
1971
2076
  });
1972
2077
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2078
+ const argsVmTemplateController_getVmTemplateTasks = {
2079
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2080
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2081
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2082
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2083
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2084
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2085
+ };
2086
+ app.get('/rest/v0/vm-templates/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplateTasks)), async function VmTemplateController_getVmTemplateTasks(request, response, next) {
2087
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2088
+ let validatedArgs = [];
2089
+ try {
2090
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplateTasks, request, response });
2091
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2092
+ const controller = await container.get(VmTemplateController);
2093
+ if (typeof controller['setStatus'] === 'function') {
2094
+ controller.setStatus(undefined);
2095
+ }
2096
+ await templateService.apiHandler({
2097
+ methodName: 'getVmTemplateTasks',
2098
+ controller,
2099
+ response,
2100
+ next,
2101
+ validatedArgs,
2102
+ successStatus: undefined,
2103
+ });
2104
+ }
2105
+ catch (err) {
2106
+ return next(err);
2107
+ }
2108
+ });
2109
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2110
+ const argsVmTemplateController_putVmTemplateTag = {
2111
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2112
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2113
+ };
2114
+ app.put('/rest/v0/vm-templates/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.putVmTemplateTag)), async function VmTemplateController_putVmTemplateTag(request, response, next) {
2115
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2116
+ let validatedArgs = [];
2117
+ try {
2118
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_putVmTemplateTag, request, response });
2119
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2120
+ const controller = await container.get(VmTemplateController);
2121
+ if (typeof controller['setStatus'] === 'function') {
2122
+ controller.setStatus(undefined);
2123
+ }
2124
+ await templateService.apiHandler({
2125
+ methodName: 'putVmTemplateTag',
2126
+ controller,
2127
+ response,
2128
+ next,
2129
+ validatedArgs,
2130
+ successStatus: 204,
2131
+ });
2132
+ }
2133
+ catch (err) {
2134
+ return next(err);
2135
+ }
2136
+ });
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_deleteVmTemplateTag = {
2139
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2140
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2141
+ };
2142
+ app.delete('/rest/v0/vm-templates/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.deleteVmTemplateTag)), async function VmTemplateController_deleteVmTemplateTag(request, response, next) {
2143
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2144
+ let validatedArgs = [];
2145
+ try {
2146
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_deleteVmTemplateTag, request, response });
2147
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2148
+ const controller = await container.get(VmTemplateController);
2149
+ if (typeof controller['setStatus'] === 'function') {
2150
+ controller.setStatus(undefined);
2151
+ }
2152
+ await templateService.apiHandler({
2153
+ methodName: 'deleteVmTemplateTag',
2154
+ controller,
2155
+ response,
2156
+ next,
2157
+ validatedArgs,
2158
+ successStatus: 204,
2159
+ });
2160
+ }
2161
+ catch (err) {
2162
+ return next(err);
2163
+ }
2164
+ });
2165
+ // WARNING: This 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
2166
  const argsVmSnapshotController_getVmSnapshots = {
1974
2167
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1975
2168
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2181,25 +2374,26 @@ export function RegisterRoutes(app) {
2181
2374
  }
2182
2375
  });
2183
2376
  // WARNING: This 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 = {
2377
+ const argsVmSnapshotController_getVmSnapshotTasks = {
2185
2378
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2379
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2186
2380
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2187
2381
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2188
2382
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2189
2383
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2190
2384
  };
2191
- app.get('/rest/v0/vm-controllers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllers)), async function VmControllerController_getVmControllers(request, response, next) {
2385
+ app.get('/rest/v0/vm-snapshots/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshotTasks)), async function VmSnapshotController_getVmSnapshotTasks(request, response, next) {
2192
2386
  // WARNING: This 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
2387
  let validatedArgs = [];
2194
2388
  try {
2195
- validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllers, request, response });
2389
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshotTasks, request, response });
2196
2390
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2197
- const controller = await container.get(VmControllerController);
2391
+ const controller = await container.get(VmSnapshotController);
2198
2392
  if (typeof controller['setStatus'] === 'function') {
2199
2393
  controller.setStatus(undefined);
2200
2394
  }
2201
2395
  await templateService.apiHandler({
2202
- methodName: 'getVmControllers',
2396
+ methodName: 'getVmSnapshotTasks',
2203
2397
  controller,
2204
2398
  response,
2205
2399
  next,
@@ -2212,26 +2406,27 @@ export function RegisterRoutes(app) {
2212
2406
  }
2213
2407
  });
2214
2408
  // WARNING: This 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 = {
2409
+ const argsVmSnapshotController_putVmSnapshotTag = {
2216
2410
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2411
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2217
2412
  };
2218
- app.get('/rest/v0/vm-controllers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmController)), async function VmControllerController_getVmController(request, response, next) {
2413
+ app.put('/rest/v0/vm-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.putVmSnapshotTag)), async function VmSnapshotController_putVmSnapshotTag(request, response, next) {
2219
2414
  // WARNING: This 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
2415
  let validatedArgs = [];
2221
2416
  try {
2222
- validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmController, request, response });
2417
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_putVmSnapshotTag, request, response });
2223
2418
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2224
- const controller = await container.get(VmControllerController);
2419
+ const controller = await container.get(VmSnapshotController);
2225
2420
  if (typeof controller['setStatus'] === 'function') {
2226
2421
  controller.setStatus(undefined);
2227
2422
  }
2228
2423
  await templateService.apiHandler({
2229
- methodName: 'getVmController',
2424
+ methodName: 'putVmSnapshotTag',
2230
2425
  controller,
2231
2426
  response,
2232
2427
  next,
2233
2428
  validatedArgs,
2234
- successStatus: undefined,
2429
+ successStatus: 204,
2235
2430
  });
2236
2431
  }
2237
2432
  catch (err) {
@@ -2239,31 +2434,27 @@ export function RegisterRoutes(app) {
2239
2434
  }
2240
2435
  });
2241
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
2242
- const argsVmControllerController_getVmControllerAlarms = {
2243
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2437
+ const argsVmSnapshotController_deleteVmSnapshotTag = {
2244
2438
  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" },
2439
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2249
2440
  };
2250
- app.get('/rest/v0/vm-controllers/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerAlarms)), async function VmControllerController_getVmControllerAlarms(request, response, next) {
2441
+ app.delete('/rest/v0/vm-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.deleteVmSnapshotTag)), async function VmSnapshotController_deleteVmSnapshotTag(request, response, next) {
2251
2442
  // WARNING: This 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
2443
  let validatedArgs = [];
2253
2444
  try {
2254
- validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerAlarms, request, response });
2445
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_deleteVmSnapshotTag, request, response });
2255
2446
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2256
- const controller = await container.get(VmControllerController);
2447
+ const controller = await container.get(VmSnapshotController);
2257
2448
  if (typeof controller['setStatus'] === 'function') {
2258
2449
  controller.setStatus(undefined);
2259
2450
  }
2260
2451
  await templateService.apiHandler({
2261
- methodName: 'getVmControllerAlarms',
2452
+ methodName: 'deleteVmSnapshotTag',
2262
2453
  controller,
2263
2454
  response,
2264
2455
  next,
2265
2456
  validatedArgs,
2266
- successStatus: undefined,
2457
+ successStatus: 204,
2267
2458
  });
2268
2459
  }
2269
2460
  catch (err) {
@@ -2271,26 +2462,25 @@ export function RegisterRoutes(app) {
2271
2462
  }
2272
2463
  });
2273
2464
  // WARNING: This 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 = {
2465
+ const argsVmControllerController_getVmControllers = {
2275
2466
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2276
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2277
2467
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2278
2468
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2279
2469
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2280
2470
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2281
2471
  };
2282
- app.get('/rest/v0/vm-controllers/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerVdis)), async function VmControllerController_getVmControllerVdis(request, response, next) {
2472
+ app.get('/rest/v0/vm-controllers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllers)), async function VmControllerController_getVmControllers(request, response, next) {
2283
2473
  // WARNING: This 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
2474
  let validatedArgs = [];
2285
2475
  try {
2286
- validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerVdis, request, response });
2476
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllers, request, response });
2287
2477
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2288
2478
  const controller = await container.get(VmControllerController);
2289
2479
  if (typeof controller['setStatus'] === 'function') {
2290
2480
  controller.setStatus(undefined);
2291
2481
  }
2292
2482
  await templateService.apiHandler({
2293
- methodName: 'getVmControllerVdis',
2483
+ methodName: 'getVmControllers',
2294
2484
  controller,
2295
2485
  response,
2296
2486
  next,
@@ -2303,25 +2493,21 @@ export function RegisterRoutes(app) {
2303
2493
  }
2304
2494
  });
2305
2495
  // WARNING: This 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" },
2496
+ const argsVmControllerController_getVmController = {
2497
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2312
2498
  };
2313
- app.get('/rest/v0/vifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifs)), async function VifController_getVifs(request, response, next) {
2499
+ app.get('/rest/v0/vm-controllers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmController)), async function VmControllerController_getVmController(request, response, next) {
2314
2500
  // WARNING: This 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
2501
  let validatedArgs = [];
2316
2502
  try {
2317
- validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifs, request, response });
2503
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmController, request, response });
2318
2504
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2319
- const controller = await container.get(VifController);
2505
+ const controller = await container.get(VmControllerController);
2320
2506
  if (typeof controller['setStatus'] === 'function') {
2321
2507
  controller.setStatus(undefined);
2322
2508
  }
2323
2509
  await templateService.apiHandler({
2324
- methodName: 'getVifs',
2510
+ methodName: 'getVmController',
2325
2511
  controller,
2326
2512
  response,
2327
2513
  next,
@@ -2334,21 +2520,26 @@ export function RegisterRoutes(app) {
2334
2520
  }
2335
2521
  });
2336
2522
  // WARNING: This 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 = {
2523
+ const argsVmControllerController_getVmControllerAlarms = {
2524
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2338
2525
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2526
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2527
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2528
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2529
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2339
2530
  };
2340
- app.get('/rest/v0/vifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVif)), async function VifController_getVif(request, response, next) {
2531
+ app.get('/rest/v0/vm-controllers/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerAlarms)), async function VmControllerController_getVmControllerAlarms(request, response, next) {
2341
2532
  // WARNING: This 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
2533
  let validatedArgs = [];
2343
2534
  try {
2344
- validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVif, request, response });
2535
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerAlarms, request, response });
2345
2536
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2346
- const controller = await container.get(VifController);
2537
+ const controller = await container.get(VmControllerController);
2347
2538
  if (typeof controller['setStatus'] === 'function') {
2348
2539
  controller.setStatus(undefined);
2349
2540
  }
2350
2541
  await templateService.apiHandler({
2351
- methodName: 'getVif',
2542
+ methodName: 'getVmControllerAlarms',
2352
2543
  controller,
2353
2544
  response,
2354
2545
  next,
@@ -2361,7 +2552,7 @@ export function RegisterRoutes(app) {
2361
2552
  }
2362
2553
  });
2363
2554
  // WARNING: This 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 = {
2555
+ const argsVmControllerController_getVmControllerVdis = {
2365
2556
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2366
2557
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2367
2558
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2369,18 +2560,18 @@ export function RegisterRoutes(app) {
2369
2560
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2370
2561
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2371
2562
  };
2372
- app.get('/rest/v0/vifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifAlarms)), async function VifController_getVifAlarms(request, response, next) {
2563
+ app.get('/rest/v0/vm-controllers/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerVdis)), async function VmControllerController_getVmControllerVdis(request, response, next) {
2373
2564
  // WARNING: This 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
2565
  let validatedArgs = [];
2375
2566
  try {
2376
- validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifAlarms, request, response });
2567
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerVdis, request, response });
2377
2568
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2378
- const controller = await container.get(VifController);
2569
+ const controller = await container.get(VmControllerController);
2379
2570
  if (typeof controller['setStatus'] === 'function') {
2380
2571
  controller.setStatus(undefined);
2381
2572
  }
2382
2573
  await templateService.apiHandler({
2383
- methodName: 'getVifAlarms',
2574
+ methodName: 'getVmControllerVdis',
2384
2575
  controller,
2385
2576
  response,
2386
2577
  next,
@@ -2393,25 +2584,26 @@ export function RegisterRoutes(app) {
2393
2584
  }
2394
2585
  });
2395
2586
  // WARNING: This 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 = {
2587
+ const argsVmControllerController_getVmControllerMessages = {
2397
2588
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2589
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2398
2590
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2399
2591
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2400
2592
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2401
2593
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2402
2594
  };
2403
- app.get('/rest/v0/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdis)), async function VdiController_getVdis(request, response, next) {
2595
+ app.get('/rest/v0/vm-controllers/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerMessages)), async function VmControllerController_getVmControllerMessages(request, response, next) {
2404
2596
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2405
2597
  let validatedArgs = [];
2406
2598
  try {
2407
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdis, request, response });
2599
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerMessages, request, response });
2408
2600
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2409
- const controller = await container.get(VdiController);
2601
+ const controller = await container.get(VmControllerController);
2410
2602
  if (typeof controller['setStatus'] === 'function') {
2411
2603
  controller.setStatus(undefined);
2412
2604
  }
2413
2605
  await templateService.apiHandler({
2414
- methodName: 'getVdis',
2606
+ methodName: 'getVmControllerMessages',
2415
2607
  controller,
2416
2608
  response,
2417
2609
  next,
@@ -2424,28 +2616,31 @@ export function RegisterRoutes(app) {
2424
2616
  }
2425
2617
  });
2426
2618
  // WARNING: This 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 = {
2619
+ const argsVmControllerController_getVmControllerTasks = {
2428
2620
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2429
2621
  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"] }] },
2622
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2623
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2624
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2625
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2431
2626
  };
2432
- app.get('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.exportVdiContent)), async function VdiController_exportVdiContent(request, response, next) {
2627
+ app.get('/rest/v0/vm-controllers/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerTasks)), async function VmControllerController_getVmControllerTasks(request, response, next) {
2433
2628
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2434
2629
  let validatedArgs = [];
2435
2630
  try {
2436
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_exportVdiContent, request, response });
2631
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerTasks, request, response });
2437
2632
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2438
- const controller = await container.get(VdiController);
2633
+ const controller = await container.get(VmControllerController);
2439
2634
  if (typeof controller['setStatus'] === 'function') {
2440
2635
  controller.setStatus(undefined);
2441
2636
  }
2442
2637
  await templateService.apiHandler({
2443
- methodName: 'exportVdiContent',
2638
+ methodName: 'getVmControllerTasks',
2444
2639
  controller,
2445
2640
  response,
2446
2641
  next,
2447
2642
  validatedArgs,
2448
- successStatus: 200,
2643
+ successStatus: undefined,
2449
2644
  });
2450
2645
  }
2451
2646
  catch (err) {
@@ -2453,26 +2648,27 @@ export function RegisterRoutes(app) {
2453
2648
  }
2454
2649
  });
2455
2650
  // WARNING: This 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 = {
2651
+ const argsVmControllerController_putVmControllerTag = {
2457
2652
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2653
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2458
2654
  };
2459
- app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
2655
+ app.put('/rest/v0/vm-controllers/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.putVmControllerTag)), async function VmControllerController_putVmControllerTag(request, response, next) {
2460
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
2461
2657
  let validatedArgs = [];
2462
2658
  try {
2463
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
2659
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_putVmControllerTag, request, response });
2464
2660
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2465
- const controller = await container.get(VdiController);
2661
+ const controller = await container.get(VmControllerController);
2466
2662
  if (typeof controller['setStatus'] === 'function') {
2467
2663
  controller.setStatus(undefined);
2468
2664
  }
2469
2665
  await templateService.apiHandler({
2470
- methodName: 'getVdi',
2666
+ methodName: 'putVmControllerTag',
2471
2667
  controller,
2472
2668
  response,
2473
2669
  next,
2474
2670
  validatedArgs,
2475
- successStatus: undefined,
2671
+ successStatus: 204,
2476
2672
  });
2477
2673
  }
2478
2674
  catch (err) {
@@ -2480,31 +2676,27 @@ export function RegisterRoutes(app) {
2480
2676
  }
2481
2677
  });
2482
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
2483
- const argsVdiController_getVdiAlarms = {
2484
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2679
+ const argsVmControllerController_deleteVmControllerTag = {
2485
2680
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2486
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2487
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2488
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2489
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2681
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2490
2682
  };
2491
- app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
2683
+ app.delete('/rest/v0/vm-controllers/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.deleteVmControllerTag)), async function VmControllerController_deleteVmControllerTag(request, response, next) {
2492
2684
  // WARNING: This 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
2685
  let validatedArgs = [];
2494
2686
  try {
2495
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
2687
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_deleteVmControllerTag, request, response });
2496
2688
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2497
- const controller = await container.get(VdiController);
2689
+ const controller = await container.get(VmControllerController);
2498
2690
  if (typeof controller['setStatus'] === 'function') {
2499
2691
  controller.setStatus(undefined);
2500
2692
  }
2501
2693
  await templateService.apiHandler({
2502
- methodName: 'getVdiAlarms',
2694
+ methodName: 'deleteVmControllerTag',
2503
2695
  controller,
2504
2696
  response,
2505
2697
  next,
2506
2698
  validatedArgs,
2507
- successStatus: undefined,
2699
+ successStatus: 204,
2508
2700
  });
2509
2701
  }
2510
2702
  catch (err) {
@@ -2512,26 +2704,30 @@ export function RegisterRoutes(app) {
2512
2704
  }
2513
2705
  });
2514
2706
  // WARNING: This 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 = {
2516
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2707
+ const argsVifController_getVifs = {
2708
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2709
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2710
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2711
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2712
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2517
2713
  };
2518
- app.delete('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdi)), async function VdiController_deleteVdi(request, response, next) {
2714
+ app.get('/rest/v0/vifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifs)), async function VifController_getVifs(request, response, next) {
2519
2715
  // WARNING: This 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
2716
  let validatedArgs = [];
2521
2717
  try {
2522
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdi, request, response });
2718
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifs, request, response });
2523
2719
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2524
- const controller = await container.get(VdiController);
2720
+ const controller = await container.get(VifController);
2525
2721
  if (typeof controller['setStatus'] === 'function') {
2526
2722
  controller.setStatus(undefined);
2527
2723
  }
2528
2724
  await templateService.apiHandler({
2529
- methodName: 'deleteVdi',
2725
+ methodName: 'getVifs',
2530
2726
  controller,
2531
2727
  response,
2532
2728
  next,
2533
2729
  validatedArgs,
2534
- successStatus: 204,
2730
+ successStatus: undefined,
2535
2731
  });
2536
2732
  }
2537
2733
  catch (err) {
@@ -2539,25 +2735,21 @@ export function RegisterRoutes(app) {
2539
2735
  }
2540
2736
  });
2541
2737
  // WARNING: This 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 = {
2543
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2544
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2545
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2546
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2547
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2738
+ const argsVifController_getVif = {
2739
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2548
2740
  };
2549
- app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
2741
+ app.get('/rest/v0/vifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVif)), async function VifController_getVif(request, response, next) {
2550
2742
  // WARNING: This 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
2743
  let validatedArgs = [];
2552
2744
  try {
2553
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
2745
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVif, request, response });
2554
2746
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2555
- const controller = await container.get(VdiSnapshotController);
2747
+ const controller = await container.get(VifController);
2556
2748
  if (typeof controller['setStatus'] === 'function') {
2557
2749
  controller.setStatus(undefined);
2558
2750
  }
2559
2751
  await templateService.apiHandler({
2560
- methodName: 'getVdiSnapshots',
2752
+ methodName: 'getVif',
2561
2753
  controller,
2562
2754
  response,
2563
2755
  next,
@@ -2570,28 +2762,31 @@ export function RegisterRoutes(app) {
2570
2762
  }
2571
2763
  });
2572
2764
  // WARNING: This 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 = {
2765
+ const argsVifController_getVifAlarms = {
2574
2766
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2575
2767
  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"] }] },
2768
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2769
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2770
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2771
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2577
2772
  };
2578
- app.get('/rest/v0/vdi-snapshots/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.exportVdiSnapshotContent)), async function VdiSnapshotController_exportVdiSnapshotContent(request, response, next) {
2773
+ app.get('/rest/v0/vifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifAlarms)), async function VifController_getVifAlarms(request, response, next) {
2579
2774
  // WARNING: This 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
2775
  let validatedArgs = [];
2581
2776
  try {
2582
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_exportVdiSnapshotContent, request, response });
2777
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifAlarms, request, response });
2583
2778
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2584
- const controller = await container.get(VdiSnapshotController);
2779
+ const controller = await container.get(VifController);
2585
2780
  if (typeof controller['setStatus'] === 'function') {
2586
2781
  controller.setStatus(undefined);
2587
2782
  }
2588
2783
  await templateService.apiHandler({
2589
- methodName: 'exportVdiSnapshotContent',
2784
+ methodName: 'getVifAlarms',
2590
2785
  controller,
2591
2786
  response,
2592
2787
  next,
2593
2788
  validatedArgs,
2594
- successStatus: 200,
2789
+ successStatus: undefined,
2595
2790
  });
2596
2791
  }
2597
2792
  catch (err) {
@@ -2599,21 +2794,26 @@ export function RegisterRoutes(app) {
2599
2794
  }
2600
2795
  });
2601
2796
  // WARNING: This 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 = {
2797
+ const argsVifController_getVifMessages = {
2798
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2603
2799
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2800
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2801
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2802
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2803
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2604
2804
  };
2605
- app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
2805
+ app.get('/rest/v0/vifs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifMessages)), async function VifController_getVifMessages(request, response, next) {
2606
2806
  // WARNING: This 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
2807
  let validatedArgs = [];
2608
2808
  try {
2609
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
2809
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifMessages, request, response });
2610
2810
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2611
- const controller = await container.get(VdiSnapshotController);
2811
+ const controller = await container.get(VifController);
2612
2812
  if (typeof controller['setStatus'] === 'function') {
2613
2813
  controller.setStatus(undefined);
2614
2814
  }
2615
2815
  await templateService.apiHandler({
2616
- methodName: 'getVdiSnapshot',
2816
+ methodName: 'getVifMessages',
2617
2817
  controller,
2618
2818
  response,
2619
2819
  next,
@@ -2626,7 +2826,7 @@ export function RegisterRoutes(app) {
2626
2826
  }
2627
2827
  });
2628
2828
  // WARNING: This 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 = {
2829
+ const argsVifController_getVifTasks = {
2630
2830
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2631
2831
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2632
2832
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2634,18 +2834,18 @@ export function RegisterRoutes(app) {
2634
2834
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2635
2835
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2636
2836
  };
2637
- app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
2837
+ app.get('/rest/v0/vifs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifTasks)), async function VifController_getVifTasks(request, response, next) {
2638
2838
  // WARNING: This 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
2839
  let validatedArgs = [];
2640
2840
  try {
2641
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
2841
+ validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifTasks, request, response });
2642
2842
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2643
- const controller = await container.get(VdiSnapshotController);
2843
+ const controller = await container.get(VifController);
2644
2844
  if (typeof controller['setStatus'] === 'function') {
2645
2845
  controller.setStatus(undefined);
2646
2846
  }
2647
2847
  await templateService.apiHandler({
2648
- methodName: 'getVdiSnapshotAlarms',
2848
+ methodName: 'getVifTasks',
2649
2849
  controller,
2650
2850
  response,
2651
2851
  next,
@@ -2658,26 +2858,30 @@ export function RegisterRoutes(app) {
2658
2858
  }
2659
2859
  });
2660
2860
  // WARNING: This 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 = {
2662
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2861
+ const argsVdiController_getVdis = {
2862
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2863
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2864
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2865
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2866
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2663
2867
  };
2664
- app.delete('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshot)), async function VdiSnapshotController_deleteVdiSnapshot(request, response, next) {
2868
+ app.get('/rest/v0/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdis)), async function VdiController_getVdis(request, response, next) {
2665
2869
  // WARNING: This 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
2870
  let validatedArgs = [];
2667
2871
  try {
2668
- validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshot, request, response });
2872
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdis, request, response });
2669
2873
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2670
- const controller = await container.get(VdiSnapshotController);
2874
+ const controller = await container.get(VdiController);
2671
2875
  if (typeof controller['setStatus'] === 'function') {
2672
2876
  controller.setStatus(undefined);
2673
2877
  }
2674
2878
  await templateService.apiHandler({
2675
- methodName: 'deleteVdiSnapshot',
2879
+ methodName: 'getVdis',
2676
2880
  controller,
2677
2881
  response,
2678
2882
  next,
2679
2883
  validatedArgs,
2680
- successStatus: 204,
2884
+ successStatus: undefined,
2681
2885
  });
2682
2886
  }
2683
2887
  catch (err) {
@@ -2685,30 +2889,28 @@ export function RegisterRoutes(app) {
2685
2889
  }
2686
2890
  });
2687
2891
  // WARNING: This 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 = {
2892
+ const argsVdiController_exportVdiContent = {
2689
2893
  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" },
2894
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2895
+ format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
2694
2896
  };
2695
- app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
2897
+ app.get('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.exportVdiContent)), async function VdiController_exportVdiContent(request, response, next) {
2696
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
2697
2899
  let validatedArgs = [];
2698
2900
  try {
2699
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
2901
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_exportVdiContent, request, response });
2700
2902
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2701
- const controller = await container.get(VbdController);
2903
+ const controller = await container.get(VdiController);
2702
2904
  if (typeof controller['setStatus'] === 'function') {
2703
2905
  controller.setStatus(undefined);
2704
2906
  }
2705
2907
  await templateService.apiHandler({
2706
- methodName: 'getVbds',
2908
+ methodName: 'exportVdiContent',
2707
2909
  controller,
2708
2910
  response,
2709
2911
  next,
2710
2912
  validatedArgs,
2711
- successStatus: undefined,
2913
+ successStatus: 200,
2712
2914
  });
2713
2915
  }
2714
2916
  catch (err) {
@@ -2716,26 +2918,28 @@ export function RegisterRoutes(app) {
2716
2918
  }
2717
2919
  });
2718
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
2719
- const argsVbdController_getVbd = {
2921
+ const argsVdiController_importVdiContent = {
2922
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2720
2923
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2924
+ format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
2721
2925
  };
2722
- app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
2926
+ app.put('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.importVdiContent)), async function VdiController_importVdiContent(request, response, next) {
2723
2927
  // WARNING: This 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
2928
  let validatedArgs = [];
2725
2929
  try {
2726
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
2930
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_importVdiContent, request, response });
2727
2931
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2728
- const controller = await container.get(VbdController);
2932
+ const controller = await container.get(VdiController);
2729
2933
  if (typeof controller['setStatus'] === 'function') {
2730
2934
  controller.setStatus(undefined);
2731
2935
  }
2732
2936
  await templateService.apiHandler({
2733
- methodName: 'getVbd',
2937
+ methodName: 'importVdiContent',
2734
2938
  controller,
2735
2939
  response,
2736
2940
  next,
2737
2941
  validatedArgs,
2738
- successStatus: undefined,
2942
+ successStatus: 204,
2739
2943
  });
2740
2944
  }
2741
2945
  catch (err) {
@@ -2743,26 +2947,21 @@ export function RegisterRoutes(app) {
2743
2947
  }
2744
2948
  });
2745
2949
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2746
- const argsVbdController_getVbdAlarms = {
2747
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2950
+ const argsVdiController_getVdi = {
2748
2951
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2749
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2750
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2751
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2752
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2753
2952
  };
2754
- app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
2953
+ app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
2755
2954
  // WARNING: This 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
2955
  let validatedArgs = [];
2757
2956
  try {
2758
- validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
2957
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
2759
2958
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2760
- const controller = await container.get(VbdController);
2959
+ const controller = await container.get(VdiController);
2761
2960
  if (typeof controller['setStatus'] === 'function') {
2762
2961
  controller.setStatus(undefined);
2763
2962
  }
2764
2963
  await templateService.apiHandler({
2765
- methodName: 'getVbdAlarms',
2964
+ methodName: 'getVdi',
2766
2965
  controller,
2767
2966
  response,
2768
2967
  next,
@@ -2775,25 +2974,26 @@ export function RegisterRoutes(app) {
2775
2974
  }
2776
2975
  });
2777
2976
  // WARNING: This 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 = {
2977
+ const argsVdiController_getVdiAlarms = {
2779
2978
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2979
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2780
2980
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2781
2981
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2782
2982
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2783
2983
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2784
2984
  };
2785
- app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
2985
+ app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
2786
2986
  // WARNING: This 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
2987
  let validatedArgs = [];
2788
2988
  try {
2789
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
2989
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
2790
2990
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2791
- const controller = await container.get(UserController);
2991
+ const controller = await container.get(VdiController);
2792
2992
  if (typeof controller['setStatus'] === 'function') {
2793
2993
  controller.setStatus(undefined);
2794
2994
  }
2795
2995
  await templateService.apiHandler({
2796
- methodName: 'getUsers',
2996
+ methodName: 'getVdiAlarms',
2797
2997
  controller,
2798
2998
  response,
2799
2999
  next,
@@ -2806,26 +3006,26 @@ export function RegisterRoutes(app) {
2806
3006
  }
2807
3007
  });
2808
3008
  // WARNING: This 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 = {
2810
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3009
+ const argsVdiController_deleteVdi = {
3010
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2811
3011
  };
2812
- app.get('/rest/v0/users/me', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.redirectMe)), async function UserController_redirectMe(request, response, next) {
3012
+ app.delete('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdi)), async function VdiController_deleteVdi(request, response, next) {
2813
3013
  // WARNING: This 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
3014
  let validatedArgs = [];
2815
3015
  try {
2816
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_redirectMe, request, response });
3016
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdi, request, response });
2817
3017
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2818
- const controller = await container.get(UserController);
3018
+ const controller = await container.get(VdiController);
2819
3019
  if (typeof controller['setStatus'] === 'function') {
2820
3020
  controller.setStatus(undefined);
2821
3021
  }
2822
3022
  await templateService.apiHandler({
2823
- methodName: 'redirectMe',
3023
+ methodName: 'deleteVdi',
2824
3024
  controller,
2825
3025
  response,
2826
3026
  next,
2827
3027
  validatedArgs,
2828
- successStatus: 307,
3028
+ successStatus: 204,
2829
3029
  });
2830
3030
  }
2831
3031
  catch (err) {
@@ -2833,26 +3033,31 @@ export function RegisterRoutes(app) {
2833
3033
  }
2834
3034
  });
2835
3035
  // WARNING: This 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 = {
3036
+ const argsVdiController_getVdiMessages = {
2837
3037
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3038
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3039
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3040
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3041
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3042
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2838
3043
  };
2839
- app.get('/rest/v0/users/me/*', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.redirectMeWithPath)), async function UserController_redirectMeWithPath(request, response, next) {
3044
+ app.get('/rest/v0/vdis/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiMessages)), async function VdiController_getVdiMessages(request, response, next) {
2840
3045
  // WARNING: This 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
3046
  let validatedArgs = [];
2842
3047
  try {
2843
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_redirectMeWithPath, request, response });
3048
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiMessages, request, response });
2844
3049
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2845
- const controller = await container.get(UserController);
3050
+ const controller = await container.get(VdiController);
2846
3051
  if (typeof controller['setStatus'] === 'function') {
2847
3052
  controller.setStatus(undefined);
2848
3053
  }
2849
3054
  await templateService.apiHandler({
2850
- methodName: 'redirectMeWithPath',
3055
+ methodName: 'getVdiMessages',
2851
3056
  controller,
2852
3057
  response,
2853
3058
  next,
2854
3059
  validatedArgs,
2855
- successStatus: 307,
3060
+ successStatus: undefined,
2856
3061
  });
2857
3062
  }
2858
3063
  catch (err) {
@@ -2860,21 +3065,26 @@ export function RegisterRoutes(app) {
2860
3065
  }
2861
3066
  });
2862
3067
  // WARNING: This 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 = {
3068
+ const argsVdiController_getVdiTasks = {
3069
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2864
3070
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3071
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3072
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3073
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3074
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2865
3075
  };
2866
- app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
3076
+ app.get('/rest/v0/vdis/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiTasks)), async function VdiController_getVdiTasks(request, response, next) {
2867
3077
  // WARNING: This 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
3078
  let validatedArgs = [];
2869
3079
  try {
2870
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
3080
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiTasks, request, response });
2871
3081
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2872
- const controller = await container.get(UserController);
3082
+ const controller = await container.get(VdiController);
2873
3083
  if (typeof controller['setStatus'] === 'function') {
2874
3084
  controller.setStatus(undefined);
2875
3085
  }
2876
3086
  await templateService.apiHandler({
2877
- methodName: 'getUser',
3087
+ methodName: 'getVdiTasks',
2878
3088
  controller,
2879
3089
  response,
2880
3090
  next,
@@ -2887,22 +3097,22 @@ export function RegisterRoutes(app) {
2887
3097
  }
2888
3098
  });
2889
3099
  // WARNING: This 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 = {
3100
+ const argsVdiController_putVdiTag = {
2891
3101
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2892
- body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
3102
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2893
3103
  };
2894
- app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
3104
+ app.put('/rest/v0/vdis/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.putVdiTag)), async function VdiController_putVdiTag(request, response, next) {
2895
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
2896
3106
  let validatedArgs = [];
2897
3107
  try {
2898
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
3108
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_putVdiTag, request, response });
2899
3109
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2900
- const controller = await container.get(UserController);
3110
+ const controller = await container.get(VdiController);
2901
3111
  if (typeof controller['setStatus'] === 'function') {
2902
3112
  controller.setStatus(undefined);
2903
3113
  }
2904
3114
  await templateService.apiHandler({
2905
- methodName: 'updateUser',
3115
+ methodName: 'putVdiTag',
2906
3116
  controller,
2907
3117
  response,
2908
3118
  next,
@@ -2915,26 +3125,27 @@ export function RegisterRoutes(app) {
2915
3125
  }
2916
3126
  });
2917
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
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 } } },
3128
+ const argsVdiController_deleteVdiTag = {
3129
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3130
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
2920
3131
  };
2921
- app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
3132
+ app.delete('/rest/v0/vdis/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdiTag)), async function VdiController_deleteVdiTag(request, response, next) {
2922
3133
  // WARNING: This 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
3134
  let validatedArgs = [];
2924
3135
  try {
2925
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
3136
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdiTag, request, response });
2926
3137
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2927
- const controller = await container.get(UserController);
3138
+ const controller = await container.get(VdiController);
2928
3139
  if (typeof controller['setStatus'] === 'function') {
2929
3140
  controller.setStatus(undefined);
2930
3141
  }
2931
3142
  await templateService.apiHandler({
2932
- methodName: 'createUser',
3143
+ methodName: 'deleteVdiTag',
2933
3144
  controller,
2934
3145
  response,
2935
3146
  next,
2936
3147
  validatedArgs,
2937
- successStatus: 201,
3148
+ successStatus: 204,
2938
3149
  });
2939
3150
  }
2940
3151
  catch (err) {
@@ -2942,26 +3153,30 @@ export function RegisterRoutes(app) {
2942
3153
  }
2943
3154
  });
2944
3155
  // WARNING: This 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" },
3156
+ const argsVdiSnapshotController_getVdiSnapshots = {
3157
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3158
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3159
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3160
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3161
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2947
3162
  };
2948
- app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
3163
+ app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
2949
3164
  // WARNING: This 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
3165
  let validatedArgs = [];
2951
3166
  try {
2952
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
3167
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
2953
3168
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2954
- const controller = await container.get(UserController);
3169
+ const controller = await container.get(VdiSnapshotController);
2955
3170
  if (typeof controller['setStatus'] === 'function') {
2956
3171
  controller.setStatus(undefined);
2957
3172
  }
2958
3173
  await templateService.apiHandler({
2959
- methodName: 'deleteUser',
3174
+ methodName: 'getVdiSnapshots',
2960
3175
  controller,
2961
3176
  response,
2962
3177
  next,
2963
3178
  validatedArgs,
2964
- successStatus: 204,
3179
+ successStatus: undefined,
2965
3180
  });
2966
3181
  }
2967
3182
  catch (err) {
@@ -2969,31 +3184,28 @@ export function RegisterRoutes(app) {
2969
3184
  }
2970
3185
  });
2971
3186
  // WARNING: This 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 = {
3187
+ const argsVdiSnapshotController_exportVdiSnapshotContent = {
2973
3188
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2974
3189
  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" },
3190
+ format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
2979
3191
  };
2980
- app.get('/rest/v0/users/:id/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserGroups)), async function UserController_getUserGroups(request, response, next) {
3192
+ app.get('/rest/v0/vdi-snapshots/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.exportVdiSnapshotContent)), async function VdiSnapshotController_exportVdiSnapshotContent(request, response, next) {
2981
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
2982
3194
  let validatedArgs = [];
2983
3195
  try {
2984
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserGroups, request, response });
3196
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_exportVdiSnapshotContent, request, response });
2985
3197
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2986
- const controller = await container.get(UserController);
3198
+ const controller = await container.get(VdiSnapshotController);
2987
3199
  if (typeof controller['setStatus'] === 'function') {
2988
3200
  controller.setStatus(undefined);
2989
3201
  }
2990
3202
  await templateService.apiHandler({
2991
- methodName: 'getUserGroups',
3203
+ methodName: 'exportVdiSnapshotContent',
2992
3204
  controller,
2993
3205
  response,
2994
3206
  next,
2995
3207
  validatedArgs,
2996
- successStatus: undefined,
3208
+ successStatus: 200,
2997
3209
  });
2998
3210
  }
2999
3211
  catch (err) {
@@ -3001,24 +3213,21 @@ export function RegisterRoutes(app) {
3001
3213
  }
3002
3214
  });
3003
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
3004
- const argsUserController_getAuthenticationTokens = {
3005
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3216
+ const argsVdiSnapshotController_getVdiSnapshot = {
3006
3217
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3007
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3008
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3009
3218
  };
3010
- app.get('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getAuthenticationTokens)), async function UserController_getAuthenticationTokens(request, response, next) {
3219
+ app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
3011
3220
  // WARNING: This 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
3221
  let validatedArgs = [];
3013
3222
  try {
3014
- validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAuthenticationTokens, request, response });
3223
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
3015
3224
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3016
- const controller = await container.get(UserController);
3225
+ const controller = await container.get(VdiSnapshotController);
3017
3226
  if (typeof controller['setStatus'] === 'function') {
3018
3227
  controller.setStatus(undefined);
3019
3228
  }
3020
3229
  await templateService.apiHandler({
3021
- methodName: 'getAuthenticationTokens',
3230
+ methodName: 'getVdiSnapshot',
3022
3231
  controller,
3023
3232
  response,
3024
3233
  next,
@@ -3031,26 +3240,26 @@ export function RegisterRoutes(app) {
3031
3240
  }
3032
3241
  });
3033
3242
  // WARNING: This 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 = {
3243
+ const argsVdiSnapshotController_getVdiSnapshotAlarms = {
3035
3244
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3245
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3036
3246
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3037
3247
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3038
- watch: { "in": "query", "name": "watch", "dataType": "boolean" },
3039
3248
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3040
3249
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3041
3250
  };
3042
- app.get('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTasks)), async function TaskController_getTasks(request, response, next) {
3251
+ app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
3043
3252
  // WARNING: This 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
3253
  let validatedArgs = [];
3045
3254
  try {
3046
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTasks, request, response });
3255
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
3047
3256
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3048
- const controller = await container.get(TaskController);
3257
+ const controller = await container.get(VdiSnapshotController);
3049
3258
  if (typeof controller['setStatus'] === 'function') {
3050
3259
  controller.setStatus(undefined);
3051
3260
  }
3052
3261
  await templateService.apiHandler({
3053
- methodName: 'getTasks',
3262
+ methodName: 'getVdiSnapshotAlarms',
3054
3263
  controller,
3055
3264
  response,
3056
3265
  next,
@@ -3063,28 +3272,26 @@ export function RegisterRoutes(app) {
3063
3272
  }
3064
3273
  });
3065
3274
  // WARNING: This 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 = {
3067
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3275
+ const argsVdiSnapshotController_deleteVdiSnapshot = {
3068
3276
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3069
- wait: { "in": "query", "name": "wait", "dataType": "boolean" },
3070
3277
  };
3071
- app.get('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTask)), async function TaskController_getTask(request, response, next) {
3278
+ app.delete('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshot)), async function VdiSnapshotController_deleteVdiSnapshot(request, response, next) {
3072
3279
  // WARNING: This 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
3280
  let validatedArgs = [];
3074
3281
  try {
3075
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
3282
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshot, request, response });
3076
3283
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3077
- const controller = await container.get(TaskController);
3284
+ const controller = await container.get(VdiSnapshotController);
3078
3285
  if (typeof controller['setStatus'] === 'function') {
3079
3286
  controller.setStatus(undefined);
3080
3287
  }
3081
3288
  await templateService.apiHandler({
3082
- methodName: 'getTask',
3289
+ methodName: 'deleteVdiSnapshot',
3083
3290
  controller,
3084
3291
  response,
3085
3292
  next,
3086
3293
  validatedArgs,
3087
- successStatus: undefined,
3294
+ successStatus: 204,
3088
3295
  });
3089
3296
  }
3090
3297
  catch (err) {
@@ -3092,24 +3299,31 @@ export function RegisterRoutes(app) {
3092
3299
  }
3093
3300
  });
3094
3301
  // WARNING: This 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) {
3302
+ const argsVdiSnapshotController_getVdiSnapshotMessages = {
3303
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3304
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3305
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3306
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3307
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3308
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3309
+ };
3310
+ app.get('/rest/v0/vdi-snapshots/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotMessages)), async function VdiSnapshotController_getVdiSnapshotMessages(request, response, next) {
3097
3311
  // WARNING: This 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
3312
  let validatedArgs = [];
3099
3313
  try {
3100
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTasks, request, response });
3314
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotMessages, request, response });
3101
3315
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3102
- const controller = await container.get(TaskController);
3316
+ const controller = await container.get(VdiSnapshotController);
3103
3317
  if (typeof controller['setStatus'] === 'function') {
3104
3318
  controller.setStatus(undefined);
3105
3319
  }
3106
3320
  await templateService.apiHandler({
3107
- methodName: 'deleteTasks',
3321
+ methodName: 'getVdiSnapshotMessages',
3108
3322
  controller,
3109
3323
  response,
3110
3324
  next,
3111
3325
  validatedArgs,
3112
- successStatus: 204,
3326
+ successStatus: undefined,
3113
3327
  });
3114
3328
  }
3115
3329
  catch (err) {
@@ -3117,26 +3331,31 @@ export function RegisterRoutes(app) {
3117
3331
  }
3118
3332
  });
3119
3333
  // WARNING: This 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 = {
3334
+ const argsVdiSnapshotController_getVdiSnapshotTasks = {
3335
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3121
3336
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3337
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3338
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3339
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3340
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3122
3341
  };
3123
- app.delete('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTask)), async function TaskController_deleteTask(request, response, next) {
3342
+ app.get('/rest/v0/vdi-snapshots/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotTasks)), async function VdiSnapshotController_getVdiSnapshotTasks(request, response, next) {
3124
3343
  // WARNING: This 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
3344
  let validatedArgs = [];
3126
3345
  try {
3127
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTask, request, response });
3346
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotTasks, request, response });
3128
3347
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3129
- const controller = await container.get(TaskController);
3348
+ const controller = await container.get(VdiSnapshotController);
3130
3349
  if (typeof controller['setStatus'] === 'function') {
3131
3350
  controller.setStatus(undefined);
3132
3351
  }
3133
3352
  await templateService.apiHandler({
3134
- methodName: 'deleteTask',
3353
+ methodName: 'getVdiSnapshotTasks',
3135
3354
  controller,
3136
3355
  response,
3137
3356
  next,
3138
3357
  validatedArgs,
3139
- successStatus: 204,
3358
+ successStatus: undefined,
3140
3359
  });
3141
3360
  }
3142
3361
  catch (err) {
@@ -3144,27 +3363,27 @@ export function RegisterRoutes(app) {
3144
3363
  }
3145
3364
  });
3146
3365
  // WARNING: This 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 = {
3366
+ const argsVdiSnapshotController_putVdiSnapshotTag = {
3148
3367
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3149
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3368
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
3150
3369
  };
3151
- app.post('/rest/v0/tasks/:id/actions/abort', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.abortTask)), async function TaskController_abortTask(request, response, next) {
3370
+ app.put('/rest/v0/vdi-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.putVdiSnapshotTag)), async function VdiSnapshotController_putVdiSnapshotTag(request, response, next) {
3152
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
3153
3372
  let validatedArgs = [];
3154
3373
  try {
3155
- validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_abortTask, request, response });
3374
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_putVdiSnapshotTag, request, response });
3156
3375
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3157
- const controller = await container.get(TaskController);
3376
+ const controller = await container.get(VdiSnapshotController);
3158
3377
  if (typeof controller['setStatus'] === 'function') {
3159
3378
  controller.setStatus(undefined);
3160
3379
  }
3161
3380
  await templateService.apiHandler({
3162
- methodName: 'abortTask',
3381
+ methodName: 'putVdiSnapshotTag',
3163
3382
  controller,
3164
3383
  response,
3165
3384
  next,
3166
3385
  validatedArgs,
3167
- successStatus: 202,
3386
+ successStatus: 204,
3168
3387
  });
3169
3388
  }
3170
3389
  catch (err) {
@@ -3172,30 +3391,27 @@ export function RegisterRoutes(app) {
3172
3391
  }
3173
3392
  });
3174
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
3175
- const argsSrController_getSrs = {
3176
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3177
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3178
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3179
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3180
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3394
+ const argsVdiSnapshotController_deleteVdiSnapshotTag = {
3395
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3396
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
3181
3397
  };
3182
- app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
3398
+ app.delete('/rest/v0/vdi-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshotTag)), async function VdiSnapshotController_deleteVdiSnapshotTag(request, response, next) {
3183
3399
  // WARNING: This 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
3400
  let validatedArgs = [];
3185
3401
  try {
3186
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
3402
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshotTag, request, response });
3187
3403
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3188
- const controller = await container.get(SrController);
3404
+ const controller = await container.get(VdiSnapshotController);
3189
3405
  if (typeof controller['setStatus'] === 'function') {
3190
3406
  controller.setStatus(undefined);
3191
3407
  }
3192
3408
  await templateService.apiHandler({
3193
- methodName: 'getSrs',
3409
+ methodName: 'deleteVdiSnapshotTag',
3194
3410
  controller,
3195
3411
  response,
3196
3412
  next,
3197
3413
  validatedArgs,
3198
- successStatus: undefined,
3414
+ successStatus: 204,
3199
3415
  });
3200
3416
  }
3201
3417
  catch (err) {
@@ -3203,21 +3419,25 @@ export function RegisterRoutes(app) {
3203
3419
  }
3204
3420
  });
3205
3421
  // WARNING: This 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 = {
3207
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3422
+ const argsVbdController_getVbds = {
3423
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3424
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3425
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3426
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3427
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3208
3428
  };
3209
- app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
3429
+ app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
3210
3430
  // WARNING: This 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
3431
  let validatedArgs = [];
3212
3432
  try {
3213
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
3433
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
3214
3434
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3215
- const controller = await container.get(SrController);
3435
+ const controller = await container.get(VbdController);
3216
3436
  if (typeof controller['setStatus'] === 'function') {
3217
3437
  controller.setStatus(undefined);
3218
3438
  }
3219
3439
  await templateService.apiHandler({
3220
- methodName: 'getSr',
3440
+ methodName: 'getVbds',
3221
3441
  controller,
3222
3442
  response,
3223
3443
  next,
@@ -3230,26 +3450,21 @@ export function RegisterRoutes(app) {
3230
3450
  }
3231
3451
  });
3232
3452
  // WARNING: This 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 = {
3234
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3453
+ const argsVbdController_getVbd = {
3235
3454
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3236
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3237
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3238
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3239
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3240
3455
  };
3241
- app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
3456
+ app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
3242
3457
  // WARNING: This 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
3458
  let validatedArgs = [];
3244
3459
  try {
3245
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
3460
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
3246
3461
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3247
- const controller = await container.get(SrController);
3462
+ const controller = await container.get(VbdController);
3248
3463
  if (typeof controller['setStatus'] === 'function') {
3249
3464
  controller.setStatus(undefined);
3250
3465
  }
3251
3466
  await templateService.apiHandler({
3252
- methodName: 'getSrAlarms',
3467
+ methodName: 'getVbd',
3253
3468
  controller,
3254
3469
  response,
3255
3470
  next,
@@ -3262,30 +3477,31 @@ export function RegisterRoutes(app) {
3262
3477
  }
3263
3478
  });
3264
3479
  // WARNING: This 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 = {
3480
+ const argsVbdController_getVbdAlarms = {
3266
3481
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3267
3482
  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" },
3483
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3484
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3485
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3486
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3271
3487
  };
3272
- app.post('/rest/v0/srs/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.srImportVdi)), async function SrController_srImportVdi(request, response, next) {
3488
+ app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
3273
3489
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3274
3490
  let validatedArgs = [];
3275
3491
  try {
3276
- validatedArgs = templateService.getValidatedArgs({ args: argsSrController_srImportVdi, request, response });
3492
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
3277
3493
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3278
- const controller = await container.get(SrController);
3494
+ const controller = await container.get(VbdController);
3279
3495
  if (typeof controller['setStatus'] === 'function') {
3280
3496
  controller.setStatus(undefined);
3281
3497
  }
3282
3498
  await templateService.apiHandler({
3283
- methodName: 'srImportVdi',
3499
+ methodName: 'getVbdAlarms',
3284
3500
  controller,
3285
3501
  response,
3286
3502
  next,
3287
3503
  validatedArgs,
3288
- successStatus: 201,
3504
+ successStatus: undefined,
3289
3505
  });
3290
3506
  }
3291
3507
  catch (err) {
@@ -3293,25 +3509,26 @@ export function RegisterRoutes(app) {
3293
3509
  }
3294
3510
  });
3295
3511
  // WARNING: This 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 argsSmController_getSrs = {
3512
+ const argsVbdController_getVbdMessages = {
3297
3513
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3514
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3298
3515
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3299
3516
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3300
3517
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3301
3518
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3302
3519
  };
3303
- app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
3520
+ app.get('/rest/v0/vbds/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdMessages)), async function VbdController_getVbdMessages(request, response, next) {
3304
3521
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3305
3522
  let validatedArgs = [];
3306
3523
  try {
3307
- validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
3524
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdMessages, request, response });
3308
3525
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3309
- const controller = await container.get(SmController);
3526
+ const controller = await container.get(VbdController);
3310
3527
  if (typeof controller['setStatus'] === 'function') {
3311
3528
  controller.setStatus(undefined);
3312
3529
  }
3313
3530
  await templateService.apiHandler({
3314
- methodName: 'getSrs',
3531
+ methodName: 'getVbdMessages',
3315
3532
  controller,
3316
3533
  response,
3317
3534
  next,
@@ -3324,21 +3541,26 @@ export function RegisterRoutes(app) {
3324
3541
  }
3325
3542
  });
3326
3543
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3327
- const argsSmController_getSr = {
3544
+ const argsVbdController_getVbdTasks = {
3545
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3328
3546
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3547
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3548
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3549
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3550
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3329
3551
  };
3330
- app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
3552
+ app.get('/rest/v0/vbds/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdTasks)), async function VbdController_getVbdTasks(request, response, next) {
3331
3553
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3332
3554
  let validatedArgs = [];
3333
3555
  try {
3334
- validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
3556
+ validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdTasks, request, response });
3335
3557
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3336
- const controller = await container.get(SmController);
3558
+ const controller = await container.get(VbdController);
3337
3559
  if (typeof controller['setStatus'] === 'function') {
3338
3560
  controller.setStatus(undefined);
3339
3561
  }
3340
3562
  await templateService.apiHandler({
3341
- methodName: 'getSr',
3563
+ methodName: 'getVbdTasks',
3342
3564
  controller,
3343
3565
  response,
3344
3566
  next,
@@ -3351,25 +3573,25 @@ export function RegisterRoutes(app) {
3351
3573
  }
3352
3574
  });
3353
3575
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3354
- const argsServerController_getServers = {
3576
+ const argsUserController_getUsers = {
3355
3577
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3356
3578
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3357
3579
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3358
3580
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3359
3581
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3360
3582
  };
3361
- app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
3583
+ app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
3362
3584
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3363
3585
  let validatedArgs = [];
3364
3586
  try {
3365
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
3587
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
3366
3588
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3367
- const controller = await container.get(ServerController);
3589
+ const controller = await container.get(UserController);
3368
3590
  if (typeof controller['setStatus'] === 'function') {
3369
3591
  controller.setStatus(undefined);
3370
3592
  }
3371
3593
  await templateService.apiHandler({
3372
- methodName: 'getServers',
3594
+ methodName: 'getUsers',
3373
3595
  controller,
3374
3596
  response,
3375
3597
  next,
@@ -3382,21 +3604,21 @@ export function RegisterRoutes(app) {
3382
3604
  }
3383
3605
  });
3384
3606
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3385
- const argsServerController_getServer = {
3607
+ const argsUserController_getUser = {
3386
3608
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3387
3609
  };
3388
- app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
3610
+ app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
3389
3611
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3390
3612
  let validatedArgs = [];
3391
3613
  try {
3392
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
3614
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
3393
3615
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3394
- const controller = await container.get(ServerController);
3616
+ const controller = await container.get(UserController);
3395
3617
  if (typeof controller['setStatus'] === 'function') {
3396
3618
  controller.setStatus(undefined);
3397
3619
  }
3398
3620
  await templateService.apiHandler({
3399
- methodName: 'getServer',
3621
+ methodName: 'getUser',
3400
3622
  controller,
3401
3623
  response,
3402
3624
  next,
@@ -3409,21 +3631,22 @@ export function RegisterRoutes(app) {
3409
3631
  }
3410
3632
  });
3411
3633
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3412
- const argsServerController_deleteServer = {
3634
+ const argsUserController_updateUser = {
3413
3635
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3636
+ body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
3414
3637
  };
3415
- app.delete('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.deleteServer)), async function ServerController_deleteServer(request, response, next) {
3638
+ app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
3416
3639
  // WARNING: This 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
3640
  let validatedArgs = [];
3418
3641
  try {
3419
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_deleteServer, request, response });
3642
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
3420
3643
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3421
- const controller = await container.get(ServerController);
3644
+ const controller = await container.get(UserController);
3422
3645
  if (typeof controller['setStatus'] === 'function') {
3423
3646
  controller.setStatus(undefined);
3424
3647
  }
3425
3648
  await templateService.apiHandler({
3426
- methodName: 'deleteServer',
3649
+ methodName: 'updateUser',
3427
3650
  controller,
3428
3651
  response,
3429
3652
  next,
@@ -3436,21 +3659,21 @@ export function RegisterRoutes(app) {
3436
3659
  }
3437
3660
  });
3438
3661
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3439
- const argsServerController_addServer = {
3440
- body: { "in": "body", "name": "body", "required": true, "ref": "InsertableXoServer" },
3662
+ const argsUserController_createUser = {
3663
+ body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
3441
3664
  };
3442
- app.post('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.addServer)), async function ServerController_addServer(request, response, next) {
3665
+ app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
3443
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
3444
3667
  let validatedArgs = [];
3445
3668
  try {
3446
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_addServer, request, response });
3669
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
3447
3670
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3448
- const controller = await container.get(ServerController);
3671
+ const controller = await container.get(UserController);
3449
3672
  if (typeof controller['setStatus'] === 'function') {
3450
3673
  controller.setStatus(undefined);
3451
3674
  }
3452
3675
  await templateService.apiHandler({
3453
- methodName: 'addServer',
3676
+ methodName: 'createUser',
3454
3677
  controller,
3455
3678
  response,
3456
3679
  next,
@@ -3463,27 +3686,26 @@ export function RegisterRoutes(app) {
3463
3686
  }
3464
3687
  });
3465
3688
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3466
- const argsServerController_connectServer = {
3689
+ const argsUserController_deleteUser = {
3467
3690
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3468
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3469
3691
  };
3470
- app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
3692
+ app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
3471
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
3472
3694
  let validatedArgs = [];
3473
3695
  try {
3474
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_connectServer, request, response });
3696
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
3475
3697
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3476
- const controller = await container.get(ServerController);
3698
+ const controller = await container.get(UserController);
3477
3699
  if (typeof controller['setStatus'] === 'function') {
3478
3700
  controller.setStatus(undefined);
3479
3701
  }
3480
3702
  await templateService.apiHandler({
3481
- methodName: 'connectServer',
3703
+ methodName: 'deleteUser',
3482
3704
  controller,
3483
3705
  response,
3484
3706
  next,
3485
3707
  validatedArgs,
3486
- successStatus: 202,
3708
+ successStatus: 204,
3487
3709
  });
3488
3710
  }
3489
3711
  catch (err) {
@@ -3491,27 +3713,31 @@ export function RegisterRoutes(app) {
3491
3713
  }
3492
3714
  });
3493
3715
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3494
- const argsServerController_disconnectServer = {
3716
+ const argsUserController_getUserGroups = {
3717
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3495
3718
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3496
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3719
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3720
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3721
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3722
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3497
3723
  };
3498
- app.post('/rest/v0/servers/:id/actions/disconnect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.disconnectServer)), async function ServerController_disconnectServer(request, response, next) {
3724
+ app.get('/rest/v0/users/:id/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserGroups)), async function UserController_getUserGroups(request, response, next) {
3499
3725
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3500
3726
  let validatedArgs = [];
3501
3727
  try {
3502
- validatedArgs = templateService.getValidatedArgs({ args: argsServerController_disconnectServer, request, response });
3728
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserGroups, request, response });
3503
3729
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3504
- const controller = await container.get(ServerController);
3730
+ const controller = await container.get(UserController);
3505
3731
  if (typeof controller['setStatus'] === 'function') {
3506
3732
  controller.setStatus(undefined);
3507
3733
  }
3508
3734
  await templateService.apiHandler({
3509
- methodName: 'disconnectServer',
3735
+ methodName: 'getUserGroups',
3510
3736
  controller,
3511
3737
  response,
3512
3738
  next,
3513
3739
  validatedArgs,
3514
- successStatus: 202,
3740
+ successStatus: undefined,
3515
3741
  });
3516
3742
  }
3517
3743
  catch (err) {
@@ -3519,25 +3745,24 @@ export function RegisterRoutes(app) {
3519
3745
  }
3520
3746
  });
3521
3747
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3522
- const argsScheduleController_getSchedules = {
3748
+ const argsUserController_getAuthenticationTokens = {
3523
3749
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3524
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3525
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3750
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3526
3751
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3527
3752
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3528
3753
  };
3529
- app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
3754
+ app.get('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getAuthenticationTokens)), async function UserController_getAuthenticationTokens(request, response, next) {
3530
3755
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3531
3756
  let validatedArgs = [];
3532
3757
  try {
3533
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
3758
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAuthenticationTokens, request, response });
3534
3759
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3535
- const controller = await container.get(ScheduleController);
3760
+ const controller = await container.get(UserController);
3536
3761
  if (typeof controller['setStatus'] === 'function') {
3537
3762
  controller.setStatus(undefined);
3538
3763
  }
3539
3764
  await templateService.apiHandler({
3540
- methodName: 'getSchedules',
3765
+ methodName: 'getAuthenticationTokens',
3541
3766
  controller,
3542
3767
  response,
3543
3768
  next,
@@ -3550,21 +3775,26 @@ export function RegisterRoutes(app) {
3550
3775
  }
3551
3776
  });
3552
3777
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3553
- const argsScheduleController_getSchedule = {
3778
+ const argsUserController_getUserTasks = {
3779
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3554
3780
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3781
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3782
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3783
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3784
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3555
3785
  };
3556
- app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
3786
+ app.get('/rest/v0/users/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserTasks)), async function UserController_getUserTasks(request, response, next) {
3557
3787
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3558
3788
  let validatedArgs = [];
3559
3789
  try {
3560
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
3790
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserTasks, request, response });
3561
3791
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3562
- const controller = await container.get(ScheduleController);
3792
+ const controller = await container.get(UserController);
3563
3793
  if (typeof controller['setStatus'] === 'function') {
3564
3794
  controller.setStatus(undefined);
3565
3795
  }
3566
3796
  await templateService.apiHandler({
3567
- methodName: 'getSchedule',
3797
+ methodName: 'getUserTasks',
3568
3798
  controller,
3569
3799
  response,
3570
3800
  next,
@@ -3577,27 +3807,26 @@ export function RegisterRoutes(app) {
3577
3807
  }
3578
3808
  });
3579
3809
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3580
- const argsScheduleController_runSchedule = {
3581
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3582
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3810
+ const argsUserController_postDeprecatedAuthenticationTokens = {
3811
+ 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" } } } } },
3583
3812
  };
3584
- app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
3813
+ app.post('/rest/v0/users/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.postDeprecatedAuthenticationTokens)), async function UserController_postDeprecatedAuthenticationTokens(request, response, next) {
3585
3814
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3586
3815
  let validatedArgs = [];
3587
3816
  try {
3588
- validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
3817
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_postDeprecatedAuthenticationTokens, request, response });
3589
3818
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3590
- const controller = await container.get(ScheduleController);
3819
+ const controller = await container.get(UserController);
3591
3820
  if (typeof controller['setStatus'] === 'function') {
3592
3821
  controller.setStatus(undefined);
3593
3822
  }
3594
3823
  await templateService.apiHandler({
3595
- methodName: 'runSchedule',
3824
+ methodName: 'postDeprecatedAuthenticationTokens',
3596
3825
  controller,
3597
3826
  response,
3598
3827
  next,
3599
3828
  validatedArgs,
3600
- successStatus: 202,
3829
+ successStatus: 201,
3601
3830
  });
3602
3831
  }
3603
3832
  catch (err) {
@@ -3605,30 +3834,27 @@ export function RegisterRoutes(app) {
3605
3834
  }
3606
3835
  });
3607
3836
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3608
- const argsRestoreLogController_getRestoreLogs = {
3609
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3610
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3611
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3612
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3613
- limit: { "in": "query", "name": "limit", "dataType": "double" },
3837
+ const argsUserController_postAuthenticationTokens = {
3838
+ 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"] } } } } },
3839
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3614
3840
  };
3615
- app.get('/rest/v0/restore-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLogs)), async function RestoreLogController_getRestoreLogs(request, response, next) {
3841
+ app.post('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.postAuthenticationTokens)), async function UserController_postAuthenticationTokens(request, response, next) {
3616
3842
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3617
3843
  let validatedArgs = [];
3618
3844
  try {
3619
- validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLogs, request, response });
3845
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_postAuthenticationTokens, request, response });
3620
3846
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3621
- const controller = await container.get(RestoreLogController);
3847
+ const controller = await container.get(UserController);
3622
3848
  if (typeof controller['setStatus'] === 'function') {
3623
3849
  controller.setStatus(undefined);
3624
3850
  }
3625
3851
  await templateService.apiHandler({
3626
- methodName: 'getRestoreLogs',
3852
+ methodName: 'postAuthenticationTokens',
3627
3853
  controller,
3628
3854
  response,
3629
3855
  next,
3630
3856
  validatedArgs,
3631
- successStatus: undefined,
3857
+ successStatus: 201,
3632
3858
  });
3633
3859
  }
3634
3860
  catch (err) {
@@ -3636,26 +3862,1128 @@ export function RegisterRoutes(app) {
3636
3862
  }
3637
3863
  });
3638
3864
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3639
- const argsRestoreLogController_getRestoreLog = {
3865
+ const argsTaskController_getTasks = {
3866
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3867
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3868
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3869
+ watch: { "in": "query", "name": "watch", "dataType": "boolean" },
3870
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3871
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3872
+ };
3873
+ app.get('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTasks)), async function TaskController_getTasks(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: argsTaskController_getTasks, request, response });
3878
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3879
+ const controller = await container.get(TaskController);
3880
+ if (typeof controller['setStatus'] === 'function') {
3881
+ controller.setStatus(undefined);
3882
+ }
3883
+ await templateService.apiHandler({
3884
+ methodName: 'getTasks',
3885
+ controller,
3886
+ response,
3887
+ next,
3888
+ validatedArgs,
3889
+ successStatus: undefined,
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 argsTaskController_getTask = {
3898
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3899
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3900
+ wait: { "in": "query", "name": "wait", "dataType": "boolean" },
3901
+ };
3902
+ app.get('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTask)), async function TaskController_getTask(request, response, next) {
3903
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3904
+ let validatedArgs = [];
3905
+ try {
3906
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
3907
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3908
+ const controller = await container.get(TaskController);
3909
+ if (typeof controller['setStatus'] === 'function') {
3910
+ controller.setStatus(undefined);
3911
+ }
3912
+ await templateService.apiHandler({
3913
+ methodName: 'getTask',
3914
+ controller,
3915
+ response,
3916
+ next,
3917
+ validatedArgs,
3918
+ successStatus: undefined,
3919
+ });
3920
+ }
3921
+ catch (err) {
3922
+ return next(err);
3923
+ }
3924
+ });
3925
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3926
+ const argsTaskController_deleteTasks = {};
3927
+ app.delete('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTasks)), async function TaskController_deleteTasks(request, response, next) {
3928
+ // WARNING: This 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
+ let validatedArgs = [];
3930
+ try {
3931
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTasks, request, response });
3932
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3933
+ const controller = await container.get(TaskController);
3934
+ if (typeof controller['setStatus'] === 'function') {
3935
+ controller.setStatus(undefined);
3936
+ }
3937
+ await templateService.apiHandler({
3938
+ methodName: 'deleteTasks',
3939
+ controller,
3940
+ response,
3941
+ next,
3942
+ validatedArgs,
3943
+ successStatus: 204,
3944
+ });
3945
+ }
3946
+ catch (err) {
3947
+ return next(err);
3948
+ }
3949
+ });
3950
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3951
+ const argsTaskController_deleteTask = {
3952
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3953
+ };
3954
+ app.delete('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTask)), async function TaskController_deleteTask(request, response, next) {
3955
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3956
+ let validatedArgs = [];
3957
+ try {
3958
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTask, request, response });
3959
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3960
+ const controller = await container.get(TaskController);
3961
+ if (typeof controller['setStatus'] === 'function') {
3962
+ controller.setStatus(undefined);
3963
+ }
3964
+ await templateService.apiHandler({
3965
+ methodName: 'deleteTask',
3966
+ controller,
3967
+ response,
3968
+ next,
3969
+ validatedArgs,
3970
+ successStatus: 204,
3971
+ });
3972
+ }
3973
+ catch (err) {
3974
+ return next(err);
3975
+ }
3976
+ });
3977
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3978
+ const argsTaskController_abortTask = {
3979
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3980
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3981
+ };
3982
+ app.post('/rest/v0/tasks/:id/actions/abort', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.abortTask)), async function TaskController_abortTask(request, response, next) {
3983
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3984
+ let validatedArgs = [];
3985
+ try {
3986
+ validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_abortTask, request, response });
3987
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3988
+ const controller = await container.get(TaskController);
3989
+ if (typeof controller['setStatus'] === 'function') {
3990
+ controller.setStatus(undefined);
3991
+ }
3992
+ await templateService.apiHandler({
3993
+ methodName: 'abortTask',
3994
+ controller,
3995
+ response,
3996
+ next,
3997
+ validatedArgs,
3998
+ successStatus: 202,
3999
+ });
4000
+ }
4001
+ catch (err) {
4002
+ return next(err);
4003
+ }
4004
+ });
4005
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4006
+ const argsSrController_getSrs = {
4007
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4008
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4009
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4010
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4011
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4012
+ };
4013
+ app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
4014
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4015
+ let validatedArgs = [];
4016
+ try {
4017
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
4018
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4019
+ const controller = await container.get(SrController);
4020
+ if (typeof controller['setStatus'] === 'function') {
4021
+ controller.setStatus(undefined);
4022
+ }
4023
+ await templateService.apiHandler({
4024
+ methodName: 'getSrs',
4025
+ controller,
4026
+ response,
4027
+ next,
4028
+ validatedArgs,
4029
+ successStatus: undefined,
4030
+ });
4031
+ }
4032
+ catch (err) {
4033
+ return next(err);
4034
+ }
4035
+ });
4036
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4037
+ const argsSrController_getSr = {
4038
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4039
+ };
4040
+ app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
4041
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4042
+ let validatedArgs = [];
4043
+ try {
4044
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
4045
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4046
+ const controller = await container.get(SrController);
4047
+ if (typeof controller['setStatus'] === 'function') {
4048
+ controller.setStatus(undefined);
4049
+ }
4050
+ await templateService.apiHandler({
4051
+ methodName: 'getSr',
4052
+ controller,
4053
+ response,
4054
+ next,
4055
+ validatedArgs,
4056
+ successStatus: undefined,
4057
+ });
4058
+ }
4059
+ catch (err) {
4060
+ return next(err);
4061
+ }
4062
+ });
4063
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4064
+ const argsSrController_getSrAlarms = {
4065
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4066
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4067
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4068
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4069
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4070
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4071
+ };
4072
+ app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
4073
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4074
+ let validatedArgs = [];
4075
+ try {
4076
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
4077
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4078
+ const controller = await container.get(SrController);
4079
+ if (typeof controller['setStatus'] === 'function') {
4080
+ controller.setStatus(undefined);
4081
+ }
4082
+ await templateService.apiHandler({
4083
+ methodName: 'getSrAlarms',
4084
+ controller,
4085
+ response,
4086
+ next,
4087
+ validatedArgs,
4088
+ successStatus: undefined,
4089
+ });
4090
+ }
4091
+ catch (err) {
4092
+ return next(err);
4093
+ }
4094
+ });
4095
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4096
+ const argsSrController_srImportVdi = {
4097
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4098
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4099
+ name_label: { "in": "query", "name": "name_label", "dataType": "string" },
4100
+ name_description: { "in": "query", "name": "name_description", "dataType": "string" },
4101
+ raw: { "in": "query", "name": "raw", "dataType": "boolean" },
4102
+ };
4103
+ app.post('/rest/v0/srs/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.srImportVdi)), async function SrController_srImportVdi(request, response, next) {
4104
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4105
+ let validatedArgs = [];
4106
+ try {
4107
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_srImportVdi, request, response });
4108
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4109
+ const controller = await container.get(SrController);
4110
+ if (typeof controller['setStatus'] === 'function') {
4111
+ controller.setStatus(undefined);
4112
+ }
4113
+ await templateService.apiHandler({
4114
+ methodName: 'srImportVdi',
4115
+ controller,
4116
+ response,
4117
+ next,
4118
+ validatedArgs,
4119
+ successStatus: 201,
4120
+ });
4121
+ }
4122
+ catch (err) {
4123
+ return next(err);
4124
+ }
4125
+ });
4126
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4127
+ const argsSrController_getSrMessages = {
4128
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4129
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4130
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4131
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4132
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4133
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4134
+ };
4135
+ app.get('/rest/v0/srs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrMessages)), async function SrController_getSrMessages(request, response, next) {
4136
+ // WARNING: This 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
+ let validatedArgs = [];
4138
+ try {
4139
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrMessages, request, response });
4140
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4141
+ const controller = await container.get(SrController);
4142
+ if (typeof controller['setStatus'] === 'function') {
4143
+ controller.setStatus(undefined);
4144
+ }
4145
+ await templateService.apiHandler({
4146
+ methodName: 'getSrMessages',
4147
+ controller,
4148
+ response,
4149
+ next,
4150
+ validatedArgs,
4151
+ successStatus: undefined,
4152
+ });
4153
+ }
4154
+ catch (err) {
4155
+ return next(err);
4156
+ }
4157
+ });
4158
+ // WARNING: This 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 argsSrController_getSrTasks = {
4160
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4161
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4162
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4163
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4164
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4165
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4166
+ };
4167
+ app.get('/rest/v0/srs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrTasks)), async function SrController_getSrTasks(request, response, next) {
4168
+ // WARNING: This 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
+ let validatedArgs = [];
4170
+ try {
4171
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrTasks, request, response });
4172
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4173
+ const controller = await container.get(SrController);
4174
+ if (typeof controller['setStatus'] === 'function') {
4175
+ controller.setStatus(undefined);
4176
+ }
4177
+ await templateService.apiHandler({
4178
+ methodName: 'getSrTasks',
4179
+ controller,
4180
+ response,
4181
+ next,
4182
+ validatedArgs,
4183
+ successStatus: undefined,
4184
+ });
4185
+ }
4186
+ catch (err) {
4187
+ return next(err);
4188
+ }
4189
+ });
4190
+ // WARNING: This 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 argsSrController_putSrTag = {
4192
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4193
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
4194
+ };
4195
+ app.put('/rest/v0/srs/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.putSrTag)), async function SrController_putSrTag(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_putSrTag, 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: 'putSrTag',
4207
+ controller,
4208
+ response,
4209
+ next,
4210
+ validatedArgs,
4211
+ successStatus: 204,
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_deleteSrTag = {
4220
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4221
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
4222
+ };
4223
+ app.delete('/rest/v0/srs/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.deleteSrTag)), async function SrController_deleteSrTag(request, response, next) {
4224
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4225
+ let validatedArgs = [];
4226
+ try {
4227
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_deleteSrTag, request, response });
4228
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4229
+ const controller = await container.get(SrController);
4230
+ if (typeof controller['setStatus'] === 'function') {
4231
+ controller.setStatus(undefined);
4232
+ }
4233
+ await templateService.apiHandler({
4234
+ methodName: 'deleteSrTag',
4235
+ controller,
4236
+ response,
4237
+ next,
4238
+ validatedArgs,
4239
+ successStatus: 204,
4240
+ });
4241
+ }
4242
+ catch (err) {
4243
+ return next(err);
4244
+ }
4245
+ });
4246
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4247
+ const argsSmController_getSrs = {
4248
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4249
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4250
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4251
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4252
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4253
+ };
4254
+ app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
4255
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4256
+ let validatedArgs = [];
4257
+ try {
4258
+ validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
4259
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4260
+ const controller = await container.get(SmController);
4261
+ if (typeof controller['setStatus'] === 'function') {
4262
+ controller.setStatus(undefined);
4263
+ }
4264
+ await templateService.apiHandler({
4265
+ methodName: 'getSrs',
4266
+ controller,
4267
+ response,
4268
+ next,
4269
+ validatedArgs,
4270
+ successStatus: undefined,
4271
+ });
4272
+ }
4273
+ catch (err) {
4274
+ return next(err);
4275
+ }
4276
+ });
4277
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4278
+ const argsSmController_getSr = {
4279
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4280
+ };
4281
+ app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
4282
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4283
+ let validatedArgs = [];
4284
+ try {
4285
+ validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
4286
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4287
+ const controller = await container.get(SmController);
4288
+ if (typeof controller['setStatus'] === 'function') {
4289
+ controller.setStatus(undefined);
4290
+ }
4291
+ await templateService.apiHandler({
4292
+ methodName: 'getSr',
4293
+ controller,
4294
+ response,
4295
+ next,
4296
+ validatedArgs,
4297
+ successStatus: undefined,
4298
+ });
4299
+ }
4300
+ catch (err) {
4301
+ return next(err);
4302
+ }
4303
+ });
4304
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4305
+ const argsServerController_getServers = {
4306
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4307
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4308
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4309
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4310
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4311
+ };
4312
+ app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
4313
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4314
+ let validatedArgs = [];
4315
+ try {
4316
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
4317
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4318
+ const controller = await container.get(ServerController);
4319
+ if (typeof controller['setStatus'] === 'function') {
4320
+ controller.setStatus(undefined);
4321
+ }
4322
+ await templateService.apiHandler({
4323
+ methodName: 'getServers',
4324
+ controller,
4325
+ response,
4326
+ next,
4327
+ validatedArgs,
4328
+ successStatus: undefined,
4329
+ });
4330
+ }
4331
+ catch (err) {
4332
+ return next(err);
4333
+ }
4334
+ });
4335
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4336
+ const argsServerController_getServer = {
4337
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4338
+ };
4339
+ app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
4340
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4341
+ let validatedArgs = [];
4342
+ try {
4343
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
4344
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4345
+ const controller = await container.get(ServerController);
4346
+ if (typeof controller['setStatus'] === 'function') {
4347
+ controller.setStatus(undefined);
4348
+ }
4349
+ await templateService.apiHandler({
4350
+ methodName: 'getServer',
4351
+ controller,
4352
+ response,
4353
+ next,
4354
+ validatedArgs,
4355
+ successStatus: undefined,
4356
+ });
4357
+ }
4358
+ catch (err) {
4359
+ return next(err);
4360
+ }
4361
+ });
4362
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4363
+ const argsServerController_deleteServer = {
4364
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4365
+ };
4366
+ app.delete('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.deleteServer)), async function ServerController_deleteServer(request, response, next) {
4367
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4368
+ let validatedArgs = [];
4369
+ try {
4370
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_deleteServer, request, response });
4371
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4372
+ const controller = await container.get(ServerController);
4373
+ if (typeof controller['setStatus'] === 'function') {
4374
+ controller.setStatus(undefined);
4375
+ }
4376
+ await templateService.apiHandler({
4377
+ methodName: 'deleteServer',
4378
+ controller,
4379
+ response,
4380
+ next,
4381
+ validatedArgs,
4382
+ successStatus: 204,
4383
+ });
4384
+ }
4385
+ catch (err) {
4386
+ return next(err);
4387
+ }
4388
+ });
4389
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4390
+ const argsServerController_addServer = {
4391
+ body: { "in": "body", "name": "body", "required": true, "ref": "InsertableXoServer" },
4392
+ };
4393
+ app.post('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.addServer)), async function ServerController_addServer(request, response, next) {
4394
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4395
+ let validatedArgs = [];
4396
+ try {
4397
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_addServer, request, response });
4398
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4399
+ const controller = await container.get(ServerController);
4400
+ if (typeof controller['setStatus'] === 'function') {
4401
+ controller.setStatus(undefined);
4402
+ }
4403
+ await templateService.apiHandler({
4404
+ methodName: 'addServer',
4405
+ controller,
4406
+ response,
4407
+ next,
4408
+ validatedArgs,
4409
+ successStatus: 201,
4410
+ });
4411
+ }
4412
+ catch (err) {
4413
+ return next(err);
4414
+ }
4415
+ });
4416
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4417
+ const argsServerController_connectServer = {
4418
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4419
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4420
+ };
4421
+ app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
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
+ let validatedArgs = [];
4424
+ try {
4425
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_connectServer, request, response });
4426
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4427
+ const controller = await container.get(ServerController);
4428
+ if (typeof controller['setStatus'] === 'function') {
4429
+ controller.setStatus(undefined);
4430
+ }
4431
+ await templateService.apiHandler({
4432
+ methodName: 'connectServer',
4433
+ controller,
4434
+ response,
4435
+ next,
4436
+ validatedArgs,
4437
+ successStatus: 202,
4438
+ });
4439
+ }
4440
+ catch (err) {
4441
+ return next(err);
4442
+ }
4443
+ });
4444
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4445
+ const argsServerController_disconnectServer = {
4446
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4447
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4448
+ };
4449
+ app.post('/rest/v0/servers/:id/actions/disconnect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.disconnectServer)), async function ServerController_disconnectServer(request, response, next) {
4450
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4451
+ let validatedArgs = [];
4452
+ try {
4453
+ validatedArgs = templateService.getValidatedArgs({ args: argsServerController_disconnectServer, request, response });
4454
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4455
+ const controller = await container.get(ServerController);
4456
+ if (typeof controller['setStatus'] === 'function') {
4457
+ controller.setStatus(undefined);
4458
+ }
4459
+ await templateService.apiHandler({
4460
+ methodName: 'disconnectServer',
4461
+ controller,
4462
+ response,
4463
+ next,
4464
+ validatedArgs,
4465
+ successStatus: 202,
4466
+ });
4467
+ }
4468
+ catch (err) {
4469
+ return next(err);
4470
+ }
4471
+ });
4472
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4473
+ const argsServerController_getServerTasks = {
4474
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4475
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4476
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4477
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4478
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4479
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4480
+ };
4481
+ app.get('/rest/v0/servers/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServerTasks)), async function ServerController_getServerTasks(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_getServerTasks, 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: 'getServerTasks',
4493
+ controller,
4494
+ response,
4495
+ next,
4496
+ validatedArgs,
4497
+ successStatus: undefined,
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 argsScheduleController_getSchedules = {
4506
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4507
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4508
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4509
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4510
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4511
+ };
4512
+ app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
4513
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4514
+ let validatedArgs = [];
4515
+ try {
4516
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
4517
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4518
+ const controller = await container.get(ScheduleController);
4519
+ if (typeof controller['setStatus'] === 'function') {
4520
+ controller.setStatus(undefined);
4521
+ }
4522
+ await templateService.apiHandler({
4523
+ methodName: 'getSchedules',
4524
+ controller,
4525
+ response,
4526
+ next,
4527
+ validatedArgs,
4528
+ successStatus: undefined,
4529
+ });
4530
+ }
4531
+ catch (err) {
4532
+ return next(err);
4533
+ }
4534
+ });
4535
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4536
+ const argsScheduleController_getSchedule = {
4537
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4538
+ };
4539
+ app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
4540
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4541
+ let validatedArgs = [];
4542
+ try {
4543
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
4544
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4545
+ const controller = await container.get(ScheduleController);
4546
+ if (typeof controller['setStatus'] === 'function') {
4547
+ controller.setStatus(undefined);
4548
+ }
4549
+ await templateService.apiHandler({
4550
+ methodName: 'getSchedule',
4551
+ controller,
4552
+ response,
4553
+ next,
4554
+ validatedArgs,
4555
+ successStatus: undefined,
4556
+ });
4557
+ }
4558
+ catch (err) {
4559
+ return next(err);
4560
+ }
4561
+ });
4562
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4563
+ const argsScheduleController_runSchedule = {
4564
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4565
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4566
+ };
4567
+ app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
4568
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4569
+ let validatedArgs = [];
4570
+ try {
4571
+ validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
4572
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4573
+ const controller = await container.get(ScheduleController);
4574
+ if (typeof controller['setStatus'] === 'function') {
4575
+ controller.setStatus(undefined);
4576
+ }
4577
+ await templateService.apiHandler({
4578
+ methodName: 'runSchedule',
4579
+ controller,
4580
+ response,
4581
+ next,
4582
+ validatedArgs,
4583
+ successStatus: 202,
4584
+ });
4585
+ }
4586
+ catch (err) {
4587
+ return next(err);
4588
+ }
4589
+ });
4590
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4591
+ const argsRestoreLogController_getRestoreLogs = {
4592
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4593
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4594
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4595
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4596
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4597
+ };
4598
+ app.get('/rest/v0/restore-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLogs)), async function RestoreLogController_getRestoreLogs(request, response, next) {
4599
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4600
+ let validatedArgs = [];
4601
+ try {
4602
+ validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLogs, request, response });
4603
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4604
+ const controller = await container.get(RestoreLogController);
4605
+ if (typeof controller['setStatus'] === 'function') {
4606
+ controller.setStatus(undefined);
4607
+ }
4608
+ await templateService.apiHandler({
4609
+ methodName: 'getRestoreLogs',
4610
+ controller,
4611
+ response,
4612
+ next,
4613
+ validatedArgs,
4614
+ successStatus: undefined,
4615
+ });
4616
+ }
4617
+ catch (err) {
4618
+ return next(err);
4619
+ }
4620
+ });
4621
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4622
+ const argsRestoreLogController_getRestoreLog = {
4623
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4624
+ };
4625
+ app.get('/rest/v0/restore-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLog)), async function RestoreLogController_getRestoreLog(request, response, next) {
4626
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4627
+ let validatedArgs = [];
4628
+ try {
4629
+ validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLog, request, response });
4630
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4631
+ const controller = await container.get(RestoreLogController);
4632
+ if (typeof controller['setStatus'] === 'function') {
4633
+ controller.setStatus(undefined);
4634
+ }
4635
+ await templateService.apiHandler({
4636
+ methodName: 'getRestoreLog',
4637
+ controller,
4638
+ response,
4639
+ next,
4640
+ validatedArgs,
4641
+ successStatus: undefined,
4642
+ });
4643
+ }
4644
+ catch (err) {
4645
+ return next(err);
4646
+ }
4647
+ });
4648
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4649
+ const argsDeprecatedRestoreController_getDeprecatedRestoreLogs = {
4650
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4651
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4652
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4653
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4654
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4655
+ };
4656
+ app.get('/rest/v0/restore/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLogs)), async function DeprecatedRestoreController_getDeprecatedRestoreLogs(request, response, next) {
4657
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4658
+ let validatedArgs = [];
4659
+ try {
4660
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLogs, request, response });
4661
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4662
+ const controller = await container.get(DeprecatedRestoreController);
4663
+ if (typeof controller['setStatus'] === 'function') {
4664
+ controller.setStatus(undefined);
4665
+ }
4666
+ await templateService.apiHandler({
4667
+ methodName: 'getDeprecatedRestoreLogs',
4668
+ controller,
4669
+ response,
4670
+ next,
4671
+ validatedArgs,
4672
+ successStatus: undefined,
4673
+ });
4674
+ }
4675
+ catch (err) {
4676
+ return next(err);
4677
+ }
4678
+ });
4679
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4680
+ const argsDeprecatedRestoreController_getDeprecatedRestoreLog = {
4681
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4682
+ };
4683
+ app.get('/rest/v0/restore/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLog)), async function DeprecatedRestoreController_getDeprecatedRestoreLog(request, response, next) {
4684
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4685
+ let validatedArgs = [];
4686
+ try {
4687
+ validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLog, request, response });
4688
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4689
+ const controller = await container.get(DeprecatedRestoreController);
4690
+ if (typeof controller['setStatus'] === 'function') {
4691
+ controller.setStatus(undefined);
4692
+ }
4693
+ await templateService.apiHandler({
4694
+ methodName: 'getDeprecatedRestoreLog',
4695
+ controller,
4696
+ response,
4697
+ next,
4698
+ validatedArgs,
4699
+ successStatus: undefined,
4700
+ });
4701
+ }
4702
+ catch (err) {
4703
+ return next(err);
4704
+ }
4705
+ });
4706
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4707
+ const argsProxyController_getProxies = {
4708
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4709
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4710
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4711
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4712
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4713
+ };
4714
+ app.get('/rest/v0/proxies', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxies)), async function ProxyController_getProxies(request, response, next) {
4715
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4716
+ let validatedArgs = [];
4717
+ try {
4718
+ validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxies, request, response });
4719
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4720
+ const controller = await container.get(ProxyController);
4721
+ if (typeof controller['setStatus'] === 'function') {
4722
+ controller.setStatus(undefined);
4723
+ }
4724
+ await templateService.apiHandler({
4725
+ methodName: 'getProxies',
4726
+ controller,
4727
+ response,
4728
+ next,
4729
+ validatedArgs,
4730
+ successStatus: undefined,
4731
+ });
4732
+ }
4733
+ catch (err) {
4734
+ return next(err);
4735
+ }
4736
+ });
4737
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4738
+ const argsProxyController_getProxy = {
4739
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4740
+ };
4741
+ app.get('/rest/v0/proxies/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxy)), async function ProxyController_getProxy(request, response, next) {
4742
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4743
+ let validatedArgs = [];
4744
+ try {
4745
+ validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxy, request, response });
4746
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4747
+ const controller = await container.get(ProxyController);
4748
+ if (typeof controller['setStatus'] === 'function') {
4749
+ controller.setStatus(undefined);
4750
+ }
4751
+ await templateService.apiHandler({
4752
+ methodName: 'getProxy',
4753
+ controller,
4754
+ response,
4755
+ next,
4756
+ validatedArgs,
4757
+ successStatus: undefined,
4758
+ });
4759
+ }
4760
+ catch (err) {
4761
+ return next(err);
4762
+ }
4763
+ });
4764
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4765
+ const argsPoolController_getPools = {
4766
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4767
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4768
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4769
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
4770
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4771
+ };
4772
+ app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPools)), async function PoolController_getPools(request, response, next) {
4773
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4774
+ let validatedArgs = [];
4775
+ try {
4776
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPools, request, response });
4777
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4778
+ const controller = await container.get(PoolController);
4779
+ if (typeof controller['setStatus'] === 'function') {
4780
+ controller.setStatus(undefined);
4781
+ }
4782
+ await templateService.apiHandler({
4783
+ methodName: 'getPools',
4784
+ controller,
4785
+ response,
4786
+ next,
4787
+ validatedArgs,
4788
+ successStatus: undefined,
4789
+ });
4790
+ }
4791
+ catch (err) {
4792
+ return next(err);
4793
+ }
4794
+ });
4795
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4796
+ const argsPoolController_getPool = {
4797
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4798
+ };
4799
+ app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPool)), async function PoolController_getPool(request, response, next) {
4800
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4801
+ let validatedArgs = [];
4802
+ try {
4803
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPool, request, response });
4804
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4805
+ const controller = await container.get(PoolController);
4806
+ if (typeof controller['setStatus'] === 'function') {
4807
+ controller.setStatus(undefined);
4808
+ }
4809
+ await templateService.apiHandler({
4810
+ methodName: 'getPool',
4811
+ controller,
4812
+ response,
4813
+ next,
4814
+ validatedArgs,
4815
+ successStatus: undefined,
4816
+ });
4817
+ }
4818
+ catch (err) {
4819
+ return next(err);
4820
+ }
4821
+ });
4822
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4823
+ const argsPoolController_createNetwork = {
4824
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4825
+ body: { "in": "body", "name": "body", "required": true, "ref": "CreateNetworkBody" },
4826
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4827
+ };
4828
+ app.post('/rest/v0/pools/:id/actions/create_network', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createNetwork)), async function PoolController_createNetwork(request, response, next) {
4829
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4830
+ let validatedArgs = [];
4831
+ try {
4832
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createNetwork, request, response });
4833
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4834
+ const controller = await container.get(PoolController);
4835
+ if (typeof controller['setStatus'] === 'function') {
4836
+ controller.setStatus(undefined);
4837
+ }
4838
+ await templateService.apiHandler({
4839
+ methodName: 'createNetwork',
4840
+ controller,
4841
+ response,
4842
+ next,
4843
+ validatedArgs,
4844
+ successStatus: 201,
4845
+ });
4846
+ }
4847
+ catch (err) {
4848
+ return next(err);
4849
+ }
4850
+ });
4851
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4852
+ const argsPoolController_emergencyShutdown = {
4853
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4854
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4855
+ };
4856
+ app.post('/rest/v0/pools/:id/actions/emergency_shutdown', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.emergencyShutdown)), async function PoolController_emergencyShutdown(request, response, next) {
4857
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4858
+ let validatedArgs = [];
4859
+ try {
4860
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_emergencyShutdown, request, response });
4861
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4862
+ const controller = await container.get(PoolController);
4863
+ if (typeof controller['setStatus'] === 'function') {
4864
+ controller.setStatus(undefined);
4865
+ }
4866
+ await templateService.apiHandler({
4867
+ methodName: 'emergencyShutdown',
4868
+ controller,
4869
+ response,
4870
+ next,
4871
+ validatedArgs,
4872
+ successStatus: 202,
4873
+ });
4874
+ }
4875
+ catch (err) {
4876
+ return next(err);
4877
+ }
4878
+ });
4879
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4880
+ const argsPoolController_rollingReboot = {
4881
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4882
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4883
+ };
4884
+ app.post('/rest/v0/pools/:id/actions/rolling_reboot', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingReboot)), async function PoolController_rollingReboot(request, response, next) {
4885
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4886
+ let validatedArgs = [];
4887
+ try {
4888
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingReboot, request, response });
4889
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4890
+ const controller = await container.get(PoolController);
4891
+ if (typeof controller['setStatus'] === 'function') {
4892
+ controller.setStatus(undefined);
4893
+ }
4894
+ await templateService.apiHandler({
4895
+ methodName: 'rollingReboot',
4896
+ controller,
4897
+ response,
4898
+ next,
4899
+ validatedArgs,
4900
+ successStatus: 202,
4901
+ });
4902
+ }
4903
+ catch (err) {
4904
+ return next(err);
4905
+ }
4906
+ });
4907
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4908
+ const argsPoolController_rollingUpdate = {
4909
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4910
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
4911
+ };
4912
+ app.post('/rest/v0/pools/:id/actions/rolling_update', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingUpdate)), async function PoolController_rollingUpdate(request, response, next) {
4913
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4914
+ let validatedArgs = [];
4915
+ try {
4916
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingUpdate, request, response });
4917
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4918
+ const controller = await container.get(PoolController);
4919
+ if (typeof controller['setStatus'] === 'function') {
4920
+ controller.setStatus(undefined);
4921
+ }
4922
+ await templateService.apiHandler({
4923
+ methodName: 'rollingUpdate',
4924
+ controller,
4925
+ response,
4926
+ next,
4927
+ validatedArgs,
4928
+ successStatus: 202,
4929
+ });
4930
+ }
4931
+ catch (err) {
4932
+ return next(err);
4933
+ }
4934
+ });
4935
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4936
+ const argsPoolController_importVm = {
4937
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4938
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4939
+ sr: { "in": "query", "name": "sr", "dataType": "string" },
4940
+ };
4941
+ app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
4942
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4943
+ let validatedArgs = [];
4944
+ try {
4945
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
4946
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4947
+ const controller = await container.get(PoolController);
4948
+ if (typeof controller['setStatus'] === 'function') {
4949
+ controller.setStatus(undefined);
4950
+ }
4951
+ await templateService.apiHandler({
4952
+ methodName: 'importVm',
4953
+ controller,
4954
+ response,
4955
+ next,
4956
+ validatedArgs,
4957
+ successStatus: 201,
4958
+ });
4959
+ }
4960
+ catch (err) {
4961
+ return next(err);
4962
+ }
4963
+ });
4964
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4965
+ const argsPoolController_createVm = {
3640
4966
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4967
+ body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
4968
+ sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3641
4969
  };
3642
- app.get('/rest/v0/restore-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLog)), async function RestoreLogController_getRestoreLog(request, response, next) {
4970
+ app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
3643
4971
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3644
4972
  let validatedArgs = [];
3645
4973
  try {
3646
- validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLog, request, response });
4974
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
3647
4975
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3648
- const controller = await container.get(RestoreLogController);
4976
+ const controller = await container.get(PoolController);
3649
4977
  if (typeof controller['setStatus'] === 'function') {
3650
4978
  controller.setStatus(undefined);
3651
4979
  }
3652
4980
  await templateService.apiHandler({
3653
- methodName: 'getRestoreLog',
4981
+ methodName: 'createVm',
3654
4982
  controller,
3655
4983
  response,
3656
4984
  next,
3657
4985
  validatedArgs,
3658
- successStatus: undefined,
4986
+ successStatus: 201,
3659
4987
  });
3660
4988
  }
3661
4989
  catch (err) {
@@ -3663,25 +4991,22 @@ export function RegisterRoutes(app) {
3663
4991
  }
3664
4992
  });
3665
4993
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3666
- const argsDeprecatedRestoreController_getDeprecatedRestoreLogs = {
3667
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3668
- fields: { "in": "query", "name": "fields", "dataType": "string" },
3669
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3670
- filter: { "in": "query", "name": "filter", "dataType": "string" },
3671
- limit: { "in": "query", "name": "limit", "dataType": "double" },
4994
+ const argsPoolController_getStats = {
4995
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4996
+ granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
3672
4997
  };
3673
- app.get('/rest/v0/restore/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLogs)), async function DeprecatedRestoreController_getDeprecatedRestoreLogs(request, response, next) {
4998
+ app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
3674
4999
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3675
5000
  let validatedArgs = [];
3676
5001
  try {
3677
- validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLogs, request, response });
5002
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
3678
5003
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3679
- const controller = await container.get(DeprecatedRestoreController);
5004
+ const controller = await container.get(PoolController);
3680
5005
  if (typeof controller['setStatus'] === 'function') {
3681
5006
  controller.setStatus(undefined);
3682
5007
  }
3683
5008
  await templateService.apiHandler({
3684
- methodName: 'getDeprecatedRestoreLogs',
5009
+ methodName: 'getStats',
3685
5010
  controller,
3686
5011
  response,
3687
5012
  next,
@@ -3694,21 +5019,23 @@ export function RegisterRoutes(app) {
3694
5019
  }
3695
5020
  });
3696
5021
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3697
- const argsDeprecatedRestoreController_getDeprecatedRestoreLog = {
5022
+ const argsPoolController_getPoolDashboard = {
5023
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3698
5024
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5025
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3699
5026
  };
3700
- app.get('/rest/v0/restore/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLog)), async function DeprecatedRestoreController_getDeprecatedRestoreLog(request, response, next) {
5027
+ app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
3701
5028
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3702
5029
  let validatedArgs = [];
3703
5030
  try {
3704
- validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLog, request, response });
5031
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
3705
5032
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3706
- const controller = await container.get(DeprecatedRestoreController);
5033
+ const controller = await container.get(PoolController);
3707
5034
  if (typeof controller['setStatus'] === 'function') {
3708
5035
  controller.setStatus(undefined);
3709
5036
  }
3710
5037
  await templateService.apiHandler({
3711
- methodName: 'getDeprecatedRestoreLog',
5038
+ methodName: 'getPoolDashboard',
3712
5039
  controller,
3713
5040
  response,
3714
5041
  next,
@@ -3721,25 +5048,26 @@ export function RegisterRoutes(app) {
3721
5048
  }
3722
5049
  });
3723
5050
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3724
- const argsProxyController_getProxies = {
5051
+ const argsPoolController_getPoolAlarms = {
3725
5052
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5053
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3726
5054
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3727
5055
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3728
5056
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3729
5057
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3730
5058
  };
3731
- app.get('/rest/v0/proxies', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxies)), async function ProxyController_getProxies(request, response, next) {
5059
+ app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
3732
5060
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3733
5061
  let validatedArgs = [];
3734
5062
  try {
3735
- validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxies, request, response });
5063
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
3736
5064
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3737
- const controller = await container.get(ProxyController);
5065
+ const controller = await container.get(PoolController);
3738
5066
  if (typeof controller['setStatus'] === 'function') {
3739
5067
  controller.setStatus(undefined);
3740
5068
  }
3741
5069
  await templateService.apiHandler({
3742
- methodName: 'getProxies',
5070
+ methodName: 'getPoolAlarms',
3743
5071
  controller,
3744
5072
  response,
3745
5073
  next,
@@ -3752,21 +5080,21 @@ export function RegisterRoutes(app) {
3752
5080
  }
3753
5081
  });
3754
5082
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3755
- const argsProxyController_getProxy = {
5083
+ const argsPoolController_getPoolMissingPatches = {
3756
5084
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3757
5085
  };
3758
- app.get('/rest/v0/proxies/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxy)), async function ProxyController_getProxy(request, response, next) {
5086
+ app.get('/rest/v0/pools/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMissingPatches)), async function PoolController_getPoolMissingPatches(request, response, next) {
3759
5087
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3760
5088
  let validatedArgs = [];
3761
5089
  try {
3762
- validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxy, request, response });
5090
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMissingPatches, request, response });
3763
5091
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3764
- const controller = await container.get(ProxyController);
5092
+ const controller = await container.get(PoolController);
3765
5093
  if (typeof controller['setStatus'] === 'function') {
3766
5094
  controller.setStatus(undefined);
3767
5095
  }
3768
5096
  await templateService.apiHandler({
3769
- methodName: 'getProxy',
5097
+ methodName: 'getPoolMissingPatches',
3770
5098
  controller,
3771
5099
  response,
3772
5100
  next,
@@ -3779,25 +5107,26 @@ export function RegisterRoutes(app) {
3779
5107
  }
3780
5108
  });
3781
5109
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3782
- const argsPoolController_getPools = {
5110
+ const argsPoolController_getPoolMessages = {
3783
5111
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5112
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3784
5113
  fields: { "in": "query", "name": "fields", "dataType": "string" },
3785
5114
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3786
5115
  filter: { "in": "query", "name": "filter", "dataType": "string" },
3787
5116
  limit: { "in": "query", "name": "limit", "dataType": "double" },
3788
5117
  };
3789
- app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPools)), async function PoolController_getPools(request, response, next) {
5118
+ app.get('/rest/v0/pools/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMessages)), async function PoolController_getPoolMessages(request, response, next) {
3790
5119
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3791
5120
  let validatedArgs = [];
3792
5121
  try {
3793
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPools, request, response });
5122
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMessages, request, response });
3794
5123
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3795
5124
  const controller = await container.get(PoolController);
3796
5125
  if (typeof controller['setStatus'] === 'function') {
3797
5126
  controller.setStatus(undefined);
3798
5127
  }
3799
5128
  await templateService.apiHandler({
3800
- methodName: 'getPools',
5129
+ methodName: 'getPoolMessages',
3801
5130
  controller,
3802
5131
  response,
3803
5132
  next,
@@ -3810,26 +5139,27 @@ export function RegisterRoutes(app) {
3810
5139
  }
3811
5140
  });
3812
5141
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3813
- const argsPoolController_getPool = {
5142
+ const argsPoolController_putPoolTag = {
3814
5143
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5144
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
3815
5145
  };
3816
- app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPool)), async function PoolController_getPool(request, response, next) {
5146
+ app.put('/rest/v0/pools/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.putPoolTag)), async function PoolController_putPoolTag(request, response, next) {
3817
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
3818
5148
  let validatedArgs = [];
3819
5149
  try {
3820
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPool, request, response });
5150
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_putPoolTag, request, response });
3821
5151
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3822
5152
  const controller = await container.get(PoolController);
3823
5153
  if (typeof controller['setStatus'] === 'function') {
3824
5154
  controller.setStatus(undefined);
3825
5155
  }
3826
5156
  await templateService.apiHandler({
3827
- methodName: 'getPool',
5157
+ methodName: 'putPoolTag',
3828
5158
  controller,
3829
5159
  response,
3830
5160
  next,
3831
5161
  validatedArgs,
3832
- successStatus: undefined,
5162
+ successStatus: 204,
3833
5163
  });
3834
5164
  }
3835
5165
  catch (err) {
@@ -3837,28 +5167,27 @@ export function RegisterRoutes(app) {
3837
5167
  }
3838
5168
  });
3839
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
3840
- const argsPoolController_createNetwork = {
5170
+ const argsPoolController_deletePoolTag = {
3841
5171
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3842
- body: { "in": "body", "name": "body", "required": true, "ref": "CreateNetworkBody" },
3843
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5172
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
3844
5173
  };
3845
- app.post('/rest/v0/pools/:id/actions/create_network', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createNetwork)), async function PoolController_createNetwork(request, response, next) {
5174
+ app.delete('/rest/v0/pools/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.deletePoolTag)), async function PoolController_deletePoolTag(request, response, next) {
3846
5175
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3847
5176
  let validatedArgs = [];
3848
5177
  try {
3849
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createNetwork, request, response });
5178
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_deletePoolTag, request, response });
3850
5179
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3851
5180
  const controller = await container.get(PoolController);
3852
5181
  if (typeof controller['setStatus'] === 'function') {
3853
5182
  controller.setStatus(undefined);
3854
5183
  }
3855
5184
  await templateService.apiHandler({
3856
- methodName: 'createNetwork',
5185
+ methodName: 'deletePoolTag',
3857
5186
  controller,
3858
5187
  response,
3859
5188
  next,
3860
5189
  validatedArgs,
3861
- successStatus: 201,
5190
+ successStatus: 204,
3862
5191
  });
3863
5192
  }
3864
5193
  catch (err) {
@@ -3866,27 +5195,31 @@ export function RegisterRoutes(app) {
3866
5195
  }
3867
5196
  });
3868
5197
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3869
- const argsPoolController_emergencyShutdown = {
5198
+ const argsPoolController_getPoolTasks = {
5199
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3870
5200
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3871
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5201
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5202
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5203
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5204
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3872
5205
  };
3873
- app.post('/rest/v0/pools/:id/actions/emergency_shutdown', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.emergencyShutdown)), async function PoolController_emergencyShutdown(request, response, next) {
5206
+ app.get('/rest/v0/pools/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolTasks)), async function PoolController_getPoolTasks(request, response, next) {
3874
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
3875
5208
  let validatedArgs = [];
3876
5209
  try {
3877
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_emergencyShutdown, request, response });
5210
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolTasks, request, response });
3878
5211
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3879
5212
  const controller = await container.get(PoolController);
3880
5213
  if (typeof controller['setStatus'] === 'function') {
3881
5214
  controller.setStatus(undefined);
3882
5215
  }
3883
5216
  await templateService.apiHandler({
3884
- methodName: 'emergencyShutdown',
5217
+ methodName: 'getPoolTasks',
3885
5218
  controller,
3886
5219
  response,
3887
5220
  next,
3888
5221
  validatedArgs,
3889
- successStatus: 202,
5222
+ successStatus: undefined,
3890
5223
  });
3891
5224
  }
3892
5225
  catch (err) {
@@ -3894,27 +5227,30 @@ export function RegisterRoutes(app) {
3894
5227
  }
3895
5228
  });
3896
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
3897
- const argsPoolController_rollingReboot = {
3898
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3899
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5230
+ const argsPifController_getPifs = {
5231
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5232
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5233
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5234
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5235
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3900
5236
  };
3901
- app.post('/rest/v0/pools/:id/actions/rolling_reboot', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingReboot)), async function PoolController_rollingReboot(request, response, next) {
5237
+ app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
3902
5238
  // WARNING: This 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
5239
  let validatedArgs = [];
3904
5240
  try {
3905
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingReboot, request, response });
5241
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
3906
5242
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3907
- const controller = await container.get(PoolController);
5243
+ const controller = await container.get(PifController);
3908
5244
  if (typeof controller['setStatus'] === 'function') {
3909
5245
  controller.setStatus(undefined);
3910
5246
  }
3911
5247
  await templateService.apiHandler({
3912
- methodName: 'rollingReboot',
5248
+ methodName: 'getPifs',
3913
5249
  controller,
3914
5250
  response,
3915
5251
  next,
3916
5252
  validatedArgs,
3917
- successStatus: 202,
5253
+ successStatus: undefined,
3918
5254
  });
3919
5255
  }
3920
5256
  catch (err) {
@@ -3922,27 +5258,26 @@ export function RegisterRoutes(app) {
3922
5258
  }
3923
5259
  });
3924
5260
  // WARNING: This 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 argsPoolController_rollingUpdate = {
5261
+ const argsPifController_getPif = {
3926
5262
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3927
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
3928
5263
  };
3929
- app.post('/rest/v0/pools/:id/actions/rolling_update', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingUpdate)), async function PoolController_rollingUpdate(request, response, next) {
5264
+ app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
3930
5265
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3931
5266
  let validatedArgs = [];
3932
5267
  try {
3933
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingUpdate, request, response });
5268
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPif, request, response });
3934
5269
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3935
- const controller = await container.get(PoolController);
5270
+ const controller = await container.get(PifController);
3936
5271
  if (typeof controller['setStatus'] === 'function') {
3937
5272
  controller.setStatus(undefined);
3938
5273
  }
3939
5274
  await templateService.apiHandler({
3940
- methodName: 'rollingUpdate',
5275
+ methodName: 'getPif',
3941
5276
  controller,
3942
5277
  response,
3943
5278
  next,
3944
5279
  validatedArgs,
3945
- successStatus: 202,
5280
+ successStatus: undefined,
3946
5281
  });
3947
5282
  }
3948
5283
  catch (err) {
@@ -3950,28 +5285,31 @@ export function RegisterRoutes(app) {
3950
5285
  }
3951
5286
  });
3952
5287
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3953
- const argsPoolController_importVm = {
5288
+ const argsPifController_getPifAlarms = {
3954
5289
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3955
5290
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3956
- sr: { "in": "query", "name": "sr", "dataType": "string" },
5291
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5292
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5293
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5294
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3957
5295
  };
3958
- app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
5296
+ app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
3959
5297
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3960
5298
  let validatedArgs = [];
3961
5299
  try {
3962
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
5300
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
3963
5301
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3964
- const controller = await container.get(PoolController);
5302
+ const controller = await container.get(PifController);
3965
5303
  if (typeof controller['setStatus'] === 'function') {
3966
5304
  controller.setStatus(undefined);
3967
5305
  }
3968
5306
  await templateService.apiHandler({
3969
- methodName: 'importVm',
5307
+ methodName: 'getPifAlarms',
3970
5308
  controller,
3971
5309
  response,
3972
5310
  next,
3973
5311
  validatedArgs,
3974
- successStatus: 201,
5312
+ successStatus: undefined,
3975
5313
  });
3976
5314
  }
3977
5315
  catch (err) {
@@ -3979,28 +5317,31 @@ export function RegisterRoutes(app) {
3979
5317
  }
3980
5318
  });
3981
5319
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3982
- const argsPoolController_createVm = {
5320
+ const argsPifController_getPifMessages = {
5321
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3983
5322
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3984
- body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
3985
- sync: { "in": "query", "name": "sync", "dataType": "boolean" },
5323
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5324
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5325
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5326
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3986
5327
  };
3987
- app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
5328
+ app.get('/rest/v0/pifs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifMessages)), async function PifController_getPifMessages(request, response, next) {
3988
5329
  // WARNING: This 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
5330
  let validatedArgs = [];
3990
5331
  try {
3991
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
5332
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifMessages, request, response });
3992
5333
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3993
- const controller = await container.get(PoolController);
5334
+ const controller = await container.get(PifController);
3994
5335
  if (typeof controller['setStatus'] === 'function') {
3995
5336
  controller.setStatus(undefined);
3996
5337
  }
3997
5338
  await templateService.apiHandler({
3998
- methodName: 'createVm',
5339
+ methodName: 'getPifMessages',
3999
5340
  controller,
4000
5341
  response,
4001
5342
  next,
4002
5343
  validatedArgs,
4003
- successStatus: 201,
5344
+ successStatus: undefined,
4004
5345
  });
4005
5346
  }
4006
5347
  catch (err) {
@@ -4008,22 +5349,26 @@ export function RegisterRoutes(app) {
4008
5349
  }
4009
5350
  });
4010
5351
  // WARNING: This 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 argsPoolController_getStats = {
5352
+ const argsPifController_getPifTasks = {
5353
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4012
5354
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4013
- granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
5355
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5356
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5357
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5358
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4014
5359
  };
4015
- app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
5360
+ app.get('/rest/v0/pifs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifTasks)), async function PifController_getPifTasks(request, response, next) {
4016
5361
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4017
5362
  let validatedArgs = [];
4018
5363
  try {
4019
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
5364
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifTasks, request, response });
4020
5365
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4021
- const controller = await container.get(PoolController);
5366
+ const controller = await container.get(PifController);
4022
5367
  if (typeof controller['setStatus'] === 'function') {
4023
5368
  controller.setStatus(undefined);
4024
5369
  }
4025
5370
  await templateService.apiHandler({
4026
- methodName: 'getStats',
5371
+ methodName: 'getPifTasks',
4027
5372
  controller,
4028
5373
  response,
4029
5374
  next,
@@ -4036,23 +5381,25 @@ export function RegisterRoutes(app) {
4036
5381
  }
4037
5382
  });
4038
5383
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4039
- const argsPoolController_getPoolDashboard = {
5384
+ const argsPgpuController_getPgpus = {
4040
5385
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4041
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5386
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
4042
5387
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5388
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5389
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4043
5390
  };
4044
- app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
5391
+ app.get('/rest/v0/pgpus', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpus)), async function PgpuController_getPgpus(request, response, next) {
4045
5392
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4046
5393
  let validatedArgs = [];
4047
5394
  try {
4048
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
5395
+ validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpus, request, response });
4049
5396
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4050
- const controller = await container.get(PoolController);
5397
+ const controller = await container.get(PgpuController);
4051
5398
  if (typeof controller['setStatus'] === 'function') {
4052
5399
  controller.setStatus(undefined);
4053
5400
  }
4054
5401
  await templateService.apiHandler({
4055
- methodName: 'getPoolDashboard',
5402
+ methodName: 'getPgpus',
4056
5403
  controller,
4057
5404
  response,
4058
5405
  next,
@@ -4065,26 +5412,21 @@ export function RegisterRoutes(app) {
4065
5412
  }
4066
5413
  });
4067
5414
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4068
- const argsPoolController_getPoolAlarms = {
4069
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5415
+ const argsPgpuController_getPgpu = {
4070
5416
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4071
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4072
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4073
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4074
- limit: { "in": "query", "name": "limit", "dataType": "double" },
4075
5417
  };
4076
- app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
5418
+ app.get('/rest/v0/pgpus/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpu)), async function PgpuController_getPgpu(request, response, next) {
4077
5419
  // WARNING: This 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
5420
  let validatedArgs = [];
4079
5421
  try {
4080
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
5422
+ validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpu, request, response });
4081
5423
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4082
- const controller = await container.get(PoolController);
5424
+ const controller = await container.get(PgpuController);
4083
5425
  if (typeof controller['setStatus'] === 'function') {
4084
5426
  controller.setStatus(undefined);
4085
5427
  }
4086
5428
  await templateService.apiHandler({
4087
- methodName: 'getPoolAlarms',
5429
+ methodName: 'getPgpu',
4088
5430
  controller,
4089
5431
  response,
4090
5432
  next,
@@ -4097,21 +5439,25 @@ export function RegisterRoutes(app) {
4097
5439
  }
4098
5440
  });
4099
5441
  // WARNING: This 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_getPoolMissingPatches = {
4101
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5442
+ const argsPciController_getPcis = {
5443
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5444
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5445
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5446
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5447
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4102
5448
  };
4103
- app.get('/rest/v0/pools/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMissingPatches)), async function PoolController_getPoolMissingPatches(request, response, next) {
5449
+ app.get('/rest/v0/pcis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPcis)), async function PciController_getPcis(request, response, next) {
4104
5450
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4105
5451
  let validatedArgs = [];
4106
5452
  try {
4107
- validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMissingPatches, request, response });
5453
+ validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPcis, request, response });
4108
5454
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4109
- const controller = await container.get(PoolController);
5455
+ const controller = await container.get(PciController);
4110
5456
  if (typeof controller['setStatus'] === 'function') {
4111
5457
  controller.setStatus(undefined);
4112
5458
  }
4113
5459
  await templateService.apiHandler({
4114
- methodName: 'getPoolMissingPatches',
5460
+ methodName: 'getPcis',
4115
5461
  controller,
4116
5462
  response,
4117
5463
  next,
@@ -4124,25 +5470,21 @@ export function RegisterRoutes(app) {
4124
5470
  }
4125
5471
  });
4126
5472
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4127
- const argsPifController_getPifs = {
4128
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4129
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4130
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4131
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4132
- limit: { "in": "query", "name": "limit", "dataType": "double" },
5473
+ const argsPciController_getPci = {
5474
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4133
5475
  };
4134
- app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
5476
+ app.get('/rest/v0/pcis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPci)), async function PciController_getPci(request, response, next) {
4135
5477
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4136
5478
  let validatedArgs = [];
4137
5479
  try {
4138
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
5480
+ validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPci, request, response });
4139
5481
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4140
- const controller = await container.get(PifController);
5482
+ const controller = await container.get(PciController);
4141
5483
  if (typeof controller['setStatus'] === 'function') {
4142
5484
  controller.setStatus(undefined);
4143
5485
  }
4144
5486
  await templateService.apiHandler({
4145
- methodName: 'getPifs',
5487
+ methodName: 'getPci',
4146
5488
  controller,
4147
5489
  response,
4148
5490
  next,
@@ -4155,21 +5497,25 @@ export function RegisterRoutes(app) {
4155
5497
  }
4156
5498
  });
4157
5499
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4158
- const argsPifController_getPif = {
4159
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5500
+ const argsPbdController_getPbds = {
5501
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5502
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5503
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5504
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5505
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4160
5506
  };
4161
- app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
5507
+ app.get('/rest/v0/pbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PbdController)), ...(fetchMiddlewares(PbdController.prototype.getPbds)), async function PbdController_getPbds(request, response, next) {
4162
5508
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4163
5509
  let validatedArgs = [];
4164
5510
  try {
4165
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPif, request, response });
5511
+ validatedArgs = templateService.getValidatedArgs({ args: argsPbdController_getPbds, request, response });
4166
5512
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4167
- const controller = await container.get(PifController);
5513
+ const controller = await container.get(PbdController);
4168
5514
  if (typeof controller['setStatus'] === 'function') {
4169
5515
  controller.setStatus(undefined);
4170
5516
  }
4171
5517
  await templateService.apiHandler({
4172
- methodName: 'getPif',
5518
+ methodName: 'getPbds',
4173
5519
  controller,
4174
5520
  response,
4175
5521
  next,
@@ -4182,26 +5528,21 @@ export function RegisterRoutes(app) {
4182
5528
  }
4183
5529
  });
4184
5530
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4185
- const argsPifController_getPifAlarms = {
4186
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5531
+ const argsPbdController_getPbd = {
4187
5532
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4188
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4189
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4190
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4191
- limit: { "in": "query", "name": "limit", "dataType": "double" },
4192
5533
  };
4193
- app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
5534
+ app.get('/rest/v0/pbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PbdController)), ...(fetchMiddlewares(PbdController.prototype.getPbd)), async function PbdController_getPbd(request, response, next) {
4194
5535
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4195
5536
  let validatedArgs = [];
4196
5537
  try {
4197
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
5538
+ validatedArgs = templateService.getValidatedArgs({ args: argsPbdController_getPbd, request, response });
4198
5539
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4199
- const controller = await container.get(PifController);
5540
+ const controller = await container.get(PbdController);
4200
5541
  if (typeof controller['setStatus'] === 'function') {
4201
5542
  controller.setStatus(undefined);
4202
5543
  }
4203
5544
  await templateService.apiHandler({
4204
- methodName: 'getPifAlarms',
5545
+ methodName: 'getPbd',
4205
5546
  controller,
4206
5547
  response,
4207
5548
  next,
@@ -4214,25 +5555,25 @@ export function RegisterRoutes(app) {
4214
5555
  }
4215
5556
  });
4216
5557
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4217
- const argsPgpuController_getPgpus = {
5558
+ const argsNetworkController_getNetworks = {
4218
5559
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4219
5560
  fields: { "in": "query", "name": "fields", "dataType": "string" },
4220
5561
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4221
5562
  filter: { "in": "query", "name": "filter", "dataType": "string" },
4222
5563
  limit: { "in": "query", "name": "limit", "dataType": "double" },
4223
5564
  };
4224
- app.get('/rest/v0/pgpus', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpus)), async function PgpuController_getPgpus(request, response, next) {
5565
+ app.get('/rest/v0/networks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworks)), async function NetworkController_getNetworks(request, response, next) {
4225
5566
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4226
5567
  let validatedArgs = [];
4227
5568
  try {
4228
- validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpus, request, response });
5569
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworks, request, response });
4229
5570
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4230
- const controller = await container.get(PgpuController);
5571
+ const controller = await container.get(NetworkController);
4231
5572
  if (typeof controller['setStatus'] === 'function') {
4232
5573
  controller.setStatus(undefined);
4233
5574
  }
4234
5575
  await templateService.apiHandler({
4235
- methodName: 'getPgpus',
5576
+ methodName: 'getNetworks',
4236
5577
  controller,
4237
5578
  response,
4238
5579
  next,
@@ -4245,21 +5586,21 @@ export function RegisterRoutes(app) {
4245
5586
  }
4246
5587
  });
4247
5588
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4248
- const argsPgpuController_getPgpu = {
5589
+ const argsNetworkController_getNetwork = {
4249
5590
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4250
5591
  };
4251
- app.get('/rest/v0/pgpus/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpu)), async function PgpuController_getPgpu(request, response, next) {
5592
+ app.get('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetwork)), async function NetworkController_getNetwork(request, response, next) {
4252
5593
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4253
5594
  let validatedArgs = [];
4254
5595
  try {
4255
- validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpu, request, response });
5596
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetwork, request, response });
4256
5597
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4257
- const controller = await container.get(PgpuController);
5598
+ const controller = await container.get(NetworkController);
4258
5599
  if (typeof controller['setStatus'] === 'function') {
4259
5600
  controller.setStatus(undefined);
4260
5601
  }
4261
5602
  await templateService.apiHandler({
4262
- methodName: 'getPgpu',
5603
+ methodName: 'getNetwork',
4263
5604
  controller,
4264
5605
  response,
4265
5606
  next,
@@ -4272,30 +5613,26 @@ export function RegisterRoutes(app) {
4272
5613
  }
4273
5614
  });
4274
5615
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4275
- const argsPciController_getPcis = {
4276
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4277
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4278
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4279
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4280
- limit: { "in": "query", "name": "limit", "dataType": "double" },
5616
+ const argsNetworkController_deleteNetwork = {
5617
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4281
5618
  };
4282
- app.get('/rest/v0/pcis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPcis)), async function PciController_getPcis(request, response, next) {
5619
+ app.delete('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetwork)), async function NetworkController_deleteNetwork(request, response, next) {
4283
5620
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4284
5621
  let validatedArgs = [];
4285
5622
  try {
4286
- validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPcis, request, response });
5623
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetwork, request, response });
4287
5624
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4288
- const controller = await container.get(PciController);
5625
+ const controller = await container.get(NetworkController);
4289
5626
  if (typeof controller['setStatus'] === 'function') {
4290
5627
  controller.setStatus(undefined);
4291
5628
  }
4292
5629
  await templateService.apiHandler({
4293
- methodName: 'getPcis',
5630
+ methodName: 'deleteNetwork',
4294
5631
  controller,
4295
5632
  response,
4296
5633
  next,
4297
5634
  validatedArgs,
4298
- successStatus: undefined,
5635
+ successStatus: 204,
4299
5636
  });
4300
5637
  }
4301
5638
  catch (err) {
@@ -4303,21 +5640,26 @@ export function RegisterRoutes(app) {
4303
5640
  }
4304
5641
  });
4305
5642
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4306
- const argsPciController_getPci = {
5643
+ const argsNetworkController_getNetworkAlarms = {
5644
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4307
5645
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5646
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5647
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5648
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5649
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4308
5650
  };
4309
- app.get('/rest/v0/pcis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPci)), async function PciController_getPci(request, response, next) {
5651
+ app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
4310
5652
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4311
5653
  let validatedArgs = [];
4312
5654
  try {
4313
- validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPci, request, response });
5655
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
4314
5656
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4315
- const controller = await container.get(PciController);
5657
+ const controller = await container.get(NetworkController);
4316
5658
  if (typeof controller['setStatus'] === 'function') {
4317
5659
  controller.setStatus(undefined);
4318
5660
  }
4319
5661
  await templateService.apiHandler({
4320
- methodName: 'getPci',
5662
+ methodName: 'getNetworkAlarms',
4321
5663
  controller,
4322
5664
  response,
4323
5665
  next,
@@ -4330,25 +5672,26 @@ export function RegisterRoutes(app) {
4330
5672
  }
4331
5673
  });
4332
5674
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4333
- const argsNetworkController_getNetworks = {
5675
+ const argsNetworkController_getNetworkMessages = {
4334
5676
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5677
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4335
5678
  fields: { "in": "query", "name": "fields", "dataType": "string" },
4336
5679
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4337
5680
  filter: { "in": "query", "name": "filter", "dataType": "string" },
4338
5681
  limit: { "in": "query", "name": "limit", "dataType": "double" },
4339
5682
  };
4340
- app.get('/rest/v0/networks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworks)), async function NetworkController_getNetworks(request, response, next) {
5683
+ app.get('/rest/v0/networks/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkMessages)), async function NetworkController_getNetworkMessages(request, response, next) {
4341
5684
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4342
5685
  let validatedArgs = [];
4343
5686
  try {
4344
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworks, request, response });
5687
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkMessages, request, response });
4345
5688
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4346
5689
  const controller = await container.get(NetworkController);
4347
5690
  if (typeof controller['setStatus'] === 'function') {
4348
5691
  controller.setStatus(undefined);
4349
5692
  }
4350
5693
  await templateService.apiHandler({
4351
- methodName: 'getNetworks',
5694
+ methodName: 'getNetworkMessages',
4352
5695
  controller,
4353
5696
  response,
4354
5697
  next,
@@ -4361,21 +5704,26 @@ export function RegisterRoutes(app) {
4361
5704
  }
4362
5705
  });
4363
5706
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4364
- const argsNetworkController_getNetwork = {
5707
+ const argsNetworkController_getNetworkTasks = {
5708
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4365
5709
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5710
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
5711
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
5712
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
5713
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
4366
5714
  };
4367
- app.get('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetwork)), async function NetworkController_getNetwork(request, response, next) {
5715
+ app.get('/rest/v0/networks/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkTasks)), async function NetworkController_getNetworkTasks(request, response, next) {
4368
5716
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4369
5717
  let validatedArgs = [];
4370
5718
  try {
4371
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetwork, request, response });
5719
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkTasks, request, response });
4372
5720
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4373
5721
  const controller = await container.get(NetworkController);
4374
5722
  if (typeof controller['setStatus'] === 'function') {
4375
5723
  controller.setStatus(undefined);
4376
5724
  }
4377
5725
  await templateService.apiHandler({
4378
- methodName: 'getNetwork',
5726
+ methodName: 'getNetworkTasks',
4379
5727
  controller,
4380
5728
  response,
4381
5729
  next,
@@ -4388,21 +5736,22 @@ export function RegisterRoutes(app) {
4388
5736
  }
4389
5737
  });
4390
5738
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4391
- const argsNetworkController_deleteNetwork = {
5739
+ const argsNetworkController_putNetworkTag = {
4392
5740
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
5741
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
4393
5742
  };
4394
- app.delete('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetwork)), async function NetworkController_deleteNetwork(request, response, next) {
5743
+ app.put('/rest/v0/networks/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.putNetworkTag)), async function NetworkController_putNetworkTag(request, response, next) {
4395
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
4396
5745
  let validatedArgs = [];
4397
5746
  try {
4398
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetwork, request, response });
5747
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_putNetworkTag, request, response });
4399
5748
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4400
5749
  const controller = await container.get(NetworkController);
4401
5750
  if (typeof controller['setStatus'] === 'function') {
4402
5751
  controller.setStatus(undefined);
4403
5752
  }
4404
5753
  await templateService.apiHandler({
4405
- methodName: 'deleteNetwork',
5754
+ methodName: 'putNetworkTag',
4406
5755
  controller,
4407
5756
  response,
4408
5757
  next,
@@ -4415,31 +5764,27 @@ export function RegisterRoutes(app) {
4415
5764
  }
4416
5765
  });
4417
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
4418
- const argsNetworkController_getNetworkAlarms = {
4419
- req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5767
+ const argsNetworkController_deleteNetworkTag = {
4420
5768
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
4421
- fields: { "in": "query", "name": "fields", "dataType": "string" },
4422
- ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
4423
- filter: { "in": "query", "name": "filter", "dataType": "string" },
4424
- limit: { "in": "query", "name": "limit", "dataType": "double" },
5769
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
4425
5770
  };
4426
- app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
5771
+ app.delete('/rest/v0/networks/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetworkTag)), async function NetworkController_deleteNetworkTag(request, response, next) {
4427
5772
  // WARNING: This 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
5773
  let validatedArgs = [];
4429
5774
  try {
4430
- validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
5775
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetworkTag, request, response });
4431
5776
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
4432
5777
  const controller = await container.get(NetworkController);
4433
5778
  if (typeof controller['setStatus'] === 'function') {
4434
5779
  controller.setStatus(undefined);
4435
5780
  }
4436
5781
  await templateService.apiHandler({
4437
- methodName: 'getNetworkAlarms',
5782
+ methodName: 'deleteNetworkTag',
4438
5783
  controller,
4439
5784
  response,
4440
5785
  next,
4441
5786
  validatedArgs,
4442
- successStatus: undefined,
5787
+ successStatus: 204,
4443
5788
  });
4444
5789
  }
4445
5790
  catch (err) {
@@ -4733,6 +6078,126 @@ export function RegisterRoutes(app) {
4733
6078
  }
4734
6079
  });
4735
6080
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6081
+ const argsHostController_getHostMessages = {
6082
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
6083
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6084
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
6085
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
6086
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
6087
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
6088
+ };
6089
+ app.get('/rest/v0/hosts/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostMessages)), async function HostController_getHostMessages(request, response, next) {
6090
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6091
+ let validatedArgs = [];
6092
+ try {
6093
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostMessages, request, response });
6094
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6095
+ const controller = await container.get(HostController);
6096
+ if (typeof controller['setStatus'] === 'function') {
6097
+ controller.setStatus(undefined);
6098
+ }
6099
+ await templateService.apiHandler({
6100
+ methodName: 'getHostMessages',
6101
+ controller,
6102
+ response,
6103
+ next,
6104
+ validatedArgs,
6105
+ successStatus: undefined,
6106
+ });
6107
+ }
6108
+ catch (err) {
6109
+ return next(err);
6110
+ }
6111
+ });
6112
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6113
+ const argsHostController_getHostTasks = {
6114
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
6115
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6116
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
6117
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
6118
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
6119
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
6120
+ };
6121
+ app.get('/rest/v0/hosts/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostTasks)), async function HostController_getHostTasks(request, response, next) {
6122
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6123
+ let validatedArgs = [];
6124
+ try {
6125
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostTasks, request, response });
6126
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6127
+ const controller = await container.get(HostController);
6128
+ if (typeof controller['setStatus'] === 'function') {
6129
+ controller.setStatus(undefined);
6130
+ }
6131
+ await templateService.apiHandler({
6132
+ methodName: 'getHostTasks',
6133
+ controller,
6134
+ response,
6135
+ next,
6136
+ validatedArgs,
6137
+ successStatus: undefined,
6138
+ });
6139
+ }
6140
+ catch (err) {
6141
+ return next(err);
6142
+ }
6143
+ });
6144
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6145
+ const argsHostController_putHostTag = {
6146
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6147
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
6148
+ };
6149
+ app.put('/rest/v0/hosts/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.putHostTag)), async function HostController_putHostTag(request, response, next) {
6150
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6151
+ let validatedArgs = [];
6152
+ try {
6153
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_putHostTag, request, response });
6154
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6155
+ const controller = await container.get(HostController);
6156
+ if (typeof controller['setStatus'] === 'function') {
6157
+ controller.setStatus(undefined);
6158
+ }
6159
+ await templateService.apiHandler({
6160
+ methodName: 'putHostTag',
6161
+ controller,
6162
+ response,
6163
+ next,
6164
+ validatedArgs,
6165
+ successStatus: 204,
6166
+ });
6167
+ }
6168
+ catch (err) {
6169
+ return next(err);
6170
+ }
6171
+ });
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_deleteHostTag = {
6174
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6175
+ tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
6176
+ };
6177
+ app.delete('/rest/v0/hosts/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.deleteHostTag)), async function HostController_deleteHostTag(request, response, next) {
6178
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6179
+ let validatedArgs = [];
6180
+ try {
6181
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_deleteHostTag, request, response });
6182
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6183
+ const controller = await container.get(HostController);
6184
+ if (typeof controller['setStatus'] === 'function') {
6185
+ controller.setStatus(undefined);
6186
+ }
6187
+ await templateService.apiHandler({
6188
+ methodName: 'deleteHostTag',
6189
+ controller,
6190
+ response,
6191
+ next,
6192
+ validatedArgs,
6193
+ successStatus: 204,
6194
+ });
6195
+ }
6196
+ catch (err) {
6197
+ return next(err);
6198
+ }
6199
+ });
6200
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4736
6201
  const argsGroupController_getGroups = {
4737
6202
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4738
6203
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -4961,6 +6426,38 @@ export function RegisterRoutes(app) {
4961
6426
  }
4962
6427
  });
4963
6428
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6429
+ const argsGroupController_getGroupTasks = {
6430
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
6431
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6432
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
6433
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
6434
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
6435
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
6436
+ };
6437
+ app.get('/rest/v0/groups/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroupTasks)), async function GroupController_getGroupTasks(request, response, next) {
6438
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6439
+ let validatedArgs = [];
6440
+ try {
6441
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroupTasks, request, response });
6442
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6443
+ const controller = await container.get(GroupController);
6444
+ if (typeof controller['setStatus'] === 'function') {
6445
+ controller.setStatus(undefined);
6446
+ }
6447
+ await templateService.apiHandler({
6448
+ methodName: 'getGroupTasks',
6449
+ controller,
6450
+ response,
6451
+ next,
6452
+ validatedArgs,
6453
+ successStatus: undefined,
6454
+ });
6455
+ }
6456
+ catch (err) {
6457
+ return next(err);
6458
+ }
6459
+ });
6460
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4964
6461
  const argsBackupRepositoryController_getRepositories = {
4965
6462
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
4966
6463
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -5395,6 +6892,65 @@ export function RegisterRoutes(app) {
5395
6892
  }
5396
6893
  });
5397
6894
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6895
+ const argsBackupArchiveController_getBackupArchives = {
6896
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
6897
+ backupRepositories: { "in": "query", "name": "backup-repository", "dataType": "array", "array": { "dataType": "string" } },
6898
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
6899
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
6900
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
6901
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
6902
+ };
6903
+ app.get('/rest/v0/backup-archives', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupArchiveController)), ...(fetchMiddlewares(BackupArchiveController.prototype.getBackupArchives)), async function BackupArchiveController_getBackupArchives(request, response, next) {
6904
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6905
+ let validatedArgs = [];
6906
+ try {
6907
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupArchiveController_getBackupArchives, request, response });
6908
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6909
+ const controller = await container.get(BackupArchiveController);
6910
+ if (typeof controller['setStatus'] === 'function') {
6911
+ controller.setStatus(undefined);
6912
+ }
6913
+ await templateService.apiHandler({
6914
+ methodName: 'getBackupArchives',
6915
+ controller,
6916
+ response,
6917
+ next,
6918
+ validatedArgs,
6919
+ successStatus: undefined,
6920
+ });
6921
+ }
6922
+ catch (err) {
6923
+ return next(err);
6924
+ }
6925
+ });
6926
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6927
+ const argsBackupArchiveController_getBackupArchive = {
6928
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
6929
+ };
6930
+ app.get('/rest/v0/backup-archives/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupArchiveController)), ...(fetchMiddlewares(BackupArchiveController.prototype.getBackupArchive)), async function BackupArchiveController_getBackupArchive(request, response, next) {
6931
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
6932
+ let validatedArgs = [];
6933
+ try {
6934
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupArchiveController_getBackupArchive, request, response });
6935
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
6936
+ const controller = await container.get(BackupArchiveController);
6937
+ if (typeof controller['setStatus'] === 'function') {
6938
+ controller.setStatus(undefined);
6939
+ }
6940
+ await templateService.apiHandler({
6941
+ methodName: 'getBackupArchive',
6942
+ controller,
6943
+ response,
6944
+ next,
6945
+ validatedArgs,
6946
+ successStatus: undefined,
6947
+ });
6948
+ }
6949
+ catch (err) {
6950
+ return next(err);
6951
+ }
6952
+ });
6953
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
5398
6954
  const argsAlarmController_getAlarms = {
5399
6955
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
5400
6956
  fields: { "in": "query", "name": "fields", "dataType": "string" },