@xen-orchestra/rest-api 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract-classes/base-controller.mjs +2 -2
- package/dist/alarms/alarm.controller.mjs +10 -60
- package/dist/alarms/alarm.service.mjs +67 -0
- package/dist/backup-repositories/backup-repositories.controller.mjs +61 -0
- package/dist/groups/group.controller.mjs +95 -3
- package/dist/groups/group.type.mjs +1 -0
- package/dist/helpers/object-wrapper.helper.mjs +8 -1
- package/dist/helpers/utils.helper.mjs +74 -1
- package/dist/hosts/host.controller.mjs +57 -2
- package/dist/hosts/host.service.mjs +78 -0
- package/dist/ioc/ioc.mjs +25 -1
- package/dist/messages/message.controller.mjs +1 -1
- package/dist/middlewares/generic-error-handler.middleware.mjs +4 -3
- package/dist/networks/network.controller.mjs +34 -2
- package/dist/open-api/common/response.common.mjs +4 -0
- package/dist/open-api/oa-examples/alarm.oa-example.mjs +12 -0
- package/dist/open-api/oa-examples/backup-repository.oa-example.mjs +31 -0
- package/dist/open-api/oa-examples/group.oa-example.mjs +3 -0
- package/dist/open-api/oa-examples/pool.oa-example.mjs +201 -0
- package/dist/open-api/oa-examples/user.oa-example.mjs +1 -0
- package/dist/open-api/routes/routes.js +943 -116
- package/dist/pifs/pif.controller.mjs +34 -2
- package/dist/pools/pool.controller.mjs +70 -3
- package/dist/pools/pool.service.mjs +212 -0
- package/dist/rest-api/rest-api.mjs +6 -1
- package/dist/srs/sr.controller.mjs +34 -2
- package/dist/users/user.controller.mjs +74 -3
- package/dist/users/user.type.mjs +1 -0
- package/dist/vbds/vbd.controller.mjs +34 -2
- package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +34 -2
- package/dist/vdis/vdi.controller.mjs +34 -2
- package/dist/vifs/vif.controller.mjs +34 -2
- package/dist/vm-controller/vm-controller.controller.mjs +34 -2
- package/dist/vm-snapshots/vm-snapshot.controller.mjs +34 -2
- package/dist/vm-templates/vm-template.controller.mjs +34 -2
- package/dist/vms/vm.controller.mjs +34 -2
- package/dist/vms/vm.service.mjs +40 -0
- package/dist/xoa/xoa.service.mjs +96 -110
- package/open-api/spec/swagger.json +4302 -1417
- 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"
|
|
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_": {
|
|
@@ -156,6 +163,21 @@ const models = {
|
|
|
156
163
|
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["seconds"] }, { "dataType": "enum", "enums": ["minutes"] }, { "dataType": "enum", "enums": ["hours"] }, { "dataType": "enum", "enums": ["days"] }], "validators": {} },
|
|
157
164
|
},
|
|
158
165
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
166
|
+
"Partial_Unbrand_XoAlarm__": {
|
|
167
|
+
"dataType": "refAlias",
|
|
168
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "object": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
169
|
+
},
|
|
170
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
171
|
+
"WithHref_Partial_Unbrand_XoAlarm___": {
|
|
172
|
+
"dataType": "refAlias",
|
|
173
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoAlarm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
174
|
+
},
|
|
175
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
176
|
+
"SendObjects_Partial_Unbrand_XoAlarm___": {
|
|
177
|
+
"dataType": "refAlias",
|
|
178
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoAlarm___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
179
|
+
},
|
|
180
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
159
181
|
"Partial_Unbrand_XoVmTemplate__": {
|
|
160
182
|
"dataType": "refAlias",
|
|
161
183
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "CPUs": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } } }, { "dataType": "undefined" }] }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VIFs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VTPMs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "addresses": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "bios_strings": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "blockedOperations": { "dataType": "union", "subSchemas": [{ "ref": "Record_VM_OPERATIONS.string_" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VM_OPERATIONS_" }, { "dataType": "undefined" }] }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "isNestedVirtEnabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "hasVendorDevice": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "high_availability": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "isFirmwareSupported": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "memory": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "static": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "size": { "dataType": "double", "required": true }, "dynamic": { "dataType": "array", "array": { "dataType": "double" }, "required": true } } }, { "dataType": "undefined" }] }, "mainIpAddress": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "managementAgentDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "needsVtpm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "nicType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "notes": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "os_version": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "other": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "power_state": { "dataType": "union", "subSchemas": [{ "ref": "VM_POWER_STATE" }, { "dataType": "undefined" }] }, "pvDriversDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversUpToDate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversVersion": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "resourceSet": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "secureBoot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "startDelay": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "virtualizationMode": { "dataType": "union", "subSchemas": [{ "ref": "DOMAIN_TYPE" }, { "dataType": "undefined" }] }, "xenStoreData": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "isDefaultTemplate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template_info": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "install_repository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "install_methods": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "SR": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "bootable": { "dataType": "enum", "enums": [true], "required": true } } }, "required": true }, "arch": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -336,6 +358,17 @@ const models = {
|
|
|
336
358
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "authProviders": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "email": { "dataType": "string", "required": true }, "groups": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "id": { "dataType": "string", "required": true }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "permission": { "dataType": "string", "required": true }, "pw_hash": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "preferences": { "ref": "Record_string.string_", "required": true } }, "validators": {} },
|
|
337
359
|
},
|
|
338
360
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
361
|
+
"UpdateUserRequestBody": {
|
|
362
|
+
"dataType": "refObject",
|
|
363
|
+
"properties": {
|
|
364
|
+
"name": { "dataType": "string" },
|
|
365
|
+
"password": { "dataType": "string" },
|
|
366
|
+
"permission": { "dataType": "string" },
|
|
367
|
+
"preferences": { "ref": "Record_string.string_" },
|
|
368
|
+
},
|
|
369
|
+
"additionalProperties": false,
|
|
370
|
+
},
|
|
371
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
339
372
|
"Record_string.STORAGE_OPERATIONS_": {
|
|
340
373
|
"dataType": "refAlias",
|
|
341
374
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
@@ -343,7 +376,7 @@ const models = {
|
|
|
343
376
|
// WARNING: This 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
377
|
"Partial_Unbrand_XoSr__": {
|
|
345
378
|
"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": ["
|
|
379
|
+
"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
380
|
},
|
|
348
381
|
// WARNING: This 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
382
|
"WithHref_Partial_Unbrand_XoSr___": {
|
|
@@ -358,7 +391,7 @@ const models = {
|
|
|
358
391
|
// WARNING: This 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
392
|
"Unbrand_XoSr_": {
|
|
360
393
|
"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": ["
|
|
394
|
+
"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
395
|
},
|
|
363
396
|
// WARNING: This 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
397
|
"Record_string.number_": {
|
|
@@ -484,7 +517,7 @@ const models = {
|
|
|
484
517
|
// WARNING: This 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
518
|
"Unbrand_CreateVmBody_": {
|
|
486
519
|
"dataType": "refAlias",
|
|
487
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "
|
|
520
|
+
"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
521
|
},
|
|
489
522
|
// WARNING: This 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
523
|
"XapiHostStatsRaw": {
|
|
@@ -512,6 +545,21 @@ const models = {
|
|
|
512
545
|
"type": { "ref": "Record_XoHost-at-id.XapiHostStats-or-_error-Record_string.unknown___", "validators": {} },
|
|
513
546
|
},
|
|
514
547
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
548
|
+
"XcpPatches": {
|
|
549
|
+
"dataType": "refAlias",
|
|
550
|
+
"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": {} },
|
|
551
|
+
},
|
|
552
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
553
|
+
"XsPatches": {
|
|
554
|
+
"dataType": "refAlias",
|
|
555
|
+
"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": {} },
|
|
556
|
+
},
|
|
557
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
558
|
+
"PoolDashboard": {
|
|
559
|
+
"dataType": "refAlias",
|
|
560
|
+
"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": {} },
|
|
561
|
+
},
|
|
562
|
+
// WARNING: This 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
563
|
"Branded_PIF_": {
|
|
516
564
|
"dataType": "refAlias",
|
|
517
565
|
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["PIF"], "required": true } } }], "validators": {} },
|
|
@@ -627,31 +675,6 @@ const models = {
|
|
|
627
675
|
"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
676
|
},
|
|
629
677
|
// WARNING: This 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
678
|
"Partial_UnbrandedXoMessage_": {
|
|
656
679
|
"dataType": "refAlias",
|
|
657
680
|
"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 +760,59 @@ const models = {
|
|
|
737
760
|
"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
761
|
},
|
|
739
762
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
763
|
+
"UpdateGroupRequestBody": {
|
|
764
|
+
"dataType": "refObject",
|
|
765
|
+
"properties": {
|
|
766
|
+
"name": { "dataType": "string" },
|
|
767
|
+
},
|
|
768
|
+
"additionalProperties": false,
|
|
769
|
+
},
|
|
770
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
771
|
+
"Partial_Unbrand_XoBackupRepository__": {
|
|
772
|
+
"dataType": "refAlias",
|
|
773
|
+
"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": {} },
|
|
774
|
+
},
|
|
775
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
776
|
+
"WithHref_Partial_Unbrand_XoBackupRepository___": {
|
|
777
|
+
"dataType": "refAlias",
|
|
778
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoBackupRepository__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
779
|
+
},
|
|
780
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
781
|
+
"SendObjects_Partial_Unbrand_XoBackupRepository___": {
|
|
782
|
+
"dataType": "refAlias",
|
|
783
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoBackupRepository___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
784
|
+
},
|
|
785
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
786
|
+
"Unbrand_XoBackupRepository_": {
|
|
787
|
+
"dataType": "refAlias",
|
|
788
|
+
"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": {} },
|
|
789
|
+
},
|
|
790
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
791
|
+
"Partial_UnbrandedXoAlarm_": {
|
|
792
|
+
"dataType": "refAlias",
|
|
793
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "object": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
794
|
+
},
|
|
795
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
796
|
+
"WithHref_Partial_UnbrandedXoAlarm__": {
|
|
797
|
+
"dataType": "refAlias",
|
|
798
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandedXoAlarm_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
799
|
+
},
|
|
800
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
801
|
+
"SendObjects_Partial_UnbrandedXoAlarm__": {
|
|
802
|
+
"dataType": "refAlias",
|
|
803
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandedXoAlarm__" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
804
|
+
},
|
|
805
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
806
|
+
"Unbrand_XoAlarm_": {
|
|
807
|
+
"dataType": "refAlias",
|
|
808
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["message"], "required": true }, "name": { "dataType": "string", "required": true }, "time": { "dataType": "double", "required": true }, "body": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "required": true }, "object": { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } }, "required": true } }, "validators": {} },
|
|
809
|
+
},
|
|
810
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
811
|
+
"UnbrandedXoAlarm": {
|
|
812
|
+
"dataType": "refAlias",
|
|
813
|
+
"type": { "ref": "Unbrand_XoAlarm_", "validators": {} },
|
|
814
|
+
},
|
|
815
|
+
// WARNING: This 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
816
|
};
|
|
741
817
|
const templateService = new ExpressTemplateService(models, { "noImplicitAdditionalProperties": "throw-on-extras", "bodyCoercion": true });
|
|
742
818
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
@@ -1197,6 +1273,38 @@ export function RegisterRoutes(app) {
|
|
|
1197
1273
|
}
|
|
1198
1274
|
});
|
|
1199
1275
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1276
|
+
const argsVmController_getVmAlarms = {
|
|
1277
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1278
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1279
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1280
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1281
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1282
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1283
|
+
};
|
|
1284
|
+
app.get('/rest/v0/vms/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVmAlarms)), async function VmController_getVmAlarms(request, response, next) {
|
|
1285
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1286
|
+
let validatedArgs = [];
|
|
1287
|
+
try {
|
|
1288
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVmAlarms, request, response });
|
|
1289
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1290
|
+
const controller = await container.get(VmController);
|
|
1291
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1292
|
+
controller.setStatus(undefined);
|
|
1293
|
+
}
|
|
1294
|
+
await templateService.apiHandler({
|
|
1295
|
+
methodName: 'getVmAlarms',
|
|
1296
|
+
controller,
|
|
1297
|
+
response,
|
|
1298
|
+
next,
|
|
1299
|
+
validatedArgs,
|
|
1300
|
+
successStatus: undefined,
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
catch (err) {
|
|
1304
|
+
return next(err);
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1200
1308
|
const argsVmTemplateController_getVmTemplates = {
|
|
1201
1309
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1202
1310
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1255,6 +1363,38 @@ export function RegisterRoutes(app) {
|
|
|
1255
1363
|
}
|
|
1256
1364
|
});
|
|
1257
1365
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1366
|
+
const argsVmTemplateController_getVmTemplateAlarms = {
|
|
1367
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1368
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1369
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1370
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1371
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1372
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1373
|
+
};
|
|
1374
|
+
app.get('/rest/v0/vm-templates/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplateAlarms)), async function VmTemplateController_getVmTemplateAlarms(request, response, next) {
|
|
1375
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1376
|
+
let validatedArgs = [];
|
|
1377
|
+
try {
|
|
1378
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplateAlarms, request, response });
|
|
1379
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1380
|
+
const controller = await container.get(VmTemplateController);
|
|
1381
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1382
|
+
controller.setStatus(undefined);
|
|
1383
|
+
}
|
|
1384
|
+
await templateService.apiHandler({
|
|
1385
|
+
methodName: 'getVmTemplateAlarms',
|
|
1386
|
+
controller,
|
|
1387
|
+
response,
|
|
1388
|
+
next,
|
|
1389
|
+
validatedArgs,
|
|
1390
|
+
successStatus: undefined,
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
catch (err) {
|
|
1394
|
+
return next(err);
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1397
|
+
// WARNING: This 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
1398
|
const argsVmSnapshotController_getVmSnapshots = {
|
|
1259
1399
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1260
1400
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1313,6 +1453,38 @@ export function RegisterRoutes(app) {
|
|
|
1313
1453
|
}
|
|
1314
1454
|
});
|
|
1315
1455
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1456
|
+
const argsVmSnapshotController_getVmSnapshotAlarms = {
|
|
1457
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1458
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1459
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1460
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1461
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1462
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1463
|
+
};
|
|
1464
|
+
app.get('/rest/v0/vm-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshotAlarms)), async function VmSnapshotController_getVmSnapshotAlarms(request, response, next) {
|
|
1465
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1466
|
+
let validatedArgs = [];
|
|
1467
|
+
try {
|
|
1468
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshotAlarms, request, response });
|
|
1469
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1470
|
+
const controller = await container.get(VmSnapshotController);
|
|
1471
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1472
|
+
controller.setStatus(undefined);
|
|
1473
|
+
}
|
|
1474
|
+
await templateService.apiHandler({
|
|
1475
|
+
methodName: 'getVmSnapshotAlarms',
|
|
1476
|
+
controller,
|
|
1477
|
+
response,
|
|
1478
|
+
next,
|
|
1479
|
+
validatedArgs,
|
|
1480
|
+
successStatus: undefined,
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
catch (err) {
|
|
1484
|
+
return next(err);
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1316
1488
|
const argsVmControllerController_getVmControllers = {
|
|
1317
1489
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1318
1490
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1371,25 +1543,26 @@ export function RegisterRoutes(app) {
|
|
|
1371
1543
|
}
|
|
1372
1544
|
});
|
|
1373
1545
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1374
|
-
const
|
|
1546
|
+
const argsVmControllerController_getVmControllerAlarms = {
|
|
1375
1547
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1548
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1376
1549
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1377
1550
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1378
1551
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1379
1552
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1380
1553
|
};
|
|
1381
|
-
app.get('/rest/v0/
|
|
1554
|
+
app.get('/rest/v0/vm-controllers/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerAlarms)), async function VmControllerController_getVmControllerAlarms(request, response, next) {
|
|
1382
1555
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1383
1556
|
let validatedArgs = [];
|
|
1384
1557
|
try {
|
|
1385
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1558
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerAlarms, request, response });
|
|
1386
1559
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1387
|
-
const controller = await container.get(
|
|
1560
|
+
const controller = await container.get(VmControllerController);
|
|
1388
1561
|
if (typeof controller['setStatus'] === 'function') {
|
|
1389
1562
|
controller.setStatus(undefined);
|
|
1390
1563
|
}
|
|
1391
1564
|
await templateService.apiHandler({
|
|
1392
|
-
methodName: '
|
|
1565
|
+
methodName: 'getVmControllerAlarms',
|
|
1393
1566
|
controller,
|
|
1394
1567
|
response,
|
|
1395
1568
|
next,
|
|
@@ -1402,21 +1575,25 @@ export function RegisterRoutes(app) {
|
|
|
1402
1575
|
}
|
|
1403
1576
|
});
|
|
1404
1577
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1578
|
+
const argsVifController_getVifs = {
|
|
1579
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1580
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1581
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1582
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1583
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1407
1584
|
};
|
|
1408
|
-
app.get('/rest/v0/vifs
|
|
1585
|
+
app.get('/rest/v0/vifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifs)), async function VifController_getVifs(request, response, next) {
|
|
1409
1586
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1410
1587
|
let validatedArgs = [];
|
|
1411
1588
|
try {
|
|
1412
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1589
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifs, request, response });
|
|
1413
1590
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1414
1591
|
const controller = await container.get(VifController);
|
|
1415
1592
|
if (typeof controller['setStatus'] === 'function') {
|
|
1416
1593
|
controller.setStatus(undefined);
|
|
1417
1594
|
}
|
|
1418
1595
|
await templateService.apiHandler({
|
|
1419
|
-
methodName: '
|
|
1596
|
+
methodName: 'getVifs',
|
|
1420
1597
|
controller,
|
|
1421
1598
|
response,
|
|
1422
1599
|
next,
|
|
@@ -1429,25 +1606,21 @@ export function RegisterRoutes(app) {
|
|
|
1429
1606
|
}
|
|
1430
1607
|
});
|
|
1431
1608
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1434
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1435
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1436
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1437
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1609
|
+
const argsVifController_getVif = {
|
|
1610
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1438
1611
|
};
|
|
1439
|
-
app.get('/rest/v0/
|
|
1612
|
+
app.get('/rest/v0/vifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVif)), async function VifController_getVif(request, response, next) {
|
|
1440
1613
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1441
1614
|
let validatedArgs = [];
|
|
1442
1615
|
try {
|
|
1443
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1616
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVif, request, response });
|
|
1444
1617
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1445
|
-
const controller = await container.get(
|
|
1618
|
+
const controller = await container.get(VifController);
|
|
1446
1619
|
if (typeof controller['setStatus'] === 'function') {
|
|
1447
1620
|
controller.setStatus(undefined);
|
|
1448
1621
|
}
|
|
1449
1622
|
await templateService.apiHandler({
|
|
1450
|
-
methodName: '
|
|
1623
|
+
methodName: 'getVif',
|
|
1451
1624
|
controller,
|
|
1452
1625
|
response,
|
|
1453
1626
|
next,
|
|
@@ -1460,21 +1633,26 @@ export function RegisterRoutes(app) {
|
|
|
1460
1633
|
}
|
|
1461
1634
|
});
|
|
1462
1635
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1463
|
-
const
|
|
1636
|
+
const argsVifController_getVifAlarms = {
|
|
1637
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1464
1638
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1639
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1640
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1641
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1642
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1465
1643
|
};
|
|
1466
|
-
app.get('/rest/v0/
|
|
1644
|
+
app.get('/rest/v0/vifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifAlarms)), async function VifController_getVifAlarms(request, response, next) {
|
|
1467
1645
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1468
1646
|
let validatedArgs = [];
|
|
1469
1647
|
try {
|
|
1470
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1648
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifAlarms, request, response });
|
|
1471
1649
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1472
|
-
const controller = await container.get(
|
|
1650
|
+
const controller = await container.get(VifController);
|
|
1473
1651
|
if (typeof controller['setStatus'] === 'function') {
|
|
1474
1652
|
controller.setStatus(undefined);
|
|
1475
1653
|
}
|
|
1476
1654
|
await templateService.apiHandler({
|
|
1477
|
-
methodName: '
|
|
1655
|
+
methodName: 'getVifAlarms',
|
|
1478
1656
|
controller,
|
|
1479
1657
|
response,
|
|
1480
1658
|
next,
|
|
@@ -1487,25 +1665,25 @@ export function RegisterRoutes(app) {
|
|
|
1487
1665
|
}
|
|
1488
1666
|
});
|
|
1489
1667
|
// WARNING: This 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
|
-
const
|
|
1668
|
+
const argsVdiController_getVdis = {
|
|
1491
1669
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1492
1670
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1493
1671
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1494
1672
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1495
1673
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1496
1674
|
};
|
|
1497
|
-
app.get('/rest/v0/
|
|
1675
|
+
app.get('/rest/v0/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdis)), async function VdiController_getVdis(request, response, next) {
|
|
1498
1676
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1499
1677
|
let validatedArgs = [];
|
|
1500
1678
|
try {
|
|
1501
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1679
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdis, request, response });
|
|
1502
1680
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1503
|
-
const controller = await container.get(
|
|
1681
|
+
const controller = await container.get(VdiController);
|
|
1504
1682
|
if (typeof controller['setStatus'] === 'function') {
|
|
1505
1683
|
controller.setStatus(undefined);
|
|
1506
1684
|
}
|
|
1507
1685
|
await templateService.apiHandler({
|
|
1508
|
-
methodName: '
|
|
1686
|
+
methodName: 'getVdis',
|
|
1509
1687
|
controller,
|
|
1510
1688
|
response,
|
|
1511
1689
|
next,
|
|
@@ -1518,21 +1696,21 @@ export function RegisterRoutes(app) {
|
|
|
1518
1696
|
}
|
|
1519
1697
|
});
|
|
1520
1698
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1521
|
-
const
|
|
1699
|
+
const argsVdiController_getVdi = {
|
|
1522
1700
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1523
1701
|
};
|
|
1524
|
-
app.get('/rest/v0/
|
|
1702
|
+
app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
|
|
1525
1703
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1526
1704
|
let validatedArgs = [];
|
|
1527
1705
|
try {
|
|
1528
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1706
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
|
|
1529
1707
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1530
|
-
const controller = await container.get(
|
|
1708
|
+
const controller = await container.get(VdiController);
|
|
1531
1709
|
if (typeof controller['setStatus'] === 'function') {
|
|
1532
1710
|
controller.setStatus(undefined);
|
|
1533
1711
|
}
|
|
1534
1712
|
await templateService.apiHandler({
|
|
1535
|
-
methodName: '
|
|
1713
|
+
methodName: 'getVdi',
|
|
1536
1714
|
controller,
|
|
1537
1715
|
response,
|
|
1538
1716
|
next,
|
|
@@ -1545,25 +1723,26 @@ export function RegisterRoutes(app) {
|
|
|
1545
1723
|
}
|
|
1546
1724
|
});
|
|
1547
1725
|
// WARNING: This 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
|
-
const
|
|
1726
|
+
const argsVdiController_getVdiAlarms = {
|
|
1549
1727
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1728
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1550
1729
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1551
1730
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1552
1731
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1553
1732
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1554
1733
|
};
|
|
1555
|
-
app.get('/rest/v0/
|
|
1734
|
+
app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
|
|
1556
1735
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1557
1736
|
let validatedArgs = [];
|
|
1558
1737
|
try {
|
|
1559
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1738
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
|
|
1560
1739
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1561
|
-
const controller = await container.get(
|
|
1740
|
+
const controller = await container.get(VdiController);
|
|
1562
1741
|
if (typeof controller['setStatus'] === 'function') {
|
|
1563
1742
|
controller.setStatus(undefined);
|
|
1564
1743
|
}
|
|
1565
1744
|
await templateService.apiHandler({
|
|
1566
|
-
methodName: '
|
|
1745
|
+
methodName: 'getVdiAlarms',
|
|
1567
1746
|
controller,
|
|
1568
1747
|
response,
|
|
1569
1748
|
next,
|
|
@@ -1576,7 +1755,128 @@ export function RegisterRoutes(app) {
|
|
|
1576
1755
|
}
|
|
1577
1756
|
});
|
|
1578
1757
|
// WARNING: This 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
|
|
1758
|
+
const argsVdiSnapshotController_getVdiSnapshots = {
|
|
1759
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1760
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1761
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1762
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1763
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1764
|
+
};
|
|
1765
|
+
app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
|
|
1766
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1767
|
+
let validatedArgs = [];
|
|
1768
|
+
try {
|
|
1769
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
|
|
1770
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1771
|
+
const controller = await container.get(VdiSnapshotController);
|
|
1772
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1773
|
+
controller.setStatus(undefined);
|
|
1774
|
+
}
|
|
1775
|
+
await templateService.apiHandler({
|
|
1776
|
+
methodName: 'getVdiSnapshots',
|
|
1777
|
+
controller,
|
|
1778
|
+
response,
|
|
1779
|
+
next,
|
|
1780
|
+
validatedArgs,
|
|
1781
|
+
successStatus: undefined,
|
|
1782
|
+
});
|
|
1783
|
+
}
|
|
1784
|
+
catch (err) {
|
|
1785
|
+
return next(err);
|
|
1786
|
+
}
|
|
1787
|
+
});
|
|
1788
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1789
|
+
const argsVdiSnapshotController_getVdiSnapshot = {
|
|
1790
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1791
|
+
};
|
|
1792
|
+
app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
|
|
1793
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1794
|
+
let validatedArgs = [];
|
|
1795
|
+
try {
|
|
1796
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
|
|
1797
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1798
|
+
const controller = await container.get(VdiSnapshotController);
|
|
1799
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1800
|
+
controller.setStatus(undefined);
|
|
1801
|
+
}
|
|
1802
|
+
await templateService.apiHandler({
|
|
1803
|
+
methodName: 'getVdiSnapshot',
|
|
1804
|
+
controller,
|
|
1805
|
+
response,
|
|
1806
|
+
next,
|
|
1807
|
+
validatedArgs,
|
|
1808
|
+
successStatus: undefined,
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1811
|
+
catch (err) {
|
|
1812
|
+
return next(err);
|
|
1813
|
+
}
|
|
1814
|
+
});
|
|
1815
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1816
|
+
const argsVdiSnapshotController_getVdiSnapshotAlarms = {
|
|
1817
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1818
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1819
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1820
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1821
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1822
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1823
|
+
};
|
|
1824
|
+
app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
|
|
1825
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1826
|
+
let validatedArgs = [];
|
|
1827
|
+
try {
|
|
1828
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
|
|
1829
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1830
|
+
const controller = await container.get(VdiSnapshotController);
|
|
1831
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1832
|
+
controller.setStatus(undefined);
|
|
1833
|
+
}
|
|
1834
|
+
await templateService.apiHandler({
|
|
1835
|
+
methodName: 'getVdiSnapshotAlarms',
|
|
1836
|
+
controller,
|
|
1837
|
+
response,
|
|
1838
|
+
next,
|
|
1839
|
+
validatedArgs,
|
|
1840
|
+
successStatus: undefined,
|
|
1841
|
+
});
|
|
1842
|
+
}
|
|
1843
|
+
catch (err) {
|
|
1844
|
+
return next(err);
|
|
1845
|
+
}
|
|
1846
|
+
});
|
|
1847
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1848
|
+
const argsVbdController_getVbds = {
|
|
1849
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1850
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1851
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1852
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1853
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1854
|
+
};
|
|
1855
|
+
app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
|
|
1856
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1857
|
+
let validatedArgs = [];
|
|
1858
|
+
try {
|
|
1859
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
|
|
1860
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1861
|
+
const controller = await container.get(VbdController);
|
|
1862
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1863
|
+
controller.setStatus(undefined);
|
|
1864
|
+
}
|
|
1865
|
+
await templateService.apiHandler({
|
|
1866
|
+
methodName: 'getVbds',
|
|
1867
|
+
controller,
|
|
1868
|
+
response,
|
|
1869
|
+
next,
|
|
1870
|
+
validatedArgs,
|
|
1871
|
+
successStatus: undefined,
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1874
|
+
catch (err) {
|
|
1875
|
+
return next(err);
|
|
1876
|
+
}
|
|
1877
|
+
});
|
|
1878
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1879
|
+
const argsVbdController_getVbd = {
|
|
1580
1880
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1581
1881
|
};
|
|
1582
1882
|
app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
|
|
@@ -1603,6 +1903,38 @@ export function RegisterRoutes(app) {
|
|
|
1603
1903
|
}
|
|
1604
1904
|
});
|
|
1605
1905
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1906
|
+
const argsVbdController_getVbdAlarms = {
|
|
1907
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1908
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1909
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1910
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1911
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1912
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1913
|
+
};
|
|
1914
|
+
app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
|
|
1915
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1916
|
+
let validatedArgs = [];
|
|
1917
|
+
try {
|
|
1918
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
|
|
1919
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1920
|
+
const controller = await container.get(VbdController);
|
|
1921
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1922
|
+
controller.setStatus(undefined);
|
|
1923
|
+
}
|
|
1924
|
+
await templateService.apiHandler({
|
|
1925
|
+
methodName: 'getVbdAlarms',
|
|
1926
|
+
controller,
|
|
1927
|
+
response,
|
|
1928
|
+
next,
|
|
1929
|
+
validatedArgs,
|
|
1930
|
+
successStatus: undefined,
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
catch (err) {
|
|
1934
|
+
return next(err);
|
|
1935
|
+
}
|
|
1936
|
+
});
|
|
1937
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1606
1938
|
const argsUserController_getUsers = {
|
|
1607
1939
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1608
1940
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1661,6 +1993,88 @@ export function RegisterRoutes(app) {
|
|
|
1661
1993
|
}
|
|
1662
1994
|
});
|
|
1663
1995
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1996
|
+
const argsUserController_updateUser = {
|
|
1997
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1998
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
|
|
1999
|
+
};
|
|
2000
|
+
app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
|
|
2001
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2002
|
+
let validatedArgs = [];
|
|
2003
|
+
try {
|
|
2004
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
|
|
2005
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2006
|
+
const controller = await container.get(UserController);
|
|
2007
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2008
|
+
controller.setStatus(undefined);
|
|
2009
|
+
}
|
|
2010
|
+
await templateService.apiHandler({
|
|
2011
|
+
methodName: 'updateUser',
|
|
2012
|
+
controller,
|
|
2013
|
+
response,
|
|
2014
|
+
next,
|
|
2015
|
+
validatedArgs,
|
|
2016
|
+
successStatus: 204,
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
catch (err) {
|
|
2020
|
+
return next(err);
|
|
2021
|
+
}
|
|
2022
|
+
});
|
|
2023
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2024
|
+
const argsUserController_createUser = {
|
|
2025
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
|
|
2026
|
+
};
|
|
2027
|
+
app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
|
|
2028
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2029
|
+
let validatedArgs = [];
|
|
2030
|
+
try {
|
|
2031
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
|
|
2032
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2033
|
+
const controller = await container.get(UserController);
|
|
2034
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2035
|
+
controller.setStatus(undefined);
|
|
2036
|
+
}
|
|
2037
|
+
await templateService.apiHandler({
|
|
2038
|
+
methodName: 'createUser',
|
|
2039
|
+
controller,
|
|
2040
|
+
response,
|
|
2041
|
+
next,
|
|
2042
|
+
validatedArgs,
|
|
2043
|
+
successStatus: 201,
|
|
2044
|
+
});
|
|
2045
|
+
}
|
|
2046
|
+
catch (err) {
|
|
2047
|
+
return next(err);
|
|
2048
|
+
}
|
|
2049
|
+
});
|
|
2050
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2051
|
+
const argsUserController_deleteUser = {
|
|
2052
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2053
|
+
};
|
|
2054
|
+
app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
|
|
2055
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2056
|
+
let validatedArgs = [];
|
|
2057
|
+
try {
|
|
2058
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
|
|
2059
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2060
|
+
const controller = await container.get(UserController);
|
|
2061
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2062
|
+
controller.setStatus(undefined);
|
|
2063
|
+
}
|
|
2064
|
+
await templateService.apiHandler({
|
|
2065
|
+
methodName: 'deleteUser',
|
|
2066
|
+
controller,
|
|
2067
|
+
response,
|
|
2068
|
+
next,
|
|
2069
|
+
validatedArgs,
|
|
2070
|
+
successStatus: 204,
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
catch (err) {
|
|
2074
|
+
return next(err);
|
|
2075
|
+
}
|
|
2076
|
+
});
|
|
2077
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1664
2078
|
const argsSrController_getSrs = {
|
|
1665
2079
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1666
2080
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1719,6 +2133,38 @@ export function RegisterRoutes(app) {
|
|
|
1719
2133
|
}
|
|
1720
2134
|
});
|
|
1721
2135
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2136
|
+
const argsSrController_getSrAlarms = {
|
|
2137
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2138
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2139
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2140
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2141
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2142
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2143
|
+
};
|
|
2144
|
+
app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
|
|
2145
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2146
|
+
let validatedArgs = [];
|
|
2147
|
+
try {
|
|
2148
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
|
|
2149
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2150
|
+
const controller = await container.get(SrController);
|
|
2151
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2152
|
+
controller.setStatus(undefined);
|
|
2153
|
+
}
|
|
2154
|
+
await templateService.apiHandler({
|
|
2155
|
+
methodName: 'getSrAlarms',
|
|
2156
|
+
controller,
|
|
2157
|
+
response,
|
|
2158
|
+
next,
|
|
2159
|
+
validatedArgs,
|
|
2160
|
+
successStatus: undefined,
|
|
2161
|
+
});
|
|
2162
|
+
}
|
|
2163
|
+
catch (err) {
|
|
2164
|
+
return next(err);
|
|
2165
|
+
}
|
|
2166
|
+
});
|
|
2167
|
+
// WARNING: This 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
2168
|
const argsSmController_getSrs = {
|
|
1723
2169
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1724
2170
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2288,25 +2734,23 @@ export function RegisterRoutes(app) {
|
|
|
2288
2734
|
}
|
|
2289
2735
|
});
|
|
2290
2736
|
// WARNING: This 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
|
|
2737
|
+
const argsPoolController_getPoolDashboard = {
|
|
2292
2738
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2293
|
-
|
|
2739
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2294
2740
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2295
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2296
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2297
2741
|
};
|
|
2298
|
-
app.get('/rest/v0/
|
|
2742
|
+
app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
|
|
2299
2743
|
// WARNING: This 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
2744
|
let validatedArgs = [];
|
|
2301
2745
|
try {
|
|
2302
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2746
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
|
|
2303
2747
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2304
|
-
const controller = await container.get(
|
|
2748
|
+
const controller = await container.get(PoolController);
|
|
2305
2749
|
if (typeof controller['setStatus'] === 'function') {
|
|
2306
2750
|
controller.setStatus(undefined);
|
|
2307
2751
|
}
|
|
2308
2752
|
await templateService.apiHandler({
|
|
2309
|
-
methodName: '
|
|
2753
|
+
methodName: 'getPoolDashboard',
|
|
2310
2754
|
controller,
|
|
2311
2755
|
response,
|
|
2312
2756
|
next,
|
|
@@ -2319,10 +2763,73 @@ export function RegisterRoutes(app) {
|
|
|
2319
2763
|
}
|
|
2320
2764
|
});
|
|
2321
2765
|
// WARNING: This 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
|
|
2766
|
+
const argsPoolController_getPoolAlarms = {
|
|
2767
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2323
2768
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2324
|
-
|
|
2325
|
-
|
|
2769
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2770
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2771
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2772
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2773
|
+
};
|
|
2774
|
+
app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
|
|
2775
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2776
|
+
let validatedArgs = [];
|
|
2777
|
+
try {
|
|
2778
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
|
|
2779
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2780
|
+
const controller = await container.get(PoolController);
|
|
2781
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2782
|
+
controller.setStatus(undefined);
|
|
2783
|
+
}
|
|
2784
|
+
await templateService.apiHandler({
|
|
2785
|
+
methodName: 'getPoolAlarms',
|
|
2786
|
+
controller,
|
|
2787
|
+
response,
|
|
2788
|
+
next,
|
|
2789
|
+
validatedArgs,
|
|
2790
|
+
successStatus: undefined,
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
catch (err) {
|
|
2794
|
+
return next(err);
|
|
2795
|
+
}
|
|
2796
|
+
});
|
|
2797
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2798
|
+
const argsPifController_getPifs = {
|
|
2799
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2800
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2801
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2802
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2803
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2804
|
+
};
|
|
2805
|
+
app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
|
|
2806
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2807
|
+
let validatedArgs = [];
|
|
2808
|
+
try {
|
|
2809
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
|
|
2810
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2811
|
+
const controller = await container.get(PifController);
|
|
2812
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2813
|
+
controller.setStatus(undefined);
|
|
2814
|
+
}
|
|
2815
|
+
await templateService.apiHandler({
|
|
2816
|
+
methodName: 'getPifs',
|
|
2817
|
+
controller,
|
|
2818
|
+
response,
|
|
2819
|
+
next,
|
|
2820
|
+
validatedArgs,
|
|
2821
|
+
successStatus: undefined,
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
catch (err) {
|
|
2825
|
+
return next(err);
|
|
2826
|
+
}
|
|
2827
|
+
});
|
|
2828
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2829
|
+
const argsPifController_getPif = {
|
|
2830
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2831
|
+
};
|
|
2832
|
+
app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
|
|
2326
2833
|
// WARNING: This 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
2834
|
let validatedArgs = [];
|
|
2328
2835
|
try {
|
|
@@ -2346,6 +2853,38 @@ export function RegisterRoutes(app) {
|
|
|
2346
2853
|
}
|
|
2347
2854
|
});
|
|
2348
2855
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2856
|
+
const argsPifController_getPifAlarms = {
|
|
2857
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2858
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2859
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2860
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2861
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2862
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2863
|
+
};
|
|
2864
|
+
app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
|
|
2865
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2866
|
+
let validatedArgs = [];
|
|
2867
|
+
try {
|
|
2868
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
|
|
2869
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2870
|
+
const controller = await container.get(PifController);
|
|
2871
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2872
|
+
controller.setStatus(undefined);
|
|
2873
|
+
}
|
|
2874
|
+
await templateService.apiHandler({
|
|
2875
|
+
methodName: 'getPifAlarms',
|
|
2876
|
+
controller,
|
|
2877
|
+
response,
|
|
2878
|
+
next,
|
|
2879
|
+
validatedArgs,
|
|
2880
|
+
successStatus: undefined,
|
|
2881
|
+
});
|
|
2882
|
+
}
|
|
2883
|
+
catch (err) {
|
|
2884
|
+
return next(err);
|
|
2885
|
+
}
|
|
2886
|
+
});
|
|
2887
|
+
// WARNING: This 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
2888
|
const argsPgpuController_getPgpus = {
|
|
2350
2889
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2351
2890
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2547,52 +3086,26 @@ export function RegisterRoutes(app) {
|
|
|
2547
3086
|
}
|
|
2548
3087
|
});
|
|
2549
3088
|
// WARNING: This 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
|
|
3089
|
+
const argsNetworkController_getNetworkAlarms = {
|
|
2551
3090
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3091
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2552
3092
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2553
3093
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2554
3094
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2555
3095
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2556
3096
|
};
|
|
2557
|
-
app.get('/rest/v0/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(
|
|
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) {
|
|
3097
|
+
app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
|
|
2585
3098
|
// WARNING: This 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
3099
|
let validatedArgs = [];
|
|
2587
3100
|
try {
|
|
2588
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3101
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
|
|
2589
3102
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2590
|
-
const controller = await container.get(
|
|
3103
|
+
const controller = await container.get(NetworkController);
|
|
2591
3104
|
if (typeof controller['setStatus'] === 'function') {
|
|
2592
3105
|
controller.setStatus(undefined);
|
|
2593
3106
|
}
|
|
2594
3107
|
await templateService.apiHandler({
|
|
2595
|
-
methodName: '
|
|
3108
|
+
methodName: 'getNetworkAlarms',
|
|
2596
3109
|
controller,
|
|
2597
3110
|
response,
|
|
2598
3111
|
next,
|
|
@@ -2777,6 +3290,66 @@ export function RegisterRoutes(app) {
|
|
|
2777
3290
|
}
|
|
2778
3291
|
});
|
|
2779
3292
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3293
|
+
const argsHostController_getHostLogs = {
|
|
3294
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3295
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3296
|
+
};
|
|
3297
|
+
app.get('/rest/v0/hosts/:id/logs.tgz', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostLogs)), async function HostController_getHostLogs(request, response, next) {
|
|
3298
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3299
|
+
let validatedArgs = [];
|
|
3300
|
+
try {
|
|
3301
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostLogs, request, response });
|
|
3302
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3303
|
+
const controller = await container.get(HostController);
|
|
3304
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3305
|
+
controller.setStatus(undefined);
|
|
3306
|
+
}
|
|
3307
|
+
await templateService.apiHandler({
|
|
3308
|
+
methodName: 'getHostLogs',
|
|
3309
|
+
controller,
|
|
3310
|
+
response,
|
|
3311
|
+
next,
|
|
3312
|
+
validatedArgs,
|
|
3313
|
+
successStatus: 200,
|
|
3314
|
+
});
|
|
3315
|
+
}
|
|
3316
|
+
catch (err) {
|
|
3317
|
+
return next(err);
|
|
3318
|
+
}
|
|
3319
|
+
});
|
|
3320
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3321
|
+
const argsHostController_getHostAlarms = {
|
|
3322
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3323
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3324
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3325
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3326
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3327
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3328
|
+
};
|
|
3329
|
+
app.get('/rest/v0/hosts/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostAlarms)), async function HostController_getHostAlarms(request, response, next) {
|
|
3330
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3331
|
+
let validatedArgs = [];
|
|
3332
|
+
try {
|
|
3333
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostAlarms, request, response });
|
|
3334
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3335
|
+
const controller = await container.get(HostController);
|
|
3336
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3337
|
+
controller.setStatus(undefined);
|
|
3338
|
+
}
|
|
3339
|
+
await templateService.apiHandler({
|
|
3340
|
+
methodName: 'getHostAlarms',
|
|
3341
|
+
controller,
|
|
3342
|
+
response,
|
|
3343
|
+
next,
|
|
3344
|
+
validatedArgs,
|
|
3345
|
+
successStatus: undefined,
|
|
3346
|
+
});
|
|
3347
|
+
}
|
|
3348
|
+
catch (err) {
|
|
3349
|
+
return next(err);
|
|
3350
|
+
}
|
|
3351
|
+
});
|
|
3352
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2780
3353
|
const argsGroupController_getGroups = {
|
|
2781
3354
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2782
3355
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2835,6 +3408,260 @@ export function RegisterRoutes(app) {
|
|
|
2835
3408
|
}
|
|
2836
3409
|
});
|
|
2837
3410
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3411
|
+
const argsGroupController_updateGroup = {
|
|
3412
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3413
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateGroupRequestBody" },
|
|
3414
|
+
};
|
|
3415
|
+
app.patch('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.updateGroup)), async function GroupController_updateGroup(request, response, next) {
|
|
3416
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3417
|
+
let validatedArgs = [];
|
|
3418
|
+
try {
|
|
3419
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_updateGroup, request, response });
|
|
3420
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3421
|
+
const controller = await container.get(GroupController);
|
|
3422
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3423
|
+
controller.setStatus(undefined);
|
|
3424
|
+
}
|
|
3425
|
+
await templateService.apiHandler({
|
|
3426
|
+
methodName: 'updateGroup',
|
|
3427
|
+
controller,
|
|
3428
|
+
response,
|
|
3429
|
+
next,
|
|
3430
|
+
validatedArgs,
|
|
3431
|
+
successStatus: 204,
|
|
3432
|
+
});
|
|
3433
|
+
}
|
|
3434
|
+
catch (err) {
|
|
3435
|
+
return next(err);
|
|
3436
|
+
}
|
|
3437
|
+
});
|
|
3438
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3439
|
+
const argsGroupController_createGroup = {
|
|
3440
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true } } },
|
|
3441
|
+
};
|
|
3442
|
+
app.post('/rest/v0/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.createGroup)), async function GroupController_createGroup(request, response, next) {
|
|
3443
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3444
|
+
let validatedArgs = [];
|
|
3445
|
+
try {
|
|
3446
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_createGroup, request, response });
|
|
3447
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3448
|
+
const controller = await container.get(GroupController);
|
|
3449
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3450
|
+
controller.setStatus(undefined);
|
|
3451
|
+
}
|
|
3452
|
+
await templateService.apiHandler({
|
|
3453
|
+
methodName: 'createGroup',
|
|
3454
|
+
controller,
|
|
3455
|
+
response,
|
|
3456
|
+
next,
|
|
3457
|
+
validatedArgs,
|
|
3458
|
+
successStatus: 201,
|
|
3459
|
+
});
|
|
3460
|
+
}
|
|
3461
|
+
catch (err) {
|
|
3462
|
+
return next(err);
|
|
3463
|
+
}
|
|
3464
|
+
});
|
|
3465
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3466
|
+
const argsGroupController_deleteGroup = {
|
|
3467
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3468
|
+
};
|
|
3469
|
+
app.delete('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.deleteGroup)), async function GroupController_deleteGroup(request, response, next) {
|
|
3470
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3471
|
+
let validatedArgs = [];
|
|
3472
|
+
try {
|
|
3473
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_deleteGroup, request, response });
|
|
3474
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3475
|
+
const controller = await container.get(GroupController);
|
|
3476
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3477
|
+
controller.setStatus(undefined);
|
|
3478
|
+
}
|
|
3479
|
+
await templateService.apiHandler({
|
|
3480
|
+
methodName: 'deleteGroup',
|
|
3481
|
+
controller,
|
|
3482
|
+
response,
|
|
3483
|
+
next,
|
|
3484
|
+
validatedArgs,
|
|
3485
|
+
successStatus: 204,
|
|
3486
|
+
});
|
|
3487
|
+
}
|
|
3488
|
+
catch (err) {
|
|
3489
|
+
return next(err);
|
|
3490
|
+
}
|
|
3491
|
+
});
|
|
3492
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3493
|
+
const argsGroupController_removeUserFromGroup = {
|
|
3494
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3495
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
3496
|
+
};
|
|
3497
|
+
app.delete('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.removeUserFromGroup)), async function GroupController_removeUserFromGroup(request, response, next) {
|
|
3498
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3499
|
+
let validatedArgs = [];
|
|
3500
|
+
try {
|
|
3501
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_removeUserFromGroup, request, response });
|
|
3502
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3503
|
+
const controller = await container.get(GroupController);
|
|
3504
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3505
|
+
controller.setStatus(undefined);
|
|
3506
|
+
}
|
|
3507
|
+
await templateService.apiHandler({
|
|
3508
|
+
methodName: 'removeUserFromGroup',
|
|
3509
|
+
controller,
|
|
3510
|
+
response,
|
|
3511
|
+
next,
|
|
3512
|
+
validatedArgs,
|
|
3513
|
+
successStatus: 204,
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3516
|
+
catch (err) {
|
|
3517
|
+
return next(err);
|
|
3518
|
+
}
|
|
3519
|
+
});
|
|
3520
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3521
|
+
const argsGroupController_addUserToGroup = {
|
|
3522
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3523
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
3524
|
+
};
|
|
3525
|
+
app.put('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.addUserToGroup)), async function GroupController_addUserToGroup(request, response, next) {
|
|
3526
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3527
|
+
let validatedArgs = [];
|
|
3528
|
+
try {
|
|
3529
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_addUserToGroup, request, response });
|
|
3530
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3531
|
+
const controller = await container.get(GroupController);
|
|
3532
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3533
|
+
controller.setStatus(undefined);
|
|
3534
|
+
}
|
|
3535
|
+
await templateService.apiHandler({
|
|
3536
|
+
methodName: 'addUserToGroup',
|
|
3537
|
+
controller,
|
|
3538
|
+
response,
|
|
3539
|
+
next,
|
|
3540
|
+
validatedArgs,
|
|
3541
|
+
successStatus: 204,
|
|
3542
|
+
});
|
|
3543
|
+
}
|
|
3544
|
+
catch (err) {
|
|
3545
|
+
return next(err);
|
|
3546
|
+
}
|
|
3547
|
+
});
|
|
3548
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3549
|
+
const argsBackupRepositoryController_getRepositories = {
|
|
3550
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3551
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3552
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3553
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3554
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3555
|
+
};
|
|
3556
|
+
app.get('/rest/v0/backup-repositories', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepositories)), async function BackupRepositoryController_getRepositories(request, response, next) {
|
|
3557
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3558
|
+
let validatedArgs = [];
|
|
3559
|
+
try {
|
|
3560
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepositories, request, response });
|
|
3561
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3562
|
+
const controller = await container.get(BackupRepositoryController);
|
|
3563
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3564
|
+
controller.setStatus(undefined);
|
|
3565
|
+
}
|
|
3566
|
+
await templateService.apiHandler({
|
|
3567
|
+
methodName: 'getRepositories',
|
|
3568
|
+
controller,
|
|
3569
|
+
response,
|
|
3570
|
+
next,
|
|
3571
|
+
validatedArgs,
|
|
3572
|
+
successStatus: undefined,
|
|
3573
|
+
});
|
|
3574
|
+
}
|
|
3575
|
+
catch (err) {
|
|
3576
|
+
return next(err);
|
|
3577
|
+
}
|
|
3578
|
+
});
|
|
3579
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3580
|
+
const argsBackupRepositoryController_getRepository = {
|
|
3581
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3582
|
+
};
|
|
3583
|
+
app.get('/rest/v0/backup-repositories/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepository)), async function BackupRepositoryController_getRepository(request, response, next) {
|
|
3584
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3585
|
+
let validatedArgs = [];
|
|
3586
|
+
try {
|
|
3587
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepository, request, response });
|
|
3588
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3589
|
+
const controller = await container.get(BackupRepositoryController);
|
|
3590
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3591
|
+
controller.setStatus(undefined);
|
|
3592
|
+
}
|
|
3593
|
+
await templateService.apiHandler({
|
|
3594
|
+
methodName: 'getRepository',
|
|
3595
|
+
controller,
|
|
3596
|
+
response,
|
|
3597
|
+
next,
|
|
3598
|
+
validatedArgs,
|
|
3599
|
+
successStatus: undefined,
|
|
3600
|
+
});
|
|
3601
|
+
}
|
|
3602
|
+
catch (err) {
|
|
3603
|
+
return next(err);
|
|
3604
|
+
}
|
|
3605
|
+
});
|
|
3606
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3607
|
+
const argsAlarmController_getAlarms = {
|
|
3608
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3609
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3610
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3611
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3612
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3613
|
+
};
|
|
3614
|
+
app.get('/rest/v0/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarms)), async function AlarmController_getAlarms(request, response, next) {
|
|
3615
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3616
|
+
let validatedArgs = [];
|
|
3617
|
+
try {
|
|
3618
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarms, request, response });
|
|
3619
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3620
|
+
const controller = await container.get(AlarmController);
|
|
3621
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3622
|
+
controller.setStatus(undefined);
|
|
3623
|
+
}
|
|
3624
|
+
await templateService.apiHandler({
|
|
3625
|
+
methodName: 'getAlarms',
|
|
3626
|
+
controller,
|
|
3627
|
+
response,
|
|
3628
|
+
next,
|
|
3629
|
+
validatedArgs,
|
|
3630
|
+
successStatus: undefined,
|
|
3631
|
+
});
|
|
3632
|
+
}
|
|
3633
|
+
catch (err) {
|
|
3634
|
+
return next(err);
|
|
3635
|
+
}
|
|
3636
|
+
});
|
|
3637
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3638
|
+
const argsAlarmController_getAlarm = {
|
|
3639
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3640
|
+
};
|
|
3641
|
+
app.get('/rest/v0/alarms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarm)), async function AlarmController_getAlarm(request, response, next) {
|
|
3642
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3643
|
+
let validatedArgs = [];
|
|
3644
|
+
try {
|
|
3645
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarm, request, response });
|
|
3646
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3647
|
+
const controller = await container.get(AlarmController);
|
|
3648
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3649
|
+
controller.setStatus(undefined);
|
|
3650
|
+
}
|
|
3651
|
+
await templateService.apiHandler({
|
|
3652
|
+
methodName: 'getAlarm',
|
|
3653
|
+
controller,
|
|
3654
|
+
response,
|
|
3655
|
+
next,
|
|
3656
|
+
validatedArgs,
|
|
3657
|
+
successStatus: undefined,
|
|
3658
|
+
});
|
|
3659
|
+
}
|
|
3660
|
+
catch (err) {
|
|
3661
|
+
return next(err);
|
|
3662
|
+
}
|
|
3663
|
+
});
|
|
3664
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2838
3665
|
// WARNING: This 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
3666
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2840
3667
|
function authenticateMiddleware(security = []) {
|