@xen-orchestra/rest-api 0.12.0 → 0.13.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/groups/group.controller.mjs +82 -3
- package/dist/groups/group.type.mjs +1 -0
- package/dist/hosts/host.service.mjs +4 -4
- package/dist/middlewares/generic-error-handler.middleware.mjs +4 -3
- package/dist/open-api/common/response.common.mjs +4 -0
- package/dist/open-api/oa-examples/group.oa-example.mjs +3 -0
- package/dist/open-api/routes/routes.js +334 -16
- package/dist/users/user.controller.mjs +44 -2
- package/dist/users/user.type.mjs +1 -0
- package/dist/vbds/vbd.controller.mjs +34 -2
- package/dist/vifs/vif.controller.mjs +34 -2
- package/dist/vm-controller/vm-controller.controller.mjs +34 -2
- package/dist/vm-snapshots/vm-snapshot.controller.mjs +34 -2
- package/dist/vms/vm.controller.mjs +34 -2
- package/open-api/spec/swagger.json +968 -198
- package/package.json +1 -1
|
@@ -163,39 +163,39 @@ const models = {
|
|
|
163
163
|
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["seconds"] }, { "dataType": "enum", "enums": ["minutes"] }, { "dataType": "enum", "enums": ["hours"] }, { "dataType": "enum", "enums": ["days"] }], "validators": {} },
|
|
164
164
|
},
|
|
165
165
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
166
|
-
"
|
|
166
|
+
"Partial_Unbrand_XoAlarm__": {
|
|
167
167
|
"dataType": "refAlias",
|
|
168
|
-
"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" }] }, "
|
|
168
|
+
"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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "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": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
169
169
|
},
|
|
170
170
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
171
|
-
"
|
|
171
|
+
"WithHref_Partial_Unbrand_XoAlarm___": {
|
|
172
172
|
"dataType": "refAlias",
|
|
173
|
-
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "
|
|
173
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoAlarm__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
174
174
|
},
|
|
175
175
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
176
|
-
"
|
|
176
|
+
"SendObjects_Partial_Unbrand_XoAlarm___": {
|
|
177
177
|
"dataType": "refAlias",
|
|
178
|
-
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "
|
|
178
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoAlarm___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
179
179
|
},
|
|
180
180
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
181
|
-
"
|
|
181
|
+
"Partial_Unbrand_XoVmTemplate__": {
|
|
182
182
|
"dataType": "refAlias",
|
|
183
|
-
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "
|
|
183
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$VBDs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "$container": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "CPUs": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } } }, { "dataType": "undefined" }] }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VIFs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "VTPMs": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "addresses": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "bios_strings": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "blockedOperations": { "dataType": "union", "subSchemas": [{ "ref": "Record_VM_OPERATIONS.string_" }, { "dataType": "undefined" }] }, "boot": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "current_operations": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.VM_OPERATIONS_" }, { "dataType": "undefined" }] }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "isNestedVirtEnabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "hasVendorDevice": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "high_availability": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "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": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "virtualizationMode": { "dataType": "union", "subSchemas": [{ "ref": "DOMAIN_TYPE" }, { "dataType": "undefined" }] }, "xenStoreData": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "isDefaultTemplate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "template_info": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "install_repository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "install_methods": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "SR": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "bootable": { "dataType": "enum", "enums": [true], "required": true } } }, "required": true }, "arch": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
184
184
|
},
|
|
185
185
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
186
|
-
"
|
|
186
|
+
"WithHref_Partial_Unbrand_XoVmTemplate___": {
|
|
187
187
|
"dataType": "refAlias",
|
|
188
|
-
"type": { "dataType": "
|
|
188
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVmTemplate__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
189
189
|
},
|
|
190
190
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
191
|
-
"
|
|
191
|
+
"SendObjects_Partial_Unbrand_XoVmTemplate___": {
|
|
192
192
|
"dataType": "refAlias",
|
|
193
|
-
"type": { "dataType": "
|
|
193
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoVmTemplate___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
194
194
|
},
|
|
195
195
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
196
|
-
"
|
|
196
|
+
"Unbrand_XoVmTemplate_": {
|
|
197
197
|
"dataType": "refAlias",
|
|
198
|
-
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "
|
|
198
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$VBDs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$VGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "$container": { "dataType": "string", "required": true }, "CPUs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "number": { "dataType": "double", "required": true }, "max": { "dataType": "double", "required": true } }, "required": true }, "PV_args": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "VGPUs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VIFs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "VTPMs": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "addresses": { "ref": "Record_string.string_", "required": true }, "affinityHost": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attachedPcis": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] }, "auto_poweron": { "dataType": "boolean", "required": true }, "bios_strings": { "ref": "Record_string.string_", "required": true }, "blockedOperations": { "ref": "Record_VM_OPERATIONS.string_", "required": true }, "boot": { "ref": "Record_string.string_", "required": true }, "coresPerSocket": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuCap": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "cpuMask": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "double" } }, { "dataType": "undefined" }] }, "cpuWeight": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "creation": { "ref": "Record_string.string_", "required": true }, "current_operations": { "ref": "Record_string.VM_OPERATIONS_", "required": true }, "docker": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "process": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "info": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "enabled": { "dataType": "boolean", "required": true }, "containers": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "undefined" }] } } }, { "dataType": "undefined" }] }, "expNestedHvm": { "dataType": "boolean", "required": true }, "isNestedVirtEnabled": { "dataType": "boolean", "required": true }, "hasVendorDevice": { "dataType": "boolean", "required": true }, "high_availability": { "dataType": "string", "required": true }, "installTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "isFirmwareSupported": { "dataType": "boolean", "required": true }, "memory": { "dataType": "nestedObjectLiteral", "nestedProperties": { "usage": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "static": { "dataType": "array", "array": { "dataType": "double" }, "required": true }, "size": { "dataType": "double", "required": true }, "dynamic": { "dataType": "array", "array": { "dataType": "double" }, "required": true } }, "required": true }, "mainIpAddress": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "managementAgentDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "name_description": { "dataType": "string", "required": true }, "name_label": { "dataType": "string", "required": true }, "needsVtpm": { "dataType": "boolean", "required": true }, "nicType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "notes": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "os_version": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "enum", "enums": [null] }], "required": true }, "other": { "ref": "Record_string.string_", "required": true }, "parent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "power_state": { "ref": "VM_POWER_STATE", "required": true }, "pvDriversDetected": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversUpToDate": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "pvDriversVersion": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "resourceSet": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "secureBoot": { "dataType": "boolean", "required": true }, "snapshots": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "startDelay": { "dataType": "double", "required": true }, "startTime": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }, { "dataType": "undefined" }] }, "suspendSr": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "tags": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "vga": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "videoram": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "viridian": { "dataType": "boolean", "required": true }, "virtualizationMode": { "ref": "DOMAIN_TYPE", "required": true }, "xenStoreData": { "ref": "Record_string.string_", "required": true }, "xentools": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": [false] }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "version": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true }, "minor": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true }, "major": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true } } }, { "dataType": "undefined" }] }, "id": { "dataType": "string", "required": true }, "isDefaultTemplate": { "dataType": "boolean", "required": true }, "template_info": { "dataType": "nestedObjectLiteral", "nestedProperties": { "install_repository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "install_methods": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "SR": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "bootable": { "dataType": "enum", "enums": [true], "required": true } } }, "required": true }, "arch": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "required": true }, "type": { "dataType": "enum", "enums": ["VM-template"], "required": true } }, "validators": {} },
|
|
199
199
|
},
|
|
200
200
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
201
201
|
"Partial_Unbrand_XoVmSnapshot__": {
|
|
@@ -358,6 +358,17 @@ const models = {
|
|
|
358
358
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "authProviders": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "email": { "dataType": "string", "required": true }, "groups": { "dataType": "array", "array": { "dataType": "string" }, "required": true }, "id": { "dataType": "string", "required": true }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "permission": { "dataType": "string", "required": true }, "pw_hash": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "preferences": { "ref": "Record_string.string_", "required": true } }, "validators": {} },
|
|
359
359
|
},
|
|
360
360
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
361
|
+
"UpdateUserRequestBody": {
|
|
362
|
+
"dataType": "refObject",
|
|
363
|
+
"properties": {
|
|
364
|
+
"name": { "dataType": "string" },
|
|
365
|
+
"password": { "dataType": "string" },
|
|
366
|
+
"permission": { "dataType": "string" },
|
|
367
|
+
"preferences": { "ref": "Record_string.string_" },
|
|
368
|
+
},
|
|
369
|
+
"additionalProperties": false,
|
|
370
|
+
},
|
|
371
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
361
372
|
"Record_string.STORAGE_OPERATIONS_": {
|
|
362
373
|
"dataType": "refAlias",
|
|
363
374
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
@@ -749,6 +760,14 @@ const models = {
|
|
|
749
760
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "provider": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "providerGroupId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "users": { "dataType": "array", "array": { "dataType": "string" }, "required": true } }, "validators": {} },
|
|
750
761
|
},
|
|
751
762
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
763
|
+
"UpdateGroupRequestBody": {
|
|
764
|
+
"dataType": "refObject",
|
|
765
|
+
"properties": {
|
|
766
|
+
"name": { "dataType": "string" },
|
|
767
|
+
},
|
|
768
|
+
"additionalProperties": false,
|
|
769
|
+
},
|
|
770
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
752
771
|
"Partial_Unbrand_XoBackupRepository__": {
|
|
753
772
|
"dataType": "refAlias",
|
|
754
773
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "benchmarks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "writeRate": { "dataType": "double", "required": true }, "timestamp": { "dataType": "double", "required": true }, "readRate": { "dataType": "double", "required": true } } } }, { "dataType": "undefined" }] }, "enabled": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "error": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.unknown_" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "name": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "options": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "proxy": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "url": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
@@ -771,7 +790,7 @@ const models = {
|
|
|
771
790
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
772
791
|
"Partial_UnbrandedXoAlarm_": {
|
|
773
792
|
"dataType": "refAlias",
|
|
774
|
-
"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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "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": ["
|
|
793
|
+
"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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } } }, { "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": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } } }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
775
794
|
},
|
|
776
795
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
777
796
|
"WithHref_Partial_UnbrandedXoAlarm__": {
|
|
@@ -786,7 +805,7 @@ const models = {
|
|
|
786
805
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
787
806
|
"Unbrand_XoAlarm_": {
|
|
788
807
|
"dataType": "refAlias",
|
|
789
|
-
"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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "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": ["
|
|
808
|
+
"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": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] } }, "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": ["message"] }, { "dataType": "enum", "enums": ["vgpu"] }, { "dataType": "enum", "enums": ["gpuGroup"] }, { "dataType": "enum", "enums": ["network"] }, { "dataType": "enum", "enums": ["PCI"] }, { "dataType": "enum", "enums": ["PGPU"] }, { "dataType": "enum", "enums": ["PIF"] }, { "dataType": "enum", "enums": ["VDI"] }, { "dataType": "enum", "enums": ["VDI-snapshot"] }, { "dataType": "enum", "enums": ["VDI-unmanaged"] }, { "dataType": "enum", "enums": ["vgpuType"] }, { "dataType": "enum", "enums": ["VM-controller"] }, { "dataType": "enum", "enums": ["VM-template"] }, { "dataType": "enum", "enums": ["SM"] }, { "dataType": "enum", "enums": ["unknown"] }], "required": true } }, "required": true } }, "validators": {} },
|
|
790
809
|
},
|
|
791
810
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
792
811
|
"UnbrandedXoAlarm": {
|
|
@@ -1254,6 +1273,38 @@ export function RegisterRoutes(app) {
|
|
|
1254
1273
|
}
|
|
1255
1274
|
});
|
|
1256
1275
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1276
|
+
const argsVmController_getVmAlarms = {
|
|
1277
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1278
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1279
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1280
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1281
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1282
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1283
|
+
};
|
|
1284
|
+
app.get('/rest/v0/vms/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.getVmAlarms)), async function VmController_getVmAlarms(request, response, next) {
|
|
1285
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1286
|
+
let validatedArgs = [];
|
|
1287
|
+
try {
|
|
1288
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_getVmAlarms, request, response });
|
|
1289
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1290
|
+
const controller = await container.get(VmController);
|
|
1291
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1292
|
+
controller.setStatus(undefined);
|
|
1293
|
+
}
|
|
1294
|
+
await templateService.apiHandler({
|
|
1295
|
+
methodName: 'getVmAlarms',
|
|
1296
|
+
controller,
|
|
1297
|
+
response,
|
|
1298
|
+
next,
|
|
1299
|
+
validatedArgs,
|
|
1300
|
+
successStatus: undefined,
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
catch (err) {
|
|
1304
|
+
return next(err);
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1257
1308
|
const argsVmTemplateController_getVmTemplates = {
|
|
1258
1309
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1259
1310
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1402,6 +1453,38 @@ export function RegisterRoutes(app) {
|
|
|
1402
1453
|
}
|
|
1403
1454
|
});
|
|
1404
1455
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1456
|
+
const argsVmSnapshotController_getVmSnapshotAlarms = {
|
|
1457
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1458
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1459
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1460
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1461
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1462
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1463
|
+
};
|
|
1464
|
+
app.get('/rest/v0/vm-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshotAlarms)), async function VmSnapshotController_getVmSnapshotAlarms(request, response, next) {
|
|
1465
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1466
|
+
let validatedArgs = [];
|
|
1467
|
+
try {
|
|
1468
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshotAlarms, request, response });
|
|
1469
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1470
|
+
const controller = await container.get(VmSnapshotController);
|
|
1471
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1472
|
+
controller.setStatus(undefined);
|
|
1473
|
+
}
|
|
1474
|
+
await templateService.apiHandler({
|
|
1475
|
+
methodName: 'getVmSnapshotAlarms',
|
|
1476
|
+
controller,
|
|
1477
|
+
response,
|
|
1478
|
+
next,
|
|
1479
|
+
validatedArgs,
|
|
1480
|
+
successStatus: undefined,
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
catch (err) {
|
|
1484
|
+
return next(err);
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1405
1488
|
const argsVmControllerController_getVmControllers = {
|
|
1406
1489
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1407
1490
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1460,6 +1543,38 @@ export function RegisterRoutes(app) {
|
|
|
1460
1543
|
}
|
|
1461
1544
|
});
|
|
1462
1545
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1546
|
+
const argsVmControllerController_getVmControllerAlarms = {
|
|
1547
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1548
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1549
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1550
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1551
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1552
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1553
|
+
};
|
|
1554
|
+
app.get('/rest/v0/vm-controllers/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerAlarms)), async function VmControllerController_getVmControllerAlarms(request, response, next) {
|
|
1555
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1556
|
+
let validatedArgs = [];
|
|
1557
|
+
try {
|
|
1558
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerAlarms, request, response });
|
|
1559
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1560
|
+
const controller = await container.get(VmControllerController);
|
|
1561
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1562
|
+
controller.setStatus(undefined);
|
|
1563
|
+
}
|
|
1564
|
+
await templateService.apiHandler({
|
|
1565
|
+
methodName: 'getVmControllerAlarms',
|
|
1566
|
+
controller,
|
|
1567
|
+
response,
|
|
1568
|
+
next,
|
|
1569
|
+
validatedArgs,
|
|
1570
|
+
successStatus: undefined,
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
catch (err) {
|
|
1574
|
+
return next(err);
|
|
1575
|
+
}
|
|
1576
|
+
});
|
|
1577
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1463
1578
|
const argsVifController_getVifs = {
|
|
1464
1579
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1465
1580
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1518,6 +1633,38 @@ export function RegisterRoutes(app) {
|
|
|
1518
1633
|
}
|
|
1519
1634
|
});
|
|
1520
1635
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1636
|
+
const argsVifController_getVifAlarms = {
|
|
1637
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1638
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1639
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1640
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1641
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1642
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1643
|
+
};
|
|
1644
|
+
app.get('/rest/v0/vifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifAlarms)), async function VifController_getVifAlarms(request, response, next) {
|
|
1645
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1646
|
+
let validatedArgs = [];
|
|
1647
|
+
try {
|
|
1648
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifAlarms, request, response });
|
|
1649
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1650
|
+
const controller = await container.get(VifController);
|
|
1651
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1652
|
+
controller.setStatus(undefined);
|
|
1653
|
+
}
|
|
1654
|
+
await templateService.apiHandler({
|
|
1655
|
+
methodName: 'getVifAlarms',
|
|
1656
|
+
controller,
|
|
1657
|
+
response,
|
|
1658
|
+
next,
|
|
1659
|
+
validatedArgs,
|
|
1660
|
+
successStatus: undefined,
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
catch (err) {
|
|
1664
|
+
return next(err);
|
|
1665
|
+
}
|
|
1666
|
+
});
|
|
1667
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1521
1668
|
const argsVdiController_getVdis = {
|
|
1522
1669
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1523
1670
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1756,6 +1903,38 @@ export function RegisterRoutes(app) {
|
|
|
1756
1903
|
}
|
|
1757
1904
|
});
|
|
1758
1905
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1906
|
+
const argsVbdController_getVbdAlarms = {
|
|
1907
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1908
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1909
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
1910
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
1911
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
1912
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
1913
|
+
};
|
|
1914
|
+
app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
|
|
1915
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1916
|
+
let validatedArgs = [];
|
|
1917
|
+
try {
|
|
1918
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
|
|
1919
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1920
|
+
const controller = await container.get(VbdController);
|
|
1921
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1922
|
+
controller.setStatus(undefined);
|
|
1923
|
+
}
|
|
1924
|
+
await templateService.apiHandler({
|
|
1925
|
+
methodName: 'getVbdAlarms',
|
|
1926
|
+
controller,
|
|
1927
|
+
response,
|
|
1928
|
+
next,
|
|
1929
|
+
validatedArgs,
|
|
1930
|
+
successStatus: undefined,
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
catch (err) {
|
|
1934
|
+
return next(err);
|
|
1935
|
+
}
|
|
1936
|
+
});
|
|
1937
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1759
1938
|
const argsUserController_getUsers = {
|
|
1760
1939
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1761
1940
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1814,6 +1993,34 @@ export function RegisterRoutes(app) {
|
|
|
1814
1993
|
}
|
|
1815
1994
|
});
|
|
1816
1995
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1996
|
+
const argsUserController_updateUser = {
|
|
1997
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1998
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
|
|
1999
|
+
};
|
|
2000
|
+
app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
|
|
2001
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2002
|
+
let validatedArgs = [];
|
|
2003
|
+
try {
|
|
2004
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
|
|
2005
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2006
|
+
const controller = await container.get(UserController);
|
|
2007
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2008
|
+
controller.setStatus(undefined);
|
|
2009
|
+
}
|
|
2010
|
+
await templateService.apiHandler({
|
|
2011
|
+
methodName: 'updateUser',
|
|
2012
|
+
controller,
|
|
2013
|
+
response,
|
|
2014
|
+
next,
|
|
2015
|
+
validatedArgs,
|
|
2016
|
+
successStatus: 204,
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
catch (err) {
|
|
2020
|
+
return next(err);
|
|
2021
|
+
}
|
|
2022
|
+
});
|
|
2023
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1817
2024
|
const argsUserController_createUser = {
|
|
1818
2025
|
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
|
|
1819
2026
|
};
|
|
@@ -3201,6 +3408,61 @@ export function RegisterRoutes(app) {
|
|
|
3201
3408
|
}
|
|
3202
3409
|
});
|
|
3203
3410
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3411
|
+
const argsGroupController_updateGroup = {
|
|
3412
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3413
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateGroupRequestBody" },
|
|
3414
|
+
};
|
|
3415
|
+
app.patch('/rest/v0/groups/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.updateGroup)), async function GroupController_updateGroup(request, response, next) {
|
|
3416
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3417
|
+
let validatedArgs = [];
|
|
3418
|
+
try {
|
|
3419
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_updateGroup, request, response });
|
|
3420
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3421
|
+
const controller = await container.get(GroupController);
|
|
3422
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3423
|
+
controller.setStatus(undefined);
|
|
3424
|
+
}
|
|
3425
|
+
await templateService.apiHandler({
|
|
3426
|
+
methodName: 'updateGroup',
|
|
3427
|
+
controller,
|
|
3428
|
+
response,
|
|
3429
|
+
next,
|
|
3430
|
+
validatedArgs,
|
|
3431
|
+
successStatus: 204,
|
|
3432
|
+
});
|
|
3433
|
+
}
|
|
3434
|
+
catch (err) {
|
|
3435
|
+
return next(err);
|
|
3436
|
+
}
|
|
3437
|
+
});
|
|
3438
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3439
|
+
const argsGroupController_createGroup = {
|
|
3440
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true } } },
|
|
3441
|
+
};
|
|
3442
|
+
app.post('/rest/v0/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.createGroup)), async function GroupController_createGroup(request, response, next) {
|
|
3443
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3444
|
+
let validatedArgs = [];
|
|
3445
|
+
try {
|
|
3446
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_createGroup, request, response });
|
|
3447
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3448
|
+
const controller = await container.get(GroupController);
|
|
3449
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3450
|
+
controller.setStatus(undefined);
|
|
3451
|
+
}
|
|
3452
|
+
await templateService.apiHandler({
|
|
3453
|
+
methodName: 'createGroup',
|
|
3454
|
+
controller,
|
|
3455
|
+
response,
|
|
3456
|
+
next,
|
|
3457
|
+
validatedArgs,
|
|
3458
|
+
successStatus: 201,
|
|
3459
|
+
});
|
|
3460
|
+
}
|
|
3461
|
+
catch (err) {
|
|
3462
|
+
return next(err);
|
|
3463
|
+
}
|
|
3464
|
+
});
|
|
3465
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3204
3466
|
const argsGroupController_deleteGroup = {
|
|
3205
3467
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3206
3468
|
};
|
|
@@ -3228,6 +3490,62 @@ export function RegisterRoutes(app) {
|
|
|
3228
3490
|
}
|
|
3229
3491
|
});
|
|
3230
3492
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3493
|
+
const argsGroupController_removeUserFromGroup = {
|
|
3494
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3495
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
3496
|
+
};
|
|
3497
|
+
app.delete('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.removeUserFromGroup)), async function GroupController_removeUserFromGroup(request, response, next) {
|
|
3498
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3499
|
+
let validatedArgs = [];
|
|
3500
|
+
try {
|
|
3501
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_removeUserFromGroup, request, response });
|
|
3502
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3503
|
+
const controller = await container.get(GroupController);
|
|
3504
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3505
|
+
controller.setStatus(undefined);
|
|
3506
|
+
}
|
|
3507
|
+
await templateService.apiHandler({
|
|
3508
|
+
methodName: 'removeUserFromGroup',
|
|
3509
|
+
controller,
|
|
3510
|
+
response,
|
|
3511
|
+
next,
|
|
3512
|
+
validatedArgs,
|
|
3513
|
+
successStatus: 204,
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3516
|
+
catch (err) {
|
|
3517
|
+
return next(err);
|
|
3518
|
+
}
|
|
3519
|
+
});
|
|
3520
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3521
|
+
const argsGroupController_addUserToGroup = {
|
|
3522
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3523
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
3524
|
+
};
|
|
3525
|
+
app.put('/rest/v0/groups/:id/users/:userId', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.addUserToGroup)), async function GroupController_addUserToGroup(request, response, next) {
|
|
3526
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3527
|
+
let validatedArgs = [];
|
|
3528
|
+
try {
|
|
3529
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_addUserToGroup, request, response });
|
|
3530
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3531
|
+
const controller = await container.get(GroupController);
|
|
3532
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3533
|
+
controller.setStatus(undefined);
|
|
3534
|
+
}
|
|
3535
|
+
await templateService.apiHandler({
|
|
3536
|
+
methodName: 'addUserToGroup',
|
|
3537
|
+
controller,
|
|
3538
|
+
response,
|
|
3539
|
+
next,
|
|
3540
|
+
validatedArgs,
|
|
3541
|
+
successStatus: 204,
|
|
3542
|
+
});
|
|
3543
|
+
}
|
|
3544
|
+
catch (err) {
|
|
3545
|
+
return next(err);
|
|
3546
|
+
}
|
|
3547
|
+
});
|
|
3548
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3231
3549
|
const argsBackupRepositoryController_getRepositories = {
|
|
3232
3550
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3233
3551
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|