@xen-orchestra/rest-api 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract-classes/base-controller.mjs +24 -2
- package/dist/alarms/alarm.controller.mjs +11 -61
- package/dist/alarms/alarm.service.mjs +67 -0
- package/dist/backup-repositories/backup-repositories.controller.mjs +61 -0
- package/dist/groups/group.controller.mjs +15 -2
- package/dist/helpers/object-wrapper.helper.mjs +8 -1
- package/dist/helpers/utils.helper.mjs +74 -1
- package/dist/hosts/host.controller.mjs +87 -3
- package/dist/hosts/host.service.mjs +78 -0
- package/dist/ioc/ioc.mjs +25 -1
- package/dist/messages/message.controller.mjs +2 -2
- package/dist/middlewares/generic-error-handler.middleware.mjs +15 -11
- package/dist/middlewares/tsoa-to-xo-error.middleware.mjs +1 -1
- package/dist/networks/network.controller.mjs +34 -2
- 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/pool.oa-example.mjs +401 -0
- package/dist/open-api/oa-examples/user.oa-example.mjs +1 -0
- package/dist/open-api/routes/routes.js +708 -113
- package/dist/pifs/pif.controller.mjs +34 -2
- package/dist/pools/pool.controller.mjs +84 -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 +32 -3
- package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +34 -2
- package/dist/vdis/vdi.controller.mjs +34 -2
- package/dist/vm-templates/vm-template.controller.mjs +34 -2
- package/dist/vms/vm.controller.mjs +1 -1
- package/dist/vms/vm.service.mjs +40 -0
- package/dist/xoa/xoa.service.mjs +96 -110
- package/open-api/spec/swagger.json +6069 -1899
- 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_": {
|
|
@@ -121,19 +128,34 @@ const models = {
|
|
|
121
128
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$VGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$container": { "dataType": "string", "required": true }, "CPUs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } }, "required": true }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VTPMs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "addresses": { "ref": "Record_string.string_", "required": true }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "boolean", "required": true }, "bios_strings": { "ref": "Record_string.string_", "required": true }, "blockedOperations": { "ref": "Record_VM_OPERATIONS.string_", "required": true }, "boot": { "ref": "Record_string.string_", "required": true }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "ref": "Record_string.string_", "required": true }, "current_operations": { "ref": "Record_string.VM_OPERATIONS_", "required": true }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "boolean", "required": true }, "isNestedVirtEnabled": { "dataType": "boolean", "required": true }, "hasVendorDevice": { "dataType": "boolean", "required": true }, "high_availability": { "dataType": "string", "required": true }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "isFirmwareSupported": { "dataType": "boolean", "required": true }, "memory": { "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "static": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "size": { "dataType": "double", "required": true }, "dynamic": { "dataType": "array", "array": { "dataType": "double" }, "required": true } }, "required": true }, "mainIpAddress": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "managementAgentDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "needsVtpm": { "dataType": "boolean", "required": true }, "nicType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "notes": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "os_version": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "enum", "enums": [null] }], "required": true }, "other": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "power_state": { "ref": "VM_POWER_STATE", "required": true }, "pvDriversDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversUpToDate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversVersion": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "resourceSet": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "secureBoot": { "dataType": "boolean", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "startDelay": { "dataType": "double", "required": true }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "boolean", "required": true }, "virtualizationMode": { "ref": "DOMAIN_TYPE", "required": true }, "xenStoreData": { "ref": "Record_string.string_", "required": true }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["VM"], "required": true }, "vulnerabilities": { "dataType": "nestedObjectLiteral", "nestedProperties": { "xsa468": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "driver": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "reason": { "dataType": "string", "required": true } } }], "required": true } }, "required": true } }, "validators": {} },
|
|
122
129
|
},
|
|
123
130
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
124
|
-
"
|
|
131
|
+
"StatValues": {
|
|
132
|
+
"dataType": "refAlias",
|
|
133
|
+
"type": { "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }] }, "validators": {} },
|
|
134
|
+
},
|
|
135
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
136
|
+
"Record_string.StatValues_": {
|
|
137
|
+
"dataType": "refAlias",
|
|
138
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "ref": "StatValues" }, "validators": {} },
|
|
139
|
+
},
|
|
140
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
141
|
+
"RecordStatValues": {
|
|
142
|
+
"dataType": "refAlias",
|
|
143
|
+
"type": { "ref": "Record_string.StatValues_", "validators": {} },
|
|
144
|
+
},
|
|
145
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
146
|
+
"XapiVmStatsRaw": {
|
|
125
147
|
"dataType": "refAlias",
|
|
126
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "
|
|
148
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "vbdAvgquSz": { "ref": "RecordStatValues" }, "vbdInflight": { "ref": "RecordStatValues" }, "vbdIowait": { "ref": "RecordStatValues" }, "vbdLatency": { "dataType": "nestedObjectLiteral", "nestedProperties": { "r": { "ref": "RecordStatValues", "required": true }, "w": { "ref": "RecordStatValues", "required": true } } }, "xvds": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "ref": "RecordStatValues" }, "r": { "ref": "RecordStatValues" }, "w": { "ref": "RecordStatValues" } } }, "vifErrors": { "dataType": "nestedObjectLiteral", "nestedProperties": { "tx": { "ref": "RecordStatValues", "required": true }, "rx": { "ref": "RecordStatValues", "required": true } } }, "vifs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "tx": { "ref": "RecordStatValues", "required": true }, "rx": { "ref": "RecordStatValues", "required": true } } }, "memoryTarget": { "ref": "StatValues" }, "memoryFree": { "ref": "StatValues" }, "memory": { "ref": "StatValues" }, "iops": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "RecordStatValues", "required": true }, "r": { "ref": "RecordStatValues", "required": true } } }, "runstateBlocked": { "ref": "StatValues" }, "runstateConcurrencyHazard": { "ref": "StatValues" }, "runstatePartialContention": { "ref": "StatValues" }, "runstatePartialRun": { "ref": "StatValues" }, "runstateFullContention": { "ref": "StatValues" }, "runstateFullrun": { "ref": "StatValues" }, "cpuUsage": { "ref": "StatValues" }, "cpus": { "ref": "RecordStatValues" } }, "validators": {} },
|
|
127
149
|
},
|
|
128
150
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
129
|
-
"
|
|
151
|
+
"XapiStatsResponse_XapiVmStatsRaw_": {
|
|
130
152
|
"dataType": "refAlias",
|
|
131
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "stats": { "
|
|
153
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "stats": { "ref": "XapiVmStatsRaw", "required": true }, "interval": { "dataType": "double", "required": true }, "endTimestamp": { "dataType": "double", "required": true } }, "validators": {} },
|
|
132
154
|
},
|
|
133
155
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
134
156
|
"XapiVmStats": {
|
|
135
157
|
"dataType": "refAlias",
|
|
136
|
-
"type": { "ref": "
|
|
158
|
+
"type": { "ref": "XapiStatsResponse_XapiVmStatsRaw_", "validators": {} },
|
|
137
159
|
},
|
|
138
160
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
139
161
|
"XapiStatsGranularity": {
|
|
@@ -161,6 +183,21 @@ const models = {
|
|
|
161
183
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$VGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$container": { "dataType": "string", "required": true }, "CPUs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } }, "required": true }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VTPMs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "addresses": { "ref": "Record_string.string_", "required": true }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "boolean", "required": true }, "bios_strings": { "ref": "Record_string.string_", "required": true }, "blockedOperations": { "ref": "Record_VM_OPERATIONS.string_", "required": true }, "boot": { "ref": "Record_string.string_", "required": true }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "ref": "Record_string.string_", "required": true }, "current_operations": { "ref": "Record_string.VM_OPERATIONS_", "required": true }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "boolean", "required": true }, "isNestedVirtEnabled": { "dataType": "boolean", "required": true }, "hasVendorDevice": { "dataType": "boolean", "required": true }, "high_availability": { "dataType": "string", "required": true }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "isFirmwareSupported": { "dataType": "boolean", "required": true }, "memory": { "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "static": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "size": { "dataType": "double", "required": true }, "dynamic": { "dataType": "array", "array": { "dataType": "double" }, "required": true } }, "required": true }, "mainIpAddress": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "managementAgentDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "needsVtpm": { "dataType": "boolean", "required": true }, "nicType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "notes": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "os_version": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "enum", "enums": [null] }], "required": true }, "other": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "power_state": { "ref": "VM_POWER_STATE", "required": true }, "pvDriversDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversUpToDate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversVersion": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "resourceSet": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "secureBoot": { "dataType": "boolean", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "startDelay": { "dataType": "double", "required": true }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "boolean", "required": true }, "virtualizationMode": { "ref": "DOMAIN_TYPE", "required": true }, "xenStoreData": { "ref": "Record_string.string_", "required": true }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "isDefaultTemplate": { "dataType": "boolean", "required": true }, "template_info": { "dataType": "nestedObjectLiteral", "nestedProperties": { "install_repository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "install_methods": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "SR": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "bootable": { "dataType": "enum", "enums": [true], "required": true } } }, "required": true }, "arch": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "required": true }, "type": { "dataType": "enum", "enums": ["VM-template"], "required": true } }, "validators": {} },
|
|
162
184
|
},
|
|
163
185
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
186
|
+
"Partial_Unbrand_XoAlarm__": {
|
|
187
|
+
"dataType": "refAlias",
|
|
188
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "object": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
189
|
+
},
|
|
190
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
191
|
+
"WithHref_Partial_Unbrand_XoAlarm___": {
|
|
192
|
+
"dataType": "refAlias",
|
|
193
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoAlarm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
194
|
+
},
|
|
195
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
196
|
+
"SendObjects_Partial_Unbrand_XoAlarm___": {
|
|
197
|
+
"dataType": "refAlias",
|
|
198
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoAlarm___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
199
|
+
},
|
|
200
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
164
201
|
"Partial_Unbrand_XoVmSnapshot__": {
|
|
165
202
|
"dataType": "refAlias",
|
|
166
203
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "CPUs": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } } }, { "dataType": "undefined" }] }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VIFs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VTPMs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "addresses": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "bios_strings": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "blockedOperations": { "dataType": "union", "subSchemas": [{ "ref": "Record_VM_OPERATIONS.string_" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VM_OPERATIONS_" }, { "dataType": "undefined" }] }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "isNestedVirtEnabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "hasVendorDevice": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "high_availability": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "isFirmwareSupported": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "memory": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "static": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "size": { "dataType": "double", "required": true }, "dynamic": { "dataType": "array", "array": { "dataType": "double" }, "required": true } } }, { "dataType": "undefined" }] }, "mainIpAddress": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "managementAgentDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "needsVtpm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "nicType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "notes": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "os_version": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "other": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "power_state": { "dataType": "union", "subSchemas": [{ "ref": "VM_POWER_STATE" }, { "dataType": "undefined" }] }, "pvDriversDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversUpToDate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversVersion": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "resourceSet": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "secureBoot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "startDelay": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "virtualizationMode": { "dataType": "union", "subSchemas": [{ "ref": "DOMAIN_TYPE" }, { "dataType": "undefined" }] }, "xenStoreData": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "snapshot_time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "suspendVdi": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -328,7 +365,7 @@ const models = {
|
|
|
328
365
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
329
366
|
"Partial_Unbrand_XoSr__": {
|
|
330
367
|
"dataType": "refAlias",
|
|
331
|
-
"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": ["
|
|
368
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$PBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VDIs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "undefined" }] }, "content_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.STORAGE_OPERATIONS_" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "inMaintenanceMode": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "physical_usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "shared": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "sm_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "SR_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["SR"] }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
332
369
|
},
|
|
333
370
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
334
371
|
"WithHref_Partial_Unbrand_XoSr___": {
|
|
@@ -343,7 +380,7 @@ const models = {
|
|
|
343
380
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
344
381
|
"Unbrand_XoSr_": {
|
|
345
382
|
"dataType": "refAlias",
|
|
346
|
-
"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": ["
|
|
383
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$PBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$container": { "dataType": "string", "required": true }, "VDIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }], "required": true }, "content_type": { "dataType": "string", "required": true }, "current_operations": { "ref": "Record_string.STORAGE_OPERATIONS_", "required": true }, "id": { "dataType": "string", "required": true }, "inMaintenanceMode": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "shared": { "dataType": "boolean", "required": true }, "size": { "dataType": "double", "required": true }, "sm_config": { "ref": "Record_string.string_", "required": true }, "SR_type": { "dataType": "string", "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["SR"], "required": true }, "usage": { "dataType": "double", "required": true } }, "validators": {} },
|
|
347
384
|
},
|
|
348
385
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
349
386
|
"Record_string.number_": {
|
|
@@ -469,7 +506,47 @@ const models = {
|
|
|
469
506
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
470
507
|
"Unbrand_CreateVmBody_": {
|
|
471
508
|
"dataType": "refAlias",
|
|
472
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "
|
|
509
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "memory": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "string", "required": true }, "clone": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "gpuGroup": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vgpuType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "autoPoweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "vifs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "network": { "dataType": "string", "required": true }, "mtu": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "mac": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "ipv6_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "ipv4_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "copyHostBiosStrings": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template": { "dataType": "string", "required": true }, "affinity": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vdis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "userdevice": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "userdervice": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "install": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "repository": { "dataType": "string", "required": true }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["cdrom"] }], "required": true } } }, { "dataType": "undefined" }] }, "cloud_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "network_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "destroy_cloud_config_vdi": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
510
|
+
},
|
|
511
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
512
|
+
"XapiHostStatsRaw": {
|
|
513
|
+
"dataType": "refAlias",
|
|
514
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pifs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "tx": { "ref": "RecordStatValues", "required": true }, "rx": { "ref": "RecordStatValues", "required": true } } }, "memoryFree": { "ref": "StatValues" }, "memory": { "ref": "StatValues" }, "load": { "ref": "StatValues" }, "latency": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "RecordStatValues", "required": true }, "r": { "ref": "RecordStatValues", "required": true } } }, "iowait": { "ref": "RecordStatValues" }, "iops": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "RecordStatValues", "required": true }, "r": { "ref": "RecordStatValues", "required": true } } }, "ioThroughput": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "RecordStatValues", "required": true }, "r": { "ref": "RecordStatValues", "required": true } } }, "cpus": { "ref": "RecordStatValues" } }, "validators": {} },
|
|
515
|
+
},
|
|
516
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
517
|
+
"XapiStatsResponse_XapiHostStatsRaw_": {
|
|
518
|
+
"dataType": "refAlias",
|
|
519
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "stats": { "ref": "XapiHostStatsRaw", "required": true }, "interval": { "dataType": "double", "required": true }, "endTimestamp": { "dataType": "double", "required": true } }, "validators": {} },
|
|
520
|
+
},
|
|
521
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
522
|
+
"XapiHostStats": {
|
|
523
|
+
"dataType": "refAlias",
|
|
524
|
+
"type": { "ref": "XapiStatsResponse_XapiHostStatsRaw_", "validators": {} },
|
|
525
|
+
},
|
|
526
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
527
|
+
"Record_XoHost-at-id.XapiHostStats-or-_error-Record_string.unknown___": {
|
|
528
|
+
"dataType": "refAlias",
|
|
529
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "XapiHostStats" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "error": { "ref": "Record_string.unknown_", "required": true } } }] }, "validators": {} },
|
|
530
|
+
},
|
|
531
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
532
|
+
"XapiPoolStats": {
|
|
533
|
+
"dataType": "refAlias",
|
|
534
|
+
"type": { "ref": "Record_XoHost-at-id.XapiHostStats-or-_error-Record_string.unknown___", "validators": {} },
|
|
535
|
+
},
|
|
536
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
537
|
+
"XcpPatches": {
|
|
538
|
+
"dataType": "refAlias",
|
|
539
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "string", "required": true }, "url": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "release": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "license": { "dataType": "string", "required": true }, "description": { "dataType": "string", "required": true }, "changelog": { "dataType": "nestedObjectLiteral", "nestedProperties": { "description": { "dataType": "string", "required": true }, "date": { "dataType": "double", "required": true }, "author": { "dataType": "string", "required": true } } } }, "validators": {} },
|
|
540
|
+
},
|
|
541
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
542
|
+
"XsPatches": {
|
|
543
|
+
"dataType": "refAlias",
|
|
544
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "uuid": { "dataType": "string" }, "url": { "dataType": "string" }, "upgrade": { "dataType": "boolean" }, "requirements": { "dataType": "array", "array": { "dataType": "string" } }, "paid": { "dataType": "boolean" }, "id": { "dataType": "string" }, "name": { "dataType": "string", "required": true }, "guidances": { "dataType": "string", "required": true }, "documentationUrl": { "dataType": "string" }, "description": { "dataType": "string", "required": true }, "date": { "dataType": "string", "required": true }, "conflicts": { "dataType": "array", "array": { "dataType": "string" } } }, "validators": {} },
|
|
545
|
+
},
|
|
546
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
547
|
+
"PoolDashboard": {
|
|
548
|
+
"dataType": "refAlias",
|
|
549
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cpuProvisioning": { "dataType": "nestedObjectLiteral", "nestedProperties": { "percent": { "dataType": "double", "required": true }, "assigned": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true } }, "required": true }, "alarms": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "srs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "topFiveUsage": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "double", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "percent": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true } }, "required": true }, "vms": { "dataType": "nestedObjectLiteral", "nestedProperties": { "topFiveUsage": { "dataType": "nestedObjectLiteral", "nestedProperties": { "isExpired": { "dataType": "boolean" }, "ram": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "memoryFree": { "dataType": "double", "required": true }, "memory": { "dataType": "double", "required": true }, "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true }, "cpu": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true } } }, "status": { "dataType": "nestedObjectLiteral", "nestedProperties": { "suspended": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "paused": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true } }, "required": true }, "hosts": { "dataType": "nestedObjectLiteral", "nestedProperties": { "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "missingPatches": { "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "ref": "XcpPatches" }, { "ref": "XsPatches" }] }, "required": true }, "hasAuthorization": { "dataType": "enum", "enums": [true], "required": true } } }], "required": true }, "topFiveUsage": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cpu": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "percent": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true }, "ram": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "percent": { "dataType": "double", "required": true }, "usage": { "dataType": "double", "required": true }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, "required": true } }, "required": true }, "status": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "disabled": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true } }, "required": true } }, "validators": {} },
|
|
473
550
|
},
|
|
474
551
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
475
552
|
"Branded_PIF_": {
|
|
@@ -587,31 +664,6 @@ const models = {
|
|
|
587
664
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "MTU": { "dataType": "double", "required": true }, "PIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "automatic": { "dataType": "boolean", "required": true }, "bridge": { "dataType": "string", "required": true }, "current_operations": { "ref": "Record_string.attaching_", "required": true }, "defaultIsLocked": { "dataType": "boolean", "required": true }, "id": { "dataType": "string", "required": true }, "insecureNbd": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "nbd": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "other_config": { "ref": "Record_string.string_", "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["network"], "required": true } }, "validators": {} },
|
|
588
665
|
},
|
|
589
666
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
590
|
-
"Partial_UnbrandedXoAlarm_": {
|
|
591
|
-
"dataType": "refAlias",
|
|
592
|
-
"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": {} },
|
|
593
|
-
},
|
|
594
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
595
|
-
"WithHref_Partial_UnbrandedXoAlarm__": {
|
|
596
|
-
"dataType": "refAlias",
|
|
597
|
-
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandedXoAlarm_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
598
|
-
},
|
|
599
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
600
|
-
"SendObjects_Partial_UnbrandedXoAlarm__": {
|
|
601
|
-
"dataType": "refAlias",
|
|
602
|
-
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandedXoAlarm__" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
603
|
-
},
|
|
604
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
605
|
-
"Unbrand_XoAlarm_": {
|
|
606
|
-
"dataType": "refAlias",
|
|
607
|
-
"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": {} },
|
|
608
|
-
},
|
|
609
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
610
|
-
"UnbrandedXoAlarm": {
|
|
611
|
-
"dataType": "refAlias",
|
|
612
|
-
"type": { "ref": "Unbrand_XoAlarm_", "validators": {} },
|
|
613
|
-
},
|
|
614
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
615
667
|
"Partial_UnbrandedXoMessage_": {
|
|
616
668
|
"dataType": "refAlias",
|
|
617
669
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$object": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -677,16 +729,6 @@ const models = {
|
|
|
677
729
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$PBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$PCIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$PGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$PIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "PCIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "PGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "PIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "CPUs": { "ref": "Record_string.string_", "required": true }, "address": { "dataType": "string", "required": true }, "agentStartTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "bios_string": { "ref": "Record_string.string_", "required": true }, "build": { "dataType": "string", "required": true }, "certificates": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "notAfter": { "dataType": "double", "required": true }, "fingerprint": { "dataType": "string", "required": true } } } }, { "dataType": "undefined" }] }, "chipset_info": { "dataType": "nestedObjectLiteral", "nestedProperties": { "iommu": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "required": true }, "controlDomain": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "cpus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "sockets": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cores": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } }, "required": true }, "current_operations": { "ref": "Record_string.HOST_ALLOWED_OPERATIONS_", "required": true }, "enabled": { "dataType": "boolean", "required": true }, "hostname": { "dataType": "string", "required": true }, "hvmCapable": { "dataType": "boolean", "required": true }, "id": { "dataType": "string", "required": true }, "iscsiIqn": { "dataType": "string", "required": true }, "license_expiry": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "license_params": { "ref": "Record_string.string_", "required": true }, "license_server": { "ref": "Record_string.string_", "required": true }, "logging": { "ref": "Record_string.string_", "required": true }, "memory": { "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "double", "required": true }, "total": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true } }, "required": true }, "multipathing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "otherConfig": { "ref": "Record_string.string_", "required": true }, "patches": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "power_state": { "ref": "HOST_POWER_STATE", "required": true }, "powerOnMode": { "dataType": "string", "required": true }, "productBrand": { "dataType": "string", "required": true }, "rebootRequired": { "dataType": "boolean", "required": true }, "residentVms": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "supplementalPacks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "vdi": { "ref": "Branded_VDI_", "required": true }, "version": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "name": { "dataType": "string", "required": true }, "hosts": { "dataType": "array", "array": { "dataType": "refAlias", "ref": "Branded_host_" }, "required": true }, "guidance": { "dataType": "string", "required": true }, "description": { "dataType": "string", "required": true }, "author": { "dataType": "string", "required": true } } } }, { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "description": { "dataType": "string", "required": true }, "author": { "dataType": "string", "required": true } } } }], "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["host"], "required": true }, "version": { "dataType": "string", "required": true }, "zstdSupported": { "dataType": "boolean", "required": true } }, "validators": {} },
|
|
678
730
|
},
|
|
679
731
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
680
|
-
"XapiStatsResponse__cpus_63_-Record_string.number-Array_--ioThroughput_63__58__r-Record_string.number-Array_--w-Record_string.number-Array__--iops_63__58__r-Record_string.number-Array_--w-Record_string.number-Array__--iowait_63_-Record_string.number-Array_--latency_63__58__r-Record_string.number-Array_--w-Record_string.number-Array__--load_63_-number-Array--memory_63_-number-Array--memoryFree_63_-number-Array--pifs_63__58__rx-Record_string.number-Array_--tx-Record_string.number-Array____": {
|
|
681
|
-
"dataType": "refAlias",
|
|
682
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "stats": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pifs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "tx": { "ref": "Record_string.number-Array_", "required": true }, "rx": { "ref": "Record_string.number-Array_", "required": true } } }, "memoryFree": { "dataType": "array", "array": { "dataType": "double" } }, "memory": { "dataType": "array", "array": { "dataType": "double" } }, "load": { "dataType": "array", "array": { "dataType": "double" } }, "latency": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "Record_string.number-Array_", "required": true }, "r": { "ref": "Record_string.number-Array_", "required": true } } }, "iowait": { "ref": "Record_string.number-Array_" }, "iops": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "Record_string.number-Array_", "required": true }, "r": { "ref": "Record_string.number-Array_", "required": true } } }, "ioThroughput": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "Record_string.number-Array_", "required": true }, "r": { "ref": "Record_string.number-Array_", "required": true } } }, "cpus": { "ref": "Record_string.number-Array_" } }, "required": true }, "interval": { "dataType": "double", "required": true }, "endTimestamp": { "dataType": "double", "required": true } }, "validators": {} },
|
|
683
|
-
},
|
|
684
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
685
|
-
"XapiHostStats": {
|
|
686
|
-
"dataType": "refAlias",
|
|
687
|
-
"type": { "ref": "XapiStatsResponse__cpus_63_-Record_string.number-Array_--ioThroughput_63__58__r-Record_string.number-Array_--w-Record_string.number-Array__--iops_63__58__r-Record_string.number-Array_--w-Record_string.number-Array__--iowait_63_-Record_string.number-Array_--latency_63__58__r-Record_string.number-Array_--w-Record_string.number-Array__--load_63_-number-Array--memory_63_-number-Array--memoryFree_63_-number-Array--pifs_63__58__rx-Record_string.number-Array_--tx-Record_string.number-Array____", "validators": {} },
|
|
688
|
-
},
|
|
689
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
690
732
|
"Partial_Unbrand_XoGroup__": {
|
|
691
733
|
"dataType": "refAlias",
|
|
692
734
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "provider": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "providerGroupId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "users": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -707,6 +749,51 @@ const models = {
|
|
|
707
749
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "provider": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "providerGroupId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "users": { "dataType": "array", "array": { "dataType": "string" }, "required": true } }, "validators": {} },
|
|
708
750
|
},
|
|
709
751
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
752
|
+
"Partial_Unbrand_XoBackupRepository__": {
|
|
753
|
+
"dataType": "refAlias",
|
|
754
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "benchmarks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "writeRate": { "dataType": "double", "required": true }, "timestamp": { "dataType": "double", "required": true }, "readRate": { "dataType": "double", "required": true } } } }, { "dataType": "undefined" }] }, "enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "options": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
755
|
+
},
|
|
756
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
757
|
+
"WithHref_Partial_Unbrand_XoBackupRepository___": {
|
|
758
|
+
"dataType": "refAlias",
|
|
759
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoBackupRepository__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
760
|
+
},
|
|
761
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
762
|
+
"SendObjects_Partial_Unbrand_XoBackupRepository___": {
|
|
763
|
+
"dataType": "refAlias",
|
|
764
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoBackupRepository___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
765
|
+
},
|
|
766
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
767
|
+
"Unbrand_XoBackupRepository_": {
|
|
768
|
+
"dataType": "refAlias",
|
|
769
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "benchmarks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "writeRate": { "dataType": "double", "required": true }, "timestamp": { "dataType": "double", "required": true }, "readRate": { "dataType": "double", "required": true } } } }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "options": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "string", "required": true } }, "validators": {} },
|
|
770
|
+
},
|
|
771
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
772
|
+
"Partial_UnbrandedXoAlarm_": {
|
|
773
|
+
"dataType": "refAlias",
|
|
774
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "object": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
775
|
+
},
|
|
776
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
777
|
+
"WithHref_Partial_UnbrandedXoAlarm__": {
|
|
778
|
+
"dataType": "refAlias",
|
|
779
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandedXoAlarm_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
780
|
+
},
|
|
781
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
782
|
+
"SendObjects_Partial_UnbrandedXoAlarm__": {
|
|
783
|
+
"dataType": "refAlias",
|
|
784
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandedXoAlarm__" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
785
|
+
},
|
|
786
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
787
|
+
"Unbrand_XoAlarm_": {
|
|
788
|
+
"dataType": "refAlias",
|
|
789
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["message"], "required": true }, "name": { "dataType": "string", "required": true }, "time": { "dataType": "double", "required": true }, "body": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "required": true }, "object": { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } }, "required": true } }, "validators": {} },
|
|
790
|
+
},
|
|
791
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
792
|
+
"UnbrandedXoAlarm": {
|
|
793
|
+
"dataType": "refAlias",
|
|
794
|
+
"type": { "ref": "Unbrand_XoAlarm_", "validators": {} },
|
|
795
|
+
},
|
|
796
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
710
797
|
};
|
|
711
798
|
const templateService = new ExpressTemplateService(models, { "noImplicitAdditionalProperties": "throw-on-extras", "bodyCoercion": true });
|
|
712
799
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
@@ -1225,6 +1312,38 @@ export function RegisterRoutes(app) {
|
|
|
1225
1312
|
}
|
|
1226
1313
|
});
|
|
1227
1314
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1315
|
+
const argsVmTemplateController_getVmTemplateAlarms = {
|
|
1316
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1317
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1318
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1319
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1320
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1321
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1322
|
+
};
|
|
1323
|
+
app.get('/rest/v0/vm-templates/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplateAlarms)), async function VmTemplateController_getVmTemplateAlarms(request, response, next) {
|
|
1324
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1325
|
+
let validatedArgs = [];
|
|
1326
|
+
try {
|
|
1327
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplateAlarms, request, response });
|
|
1328
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1329
|
+
const controller = await container.get(VmTemplateController);
|
|
1330
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1331
|
+
controller.setStatus(undefined);
|
|
1332
|
+
}
|
|
1333
|
+
await templateService.apiHandler({
|
|
1334
|
+
methodName: 'getVmTemplateAlarms',
|
|
1335
|
+
controller,
|
|
1336
|
+
response,
|
|
1337
|
+
next,
|
|
1338
|
+
validatedArgs,
|
|
1339
|
+
successStatus: undefined,
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
catch (err) {
|
|
1343
|
+
return next(err);
|
|
1344
|
+
}
|
|
1345
|
+
});
|
|
1346
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1228
1347
|
const argsVmSnapshotController_getVmSnapshots = {
|
|
1229
1348
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1230
1349
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1457,6 +1576,38 @@ export function RegisterRoutes(app) {
|
|
|
1457
1576
|
}
|
|
1458
1577
|
});
|
|
1459
1578
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1579
|
+
const argsVdiController_getVdiAlarms = {
|
|
1580
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1581
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1582
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1583
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1584
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1585
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1586
|
+
};
|
|
1587
|
+
app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
|
|
1588
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1589
|
+
let validatedArgs = [];
|
|
1590
|
+
try {
|
|
1591
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
|
|
1592
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1593
|
+
const controller = await container.get(VdiController);
|
|
1594
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1595
|
+
controller.setStatus(undefined);
|
|
1596
|
+
}
|
|
1597
|
+
await templateService.apiHandler({
|
|
1598
|
+
methodName: 'getVdiAlarms',
|
|
1599
|
+
controller,
|
|
1600
|
+
response,
|
|
1601
|
+
next,
|
|
1602
|
+
validatedArgs,
|
|
1603
|
+
successStatus: undefined,
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
catch (err) {
|
|
1607
|
+
return next(err);
|
|
1608
|
+
}
|
|
1609
|
+
});
|
|
1610
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1460
1611
|
const argsVdiSnapshotController_getVdiSnapshots = {
|
|
1461
1612
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1462
1613
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1515,6 +1666,38 @@ export function RegisterRoutes(app) {
|
|
|
1515
1666
|
}
|
|
1516
1667
|
});
|
|
1517
1668
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1669
|
+
const argsVdiSnapshotController_getVdiSnapshotAlarms = {
|
|
1670
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1671
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1672
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1673
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1674
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1675
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1676
|
+
};
|
|
1677
|
+
app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
|
|
1678
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1679
|
+
let validatedArgs = [];
|
|
1680
|
+
try {
|
|
1681
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
|
|
1682
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1683
|
+
const controller = await container.get(VdiSnapshotController);
|
|
1684
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1685
|
+
controller.setStatus(undefined);
|
|
1686
|
+
}
|
|
1687
|
+
await templateService.apiHandler({
|
|
1688
|
+
methodName: 'getVdiSnapshotAlarms',
|
|
1689
|
+
controller,
|
|
1690
|
+
response,
|
|
1691
|
+
next,
|
|
1692
|
+
validatedArgs,
|
|
1693
|
+
successStatus: undefined,
|
|
1694
|
+
});
|
|
1695
|
+
}
|
|
1696
|
+
catch (err) {
|
|
1697
|
+
return next(err);
|
|
1698
|
+
}
|
|
1699
|
+
});
|
|
1700
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1518
1701
|
const argsVbdController_getVbds = {
|
|
1519
1702
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1520
1703
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1631,30 +1814,26 @@ export function RegisterRoutes(app) {
|
|
|
1631
1814
|
}
|
|
1632
1815
|
});
|
|
1633
1816
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1634
|
-
const
|
|
1635
|
-
|
|
1636
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1637
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1638
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1639
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1817
|
+
const argsUserController_createUser = {
|
|
1818
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
|
|
1640
1819
|
};
|
|
1641
|
-
app.
|
|
1820
|
+
app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
|
|
1642
1821
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1643
1822
|
let validatedArgs = [];
|
|
1644
1823
|
try {
|
|
1645
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1824
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
|
|
1646
1825
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1647
|
-
const controller = await container.get(
|
|
1826
|
+
const controller = await container.get(UserController);
|
|
1648
1827
|
if (typeof controller['setStatus'] === 'function') {
|
|
1649
1828
|
controller.setStatus(undefined);
|
|
1650
1829
|
}
|
|
1651
1830
|
await templateService.apiHandler({
|
|
1652
|
-
methodName: '
|
|
1831
|
+
methodName: 'createUser',
|
|
1653
1832
|
controller,
|
|
1654
1833
|
response,
|
|
1655
1834
|
next,
|
|
1656
1835
|
validatedArgs,
|
|
1657
|
-
successStatus:
|
|
1836
|
+
successStatus: 201,
|
|
1658
1837
|
});
|
|
1659
1838
|
}
|
|
1660
1839
|
catch (err) {
|
|
@@ -1662,26 +1841,26 @@ export function RegisterRoutes(app) {
|
|
|
1662
1841
|
}
|
|
1663
1842
|
});
|
|
1664
1843
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1665
|
-
const
|
|
1844
|
+
const argsUserController_deleteUser = {
|
|
1666
1845
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1667
1846
|
};
|
|
1668
|
-
app.
|
|
1847
|
+
app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
|
|
1669
1848
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1670
1849
|
let validatedArgs = [];
|
|
1671
1850
|
try {
|
|
1672
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1851
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
|
|
1673
1852
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1674
|
-
const controller = await container.get(
|
|
1853
|
+
const controller = await container.get(UserController);
|
|
1675
1854
|
if (typeof controller['setStatus'] === 'function') {
|
|
1676
1855
|
controller.setStatus(undefined);
|
|
1677
1856
|
}
|
|
1678
1857
|
await templateService.apiHandler({
|
|
1679
|
-
methodName: '
|
|
1858
|
+
methodName: 'deleteUser',
|
|
1680
1859
|
controller,
|
|
1681
1860
|
response,
|
|
1682
1861
|
next,
|
|
1683
1862
|
validatedArgs,
|
|
1684
|
-
successStatus:
|
|
1863
|
+
successStatus: 204,
|
|
1685
1864
|
});
|
|
1686
1865
|
}
|
|
1687
1866
|
catch (err) {
|
|
@@ -1689,20 +1868,20 @@ export function RegisterRoutes(app) {
|
|
|
1689
1868
|
}
|
|
1690
1869
|
});
|
|
1691
1870
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1692
|
-
const
|
|
1871
|
+
const argsSrController_getSrs = {
|
|
1693
1872
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1694
1873
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1695
1874
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1696
1875
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1697
1876
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1698
1877
|
};
|
|
1699
|
-
app.get('/rest/v0/
|
|
1878
|
+
app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
|
|
1700
1879
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1701
1880
|
let validatedArgs = [];
|
|
1702
1881
|
try {
|
|
1703
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1882
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
|
|
1704
1883
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1705
|
-
const controller = await container.get(
|
|
1884
|
+
const controller = await container.get(SrController);
|
|
1706
1885
|
if (typeof controller['setStatus'] === 'function') {
|
|
1707
1886
|
controller.setStatus(undefined);
|
|
1708
1887
|
}
|
|
@@ -1720,16 +1899,16 @@ export function RegisterRoutes(app) {
|
|
|
1720
1899
|
}
|
|
1721
1900
|
});
|
|
1722
1901
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1723
|
-
const
|
|
1902
|
+
const argsSrController_getSr = {
|
|
1724
1903
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1725
1904
|
};
|
|
1726
|
-
app.get('/rest/v0/
|
|
1905
|
+
app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
|
|
1727
1906
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1728
1907
|
let validatedArgs = [];
|
|
1729
1908
|
try {
|
|
1730
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1909
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
|
|
1731
1910
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1732
|
-
const controller = await container.get(
|
|
1911
|
+
const controller = await container.get(SrController);
|
|
1733
1912
|
if (typeof controller['setStatus'] === 'function') {
|
|
1734
1913
|
controller.setStatus(undefined);
|
|
1735
1914
|
}
|
|
@@ -1747,25 +1926,26 @@ export function RegisterRoutes(app) {
|
|
|
1747
1926
|
}
|
|
1748
1927
|
});
|
|
1749
1928
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1750
|
-
const
|
|
1929
|
+
const argsSrController_getSrAlarms = {
|
|
1751
1930
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1931
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1752
1932
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1753
1933
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1754
1934
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1755
1935
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1756
1936
|
};
|
|
1757
|
-
app.get('/rest/v0/
|
|
1937
|
+
app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
|
|
1758
1938
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1759
1939
|
let validatedArgs = [];
|
|
1760
1940
|
try {
|
|
1761
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1941
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
|
|
1762
1942
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1763
|
-
const controller = await container.get(
|
|
1943
|
+
const controller = await container.get(SrController);
|
|
1764
1944
|
if (typeof controller['setStatus'] === 'function') {
|
|
1765
1945
|
controller.setStatus(undefined);
|
|
1766
1946
|
}
|
|
1767
1947
|
await templateService.apiHandler({
|
|
1768
|
-
methodName: '
|
|
1948
|
+
methodName: 'getSrAlarms',
|
|
1769
1949
|
controller,
|
|
1770
1950
|
response,
|
|
1771
1951
|
next,
|
|
@@ -1778,14 +1958,103 @@ export function RegisterRoutes(app) {
|
|
|
1778
1958
|
}
|
|
1779
1959
|
});
|
|
1780
1960
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1781
|
-
const
|
|
1782
|
-
|
|
1961
|
+
const argsSmController_getSrs = {
|
|
1962
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1963
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1964
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1965
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1966
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1783
1967
|
};
|
|
1784
|
-
app.get('/rest/v0/
|
|
1968
|
+
app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
|
|
1785
1969
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1786
1970
|
let validatedArgs = [];
|
|
1787
1971
|
try {
|
|
1788
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1972
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
|
|
1973
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1974
|
+
const controller = await container.get(SmController);
|
|
1975
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1976
|
+
controller.setStatus(undefined);
|
|
1977
|
+
}
|
|
1978
|
+
await templateService.apiHandler({
|
|
1979
|
+
methodName: 'getSrs',
|
|
1980
|
+
controller,
|
|
1981
|
+
response,
|
|
1982
|
+
next,
|
|
1983
|
+
validatedArgs,
|
|
1984
|
+
successStatus: undefined,
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1987
|
+
catch (err) {
|
|
1988
|
+
return next(err);
|
|
1989
|
+
}
|
|
1990
|
+
});
|
|
1991
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1992
|
+
const argsSmController_getSr = {
|
|
1993
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1994
|
+
};
|
|
1995
|
+
app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
|
|
1996
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1997
|
+
let validatedArgs = [];
|
|
1998
|
+
try {
|
|
1999
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
|
|
2000
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2001
|
+
const controller = await container.get(SmController);
|
|
2002
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2003
|
+
controller.setStatus(undefined);
|
|
2004
|
+
}
|
|
2005
|
+
await templateService.apiHandler({
|
|
2006
|
+
methodName: 'getSr',
|
|
2007
|
+
controller,
|
|
2008
|
+
response,
|
|
2009
|
+
next,
|
|
2010
|
+
validatedArgs,
|
|
2011
|
+
successStatus: undefined,
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
catch (err) {
|
|
2015
|
+
return next(err);
|
|
2016
|
+
}
|
|
2017
|
+
});
|
|
2018
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2019
|
+
const argsServerController_getServers = {
|
|
2020
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2021
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2022
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2023
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2024
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2025
|
+
};
|
|
2026
|
+
app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
|
|
2027
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2028
|
+
let validatedArgs = [];
|
|
2029
|
+
try {
|
|
2030
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
|
|
2031
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2032
|
+
const controller = await container.get(ServerController);
|
|
2033
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2034
|
+
controller.setStatus(undefined);
|
|
2035
|
+
}
|
|
2036
|
+
await templateService.apiHandler({
|
|
2037
|
+
methodName: 'getServers',
|
|
2038
|
+
controller,
|
|
2039
|
+
response,
|
|
2040
|
+
next,
|
|
2041
|
+
validatedArgs,
|
|
2042
|
+
successStatus: undefined,
|
|
2043
|
+
});
|
|
2044
|
+
}
|
|
2045
|
+
catch (err) {
|
|
2046
|
+
return next(err);
|
|
2047
|
+
}
|
|
2048
|
+
});
|
|
2049
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2050
|
+
const argsServerController_getServer = {
|
|
2051
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2052
|
+
};
|
|
2053
|
+
app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
|
|
2054
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2055
|
+
let validatedArgs = [];
|
|
2056
|
+
try {
|
|
2057
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
|
|
1789
2058
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1790
2059
|
const controller = await container.get(ServerController);
|
|
1791
2060
|
if (typeof controller['setStatus'] === 'function') {
|
|
@@ -2230,6 +2499,95 @@ export function RegisterRoutes(app) {
|
|
|
2230
2499
|
}
|
|
2231
2500
|
});
|
|
2232
2501
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2502
|
+
const argsPoolController_getStats = {
|
|
2503
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2504
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
2505
|
+
};
|
|
2506
|
+
app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
|
|
2507
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2508
|
+
let validatedArgs = [];
|
|
2509
|
+
try {
|
|
2510
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
|
|
2511
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2512
|
+
const controller = await container.get(PoolController);
|
|
2513
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2514
|
+
controller.setStatus(undefined);
|
|
2515
|
+
}
|
|
2516
|
+
await templateService.apiHandler({
|
|
2517
|
+
methodName: 'getStats',
|
|
2518
|
+
controller,
|
|
2519
|
+
response,
|
|
2520
|
+
next,
|
|
2521
|
+
validatedArgs,
|
|
2522
|
+
successStatus: undefined,
|
|
2523
|
+
});
|
|
2524
|
+
}
|
|
2525
|
+
catch (err) {
|
|
2526
|
+
return next(err);
|
|
2527
|
+
}
|
|
2528
|
+
});
|
|
2529
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2530
|
+
const argsPoolController_getPoolDashboard = {
|
|
2531
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2532
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2533
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2534
|
+
};
|
|
2535
|
+
app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
|
|
2536
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2537
|
+
let validatedArgs = [];
|
|
2538
|
+
try {
|
|
2539
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
|
|
2540
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2541
|
+
const controller = await container.get(PoolController);
|
|
2542
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2543
|
+
controller.setStatus(undefined);
|
|
2544
|
+
}
|
|
2545
|
+
await templateService.apiHandler({
|
|
2546
|
+
methodName: 'getPoolDashboard',
|
|
2547
|
+
controller,
|
|
2548
|
+
response,
|
|
2549
|
+
next,
|
|
2550
|
+
validatedArgs,
|
|
2551
|
+
successStatus: undefined,
|
|
2552
|
+
});
|
|
2553
|
+
}
|
|
2554
|
+
catch (err) {
|
|
2555
|
+
return next(err);
|
|
2556
|
+
}
|
|
2557
|
+
});
|
|
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
|
+
const argsPoolController_getPoolAlarms = {
|
|
2560
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2561
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2562
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2563
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2564
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2565
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2566
|
+
};
|
|
2567
|
+
app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
|
|
2568
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2569
|
+
let validatedArgs = [];
|
|
2570
|
+
try {
|
|
2571
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
|
|
2572
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2573
|
+
const controller = await container.get(PoolController);
|
|
2574
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2575
|
+
controller.setStatus(undefined);
|
|
2576
|
+
}
|
|
2577
|
+
await templateService.apiHandler({
|
|
2578
|
+
methodName: 'getPoolAlarms',
|
|
2579
|
+
controller,
|
|
2580
|
+
response,
|
|
2581
|
+
next,
|
|
2582
|
+
validatedArgs,
|
|
2583
|
+
successStatus: undefined,
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
catch (err) {
|
|
2587
|
+
return next(err);
|
|
2588
|
+
}
|
|
2589
|
+
});
|
|
2590
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2233
2591
|
const argsPifController_getPifs = {
|
|
2234
2592
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2235
2593
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2288,6 +2646,38 @@ export function RegisterRoutes(app) {
|
|
|
2288
2646
|
}
|
|
2289
2647
|
});
|
|
2290
2648
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2649
|
+
const argsPifController_getPifAlarms = {
|
|
2650
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2651
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2652
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2653
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2654
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2655
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2656
|
+
};
|
|
2657
|
+
app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
|
|
2658
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2659
|
+
let validatedArgs = [];
|
|
2660
|
+
try {
|
|
2661
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
|
|
2662
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2663
|
+
const controller = await container.get(PifController);
|
|
2664
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2665
|
+
controller.setStatus(undefined);
|
|
2666
|
+
}
|
|
2667
|
+
await templateService.apiHandler({
|
|
2668
|
+
methodName: 'getPifAlarms',
|
|
2669
|
+
controller,
|
|
2670
|
+
response,
|
|
2671
|
+
next,
|
|
2672
|
+
validatedArgs,
|
|
2673
|
+
successStatus: undefined,
|
|
2674
|
+
});
|
|
2675
|
+
}
|
|
2676
|
+
catch (err) {
|
|
2677
|
+
return next(err);
|
|
2678
|
+
}
|
|
2679
|
+
});
|
|
2680
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2291
2681
|
const argsPgpuController_getPgpus = {
|
|
2292
2682
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2293
2683
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2489,52 +2879,26 @@ export function RegisterRoutes(app) {
|
|
|
2489
2879
|
}
|
|
2490
2880
|
});
|
|
2491
2881
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2492
|
-
const
|
|
2882
|
+
const argsNetworkController_getNetworkAlarms = {
|
|
2493
2883
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2884
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2494
2885
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2495
2886
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2496
2887
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2497
2888
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2498
2889
|
};
|
|
2499
|
-
app.get('/rest/v0/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(
|
|
2890
|
+
app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
|
|
2500
2891
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2501
2892
|
let validatedArgs = [];
|
|
2502
2893
|
try {
|
|
2503
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2894
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
|
|
2504
2895
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2505
|
-
const controller = await container.get(
|
|
2506
|
-
if (typeof controller['setStatus'] === 'function') {
|
|
2507
|
-
controller.setStatus(undefined);
|
|
2508
|
-
}
|
|
2509
|
-
await templateService.apiHandler({
|
|
2510
|
-
methodName: 'getAlarms',
|
|
2511
|
-
controller,
|
|
2512
|
-
response,
|
|
2513
|
-
next,
|
|
2514
|
-
validatedArgs,
|
|
2515
|
-
successStatus: undefined,
|
|
2516
|
-
});
|
|
2517
|
-
}
|
|
2518
|
-
catch (err) {
|
|
2519
|
-
return next(err);
|
|
2520
|
-
}
|
|
2521
|
-
});
|
|
2522
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2523
|
-
const argsAlarmController_getAlarm = {
|
|
2524
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2525
|
-
};
|
|
2526
|
-
app.get('/rest/v0/alarms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarm)), async function AlarmController_getAlarm(request, response, next) {
|
|
2527
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2528
|
-
let validatedArgs = [];
|
|
2529
|
-
try {
|
|
2530
|
-
validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarm, request, response });
|
|
2531
|
-
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2532
|
-
const controller = await container.get(AlarmController);
|
|
2896
|
+
const controller = await container.get(NetworkController);
|
|
2533
2897
|
if (typeof controller['setStatus'] === 'function') {
|
|
2534
2898
|
controller.setStatus(undefined);
|
|
2535
2899
|
}
|
|
2536
2900
|
await templateService.apiHandler({
|
|
2537
|
-
methodName: '
|
|
2901
|
+
methodName: 'getNetworkAlarms',
|
|
2538
2902
|
controller,
|
|
2539
2903
|
response,
|
|
2540
2904
|
next,
|
|
@@ -2691,6 +3055,94 @@ export function RegisterRoutes(app) {
|
|
|
2691
3055
|
}
|
|
2692
3056
|
});
|
|
2693
3057
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3058
|
+
const argsHostController_getAuditLog = {
|
|
3059
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3060
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3061
|
+
};
|
|
3062
|
+
app.get('/rest/v0/hosts/:id/audit.txt', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getAuditLog)), async function HostController_getAuditLog(request, response, next) {
|
|
3063
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3064
|
+
let validatedArgs = [];
|
|
3065
|
+
try {
|
|
3066
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getAuditLog, request, response });
|
|
3067
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3068
|
+
const controller = await container.get(HostController);
|
|
3069
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3070
|
+
controller.setStatus(undefined);
|
|
3071
|
+
}
|
|
3072
|
+
await templateService.apiHandler({
|
|
3073
|
+
methodName: 'getAuditLog',
|
|
3074
|
+
controller,
|
|
3075
|
+
response,
|
|
3076
|
+
next,
|
|
3077
|
+
validatedArgs,
|
|
3078
|
+
successStatus: 200,
|
|
3079
|
+
});
|
|
3080
|
+
}
|
|
3081
|
+
catch (err) {
|
|
3082
|
+
return next(err);
|
|
3083
|
+
}
|
|
3084
|
+
});
|
|
3085
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3086
|
+
const argsHostController_getHostLogs = {
|
|
3087
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3088
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3089
|
+
};
|
|
3090
|
+
app.get('/rest/v0/hosts/:id/logs.tgz', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostLogs)), async function HostController_getHostLogs(request, response, next) {
|
|
3091
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3092
|
+
let validatedArgs = [];
|
|
3093
|
+
try {
|
|
3094
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostLogs, request, response });
|
|
3095
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3096
|
+
const controller = await container.get(HostController);
|
|
3097
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3098
|
+
controller.setStatus(undefined);
|
|
3099
|
+
}
|
|
3100
|
+
await templateService.apiHandler({
|
|
3101
|
+
methodName: 'getHostLogs',
|
|
3102
|
+
controller,
|
|
3103
|
+
response,
|
|
3104
|
+
next,
|
|
3105
|
+
validatedArgs,
|
|
3106
|
+
successStatus: 200,
|
|
3107
|
+
});
|
|
3108
|
+
}
|
|
3109
|
+
catch (err) {
|
|
3110
|
+
return next(err);
|
|
3111
|
+
}
|
|
3112
|
+
});
|
|
3113
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3114
|
+
const argsHostController_getHostAlarms = {
|
|
3115
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3116
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3117
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3118
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3119
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3120
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3121
|
+
};
|
|
3122
|
+
app.get('/rest/v0/hosts/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostAlarms)), async function HostController_getHostAlarms(request, response, next) {
|
|
3123
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3124
|
+
let validatedArgs = [];
|
|
3125
|
+
try {
|
|
3126
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostAlarms, request, response });
|
|
3127
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3128
|
+
const controller = await container.get(HostController);
|
|
3129
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3130
|
+
controller.setStatus(undefined);
|
|
3131
|
+
}
|
|
3132
|
+
await templateService.apiHandler({
|
|
3133
|
+
methodName: 'getHostAlarms',
|
|
3134
|
+
controller,
|
|
3135
|
+
response,
|
|
3136
|
+
next,
|
|
3137
|
+
validatedArgs,
|
|
3138
|
+
successStatus: undefined,
|
|
3139
|
+
});
|
|
3140
|
+
}
|
|
3141
|
+
catch (err) {
|
|
3142
|
+
return next(err);
|
|
3143
|
+
}
|
|
3144
|
+
});
|
|
3145
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2694
3146
|
const argsGroupController_getGroups = {
|
|
2695
3147
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2696
3148
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2749,6 +3201,149 @@ export function RegisterRoutes(app) {
|
|
|
2749
3201
|
}
|
|
2750
3202
|
});
|
|
2751
3203
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3204
|
+
const argsGroupController_deleteGroup = {
|
|
3205
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3206
|
+
};
|
|
3207
|
+
app.delete('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.deleteGroup)), async function GroupController_deleteGroup(request, response, next) {
|
|
3208
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3209
|
+
let validatedArgs = [];
|
|
3210
|
+
try {
|
|
3211
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_deleteGroup, request, response });
|
|
3212
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3213
|
+
const controller = await container.get(GroupController);
|
|
3214
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3215
|
+
controller.setStatus(undefined);
|
|
3216
|
+
}
|
|
3217
|
+
await templateService.apiHandler({
|
|
3218
|
+
methodName: 'deleteGroup',
|
|
3219
|
+
controller,
|
|
3220
|
+
response,
|
|
3221
|
+
next,
|
|
3222
|
+
validatedArgs,
|
|
3223
|
+
successStatus: 204,
|
|
3224
|
+
});
|
|
3225
|
+
}
|
|
3226
|
+
catch (err) {
|
|
3227
|
+
return next(err);
|
|
3228
|
+
}
|
|
3229
|
+
});
|
|
3230
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3231
|
+
const argsBackupRepositoryController_getRepositories = {
|
|
3232
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3233
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3234
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3235
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3236
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3237
|
+
};
|
|
3238
|
+
app.get('/rest/v0/backup-repositories', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepositories)), async function BackupRepositoryController_getRepositories(request, response, next) {
|
|
3239
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3240
|
+
let validatedArgs = [];
|
|
3241
|
+
try {
|
|
3242
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepositories, request, response });
|
|
3243
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3244
|
+
const controller = await container.get(BackupRepositoryController);
|
|
3245
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3246
|
+
controller.setStatus(undefined);
|
|
3247
|
+
}
|
|
3248
|
+
await templateService.apiHandler({
|
|
3249
|
+
methodName: 'getRepositories',
|
|
3250
|
+
controller,
|
|
3251
|
+
response,
|
|
3252
|
+
next,
|
|
3253
|
+
validatedArgs,
|
|
3254
|
+
successStatus: undefined,
|
|
3255
|
+
});
|
|
3256
|
+
}
|
|
3257
|
+
catch (err) {
|
|
3258
|
+
return next(err);
|
|
3259
|
+
}
|
|
3260
|
+
});
|
|
3261
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3262
|
+
const argsBackupRepositoryController_getRepository = {
|
|
3263
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3264
|
+
};
|
|
3265
|
+
app.get('/rest/v0/backup-repositories/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupRepositoryController)), ...(fetchMiddlewares(BackupRepositoryController.prototype.getRepository)), async function BackupRepositoryController_getRepository(request, response, next) {
|
|
3266
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3267
|
+
let validatedArgs = [];
|
|
3268
|
+
try {
|
|
3269
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupRepositoryController_getRepository, request, response });
|
|
3270
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3271
|
+
const controller = await container.get(BackupRepositoryController);
|
|
3272
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3273
|
+
controller.setStatus(undefined);
|
|
3274
|
+
}
|
|
3275
|
+
await templateService.apiHandler({
|
|
3276
|
+
methodName: 'getRepository',
|
|
3277
|
+
controller,
|
|
3278
|
+
response,
|
|
3279
|
+
next,
|
|
3280
|
+
validatedArgs,
|
|
3281
|
+
successStatus: undefined,
|
|
3282
|
+
});
|
|
3283
|
+
}
|
|
3284
|
+
catch (err) {
|
|
3285
|
+
return next(err);
|
|
3286
|
+
}
|
|
3287
|
+
});
|
|
3288
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3289
|
+
const argsAlarmController_getAlarms = {
|
|
3290
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3291
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3292
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3293
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3294
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3295
|
+
};
|
|
3296
|
+
app.get('/rest/v0/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarms)), async function AlarmController_getAlarms(request, response, next) {
|
|
3297
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3298
|
+
let validatedArgs = [];
|
|
3299
|
+
try {
|
|
3300
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarms, request, response });
|
|
3301
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3302
|
+
const controller = await container.get(AlarmController);
|
|
3303
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3304
|
+
controller.setStatus(undefined);
|
|
3305
|
+
}
|
|
3306
|
+
await templateService.apiHandler({
|
|
3307
|
+
methodName: 'getAlarms',
|
|
3308
|
+
controller,
|
|
3309
|
+
response,
|
|
3310
|
+
next,
|
|
3311
|
+
validatedArgs,
|
|
3312
|
+
successStatus: undefined,
|
|
3313
|
+
});
|
|
3314
|
+
}
|
|
3315
|
+
catch (err) {
|
|
3316
|
+
return next(err);
|
|
3317
|
+
}
|
|
3318
|
+
});
|
|
3319
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3320
|
+
const argsAlarmController_getAlarm = {
|
|
3321
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3322
|
+
};
|
|
3323
|
+
app.get('/rest/v0/alarms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarm)), async function AlarmController_getAlarm(request, response, next) {
|
|
3324
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3325
|
+
let validatedArgs = [];
|
|
3326
|
+
try {
|
|
3327
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarm, request, response });
|
|
3328
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3329
|
+
const controller = await container.get(AlarmController);
|
|
3330
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3331
|
+
controller.setStatus(undefined);
|
|
3332
|
+
}
|
|
3333
|
+
await templateService.apiHandler({
|
|
3334
|
+
methodName: 'getAlarm',
|
|
3335
|
+
controller,
|
|
3336
|
+
response,
|
|
3337
|
+
next,
|
|
3338
|
+
validatedArgs,
|
|
3339
|
+
successStatus: undefined,
|
|
3340
|
+
});
|
|
3341
|
+
}
|
|
3342
|
+
catch (err) {
|
|
3343
|
+
return next(err);
|
|
3344
|
+
}
|
|
3345
|
+
});
|
|
3346
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2752
3347
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2753
3348
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2754
3349
|
function authenticateMiddleware(security = []) {
|