@xen-orchestra/rest-api 0.1.1 → 0.2.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.oa-example.mjs +245 -0
- package/dist/open-api/routes/routes.js +603 -15
- 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/vms/vm.controller.mjs +60 -4
- package/open-api/spec/swagger.json +11219 -737
- package/package.json +2 -2
- package/tsoa.json +3 -0
|
@@ -1,5 +1,17 @@
|
|
|
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 { VdiController } from './../../vdis/vdi.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 { VdiSnapshotController } from './../../vdi-snapshots/vdi-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 { VbdController } from './../../vbds/vbd.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 { SrController } from './../../srs/sr.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 { ServerController } from './../../servers/server.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 { HostController } from './../../hosts/host.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
|
|
3
15
|
import { VmController } from './../../vms/vm.controller.mjs';
|
|
4
16
|
import { expressAuthentication } from './../../middlewares/authentication.middleware.mjs';
|
|
5
17
|
// @ts-ignore - no great way to install types from subpackage
|
|
@@ -7,29 +19,174 @@ import { iocContainer } from './../../ioc/ioc.mjs';
|
|
|
7
19
|
const expressAuthenticationRecasted = expressAuthentication;
|
|
8
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
|
|
9
21
|
const models = {
|
|
22
|
+
"VDI_TYPE": {
|
|
23
|
+
"dataType": "refAlias",
|
|
24
|
+
"type": { "dataType": "union", "subSchemas": [{ "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": ["suspend"] }, { "dataType": "enum", "enums": ["system"] }, { "dataType": "enum", "enums": ["user"] }], "validators": {} },
|
|
25
|
+
},
|
|
26
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
27
|
+
"Record_string.VDI_OPERATIONS_": {
|
|
28
|
+
"dataType": "refAlias",
|
|
29
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
30
|
+
},
|
|
31
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
10
32
|
"Record_string.string_": {
|
|
11
33
|
"dataType": "refAlias",
|
|
12
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "
|
|
34
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
13
35
|
},
|
|
14
36
|
// WARNING: This 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
|
-
"
|
|
37
|
+
"Partial_Unbrand_XoVdi__": {
|
|
38
|
+
"dataType": "refAlias",
|
|
39
|
+
"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": {} },
|
|
40
|
+
},
|
|
41
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
42
|
+
"WithHref_Partial_Unbrand_XoVdi___": {
|
|
43
|
+
"dataType": "refAlias",
|
|
44
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVdi__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
45
|
+
},
|
|
46
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
47
|
+
"Unbrand_XoVdi_": {
|
|
48
|
+
"dataType": "refAlias",
|
|
49
|
+
"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": {} },
|
|
50
|
+
},
|
|
51
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
52
|
+
"Partial_Unbrand_XoVdiSnapshot__": {
|
|
53
|
+
"dataType": "refAlias",
|
|
54
|
+
"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": {} },
|
|
55
|
+
},
|
|
56
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
57
|
+
"WithHref_Partial_Unbrand_XoVdiSnapshot___": {
|
|
58
|
+
"dataType": "refAlias",
|
|
59
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVdiSnapshot__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
60
|
+
},
|
|
61
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
62
|
+
"Unbrand_XoVdiSnapshot_": {
|
|
63
|
+
"dataType": "refAlias",
|
|
64
|
+
"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": {} },
|
|
65
|
+
},
|
|
66
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
67
|
+
"Partial_Unbrand_XoVbd__": {
|
|
68
|
+
"dataType": "refAlias",
|
|
69
|
+
"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": {} },
|
|
70
|
+
},
|
|
71
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
72
|
+
"WithHref_Partial_Unbrand_XoVbd___": {
|
|
73
|
+
"dataType": "refAlias",
|
|
74
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVbd__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
75
|
+
},
|
|
76
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
77
|
+
"Unbrand_XoVbd_": {
|
|
78
|
+
"dataType": "refAlias",
|
|
79
|
+
"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": {} },
|
|
80
|
+
},
|
|
81
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
82
|
+
"Record_string.STORAGE_OPERATIONS_": {
|
|
83
|
+
"dataType": "refAlias",
|
|
84
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
85
|
+
},
|
|
86
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
87
|
+
"Partial_Unbrand_XoSr__": {
|
|
88
|
+
"dataType": "refAlias",
|
|
89
|
+
"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": {} },
|
|
90
|
+
},
|
|
91
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
92
|
+
"WithHref_Partial_Unbrand_XoSr___": {
|
|
93
|
+
"dataType": "refAlias",
|
|
94
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoSr__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
95
|
+
},
|
|
96
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
97
|
+
"Unbrand_XoSr_": {
|
|
98
|
+
"dataType": "refAlias",
|
|
99
|
+
"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": {} },
|
|
100
|
+
},
|
|
101
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
102
|
+
"Record_string.unknown_": {
|
|
103
|
+
"dataType": "refAlias",
|
|
104
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
105
|
+
},
|
|
106
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
107
|
+
"Partial_Unbrand_XoServer__": {
|
|
108
|
+
"dataType": "refAlias",
|
|
109
|
+
"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": {} },
|
|
110
|
+
},
|
|
111
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
112
|
+
"WithHref_Partial_Unbrand_XoServer___": {
|
|
113
|
+
"dataType": "refAlias",
|
|
114
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoServer__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
115
|
+
},
|
|
116
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
117
|
+
"Unbrand_XoServer_": {
|
|
16
118
|
"dataType": "refAlias",
|
|
17
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "
|
|
119
|
+
"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": {} },
|
|
18
120
|
},
|
|
19
121
|
// WARNING: This 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
|
-
"
|
|
122
|
+
"Record_string.HOST_ALLOWED_OPERATIONS_": {
|
|
21
123
|
"dataType": "refAlias",
|
|
22
|
-
"type": { "dataType": "
|
|
124
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
125
|
+
},
|
|
126
|
+
// WARNING: This 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
|
+
"HOST_POWER_STATE": {
|
|
128
|
+
"dataType": "refAlias",
|
|
129
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["Running"] }, { "dataType": "enum", "enums": ["Halted"] }, { "dataType": "enum", "enums": ["Unknown"] }], "validators": {} },
|
|
130
|
+
},
|
|
131
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
132
|
+
"Branded_host_": {
|
|
133
|
+
"dataType": "refAlias",
|
|
134
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["host"], "required": true } } }], "validators": {} },
|
|
135
|
+
},
|
|
136
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
137
|
+
"Branded_VDI_": {
|
|
138
|
+
"dataType": "refAlias",
|
|
139
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["VDI"], "required": true } } }], "validators": {} },
|
|
140
|
+
},
|
|
141
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
142
|
+
"Partial_Unbrand_XoHost__": {
|
|
143
|
+
"dataType": "refAlias",
|
|
144
|
+
"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": {} },
|
|
145
|
+
},
|
|
146
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
147
|
+
"WithHref_Partial_Unbrand_XoHost___": {
|
|
148
|
+
"dataType": "refAlias",
|
|
149
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoHost__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
150
|
+
},
|
|
151
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
152
|
+
"Unbrand_XoHost_": {
|
|
153
|
+
"dataType": "refAlias",
|
|
154
|
+
"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": {} },
|
|
155
|
+
},
|
|
156
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
157
|
+
"Record_string.number-Array_": {
|
|
158
|
+
"dataType": "refAlias",
|
|
159
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "dataType": "array", "array": { "dataType": "double" } }, "validators": {} },
|
|
160
|
+
},
|
|
161
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
162
|
+
"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____": {
|
|
163
|
+
"dataType": "refAlias",
|
|
164
|
+
"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": {} },
|
|
165
|
+
},
|
|
166
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
167
|
+
"XapiHostStats": {
|
|
168
|
+
"dataType": "refAlias",
|
|
169
|
+
"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": {} },
|
|
170
|
+
},
|
|
171
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
172
|
+
"XapiStatsGranularity": {
|
|
173
|
+
"dataType": "refAlias",
|
|
174
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["seconds"] }, { "dataType": "enum", "enums": ["minutes"] }, { "dataType": "enum", "enums": ["hours"] }, { "dataType": "enum", "enums": ["days"] }], "validators": {} },
|
|
175
|
+
},
|
|
176
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
177
|
+
"Record_VM_OPERATIONS.string_": {
|
|
178
|
+
"dataType": "refAlias",
|
|
179
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
23
180
|
},
|
|
24
181
|
// WARNING: This 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
182
|
"Record_string.VM_OPERATIONS_": {
|
|
26
183
|
"dataType": "refAlias",
|
|
27
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "
|
|
184
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
28
185
|
},
|
|
29
186
|
// WARNING: This 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
187
|
"VM_POWER_STATE": {
|
|
31
188
|
"dataType": "refAlias",
|
|
32
|
-
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["
|
|
189
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["Running"] }, { "dataType": "enum", "enums": ["Halted"] }, { "dataType": "enum", "enums": ["Paused"] }, { "dataType": "enum", "enums": ["Suspended"] }], "validators": {} },
|
|
33
190
|
},
|
|
34
191
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
35
192
|
"DOMAIN_TYPE": {
|
|
@@ -37,24 +194,29 @@ const models = {
|
|
|
37
194
|
"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
195
|
},
|
|
39
196
|
// WARNING: This 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
|
-
"
|
|
197
|
+
"Partial_Unbrand_XoVm__": {
|
|
41
198
|
"dataType": "refAlias",
|
|
42
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$
|
|
199
|
+
"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" }] }, "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": {} },
|
|
43
200
|
},
|
|
44
201
|
// WARNING: This 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
|
-
"
|
|
202
|
+
"WithHref_Partial_Unbrand_XoVm___": {
|
|
46
203
|
"dataType": "refAlias",
|
|
47
|
-
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "
|
|
204
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
48
205
|
},
|
|
49
206
|
// WARNING: This 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
|
-
"
|
|
207
|
+
"Unbrand_XoVm_": {
|
|
51
208
|
"dataType": "refAlias",
|
|
52
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$
|
|
209
|
+
"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 }, "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": {} },
|
|
53
210
|
},
|
|
54
211
|
// WARNING: This 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
|
-
"
|
|
212
|
+
"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____": {
|
|
56
213
|
"dataType": "refAlias",
|
|
57
|
-
"type": { "dataType": "
|
|
214
|
+
"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": {} },
|
|
215
|
+
},
|
|
216
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
217
|
+
"XapiVmStats": {
|
|
218
|
+
"dataType": "refAlias",
|
|
219
|
+
"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": {} },
|
|
58
220
|
},
|
|
59
221
|
// WARNING: This 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
222
|
};
|
|
@@ -65,6 +227,376 @@ export function RegisterRoutes(app) {
|
|
|
65
227
|
// 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
228
|
// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa
|
|
67
229
|
// ###########################################################################################################
|
|
230
|
+
const argsVdiController_getVdis = {
|
|
231
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
232
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
233
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
234
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
235
|
+
};
|
|
236
|
+
app.get('/rest/v0/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdis)), async function VdiController_getVdis(request, response, next) {
|
|
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
|
+
let validatedArgs = [];
|
|
239
|
+
try {
|
|
240
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdis, request, response });
|
|
241
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
242
|
+
const controller = await container.get(VdiController);
|
|
243
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
244
|
+
controller.setStatus(undefined);
|
|
245
|
+
}
|
|
246
|
+
await templateService.apiHandler({
|
|
247
|
+
methodName: 'getVdis',
|
|
248
|
+
controller,
|
|
249
|
+
response,
|
|
250
|
+
next,
|
|
251
|
+
validatedArgs,
|
|
252
|
+
successStatus: undefined,
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
catch (err) {
|
|
256
|
+
return next(err);
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
260
|
+
const argsVdiController_getVdi = {
|
|
261
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
262
|
+
};
|
|
263
|
+
app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
|
|
264
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
265
|
+
let validatedArgs = [];
|
|
266
|
+
try {
|
|
267
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
|
|
268
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
269
|
+
const controller = await container.get(VdiController);
|
|
270
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
271
|
+
controller.setStatus(undefined);
|
|
272
|
+
}
|
|
273
|
+
await templateService.apiHandler({
|
|
274
|
+
methodName: 'getVdi',
|
|
275
|
+
controller,
|
|
276
|
+
response,
|
|
277
|
+
next,
|
|
278
|
+
validatedArgs,
|
|
279
|
+
successStatus: undefined,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
catch (err) {
|
|
283
|
+
return next(err);
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
287
|
+
const argsVdiSnapshotController_getVdiSnapshots = {
|
|
288
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
289
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
290
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
291
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
292
|
+
};
|
|
293
|
+
app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
|
|
294
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
295
|
+
let validatedArgs = [];
|
|
296
|
+
try {
|
|
297
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
|
|
298
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
299
|
+
const controller = await container.get(VdiSnapshotController);
|
|
300
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
301
|
+
controller.setStatus(undefined);
|
|
302
|
+
}
|
|
303
|
+
await templateService.apiHandler({
|
|
304
|
+
methodName: 'getVdiSnapshots',
|
|
305
|
+
controller,
|
|
306
|
+
response,
|
|
307
|
+
next,
|
|
308
|
+
validatedArgs,
|
|
309
|
+
successStatus: undefined,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
catch (err) {
|
|
313
|
+
return next(err);
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
317
|
+
const argsVdiSnapshotController_getVdiSnapshot = {
|
|
318
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
319
|
+
};
|
|
320
|
+
app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
|
|
321
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
322
|
+
let validatedArgs = [];
|
|
323
|
+
try {
|
|
324
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
|
|
325
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
326
|
+
const controller = await container.get(VdiSnapshotController);
|
|
327
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
328
|
+
controller.setStatus(undefined);
|
|
329
|
+
}
|
|
330
|
+
await templateService.apiHandler({
|
|
331
|
+
methodName: 'getVdiSnapshot',
|
|
332
|
+
controller,
|
|
333
|
+
response,
|
|
334
|
+
next,
|
|
335
|
+
validatedArgs,
|
|
336
|
+
successStatus: undefined,
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
catch (err) {
|
|
340
|
+
return next(err);
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
344
|
+
const argsVbdController_getVbds = {
|
|
345
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
346
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
347
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
348
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
349
|
+
};
|
|
350
|
+
app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
|
|
351
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
352
|
+
let validatedArgs = [];
|
|
353
|
+
try {
|
|
354
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
|
|
355
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
356
|
+
const controller = await container.get(VbdController);
|
|
357
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
358
|
+
controller.setStatus(undefined);
|
|
359
|
+
}
|
|
360
|
+
await templateService.apiHandler({
|
|
361
|
+
methodName: 'getVbds',
|
|
362
|
+
controller,
|
|
363
|
+
response,
|
|
364
|
+
next,
|
|
365
|
+
validatedArgs,
|
|
366
|
+
successStatus: undefined,
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
catch (err) {
|
|
370
|
+
return next(err);
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
374
|
+
const argsVbdController_getVbd = {
|
|
375
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
376
|
+
};
|
|
377
|
+
app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
|
|
378
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
379
|
+
let validatedArgs = [];
|
|
380
|
+
try {
|
|
381
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
|
|
382
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
383
|
+
const controller = await container.get(VbdController);
|
|
384
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
385
|
+
controller.setStatus(undefined);
|
|
386
|
+
}
|
|
387
|
+
await templateService.apiHandler({
|
|
388
|
+
methodName: 'getVbd',
|
|
389
|
+
controller,
|
|
390
|
+
response,
|
|
391
|
+
next,
|
|
392
|
+
validatedArgs,
|
|
393
|
+
successStatus: undefined,
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
catch (err) {
|
|
397
|
+
return next(err);
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
401
|
+
const argsSrController_getSrs = {
|
|
402
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
403
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
404
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
405
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
406
|
+
};
|
|
407
|
+
app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
|
|
408
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
409
|
+
let validatedArgs = [];
|
|
410
|
+
try {
|
|
411
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
|
|
412
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
413
|
+
const controller = await container.get(SrController);
|
|
414
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
415
|
+
controller.setStatus(undefined);
|
|
416
|
+
}
|
|
417
|
+
await templateService.apiHandler({
|
|
418
|
+
methodName: 'getSrs',
|
|
419
|
+
controller,
|
|
420
|
+
response,
|
|
421
|
+
next,
|
|
422
|
+
validatedArgs,
|
|
423
|
+
successStatus: undefined,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
catch (err) {
|
|
427
|
+
return next(err);
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
431
|
+
const argsSrController_getSr = {
|
|
432
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
433
|
+
};
|
|
434
|
+
app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
|
|
435
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
436
|
+
let validatedArgs = [];
|
|
437
|
+
try {
|
|
438
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
|
|
439
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
440
|
+
const controller = await container.get(SrController);
|
|
441
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
442
|
+
controller.setStatus(undefined);
|
|
443
|
+
}
|
|
444
|
+
await templateService.apiHandler({
|
|
445
|
+
methodName: 'getSr',
|
|
446
|
+
controller,
|
|
447
|
+
response,
|
|
448
|
+
next,
|
|
449
|
+
validatedArgs,
|
|
450
|
+
successStatus: undefined,
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
catch (err) {
|
|
454
|
+
return next(err);
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
458
|
+
const argsServerController_getServers = {
|
|
459
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
460
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
461
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
462
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
463
|
+
};
|
|
464
|
+
app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
|
|
465
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
466
|
+
let validatedArgs = [];
|
|
467
|
+
try {
|
|
468
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
|
|
469
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
470
|
+
const controller = await container.get(ServerController);
|
|
471
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
472
|
+
controller.setStatus(undefined);
|
|
473
|
+
}
|
|
474
|
+
await templateService.apiHandler({
|
|
475
|
+
methodName: 'getServers',
|
|
476
|
+
controller,
|
|
477
|
+
response,
|
|
478
|
+
next,
|
|
479
|
+
validatedArgs,
|
|
480
|
+
successStatus: undefined,
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
catch (err) {
|
|
484
|
+
return next(err);
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
488
|
+
const argsServerController_getServer = {
|
|
489
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
490
|
+
};
|
|
491
|
+
app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
|
|
492
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
493
|
+
let validatedArgs = [];
|
|
494
|
+
try {
|
|
495
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
|
|
496
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
497
|
+
const controller = await container.get(ServerController);
|
|
498
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
499
|
+
controller.setStatus(undefined);
|
|
500
|
+
}
|
|
501
|
+
await templateService.apiHandler({
|
|
502
|
+
methodName: 'getServer',
|
|
503
|
+
controller,
|
|
504
|
+
response,
|
|
505
|
+
next,
|
|
506
|
+
validatedArgs,
|
|
507
|
+
successStatus: undefined,
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
catch (err) {
|
|
511
|
+
return next(err);
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
515
|
+
const argsHostController_getHosts = {
|
|
516
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
517
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
518
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
519
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
520
|
+
};
|
|
521
|
+
app.get('/rest/v0/hosts', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHosts)), async function HostController_getHosts(request, response, next) {
|
|
522
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
523
|
+
let validatedArgs = [];
|
|
524
|
+
try {
|
|
525
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHosts, request, response });
|
|
526
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
527
|
+
const controller = await container.get(HostController);
|
|
528
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
529
|
+
controller.setStatus(undefined);
|
|
530
|
+
}
|
|
531
|
+
await templateService.apiHandler({
|
|
532
|
+
methodName: 'getHosts',
|
|
533
|
+
controller,
|
|
534
|
+
response,
|
|
535
|
+
next,
|
|
536
|
+
validatedArgs,
|
|
537
|
+
successStatus: undefined,
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
catch (err) {
|
|
541
|
+
return next(err);
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
545
|
+
const argsHostController_getHost = {
|
|
546
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
547
|
+
};
|
|
548
|
+
app.get('/rest/v0/hosts/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHost)), async function HostController_getHost(request, response, next) {
|
|
549
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
550
|
+
let validatedArgs = [];
|
|
551
|
+
try {
|
|
552
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHost, request, response });
|
|
553
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
554
|
+
const controller = await container.get(HostController);
|
|
555
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
556
|
+
controller.setStatus(undefined);
|
|
557
|
+
}
|
|
558
|
+
await templateService.apiHandler({
|
|
559
|
+
methodName: 'getHost',
|
|
560
|
+
controller,
|
|
561
|
+
response,
|
|
562
|
+
next,
|
|
563
|
+
validatedArgs,
|
|
564
|
+
successStatus: undefined,
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
catch (err) {
|
|
568
|
+
return next(err);
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
572
|
+
const argsHostController_getHostStats = {
|
|
573
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
574
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
575
|
+
};
|
|
576
|
+
app.get('/rest/v0/hosts/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostStats)), async function HostController_getHostStats(request, response, next) {
|
|
577
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
578
|
+
let validatedArgs = [];
|
|
579
|
+
try {
|
|
580
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostStats, request, response });
|
|
581
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
582
|
+
const controller = await container.get(HostController);
|
|
583
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
584
|
+
controller.setStatus(undefined);
|
|
585
|
+
}
|
|
586
|
+
await templateService.apiHandler({
|
|
587
|
+
methodName: 'getHostStats',
|
|
588
|
+
controller,
|
|
589
|
+
response,
|
|
590
|
+
next,
|
|
591
|
+
validatedArgs,
|
|
592
|
+
successStatus: undefined,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
catch (err) {
|
|
596
|
+
return next(err);
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
68
600
|
const argsVmController_getVms = {
|
|
69
601
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
70
602
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -122,6 +654,62 @@ export function RegisterRoutes(app) {
|
|
|
122
654
|
}
|
|
123
655
|
});
|
|
124
656
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
657
|
+
const argsVmController_getVmStats = {
|
|
658
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
659
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
660
|
+
};
|
|
661
|
+
app.get('/rest/v0/vms/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVmStats)), async function VmController_getVmStats(request, response, next) {
|
|
662
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
663
|
+
let validatedArgs = [];
|
|
664
|
+
try {
|
|
665
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVmStats, request, response });
|
|
666
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
667
|
+
const controller = await container.get(VmController);
|
|
668
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
669
|
+
controller.setStatus(undefined);
|
|
670
|
+
}
|
|
671
|
+
await templateService.apiHandler({
|
|
672
|
+
methodName: 'getVmStats',
|
|
673
|
+
controller,
|
|
674
|
+
response,
|
|
675
|
+
next,
|
|
676
|
+
validatedArgs,
|
|
677
|
+
successStatus: undefined,
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
catch (err) {
|
|
681
|
+
return next(err);
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
685
|
+
const argsVmController_startVm = {
|
|
686
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
687
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
688
|
+
};
|
|
689
|
+
app.post('/rest/v0/vms/:id/actions/start', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.startVm)), async function VmController_startVm(request, response, next) {
|
|
690
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
691
|
+
let validatedArgs = [];
|
|
692
|
+
try {
|
|
693
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_startVm, request, response });
|
|
694
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
695
|
+
const controller = await container.get(VmController);
|
|
696
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
697
|
+
controller.setStatus(undefined);
|
|
698
|
+
}
|
|
699
|
+
await templateService.apiHandler({
|
|
700
|
+
methodName: 'startVm',
|
|
701
|
+
controller,
|
|
702
|
+
response,
|
|
703
|
+
next,
|
|
704
|
+
validatedArgs,
|
|
705
|
+
successStatus: 202,
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
catch (err) {
|
|
709
|
+
return next(err);
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
// WARNING: This 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
713
|
// WARNING: This 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
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
|
|
127
715
|
function authenticateMiddleware(security = []) {
|