@xen-orchestra/rest-api 0.1.2 → 0.3.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/README.md +2 -0
- package/dist/abstract-classes/base-controller.mjs +37 -0
- package/dist/abstract-classes/xapi-xo-controller.mjs +5 -10
- package/dist/abstract-classes/xo-controller.mjs +40 -0
- package/dist/helpers/object-wrapper.helper.mjs +2 -2
- package/dist/hosts/host.controller.mjs +75 -0
- package/dist/index.mjs +4 -3
- package/dist/middlewares/generic-error-handler.middleware.mjs +5 -1
- package/dist/open-api/common/response.common.mjs +21 -0
- package/dist/open-api/oa-examples/host.oa-example.mjs +777 -0
- package/dist/open-api/oa-examples/server.oa-example.mjs +28 -0
- package/dist/open-api/oa-examples/sr.oa-example.mjs +81 -0
- package/dist/open-api/oa-examples/task.oa-example.mjs +1 -0
- package/dist/open-api/oa-examples/vbd.oa-example.mjs +34 -0
- package/dist/open-api/oa-examples/vdi-snapshot.oa-example.mjs +42 -0
- package/dist/open-api/oa-examples/vdi.oa-example.mjs +84 -0
- package/dist/open-api/oa-examples/vm-controller.oa-example.mjs +71 -0
- package/dist/open-api/oa-examples/vm-snapshot.oa-example.mjs +178 -0
- package/dist/open-api/oa-examples/vm-template.oa-example.mjs +91 -0
- package/dist/open-api/oa-examples/vm.oa-example.mjs +144 -0
- package/dist/open-api/routes/routes.js +833 -23
- package/dist/rest-api/rest-api.mjs +9 -0
- package/dist/servers/server.controller.mjs +60 -0
- package/dist/srs/sr.controller.mjs +59 -0
- package/dist/vbds/vbd.controller.mjs +61 -0
- package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +59 -0
- package/dist/vdis/vdi.controller.mjs +59 -0
- package/dist/vm-controller/vm-controller.controller.mjs +60 -0
- package/dist/vm-snapshots/vm-snapshot.controller.mjs +60 -0
- package/dist/vm-templates/vm-template.controller.mjs +59 -0
- package/dist/vms/vm.controller.mjs +60 -4
- package/open-api/spec/swagger.json +13933 -384
- package/package.json +2 -2
- package/tsoa.json +3 -0
|
@@ -1,5 +1,23 @@
|
|
|
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 { VmTemplateController } from './../../vm-templates/vm-template.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
|
|
5
|
+
import { VmSnapshotController } from './../../vm-snapshots/vm-snapshot.controller.mjs';
|
|
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
|
|
7
|
+
import { VmControllerController } from './../../vm-controller/vm-controller.controller.mjs';
|
|
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
|
|
9
|
+
import { VdiController } from './../../vdis/vdi.controller.mjs';
|
|
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 { VdiSnapshotController } from './../../vdi-snapshots/vdi-snapshot.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
|
|
13
|
+
import { VbdController } from './../../vbds/vbd.controller.mjs';
|
|
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
|
|
15
|
+
import { SrController } from './../../srs/sr.controller.mjs';
|
|
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
|
|
17
|
+
import { ServerController } from './../../servers/server.controller.mjs';
|
|
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 { HostController } from './../../hosts/host.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
|
|
3
21
|
import { VmController } from './../../vms/vm.controller.mjs';
|
|
4
22
|
import { expressAuthentication } from './../../middlewares/authentication.middleware.mjs';
|
|
5
23
|
// @ts-ignore - no great way to install types from subpackage
|
|
@@ -9,22 +27,17 @@ const expressAuthenticationRecasted = expressAuthentication;
|
|
|
9
27
|
const models = {
|
|
10
28
|
"Record_string.string_": {
|
|
11
29
|
"dataType": "refAlias",
|
|
12
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "
|
|
30
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
13
31
|
},
|
|
14
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
|
|
15
33
|
"Record_VM_OPERATIONS.string_": {
|
|
16
34
|
"dataType": "refAlias",
|
|
17
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {
|
|
18
|
-
},
|
|
19
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
20
|
-
"VM_OPERATIONS": {
|
|
21
|
-
"dataType": "refAlias",
|
|
22
|
-
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["assert_operation_valid"] }, { "dataType": "enum", "enums": ["awaiting_memory_live"] }, { "dataType": "enum", "enums": ["call_plugin"] }, { "dataType": "enum", "enums": ["changing_dynamic_range"] }, { "dataType": "enum", "enums": ["changing_memory_limits"] }, { "dataType": "enum", "enums": ["changing_memory_live"] }, { "dataType": "enum", "enums": ["changing_NVRAM"] }, { "dataType": "enum", "enums": ["changing_shadow_memory"] }, { "dataType": "enum", "enums": ["changing_shadow_memory_live"] }, { "dataType": "enum", "enums": ["changing_static_range"] }, { "dataType": "enum", "enums": ["changing_VCPUs"] }, { "dataType": "enum", "enums": ["changing_VCPUs_live"] }, { "dataType": "enum", "enums": ["checkpoint"] }, { "dataType": "enum", "enums": ["clean_reboot"] }, { "dataType": "enum", "enums": ["clean_shutdown"] }, { "dataType": "enum", "enums": ["clone"] }, { "dataType": "enum", "enums": ["copy"] }, { "dataType": "enum", "enums": ["create_template"] }, { "dataType": "enum", "enums": ["create_vtpm"] }, { "dataType": "enum", "enums": ["csvm"] }, { "dataType": "enum", "enums": ["data_source_op"] }, { "dataType": "enum", "enums": ["destroy"] }, { "dataType": "enum", "enums": ["export"] }, { "dataType": "enum", "enums": ["get_boot_record"] }, { "dataType": "enum", "enums": ["hard_reboot"] }, { "dataType": "enum", "enums": ["hard_shutdown"] }, { "dataType": "enum", "enums": ["import"] }, { "dataType": "enum", "enums": ["make_into_template"] }, { "dataType": "enum", "enums": ["metadata_export"] }, { "dataType": "enum", "enums": ["migrate_send"] }, { "dataType": "enum", "enums": ["pause"] }, { "dataType": "enum", "enums": ["pool_migrate"] }, { "dataType": "enum", "enums": ["power_state_reset"] }, { "dataType": "enum", "enums": ["provision"] }, { "dataType": "enum", "enums": ["query_services"] }, { "dataType": "enum", "enums": ["resume"] }, { "dataType": "enum", "enums": ["resume_on"] }, { "dataType": "enum", "enums": ["revert"] }, { "dataType": "enum", "enums": ["reverting"] }, { "dataType": "enum", "enums": ["send_sysrq"] }, { "dataType": "enum", "enums": ["send_trigger"] }, { "dataType": "enum", "enums": ["shutdown"] }, { "dataType": "enum", "enums": ["snapshot"] }, { "dataType": "enum", "enums": ["snapshot_with_quiesce"] }, { "dataType": "enum", "enums": ["start"] }, { "dataType": "enum", "enums": ["start_on"] }, { "dataType": "enum", "enums": ["suspend"] }, { "dataType": "enum", "enums": ["unpause"] }, { "dataType": "enum", "enums": ["update_allowed_operations"] }], "validators": {} },
|
|
35
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
23
36
|
},
|
|
24
37
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
25
38
|
"Record_string.VM_OPERATIONS_": {
|
|
26
39
|
"dataType": "refAlias",
|
|
27
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "
|
|
40
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
28
41
|
},
|
|
29
42
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
30
43
|
"VM_POWER_STATE": {
|
|
@@ -37,19 +50,204 @@ const models = {
|
|
|
37
50
|
"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": {} },
|
|
38
51
|
},
|
|
39
52
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
40
|
-
"
|
|
53
|
+
"Partial_Unbrand_XoVmTemplate__": {
|
|
54
|
+
"dataType": "refAlias",
|
|
55
|
+
"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": {} },
|
|
56
|
+
},
|
|
57
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
58
|
+
"WithHref_Partial_Unbrand_XoVmTemplate___": {
|
|
59
|
+
"dataType": "refAlias",
|
|
60
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVmTemplate__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
61
|
+
},
|
|
62
|
+
// WARNING: This 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
|
+
"Unbrand_XoVmTemplate_": {
|
|
64
|
+
"dataType": "refAlias",
|
|
65
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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
|
+
},
|
|
67
|
+
// WARNING: This 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
|
+
"Partial_Unbrand_XoVmSnapshot__": {
|
|
69
|
+
"dataType": "refAlias",
|
|
70
|
+
"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" }] }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "snapshot_time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "suspendVdi": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
71
|
+
},
|
|
72
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
73
|
+
"WithHref_Partial_Unbrand_XoVmSnapshot___": {
|
|
74
|
+
"dataType": "refAlias",
|
|
75
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVmSnapshot__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
76
|
+
},
|
|
77
|
+
// WARNING: This 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
|
+
"Unbrand_XoVmSnapshot_": {
|
|
79
|
+
"dataType": "refAlias",
|
|
80
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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
|
+
},
|
|
82
|
+
// WARNING: This 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
|
+
"Partial_Unbrand_XoVmController__": {
|
|
84
|
+
"dataType": "refAlias",
|
|
85
|
+
"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-controller"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
86
|
+
},
|
|
87
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
88
|
+
"WithHref_Partial_Unbrand_XoVmController___": {
|
|
89
|
+
"dataType": "refAlias",
|
|
90
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVmController__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
91
|
+
},
|
|
92
|
+
// WARNING: This 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
|
+
"Unbrand_XoVmController_": {
|
|
94
|
+
"dataType": "refAlias",
|
|
95
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "type": { "dataType": "enum", "enums": ["VM-controller"], "required": true } }, "validators": {} },
|
|
96
|
+
},
|
|
97
|
+
// WARNING: This 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
|
+
"VDI_TYPE": {
|
|
99
|
+
"dataType": "refAlias",
|
|
100
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["suspend"] }, { "dataType": "enum", "enums": ["cbt_metadata"] }, { "dataType": "enum", "enums": ["crashdump"] }, { "dataType": "enum", "enums": ["ephemeral"] }, { "dataType": "enum", "enums": ["ha_statefile"] }, { "dataType": "enum", "enums": ["metadata"] }, { "dataType": "enum", "enums": ["pvs_cache"] }, { "dataType": "enum", "enums": ["redo_log"] }, { "dataType": "enum", "enums": ["rrd"] }, { "dataType": "enum", "enums": ["system"] }, { "dataType": "enum", "enums": ["user"] }], "validators": {} },
|
|
101
|
+
},
|
|
102
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
103
|
+
"Record_string.VDI_OPERATIONS_": {
|
|
104
|
+
"dataType": "refAlias",
|
|
105
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
106
|
+
},
|
|
107
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
108
|
+
"Partial_Unbrand_XoVdi__": {
|
|
109
|
+
"dataType": "refAlias",
|
|
110
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
111
|
+
},
|
|
112
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
113
|
+
"WithHref_Partial_Unbrand_XoVdi___": {
|
|
114
|
+
"dataType": "refAlias",
|
|
115
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVdi__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
116
|
+
},
|
|
117
|
+
// WARNING: This 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
|
+
"Unbrand_XoVdi_": {
|
|
119
|
+
"dataType": "refAlias",
|
|
120
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "type": { "dataType": "enum", "enums": ["VDI"], "required": true } }, "validators": {} },
|
|
121
|
+
},
|
|
122
|
+
// WARNING: This 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
|
+
"Partial_Unbrand_XoVdiSnapshot__": {
|
|
124
|
+
"dataType": "refAlias",
|
|
125
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "snapshot_time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
126
|
+
},
|
|
127
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
128
|
+
"WithHref_Partial_Unbrand_XoVdiSnapshot___": {
|
|
129
|
+
"dataType": "refAlias",
|
|
130
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVdiSnapshot__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
131
|
+
},
|
|
132
|
+
// WARNING: This 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
|
+
"Unbrand_XoVdiSnapshot_": {
|
|
134
|
+
"dataType": "refAlias",
|
|
135
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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
|
+
},
|
|
137
|
+
// WARNING: This 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
|
+
"Partial_Unbrand_XoVbd__": {
|
|
41
139
|
"dataType": "refAlias",
|
|
42
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$
|
|
140
|
+
"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" }] }, "attached": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "bootable": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "is_cd_drive": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "position": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "read_only": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VBD"] }, { "dataType": "undefined" }] }, "VDI": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VM": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
43
141
|
},
|
|
44
142
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
45
|
-
"
|
|
143
|
+
"WithHref_Partial_Unbrand_XoVbd___": {
|
|
46
144
|
"dataType": "refAlias",
|
|
47
|
-
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "
|
|
145
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVbd__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
146
|
+
},
|
|
147
|
+
// WARNING: This 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
|
+
"Unbrand_XoVbd_": {
|
|
149
|
+
"dataType": "refAlias",
|
|
150
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "VM": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true } }, "validators": {} },
|
|
151
|
+
},
|
|
152
|
+
// WARNING: This 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
|
+
"Record_string.STORAGE_OPERATIONS_": {
|
|
154
|
+
"dataType": "refAlias",
|
|
155
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
156
|
+
},
|
|
157
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
158
|
+
"Partial_Unbrand_XoSr__": {
|
|
159
|
+
"dataType": "refAlias",
|
|
160
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$PBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VDIs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "enum", "enums": ["unknown"] }, { "dataType": "undefined" }] }, "content_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.STORAGE_OPERATIONS_" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "inMaintenanceMode": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "physical_usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "shared": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "sm_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "SR_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["SR"] }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
161
|
+
},
|
|
162
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
163
|
+
"WithHref_Partial_Unbrand_XoSr___": {
|
|
164
|
+
"dataType": "refAlias",
|
|
165
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoSr__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
166
|
+
},
|
|
167
|
+
// WARNING: This 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
|
+
"Unbrand_XoSr_": {
|
|
169
|
+
"dataType": "refAlias",
|
|
170
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$PBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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
|
+
},
|
|
172
|
+
// WARNING: This 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
|
+
"Record_string.unknown_": {
|
|
174
|
+
"dataType": "refAlias",
|
|
175
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
176
|
+
},
|
|
177
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
178
|
+
"Partial_Unbrand_XoServer__": {
|
|
179
|
+
"dataType": "refAlias",
|
|
180
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "allowUnauthorized": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "host": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "httpProxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "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": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["connected"] }, { "dataType": "enum", "enums": ["disconnected"] }, { "dataType": "enum", "enums": ["connecting"] }, { "dataType": "undefined" }] }, "username": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
181
|
+
},
|
|
182
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
183
|
+
"WithHref_Partial_Unbrand_XoServer___": {
|
|
184
|
+
"dataType": "refAlias",
|
|
185
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoServer__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
186
|
+
},
|
|
187
|
+
// WARNING: This 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
|
+
"Unbrand_XoServer_": {
|
|
189
|
+
"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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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
|
+
},
|
|
192
|
+
// WARNING: This 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
|
+
"Record_string.HOST_ALLOWED_OPERATIONS_": {
|
|
194
|
+
"dataType": "refAlias",
|
|
195
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
196
|
+
},
|
|
197
|
+
// WARNING: This 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
|
+
"HOST_POWER_STATE": {
|
|
199
|
+
"dataType": "refAlias",
|
|
200
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["Halted"] }, { "dataType": "enum", "enums": ["Running"] }, { "dataType": "enum", "enums": ["Unknown"] }], "validators": {} },
|
|
201
|
+
},
|
|
202
|
+
// WARNING: This 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
|
+
"Branded_host_": {
|
|
204
|
+
"dataType": "refAlias",
|
|
205
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["host"], "required": true } } }], "validators": {} },
|
|
206
|
+
},
|
|
207
|
+
// WARNING: This 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
|
+
"Branded_VDI_": {
|
|
209
|
+
"dataType": "refAlias",
|
|
210
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["VDI"], "required": true } } }], "validators": {} },
|
|
211
|
+
},
|
|
212
|
+
// WARNING: This 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
|
+
"Partial_Unbrand_XoHost__": {
|
|
214
|
+
"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" }] }, "$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": {} },
|
|
216
|
+
},
|
|
217
|
+
// WARNING: This 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
|
+
"WithHref_Partial_Unbrand_XoHost___": {
|
|
219
|
+
"dataType": "refAlias",
|
|
220
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoHost__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
221
|
+
},
|
|
222
|
+
// WARNING: This 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
|
+
"Unbrand_XoHost_": {
|
|
224
|
+
"dataType": "refAlias",
|
|
225
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": {} },
|
|
226
|
+
},
|
|
227
|
+
// WARNING: This 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
|
+
"Record_string.number-Array_": {
|
|
229
|
+
"dataType": "refAlias",
|
|
230
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "dataType": "array", "array": { "dataType": "double" } }, "validators": {} },
|
|
231
|
+
},
|
|
232
|
+
// WARNING: This 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
|
+
"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____": {
|
|
234
|
+
"dataType": "refAlias",
|
|
235
|
+
"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": {} },
|
|
236
|
+
},
|
|
237
|
+
// WARNING: This 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
|
+
"XapiHostStats": {
|
|
239
|
+
"dataType": "refAlias",
|
|
240
|
+
"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": {} },
|
|
241
|
+
},
|
|
242
|
+
// WARNING: This 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
|
+
"XapiStatsGranularity": {
|
|
244
|
+
"dataType": "refAlias",
|
|
245
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["seconds"] }, { "dataType": "enum", "enums": ["minutes"] }, { "dataType": "enum", "enums": ["hours"] }, { "dataType": "enum", "enums": ["days"] }], "validators": {} },
|
|
48
246
|
},
|
|
49
247
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
50
248
|
"Partial_Unbrand_XoVm__": {
|
|
51
249
|
"dataType": "refAlias",
|
|
52
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$
|
|
250
|
+
"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": {} },
|
|
53
251
|
},
|
|
54
252
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
55
253
|
"WithHref_Partial_Unbrand_XoVm___": {
|
|
@@ -57,6 +255,21 @@ const models = {
|
|
|
57
255
|
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
58
256
|
},
|
|
59
257
|
// WARNING: This 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
|
+
"Unbrand_XoVm_": {
|
|
259
|
+
"dataType": "refAlias",
|
|
260
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }], "required": true }, "type": { "dataType": "enum", "enums": ["VM"], "required": true } }, "validators": {} },
|
|
261
|
+
},
|
|
262
|
+
// WARNING: This 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
|
+
"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____": {
|
|
264
|
+
"dataType": "refAlias",
|
|
265
|
+
"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": {} },
|
|
266
|
+
},
|
|
267
|
+
// WARNING: This 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
|
+
"XapiVmStats": {
|
|
269
|
+
"dataType": "refAlias",
|
|
270
|
+
"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": {} },
|
|
271
|
+
},
|
|
272
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
60
273
|
};
|
|
61
274
|
const templateService = new ExpressTemplateService(models, { "noImplicitAdditionalProperties": "throw-on-extras", "bodyCoercion": true });
|
|
62
275
|
// WARNING: This 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,24 +278,24 @@ export function RegisterRoutes(app) {
|
|
|
65
278
|
// 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
|
|
66
279
|
// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa
|
|
67
280
|
// ###########################################################################################################
|
|
68
|
-
const
|
|
281
|
+
const argsVmTemplateController_getVmTemplates = {
|
|
69
282
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
70
283
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
71
284
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
72
285
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
73
286
|
};
|
|
74
|
-
app.get('/rest/v0/
|
|
287
|
+
app.get('/rest/v0/vm-templates', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplates)), async function VmTemplateController_getVmTemplates(request, response, next) {
|
|
75
288
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
76
289
|
let validatedArgs = [];
|
|
77
290
|
try {
|
|
78
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
291
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplates, request, response });
|
|
79
292
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
80
|
-
const controller = await container.get(
|
|
293
|
+
const controller = await container.get(VmTemplateController);
|
|
81
294
|
if (typeof controller['setStatus'] === 'function') {
|
|
82
295
|
controller.setStatus(undefined);
|
|
83
296
|
}
|
|
84
297
|
await templateService.apiHandler({
|
|
85
|
-
methodName: '
|
|
298
|
+
methodName: 'getVmTemplates',
|
|
86
299
|
controller,
|
|
87
300
|
response,
|
|
88
301
|
next,
|
|
@@ -95,21 +308,135 @@ export function RegisterRoutes(app) {
|
|
|
95
308
|
}
|
|
96
309
|
});
|
|
97
310
|
// WARNING: This 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
|
-
const
|
|
311
|
+
const argsVmTemplateController_getVmTemplate = {
|
|
99
312
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
100
313
|
};
|
|
101
|
-
app.get('/rest/v0/
|
|
314
|
+
app.get('/rest/v0/vm-templates/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplate)), async function VmTemplateController_getVmTemplate(request, response, next) {
|
|
102
315
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
103
316
|
let validatedArgs = [];
|
|
104
317
|
try {
|
|
105
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
318
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplate, request, response });
|
|
106
319
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
107
|
-
const controller = await container.get(
|
|
320
|
+
const controller = await container.get(VmTemplateController);
|
|
108
321
|
if (typeof controller['setStatus'] === 'function') {
|
|
109
322
|
controller.setStatus(undefined);
|
|
110
323
|
}
|
|
111
324
|
await templateService.apiHandler({
|
|
112
|
-
methodName: '
|
|
325
|
+
methodName: 'getVmTemplate',
|
|
326
|
+
controller,
|
|
327
|
+
response,
|
|
328
|
+
next,
|
|
329
|
+
validatedArgs,
|
|
330
|
+
successStatus: undefined,
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
catch (err) {
|
|
334
|
+
return next(err);
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
// WARNING: This 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 argsVmSnapshotController_getVmSnapshots = {
|
|
339
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
340
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
341
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
342
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
343
|
+
};
|
|
344
|
+
app.get('/rest/v0/vm-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshots)), async function VmSnapshotController_getVmSnapshots(request, response, next) {
|
|
345
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
347
|
+
try {
|
|
348
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshots, request, response });
|
|
349
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
350
|
+
const controller = await container.get(VmSnapshotController);
|
|
351
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
352
|
+
controller.setStatus(undefined);
|
|
353
|
+
}
|
|
354
|
+
await templateService.apiHandler({
|
|
355
|
+
methodName: 'getVmSnapshots',
|
|
356
|
+
controller,
|
|
357
|
+
response,
|
|
358
|
+
next,
|
|
359
|
+
validatedArgs,
|
|
360
|
+
successStatus: undefined,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
catch (err) {
|
|
364
|
+
return next(err);
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
// WARNING: This 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 argsVmSnapshotController_getVmSnapshot = {
|
|
369
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
370
|
+
};
|
|
371
|
+
app.get('/rest/v0/vm-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshot)), async function VmSnapshotController_getVmSnapshot(request, response, next) {
|
|
372
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
374
|
+
try {
|
|
375
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshot, request, response });
|
|
376
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
377
|
+
const controller = await container.get(VmSnapshotController);
|
|
378
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
379
|
+
controller.setStatus(undefined);
|
|
380
|
+
}
|
|
381
|
+
await templateService.apiHandler({
|
|
382
|
+
methodName: 'getVmSnapshot',
|
|
383
|
+
controller,
|
|
384
|
+
response,
|
|
385
|
+
next,
|
|
386
|
+
validatedArgs,
|
|
387
|
+
successStatus: undefined,
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
catch (err) {
|
|
391
|
+
return next(err);
|
|
392
|
+
}
|
|
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
|
+
const argsVmControllerController_getVmControllers = {
|
|
396
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
397
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
398
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
399
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
400
|
+
};
|
|
401
|
+
app.get('/rest/v0/vm-controllers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllers)), async function VmControllerController_getVmControllers(request, response, next) {
|
|
402
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
404
|
+
try {
|
|
405
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllers, request, response });
|
|
406
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
407
|
+
const controller = await container.get(VmControllerController);
|
|
408
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
409
|
+
controller.setStatus(undefined);
|
|
410
|
+
}
|
|
411
|
+
await templateService.apiHandler({
|
|
412
|
+
methodName: 'getVmControllers',
|
|
413
|
+
controller,
|
|
414
|
+
response,
|
|
415
|
+
next,
|
|
416
|
+
validatedArgs,
|
|
417
|
+
successStatus: undefined,
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
catch (err) {
|
|
421
|
+
return next(err);
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
// WARNING: This 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 argsVmControllerController_getVmController = {
|
|
426
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
427
|
+
};
|
|
428
|
+
app.get('/rest/v0/vm-controllers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmController)), async function VmControllerController_getVmController(request, response, next) {
|
|
429
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
431
|
+
try {
|
|
432
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmController, request, response });
|
|
433
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
434
|
+
const controller = await container.get(VmControllerController);
|
|
435
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
436
|
+
controller.setStatus(undefined);
|
|
437
|
+
}
|
|
438
|
+
await templateService.apiHandler({
|
|
439
|
+
methodName: 'getVmController',
|
|
113
440
|
controller,
|
|
114
441
|
response,
|
|
115
442
|
next,
|
|
@@ -122,6 +449,489 @@ export function RegisterRoutes(app) {
|
|
|
122
449
|
}
|
|
123
450
|
});
|
|
124
451
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
452
|
+
const argsVdiController_getVdis = {
|
|
453
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
454
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
455
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
456
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
457
|
+
};
|
|
458
|
+
app.get('/rest/v0/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdis)), async function VdiController_getVdis(request, response, next) {
|
|
459
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
460
|
+
let validatedArgs = [];
|
|
461
|
+
try {
|
|
462
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdis, request, response });
|
|
463
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
464
|
+
const controller = await container.get(VdiController);
|
|
465
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
466
|
+
controller.setStatus(undefined);
|
|
467
|
+
}
|
|
468
|
+
await templateService.apiHandler({
|
|
469
|
+
methodName: 'getVdis',
|
|
470
|
+
controller,
|
|
471
|
+
response,
|
|
472
|
+
next,
|
|
473
|
+
validatedArgs,
|
|
474
|
+
successStatus: undefined,
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
catch (err) {
|
|
478
|
+
return next(err);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
482
|
+
const argsVdiController_getVdi = {
|
|
483
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
484
|
+
};
|
|
485
|
+
app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
|
|
486
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
487
|
+
let validatedArgs = [];
|
|
488
|
+
try {
|
|
489
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
|
|
490
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
491
|
+
const controller = await container.get(VdiController);
|
|
492
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
493
|
+
controller.setStatus(undefined);
|
|
494
|
+
}
|
|
495
|
+
await templateService.apiHandler({
|
|
496
|
+
methodName: 'getVdi',
|
|
497
|
+
controller,
|
|
498
|
+
response,
|
|
499
|
+
next,
|
|
500
|
+
validatedArgs,
|
|
501
|
+
successStatus: undefined,
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
catch (err) {
|
|
505
|
+
return next(err);
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
509
|
+
const argsVdiSnapshotController_getVdiSnapshots = {
|
|
510
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
511
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
512
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
513
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
514
|
+
};
|
|
515
|
+
app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
|
|
516
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
517
|
+
let validatedArgs = [];
|
|
518
|
+
try {
|
|
519
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
|
|
520
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
521
|
+
const controller = await container.get(VdiSnapshotController);
|
|
522
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
523
|
+
controller.setStatus(undefined);
|
|
524
|
+
}
|
|
525
|
+
await templateService.apiHandler({
|
|
526
|
+
methodName: 'getVdiSnapshots',
|
|
527
|
+
controller,
|
|
528
|
+
response,
|
|
529
|
+
next,
|
|
530
|
+
validatedArgs,
|
|
531
|
+
successStatus: undefined,
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
catch (err) {
|
|
535
|
+
return next(err);
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
539
|
+
const argsVdiSnapshotController_getVdiSnapshot = {
|
|
540
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
541
|
+
};
|
|
542
|
+
app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
|
|
543
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
544
|
+
let validatedArgs = [];
|
|
545
|
+
try {
|
|
546
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
|
|
547
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
548
|
+
const controller = await container.get(VdiSnapshotController);
|
|
549
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
550
|
+
controller.setStatus(undefined);
|
|
551
|
+
}
|
|
552
|
+
await templateService.apiHandler({
|
|
553
|
+
methodName: 'getVdiSnapshot',
|
|
554
|
+
controller,
|
|
555
|
+
response,
|
|
556
|
+
next,
|
|
557
|
+
validatedArgs,
|
|
558
|
+
successStatus: undefined,
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
catch (err) {
|
|
562
|
+
return next(err);
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
566
|
+
const argsVbdController_getVbds = {
|
|
567
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
568
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
569
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
570
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
571
|
+
};
|
|
572
|
+
app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
|
|
573
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
574
|
+
let validatedArgs = [];
|
|
575
|
+
try {
|
|
576
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
|
|
577
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
578
|
+
const controller = await container.get(VbdController);
|
|
579
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
580
|
+
controller.setStatus(undefined);
|
|
581
|
+
}
|
|
582
|
+
await templateService.apiHandler({
|
|
583
|
+
methodName: 'getVbds',
|
|
584
|
+
controller,
|
|
585
|
+
response,
|
|
586
|
+
next,
|
|
587
|
+
validatedArgs,
|
|
588
|
+
successStatus: undefined,
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
catch (err) {
|
|
592
|
+
return next(err);
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
596
|
+
const argsVbdController_getVbd = {
|
|
597
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
598
|
+
};
|
|
599
|
+
app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
|
|
600
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
601
|
+
let validatedArgs = [];
|
|
602
|
+
try {
|
|
603
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
|
|
604
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
605
|
+
const controller = await container.get(VbdController);
|
|
606
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
607
|
+
controller.setStatus(undefined);
|
|
608
|
+
}
|
|
609
|
+
await templateService.apiHandler({
|
|
610
|
+
methodName: 'getVbd',
|
|
611
|
+
controller,
|
|
612
|
+
response,
|
|
613
|
+
next,
|
|
614
|
+
validatedArgs,
|
|
615
|
+
successStatus: undefined,
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
catch (err) {
|
|
619
|
+
return next(err);
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
// WARNING: This 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
|
+
const argsSrController_getSrs = {
|
|
624
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
625
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
626
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
627
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
628
|
+
};
|
|
629
|
+
app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
|
|
630
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
631
|
+
let validatedArgs = [];
|
|
632
|
+
try {
|
|
633
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
|
|
634
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
635
|
+
const controller = await container.get(SrController);
|
|
636
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
637
|
+
controller.setStatus(undefined);
|
|
638
|
+
}
|
|
639
|
+
await templateService.apiHandler({
|
|
640
|
+
methodName: 'getSrs',
|
|
641
|
+
controller,
|
|
642
|
+
response,
|
|
643
|
+
next,
|
|
644
|
+
validatedArgs,
|
|
645
|
+
successStatus: undefined,
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
catch (err) {
|
|
649
|
+
return next(err);
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
653
|
+
const argsSrController_getSr = {
|
|
654
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
655
|
+
};
|
|
656
|
+
app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
|
|
657
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
658
|
+
let validatedArgs = [];
|
|
659
|
+
try {
|
|
660
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
|
|
661
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
662
|
+
const controller = await container.get(SrController);
|
|
663
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
664
|
+
controller.setStatus(undefined);
|
|
665
|
+
}
|
|
666
|
+
await templateService.apiHandler({
|
|
667
|
+
methodName: 'getSr',
|
|
668
|
+
controller,
|
|
669
|
+
response,
|
|
670
|
+
next,
|
|
671
|
+
validatedArgs,
|
|
672
|
+
successStatus: undefined,
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
catch (err) {
|
|
676
|
+
return next(err);
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
680
|
+
const argsServerController_getServers = {
|
|
681
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
682
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
683
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
684
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
685
|
+
};
|
|
686
|
+
app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
|
|
687
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
688
|
+
let validatedArgs = [];
|
|
689
|
+
try {
|
|
690
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
|
|
691
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
692
|
+
const controller = await container.get(ServerController);
|
|
693
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
694
|
+
controller.setStatus(undefined);
|
|
695
|
+
}
|
|
696
|
+
await templateService.apiHandler({
|
|
697
|
+
methodName: 'getServers',
|
|
698
|
+
controller,
|
|
699
|
+
response,
|
|
700
|
+
next,
|
|
701
|
+
validatedArgs,
|
|
702
|
+
successStatus: undefined,
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
catch (err) {
|
|
706
|
+
return next(err);
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
710
|
+
const argsServerController_getServer = {
|
|
711
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
712
|
+
};
|
|
713
|
+
app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
|
|
714
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
715
|
+
let validatedArgs = [];
|
|
716
|
+
try {
|
|
717
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
|
|
718
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
719
|
+
const controller = await container.get(ServerController);
|
|
720
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
721
|
+
controller.setStatus(undefined);
|
|
722
|
+
}
|
|
723
|
+
await templateService.apiHandler({
|
|
724
|
+
methodName: 'getServer',
|
|
725
|
+
controller,
|
|
726
|
+
response,
|
|
727
|
+
next,
|
|
728
|
+
validatedArgs,
|
|
729
|
+
successStatus: undefined,
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
catch (err) {
|
|
733
|
+
return next(err);
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
// WARNING: This 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 argsHostController_getHosts = {
|
|
738
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
739
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
740
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
741
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
742
|
+
};
|
|
743
|
+
app.get('/rest/v0/hosts', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHosts)), async function HostController_getHosts(request, response, next) {
|
|
744
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
746
|
+
try {
|
|
747
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHosts, request, response });
|
|
748
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
749
|
+
const controller = await container.get(HostController);
|
|
750
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
751
|
+
controller.setStatus(undefined);
|
|
752
|
+
}
|
|
753
|
+
await templateService.apiHandler({
|
|
754
|
+
methodName: 'getHosts',
|
|
755
|
+
controller,
|
|
756
|
+
response,
|
|
757
|
+
next,
|
|
758
|
+
validatedArgs,
|
|
759
|
+
successStatus: undefined,
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
catch (err) {
|
|
763
|
+
return next(err);
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
767
|
+
const argsHostController_getHost = {
|
|
768
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
769
|
+
};
|
|
770
|
+
app.get('/rest/v0/hosts/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHost)), async function HostController_getHost(request, response, next) {
|
|
771
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
772
|
+
let validatedArgs = [];
|
|
773
|
+
try {
|
|
774
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHost, request, response });
|
|
775
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
776
|
+
const controller = await container.get(HostController);
|
|
777
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
778
|
+
controller.setStatus(undefined);
|
|
779
|
+
}
|
|
780
|
+
await templateService.apiHandler({
|
|
781
|
+
methodName: 'getHost',
|
|
782
|
+
controller,
|
|
783
|
+
response,
|
|
784
|
+
next,
|
|
785
|
+
validatedArgs,
|
|
786
|
+
successStatus: undefined,
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
catch (err) {
|
|
790
|
+
return next(err);
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
// WARNING: This 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 argsHostController_getHostStats = {
|
|
795
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
796
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
797
|
+
};
|
|
798
|
+
app.get('/rest/v0/hosts/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostStats)), async function HostController_getHostStats(request, response, next) {
|
|
799
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
800
|
+
let validatedArgs = [];
|
|
801
|
+
try {
|
|
802
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostStats, request, response });
|
|
803
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
804
|
+
const controller = await container.get(HostController);
|
|
805
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
806
|
+
controller.setStatus(undefined);
|
|
807
|
+
}
|
|
808
|
+
await templateService.apiHandler({
|
|
809
|
+
methodName: 'getHostStats',
|
|
810
|
+
controller,
|
|
811
|
+
response,
|
|
812
|
+
next,
|
|
813
|
+
validatedArgs,
|
|
814
|
+
successStatus: undefined,
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
catch (err) {
|
|
818
|
+
return next(err);
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
// WARNING: This 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 argsVmController_getVms = {
|
|
823
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
824
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
825
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
826
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
827
|
+
};
|
|
828
|
+
app.get('/rest/v0/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVms)), async function VmController_getVms(request, response, next) {
|
|
829
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
831
|
+
try {
|
|
832
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVms, request, response });
|
|
833
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
834
|
+
const controller = await container.get(VmController);
|
|
835
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
836
|
+
controller.setStatus(undefined);
|
|
837
|
+
}
|
|
838
|
+
await templateService.apiHandler({
|
|
839
|
+
methodName: 'getVms',
|
|
840
|
+
controller,
|
|
841
|
+
response,
|
|
842
|
+
next,
|
|
843
|
+
validatedArgs,
|
|
844
|
+
successStatus: undefined,
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
catch (err) {
|
|
848
|
+
return next(err);
|
|
849
|
+
}
|
|
850
|
+
});
|
|
851
|
+
// WARNING: This 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 argsVmController_getVm = {
|
|
853
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
854
|
+
};
|
|
855
|
+
app.get('/rest/v0/vms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVm)), async function VmController_getVm(request, response, next) {
|
|
856
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
858
|
+
try {
|
|
859
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVm, request, response });
|
|
860
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
861
|
+
const controller = await container.get(VmController);
|
|
862
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
863
|
+
controller.setStatus(undefined);
|
|
864
|
+
}
|
|
865
|
+
await templateService.apiHandler({
|
|
866
|
+
methodName: 'getVm',
|
|
867
|
+
controller,
|
|
868
|
+
response,
|
|
869
|
+
next,
|
|
870
|
+
validatedArgs,
|
|
871
|
+
successStatus: undefined,
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
catch (err) {
|
|
875
|
+
return next(err);
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
// WARNING: This 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 argsVmController_getVmStats = {
|
|
880
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
881
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
882
|
+
};
|
|
883
|
+
app.get('/rest/v0/vms/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVmStats)), async function VmController_getVmStats(request, response, next) {
|
|
884
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
886
|
+
try {
|
|
887
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVmStats, request, response });
|
|
888
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
889
|
+
const controller = await container.get(VmController);
|
|
890
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
891
|
+
controller.setStatus(undefined);
|
|
892
|
+
}
|
|
893
|
+
await templateService.apiHandler({
|
|
894
|
+
methodName: 'getVmStats',
|
|
895
|
+
controller,
|
|
896
|
+
response,
|
|
897
|
+
next,
|
|
898
|
+
validatedArgs,
|
|
899
|
+
successStatus: undefined,
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
catch (err) {
|
|
903
|
+
return next(err);
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
// WARNING: This 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 argsVmController_startVm = {
|
|
908
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
909
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
910
|
+
};
|
|
911
|
+
app.post('/rest/v0/vms/:id/actions/start', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.startVm)), async function VmController_startVm(request, response, next) {
|
|
912
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
914
|
+
try {
|
|
915
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_startVm, request, response });
|
|
916
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
917
|
+
const controller = await container.get(VmController);
|
|
918
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
919
|
+
controller.setStatus(undefined);
|
|
920
|
+
}
|
|
921
|
+
await templateService.apiHandler({
|
|
922
|
+
methodName: 'startVm',
|
|
923
|
+
controller,
|
|
924
|
+
response,
|
|
925
|
+
next,
|
|
926
|
+
validatedArgs,
|
|
927
|
+
successStatus: 202,
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
catch (err) {
|
|
931
|
+
return next(err);
|
|
932
|
+
}
|
|
933
|
+
});
|
|
934
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
125
935
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
126
936
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
127
937
|
function authenticateMiddleware(security = []) {
|