@xen-orchestra/rest-api 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract-classes/base-controller.mjs +4 -1
- package/dist/helpers/utils.helper.mjs +1 -0
- package/dist/ioc/ioc.mjs +8 -0
- package/dist/open-api/oa-examples/pool.oa-example.mjs +4 -0
- package/dist/open-api/oa-examples/sm.oa-example.mjs +58 -0
- package/dist/open-api/routes/routes.js +272 -8
- package/dist/pools/pool.controller.mjs +79 -3
- package/dist/rest-api/rest-api.mjs +3 -0
- package/dist/sms/sm.controller.mjs +60 -0
- package/dist/vms/vm.controller.mjs +126 -3
- package/dist/vms/vm.service.mjs +47 -0
- package/dist/xoa/xoa.controller.mjs +21 -5
- package/dist/xoa/xoa.service.mjs +103 -22
- package/open-api/spec/swagger.json +1273 -171
- package/package.json +4 -2
- package/tsoa.json +20 -0
|
@@ -22,6 +22,8 @@ import { UserController } from './../../users/user.controller.mjs';
|
|
|
22
22
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
23
23
|
import { SrController } from './../../srs/sr.controller.mjs';
|
|
24
24
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
25
|
+
import { SmController } from './../../sms/sm.controller.mjs';
|
|
26
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
25
27
|
import { ServerController } from './../../servers/server.controller.mjs';
|
|
26
28
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
27
29
|
import { ScheduleController } from './../../schedules/schedule.controller.mjs';
|
|
@@ -66,7 +68,7 @@ const models = {
|
|
|
66
68
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
67
69
|
"XoaDashboard": {
|
|
68
70
|
"dataType": "refAlias",
|
|
69
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "poolsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "unknown": { "dataType": "double", "required": true }, "unreachable": { "dataType": "double", "required": true }, "connected": { "dataType": "double", "required": true } }, "required": true }, "resourcesOverview": { "dataType": "nestedObjectLiteral", "nestedProperties": { "srSize": { "dataType": "double", "required": true }, "memorySize": { "dataType": "double", "required": true }, "nCpus": { "dataType": "double", "required": true } }, "required": true }, "backups": { "ref": "DashboardBackupsInfo" }, "storageRepositories": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "used": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "replicated": { "dataType": "double", "required": true }, "other": { "dataType": "double", "required": true }, "available": { "dataType": "double", "required": true } }, "required": true } }, "required": true }, "backupRepositories": { "ref": "DashboardBackupRepositoriesSizeInfo" }, "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "nHostsFailed": { "dataType": "double", "required": true }, "nPoolsWithMissingPatches": { "dataType": "double", "required": true }, "nHostsWithMissingPatches": { "dataType": "double", "required": true }, "hasAuthorization": { "dataType": "enum", "enums": [true], "required": true } } }], "required": true }, "nHostsEol": { "dataType": "double" }, "nHosts": { "dataType": "double", "required": true }, "nPools": { "dataType": "double", "required": true } }, "validators": {} },
|
|
71
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "poolsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "unknown": { "dataType": "double", "required": true }, "unreachable": { "dataType": "double", "required": true }, "connected": { "dataType": "double", "required": true } }, "required": true }, "resourcesOverview": { "dataType": "nestedObjectLiteral", "nestedProperties": { "srSize": { "dataType": "double", "required": true }, "memorySize": { "dataType": "double", "required": true }, "nCpus": { "dataType": "double", "required": true } }, "required": true }, "backups": { "ref": "DashboardBackupsInfo" }, "storageRepositories": { "dataType": "nestedObjectLiteral", "nestedProperties": { "size": { "dataType": "nestedObjectLiteral", "nestedProperties": { "used": { "dataType": "double", "required": true }, "total": { "dataType": "double", "required": true }, "replicated": { "dataType": "double", "required": true }, "other": { "dataType": "double", "required": true }, "available": { "dataType": "double", "required": true } }, "required": true } }, "required": true }, "backupRepositories": { "ref": "DashboardBackupRepositoriesSizeInfo" }, "missingPatches": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "hasAuthorization": { "dataType": "enum", "enums": [false], "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "nHostsFailed": { "dataType": "double", "required": true }, "nPoolsWithMissingPatches": { "dataType": "double", "required": true }, "nHostsWithMissingPatches": { "dataType": "double", "required": true }, "hasAuthorization": { "dataType": "enum", "enums": [true], "required": true } } }], "required": true }, "vmsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "unknown": { "dataType": "double", "required": true }, "inactive": { "dataType": "double", "required": true }, "active": { "dataType": "double", "required": true } }, "required": true }, "hostsStatus": { "dataType": "nestedObjectLiteral", "nestedProperties": { "total": { "dataType": "double", "required": true }, "unknown": { "dataType": "double", "required": true }, "halted": { "dataType": "double", "required": true }, "running": { "dataType": "double", "required": true } }, "required": true }, "nHostsEol": { "dataType": "double" }, "nHosts": { "dataType": "double", "required": true }, "nPools": { "dataType": "double", "required": true } }, "validators": {} },
|
|
70
72
|
},
|
|
71
73
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
72
74
|
"Record_string.string_": {
|
|
@@ -241,7 +243,7 @@ const models = {
|
|
|
241
243
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
242
244
|
"Partial_Unbrand_XoVdi__": {
|
|
243
245
|
"dataType": "refAlias",
|
|
244
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
246
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
245
247
|
},
|
|
246
248
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
247
249
|
"WithHref_Partial_Unbrand_XoVdi___": {
|
|
@@ -256,12 +258,12 @@ const models = {
|
|
|
256
258
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
257
259
|
"Unbrand_XoVdi_": {
|
|
258
260
|
"dataType": "refAlias",
|
|
259
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["VDI"], "required": true } }, "validators": {} },
|
|
261
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["VDI"], "required": true } }, "validators": {} },
|
|
260
262
|
},
|
|
261
263
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
262
264
|
"Partial_Unbrand_XoVdiSnapshot__": {
|
|
263
265
|
"dataType": "refAlias",
|
|
264
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "snapshot_time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
266
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VDI_type": { "dataType": "union", "subSchemas": [{ "ref": "VDI_TYPE" }, { "dataType": "undefined" }] }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VDI_OPERATIONS_" }, { "dataType": "undefined" }] }, "missing": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "other_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "snapshots": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "snapshot_time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
265
267
|
},
|
|
266
268
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
267
269
|
"WithHref_Partial_Unbrand_XoVdiSnapshot___": {
|
|
@@ -276,7 +278,7 @@ const models = {
|
|
|
276
278
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
277
279
|
"Unbrand_XoVdiSnapshot_": {
|
|
278
280
|
"dataType": "refAlias",
|
|
279
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "snapshot_time": { "dataType": "double", "required": true }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "enum", "enums": ["VDI-snapshot"], "required": true } }, "validators": {} },
|
|
281
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$SR": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VDI_type": { "ref": "VDI_TYPE", "required": true }, "cbt_enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "current_operations": { "ref": "Record_string.VDI_OPERATIONS_", "required": true }, "missing": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "image_format": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "usage": { "dataType": "double", "required": true }, "id": { "dataType": "string", "required": true }, "snapshot_time": { "dataType": "double", "required": true }, "$snapshot_of": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "enum", "enums": ["VDI-snapshot"], "required": true } }, "validators": {} },
|
|
280
282
|
},
|
|
281
283
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
282
284
|
"Partial_Unbrand_XoVbd__": {
|
|
@@ -344,6 +346,31 @@ const models = {
|
|
|
344
346
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$PBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$container": { "dataType": "string", "required": true }, "VDIs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "allocationStrategy": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true }, "content_type": { "dataType": "string", "required": true }, "current_operations": { "ref": "Record_string.STORAGE_OPERATIONS_", "required": true }, "id": { "dataType": "string", "required": true }, "inMaintenanceMode": { "dataType": "boolean", "required": true }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "other_config": { "ref": "Record_string.string_", "required": true }, "physical_usage": { "dataType": "double", "required": true }, "shared": { "dataType": "boolean", "required": true }, "size": { "dataType": "double", "required": true }, "sm_config": { "ref": "Record_string.string_", "required": true }, "SR_type": { "dataType": "string", "required": true }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["SR"], "required": true }, "usage": { "dataType": "double", "required": true } }, "validators": {} },
|
|
345
347
|
},
|
|
346
348
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
349
|
+
"Record_string.number_": {
|
|
350
|
+
"dataType": "refAlias",
|
|
351
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
352
|
+
},
|
|
353
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
354
|
+
"Partial_Unbrand_XoSm__": {
|
|
355
|
+
"dataType": "refAlias",
|
|
356
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "SM_type": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vendor": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "configuration": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "features": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.number_" }, { "dataType": "undefined" }] }, "driver_filename": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "required_cluster_stack": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "supported_image_formats": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["SM"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
357
|
+
},
|
|
358
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
359
|
+
"WithHref_Partial_Unbrand_XoSm___": {
|
|
360
|
+
"dataType": "refAlias",
|
|
361
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoSm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
362
|
+
},
|
|
363
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
364
|
+
"SendObjects_Partial_Unbrand_XoSm___": {
|
|
365
|
+
"dataType": "refAlias",
|
|
366
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoSm___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
367
|
+
},
|
|
368
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
369
|
+
"Unbrand_XoSm_": {
|
|
370
|
+
"dataType": "refAlias",
|
|
371
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "SM_type": { "dataType": "string", "required": true }, "vendor": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "name_description": { "dataType": "string", "required": true }, "configuration": { "ref": "Record_string.string_", "required": true }, "features": { "ref": "Record_string.number_", "required": true }, "driver_filename": { "dataType": "string", "required": true }, "required_cluster_stack": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "supported_image_formats": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "type": { "dataType": "enum", "enums": ["SM"], "required": true } }, "validators": {} },
|
|
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
|
|
347
374
|
"Record_string.unknown_": {
|
|
348
375
|
"dataType": "refAlias",
|
|
349
376
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
@@ -440,6 +467,11 @@ const models = {
|
|
|
440
467
|
"additionalProperties": false,
|
|
441
468
|
},
|
|
442
469
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
470
|
+
"Unbrand_CreateVmBody_": {
|
|
471
|
+
"dataType": "refAlias",
|
|
472
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string", "required": true }, "clone": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "vifs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "network": { "dataType": "string", "required": true }, "mtu": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "mac": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "ipv6_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "ipv4_allowed": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "device": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "vgpuType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "gpuGroup": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "copyHostBiosStrings": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template": { "dataType": "string", "required": true }, "affinity": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "vdis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "double", "required": true }, "name_label": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "sr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "name_label": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "userdevice": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "userdervice": { "dataType": "string", "required": true }, "destroy": { "dataType": "enum", "enums": [true], "required": true } } }] } }, { "dataType": "undefined" }] }, "install": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "repository": { "dataType": "string", "required": true }, "method": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["cdrom"] }], "required": true } } }, { "dataType": "undefined" }] }, "cloud_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "network_config": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "destroy_cloud_config_vdi": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
473
|
+
},
|
|
474
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
443
475
|
"Branded_PIF_": {
|
|
444
476
|
"dataType": "refAlias",
|
|
445
477
|
"type": { "dataType": "intersection", "subSchemas": [{ "dataType": "string" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "undefined": { "dataType": "enum", "enums": ["PIF"], "required": true } } }], "validators": {} },
|
|
@@ -557,7 +589,7 @@ const models = {
|
|
|
557
589
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
558
590
|
"Partial_UnbrandedXoAlarm_": {
|
|
559
591
|
"dataType": "refAlias",
|
|
560
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "string", "required": true } } }, { "dataType": "undefined" }] }, "object": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["
|
|
592
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["message"] }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "time": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "body": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "string", "required": true } } }, { "dataType": "undefined" }] }, "object": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
561
593
|
},
|
|
562
594
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
563
595
|
"WithHref_Partial_UnbrandedXoAlarm__": {
|
|
@@ -572,7 +604,7 @@ const models = {
|
|
|
572
604
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
573
605
|
"Unbrand_XoAlarm_": {
|
|
574
606
|
"dataType": "refAlias",
|
|
575
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["message"], "required": true }, "name": { "dataType": "string", "required": true }, "time": { "dataType": "double", "required": true }, "body": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "string", "required": true } }, "required": true }, "object": { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["
|
|
607
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["message"], "required": true }, "name": { "dataType": "string", "required": true }, "time": { "dataType": "double", "required": true }, "body": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "value": { "dataType": "string", "required": true } }, "required": true }, "object": { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "string", "required": true }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["pool"] }, { "dataType": "enum", "enums": ["VBD"] }, { "dataType": "enum", "enums": ["host"] }, { "dataType": "enum", "enums": ["VIF"] }, { "dataType": "enum", "enums": ["VTPM"] }, { "dataType": "enum", "enums": ["VM"] }, { "dataType": "enum", "enums": ["VM-snapshot"] }, { "dataType": "enum", "enums": ["SR"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["unknown"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }], "required": true } }, "required": true } }, "validators": {} },
|
|
576
608
|
},
|
|
577
609
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
578
610
|
"UnbrandedXoAlarm": {
|
|
@@ -683,7 +715,10 @@ export function RegisterRoutes(app) {
|
|
|
683
715
|
// NOTE: If you do not see routes for all of your controllers in this file, then you might not have informed tsoa of where to look
|
|
684
716
|
// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa
|
|
685
717
|
// ###########################################################################################################
|
|
686
|
-
const argsXoaController_getDashboard = {
|
|
718
|
+
const argsXoaController_getDashboard = {
|
|
719
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
720
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
721
|
+
};
|
|
687
722
|
app.get('/rest/v0/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(XoaController)), ...(fetchMiddlewares(XoaController.prototype.getDashboard)), async function XoaController_getDashboard(request, response, next) {
|
|
688
723
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
689
724
|
let validatedArgs = [];
|
|
@@ -852,6 +887,7 @@ export function RegisterRoutes(app) {
|
|
|
852
887
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
853
888
|
const argsVmController_startVm = {
|
|
854
889
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
890
|
+
body: { "in": "body", "name": "body", "dataType": "nestedObjectLiteral", "nestedProperties": { "hostId": { "dataType": "string" } } },
|
|
855
891
|
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
856
892
|
};
|
|
857
893
|
app.post('/rest/v0/vms/:id/actions/start', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.startVm)), async function VmController_startVm(request, response, next) {
|
|
@@ -990,6 +1026,118 @@ export function RegisterRoutes(app) {
|
|
|
990
1026
|
}
|
|
991
1027
|
});
|
|
992
1028
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1029
|
+
const argsVmController_pauseVm = {
|
|
1030
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1031
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
1032
|
+
};
|
|
1033
|
+
app.post('/rest/v0/vms/:id/actions/pause', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.pauseVm)), async function VmController_pauseVm(request, response, next) {
|
|
1034
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1035
|
+
let validatedArgs = [];
|
|
1036
|
+
try {
|
|
1037
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_pauseVm, request, response });
|
|
1038
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1039
|
+
const controller = await container.get(VmController);
|
|
1040
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1041
|
+
controller.setStatus(undefined);
|
|
1042
|
+
}
|
|
1043
|
+
await templateService.apiHandler({
|
|
1044
|
+
methodName: 'pauseVm',
|
|
1045
|
+
controller,
|
|
1046
|
+
response,
|
|
1047
|
+
next,
|
|
1048
|
+
validatedArgs,
|
|
1049
|
+
successStatus: 202,
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
catch (err) {
|
|
1053
|
+
return next(err);
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1057
|
+
const argsVmController_suspendVm = {
|
|
1058
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1059
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
1060
|
+
};
|
|
1061
|
+
app.post('/rest/v0/vms/:id/actions/suspend', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.suspendVm)), async function VmController_suspendVm(request, response, next) {
|
|
1062
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1063
|
+
let validatedArgs = [];
|
|
1064
|
+
try {
|
|
1065
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_suspendVm, request, response });
|
|
1066
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1067
|
+
const controller = await container.get(VmController);
|
|
1068
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1069
|
+
controller.setStatus(undefined);
|
|
1070
|
+
}
|
|
1071
|
+
await templateService.apiHandler({
|
|
1072
|
+
methodName: 'suspendVm',
|
|
1073
|
+
controller,
|
|
1074
|
+
response,
|
|
1075
|
+
next,
|
|
1076
|
+
validatedArgs,
|
|
1077
|
+
successStatus: 202,
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
catch (err) {
|
|
1081
|
+
return next(err);
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1085
|
+
const argsVmController_resumeVm = {
|
|
1086
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1087
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
1088
|
+
};
|
|
1089
|
+
app.post('/rest/v0/vms/:id/actions/resume', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.resumeVm)), async function VmController_resumeVm(request, response, next) {
|
|
1090
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1091
|
+
let validatedArgs = [];
|
|
1092
|
+
try {
|
|
1093
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_resumeVm, request, response });
|
|
1094
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1095
|
+
const controller = await container.get(VmController);
|
|
1096
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1097
|
+
controller.setStatus(undefined);
|
|
1098
|
+
}
|
|
1099
|
+
await templateService.apiHandler({
|
|
1100
|
+
methodName: 'resumeVm',
|
|
1101
|
+
controller,
|
|
1102
|
+
response,
|
|
1103
|
+
next,
|
|
1104
|
+
validatedArgs,
|
|
1105
|
+
successStatus: 202,
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
catch (err) {
|
|
1109
|
+
return next(err);
|
|
1110
|
+
}
|
|
1111
|
+
});
|
|
1112
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1113
|
+
const argsVmController_unpauseVm = {
|
|
1114
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1115
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
1116
|
+
};
|
|
1117
|
+
app.post('/rest/v0/vms/:id/actions/unpause', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.unpauseVm)), async function VmController_unpauseVm(request, response, next) {
|
|
1118
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1119
|
+
let validatedArgs = [];
|
|
1120
|
+
try {
|
|
1121
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_unpauseVm, request, response });
|
|
1122
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1123
|
+
const controller = await container.get(VmController);
|
|
1124
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1125
|
+
controller.setStatus(undefined);
|
|
1126
|
+
}
|
|
1127
|
+
await templateService.apiHandler({
|
|
1128
|
+
methodName: 'unpauseVm',
|
|
1129
|
+
controller,
|
|
1130
|
+
response,
|
|
1131
|
+
next,
|
|
1132
|
+
validatedArgs,
|
|
1133
|
+
successStatus: 202,
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
catch (err) {
|
|
1137
|
+
return next(err);
|
|
1138
|
+
}
|
|
1139
|
+
});
|
|
1140
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
993
1141
|
const argsVmController_snapshotVm = {
|
|
994
1142
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
995
1143
|
body: { "in": "body", "name": "body", "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string" } } },
|
|
@@ -1541,6 +1689,64 @@ export function RegisterRoutes(app) {
|
|
|
1541
1689
|
}
|
|
1542
1690
|
});
|
|
1543
1691
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1692
|
+
const argsSmController_getSrs = {
|
|
1693
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1694
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1695
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1696
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1697
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1698
|
+
};
|
|
1699
|
+
app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
|
|
1700
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1701
|
+
let validatedArgs = [];
|
|
1702
|
+
try {
|
|
1703
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
|
|
1704
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1705
|
+
const controller = await container.get(SmController);
|
|
1706
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1707
|
+
controller.setStatus(undefined);
|
|
1708
|
+
}
|
|
1709
|
+
await templateService.apiHandler({
|
|
1710
|
+
methodName: 'getSrs',
|
|
1711
|
+
controller,
|
|
1712
|
+
response,
|
|
1713
|
+
next,
|
|
1714
|
+
validatedArgs,
|
|
1715
|
+
successStatus: undefined,
|
|
1716
|
+
});
|
|
1717
|
+
}
|
|
1718
|
+
catch (err) {
|
|
1719
|
+
return next(err);
|
|
1720
|
+
}
|
|
1721
|
+
});
|
|
1722
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1723
|
+
const argsSmController_getSr = {
|
|
1724
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1725
|
+
};
|
|
1726
|
+
app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
|
|
1727
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1728
|
+
let validatedArgs = [];
|
|
1729
|
+
try {
|
|
1730
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
|
|
1731
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1732
|
+
const controller = await container.get(SmController);
|
|
1733
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1734
|
+
controller.setStatus(undefined);
|
|
1735
|
+
}
|
|
1736
|
+
await templateService.apiHandler({
|
|
1737
|
+
methodName: 'getSr',
|
|
1738
|
+
controller,
|
|
1739
|
+
response,
|
|
1740
|
+
next,
|
|
1741
|
+
validatedArgs,
|
|
1742
|
+
successStatus: undefined,
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
catch (err) {
|
|
1746
|
+
return next(err);
|
|
1747
|
+
}
|
|
1748
|
+
});
|
|
1749
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1544
1750
|
const argsServerController_getServers = {
|
|
1545
1751
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1546
1752
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1966,6 +2172,64 @@ export function RegisterRoutes(app) {
|
|
|
1966
2172
|
}
|
|
1967
2173
|
});
|
|
1968
2174
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2175
|
+
const argsPoolController_importVm = {
|
|
2176
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2177
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2178
|
+
sr: { "in": "query", "name": "sr", "dataType": "string" },
|
|
2179
|
+
};
|
|
2180
|
+
app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
|
|
2181
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2182
|
+
let validatedArgs = [];
|
|
2183
|
+
try {
|
|
2184
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
|
|
2185
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2186
|
+
const controller = await container.get(PoolController);
|
|
2187
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2188
|
+
controller.setStatus(undefined);
|
|
2189
|
+
}
|
|
2190
|
+
await templateService.apiHandler({
|
|
2191
|
+
methodName: 'importVm',
|
|
2192
|
+
controller,
|
|
2193
|
+
response,
|
|
2194
|
+
next,
|
|
2195
|
+
validatedArgs,
|
|
2196
|
+
successStatus: 201,
|
|
2197
|
+
});
|
|
2198
|
+
}
|
|
2199
|
+
catch (err) {
|
|
2200
|
+
return next(err);
|
|
2201
|
+
}
|
|
2202
|
+
});
|
|
2203
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2204
|
+
const argsPoolController_createVm = {
|
|
2205
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2206
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
|
|
2207
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
2208
|
+
};
|
|
2209
|
+
app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
|
|
2210
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2211
|
+
let validatedArgs = [];
|
|
2212
|
+
try {
|
|
2213
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
|
|
2214
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2215
|
+
const controller = await container.get(PoolController);
|
|
2216
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2217
|
+
controller.setStatus(undefined);
|
|
2218
|
+
}
|
|
2219
|
+
await templateService.apiHandler({
|
|
2220
|
+
methodName: 'createVm',
|
|
2221
|
+
controller,
|
|
2222
|
+
response,
|
|
2223
|
+
next,
|
|
2224
|
+
validatedArgs,
|
|
2225
|
+
successStatus: 201,
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2228
|
+
catch (err) {
|
|
2229
|
+
return next(err);
|
|
2230
|
+
}
|
|
2231
|
+
});
|
|
2232
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1969
2233
|
const argsPifController_getPifs = {
|
|
1970
2234
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1971
2235
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|