@xen-orchestra/rest-api 0.9.0 → 0.11.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 +26 -1
- package/dist/alarms/alarm.controller.mjs +1 -1
- package/dist/helpers/utils.helper.mjs +1 -0
- package/dist/hosts/host.controller.mjs +30 -1
- package/dist/ioc/ioc.mjs +8 -0
- package/dist/messages/message.controller.mjs +1 -1
- package/dist/middlewares/generic-error-handler.middleware.mjs +15 -11
- package/dist/middlewares/tsoa-to-xo-error.middleware.mjs +1 -1
- package/dist/open-api/oa-examples/pool.oa-example.mjs +204 -0
- package/dist/open-api/oa-examples/sm.oa-example.mjs +58 -0
- package/dist/open-api/routes/routes.js +373 -23
- package/dist/pools/pool.controller.mjs +93 -3
- package/dist/rest-api/rest-api.mjs +3 -0
- package/dist/sms/sm.controller.mjs +60 -0
- package/dist/vms/vm.controller.mjs +127 -4
- package/dist/vms/vm.service.mjs +47 -0
- package/dist/xoa/xoa.controller.mjs +21 -5
- package/dist/xoa/xoa.service.mjs +103 -22
- package/open-api/spec/swagger.json +3854 -697
- package/package.json +5 -3
- package/tsoa.json +20 -0
|
@@ -22,6 +22,8 @@ import { UserController } from './../../users/user.controller.mjs';
|
|
|
22
22
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
23
23
|
import { SrController } from './../../srs/sr.controller.mjs';
|
|
24
24
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
25
|
+
import { SmController } from './../../sms/sm.controller.mjs';
|
|
26
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
25
27
|
import { ServerController } from './../../servers/server.controller.mjs';
|
|
26
28
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
27
29
|
import { ScheduleController } from './../../schedules/schedule.controller.mjs';
|
|
@@ -66,7 +68,7 @@ const models = {
|
|
|
66
68
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
67
69
|
"XoaDashboard": {
|
|
68
70
|
"dataType": "refAlias",
|
|
69
|
-
"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 }, "nHostsEol": { "dataType": "double" }, "nHosts": { "dataType": "double", "required": true }, "nPools": { "dataType": "double", "required": true } }, "validators": {} },
|
|
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": {} },
|
|
70
72
|
},
|
|
71
73
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
72
74
|
"Record_string.string_": {
|
|
@@ -119,19 +121,34 @@ const models = {
|
|
|
119
121
|
"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": {} },
|
|
120
122
|
},
|
|
121
123
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
122
|
-
"
|
|
124
|
+
"StatValues": {
|
|
125
|
+
"dataType": "refAlias",
|
|
126
|
+
"type": { "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }] }, "validators": {} },
|
|
127
|
+
},
|
|
128
|
+
// WARNING: This 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
|
+
"Record_string.StatValues_": {
|
|
130
|
+
"dataType": "refAlias",
|
|
131
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "ref": "StatValues" }, "validators": {} },
|
|
132
|
+
},
|
|
133
|
+
// WARNING: This 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
|
+
"RecordStatValues": {
|
|
135
|
+
"dataType": "refAlias",
|
|
136
|
+
"type": { "ref": "Record_string.StatValues_", "validators": {} },
|
|
137
|
+
},
|
|
138
|
+
// WARNING: This 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
|
+
"XapiVmStatsRaw": {
|
|
123
140
|
"dataType": "refAlias",
|
|
124
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "
|
|
141
|
+
"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": {} },
|
|
125
142
|
},
|
|
126
143
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
127
|
-
"
|
|
144
|
+
"XapiStatsResponse_XapiVmStatsRaw_": {
|
|
128
145
|
"dataType": "refAlias",
|
|
129
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "stats": { "
|
|
146
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "stats": { "ref": "XapiVmStatsRaw", "required": true }, "interval": { "dataType": "double", "required": true }, "endTimestamp": { "dataType": "double", "required": true } }, "validators": {} },
|
|
130
147
|
},
|
|
131
148
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
132
149
|
"XapiVmStats": {
|
|
133
150
|
"dataType": "refAlias",
|
|
134
|
-
"type": { "ref": "
|
|
151
|
+
"type": { "ref": "XapiStatsResponse_XapiVmStatsRaw_", "validators": {} },
|
|
135
152
|
},
|
|
136
153
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
137
154
|
"XapiStatsGranularity": {
|
|
@@ -241,7 +258,7 @@ const models = {
|
|
|
241
258
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
242
259
|
"Partial_Unbrand_XoVdi__": {
|
|
243
260
|
"dataType": "refAlias",
|
|
244
|
-
"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" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "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" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
261
|
+
"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" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "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" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
245
262
|
},
|
|
246
263
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
247
264
|
"WithHref_Partial_Unbrand_XoVdi___": {
|
|
@@ -256,12 +273,12 @@ const models = {
|
|
|
256
273
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
257
274
|
"Unbrand_XoVdi_": {
|
|
258
275
|
"dataType": "refAlias",
|
|
259
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["VDI"], "required": true } }, "validators": {} },
|
|
276
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["VDI"], "required": true } }, "validators": {} },
|
|
260
277
|
},
|
|
261
278
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
262
279
|
"Partial_Unbrand_XoVdiSnapshot__": {
|
|
263
280
|
"dataType": "refAlias",
|
|
264
|
-
"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" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "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" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "snapshot_time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
281
|
+
"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" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "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" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "snapshot_time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
265
282
|
},
|
|
266
283
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
267
284
|
"WithHref_Partial_Unbrand_XoVdiSnapshot___": {
|
|
@@ -276,7 +293,7 @@ const models = {
|
|
|
276
293
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
277
294
|
"Unbrand_XoVdiSnapshot_": {
|
|
278
295
|
"dataType": "refAlias",
|
|
279
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "snapshot_time": { "dataType": "double", "required": true }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "enum", "enums": ["VDI-snapshot"], "required": true } }, "validators": {} },
|
|
296
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "snapshot_time": { "dataType": "double", "required": true }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "enum", "enums": ["VDI-snapshot"], "required": true } }, "validators": {} },
|
|
280
297
|
},
|
|
281
298
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
282
299
|
"Partial_Unbrand_XoVbd__": {
|
|
@@ -344,6 +361,31 @@ const models = {
|
|
|
344
361
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$PBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$container": { "dataType": "string", "required": true }, "VDIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true }, "content_type": { "dataType": "string", "required": true }, "current_operations": { "ref": "Record_string.STORAGE_OPERATIONS_", "required": true }, "id": { "dataType": "string", "required": true }, "inMaintenanceMode": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "shared": { "dataType": "boolean", "required": true }, "size": { "dataType": "double", "required": true }, "sm_config": { "ref": "Record_string.string_", "required": true }, "SR_type": { "dataType": "string", "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["SR"], "required": true }, "usage": { "dataType": "double", "required": true } }, "validators": {} },
|
|
345
362
|
},
|
|
346
363
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
364
|
+
"Record_string.number_": {
|
|
365
|
+
"dataType": "refAlias",
|
|
366
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
367
|
+
},
|
|
368
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
369
|
+
"Partial_Unbrand_XoSm__": {
|
|
370
|
+
"dataType": "refAlias",
|
|
371
|
+
"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" }] }, "SM_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vendor": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "configuration": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "features": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.number_" }, { "dataType": "undefined" }] }, "driver_filename": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "required_cluster_stack": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "supported_image_formats": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["SM"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
372
|
+
},
|
|
373
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
374
|
+
"WithHref_Partial_Unbrand_XoSm___": {
|
|
375
|
+
"dataType": "refAlias",
|
|
376
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoSm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
377
|
+
},
|
|
378
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
379
|
+
"SendObjects_Partial_Unbrand_XoSm___": {
|
|
380
|
+
"dataType": "refAlias",
|
|
381
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoSm___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
382
|
+
},
|
|
383
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
384
|
+
"Unbrand_XoSm_": {
|
|
385
|
+
"dataType": "refAlias",
|
|
386
|
+
"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 }, "SM_type": { "dataType": "string", "required": true }, "vendor": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "name_description": { "dataType": "string", "required": true }, "configuration": { "ref": "Record_string.string_", "required": true }, "features": { "ref": "Record_string.number_", "required": true }, "driver_filename": { "dataType": "string", "required": true }, "required_cluster_stack": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "supported_image_formats": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["SM"], "required": true } }, "validators": {} },
|
|
387
|
+
},
|
|
388
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
347
389
|
"Record_string.unknown_": {
|
|
348
390
|
"dataType": "refAlias",
|
|
349
391
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
@@ -440,6 +482,36 @@ const models = {
|
|
|
440
482
|
"additionalProperties": false,
|
|
441
483
|
},
|
|
442
484
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
485
|
+
"Unbrand_CreateVmBody_": {
|
|
486
|
+
"dataType": "refAlias",
|
|
487
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string", "required": true }, "clone": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "vifs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "network": { "dataType": "string", "required": true }, "mtu": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "mac": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "ipv6_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "ipv4_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "vgpuType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "gpuGroup": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "copyHostBiosStrings": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template": { "dataType": "string", "required": true }, "affinity": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vdis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "userdevice": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "userdervice": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "install": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "repository": { "dataType": "string", "required": true }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["cdrom"] }], "required": true } } }, { "dataType": "undefined" }] }, "cloud_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "network_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "destroy_cloud_config_vdi": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
488
|
+
},
|
|
489
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
490
|
+
"XapiHostStatsRaw": {
|
|
491
|
+
"dataType": "refAlias",
|
|
492
|
+
"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": {} },
|
|
493
|
+
},
|
|
494
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
495
|
+
"XapiStatsResponse_XapiHostStatsRaw_": {
|
|
496
|
+
"dataType": "refAlias",
|
|
497
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "stats": { "ref": "XapiHostStatsRaw", "required": true }, "interval": { "dataType": "double", "required": true }, "endTimestamp": { "dataType": "double", "required": true } }, "validators": {} },
|
|
498
|
+
},
|
|
499
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
500
|
+
"XapiHostStats": {
|
|
501
|
+
"dataType": "refAlias",
|
|
502
|
+
"type": { "ref": "XapiStatsResponse_XapiHostStatsRaw_", "validators": {} },
|
|
503
|
+
},
|
|
504
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
505
|
+
"Record_XoHost-at-id.XapiHostStats-or-_error-Record_string.unknown___": {
|
|
506
|
+
"dataType": "refAlias",
|
|
507
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "dataType": "union", "subSchemas": [{ "ref": "XapiHostStats" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "error": { "ref": "Record_string.unknown_", "required": true } } }] }, "validators": {} },
|
|
508
|
+
},
|
|
509
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
510
|
+
"XapiPoolStats": {
|
|
511
|
+
"dataType": "refAlias",
|
|
512
|
+
"type": { "ref": "Record_XoHost-at-id.XapiHostStats-or-_error-Record_string.unknown___", "validators": {} },
|
|
513
|
+
},
|
|
514
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
443
515
|
"Branded_PIF_": {
|
|
444
516
|
"dataType": "refAlias",
|
|
445
517
|
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["PIF"], "required": true } } }], "validators": {} },
|
|
@@ -557,7 +629,7 @@ const models = {
|
|
|
557
629
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
558
630
|
"Partial_UnbrandedXoAlarm_": {
|
|
559
631
|
"dataType": "refAlias",
|
|
560
|
-
"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": ["
|
|
632
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "string", "required": true } } }, { "dataType": "undefined" }] }, "object": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
561
633
|
},
|
|
562
634
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
563
635
|
"WithHref_Partial_UnbrandedXoAlarm__": {
|
|
@@ -572,7 +644,7 @@ const models = {
|
|
|
572
644
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
573
645
|
"Unbrand_XoAlarm_": {
|
|
574
646
|
"dataType": "refAlias",
|
|
575
|
-
"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": ["
|
|
647
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["message"], "required": true }, "name": { "dataType": "string", "required": true }, "time": { "dataType": "double", "required": true }, "body": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "string", "required": true } }, "required": true }, "object": { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }], "required": true } }, "required": true } }, "validators": {} },
|
|
576
648
|
},
|
|
577
649
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
578
650
|
"UnbrandedXoAlarm": {
|
|
@@ -645,16 +717,6 @@ const models = {
|
|
|
645
717
|
"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": {} },
|
|
646
718
|
},
|
|
647
719
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
648
|
-
"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____": {
|
|
649
|
-
"dataType": "refAlias",
|
|
650
|
-
"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": {} },
|
|
651
|
-
},
|
|
652
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
653
|
-
"XapiHostStats": {
|
|
654
|
-
"dataType": "refAlias",
|
|
655
|
-
"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": {} },
|
|
656
|
-
},
|
|
657
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
658
720
|
"Partial_Unbrand_XoGroup__": {
|
|
659
721
|
"dataType": "refAlias",
|
|
660
722
|
"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": {} },
|
|
@@ -683,7 +745,10 @@ export function RegisterRoutes(app) {
|
|
|
683
745
|
// NOTE: If you do not see routes for all of your controllers in this file, then you might not have informed tsoa of where to look
|
|
684
746
|
// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa
|
|
685
747
|
// ###########################################################################################################
|
|
686
|
-
const argsXoaController_getDashboard = {
|
|
748
|
+
const argsXoaController_getDashboard = {
|
|
749
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
750
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
751
|
+
};
|
|
687
752
|
app.get('/rest/v0/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(XoaController)), ...(fetchMiddlewares(XoaController.prototype.getDashboard)), async function XoaController_getDashboard(request, response, next) {
|
|
688
753
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
689
754
|
let validatedArgs = [];
|
|
@@ -852,6 +917,7 @@ export function RegisterRoutes(app) {
|
|
|
852
917
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
853
918
|
const argsVmController_startVm = {
|
|
854
919
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
920
|
+
body: { "in": "body", "name": "body", "dataType": "nestedObjectLiteral", "nestedProperties": { "hostId": { "dataType": "string" } } },
|
|
855
921
|
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
856
922
|
};
|
|
857
923
|
app.post('/rest/v0/vms/:id/actions/start', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.startVm)), async function VmController_startVm(request, response, next) {
|
|
@@ -990,6 +1056,118 @@ export function RegisterRoutes(app) {
|
|
|
990
1056
|
}
|
|
991
1057
|
});
|
|
992
1058
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1059
|
+
const argsVmController_pauseVm = {
|
|
1060
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1061
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
1062
|
+
};
|
|
1063
|
+
app.post('/rest/v0/vms/:id/actions/pause', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.pauseVm)), async function VmController_pauseVm(request, response, next) {
|
|
1064
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1065
|
+
let validatedArgs = [];
|
|
1066
|
+
try {
|
|
1067
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_pauseVm, request, response });
|
|
1068
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1069
|
+
const controller = await container.get(VmController);
|
|
1070
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1071
|
+
controller.setStatus(undefined);
|
|
1072
|
+
}
|
|
1073
|
+
await templateService.apiHandler({
|
|
1074
|
+
methodName: 'pauseVm',
|
|
1075
|
+
controller,
|
|
1076
|
+
response,
|
|
1077
|
+
next,
|
|
1078
|
+
validatedArgs,
|
|
1079
|
+
successStatus: 202,
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
catch (err) {
|
|
1083
|
+
return next(err);
|
|
1084
|
+
}
|
|
1085
|
+
});
|
|
1086
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1087
|
+
const argsVmController_suspendVm = {
|
|
1088
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1089
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
1090
|
+
};
|
|
1091
|
+
app.post('/rest/v0/vms/:id/actions/suspend', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.suspendVm)), async function VmController_suspendVm(request, response, next) {
|
|
1092
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1093
|
+
let validatedArgs = [];
|
|
1094
|
+
try {
|
|
1095
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_suspendVm, request, response });
|
|
1096
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1097
|
+
const controller = await container.get(VmController);
|
|
1098
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1099
|
+
controller.setStatus(undefined);
|
|
1100
|
+
}
|
|
1101
|
+
await templateService.apiHandler({
|
|
1102
|
+
methodName: 'suspendVm',
|
|
1103
|
+
controller,
|
|
1104
|
+
response,
|
|
1105
|
+
next,
|
|
1106
|
+
validatedArgs,
|
|
1107
|
+
successStatus: 202,
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
catch (err) {
|
|
1111
|
+
return next(err);
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1115
|
+
const argsVmController_resumeVm = {
|
|
1116
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1117
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
1118
|
+
};
|
|
1119
|
+
app.post('/rest/v0/vms/:id/actions/resume', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.resumeVm)), async function VmController_resumeVm(request, response, next) {
|
|
1120
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1121
|
+
let validatedArgs = [];
|
|
1122
|
+
try {
|
|
1123
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_resumeVm, request, response });
|
|
1124
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1125
|
+
const controller = await container.get(VmController);
|
|
1126
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1127
|
+
controller.setStatus(undefined);
|
|
1128
|
+
}
|
|
1129
|
+
await templateService.apiHandler({
|
|
1130
|
+
methodName: 'resumeVm',
|
|
1131
|
+
controller,
|
|
1132
|
+
response,
|
|
1133
|
+
next,
|
|
1134
|
+
validatedArgs,
|
|
1135
|
+
successStatus: 202,
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
catch (err) {
|
|
1139
|
+
return next(err);
|
|
1140
|
+
}
|
|
1141
|
+
});
|
|
1142
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1143
|
+
const argsVmController_unpauseVm = {
|
|
1144
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1145
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
1146
|
+
};
|
|
1147
|
+
app.post('/rest/v0/vms/:id/actions/unpause', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.unpauseVm)), async function VmController_unpauseVm(request, response, next) {
|
|
1148
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1149
|
+
let validatedArgs = [];
|
|
1150
|
+
try {
|
|
1151
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_unpauseVm, request, response });
|
|
1152
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1153
|
+
const controller = await container.get(VmController);
|
|
1154
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1155
|
+
controller.setStatus(undefined);
|
|
1156
|
+
}
|
|
1157
|
+
await templateService.apiHandler({
|
|
1158
|
+
methodName: 'unpauseVm',
|
|
1159
|
+
controller,
|
|
1160
|
+
response,
|
|
1161
|
+
next,
|
|
1162
|
+
validatedArgs,
|
|
1163
|
+
successStatus: 202,
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
catch (err) {
|
|
1167
|
+
return next(err);
|
|
1168
|
+
}
|
|
1169
|
+
});
|
|
1170
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
993
1171
|
const argsVmController_snapshotVm = {
|
|
994
1172
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
995
1173
|
body: { "in": "body", "name": "body", "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string" } } },
|
|
@@ -1541,6 +1719,64 @@ export function RegisterRoutes(app) {
|
|
|
1541
1719
|
}
|
|
1542
1720
|
});
|
|
1543
1721
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1722
|
+
const argsSmController_getSrs = {
|
|
1723
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1724
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1725
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1726
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1727
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1728
|
+
};
|
|
1729
|
+
app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
|
|
1730
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1731
|
+
let validatedArgs = [];
|
|
1732
|
+
try {
|
|
1733
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
|
|
1734
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1735
|
+
const controller = await container.get(SmController);
|
|
1736
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1737
|
+
controller.setStatus(undefined);
|
|
1738
|
+
}
|
|
1739
|
+
await templateService.apiHandler({
|
|
1740
|
+
methodName: 'getSrs',
|
|
1741
|
+
controller,
|
|
1742
|
+
response,
|
|
1743
|
+
next,
|
|
1744
|
+
validatedArgs,
|
|
1745
|
+
successStatus: undefined,
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
catch (err) {
|
|
1749
|
+
return next(err);
|
|
1750
|
+
}
|
|
1751
|
+
});
|
|
1752
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1753
|
+
const argsSmController_getSr = {
|
|
1754
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1755
|
+
};
|
|
1756
|
+
app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
|
|
1757
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1758
|
+
let validatedArgs = [];
|
|
1759
|
+
try {
|
|
1760
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
|
|
1761
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1762
|
+
const controller = await container.get(SmController);
|
|
1763
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1764
|
+
controller.setStatus(undefined);
|
|
1765
|
+
}
|
|
1766
|
+
await templateService.apiHandler({
|
|
1767
|
+
methodName: 'getSr',
|
|
1768
|
+
controller,
|
|
1769
|
+
response,
|
|
1770
|
+
next,
|
|
1771
|
+
validatedArgs,
|
|
1772
|
+
successStatus: undefined,
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
catch (err) {
|
|
1776
|
+
return next(err);
|
|
1777
|
+
}
|
|
1778
|
+
});
|
|
1779
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1544
1780
|
const argsServerController_getServers = {
|
|
1545
1781
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1546
1782
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1966,6 +2202,92 @@ export function RegisterRoutes(app) {
|
|
|
1966
2202
|
}
|
|
1967
2203
|
});
|
|
1968
2204
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2205
|
+
const argsPoolController_importVm = {
|
|
2206
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2207
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2208
|
+
sr: { "in": "query", "name": "sr", "dataType": "string" },
|
|
2209
|
+
};
|
|
2210
|
+
app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
|
|
2211
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2212
|
+
let validatedArgs = [];
|
|
2213
|
+
try {
|
|
2214
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
|
|
2215
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2216
|
+
const controller = await container.get(PoolController);
|
|
2217
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2218
|
+
controller.setStatus(undefined);
|
|
2219
|
+
}
|
|
2220
|
+
await templateService.apiHandler({
|
|
2221
|
+
methodName: 'importVm',
|
|
2222
|
+
controller,
|
|
2223
|
+
response,
|
|
2224
|
+
next,
|
|
2225
|
+
validatedArgs,
|
|
2226
|
+
successStatus: 201,
|
|
2227
|
+
});
|
|
2228
|
+
}
|
|
2229
|
+
catch (err) {
|
|
2230
|
+
return next(err);
|
|
2231
|
+
}
|
|
2232
|
+
});
|
|
2233
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2234
|
+
const argsPoolController_createVm = {
|
|
2235
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2236
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
|
|
2237
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2238
|
+
};
|
|
2239
|
+
app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
|
|
2240
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2241
|
+
let validatedArgs = [];
|
|
2242
|
+
try {
|
|
2243
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
|
|
2244
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2245
|
+
const controller = await container.get(PoolController);
|
|
2246
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2247
|
+
controller.setStatus(undefined);
|
|
2248
|
+
}
|
|
2249
|
+
await templateService.apiHandler({
|
|
2250
|
+
methodName: 'createVm',
|
|
2251
|
+
controller,
|
|
2252
|
+
response,
|
|
2253
|
+
next,
|
|
2254
|
+
validatedArgs,
|
|
2255
|
+
successStatus: 201,
|
|
2256
|
+
});
|
|
2257
|
+
}
|
|
2258
|
+
catch (err) {
|
|
2259
|
+
return next(err);
|
|
2260
|
+
}
|
|
2261
|
+
});
|
|
2262
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2263
|
+
const argsPoolController_getStats = {
|
|
2264
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2265
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
2266
|
+
};
|
|
2267
|
+
app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
|
|
2268
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2269
|
+
let validatedArgs = [];
|
|
2270
|
+
try {
|
|
2271
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
|
|
2272
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2273
|
+
const controller = await container.get(PoolController);
|
|
2274
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2275
|
+
controller.setStatus(undefined);
|
|
2276
|
+
}
|
|
2277
|
+
await templateService.apiHandler({
|
|
2278
|
+
methodName: 'getStats',
|
|
2279
|
+
controller,
|
|
2280
|
+
response,
|
|
2281
|
+
next,
|
|
2282
|
+
validatedArgs,
|
|
2283
|
+
successStatus: undefined,
|
|
2284
|
+
});
|
|
2285
|
+
}
|
|
2286
|
+
catch (err) {
|
|
2287
|
+
return next(err);
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1969
2291
|
const argsPifController_getPifs = {
|
|
1970
2292
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1971
2293
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2427,6 +2749,34 @@ export function RegisterRoutes(app) {
|
|
|
2427
2749
|
}
|
|
2428
2750
|
});
|
|
2429
2751
|
// WARNING: This 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
|
+
const argsHostController_getAuditLog = {
|
|
2753
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2754
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2755
|
+
};
|
|
2756
|
+
app.get('/rest/v0/hosts/:id/audit.txt', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getAuditLog)), async function HostController_getAuditLog(request, response, next) {
|
|
2757
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2758
|
+
let validatedArgs = [];
|
|
2759
|
+
try {
|
|
2760
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getAuditLog, request, response });
|
|
2761
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2762
|
+
const controller = await container.get(HostController);
|
|
2763
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2764
|
+
controller.setStatus(undefined);
|
|
2765
|
+
}
|
|
2766
|
+
await templateService.apiHandler({
|
|
2767
|
+
methodName: 'getAuditLog',
|
|
2768
|
+
controller,
|
|
2769
|
+
response,
|
|
2770
|
+
next,
|
|
2771
|
+
validatedArgs,
|
|
2772
|
+
successStatus: 200,
|
|
2773
|
+
});
|
|
2774
|
+
}
|
|
2775
|
+
catch (err) {
|
|
2776
|
+
return next(err);
|
|
2777
|
+
}
|
|
2778
|
+
});
|
|
2779
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2430
2780
|
const argsGroupController_getGroups = {
|
|
2431
2781
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2432
2782
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|