@xen-orchestra/rest-api 0.11.0 → 0.12.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 (30) hide show
  1. package/dist/abstract-classes/base-controller.mjs +2 -2
  2. package/dist/alarms/alarm.controller.mjs +10 -60
  3. package/dist/alarms/alarm.service.mjs +67 -0
  4. package/dist/backup-repositories/backup-repositories.controller.mjs +61 -0
  5. package/dist/groups/group.controller.mjs +15 -2
  6. package/dist/helpers/object-wrapper.helper.mjs +8 -1
  7. package/dist/helpers/utils.helper.mjs +74 -1
  8. package/dist/hosts/host.controller.mjs +57 -2
  9. package/dist/hosts/host.service.mjs +78 -0
  10. package/dist/ioc/ioc.mjs +25 -1
  11. package/dist/messages/message.controller.mjs +1 -1
  12. package/dist/networks/network.controller.mjs +34 -2
  13. package/dist/open-api/oa-examples/alarm.oa-example.mjs +12 -0
  14. package/dist/open-api/oa-examples/backup-repository.oa-example.mjs +31 -0
  15. package/dist/open-api/oa-examples/pool.oa-example.mjs +201 -0
  16. package/dist/open-api/oa-examples/user.oa-example.mjs +1 -0
  17. package/dist/open-api/routes/routes.js +585 -76
  18. package/dist/pifs/pif.controller.mjs +34 -2
  19. package/dist/pools/pool.controller.mjs +70 -3
  20. package/dist/pools/pool.service.mjs +212 -0
  21. package/dist/rest-api/rest-api.mjs +6 -1
  22. package/dist/srs/sr.controller.mjs +34 -2
  23. package/dist/users/user.controller.mjs +32 -3
  24. package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +34 -2
  25. package/dist/vdis/vdi.controller.mjs +34 -2
  26. package/dist/vm-templates/vm-template.controller.mjs +34 -2
  27. package/dist/vms/vm.service.mjs +40 -0
  28. package/dist/xoa/xoa.service.mjs +96 -110
  29. package/open-api/spec/swagger.json +3248 -1133
  30. package/package.json +3 -3
@@ -38,22 +38,29 @@ import { PciController } from './../../pcis/pci.controller.mjs';
38
38
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
39
39
  import { NetworkController } from './../../networks/network.controller.mjs';
40
40
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
41
- import { AlarmController } from './../../alarms/alarm.controller.mjs';
42
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
43
41
  import { MessageController } from './../../messages/message.controller.mjs';
44
42
  // WARNING: This 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
43
  import { HostController } from './../../hosts/host.controller.mjs';
46
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
47
45
  import { GroupController } from './../../groups/group.controller.mjs';
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 { BackupRepositoryController } from './../../backup-repositories/backup-repositories.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
49
+ import { AlarmController } from './../../alarms/alarm.controller.mjs';
48
50
  import { expressAuthentication } from './../../middlewares/authentication.middleware.mjs';
49
51
  // @ts-ignore - no great way to install types from subpackage
50
52
  import { iocContainer } from './../../ioc/ioc.mjs';
51
53
  const expressAuthenticationRecasted = expressAuthentication;
52
54
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
53
55
  const models = {
56
+ "PromiseWriteInStreamError": {
57
+ "dataType": "refAlias",
58
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "error": { "dataType": "enum", "enums": [true], "required": true } }, "validators": {} },
59
+ },
60
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
54
61
  "DashboardBackupRepositoriesSizeInfo": {
55
62
  "dataType": "refAlias",
56
- "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "other": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "used": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "other": { "dataType": "double", "required": true }, "backups": { "dataType": "double", "required": true }, "available": { "dataType": "double", "required": true } }, "required": true } }, "required": true }, "s3": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "backups": { "dataType": "double", "required": true } }, "required": true } }, "required": true } }, "validators": {} },
63
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "other": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "used": { "dataType": "double" }, "total": { "dataType": "double" }, "other": { "dataType": "double" }, "backups": { "dataType": "double", "required": true }, "available": { "dataType": "double" } }, "required": true } } }, "s3": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "backups": { "dataType": "double", "required": true } }, "required": true } } } }, "validators": {} },
57
64
  },
58
65
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
59
66
  "BACKUP_TYPE": {
@@ -68,7 +75,7 @@ const models = {
68
75
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
69
76
  "XoaDashboard": {
70
77
  "dataType": "refAlias",
71
- "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "poolsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "unknown": { "dataType": "double", "required": true }, "unreachable": { "dataType": "double", "required": true }, "connected": { "dataType": "double", "required": true } }, "required": true }, "resourcesOverview": { "dataType": "nestedObjectLiteral", "nestedProperties": { "srSize": { "dataType": "double", "required": true }, "memorySize": { "dataType": "double", "required": true }, "nCpus": { "dataType": "double", "required": true } }, "required": true }, "backups": { "ref": "DashboardBackupsInfo" }, "storageRepositories": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "used": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "replicated": { "dataType": "double", "required": true }, "other": { "dataType": "double", "required": true }, "available": { "dataType": "double", "required": true } }, "required": true } }, "required": true }, "backupRepositories": { "ref": "DashboardBackupRepositoriesSizeInfo" }, "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "nHostsFailed": { "dataType": "double", "required": true }, "nPoolsWithMissingPatches": { "dataType": "double", "required": true }, "nHostsWithMissingPatches": { "dataType": "double", "required": true }, "hasAuthorization": { "dataType": "enum", "enums": [true], "required": true } } }], "required": true }, "vmsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "unknown": { "dataType": "double", "required": true }, "inactive": { "dataType": "double", "required": true }, "active": { "dataType": "double", "required": true } }, "required": true }, "hostsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "unknown": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true }, "nHostsEol": { "dataType": "double" }, "nHosts": { "dataType": "double", "required": true }, "nPools": { "dataType": "double", "required": true } }, "validators": {} },
78
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "poolsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "unknown": { "dataType": "double", "required": true }, "unreachable": { "dataType": "double", "required": true }, "connected": { "dataType": "double", "required": true } }, "required": true }, "resourcesOverview": { "dataType": "nestedObjectLiteral", "nestedProperties": { "srSize": { "dataType": "double", "required": true }, "memorySize": { "dataType": "double", "required": true }, "nCpus": { "dataType": "double", "required": true } }, "required": true }, "backups": { "dataType": "union", "subSchemas": [{ "ref": "DashboardBackupsInfo" }, { "ref": "PromiseWriteInStreamError" }] }, "storageRepositories": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "used": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "replicated": { "dataType": "double", "required": true }, "other": { "dataType": "double", "required": true }, "available": { "dataType": "double", "required": true } }, "required": true } } }, { "ref": "PromiseWriteInStreamError" }], "required": true }, "backupRepositories": { "dataType": "union", "subSchemas": [{ "ref": "DashboardBackupRepositoriesSizeInfo" }, { "ref": "PromiseWriteInStreamError" }] }, "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "nHostsFailed": { "dataType": "double", "required": true }, "nPoolsWithMissingPatches": { "dataType": "double", "required": true }, "nHostsWithMissingPatches": { "dataType": "double", "required": true }, "hasAuthorization": { "dataType": "enum", "enums": [true], "required": true } } }], "required": true }, "vmsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "unknown": { "dataType": "double", "required": true }, "inactive": { "dataType": "double", "required": true }, "active": { "dataType": "double", "required": true } }, "required": true }, "hostsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "unknown": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true }, "nHostsEol": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "ref": "PromiseWriteInStreamError" }] }, "nHosts": { "dataType": "double", "required": true }, "nPools": { "dataType": "double", "required": true } }, "validators": {} },
72
79
  },
73
80
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
74
81
  "Record_string.string_": {
@@ -176,6 +183,21 @@ const models = {
176
183
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$VGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$container": { "dataType": "string", "required": true }, "CPUs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } }, "required": true }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VTPMs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "addresses": { "ref": "Record_string.string_", "required": true }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "boolean", "required": true }, "bios_strings": { "ref": "Record_string.string_", "required": true }, "blockedOperations": { "ref": "Record_VM_OPERATIONS.string_", "required": true }, "boot": { "ref": "Record_string.string_", "required": true }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "ref": "Record_string.string_", "required": true }, "current_operations": { "ref": "Record_string.VM_OPERATIONS_", "required": true }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "boolean", "required": true }, "isNestedVirtEnabled": { "dataType": "boolean", "required": true }, "hasVendorDevice": { "dataType": "boolean", "required": true }, "high_availability": { "dataType": "string", "required": true }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "isFirmwareSupported": { "dataType": "boolean", "required": true }, "memory": { "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "static": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "size": { "dataType": "double", "required": true }, "dynamic": { "dataType": "array", "array": { "dataType": "double" }, "required": true } }, "required": true }, "mainIpAddress": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "managementAgentDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "needsVtpm": { "dataType": "boolean", "required": true }, "nicType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "notes": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "os_version": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "enum", "enums": [null] }], "required": true }, "other": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "power_state": { "ref": "VM_POWER_STATE", "required": true }, "pvDriversDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversUpToDate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversVersion": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "resourceSet": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "secureBoot": { "dataType": "boolean", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "startDelay": { "dataType": "double", "required": true }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "boolean", "required": true }, "virtualizationMode": { "ref": "DOMAIN_TYPE", "required": true }, "xenStoreData": { "ref": "Record_string.string_", "required": true }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "isDefaultTemplate": { "dataType": "boolean", "required": true }, "template_info": { "dataType": "nestedObjectLiteral", "nestedProperties": { "install_repository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "install_methods": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "SR": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "bootable": { "dataType": "enum", "enums": [true], "required": true } } }, "required": true }, "arch": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "required": true }, "type": { "dataType": "enum", "enums": ["VM-template"], "required": true } }, "validators": {} },
177
184
  },
178
185
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
186
+ "Partial_Unbrand_XoAlarm__": {
187
+ "dataType": "refAlias",
188
+ "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": ["VM-template"] }, { "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": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
189
+ },
190
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
191
+ "WithHref_Partial_Unbrand_XoAlarm___": {
192
+ "dataType": "refAlias",
193
+ "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoAlarm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
194
+ },
195
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
196
+ "SendObjects_Partial_Unbrand_XoAlarm___": {
197
+ "dataType": "refAlias",
198
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoAlarm___" } }, { "ref": "NdjsonStream" }], "validators": {} },
199
+ },
200
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
179
201
  "Partial_Unbrand_XoVmSnapshot__": {
180
202
  "dataType": "refAlias",
181
203
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "CPUs": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } } }, { "dataType": "undefined" }] }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VIFs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VTPMs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "addresses": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "bios_strings": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "blockedOperations": { "dataType": "union", "subSchemas": [{ "ref": "Record_VM_OPERATIONS.string_" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VM_OPERATIONS_" }, { "dataType": "undefined" }] }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "isNestedVirtEnabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "hasVendorDevice": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "high_availability": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "isFirmwareSupported": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "memory": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "static": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "size": { "dataType": "double", "required": true }, "dynamic": { "dataType": "array", "array": { "dataType": "double" }, "required": true } } }, { "dataType": "undefined" }] }, "mainIpAddress": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "managementAgentDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "needsVtpm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "nicType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "notes": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "os_version": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "other": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "power_state": { "dataType": "union", "subSchemas": [{ "ref": "VM_POWER_STATE" }, { "dataType": "undefined" }] }, "pvDriversDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversUpToDate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversVersion": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "resourceSet": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "secureBoot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "startDelay": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "virtualizationMode": { "dataType": "union", "subSchemas": [{ "ref": "DOMAIN_TYPE" }, { "dataType": "undefined" }] }, "xenStoreData": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "snapshot_time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "suspendVdi": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "undefined" }] } }, "validators": {} },
@@ -343,7 +365,7 @@ const models = {
343
365
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
344
366
  "Partial_Unbrand_XoSr__": {
345
367
  "dataType": "refAlias",
346
- "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" }] }, "$PBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VDIs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "enum", "enums": ["unknown"] }, { "dataType": "undefined" }] }, "content_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.STORAGE_OPERATIONS_" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "inMaintenanceMode": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "physical_usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "shared": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "sm_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "SR_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["SR"] }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } }, "validators": {} },
368
+ "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" }] }, "$PBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VDIs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "undefined" }] }, "content_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.STORAGE_OPERATIONS_" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "inMaintenanceMode": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "physical_usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "shared": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "sm_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "SR_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["SR"] }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } }, "validators": {} },
347
369
  },
348
370
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
349
371
  "WithHref_Partial_Unbrand_XoSr___": {
@@ -358,7 +380,7 @@ const models = {
358
380
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
359
381
  "Unbrand_XoSr_": {
360
382
  "dataType": "refAlias",
361
- "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": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "enum", "enums": ["unknown"] }], "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": {} },
383
+ "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": {} },
362
384
  },
363
385
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
364
386
  "Record_string.number_": {
@@ -484,7 +506,7 @@ const models = {
484
506
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
485
507
  "Unbrand_CreateVmBody_": {
486
508
  "dataType": "refAlias",
487
- "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string", "required": true }, "clone": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "vifs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "network": { "dataType": "string", "required": true }, "mtu": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "mac": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "ipv6_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "ipv4_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "vgpuType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "gpuGroup": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "copyHostBiosStrings": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template": { "dataType": "string", "required": true }, "affinity": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vdis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "userdevice": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "userdervice": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "install": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "repository": { "dataType": "string", "required": true }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["cdrom"] }], "required": true } } }, { "dataType": "undefined" }] }, "cloud_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "network_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "destroy_cloud_config_vdi": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
509
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "memory": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "string", "required": true }, "clone": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "gpuGroup": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vgpuType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "autoPoweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "vifs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "network": { "dataType": "string", "required": true }, "mtu": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "mac": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "ipv6_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "ipv4_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "copyHostBiosStrings": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template": { "dataType": "string", "required": true }, "affinity": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vdis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "userdevice": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "userdervice": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "install": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "repository": { "dataType": "string", "required": true }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["cdrom"] }], "required": true } } }, { "dataType": "undefined" }] }, "cloud_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "network_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "destroy_cloud_config_vdi": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
488
510
  },
489
511
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
490
512
  "XapiHostStatsRaw": {
@@ -512,6 +534,21 @@ const models = {
512
534
  "type": { "ref": "Record_XoHost-at-id.XapiHostStats-or-_error-Record_string.unknown___", "validators": {} },
513
535
  },
514
536
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
537
+ "XcpPatches": {
538
+ "dataType": "refAlias",
539
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "string", "required": true }, "url": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "release": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "license": { "dataType": "string", "required": true }, "description": { "dataType": "string", "required": true }, "changelog": { "dataType": "nestedObjectLiteral", "nestedProperties": { "description": { "dataType": "string", "required": true }, "date": { "dataType": "double", "required": true }, "author": { "dataType": "string", "required": true } } } }, "validators": {} },
540
+ },
541
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
542
+ "XsPatches": {
543
+ "dataType": "refAlias",
544
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "uuid": { "dataType": "string" }, "url": { "dataType": "string" }, "upgrade": { "dataType": "boolean" }, "requirements": { "dataType": "array", "array": { "dataType": "string" } }, "paid": { "dataType": "boolean" }, "id": { "dataType": "string" }, "name": { "dataType": "string", "required": true }, "guidances": { "dataType": "string", "required": true }, "documentationUrl": { "dataType": "string" }, "description": { "dataType": "string", "required": true }, "date": { "dataType": "string", "required": true }, "conflicts": { "dataType": "array", "array": { "dataType": "string" } } }, "validators": {} },
545
+ },
546
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
547
+ "PoolDashboard": {
548
+ "dataType": "refAlias",
549
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cpuProvisioning": { "dataType": "nestedObjectLiteral", "nestedProperties": { "percent": { "dataType": "double", "required": true }, "assigned": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true } }, "required": true }, "alarms": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "srs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "topFiveUsage": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "double", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "percent": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true } }, "required": true }, "vms": { "dataType": "nestedObjectLiteral", "nestedProperties": { "topFiveUsage": { "dataType": "nestedObjectLiteral", "nestedProperties": { "isExpired": { "dataType": "boolean" }, "ram": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "memoryFree": { "dataType": "double", "required": true }, "memory": { "dataType": "double", "required": true }, "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true }, "cpu": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true } } }, "status": { "dataType": "nestedObjectLiteral", "nestedProperties": { "suspended": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "paused": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true } }, "required": true }, "hosts": { "dataType": "nestedObjectLiteral", "nestedProperties": { "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "missingPatches": { "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "ref": "XcpPatches" }, { "ref": "XsPatches" }] }, "required": true }, "hasAuthorization": { "dataType": "enum", "enums": [true], "required": true } } }], "required": true }, "topFiveUsage": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cpu": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true }, "ram": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "percent": { "dataType": "double", "required": true }, "usage": { "dataType": "double", "required": true }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true } }, "required": true }, "status": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "disabled": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true } }, "required": true } }, "validators": {} },
550
+ },
551
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
515
552
  "Branded_PIF_": {
516
553
  "dataType": "refAlias",
517
554
  "type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["PIF"], "required": true } } }], "validators": {} },
@@ -627,31 +664,6 @@ const models = {
627
664
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "MTU": { "dataType": "double", "required": true }, "PIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "automatic": { "dataType": "boolean", "required": true }, "bridge": { "dataType": "string", "required": true }, "current_operations": { "ref": "Record_string.attaching_", "required": true }, "defaultIsLocked": { "dataType": "boolean", "required": true }, "id": { "dataType": "string", "required": true }, "insecureNbd": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "nbd": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "other_config": { "ref": "Record_string.string_", "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["network"], "required": true } }, "validators": {} },
628
665
  },
629
666
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
630
- "Partial_UnbrandedXoAlarm_": {
631
- "dataType": "refAlias",
632
- "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": "string", "required": true } } }, { "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": ["VM-template"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
633
- },
634
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
635
- "WithHref_Partial_UnbrandedXoAlarm__": {
636
- "dataType": "refAlias",
637
- "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandedXoAlarm_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
638
- },
639
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
640
- "SendObjects_Partial_UnbrandedXoAlarm__": {
641
- "dataType": "refAlias",
642
- "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandedXoAlarm__" } }, { "ref": "NdjsonStream" }], "validators": {} },
643
- },
644
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
645
- "Unbrand_XoAlarm_": {
646
- "dataType": "refAlias",
647
- "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": "string", "required": true } }, "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": ["VM-template"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }], "required": true } }, "required": true } }, "validators": {} },
648
- },
649
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
650
- "UnbrandedXoAlarm": {
651
- "dataType": "refAlias",
652
- "type": { "ref": "Unbrand_XoAlarm_", "validators": {} },
653
- },
654
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
655
667
  "Partial_UnbrandedXoMessage_": {
656
668
  "dataType": "refAlias",
657
669
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$object": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] } }, "validators": {} },
@@ -737,6 +749,51 @@ const models = {
737
749
  "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "provider": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "providerGroupId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "users": { "dataType": "array", "array": { "dataType": "string" }, "required": true } }, "validators": {} },
738
750
  },
739
751
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
752
+ "Partial_Unbrand_XoBackupRepository__": {
753
+ "dataType": "refAlias",
754
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "benchmarks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "writeRate": { "dataType": "double", "required": true }, "timestamp": { "dataType": "double", "required": true }, "readRate": { "dataType": "double", "required": true } } } }, { "dataType": "undefined" }] }, "enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "options": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
755
+ },
756
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
757
+ "WithHref_Partial_Unbrand_XoBackupRepository___": {
758
+ "dataType": "refAlias",
759
+ "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoBackupRepository__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
760
+ },
761
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
762
+ "SendObjects_Partial_Unbrand_XoBackupRepository___": {
763
+ "dataType": "refAlias",
764
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoBackupRepository___" } }, { "ref": "NdjsonStream" }], "validators": {} },
765
+ },
766
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
767
+ "Unbrand_XoBackupRepository_": {
768
+ "dataType": "refAlias",
769
+ "type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "benchmarks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "writeRate": { "dataType": "double", "required": true }, "timestamp": { "dataType": "double", "required": true }, "readRate": { "dataType": "double", "required": true } } } }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "options": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "string", "required": true } }, "validators": {} },
770
+ },
771
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
772
+ "Partial_UnbrandedXoAlarm_": {
773
+ "dataType": "refAlias",
774
+ "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": ["VM-template"] }, { "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": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
775
+ },
776
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
777
+ "WithHref_Partial_UnbrandedXoAlarm__": {
778
+ "dataType": "refAlias",
779
+ "type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandedXoAlarm_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
780
+ },
781
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
782
+ "SendObjects_Partial_UnbrandedXoAlarm__": {
783
+ "dataType": "refAlias",
784
+ "type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandedXoAlarm__" } }, { "ref": "NdjsonStream" }], "validators": {} },
785
+ },
786
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
787
+ "Unbrand_XoAlarm_": {
788
+ "dataType": "refAlias",
789
+ "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": ["VM-template"] }, { "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": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } }, "required": true } }, "validators": {} },
790
+ },
791
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
792
+ "UnbrandedXoAlarm": {
793
+ "dataType": "refAlias",
794
+ "type": { "ref": "Unbrand_XoAlarm_", "validators": {} },
795
+ },
796
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
740
797
  };
741
798
  const templateService = new ExpressTemplateService(models, { "noImplicitAdditionalProperties": "throw-on-extras", "bodyCoercion": true });
742
799
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
@@ -1255,6 +1312,38 @@ export function RegisterRoutes(app) {
1255
1312
  }
1256
1313
  });
1257
1314
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1315
+ const argsVmTemplateController_getVmTemplateAlarms = {
1316
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1317
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1318
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
1319
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
1320
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
1321
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
1322
+ };
1323
+ app.get('/rest/v0/vm-templates/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplateAlarms)), async function VmTemplateController_getVmTemplateAlarms(request, response, next) {
1324
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1325
+ let validatedArgs = [];
1326
+ try {
1327
+ validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplateAlarms, request, response });
1328
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1329
+ const controller = await container.get(VmTemplateController);
1330
+ if (typeof controller['setStatus'] === 'function') {
1331
+ controller.setStatus(undefined);
1332
+ }
1333
+ await templateService.apiHandler({
1334
+ methodName: 'getVmTemplateAlarms',
1335
+ controller,
1336
+ response,
1337
+ next,
1338
+ validatedArgs,
1339
+ successStatus: undefined,
1340
+ });
1341
+ }
1342
+ catch (err) {
1343
+ return next(err);
1344
+ }
1345
+ });
1346
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1258
1347
  const argsVmSnapshotController_getVmSnapshots = {
1259
1348
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1260
1349
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -1487,6 +1576,38 @@ export function RegisterRoutes(app) {
1487
1576
  }
1488
1577
  });
1489
1578
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1579
+ const argsVdiController_getVdiAlarms = {
1580
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1581
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1582
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
1583
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
1584
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
1585
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
1586
+ };
1587
+ app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
1588
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1589
+ let validatedArgs = [];
1590
+ try {
1591
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
1592
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1593
+ const controller = await container.get(VdiController);
1594
+ if (typeof controller['setStatus'] === 'function') {
1595
+ controller.setStatus(undefined);
1596
+ }
1597
+ await templateService.apiHandler({
1598
+ methodName: 'getVdiAlarms',
1599
+ controller,
1600
+ response,
1601
+ next,
1602
+ validatedArgs,
1603
+ successStatus: undefined,
1604
+ });
1605
+ }
1606
+ catch (err) {
1607
+ return next(err);
1608
+ }
1609
+ });
1610
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1490
1611
  const argsVdiSnapshotController_getVdiSnapshots = {
1491
1612
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1492
1613
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -1545,6 +1666,38 @@ export function RegisterRoutes(app) {
1545
1666
  }
1546
1667
  });
1547
1668
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1669
+ const argsVdiSnapshotController_getVdiSnapshotAlarms = {
1670
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1671
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1672
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
1673
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
1674
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
1675
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
1676
+ };
1677
+ app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
1678
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1679
+ let validatedArgs = [];
1680
+ try {
1681
+ validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
1682
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1683
+ const controller = await container.get(VdiSnapshotController);
1684
+ if (typeof controller['setStatus'] === 'function') {
1685
+ controller.setStatus(undefined);
1686
+ }
1687
+ await templateService.apiHandler({
1688
+ methodName: 'getVdiSnapshotAlarms',
1689
+ controller,
1690
+ response,
1691
+ next,
1692
+ validatedArgs,
1693
+ successStatus: undefined,
1694
+ });
1695
+ }
1696
+ catch (err) {
1697
+ return next(err);
1698
+ }
1699
+ });
1700
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1548
1701
  const argsVbdController_getVbds = {
1549
1702
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1550
1703
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -1661,6 +1814,60 @@ export function RegisterRoutes(app) {
1661
1814
  }
1662
1815
  });
1663
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
+ const argsUserController_createUser = {
1818
+ body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
1819
+ };
1820
+ app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
1821
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1822
+ let validatedArgs = [];
1823
+ try {
1824
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
1825
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1826
+ const controller = await container.get(UserController);
1827
+ if (typeof controller['setStatus'] === 'function') {
1828
+ controller.setStatus(undefined);
1829
+ }
1830
+ await templateService.apiHandler({
1831
+ methodName: 'createUser',
1832
+ controller,
1833
+ response,
1834
+ next,
1835
+ validatedArgs,
1836
+ successStatus: 201,
1837
+ });
1838
+ }
1839
+ catch (err) {
1840
+ return next(err);
1841
+ }
1842
+ });
1843
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1844
+ const argsUserController_deleteUser = {
1845
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1846
+ };
1847
+ app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
1848
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1849
+ let validatedArgs = [];
1850
+ try {
1851
+ validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
1852
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1853
+ const controller = await container.get(UserController);
1854
+ if (typeof controller['setStatus'] === 'function') {
1855
+ controller.setStatus(undefined);
1856
+ }
1857
+ await templateService.apiHandler({
1858
+ methodName: 'deleteUser',
1859
+ controller,
1860
+ response,
1861
+ next,
1862
+ validatedArgs,
1863
+ successStatus: 204,
1864
+ });
1865
+ }
1866
+ catch (err) {
1867
+ return next(err);
1868
+ }
1869
+ });
1870
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1664
1871
  const argsSrController_getSrs = {
1665
1872
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1666
1873
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -1719,6 +1926,38 @@ export function RegisterRoutes(app) {
1719
1926
  }
1720
1927
  });
1721
1928
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1929
+ const argsSrController_getSrAlarms = {
1930
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1931
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
1932
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
1933
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
1934
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
1935
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
1936
+ };
1937
+ app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
1938
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1939
+ let validatedArgs = [];
1940
+ try {
1941
+ validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
1942
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
1943
+ const controller = await container.get(SrController);
1944
+ if (typeof controller['setStatus'] === 'function') {
1945
+ controller.setStatus(undefined);
1946
+ }
1947
+ await templateService.apiHandler({
1948
+ methodName: 'getSrAlarms',
1949
+ controller,
1950
+ response,
1951
+ next,
1952
+ validatedArgs,
1953
+ successStatus: undefined,
1954
+ });
1955
+ }
1956
+ catch (err) {
1957
+ return next(err);
1958
+ }
1959
+ });
1960
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
1722
1961
  const argsSmController_getSrs = {
1723
1962
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
1724
1963
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2288,25 +2527,23 @@ export function RegisterRoutes(app) {
2288
2527
  }
2289
2528
  });
2290
2529
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2291
- const argsPifController_getPifs = {
2530
+ const argsPoolController_getPoolDashboard = {
2292
2531
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2293
- fields: { "in": "query", "name": "fields", "dataType": "string" },
2532
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2294
2533
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2295
- filter: { "in": "query", "name": "filter", "dataType": "string" },
2296
- limit: { "in": "query", "name": "limit", "dataType": "double" },
2297
2534
  };
2298
- app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
2535
+ app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
2299
2536
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2300
2537
  let validatedArgs = [];
2301
2538
  try {
2302
- validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
2539
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
2303
2540
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2304
- const controller = await container.get(PifController);
2541
+ const controller = await container.get(PoolController);
2305
2542
  if (typeof controller['setStatus'] === 'function') {
2306
2543
  controller.setStatus(undefined);
2307
2544
  }
2308
2545
  await templateService.apiHandler({
2309
- methodName: 'getPifs',
2546
+ methodName: 'getPoolDashboard',
2310
2547
  controller,
2311
2548
  response,
2312
2549
  next,
@@ -2319,11 +2556,74 @@ export function RegisterRoutes(app) {
2319
2556
  }
2320
2557
  });
2321
2558
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2322
- const argsPifController_getPif = {
2559
+ const argsPoolController_getPoolAlarms = {
2560
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2323
2561
  id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2324
- };
2325
- app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
2326
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2562
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2563
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2564
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2565
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2566
+ };
2567
+ app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
2568
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2569
+ let validatedArgs = [];
2570
+ try {
2571
+ validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
2572
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2573
+ const controller = await container.get(PoolController);
2574
+ if (typeof controller['setStatus'] === 'function') {
2575
+ controller.setStatus(undefined);
2576
+ }
2577
+ await templateService.apiHandler({
2578
+ methodName: 'getPoolAlarms',
2579
+ controller,
2580
+ response,
2581
+ next,
2582
+ validatedArgs,
2583
+ successStatus: undefined,
2584
+ });
2585
+ }
2586
+ catch (err) {
2587
+ return next(err);
2588
+ }
2589
+ });
2590
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2591
+ const argsPifController_getPifs = {
2592
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2593
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2594
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2595
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2596
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2597
+ };
2598
+ app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
2599
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2600
+ let validatedArgs = [];
2601
+ try {
2602
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
2603
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2604
+ const controller = await container.get(PifController);
2605
+ if (typeof controller['setStatus'] === 'function') {
2606
+ controller.setStatus(undefined);
2607
+ }
2608
+ await templateService.apiHandler({
2609
+ methodName: 'getPifs',
2610
+ controller,
2611
+ response,
2612
+ next,
2613
+ validatedArgs,
2614
+ successStatus: undefined,
2615
+ });
2616
+ }
2617
+ catch (err) {
2618
+ return next(err);
2619
+ }
2620
+ });
2621
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2622
+ const argsPifController_getPif = {
2623
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2624
+ };
2625
+ app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
2626
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2327
2627
  let validatedArgs = [];
2328
2628
  try {
2329
2629
  validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPif, request, response });
@@ -2346,6 +2646,38 @@ export function RegisterRoutes(app) {
2346
2646
  }
2347
2647
  });
2348
2648
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2649
+ const argsPifController_getPifAlarms = {
2650
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2651
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2652
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
2653
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2654
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
2655
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
2656
+ };
2657
+ app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
2658
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2659
+ let validatedArgs = [];
2660
+ try {
2661
+ validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
2662
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2663
+ const controller = await container.get(PifController);
2664
+ if (typeof controller['setStatus'] === 'function') {
2665
+ controller.setStatus(undefined);
2666
+ }
2667
+ await templateService.apiHandler({
2668
+ methodName: 'getPifAlarms',
2669
+ controller,
2670
+ response,
2671
+ next,
2672
+ validatedArgs,
2673
+ successStatus: undefined,
2674
+ });
2675
+ }
2676
+ catch (err) {
2677
+ return next(err);
2678
+ }
2679
+ });
2680
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2349
2681
  const argsPgpuController_getPgpus = {
2350
2682
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2351
2683
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2547,52 +2879,26 @@ export function RegisterRoutes(app) {
2547
2879
  }
2548
2880
  });
2549
2881
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2550
- const argsAlarmController_getAlarms = {
2882
+ const argsNetworkController_getNetworkAlarms = {
2551
2883
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2884
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2552
2885
  fields: { "in": "query", "name": "fields", "dataType": "string" },
2553
2886
  ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
2554
2887
  filter: { "in": "query", "name": "filter", "dataType": "string" },
2555
2888
  limit: { "in": "query", "name": "limit", "dataType": "double" },
2556
2889
  };
2557
- app.get('/rest/v0/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarms)), async function AlarmController_getAlarms(request, response, next) {
2558
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2559
- let validatedArgs = [];
2560
- try {
2561
- validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarms, request, response });
2562
- const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2563
- const controller = await container.get(AlarmController);
2564
- if (typeof controller['setStatus'] === 'function') {
2565
- controller.setStatus(undefined);
2566
- }
2567
- await templateService.apiHandler({
2568
- methodName: 'getAlarms',
2569
- controller,
2570
- response,
2571
- next,
2572
- validatedArgs,
2573
- successStatus: undefined,
2574
- });
2575
- }
2576
- catch (err) {
2577
- return next(err);
2578
- }
2579
- });
2580
- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2581
- const argsAlarmController_getAlarm = {
2582
- id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
2583
- };
2584
- app.get('/rest/v0/alarms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarm)), async function AlarmController_getAlarm(request, response, next) {
2890
+ app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
2585
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
2586
2892
  let validatedArgs = [];
2587
2893
  try {
2588
- validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarm, request, response });
2894
+ validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
2589
2895
  const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
2590
- const controller = await container.get(AlarmController);
2896
+ const controller = await container.get(NetworkController);
2591
2897
  if (typeof controller['setStatus'] === 'function') {
2592
2898
  controller.setStatus(undefined);
2593
2899
  }
2594
2900
  await templateService.apiHandler({
2595
- methodName: 'getAlarm',
2901
+ methodName: 'getNetworkAlarms',
2596
2902
  controller,
2597
2903
  response,
2598
2904
  next,
@@ -2777,6 +3083,66 @@ export function RegisterRoutes(app) {
2777
3083
  }
2778
3084
  });
2779
3085
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3086
+ const argsHostController_getHostLogs = {
3087
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3088
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3089
+ };
3090
+ app.get('/rest/v0/hosts/:id/logs.tgz', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostLogs)), async function HostController_getHostLogs(request, response, next) {
3091
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3092
+ let validatedArgs = [];
3093
+ try {
3094
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostLogs, request, response });
3095
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3096
+ const controller = await container.get(HostController);
3097
+ if (typeof controller['setStatus'] === 'function') {
3098
+ controller.setStatus(undefined);
3099
+ }
3100
+ await templateService.apiHandler({
3101
+ methodName: 'getHostLogs',
3102
+ controller,
3103
+ response,
3104
+ next,
3105
+ validatedArgs,
3106
+ successStatus: 200,
3107
+ });
3108
+ }
3109
+ catch (err) {
3110
+ return next(err);
3111
+ }
3112
+ });
3113
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3114
+ const argsHostController_getHostAlarms = {
3115
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3116
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3117
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3118
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3119
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3120
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3121
+ };
3122
+ app.get('/rest/v0/hosts/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostAlarms)), async function HostController_getHostAlarms(request, response, next) {
3123
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3124
+ let validatedArgs = [];
3125
+ try {
3126
+ validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostAlarms, request, response });
3127
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3128
+ const controller = await container.get(HostController);
3129
+ if (typeof controller['setStatus'] === 'function') {
3130
+ controller.setStatus(undefined);
3131
+ }
3132
+ await templateService.apiHandler({
3133
+ methodName: 'getHostAlarms',
3134
+ controller,
3135
+ response,
3136
+ next,
3137
+ validatedArgs,
3138
+ successStatus: undefined,
3139
+ });
3140
+ }
3141
+ catch (err) {
3142
+ return next(err);
3143
+ }
3144
+ });
3145
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2780
3146
  const argsGroupController_getGroups = {
2781
3147
  req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
2782
3148
  fields: { "in": "query", "name": "fields", "dataType": "string" },
@@ -2835,6 +3201,149 @@ export function RegisterRoutes(app) {
2835
3201
  }
2836
3202
  });
2837
3203
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3204
+ const argsGroupController_deleteGroup = {
3205
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3206
+ };
3207
+ app.delete('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.deleteGroup)), async function GroupController_deleteGroup(request, response, next) {
3208
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3209
+ let validatedArgs = [];
3210
+ try {
3211
+ validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_deleteGroup, request, response });
3212
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3213
+ const controller = await container.get(GroupController);
3214
+ if (typeof controller['setStatus'] === 'function') {
3215
+ controller.setStatus(undefined);
3216
+ }
3217
+ await templateService.apiHandler({
3218
+ methodName: 'deleteGroup',
3219
+ controller,
3220
+ response,
3221
+ next,
3222
+ validatedArgs,
3223
+ successStatus: 204,
3224
+ });
3225
+ }
3226
+ catch (err) {
3227
+ return next(err);
3228
+ }
3229
+ });
3230
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3231
+ const argsBackupRepositoryController_getRepositories = {
3232
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3233
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3234
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3235
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3236
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3237
+ };
3238
+ app.get('/rest/v0/backup-repositories', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepositories)), async function BackupRepositoryController_getRepositories(request, response, next) {
3239
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3240
+ let validatedArgs = [];
3241
+ try {
3242
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepositories, request, response });
3243
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3244
+ const controller = await container.get(BackupRepositoryController);
3245
+ if (typeof controller['setStatus'] === 'function') {
3246
+ controller.setStatus(undefined);
3247
+ }
3248
+ await templateService.apiHandler({
3249
+ methodName: 'getRepositories',
3250
+ controller,
3251
+ response,
3252
+ next,
3253
+ validatedArgs,
3254
+ successStatus: undefined,
3255
+ });
3256
+ }
3257
+ catch (err) {
3258
+ return next(err);
3259
+ }
3260
+ });
3261
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3262
+ const argsBackupRepositoryController_getRepository = {
3263
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3264
+ };
3265
+ app.get('/rest/v0/backup-repositories/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepository)), async function BackupRepositoryController_getRepository(request, response, next) {
3266
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3267
+ let validatedArgs = [];
3268
+ try {
3269
+ validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepository, request, response });
3270
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3271
+ const controller = await container.get(BackupRepositoryController);
3272
+ if (typeof controller['setStatus'] === 'function') {
3273
+ controller.setStatus(undefined);
3274
+ }
3275
+ await templateService.apiHandler({
3276
+ methodName: 'getRepository',
3277
+ controller,
3278
+ response,
3279
+ next,
3280
+ validatedArgs,
3281
+ successStatus: undefined,
3282
+ });
3283
+ }
3284
+ catch (err) {
3285
+ return next(err);
3286
+ }
3287
+ });
3288
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3289
+ const argsAlarmController_getAlarms = {
3290
+ req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
3291
+ fields: { "in": "query", "name": "fields", "dataType": "string" },
3292
+ ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
3293
+ filter: { "in": "query", "name": "filter", "dataType": "string" },
3294
+ limit: { "in": "query", "name": "limit", "dataType": "double" },
3295
+ };
3296
+ app.get('/rest/v0/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarms)), async function AlarmController_getAlarms(request, response, next) {
3297
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3298
+ let validatedArgs = [];
3299
+ try {
3300
+ validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarms, request, response });
3301
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3302
+ const controller = await container.get(AlarmController);
3303
+ if (typeof controller['setStatus'] === 'function') {
3304
+ controller.setStatus(undefined);
3305
+ }
3306
+ await templateService.apiHandler({
3307
+ methodName: 'getAlarms',
3308
+ controller,
3309
+ response,
3310
+ next,
3311
+ validatedArgs,
3312
+ successStatus: undefined,
3313
+ });
3314
+ }
3315
+ catch (err) {
3316
+ return next(err);
3317
+ }
3318
+ });
3319
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3320
+ const argsAlarmController_getAlarm = {
3321
+ id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
3322
+ };
3323
+ app.get('/rest/v0/alarms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarm)), async function AlarmController_getAlarm(request, response, next) {
3324
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3325
+ let validatedArgs = [];
3326
+ try {
3327
+ validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarm, request, response });
3328
+ const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
3329
+ const controller = await container.get(AlarmController);
3330
+ if (typeof controller['setStatus'] === 'function') {
3331
+ controller.setStatus(undefined);
3332
+ }
3333
+ await templateService.apiHandler({
3334
+ methodName: 'getAlarm',
3335
+ controller,
3336
+ response,
3337
+ next,
3338
+ validatedArgs,
3339
+ successStatus: undefined,
3340
+ });
3341
+ }
3342
+ catch (err) {
3343
+ return next(err);
3344
+ }
3345
+ });
3346
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2838
3347
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2839
3348
  // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2840
3349
  function authenticateMiddleware(security = []) {