@xen-orchestra/rest-api 0.3.0 → 0.5.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/xapi-xo-controller.mjs +2 -2
- package/dist/alarms/alarm.controller.mjs +130 -0
- package/dist/index.mjs +21 -1
- package/dist/messages/message.controller.mjs +83 -0
- package/dist/open-api/common/response.common.mjs +4 -0
- package/dist/open-api/oa-examples/alarm.oa-example.mjs +49 -0
- package/dist/open-api/oa-examples/message.oa-example.mjs +32 -0
- package/dist/open-api/oa-examples/pool.oa-example.mjs +70 -0
- package/dist/open-api/oa-examples/schedule.oa-example.mjs +29 -0
- package/dist/open-api/oa-examples/user.oa-example.mjs +26 -0
- package/dist/open-api/oa-examples/vif.oa-example.mjs +37 -0
- package/dist/open-api/oa-examples/vm-template.oa-example.mjs +1 -1
- package/dist/open-api/routes/routes.js +598 -101
- package/dist/pools/pool.controller.mjs +60 -0
- package/dist/schedules/schedule.controller.mjs +89 -0
- package/dist/users/user.controller.mjs +70 -0
- package/dist/vifs/vif.controller.mjs +59 -0
- package/open-api/spec/swagger.json +12513 -10506
- package/package.json +7 -3
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
import { fetchMiddlewares, ExpressTemplateService } from '@tsoa/runtime';
|
|
2
2
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3
|
+
import { VmController } from './../../vms/vm.controller.mjs';
|
|
4
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3
5
|
import { VmTemplateController } from './../../vm-templates/vm-template.controller.mjs';
|
|
4
6
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
5
7
|
import { VmSnapshotController } from './../../vm-snapshots/vm-snapshot.controller.mjs';
|
|
6
8
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
7
9
|
import { VmControllerController } from './../../vm-controller/vm-controller.controller.mjs';
|
|
8
10
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
11
|
+
import { VifController } from './../../vifs/vif.controller.mjs';
|
|
12
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
9
13
|
import { VdiController } from './../../vdis/vdi.controller.mjs';
|
|
10
14
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
11
15
|
import { VdiSnapshotController } from './../../vdi-snapshots/vdi-snapshot.controller.mjs';
|
|
12
16
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
13
17
|
import { VbdController } from './../../vbds/vbd.controller.mjs';
|
|
14
18
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
19
|
+
import { UserController } from './../../users/user.controller.mjs';
|
|
20
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
15
21
|
import { SrController } from './../../srs/sr.controller.mjs';
|
|
16
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
|
|
17
23
|
import { ServerController } from './../../servers/server.controller.mjs';
|
|
18
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
|
|
19
|
-
import {
|
|
25
|
+
import { ScheduleController } from './../../schedules/schedule.controller.mjs';
|
|
20
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
|
|
21
|
-
import {
|
|
27
|
+
import { PoolController } from './../../pools/pool.controller.mjs';
|
|
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
|
|
29
|
+
import { AlarmController } from './../../alarms/alarm.controller.mjs';
|
|
30
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
31
|
+
import { MessageController } from './../../messages/message.controller.mjs';
|
|
32
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
33
|
+
import { HostController } from './../../hosts/host.controller.mjs';
|
|
22
34
|
import { expressAuthentication } from './../../middlewares/authentication.middleware.mjs';
|
|
23
35
|
// @ts-ignore - no great way to install types from subpackage
|
|
24
36
|
import { iocContainer } from './../../ioc/ioc.mjs';
|
|
@@ -50,6 +62,41 @@ const models = {
|
|
|
50
62
|
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["hvm"] }, { "dataType": "enum", "enums": ["pv"] }, { "dataType": "enum", "enums": ["pvh"] }, { "dataType": "enum", "enums": ["pv_in_pvh"] }, { "dataType": "enum", "enums": ["unspecified"] }], "validators": {} },
|
|
51
63
|
},
|
|
52
64
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
65
|
+
"Partial_Unbrand_XoVm__": {
|
|
66
|
+
"dataType": "refAlias",
|
|
67
|
+
"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": "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": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "virtualizationMode": { "dataType": "union", "subSchemas": [{ "ref": "DOMAIN_TYPE" }, { "dataType": "undefined" }] }, "xenStoreData": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VM"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
68
|
+
},
|
|
69
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
70
|
+
"WithHref_Partial_Unbrand_XoVm___": {
|
|
71
|
+
"dataType": "refAlias",
|
|
72
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
73
|
+
},
|
|
74
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
75
|
+
"Unbrand_XoVm_": {
|
|
76
|
+
"dataType": "refAlias",
|
|
77
|
+
"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": "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": "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 } }, "validators": {} },
|
|
78
|
+
},
|
|
79
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
80
|
+
"Record_string.number-Array_": {
|
|
81
|
+
"dataType": "refAlias",
|
|
82
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "dataType": "array", "array": { "dataType": "double" } }, "validators": {} },
|
|
83
|
+
},
|
|
84
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
85
|
+
"XapiStatsResponse__cpus-Record_string.number-Array_--iops_58__r-Record_string.number-Array_--w-Record_string.number-Array__--memory-number-Array--memoryFree_63_-number-Array--vifs_58__rx-Record_string.number-Array_--tx-Record_string.number-Array__--xvds_58__w-Record_string.number-Array_--r-Record_string.number-Array____": {
|
|
86
|
+
"dataType": "refAlias",
|
|
87
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "stats": { "dataType": "nestedObjectLiteral", "nestedProperties": { "xvds": { "dataType": "nestedObjectLiteral", "nestedProperties": { "r": { "ref": "Record_string.number-Array_", "required": true }, "w": { "ref": "Record_string.number-Array_", "required": true } }, "required": true }, "vifs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "tx": { "ref": "Record_string.number-Array_", "required": true }, "rx": { "ref": "Record_string.number-Array_", "required": true } }, "required": true }, "memoryFree": { "dataType": "array", "array": { "dataType": "double" } }, "memory": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "iops": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "Record_string.number-Array_", "required": true }, "r": { "ref": "Record_string.number-Array_", "required": true } }, "required": true }, "cpus": { "ref": "Record_string.number-Array_", "required": true } }, "required": true }, "interval": { "dataType": "double", "required": true }, "endTimestamp": { "dataType": "double", "required": true } }, "validators": {} },
|
|
88
|
+
},
|
|
89
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
90
|
+
"XapiVmStats": {
|
|
91
|
+
"dataType": "refAlias",
|
|
92
|
+
"type": { "ref": "XapiStatsResponse__cpus-Record_string.number-Array_--iops_58__r-Record_string.number-Array_--w-Record_string.number-Array__--memory-number-Array--memoryFree_63_-number-Array--vifs_58__rx-Record_string.number-Array_--tx-Record_string.number-Array__--xvds_58__w-Record_string.number-Array_--r-Record_string.number-Array____", "validators": {} },
|
|
93
|
+
},
|
|
94
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
95
|
+
"XapiStatsGranularity": {
|
|
96
|
+
"dataType": "refAlias",
|
|
97
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["seconds"] }, { "dataType": "enum", "enums": ["minutes"] }, { "dataType": "enum", "enums": ["hours"] }, { "dataType": "enum", "enums": ["days"] }], "validators": {} },
|
|
98
|
+
},
|
|
99
|
+
// WARNING: This 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
100
|
"Partial_Unbrand_XoVmTemplate__": {
|
|
54
101
|
"dataType": "refAlias",
|
|
55
102
|
"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": "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": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "virtualizationMode": { "dataType": "union", "subSchemas": [{ "ref": "DOMAIN_TYPE" }, { "dataType": "undefined" }] }, "xenStoreData": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "isDefaultTemplate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template_info": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "install_repository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "install_methods": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "SR": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "bootable": { "dataType": "enum", "enums": [true], "required": true } } }, "required": true }, "arch": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -62,7 +109,7 @@ const models = {
|
|
|
62
109
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
63
110
|
"Unbrand_XoVmTemplate_": {
|
|
64
111
|
"dataType": "refAlias",
|
|
65
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "
|
|
112
|
+
"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": "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": "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": {} },
|
|
66
113
|
},
|
|
67
114
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
68
115
|
"Partial_Unbrand_XoVmSnapshot__": {
|
|
@@ -77,7 +124,7 @@ const models = {
|
|
|
77
124
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
78
125
|
"Unbrand_XoVmSnapshot_": {
|
|
79
126
|
"dataType": "refAlias",
|
|
80
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "
|
|
127
|
+
"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": "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": "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" }] }, "$snapshot_of": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "snapshot_time": { "dataType": "double", "required": true }, "suspendVdi": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "enum", "enums": ["VM-snapshot"], "required": true } }, "validators": {} },
|
|
81
128
|
},
|
|
82
129
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
83
130
|
"Partial_Unbrand_XoVmController__": {
|
|
@@ -92,7 +139,32 @@ const models = {
|
|
|
92
139
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
93
140
|
"Unbrand_XoVmController_": {
|
|
94
141
|
"dataType": "refAlias",
|
|
95
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "
|
|
142
|
+
"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": "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": "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-controller"], "required": true } }, "validators": {} },
|
|
143
|
+
},
|
|
144
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
145
|
+
"VIF_LOCKING_MODE": {
|
|
146
|
+
"dataType": "refAlias",
|
|
147
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["disabled"] }, { "dataType": "enum", "enums": ["locked"] }, { "dataType": "enum", "enums": ["network_default"] }, { "dataType": "enum", "enums": ["unlocked"] }], "validators": {} },
|
|
148
|
+
},
|
|
149
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
150
|
+
"Partial_UnbrandedXoVif_": {
|
|
151
|
+
"dataType": "refAlias",
|
|
152
|
+
"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" }] }, "$VM": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$network": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "allowedIpv4Addresses": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "allowedIpv6Addresses": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "attached": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "lockingMode": { "dataType": "union", "subSchemas": [{ "ref": "VIF_LOCKING_MODE" }, { "dataType": "undefined" }] }, "MAC": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "MTU": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "rateLimit": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "txChecksumming": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VIF"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
153
|
+
},
|
|
154
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
155
|
+
"WithHref_Partial_UnbrandedXoVif__": {
|
|
156
|
+
"dataType": "refAlias",
|
|
157
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandedXoVif_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
158
|
+
},
|
|
159
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
160
|
+
"Unbrand_XoVif_": {
|
|
161
|
+
"dataType": "refAlias",
|
|
162
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$VM": { "dataType": "string", "required": true }, "$network": { "dataType": "string", "required": true }, "allowedIpv4Addresses": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "allowedIpv6Addresses": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "attached": { "dataType": "boolean", "required": true }, "device": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "lockingMode": { "ref": "VIF_LOCKING_MODE", "required": true }, "MAC": { "dataType": "string", "required": true }, "MTU": { "dataType": "double", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "rateLimit": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "txChecksumming": { "dataType": "boolean", "required": true }, "type": { "dataType": "enum", "enums": ["VIF"], "required": true } }, "validators": {} },
|
|
163
|
+
},
|
|
164
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
165
|
+
"UnbrandedXoVif": {
|
|
166
|
+
"dataType": "refAlias",
|
|
167
|
+
"type": { "ref": "Unbrand_XoVif_", "validators": {} },
|
|
96
168
|
},
|
|
97
169
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
98
170
|
"VDI_TYPE": {
|
|
@@ -117,7 +189,7 @@ const models = {
|
|
|
117
189
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
118
190
|
"Unbrand_XoVdi_": {
|
|
119
191
|
"dataType": "refAlias",
|
|
120
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "
|
|
192
|
+
"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": {} },
|
|
121
193
|
},
|
|
122
194
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
123
195
|
"Partial_Unbrand_XoVdiSnapshot__": {
|
|
@@ -132,7 +204,7 @@ const models = {
|
|
|
132
204
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
133
205
|
"Unbrand_XoVdiSnapshot_": {
|
|
134
206
|
"dataType": "refAlias",
|
|
135
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "
|
|
207
|
+
"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": {} },
|
|
136
208
|
},
|
|
137
209
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
138
210
|
"Partial_Unbrand_XoVbd__": {
|
|
@@ -147,7 +219,22 @@ const models = {
|
|
|
147
219
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
148
220
|
"Unbrand_XoVbd_": {
|
|
149
221
|
"dataType": "refAlias",
|
|
150
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "
|
|
222
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "attached": { "dataType": "boolean", "required": true }, "bootable": { "dataType": "boolean", "required": true }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "id": { "dataType": "string", "required": true }, "is_cd_drive": { "dataType": "boolean", "required": true }, "position": { "dataType": "string", "required": true }, "read_only": { "dataType": "boolean", "required": true }, "type": { "dataType": "enum", "enums": ["VBD"], "required": true }, "VDI": { "dataType": "string", "required": true }, "VM": { "dataType": "string", "required": true } }, "validators": {} },
|
|
223
|
+
},
|
|
224
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
225
|
+
"Partial_Unbrand_XoUser__": {
|
|
226
|
+
"dataType": "refAlias",
|
|
227
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "authProviders": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "email": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "groups": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "permission": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "pw_hash": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "preferences": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
228
|
+
},
|
|
229
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
230
|
+
"WithHref_Partial_Unbrand_XoUser___": {
|
|
231
|
+
"dataType": "refAlias",
|
|
232
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoUser__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
233
|
+
},
|
|
234
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
235
|
+
"Unbrand_XoUser_": {
|
|
236
|
+
"dataType": "refAlias",
|
|
237
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "authProviders": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "email": { "dataType": "string", "required": true }, "groups": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "id": { "dataType": "string", "required": true }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "permission": { "dataType": "string", "required": true }, "pw_hash": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "preferences": { "ref": "Record_string.string_", "required": true } }, "validators": {} },
|
|
151
238
|
},
|
|
152
239
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
153
240
|
"Record_string.STORAGE_OPERATIONS_": {
|
|
@@ -167,7 +254,7 @@ const models = {
|
|
|
167
254
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
168
255
|
"Unbrand_XoSr_": {
|
|
169
256
|
"dataType": "refAlias",
|
|
170
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "
|
|
257
|
+
"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": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "shared": { "dataType": "boolean", "required": true }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "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": {} },
|
|
171
258
|
},
|
|
172
259
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
173
260
|
"Record_string.unknown_": {
|
|
@@ -187,87 +274,127 @@ const models = {
|
|
|
187
274
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
188
275
|
"Unbrand_XoServer_": {
|
|
189
276
|
"dataType": "refAlias",
|
|
190
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "allowUnauthorized": { "dataType": "boolean", "required": true }, "enabled": { "dataType": "boolean", "required": true }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "host": { "dataType": "string", "required": true }, "httpProxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "
|
|
277
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "allowUnauthorized": { "dataType": "boolean", "required": true }, "enabled": { "dataType": "boolean", "required": true }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "host": { "dataType": "string", "required": true }, "httpProxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "poolNameDescription": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "poolNameLabel": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "readOnly": { "dataType": "boolean", "required": true }, "status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["connected"] }, { "dataType": "enum", "enums": ["disconnected"] }, { "dataType": "enum", "enums": ["connecting"] }], "required": true }, "username": { "dataType": "string", "required": true } }, "validators": {} },
|
|
191
278
|
},
|
|
192
279
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
193
|
-
"
|
|
280
|
+
"Partial_Unbrand_XoSchedule__": {
|
|
281
|
+
"dataType": "refAlias",
|
|
282
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cron": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enable": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "jobId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "timezone": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
283
|
+
},
|
|
284
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
285
|
+
"WithHref_Partial_Unbrand_XoSchedule___": {
|
|
286
|
+
"dataType": "refAlias",
|
|
287
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoSchedule__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
288
|
+
},
|
|
289
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
290
|
+
"Unbrand_XoSchedule_": {
|
|
291
|
+
"dataType": "refAlias",
|
|
292
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "cron": { "dataType": "string", "required": true }, "enable": { "dataType": "boolean", "required": true }, "id": { "dataType": "string", "required": true }, "jobId": { "dataType": "string", "required": true }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "timezone": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
293
|
+
},
|
|
294
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
295
|
+
"Record_string.POOL_ALLOWED_OPERATIONS_": {
|
|
194
296
|
"dataType": "refAlias",
|
|
195
297
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
196
298
|
},
|
|
197
299
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
198
|
-
"
|
|
300
|
+
"Partial_Unbrand_XoPool__": {
|
|
199
301
|
"dataType": "refAlias",
|
|
200
|
-
"type": { "dataType": "union", "subSchemas": [{ "dataType": "
|
|
302
|
+
"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" }] }, "auto_poweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "cpus": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "sockets": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cores": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "crashDumpSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.POOL_ALLOWED_OPERATIONS_" }, { "dataType": "undefined" }] }, "defaultSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "HA_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "haSrs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "master": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "migrationCompression": { "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" }] }, "otherConfig": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "platform_version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "suspendSr": { "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": ["pool"] }, { "dataType": "undefined" }] }, "vtpmSupported": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "xosanPackInstallationTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "zstdSupported": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
201
303
|
},
|
|
202
304
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
203
|
-
"
|
|
305
|
+
"WithHref_Partial_Unbrand_XoPool___": {
|
|
204
306
|
"dataType": "refAlias",
|
|
205
|
-
"type": { "dataType": "intersection", "subSchemas": [{ "
|
|
307
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoPool__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
206
308
|
},
|
|
207
309
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
208
|
-
"
|
|
310
|
+
"Unbrand_XoPool_": {
|
|
209
311
|
"dataType": "refAlias",
|
|
210
|
-
"type": { "dataType": "
|
|
312
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "auto_poweron": { "dataType": "boolean", "required": true }, "cpus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "sockets": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cores": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } }, "required": true }, "crashDumpSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.POOL_ALLOWED_OPERATIONS_", "required": true }, "defaultSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "HA_enabled": { "dataType": "boolean", "required": true }, "haSrs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "id": { "dataType": "string", "required": true }, "master": { "dataType": "string", "required": true }, "migrationCompression": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "otherConfig": { "ref": "Record_string.string_", "required": true }, "platform_version": { "dataType": "string", "required": true }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["pool"], "required": true }, "vtpmSupported": { "dataType": "boolean", "required": true }, "xosanPackInstallationTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "zstdSupported": { "dataType": "boolean", "required": true } }, "validators": {} },
|
|
211
313
|
},
|
|
212
314
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
213
|
-
"
|
|
315
|
+
"Partial_UnbrandedXoAlarm_": {
|
|
214
316
|
"dataType": "refAlias",
|
|
215
|
-
"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" }] }, "
|
|
317
|
+
"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": ["VGPU"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
216
318
|
},
|
|
217
319
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
218
|
-
"
|
|
320
|
+
"WithHref_Partial_UnbrandedXoAlarm__": {
|
|
219
321
|
"dataType": "refAlias",
|
|
220
|
-
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "
|
|
322
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandedXoAlarm_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
221
323
|
},
|
|
222
324
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
223
|
-
"
|
|
325
|
+
"Unbrand_XoAlarm_": {
|
|
224
326
|
"dataType": "refAlias",
|
|
225
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "
|
|
327
|
+
"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": ["VGPU"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } }, "required": true } }, "validators": {} },
|
|
226
328
|
},
|
|
227
329
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
228
|
-
"
|
|
330
|
+
"UnbrandedXoAlarm": {
|
|
229
331
|
"dataType": "refAlias",
|
|
230
|
-
"type": { "
|
|
332
|
+
"type": { "ref": "Unbrand_XoAlarm_", "validators": {} },
|
|
231
333
|
},
|
|
232
334
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
233
|
-
"
|
|
335
|
+
"Partial_UnbrandedXoMessage_": {
|
|
234
336
|
"dataType": "refAlias",
|
|
235
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "
|
|
337
|
+
"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": {} },
|
|
236
338
|
},
|
|
237
339
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
238
|
-
"
|
|
340
|
+
"WithHref_Partial_UnbrandedXoMessage__": {
|
|
239
341
|
"dataType": "refAlias",
|
|
240
|
-
"type": { "ref": "
|
|
342
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_UnbrandedXoMessage_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
241
343
|
},
|
|
242
344
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
243
|
-
"
|
|
345
|
+
"Unbrand_XoMessage_": {
|
|
244
346
|
"dataType": "refAlias",
|
|
245
|
-
"type": { "dataType": "
|
|
347
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$object": { "dataType": "string", "required": true }, "body": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "time": { "dataType": "double", "required": true }, "type": { "dataType": "enum", "enums": ["message"], "required": true } }, "validators": {} },
|
|
246
348
|
},
|
|
247
349
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
248
|
-
"
|
|
350
|
+
"UnbrandedXoMessage": {
|
|
249
351
|
"dataType": "refAlias",
|
|
250
|
-
"type": { "
|
|
352
|
+
"type": { "ref": "Unbrand_XoMessage_", "validators": {} },
|
|
251
353
|
},
|
|
252
354
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
253
|
-
"
|
|
355
|
+
"Record_string.HOST_ALLOWED_OPERATIONS_": {
|
|
254
356
|
"dataType": "refAlias",
|
|
255
|
-
"type": { "dataType": "
|
|
357
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
256
358
|
},
|
|
257
359
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
258
|
-
"
|
|
360
|
+
"HOST_POWER_STATE": {
|
|
259
361
|
"dataType": "refAlias",
|
|
260
|
-
"type": { "dataType": "
|
|
362
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["Halted"] }, { "dataType": "enum", "enums": ["Running"] }, { "dataType": "enum", "enums": ["Unknown"] }], "validators": {} },
|
|
261
363
|
},
|
|
262
364
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
263
|
-
"
|
|
365
|
+
"Branded_host_": {
|
|
264
366
|
"dataType": "refAlias",
|
|
265
|
-
"type": { "dataType": "
|
|
367
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["host"], "required": true } } }], "validators": {} },
|
|
266
368
|
},
|
|
267
369
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
268
|
-
"
|
|
370
|
+
"Branded_VDI_": {
|
|
269
371
|
"dataType": "refAlias",
|
|
270
|
-
"type": { "
|
|
372
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["VDI"], "required": true } } }], "validators": {} },
|
|
373
|
+
},
|
|
374
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
375
|
+
"Partial_Unbrand_XoHost__": {
|
|
376
|
+
"dataType": "refAlias",
|
|
377
|
+
"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" }] }, "$PCIs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$PGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$PIFs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "PCIs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "PGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "PIFs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "CPUs": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "address": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "agentStartTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "bios_string": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "build": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "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": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "iommu": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "controlDomain": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "cpus": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "sockets": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cores": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.HOST_ALLOWED_OPERATIONS_" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "hostname": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "hvmCapable": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "iscsiIqn": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "license_expiry": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "license_params": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "license_server": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "logging": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "memory": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "double", "required": true }, "total": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true } } }, { "dataType": "undefined" }] }, "multipathing": { "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" }] }, "otherConfig": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "patches": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "power_state": { "dataType": "union", "subSchemas": [{ "ref": "HOST_POWER_STATE" }, { "dataType": "undefined" }] }, "powerOnMode": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "productBrand": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "rebootRequired": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "residentVms": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "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 } } } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["host"] }, { "dataType": "undefined" }] }, "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "zstdSupported": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
378
|
+
},
|
|
379
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
380
|
+
"WithHref_Partial_Unbrand_XoHost___": {
|
|
381
|
+
"dataType": "refAlias",
|
|
382
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoHost__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
383
|
+
},
|
|
384
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
385
|
+
"Unbrand_XoHost_": {
|
|
386
|
+
"dataType": "refAlias",
|
|
387
|
+
"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": {} },
|
|
388
|
+
},
|
|
389
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
390
|
+
"XapiStatsResponse__cpus-Record_string.number-Array_--ioThroughput_58__r-Record_string.number-Array_--w-Record_string.number-Array__--iops_58__r-Record_string.number-Array_--w-Record_string.number-Array__--iowait-Record_string.number-Array_--latency_58__r-Record_string.number-Array_--w-Record_string.number-Array__--load-number-Array--memory-number-Array--memoryFree-number-Array--pifs_58__rx-Record_string.number-Array_--tx-Record_string.number-Array____": {
|
|
391
|
+
"dataType": "refAlias",
|
|
392
|
+
"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 } }, "required": true }, "memoryFree": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "memory": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "load": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "latency": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "Record_string.number-Array_", "required": true }, "r": { "ref": "Record_string.number-Array_", "required": true } }, "required": true }, "iowait": { "ref": "Record_string.number-Array_", "required": true }, "iops": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "Record_string.number-Array_", "required": true }, "r": { "ref": "Record_string.number-Array_", "required": true } }, "required": true }, "ioThroughput": { "dataType": "nestedObjectLiteral", "nestedProperties": { "w": { "ref": "Record_string.number-Array_", "required": true }, "r": { "ref": "Record_string.number-Array_", "required": true } }, "required": true }, "cpus": { "ref": "Record_string.number-Array_", "required": true } }, "required": true }, "interval": { "dataType": "double", "required": true }, "endTimestamp": { "dataType": "double", "required": true } }, "validators": {} },
|
|
393
|
+
},
|
|
394
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
395
|
+
"XapiHostStats": {
|
|
396
|
+
"dataType": "refAlias",
|
|
397
|
+
"type": { "ref": "XapiStatsResponse__cpus-Record_string.number-Array_--ioThroughput_58__r-Record_string.number-Array_--w-Record_string.number-Array__--iops_58__r-Record_string.number-Array_--w-Record_string.number-Array__--iowait-Record_string.number-Array_--latency_58__r-Record_string.number-Array_--w-Record_string.number-Array__--load-number-Array--memory-number-Array--memoryFree-number-Array--pifs_58__rx-Record_string.number-Array_--tx-Record_string.number-Array____", "validators": {} },
|
|
271
398
|
},
|
|
272
399
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
273
400
|
};
|
|
@@ -278,6 +405,119 @@ export function RegisterRoutes(app) {
|
|
|
278
405
|
// 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
|
|
279
406
|
// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa
|
|
280
407
|
// ###########################################################################################################
|
|
408
|
+
const argsVmController_getVms = {
|
|
409
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
410
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
411
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
412
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
413
|
+
};
|
|
414
|
+
app.get('/rest/v0/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVms)), async function VmController_getVms(request, response, next) {
|
|
415
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
416
|
+
let validatedArgs = [];
|
|
417
|
+
try {
|
|
418
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVms, request, response });
|
|
419
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
420
|
+
const controller = await container.get(VmController);
|
|
421
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
422
|
+
controller.setStatus(undefined);
|
|
423
|
+
}
|
|
424
|
+
await templateService.apiHandler({
|
|
425
|
+
methodName: 'getVms',
|
|
426
|
+
controller,
|
|
427
|
+
response,
|
|
428
|
+
next,
|
|
429
|
+
validatedArgs,
|
|
430
|
+
successStatus: undefined,
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
catch (err) {
|
|
434
|
+
return next(err);
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
438
|
+
const argsVmController_getVm = {
|
|
439
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
440
|
+
};
|
|
441
|
+
app.get('/rest/v0/vms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVm)), async function VmController_getVm(request, response, next) {
|
|
442
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
444
|
+
try {
|
|
445
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVm, request, response });
|
|
446
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
447
|
+
const controller = await container.get(VmController);
|
|
448
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
449
|
+
controller.setStatus(undefined);
|
|
450
|
+
}
|
|
451
|
+
await templateService.apiHandler({
|
|
452
|
+
methodName: 'getVm',
|
|
453
|
+
controller,
|
|
454
|
+
response,
|
|
455
|
+
next,
|
|
456
|
+
validatedArgs,
|
|
457
|
+
successStatus: undefined,
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
catch (err) {
|
|
461
|
+
return next(err);
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
465
|
+
const argsVmController_getVmStats = {
|
|
466
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
467
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
468
|
+
};
|
|
469
|
+
app.get('/rest/v0/vms/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVmStats)), async function VmController_getVmStats(request, response, next) {
|
|
470
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
471
|
+
let validatedArgs = [];
|
|
472
|
+
try {
|
|
473
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVmStats, request, response });
|
|
474
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
475
|
+
const controller = await container.get(VmController);
|
|
476
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
477
|
+
controller.setStatus(undefined);
|
|
478
|
+
}
|
|
479
|
+
await templateService.apiHandler({
|
|
480
|
+
methodName: 'getVmStats',
|
|
481
|
+
controller,
|
|
482
|
+
response,
|
|
483
|
+
next,
|
|
484
|
+
validatedArgs,
|
|
485
|
+
successStatus: undefined,
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
catch (err) {
|
|
489
|
+
return next(err);
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
493
|
+
const argsVmController_startVm = {
|
|
494
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
495
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
496
|
+
};
|
|
497
|
+
app.post('/rest/v0/vms/:id/actions/start', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.startVm)), async function VmController_startVm(request, response, next) {
|
|
498
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
499
|
+
let validatedArgs = [];
|
|
500
|
+
try {
|
|
501
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_startVm, request, response });
|
|
502
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
503
|
+
const controller = await container.get(VmController);
|
|
504
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
505
|
+
controller.setStatus(undefined);
|
|
506
|
+
}
|
|
507
|
+
await templateService.apiHandler({
|
|
508
|
+
methodName: 'startVm',
|
|
509
|
+
controller,
|
|
510
|
+
response,
|
|
511
|
+
next,
|
|
512
|
+
validatedArgs,
|
|
513
|
+
successStatus: 202,
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
catch (err) {
|
|
517
|
+
return next(err);
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
281
521
|
const argsVmTemplateController_getVmTemplates = {
|
|
282
522
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
283
523
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -322,7 +562,64 @@ export function RegisterRoutes(app) {
|
|
|
322
562
|
controller.setStatus(undefined);
|
|
323
563
|
}
|
|
324
564
|
await templateService.apiHandler({
|
|
325
|
-
methodName: 'getVmTemplate',
|
|
565
|
+
methodName: 'getVmTemplate',
|
|
566
|
+
controller,
|
|
567
|
+
response,
|
|
568
|
+
next,
|
|
569
|
+
validatedArgs,
|
|
570
|
+
successStatus: undefined,
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
catch (err) {
|
|
574
|
+
return next(err);
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
// WARNING: This 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
|
+
const argsVmSnapshotController_getVmSnapshots = {
|
|
579
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
580
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
581
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
582
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
583
|
+
};
|
|
584
|
+
app.get('/rest/v0/vm-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshots)), async function VmSnapshotController_getVmSnapshots(request, response, next) {
|
|
585
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
586
|
+
let validatedArgs = [];
|
|
587
|
+
try {
|
|
588
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshots, request, response });
|
|
589
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
590
|
+
const controller = await container.get(VmSnapshotController);
|
|
591
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
592
|
+
controller.setStatus(undefined);
|
|
593
|
+
}
|
|
594
|
+
await templateService.apiHandler({
|
|
595
|
+
methodName: 'getVmSnapshots',
|
|
596
|
+
controller,
|
|
597
|
+
response,
|
|
598
|
+
next,
|
|
599
|
+
validatedArgs,
|
|
600
|
+
successStatus: undefined,
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
catch (err) {
|
|
604
|
+
return next(err);
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
608
|
+
const argsVmSnapshotController_getVmSnapshot = {
|
|
609
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
610
|
+
};
|
|
611
|
+
app.get('/rest/v0/vm-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshot)), async function VmSnapshotController_getVmSnapshot(request, response, next) {
|
|
612
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
613
|
+
let validatedArgs = [];
|
|
614
|
+
try {
|
|
615
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshot, request, response });
|
|
616
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
617
|
+
const controller = await container.get(VmSnapshotController);
|
|
618
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
619
|
+
controller.setStatus(undefined);
|
|
620
|
+
}
|
|
621
|
+
await templateService.apiHandler({
|
|
622
|
+
methodName: 'getVmSnapshot',
|
|
326
623
|
controller,
|
|
327
624
|
response,
|
|
328
625
|
next,
|
|
@@ -335,24 +632,24 @@ export function RegisterRoutes(app) {
|
|
|
335
632
|
}
|
|
336
633
|
});
|
|
337
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
|
|
338
|
-
const
|
|
635
|
+
const argsVmControllerController_getVmControllers = {
|
|
339
636
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
340
637
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
341
638
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
342
639
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
343
640
|
};
|
|
344
|
-
app.get('/rest/v0/vm-
|
|
641
|
+
app.get('/rest/v0/vm-controllers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllers)), async function VmControllerController_getVmControllers(request, response, next) {
|
|
345
642
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
346
643
|
let validatedArgs = [];
|
|
347
644
|
try {
|
|
348
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
645
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllers, request, response });
|
|
349
646
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
350
|
-
const controller = await container.get(
|
|
647
|
+
const controller = await container.get(VmControllerController);
|
|
351
648
|
if (typeof controller['setStatus'] === 'function') {
|
|
352
649
|
controller.setStatus(undefined);
|
|
353
650
|
}
|
|
354
651
|
await templateService.apiHandler({
|
|
355
|
-
methodName: '
|
|
652
|
+
methodName: 'getVmControllers',
|
|
356
653
|
controller,
|
|
357
654
|
response,
|
|
358
655
|
next,
|
|
@@ -365,21 +662,21 @@ export function RegisterRoutes(app) {
|
|
|
365
662
|
}
|
|
366
663
|
});
|
|
367
664
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
368
|
-
const
|
|
665
|
+
const argsVmControllerController_getVmController = {
|
|
369
666
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
370
667
|
};
|
|
371
|
-
app.get('/rest/v0/vm-
|
|
668
|
+
app.get('/rest/v0/vm-controllers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmController)), async function VmControllerController_getVmController(request, response, next) {
|
|
372
669
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
373
670
|
let validatedArgs = [];
|
|
374
671
|
try {
|
|
375
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
672
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmController, request, response });
|
|
376
673
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
377
|
-
const controller = await container.get(
|
|
674
|
+
const controller = await container.get(VmControllerController);
|
|
378
675
|
if (typeof controller['setStatus'] === 'function') {
|
|
379
676
|
controller.setStatus(undefined);
|
|
380
677
|
}
|
|
381
678
|
await templateService.apiHandler({
|
|
382
|
-
methodName: '
|
|
679
|
+
methodName: 'getVmController',
|
|
383
680
|
controller,
|
|
384
681
|
response,
|
|
385
682
|
next,
|
|
@@ -392,24 +689,24 @@ export function RegisterRoutes(app) {
|
|
|
392
689
|
}
|
|
393
690
|
});
|
|
394
691
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
395
|
-
const
|
|
692
|
+
const argsVifController_getVifs = {
|
|
396
693
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
397
694
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
398
695
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
399
696
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
400
697
|
};
|
|
401
|
-
app.get('/rest/v0/
|
|
698
|
+
app.get('/rest/v0/vifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifs)), async function VifController_getVifs(request, response, next) {
|
|
402
699
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
403
700
|
let validatedArgs = [];
|
|
404
701
|
try {
|
|
405
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
702
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifs, request, response });
|
|
406
703
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
407
|
-
const controller = await container.get(
|
|
704
|
+
const controller = await container.get(VifController);
|
|
408
705
|
if (typeof controller['setStatus'] === 'function') {
|
|
409
706
|
controller.setStatus(undefined);
|
|
410
707
|
}
|
|
411
708
|
await templateService.apiHandler({
|
|
412
|
-
methodName: '
|
|
709
|
+
methodName: 'getVifs',
|
|
413
710
|
controller,
|
|
414
711
|
response,
|
|
415
712
|
next,
|
|
@@ -422,21 +719,21 @@ export function RegisterRoutes(app) {
|
|
|
422
719
|
}
|
|
423
720
|
});
|
|
424
721
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
425
|
-
const
|
|
722
|
+
const argsVifController_getVif = {
|
|
426
723
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
427
724
|
};
|
|
428
|
-
app.get('/rest/v0/
|
|
725
|
+
app.get('/rest/v0/vifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVif)), async function VifController_getVif(request, response, next) {
|
|
429
726
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
430
727
|
let validatedArgs = [];
|
|
431
728
|
try {
|
|
432
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
729
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVif, request, response });
|
|
433
730
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
434
|
-
const controller = await container.get(
|
|
731
|
+
const controller = await container.get(VifController);
|
|
435
732
|
if (typeof controller['setStatus'] === 'function') {
|
|
436
733
|
controller.setStatus(undefined);
|
|
437
734
|
}
|
|
438
735
|
await templateService.apiHandler({
|
|
439
|
-
methodName: '
|
|
736
|
+
methodName: 'getVif',
|
|
440
737
|
controller,
|
|
441
738
|
response,
|
|
442
739
|
next,
|
|
@@ -620,6 +917,63 @@ export function RegisterRoutes(app) {
|
|
|
620
917
|
}
|
|
621
918
|
});
|
|
622
919
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
920
|
+
const argsUserController_getUsers = {
|
|
921
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
922
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
923
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
924
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
925
|
+
};
|
|
926
|
+
app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
|
|
927
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
928
|
+
let validatedArgs = [];
|
|
929
|
+
try {
|
|
930
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
|
|
931
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
932
|
+
const controller = await container.get(UserController);
|
|
933
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
934
|
+
controller.setStatus(undefined);
|
|
935
|
+
}
|
|
936
|
+
await templateService.apiHandler({
|
|
937
|
+
methodName: 'getUsers',
|
|
938
|
+
controller,
|
|
939
|
+
response,
|
|
940
|
+
next,
|
|
941
|
+
validatedArgs,
|
|
942
|
+
successStatus: undefined,
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
catch (err) {
|
|
946
|
+
return next(err);
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
950
|
+
const argsUserController_getUser = {
|
|
951
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
952
|
+
};
|
|
953
|
+
app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
|
|
954
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
955
|
+
let validatedArgs = [];
|
|
956
|
+
try {
|
|
957
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
|
|
958
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
959
|
+
const controller = await container.get(UserController);
|
|
960
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
961
|
+
controller.setStatus(undefined);
|
|
962
|
+
}
|
|
963
|
+
await templateService.apiHandler({
|
|
964
|
+
methodName: 'getUser',
|
|
965
|
+
controller,
|
|
966
|
+
response,
|
|
967
|
+
next,
|
|
968
|
+
validatedArgs,
|
|
969
|
+
successStatus: undefined,
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
catch (err) {
|
|
973
|
+
return next(err);
|
|
974
|
+
}
|
|
975
|
+
});
|
|
976
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
623
977
|
const argsSrController_getSrs = {
|
|
624
978
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
625
979
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -734,24 +1088,24 @@ export function RegisterRoutes(app) {
|
|
|
734
1088
|
}
|
|
735
1089
|
});
|
|
736
1090
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
737
|
-
const
|
|
1091
|
+
const argsScheduleController_getSchedules = {
|
|
738
1092
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
739
1093
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
740
1094
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
741
1095
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
742
1096
|
};
|
|
743
|
-
app.get('/rest/v0/
|
|
1097
|
+
app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
|
|
744
1098
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
745
1099
|
let validatedArgs = [];
|
|
746
1100
|
try {
|
|
747
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1101
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
|
|
748
1102
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
749
|
-
const controller = await container.get(
|
|
1103
|
+
const controller = await container.get(ScheduleController);
|
|
750
1104
|
if (typeof controller['setStatus'] === 'function') {
|
|
751
1105
|
controller.setStatus(undefined);
|
|
752
1106
|
}
|
|
753
1107
|
await templateService.apiHandler({
|
|
754
|
-
methodName: '
|
|
1108
|
+
methodName: 'getSchedules',
|
|
755
1109
|
controller,
|
|
756
1110
|
response,
|
|
757
1111
|
next,
|
|
@@ -764,21 +1118,21 @@ export function RegisterRoutes(app) {
|
|
|
764
1118
|
}
|
|
765
1119
|
});
|
|
766
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
|
|
767
|
-
const
|
|
1121
|
+
const argsScheduleController_getSchedule = {
|
|
768
1122
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
769
1123
|
};
|
|
770
|
-
app.get('/rest/v0/
|
|
1124
|
+
app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
|
|
771
1125
|
// WARNING: This 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
1126
|
let validatedArgs = [];
|
|
773
1127
|
try {
|
|
774
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1128
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
|
|
775
1129
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
776
|
-
const controller = await container.get(
|
|
1130
|
+
const controller = await container.get(ScheduleController);
|
|
777
1131
|
if (typeof controller['setStatus'] === 'function') {
|
|
778
1132
|
controller.setStatus(undefined);
|
|
779
1133
|
}
|
|
780
1134
|
await templateService.apiHandler({
|
|
781
|
-
methodName: '
|
|
1135
|
+
methodName: 'getSchedule',
|
|
782
1136
|
controller,
|
|
783
1137
|
response,
|
|
784
1138
|
next,
|
|
@@ -791,22 +1145,52 @@ export function RegisterRoutes(app) {
|
|
|
791
1145
|
}
|
|
792
1146
|
});
|
|
793
1147
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
794
|
-
const
|
|
1148
|
+
const argsScheduleController_runSchedule = {
|
|
795
1149
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
796
|
-
|
|
1150
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
797
1151
|
};
|
|
798
|
-
app.
|
|
1152
|
+
app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
|
|
799
1153
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
800
1154
|
let validatedArgs = [];
|
|
801
1155
|
try {
|
|
802
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1156
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
|
|
803
1157
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
804
|
-
const controller = await container.get(
|
|
1158
|
+
const controller = await container.get(ScheduleController);
|
|
805
1159
|
if (typeof controller['setStatus'] === 'function') {
|
|
806
1160
|
controller.setStatus(undefined);
|
|
807
1161
|
}
|
|
808
1162
|
await templateService.apiHandler({
|
|
809
|
-
methodName: '
|
|
1163
|
+
methodName: 'runSchedule',
|
|
1164
|
+
controller,
|
|
1165
|
+
response,
|
|
1166
|
+
next,
|
|
1167
|
+
validatedArgs,
|
|
1168
|
+
successStatus: 202,
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
catch (err) {
|
|
1172
|
+
return next(err);
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1176
|
+
const argsPoolController_getPools = {
|
|
1177
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1178
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1179
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1180
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1181
|
+
};
|
|
1182
|
+
app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPools)), async function PoolController_getPools(request, response, next) {
|
|
1183
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1184
|
+
let validatedArgs = [];
|
|
1185
|
+
try {
|
|
1186
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPools, request, response });
|
|
1187
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1188
|
+
const controller = await container.get(PoolController);
|
|
1189
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1190
|
+
controller.setStatus(undefined);
|
|
1191
|
+
}
|
|
1192
|
+
await templateService.apiHandler({
|
|
1193
|
+
methodName: 'getPools',
|
|
810
1194
|
controller,
|
|
811
1195
|
response,
|
|
812
1196
|
next,
|
|
@@ -819,24 +1203,51 @@ export function RegisterRoutes(app) {
|
|
|
819
1203
|
}
|
|
820
1204
|
});
|
|
821
1205
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
822
|
-
const
|
|
1206
|
+
const argsPoolController_getPool = {
|
|
1207
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1208
|
+
};
|
|
1209
|
+
app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPool)), async function PoolController_getPool(request, response, next) {
|
|
1210
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1211
|
+
let validatedArgs = [];
|
|
1212
|
+
try {
|
|
1213
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPool, request, response });
|
|
1214
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1215
|
+
const controller = await container.get(PoolController);
|
|
1216
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1217
|
+
controller.setStatus(undefined);
|
|
1218
|
+
}
|
|
1219
|
+
await templateService.apiHandler({
|
|
1220
|
+
methodName: 'getPool',
|
|
1221
|
+
controller,
|
|
1222
|
+
response,
|
|
1223
|
+
next,
|
|
1224
|
+
validatedArgs,
|
|
1225
|
+
successStatus: undefined,
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
catch (err) {
|
|
1229
|
+
return next(err);
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1233
|
+
const argsAlarmController_getAlarms = {
|
|
823
1234
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
824
1235
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
825
1236
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
826
1237
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
827
1238
|
};
|
|
828
|
-
app.get('/rest/v0/
|
|
1239
|
+
app.get('/rest/v0/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarms)), async function AlarmController_getAlarms(request, response, next) {
|
|
829
1240
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
830
1241
|
let validatedArgs = [];
|
|
831
1242
|
try {
|
|
832
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1243
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarms, request, response });
|
|
833
1244
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
834
|
-
const controller = await container.get(
|
|
1245
|
+
const controller = await container.get(AlarmController);
|
|
835
1246
|
if (typeof controller['setStatus'] === 'function') {
|
|
836
1247
|
controller.setStatus(undefined);
|
|
837
1248
|
}
|
|
838
1249
|
await templateService.apiHandler({
|
|
839
|
-
methodName: '
|
|
1250
|
+
methodName: 'getAlarms',
|
|
840
1251
|
controller,
|
|
841
1252
|
response,
|
|
842
1253
|
next,
|
|
@@ -849,21 +1260,21 @@ export function RegisterRoutes(app) {
|
|
|
849
1260
|
}
|
|
850
1261
|
});
|
|
851
1262
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
852
|
-
const
|
|
1263
|
+
const argsAlarmController_getAlarm = {
|
|
853
1264
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
854
1265
|
};
|
|
855
|
-
app.get('/rest/v0/
|
|
1266
|
+
app.get('/rest/v0/alarms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(AlarmController)), ...(fetchMiddlewares(AlarmController.prototype.getAlarm)), async function AlarmController_getAlarm(request, response, next) {
|
|
856
1267
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
857
1268
|
let validatedArgs = [];
|
|
858
1269
|
try {
|
|
859
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1270
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsAlarmController_getAlarm, request, response });
|
|
860
1271
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
861
|
-
const controller = await container.get(
|
|
1272
|
+
const controller = await container.get(AlarmController);
|
|
862
1273
|
if (typeof controller['setStatus'] === 'function') {
|
|
863
1274
|
controller.setStatus(undefined);
|
|
864
1275
|
}
|
|
865
1276
|
await templateService.apiHandler({
|
|
866
|
-
methodName: '
|
|
1277
|
+
methodName: 'getAlarm',
|
|
867
1278
|
controller,
|
|
868
1279
|
response,
|
|
869
1280
|
next,
|
|
@@ -876,22 +1287,51 @@ export function RegisterRoutes(app) {
|
|
|
876
1287
|
}
|
|
877
1288
|
});
|
|
878
1289
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
879
|
-
const
|
|
1290
|
+
const argsMessageController_getMessages = {
|
|
1291
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1292
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1293
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1294
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1295
|
+
};
|
|
1296
|
+
app.get('/rest/v0/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(MessageController)), ...(fetchMiddlewares(MessageController.prototype.getMessages)), async function MessageController_getMessages(request, response, next) {
|
|
1297
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1298
|
+
let validatedArgs = [];
|
|
1299
|
+
try {
|
|
1300
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMessageController_getMessages, request, response });
|
|
1301
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1302
|
+
const controller = await container.get(MessageController);
|
|
1303
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1304
|
+
controller.setStatus(undefined);
|
|
1305
|
+
}
|
|
1306
|
+
await templateService.apiHandler({
|
|
1307
|
+
methodName: 'getMessages',
|
|
1308
|
+
controller,
|
|
1309
|
+
response,
|
|
1310
|
+
next,
|
|
1311
|
+
validatedArgs,
|
|
1312
|
+
successStatus: undefined,
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
catch (err) {
|
|
1316
|
+
return next(err);
|
|
1317
|
+
}
|
|
1318
|
+
});
|
|
1319
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1320
|
+
const argsMessageController_getMessage = {
|
|
880
1321
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
881
|
-
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
882
1322
|
};
|
|
883
|
-
app.get('/rest/v0/
|
|
1323
|
+
app.get('/rest/v0/messages/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(MessageController)), ...(fetchMiddlewares(MessageController.prototype.getMessage)), async function MessageController_getMessage(request, response, next) {
|
|
884
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
|
|
885
1325
|
let validatedArgs = [];
|
|
886
1326
|
try {
|
|
887
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1327
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMessageController_getMessage, request, response });
|
|
888
1328
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
889
|
-
const controller = await container.get(
|
|
1329
|
+
const controller = await container.get(MessageController);
|
|
890
1330
|
if (typeof controller['setStatus'] === 'function') {
|
|
891
1331
|
controller.setStatus(undefined);
|
|
892
1332
|
}
|
|
893
1333
|
await templateService.apiHandler({
|
|
894
|
-
methodName: '
|
|
1334
|
+
methodName: 'getMessage',
|
|
895
1335
|
controller,
|
|
896
1336
|
response,
|
|
897
1337
|
next,
|
|
@@ -904,27 +1344,84 @@ export function RegisterRoutes(app) {
|
|
|
904
1344
|
}
|
|
905
1345
|
});
|
|
906
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
|
|
907
|
-
const
|
|
1347
|
+
const argsHostController_getHosts = {
|
|
1348
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1349
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1350
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1351
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1352
|
+
};
|
|
1353
|
+
app.get('/rest/v0/hosts', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHosts)), async function HostController_getHosts(request, response, next) {
|
|
1354
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1355
|
+
let validatedArgs = [];
|
|
1356
|
+
try {
|
|
1357
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHosts, request, response });
|
|
1358
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1359
|
+
const controller = await container.get(HostController);
|
|
1360
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1361
|
+
controller.setStatus(undefined);
|
|
1362
|
+
}
|
|
1363
|
+
await templateService.apiHandler({
|
|
1364
|
+
methodName: 'getHosts',
|
|
1365
|
+
controller,
|
|
1366
|
+
response,
|
|
1367
|
+
next,
|
|
1368
|
+
validatedArgs,
|
|
1369
|
+
successStatus: undefined,
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
catch (err) {
|
|
1373
|
+
return next(err);
|
|
1374
|
+
}
|
|
1375
|
+
});
|
|
1376
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1377
|
+
const argsHostController_getHost = {
|
|
908
1378
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
909
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
910
1379
|
};
|
|
911
|
-
app.
|
|
1380
|
+
app.get('/rest/v0/hosts/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHost)), async function HostController_getHost(request, response, next) {
|
|
912
1381
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
913
1382
|
let validatedArgs = [];
|
|
914
1383
|
try {
|
|
915
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
1384
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHost, request, response });
|
|
916
1385
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
917
|
-
const controller = await container.get(
|
|
1386
|
+
const controller = await container.get(HostController);
|
|
918
1387
|
if (typeof controller['setStatus'] === 'function') {
|
|
919
1388
|
controller.setStatus(undefined);
|
|
920
1389
|
}
|
|
921
1390
|
await templateService.apiHandler({
|
|
922
|
-
methodName: '
|
|
1391
|
+
methodName: 'getHost',
|
|
923
1392
|
controller,
|
|
924
1393
|
response,
|
|
925
1394
|
next,
|
|
926
1395
|
validatedArgs,
|
|
927
|
-
successStatus:
|
|
1396
|
+
successStatus: undefined,
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
catch (err) {
|
|
1400
|
+
return next(err);
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1403
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1404
|
+
const argsHostController_getHostStats = {
|
|
1405
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1406
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
1407
|
+
};
|
|
1408
|
+
app.get('/rest/v0/hosts/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostStats)), async function HostController_getHostStats(request, response, next) {
|
|
1409
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1410
|
+
let validatedArgs = [];
|
|
1411
|
+
try {
|
|
1412
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostStats, request, response });
|
|
1413
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1414
|
+
const controller = await container.get(HostController);
|
|
1415
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1416
|
+
controller.setStatus(undefined);
|
|
1417
|
+
}
|
|
1418
|
+
await templateService.apiHandler({
|
|
1419
|
+
methodName: 'getHostStats',
|
|
1420
|
+
controller,
|
|
1421
|
+
response,
|
|
1422
|
+
next,
|
|
1423
|
+
validatedArgs,
|
|
1424
|
+
successStatus: undefined,
|
|
928
1425
|
});
|
|
929
1426
|
}
|
|
930
1427
|
catch (err) {
|