@xen-orchestra/rest-api 0.18.0 → 0.19.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 +20 -0
- package/dist/abstract-classes/xo-controller.mjs +1 -1
- package/dist/alarms/alarm.controller.mjs +2 -1
- package/dist/backup-archives/backup-archive.controller.mjs +96 -0
- package/dist/backup-jobs/backup-job.controller.mjs +3 -1
- package/dist/backup-logs/backup-log.controller.mjs +2 -1
- package/dist/backup-repositories/backup-repositories.controller.mjs +2 -1
- package/dist/groups/group.controller.mjs +26 -1
- package/dist/hosts/host.controller.mjs +57 -2
- package/dist/index.mjs +3 -2
- package/dist/ioc/ioc.mjs +0 -5
- package/dist/messages/message.controller.mjs +2 -1
- package/dist/middlewares/authentication.middleware.mjs +44 -20
- package/dist/networks/network.controller.mjs +81 -2
- package/dist/open-api/oa-examples/backup-archive.oa-example.mjs +60 -0
- package/dist/open-api/oa-examples/pbd.oa-example.mjs +41 -0
- package/dist/open-api/oa-examples/user.oa-example.mjs +12 -0
- package/dist/open-api/routes/routes.js +2025 -565
- package/dist/pbds/pbd.controller.mjs +60 -0
- package/dist/pcis/pci.controller.mjs +2 -1
- package/dist/pgpus/pgpu.controller.mjs +2 -1
- package/dist/pifs/pif.controller.mjs +50 -1
- package/dist/pools/pool.controller.mjs +56 -3
- package/dist/proxies/proxy.controller.mjs +2 -1
- package/dist/restore-logs/restore-log.controller.mjs +3 -1
- package/dist/schedules/schedule.controller.mjs +2 -1
- package/dist/servers/server.controller.mjs +26 -2
- package/dist/sms/sm.controller.mjs +2 -1
- package/dist/srs/sr.controller.mjs +57 -2
- package/dist/tasks/task.controller.mjs +2 -1
- package/dist/users/user.controller.mjs +80 -31
- package/dist/users/user.middleware.mjs +11 -0
- package/dist/vbds/vbd.controller.mjs +50 -1
- package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +81 -2
- package/dist/vdis/vdi.controller.mjs +105 -2
- package/dist/vifs/vif.controller.mjs +50 -1
- package/dist/vm-controller/vm-controller.controller.mjs +81 -2
- package/dist/vm-snapshots/vm-snapshot.controller.mjs +57 -2
- package/dist/vm-templates/vm-template.controller.mjs +57 -2
- package/dist/vms/vm.controller.mjs +36 -13
- package/dist/xoa/xoa.controller.mjs +2 -1
- package/open-api/spec/swagger.json +7565 -2508
- package/package.json +3 -3
- package/tsoa.json +19 -0
- package/dist/tasks/task.service.mjs +0 -24
|
@@ -44,6 +44,8 @@ import { PgpuController } from './../../pgpus/pgpu.controller.mjs';
|
|
|
44
44
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
45
45
|
import { PciController } from './../../pcis/pci.controller.mjs';
|
|
46
46
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
47
|
+
import { PbdController } from './../../pbds/pbd.controller.mjs';
|
|
48
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
47
49
|
import { NetworkController } from './../../networks/network.controller.mjs';
|
|
48
50
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
49
51
|
import { MessageController } from './../../messages/message.controller.mjs';
|
|
@@ -60,6 +62,8 @@ import { BackupJobController } from './../../backup-jobs/backup-job.controller.m
|
|
|
60
62
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
61
63
|
import { DeprecatedBackupController } from './../../backup-jobs/backup-job.controller.mjs';
|
|
62
64
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
65
|
+
import { BackupArchiveController } from './../../backup-archives/backup-archive.controller.mjs';
|
|
66
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
63
67
|
import { AlarmController } from './../../alarms/alarm.controller.mjs';
|
|
64
68
|
import { expressAuthentication } from './../../middlewares/authentication.middleware.mjs';
|
|
65
69
|
// @ts-ignore - no great way to install types from subpackage
|
|
@@ -179,7 +183,7 @@ const models = {
|
|
|
179
183
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
180
184
|
"Partial_Unbrand_XoAlarm__": {
|
|
181
185
|
"dataType": "refAlias",
|
|
182
|
-
"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": {} },
|
|
186
|
+
"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": ["PBD"] }, { "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": {} },
|
|
183
187
|
},
|
|
184
188
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
185
189
|
"WithHref_Partial_Unbrand_XoAlarm___": {
|
|
@@ -412,6 +416,11 @@ const models = {
|
|
|
412
416
|
"type": { "ref": "Unbrand_XoVif_", "validators": {} },
|
|
413
417
|
},
|
|
414
418
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
419
|
+
"Exclude_SUPPORTED_VDI_FORMAT.qcow2_": {
|
|
420
|
+
"dataType": "refAlias",
|
|
421
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["raw"] }, { "dataType": "enum", "enums": ["vhd"] }], "validators": {} },
|
|
422
|
+
},
|
|
423
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
415
424
|
"Unbrand_XoVdi_": {
|
|
416
425
|
"dataType": "refAlias",
|
|
417
426
|
"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": {} },
|
|
@@ -525,7 +534,7 @@ const models = {
|
|
|
525
534
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
526
535
|
"Unbrand_XoSr_": {
|
|
527
536
|
"dataType": "refAlias",
|
|
528
|
-
"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": ["unknown"] }, { "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }
|
|
537
|
+
"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": ["unknown"] }, { "dataType": "enum", "enums": ["thin"] }, { "dataType": "enum", "enums": ["thick"] }, { "dataType": "undefined" }] }, "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": {} },
|
|
529
538
|
},
|
|
530
539
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
531
540
|
"Record_string.number_": {
|
|
@@ -819,6 +828,26 @@ const models = {
|
|
|
819
828
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "$host": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "class_name": { "dataType": "string", "required": true }, "device_name": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "pci_id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["PCI"], "required": true } }, "validators": {} },
|
|
820
829
|
},
|
|
821
830
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
831
|
+
"Partial_Unbrand_XoPbd__": {
|
|
832
|
+
"dataType": "refAlias",
|
|
833
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "$poolId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "_xapiRef": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "uuid": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "attached": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "device_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "location": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "legacy_mode": { "dataType": "string", "required": true }, "location": { "dataType": "string", "required": true }, "path": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "group-name": { "dataType": "string", "required": true }, "redundancy": { "dataType": "string", "required": true }, "provisioning": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "serverpath": { "dataType": "string", "required": true }, "server": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "location": { "dataType": "string", "required": true }, "type": { "dataType": "string", "required": true } } }, { "dataType": "undefined" }] }, "host": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "otherConfig": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "undefined" }] }, "SR": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["PBD"] }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
834
|
+
},
|
|
835
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
836
|
+
"WithHref_Partial_Unbrand_XoPbd___": {
|
|
837
|
+
"dataType": "refAlias",
|
|
838
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoPbd__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
839
|
+
},
|
|
840
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
841
|
+
"SendObjects_Partial_Unbrand_XoPbd___": {
|
|
842
|
+
"dataType": "refAlias",
|
|
843
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoPbd___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
844
|
+
},
|
|
845
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
846
|
+
"Unbrand_XoPbd_": {
|
|
847
|
+
"dataType": "refAlias",
|
|
848
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "$pool": { "dataType": "string", "required": true }, "$poolId": { "dataType": "string", "required": true }, "_xapiRef": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true }, "attached": { "dataType": "boolean", "required": true }, "device_config": { "dataType": "union", "subSchemas": [{ "ref": "Record_string.string_" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "device": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "location": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "legacy_mode": { "dataType": "string", "required": true }, "location": { "dataType": "string", "required": true }, "path": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "group-name": { "dataType": "string", "required": true }, "redundancy": { "dataType": "string", "required": true }, "provisioning": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "serverpath": { "dataType": "string", "required": true }, "server": { "dataType": "string", "required": true } } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "location": { "dataType": "string", "required": true }, "type": { "dataType": "string", "required": true } } }], "required": true }, "host": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true }, "otherConfig": { "ref": "Record_string.string_", "required": true }, "SR": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["PBD"], "required": true } }, "validators": {} },
|
|
849
|
+
},
|
|
850
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
822
851
|
"Record_string.attaching_": {
|
|
823
852
|
"dataType": "refAlias",
|
|
824
853
|
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "validators": {} },
|
|
@@ -1057,9 +1086,29 @@ const models = {
|
|
|
1057
1086
|
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_UnbrandXoMirrorBackupJob__" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
1058
1087
|
},
|
|
1059
1088
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1089
|
+
"Partial_Unbrand_XoVmBackupArchive__": {
|
|
1090
|
+
"dataType": "refAlias",
|
|
1091
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["xo-vm-backup"] }, { "dataType": "undefined" }] }, "backupRepository": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "disks": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "uuid": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } } }, { "dataType": "undefined" }] }, "isImmutable": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "jobId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }, { "dataType": "undefined" }] }, "scheduleId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "undefined" }] }, "size": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "timestamp": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "vm": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string", "required": true }, "name_description": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true } } }, { "dataType": "undefined" }] }, "differencingVhds": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "dynamicVhds": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "withMemory": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] } }, "validators": {} },
|
|
1092
|
+
},
|
|
1093
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1094
|
+
"WithHref_Partial_Unbrand_XoVmBackupArchive___": {
|
|
1095
|
+
"dataType": "refAlias",
|
|
1096
|
+
"type": { "dataType": "intersection", "subSchemas": [{ "ref": "Partial_Unbrand_XoVmBackupArchive__" }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "href": { "dataType": "string", "required": true } } }], "validators": {} },
|
|
1097
|
+
},
|
|
1098
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1099
|
+
"SendObjects_Partial_Unbrand_XoVmBackupArchive___": {
|
|
1100
|
+
"dataType": "refAlias",
|
|
1101
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "array", "array": { "dataType": "string" } }, { "dataType": "array", "array": { "dataType": "refAlias", "ref": "WithHref_Partial_Unbrand_XoVmBackupArchive___" } }, { "ref": "NdjsonStream" }], "validators": {} },
|
|
1102
|
+
},
|
|
1103
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1104
|
+
"Unbrand_XoVmBackupArchive_": {
|
|
1105
|
+
"dataType": "refAlias",
|
|
1106
|
+
"type": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["xo-vm-backup"], "required": true }, "backupRepository": { "dataType": "string", "required": true }, "disks": { "dataType": "array", "array": { "dataType": "nestedObjectLiteral", "nestedProperties": { "uuid": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } }, "required": true }, "isImmutable": { "dataType": "union", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "undefined" }] }, "jobId": { "dataType": "string", "required": true }, "mode": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["full"] }, { "dataType": "enum", "enums": ["delta"] }], "required": true }, "scheduleId": { "dataType": "string", "required": true }, "size": { "dataType": "double", "required": true }, "timestamp": { "dataType": "double", "required": true }, "vm": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name_label": { "dataType": "string", "required": true }, "name_description": { "dataType": "string", "required": true }, "uuid": { "dataType": "string", "required": true } }, "required": true }, "differencingVhds": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "dynamicVhds": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "undefined" }] }, "withMemory": { "dataType": "boolean", "required": true } }, "validators": {} },
|
|
1107
|
+
},
|
|
1108
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1060
1109
|
"Partial_UnbrandedXoAlarm_": {
|
|
1061
1110
|
"dataType": "refAlias",
|
|
1062
|
-
"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": {} },
|
|
1111
|
+
"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": ["PBD"] }, { "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": {} },
|
|
1063
1112
|
},
|
|
1064
1113
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1065
1114
|
"WithHref_Partial_UnbrandedXoAlarm__": {
|
|
@@ -1074,7 +1123,7 @@ const models = {
|
|
|
1074
1123
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1075
1124
|
"Unbrand_XoAlarm_": {
|
|
1076
1125
|
"dataType": "refAlias",
|
|
1077
|
-
"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": {} },
|
|
1126
|
+
"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": ["PBD"] }, { "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": {} },
|
|
1078
1127
|
},
|
|
1079
1128
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1080
1129
|
"UnbrandedXoAlarm": {
|
|
@@ -1759,6 +1808,62 @@ export function RegisterRoutes(app) {
|
|
|
1759
1808
|
}
|
|
1760
1809
|
});
|
|
1761
1810
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1811
|
+
const argsVmController_putVmTag = {
|
|
1812
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1813
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
1814
|
+
};
|
|
1815
|
+
app.put('/rest/v0/vms/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.putVmTag)), async function VmController_putVmTag(request, response, next) {
|
|
1816
|
+
// WARNING: This 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
|
+
let validatedArgs = [];
|
|
1818
|
+
try {
|
|
1819
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_putVmTag, request, response });
|
|
1820
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1821
|
+
const controller = await container.get(VmController);
|
|
1822
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1823
|
+
controller.setStatus(undefined);
|
|
1824
|
+
}
|
|
1825
|
+
await templateService.apiHandler({
|
|
1826
|
+
methodName: 'putVmTag',
|
|
1827
|
+
controller,
|
|
1828
|
+
response,
|
|
1829
|
+
next,
|
|
1830
|
+
validatedArgs,
|
|
1831
|
+
successStatus: 204,
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
catch (err) {
|
|
1835
|
+
return next(err);
|
|
1836
|
+
}
|
|
1837
|
+
});
|
|
1838
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1839
|
+
const argsVmController_deleteVmTag = {
|
|
1840
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1841
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
1842
|
+
};
|
|
1843
|
+
app.delete('/rest/v0/vms/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmController)), ...(fetchMiddlewares(VmController.prototype.deleteVmTag)), async function VmController_deleteVmTag(request, response, next) {
|
|
1844
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1845
|
+
let validatedArgs = [];
|
|
1846
|
+
try {
|
|
1847
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmController_deleteVmTag, request, response });
|
|
1848
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
1849
|
+
const controller = await container.get(VmController);
|
|
1850
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1851
|
+
controller.setStatus(undefined);
|
|
1852
|
+
}
|
|
1853
|
+
await templateService.apiHandler({
|
|
1854
|
+
methodName: 'deleteVmTag',
|
|
1855
|
+
controller,
|
|
1856
|
+
response,
|
|
1857
|
+
next,
|
|
1858
|
+
validatedArgs,
|
|
1859
|
+
successStatus: 204,
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1862
|
+
catch (err) {
|
|
1863
|
+
return next(err);
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1762
1867
|
const argsVmTemplateController_getVmTemplates = {
|
|
1763
1868
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1764
1869
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -1970,6 +2075,94 @@ export function RegisterRoutes(app) {
|
|
|
1970
2075
|
}
|
|
1971
2076
|
});
|
|
1972
2077
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2078
|
+
const argsVmTemplateController_getVmTemplateTasks = {
|
|
2079
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2080
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2081
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2082
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2083
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2084
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2085
|
+
};
|
|
2086
|
+
app.get('/rest/v0/vm-templates/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.getVmTemplateTasks)), async function VmTemplateController_getVmTemplateTasks(request, response, next) {
|
|
2087
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2088
|
+
let validatedArgs = [];
|
|
2089
|
+
try {
|
|
2090
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_getVmTemplateTasks, request, response });
|
|
2091
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2092
|
+
const controller = await container.get(VmTemplateController);
|
|
2093
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2094
|
+
controller.setStatus(undefined);
|
|
2095
|
+
}
|
|
2096
|
+
await templateService.apiHandler({
|
|
2097
|
+
methodName: 'getVmTemplateTasks',
|
|
2098
|
+
controller,
|
|
2099
|
+
response,
|
|
2100
|
+
next,
|
|
2101
|
+
validatedArgs,
|
|
2102
|
+
successStatus: undefined,
|
|
2103
|
+
});
|
|
2104
|
+
}
|
|
2105
|
+
catch (err) {
|
|
2106
|
+
return next(err);
|
|
2107
|
+
}
|
|
2108
|
+
});
|
|
2109
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2110
|
+
const argsVmTemplateController_putVmTemplateTag = {
|
|
2111
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2112
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
2113
|
+
};
|
|
2114
|
+
app.put('/rest/v0/vm-templates/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.putVmTemplateTag)), async function VmTemplateController_putVmTemplateTag(request, response, next) {
|
|
2115
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2116
|
+
let validatedArgs = [];
|
|
2117
|
+
try {
|
|
2118
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_putVmTemplateTag, request, response });
|
|
2119
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2120
|
+
const controller = await container.get(VmTemplateController);
|
|
2121
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2122
|
+
controller.setStatus(undefined);
|
|
2123
|
+
}
|
|
2124
|
+
await templateService.apiHandler({
|
|
2125
|
+
methodName: 'putVmTemplateTag',
|
|
2126
|
+
controller,
|
|
2127
|
+
response,
|
|
2128
|
+
next,
|
|
2129
|
+
validatedArgs,
|
|
2130
|
+
successStatus: 204,
|
|
2131
|
+
});
|
|
2132
|
+
}
|
|
2133
|
+
catch (err) {
|
|
2134
|
+
return next(err);
|
|
2135
|
+
}
|
|
2136
|
+
});
|
|
2137
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2138
|
+
const argsVmTemplateController_deleteVmTemplateTag = {
|
|
2139
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2140
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
2141
|
+
};
|
|
2142
|
+
app.delete('/rest/v0/vm-templates/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmTemplateController)), ...(fetchMiddlewares(VmTemplateController.prototype.deleteVmTemplateTag)), async function VmTemplateController_deleteVmTemplateTag(request, response, next) {
|
|
2143
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2144
|
+
let validatedArgs = [];
|
|
2145
|
+
try {
|
|
2146
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmTemplateController_deleteVmTemplateTag, request, response });
|
|
2147
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2148
|
+
const controller = await container.get(VmTemplateController);
|
|
2149
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2150
|
+
controller.setStatus(undefined);
|
|
2151
|
+
}
|
|
2152
|
+
await templateService.apiHandler({
|
|
2153
|
+
methodName: 'deleteVmTemplateTag',
|
|
2154
|
+
controller,
|
|
2155
|
+
response,
|
|
2156
|
+
next,
|
|
2157
|
+
validatedArgs,
|
|
2158
|
+
successStatus: 204,
|
|
2159
|
+
});
|
|
2160
|
+
}
|
|
2161
|
+
catch (err) {
|
|
2162
|
+
return next(err);
|
|
2163
|
+
}
|
|
2164
|
+
});
|
|
2165
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1973
2166
|
const argsVmSnapshotController_getVmSnapshots = {
|
|
1974
2167
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1975
2168
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2181,25 +2374,26 @@ export function RegisterRoutes(app) {
|
|
|
2181
2374
|
}
|
|
2182
2375
|
});
|
|
2183
2376
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2184
|
-
const
|
|
2377
|
+
const argsVmSnapshotController_getVmSnapshotTasks = {
|
|
2185
2378
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2379
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2186
2380
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2187
2381
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2188
2382
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2189
2383
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2190
2384
|
};
|
|
2191
|
-
app.get('/rest/v0/vm-
|
|
2385
|
+
app.get('/rest/v0/vm-snapshots/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.getVmSnapshotTasks)), async function VmSnapshotController_getVmSnapshotTasks(request, response, next) {
|
|
2192
2386
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2193
2387
|
let validatedArgs = [];
|
|
2194
2388
|
try {
|
|
2195
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2389
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_getVmSnapshotTasks, request, response });
|
|
2196
2390
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2197
|
-
const controller = await container.get(
|
|
2391
|
+
const controller = await container.get(VmSnapshotController);
|
|
2198
2392
|
if (typeof controller['setStatus'] === 'function') {
|
|
2199
2393
|
controller.setStatus(undefined);
|
|
2200
2394
|
}
|
|
2201
2395
|
await templateService.apiHandler({
|
|
2202
|
-
methodName: '
|
|
2396
|
+
methodName: 'getVmSnapshotTasks',
|
|
2203
2397
|
controller,
|
|
2204
2398
|
response,
|
|
2205
2399
|
next,
|
|
@@ -2212,26 +2406,27 @@ export function RegisterRoutes(app) {
|
|
|
2212
2406
|
}
|
|
2213
2407
|
});
|
|
2214
2408
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2215
|
-
const
|
|
2409
|
+
const argsVmSnapshotController_putVmSnapshotTag = {
|
|
2216
2410
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2411
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
2217
2412
|
};
|
|
2218
|
-
app.
|
|
2413
|
+
app.put('/rest/v0/vm-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.putVmSnapshotTag)), async function VmSnapshotController_putVmSnapshotTag(request, response, next) {
|
|
2219
2414
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2220
2415
|
let validatedArgs = [];
|
|
2221
2416
|
try {
|
|
2222
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2417
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_putVmSnapshotTag, request, response });
|
|
2223
2418
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2224
|
-
const controller = await container.get(
|
|
2419
|
+
const controller = await container.get(VmSnapshotController);
|
|
2225
2420
|
if (typeof controller['setStatus'] === 'function') {
|
|
2226
2421
|
controller.setStatus(undefined);
|
|
2227
2422
|
}
|
|
2228
2423
|
await templateService.apiHandler({
|
|
2229
|
-
methodName: '
|
|
2424
|
+
methodName: 'putVmSnapshotTag',
|
|
2230
2425
|
controller,
|
|
2231
2426
|
response,
|
|
2232
2427
|
next,
|
|
2233
2428
|
validatedArgs,
|
|
2234
|
-
successStatus:
|
|
2429
|
+
successStatus: 204,
|
|
2235
2430
|
});
|
|
2236
2431
|
}
|
|
2237
2432
|
catch (err) {
|
|
@@ -2239,31 +2434,27 @@ export function RegisterRoutes(app) {
|
|
|
2239
2434
|
}
|
|
2240
2435
|
});
|
|
2241
2436
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2242
|
-
const
|
|
2243
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2437
|
+
const argsVmSnapshotController_deleteVmSnapshotTag = {
|
|
2244
2438
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2245
|
-
|
|
2246
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2247
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2248
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2439
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
2249
2440
|
};
|
|
2250
|
-
app.
|
|
2441
|
+
app.delete('/rest/v0/vm-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmSnapshotController)), ...(fetchMiddlewares(VmSnapshotController.prototype.deleteVmSnapshotTag)), async function VmSnapshotController_deleteVmSnapshotTag(request, response, next) {
|
|
2251
2442
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2252
2443
|
let validatedArgs = [];
|
|
2253
2444
|
try {
|
|
2254
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2445
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmSnapshotController_deleteVmSnapshotTag, request, response });
|
|
2255
2446
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2256
|
-
const controller = await container.get(
|
|
2447
|
+
const controller = await container.get(VmSnapshotController);
|
|
2257
2448
|
if (typeof controller['setStatus'] === 'function') {
|
|
2258
2449
|
controller.setStatus(undefined);
|
|
2259
2450
|
}
|
|
2260
2451
|
await templateService.apiHandler({
|
|
2261
|
-
methodName: '
|
|
2452
|
+
methodName: 'deleteVmSnapshotTag',
|
|
2262
2453
|
controller,
|
|
2263
2454
|
response,
|
|
2264
2455
|
next,
|
|
2265
2456
|
validatedArgs,
|
|
2266
|
-
successStatus:
|
|
2457
|
+
successStatus: 204,
|
|
2267
2458
|
});
|
|
2268
2459
|
}
|
|
2269
2460
|
catch (err) {
|
|
@@ -2271,26 +2462,25 @@ export function RegisterRoutes(app) {
|
|
|
2271
2462
|
}
|
|
2272
2463
|
});
|
|
2273
2464
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2274
|
-
const
|
|
2465
|
+
const argsVmControllerController_getVmControllers = {
|
|
2275
2466
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2276
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2277
2467
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2278
2468
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2279
2469
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2280
2470
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2281
2471
|
};
|
|
2282
|
-
app.get('/rest/v0/vm-controllers
|
|
2472
|
+
app.get('/rest/v0/vm-controllers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllers)), async function VmControllerController_getVmControllers(request, response, next) {
|
|
2283
2473
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2284
2474
|
let validatedArgs = [];
|
|
2285
2475
|
try {
|
|
2286
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2476
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllers, request, response });
|
|
2287
2477
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2288
2478
|
const controller = await container.get(VmControllerController);
|
|
2289
2479
|
if (typeof controller['setStatus'] === 'function') {
|
|
2290
2480
|
controller.setStatus(undefined);
|
|
2291
2481
|
}
|
|
2292
2482
|
await templateService.apiHandler({
|
|
2293
|
-
methodName: '
|
|
2483
|
+
methodName: 'getVmControllers',
|
|
2294
2484
|
controller,
|
|
2295
2485
|
response,
|
|
2296
2486
|
next,
|
|
@@ -2303,25 +2493,21 @@ export function RegisterRoutes(app) {
|
|
|
2303
2493
|
}
|
|
2304
2494
|
});
|
|
2305
2495
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2306
|
-
const
|
|
2307
|
-
|
|
2308
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2309
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2310
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2311
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2496
|
+
const argsVmControllerController_getVmController = {
|
|
2497
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2312
2498
|
};
|
|
2313
|
-
app.get('/rest/v0/
|
|
2499
|
+
app.get('/rest/v0/vm-controllers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmController)), async function VmControllerController_getVmController(request, response, next) {
|
|
2314
2500
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2315
2501
|
let validatedArgs = [];
|
|
2316
2502
|
try {
|
|
2317
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2503
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmController, request, response });
|
|
2318
2504
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2319
|
-
const controller = await container.get(
|
|
2505
|
+
const controller = await container.get(VmControllerController);
|
|
2320
2506
|
if (typeof controller['setStatus'] === 'function') {
|
|
2321
2507
|
controller.setStatus(undefined);
|
|
2322
2508
|
}
|
|
2323
2509
|
await templateService.apiHandler({
|
|
2324
|
-
methodName: '
|
|
2510
|
+
methodName: 'getVmController',
|
|
2325
2511
|
controller,
|
|
2326
2512
|
response,
|
|
2327
2513
|
next,
|
|
@@ -2334,21 +2520,26 @@ export function RegisterRoutes(app) {
|
|
|
2334
2520
|
}
|
|
2335
2521
|
});
|
|
2336
2522
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2337
|
-
const
|
|
2523
|
+
const argsVmControllerController_getVmControllerAlarms = {
|
|
2524
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2338
2525
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2526
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2527
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2528
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2529
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2339
2530
|
};
|
|
2340
|
-
app.get('/rest/v0/
|
|
2531
|
+
app.get('/rest/v0/vm-controllers/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerAlarms)), async function VmControllerController_getVmControllerAlarms(request, response, next) {
|
|
2341
2532
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2342
2533
|
let validatedArgs = [];
|
|
2343
2534
|
try {
|
|
2344
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2535
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerAlarms, request, response });
|
|
2345
2536
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2346
|
-
const controller = await container.get(
|
|
2537
|
+
const controller = await container.get(VmControllerController);
|
|
2347
2538
|
if (typeof controller['setStatus'] === 'function') {
|
|
2348
2539
|
controller.setStatus(undefined);
|
|
2349
2540
|
}
|
|
2350
2541
|
await templateService.apiHandler({
|
|
2351
|
-
methodName: '
|
|
2542
|
+
methodName: 'getVmControllerAlarms',
|
|
2352
2543
|
controller,
|
|
2353
2544
|
response,
|
|
2354
2545
|
next,
|
|
@@ -2361,7 +2552,7 @@ export function RegisterRoutes(app) {
|
|
|
2361
2552
|
}
|
|
2362
2553
|
});
|
|
2363
2554
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2364
|
-
const
|
|
2555
|
+
const argsVmControllerController_getVmControllerVdis = {
|
|
2365
2556
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2366
2557
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2367
2558
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2369,18 +2560,18 @@ export function RegisterRoutes(app) {
|
|
|
2369
2560
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2370
2561
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2371
2562
|
};
|
|
2372
|
-
app.get('/rest/v0/
|
|
2563
|
+
app.get('/rest/v0/vm-controllers/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerVdis)), async function VmControllerController_getVmControllerVdis(request, response, next) {
|
|
2373
2564
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2374
2565
|
let validatedArgs = [];
|
|
2375
2566
|
try {
|
|
2376
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2567
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerVdis, request, response });
|
|
2377
2568
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2378
|
-
const controller = await container.get(
|
|
2569
|
+
const controller = await container.get(VmControllerController);
|
|
2379
2570
|
if (typeof controller['setStatus'] === 'function') {
|
|
2380
2571
|
controller.setStatus(undefined);
|
|
2381
2572
|
}
|
|
2382
2573
|
await templateService.apiHandler({
|
|
2383
|
-
methodName: '
|
|
2574
|
+
methodName: 'getVmControllerVdis',
|
|
2384
2575
|
controller,
|
|
2385
2576
|
response,
|
|
2386
2577
|
next,
|
|
@@ -2393,25 +2584,26 @@ export function RegisterRoutes(app) {
|
|
|
2393
2584
|
}
|
|
2394
2585
|
});
|
|
2395
2586
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2396
|
-
const
|
|
2587
|
+
const argsVmControllerController_getVmControllerMessages = {
|
|
2397
2588
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2589
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2398
2590
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2399
2591
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2400
2592
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2401
2593
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2402
2594
|
};
|
|
2403
|
-
app.get('/rest/v0/
|
|
2595
|
+
app.get('/rest/v0/vm-controllers/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerMessages)), async function VmControllerController_getVmControllerMessages(request, response, next) {
|
|
2404
2596
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2405
2597
|
let validatedArgs = [];
|
|
2406
2598
|
try {
|
|
2407
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2599
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerMessages, request, response });
|
|
2408
2600
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2409
|
-
const controller = await container.get(
|
|
2601
|
+
const controller = await container.get(VmControllerController);
|
|
2410
2602
|
if (typeof controller['setStatus'] === 'function') {
|
|
2411
2603
|
controller.setStatus(undefined);
|
|
2412
2604
|
}
|
|
2413
2605
|
await templateService.apiHandler({
|
|
2414
|
-
methodName: '
|
|
2606
|
+
methodName: 'getVmControllerMessages',
|
|
2415
2607
|
controller,
|
|
2416
2608
|
response,
|
|
2417
2609
|
next,
|
|
@@ -2424,28 +2616,31 @@ export function RegisterRoutes(app) {
|
|
|
2424
2616
|
}
|
|
2425
2617
|
});
|
|
2426
2618
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2427
|
-
const
|
|
2619
|
+
const argsVmControllerController_getVmControllerTasks = {
|
|
2428
2620
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2429
2621
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2430
|
-
|
|
2622
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2623
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2624
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2625
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2431
2626
|
};
|
|
2432
|
-
app.get('/rest/v0/
|
|
2627
|
+
app.get('/rest/v0/vm-controllers/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.getVmControllerTasks)), async function VmControllerController_getVmControllerTasks(request, response, next) {
|
|
2433
2628
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2434
2629
|
let validatedArgs = [];
|
|
2435
2630
|
try {
|
|
2436
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2631
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_getVmControllerTasks, request, response });
|
|
2437
2632
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2438
|
-
const controller = await container.get(
|
|
2633
|
+
const controller = await container.get(VmControllerController);
|
|
2439
2634
|
if (typeof controller['setStatus'] === 'function') {
|
|
2440
2635
|
controller.setStatus(undefined);
|
|
2441
2636
|
}
|
|
2442
2637
|
await templateService.apiHandler({
|
|
2443
|
-
methodName: '
|
|
2638
|
+
methodName: 'getVmControllerTasks',
|
|
2444
2639
|
controller,
|
|
2445
2640
|
response,
|
|
2446
2641
|
next,
|
|
2447
2642
|
validatedArgs,
|
|
2448
|
-
successStatus:
|
|
2643
|
+
successStatus: undefined,
|
|
2449
2644
|
});
|
|
2450
2645
|
}
|
|
2451
2646
|
catch (err) {
|
|
@@ -2453,26 +2648,27 @@ export function RegisterRoutes(app) {
|
|
|
2453
2648
|
}
|
|
2454
2649
|
});
|
|
2455
2650
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2456
|
-
const
|
|
2651
|
+
const argsVmControllerController_putVmControllerTag = {
|
|
2457
2652
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2653
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
2458
2654
|
};
|
|
2459
|
-
app.
|
|
2655
|
+
app.put('/rest/v0/vm-controllers/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.putVmControllerTag)), async function VmControllerController_putVmControllerTag(request, response, next) {
|
|
2460
2656
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2461
2657
|
let validatedArgs = [];
|
|
2462
2658
|
try {
|
|
2463
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2659
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_putVmControllerTag, request, response });
|
|
2464
2660
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2465
|
-
const controller = await container.get(
|
|
2661
|
+
const controller = await container.get(VmControllerController);
|
|
2466
2662
|
if (typeof controller['setStatus'] === 'function') {
|
|
2467
2663
|
controller.setStatus(undefined);
|
|
2468
2664
|
}
|
|
2469
2665
|
await templateService.apiHandler({
|
|
2470
|
-
methodName: '
|
|
2666
|
+
methodName: 'putVmControllerTag',
|
|
2471
2667
|
controller,
|
|
2472
2668
|
response,
|
|
2473
2669
|
next,
|
|
2474
2670
|
validatedArgs,
|
|
2475
|
-
successStatus:
|
|
2671
|
+
successStatus: 204,
|
|
2476
2672
|
});
|
|
2477
2673
|
}
|
|
2478
2674
|
catch (err) {
|
|
@@ -2480,31 +2676,27 @@ export function RegisterRoutes(app) {
|
|
|
2480
2676
|
}
|
|
2481
2677
|
});
|
|
2482
2678
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2483
|
-
const
|
|
2484
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2679
|
+
const argsVmControllerController_deleteVmControllerTag = {
|
|
2485
2680
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2486
|
-
|
|
2487
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2488
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2489
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2681
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
2490
2682
|
};
|
|
2491
|
-
app.
|
|
2683
|
+
app.delete('/rest/v0/vm-controllers/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VmControllerController)), ...(fetchMiddlewares(VmControllerController.prototype.deleteVmControllerTag)), async function VmControllerController_deleteVmControllerTag(request, response, next) {
|
|
2492
2684
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2493
2685
|
let validatedArgs = [];
|
|
2494
2686
|
try {
|
|
2495
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2687
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVmControllerController_deleteVmControllerTag, request, response });
|
|
2496
2688
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2497
|
-
const controller = await container.get(
|
|
2689
|
+
const controller = await container.get(VmControllerController);
|
|
2498
2690
|
if (typeof controller['setStatus'] === 'function') {
|
|
2499
2691
|
controller.setStatus(undefined);
|
|
2500
2692
|
}
|
|
2501
2693
|
await templateService.apiHandler({
|
|
2502
|
-
methodName: '
|
|
2694
|
+
methodName: 'deleteVmControllerTag',
|
|
2503
2695
|
controller,
|
|
2504
2696
|
response,
|
|
2505
2697
|
next,
|
|
2506
2698
|
validatedArgs,
|
|
2507
|
-
successStatus:
|
|
2699
|
+
successStatus: 204,
|
|
2508
2700
|
});
|
|
2509
2701
|
}
|
|
2510
2702
|
catch (err) {
|
|
@@ -2512,26 +2704,30 @@ export function RegisterRoutes(app) {
|
|
|
2512
2704
|
}
|
|
2513
2705
|
});
|
|
2514
2706
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2515
|
-
const
|
|
2516
|
-
|
|
2707
|
+
const argsVifController_getVifs = {
|
|
2708
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2709
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2710
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2711
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2712
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2517
2713
|
};
|
|
2518
|
-
app.
|
|
2714
|
+
app.get('/rest/v0/vifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifs)), async function VifController_getVifs(request, response, next) {
|
|
2519
2715
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2520
2716
|
let validatedArgs = [];
|
|
2521
2717
|
try {
|
|
2522
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2718
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifs, request, response });
|
|
2523
2719
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2524
|
-
const controller = await container.get(
|
|
2720
|
+
const controller = await container.get(VifController);
|
|
2525
2721
|
if (typeof controller['setStatus'] === 'function') {
|
|
2526
2722
|
controller.setStatus(undefined);
|
|
2527
2723
|
}
|
|
2528
2724
|
await templateService.apiHandler({
|
|
2529
|
-
methodName: '
|
|
2725
|
+
methodName: 'getVifs',
|
|
2530
2726
|
controller,
|
|
2531
2727
|
response,
|
|
2532
2728
|
next,
|
|
2533
2729
|
validatedArgs,
|
|
2534
|
-
successStatus:
|
|
2730
|
+
successStatus: undefined,
|
|
2535
2731
|
});
|
|
2536
2732
|
}
|
|
2537
2733
|
catch (err) {
|
|
@@ -2539,25 +2735,21 @@ export function RegisterRoutes(app) {
|
|
|
2539
2735
|
}
|
|
2540
2736
|
});
|
|
2541
2737
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2542
|
-
const
|
|
2543
|
-
|
|
2544
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2545
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2546
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2547
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2738
|
+
const argsVifController_getVif = {
|
|
2739
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2548
2740
|
};
|
|
2549
|
-
app.get('/rest/v0/
|
|
2741
|
+
app.get('/rest/v0/vifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVif)), async function VifController_getVif(request, response, next) {
|
|
2550
2742
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2551
2743
|
let validatedArgs = [];
|
|
2552
2744
|
try {
|
|
2553
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2745
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVif, request, response });
|
|
2554
2746
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2555
|
-
const controller = await container.get(
|
|
2747
|
+
const controller = await container.get(VifController);
|
|
2556
2748
|
if (typeof controller['setStatus'] === 'function') {
|
|
2557
2749
|
controller.setStatus(undefined);
|
|
2558
2750
|
}
|
|
2559
2751
|
await templateService.apiHandler({
|
|
2560
|
-
methodName: '
|
|
2752
|
+
methodName: 'getVif',
|
|
2561
2753
|
controller,
|
|
2562
2754
|
response,
|
|
2563
2755
|
next,
|
|
@@ -2570,28 +2762,31 @@ export function RegisterRoutes(app) {
|
|
|
2570
2762
|
}
|
|
2571
2763
|
});
|
|
2572
2764
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2573
|
-
const
|
|
2765
|
+
const argsVifController_getVifAlarms = {
|
|
2574
2766
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2575
2767
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2576
|
-
|
|
2768
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2769
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2770
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2771
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2577
2772
|
};
|
|
2578
|
-
app.get('/rest/v0/
|
|
2773
|
+
app.get('/rest/v0/vifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifAlarms)), async function VifController_getVifAlarms(request, response, next) {
|
|
2579
2774
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2580
2775
|
let validatedArgs = [];
|
|
2581
2776
|
try {
|
|
2582
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2777
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifAlarms, request, response });
|
|
2583
2778
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2584
|
-
const controller = await container.get(
|
|
2779
|
+
const controller = await container.get(VifController);
|
|
2585
2780
|
if (typeof controller['setStatus'] === 'function') {
|
|
2586
2781
|
controller.setStatus(undefined);
|
|
2587
2782
|
}
|
|
2588
2783
|
await templateService.apiHandler({
|
|
2589
|
-
methodName: '
|
|
2784
|
+
methodName: 'getVifAlarms',
|
|
2590
2785
|
controller,
|
|
2591
2786
|
response,
|
|
2592
2787
|
next,
|
|
2593
2788
|
validatedArgs,
|
|
2594
|
-
successStatus:
|
|
2789
|
+
successStatus: undefined,
|
|
2595
2790
|
});
|
|
2596
2791
|
}
|
|
2597
2792
|
catch (err) {
|
|
@@ -2599,21 +2794,26 @@ export function RegisterRoutes(app) {
|
|
|
2599
2794
|
}
|
|
2600
2795
|
});
|
|
2601
2796
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2602
|
-
const
|
|
2797
|
+
const argsVifController_getVifMessages = {
|
|
2798
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2603
2799
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2800
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2801
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2802
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2803
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2604
2804
|
};
|
|
2605
|
-
app.get('/rest/v0/
|
|
2805
|
+
app.get('/rest/v0/vifs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifMessages)), async function VifController_getVifMessages(request, response, next) {
|
|
2606
2806
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2607
2807
|
let validatedArgs = [];
|
|
2608
2808
|
try {
|
|
2609
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2809
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifMessages, request, response });
|
|
2610
2810
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2611
|
-
const controller = await container.get(
|
|
2811
|
+
const controller = await container.get(VifController);
|
|
2612
2812
|
if (typeof controller['setStatus'] === 'function') {
|
|
2613
2813
|
controller.setStatus(undefined);
|
|
2614
2814
|
}
|
|
2615
2815
|
await templateService.apiHandler({
|
|
2616
|
-
methodName: '
|
|
2816
|
+
methodName: 'getVifMessages',
|
|
2617
2817
|
controller,
|
|
2618
2818
|
response,
|
|
2619
2819
|
next,
|
|
@@ -2626,7 +2826,7 @@ export function RegisterRoutes(app) {
|
|
|
2626
2826
|
}
|
|
2627
2827
|
});
|
|
2628
2828
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2629
|
-
const
|
|
2829
|
+
const argsVifController_getVifTasks = {
|
|
2630
2830
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2631
2831
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2632
2832
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -2634,18 +2834,18 @@ export function RegisterRoutes(app) {
|
|
|
2634
2834
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2635
2835
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2636
2836
|
};
|
|
2637
|
-
app.get('/rest/v0/
|
|
2837
|
+
app.get('/rest/v0/vifs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VifController)), ...(fetchMiddlewares(VifController.prototype.getVifTasks)), async function VifController_getVifTasks(request, response, next) {
|
|
2638
2838
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2639
2839
|
let validatedArgs = [];
|
|
2640
2840
|
try {
|
|
2641
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2841
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVifController_getVifTasks, request, response });
|
|
2642
2842
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2643
|
-
const controller = await container.get(
|
|
2843
|
+
const controller = await container.get(VifController);
|
|
2644
2844
|
if (typeof controller['setStatus'] === 'function') {
|
|
2645
2845
|
controller.setStatus(undefined);
|
|
2646
2846
|
}
|
|
2647
2847
|
await templateService.apiHandler({
|
|
2648
|
-
methodName: '
|
|
2848
|
+
methodName: 'getVifTasks',
|
|
2649
2849
|
controller,
|
|
2650
2850
|
response,
|
|
2651
2851
|
next,
|
|
@@ -2658,26 +2858,30 @@ export function RegisterRoutes(app) {
|
|
|
2658
2858
|
}
|
|
2659
2859
|
});
|
|
2660
2860
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2661
|
-
const
|
|
2662
|
-
|
|
2861
|
+
const argsVdiController_getVdis = {
|
|
2862
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2863
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2864
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2865
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2866
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2663
2867
|
};
|
|
2664
|
-
app.
|
|
2868
|
+
app.get('/rest/v0/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdis)), async function VdiController_getVdis(request, response, next) {
|
|
2665
2869
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2666
2870
|
let validatedArgs = [];
|
|
2667
2871
|
try {
|
|
2668
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2872
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdis, request, response });
|
|
2669
2873
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2670
|
-
const controller = await container.get(
|
|
2874
|
+
const controller = await container.get(VdiController);
|
|
2671
2875
|
if (typeof controller['setStatus'] === 'function') {
|
|
2672
2876
|
controller.setStatus(undefined);
|
|
2673
2877
|
}
|
|
2674
2878
|
await templateService.apiHandler({
|
|
2675
|
-
methodName: '
|
|
2879
|
+
methodName: 'getVdis',
|
|
2676
2880
|
controller,
|
|
2677
2881
|
response,
|
|
2678
2882
|
next,
|
|
2679
2883
|
validatedArgs,
|
|
2680
|
-
successStatus:
|
|
2884
|
+
successStatus: undefined,
|
|
2681
2885
|
});
|
|
2682
2886
|
}
|
|
2683
2887
|
catch (err) {
|
|
@@ -2685,30 +2889,28 @@ export function RegisterRoutes(app) {
|
|
|
2685
2889
|
}
|
|
2686
2890
|
});
|
|
2687
2891
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2688
|
-
const
|
|
2892
|
+
const argsVdiController_exportVdiContent = {
|
|
2689
2893
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2693
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2894
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2895
|
+
format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
|
|
2694
2896
|
};
|
|
2695
|
-
app.get('/rest/v0/
|
|
2897
|
+
app.get('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.exportVdiContent)), async function VdiController_exportVdiContent(request, response, next) {
|
|
2696
2898
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2697
2899
|
let validatedArgs = [];
|
|
2698
2900
|
try {
|
|
2699
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2901
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_exportVdiContent, request, response });
|
|
2700
2902
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2701
|
-
const controller = await container.get(
|
|
2903
|
+
const controller = await container.get(VdiController);
|
|
2702
2904
|
if (typeof controller['setStatus'] === 'function') {
|
|
2703
2905
|
controller.setStatus(undefined);
|
|
2704
2906
|
}
|
|
2705
2907
|
await templateService.apiHandler({
|
|
2706
|
-
methodName: '
|
|
2908
|
+
methodName: 'exportVdiContent',
|
|
2707
2909
|
controller,
|
|
2708
2910
|
response,
|
|
2709
2911
|
next,
|
|
2710
2912
|
validatedArgs,
|
|
2711
|
-
successStatus:
|
|
2913
|
+
successStatus: 200,
|
|
2712
2914
|
});
|
|
2713
2915
|
}
|
|
2714
2916
|
catch (err) {
|
|
@@ -2716,26 +2918,28 @@ export function RegisterRoutes(app) {
|
|
|
2716
2918
|
}
|
|
2717
2919
|
});
|
|
2718
2920
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2719
|
-
const
|
|
2921
|
+
const argsVdiController_importVdiContent = {
|
|
2922
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2720
2923
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2924
|
+
format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
|
|
2721
2925
|
};
|
|
2722
|
-
app.
|
|
2926
|
+
app.put('/rest/v0/vdis/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.importVdiContent)), async function VdiController_importVdiContent(request, response, next) {
|
|
2723
2927
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2724
2928
|
let validatedArgs = [];
|
|
2725
2929
|
try {
|
|
2726
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2930
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_importVdiContent, request, response });
|
|
2727
2931
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2728
|
-
const controller = await container.get(
|
|
2932
|
+
const controller = await container.get(VdiController);
|
|
2729
2933
|
if (typeof controller['setStatus'] === 'function') {
|
|
2730
2934
|
controller.setStatus(undefined);
|
|
2731
2935
|
}
|
|
2732
2936
|
await templateService.apiHandler({
|
|
2733
|
-
methodName: '
|
|
2937
|
+
methodName: 'importVdiContent',
|
|
2734
2938
|
controller,
|
|
2735
2939
|
response,
|
|
2736
2940
|
next,
|
|
2737
2941
|
validatedArgs,
|
|
2738
|
-
successStatus:
|
|
2942
|
+
successStatus: 204,
|
|
2739
2943
|
});
|
|
2740
2944
|
}
|
|
2741
2945
|
catch (err) {
|
|
@@ -2743,26 +2947,21 @@ export function RegisterRoutes(app) {
|
|
|
2743
2947
|
}
|
|
2744
2948
|
});
|
|
2745
2949
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2746
|
-
const
|
|
2747
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2950
|
+
const argsVdiController_getVdi = {
|
|
2748
2951
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2749
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2750
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2751
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2752
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2753
2952
|
};
|
|
2754
|
-
app.get('/rest/v0/
|
|
2953
|
+
app.get('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdi)), async function VdiController_getVdi(request, response, next) {
|
|
2755
2954
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2756
2955
|
let validatedArgs = [];
|
|
2757
2956
|
try {
|
|
2758
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2957
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdi, request, response });
|
|
2759
2958
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2760
|
-
const controller = await container.get(
|
|
2959
|
+
const controller = await container.get(VdiController);
|
|
2761
2960
|
if (typeof controller['setStatus'] === 'function') {
|
|
2762
2961
|
controller.setStatus(undefined);
|
|
2763
2962
|
}
|
|
2764
2963
|
await templateService.apiHandler({
|
|
2765
|
-
methodName: '
|
|
2964
|
+
methodName: 'getVdi',
|
|
2766
2965
|
controller,
|
|
2767
2966
|
response,
|
|
2768
2967
|
next,
|
|
@@ -2775,25 +2974,26 @@ export function RegisterRoutes(app) {
|
|
|
2775
2974
|
}
|
|
2776
2975
|
});
|
|
2777
2976
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2778
|
-
const
|
|
2977
|
+
const argsVdiController_getVdiAlarms = {
|
|
2779
2978
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2979
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2780
2980
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
2781
2981
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2782
2982
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2783
2983
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2784
2984
|
};
|
|
2785
|
-
app.get('/rest/v0/
|
|
2985
|
+
app.get('/rest/v0/vdis/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiAlarms)), async function VdiController_getVdiAlarms(request, response, next) {
|
|
2786
2986
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2787
2987
|
let validatedArgs = [];
|
|
2788
2988
|
try {
|
|
2789
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
2989
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiAlarms, request, response });
|
|
2790
2990
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2791
|
-
const controller = await container.get(
|
|
2991
|
+
const controller = await container.get(VdiController);
|
|
2792
2992
|
if (typeof controller['setStatus'] === 'function') {
|
|
2793
2993
|
controller.setStatus(undefined);
|
|
2794
2994
|
}
|
|
2795
2995
|
await templateService.apiHandler({
|
|
2796
|
-
methodName: '
|
|
2996
|
+
methodName: 'getVdiAlarms',
|
|
2797
2997
|
controller,
|
|
2798
2998
|
response,
|
|
2799
2999
|
next,
|
|
@@ -2806,26 +3006,26 @@ export function RegisterRoutes(app) {
|
|
|
2806
3006
|
}
|
|
2807
3007
|
});
|
|
2808
3008
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2809
|
-
const
|
|
2810
|
-
|
|
3009
|
+
const argsVdiController_deleteVdi = {
|
|
3010
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2811
3011
|
};
|
|
2812
|
-
app.
|
|
3012
|
+
app.delete('/rest/v0/vdis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdi)), async function VdiController_deleteVdi(request, response, next) {
|
|
2813
3013
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2814
3014
|
let validatedArgs = [];
|
|
2815
3015
|
try {
|
|
2816
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3016
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdi, request, response });
|
|
2817
3017
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2818
|
-
const controller = await container.get(
|
|
3018
|
+
const controller = await container.get(VdiController);
|
|
2819
3019
|
if (typeof controller['setStatus'] === 'function') {
|
|
2820
3020
|
controller.setStatus(undefined);
|
|
2821
3021
|
}
|
|
2822
3022
|
await templateService.apiHandler({
|
|
2823
|
-
methodName: '
|
|
3023
|
+
methodName: 'deleteVdi',
|
|
2824
3024
|
controller,
|
|
2825
3025
|
response,
|
|
2826
3026
|
next,
|
|
2827
3027
|
validatedArgs,
|
|
2828
|
-
successStatus:
|
|
3028
|
+
successStatus: 204,
|
|
2829
3029
|
});
|
|
2830
3030
|
}
|
|
2831
3031
|
catch (err) {
|
|
@@ -2833,26 +3033,31 @@ export function RegisterRoutes(app) {
|
|
|
2833
3033
|
}
|
|
2834
3034
|
});
|
|
2835
3035
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2836
|
-
const
|
|
3036
|
+
const argsVdiController_getVdiMessages = {
|
|
2837
3037
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3038
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3039
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3040
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3041
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3042
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2838
3043
|
};
|
|
2839
|
-
app.get('/rest/v0/
|
|
3044
|
+
app.get('/rest/v0/vdis/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiMessages)), async function VdiController_getVdiMessages(request, response, next) {
|
|
2840
3045
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2841
3046
|
let validatedArgs = [];
|
|
2842
3047
|
try {
|
|
2843
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3048
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiMessages, request, response });
|
|
2844
3049
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2845
|
-
const controller = await container.get(
|
|
3050
|
+
const controller = await container.get(VdiController);
|
|
2846
3051
|
if (typeof controller['setStatus'] === 'function') {
|
|
2847
3052
|
controller.setStatus(undefined);
|
|
2848
3053
|
}
|
|
2849
3054
|
await templateService.apiHandler({
|
|
2850
|
-
methodName: '
|
|
3055
|
+
methodName: 'getVdiMessages',
|
|
2851
3056
|
controller,
|
|
2852
3057
|
response,
|
|
2853
3058
|
next,
|
|
2854
3059
|
validatedArgs,
|
|
2855
|
-
successStatus:
|
|
3060
|
+
successStatus: undefined,
|
|
2856
3061
|
});
|
|
2857
3062
|
}
|
|
2858
3063
|
catch (err) {
|
|
@@ -2860,21 +3065,26 @@ export function RegisterRoutes(app) {
|
|
|
2860
3065
|
}
|
|
2861
3066
|
});
|
|
2862
3067
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2863
|
-
const
|
|
3068
|
+
const argsVdiController_getVdiTasks = {
|
|
3069
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2864
3070
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3071
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3072
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3073
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3074
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2865
3075
|
};
|
|
2866
|
-
app.get('/rest/v0/
|
|
3076
|
+
app.get('/rest/v0/vdis/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.getVdiTasks)), async function VdiController_getVdiTasks(request, response, next) {
|
|
2867
3077
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2868
3078
|
let validatedArgs = [];
|
|
2869
3079
|
try {
|
|
2870
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3080
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_getVdiTasks, request, response });
|
|
2871
3081
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2872
|
-
const controller = await container.get(
|
|
3082
|
+
const controller = await container.get(VdiController);
|
|
2873
3083
|
if (typeof controller['setStatus'] === 'function') {
|
|
2874
3084
|
controller.setStatus(undefined);
|
|
2875
3085
|
}
|
|
2876
3086
|
await templateService.apiHandler({
|
|
2877
|
-
methodName: '
|
|
3087
|
+
methodName: 'getVdiTasks',
|
|
2878
3088
|
controller,
|
|
2879
3089
|
response,
|
|
2880
3090
|
next,
|
|
@@ -2887,22 +3097,22 @@ export function RegisterRoutes(app) {
|
|
|
2887
3097
|
}
|
|
2888
3098
|
});
|
|
2889
3099
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2890
|
-
const
|
|
3100
|
+
const argsVdiController_putVdiTag = {
|
|
2891
3101
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2892
|
-
|
|
3102
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
2893
3103
|
};
|
|
2894
|
-
app.
|
|
3104
|
+
app.put('/rest/v0/vdis/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.putVdiTag)), async function VdiController_putVdiTag(request, response, next) {
|
|
2895
3105
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2896
3106
|
let validatedArgs = [];
|
|
2897
3107
|
try {
|
|
2898
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3108
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_putVdiTag, request, response });
|
|
2899
3109
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2900
|
-
const controller = await container.get(
|
|
3110
|
+
const controller = await container.get(VdiController);
|
|
2901
3111
|
if (typeof controller['setStatus'] === 'function') {
|
|
2902
3112
|
controller.setStatus(undefined);
|
|
2903
3113
|
}
|
|
2904
3114
|
await templateService.apiHandler({
|
|
2905
|
-
methodName: '
|
|
3115
|
+
methodName: 'putVdiTag',
|
|
2906
3116
|
controller,
|
|
2907
3117
|
response,
|
|
2908
3118
|
next,
|
|
@@ -2915,26 +3125,27 @@ export function RegisterRoutes(app) {
|
|
|
2915
3125
|
}
|
|
2916
3126
|
});
|
|
2917
3127
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2918
|
-
const
|
|
2919
|
-
|
|
3128
|
+
const argsVdiController_deleteVdiTag = {
|
|
3129
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3130
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
2920
3131
|
};
|
|
2921
|
-
app.
|
|
3132
|
+
app.delete('/rest/v0/vdis/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiController)), ...(fetchMiddlewares(VdiController.prototype.deleteVdiTag)), async function VdiController_deleteVdiTag(request, response, next) {
|
|
2922
3133
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2923
3134
|
let validatedArgs = [];
|
|
2924
3135
|
try {
|
|
2925
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3136
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiController_deleteVdiTag, request, response });
|
|
2926
3137
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2927
|
-
const controller = await container.get(
|
|
3138
|
+
const controller = await container.get(VdiController);
|
|
2928
3139
|
if (typeof controller['setStatus'] === 'function') {
|
|
2929
3140
|
controller.setStatus(undefined);
|
|
2930
3141
|
}
|
|
2931
3142
|
await templateService.apiHandler({
|
|
2932
|
-
methodName: '
|
|
3143
|
+
methodName: 'deleteVdiTag',
|
|
2933
3144
|
controller,
|
|
2934
3145
|
response,
|
|
2935
3146
|
next,
|
|
2936
3147
|
validatedArgs,
|
|
2937
|
-
successStatus:
|
|
3148
|
+
successStatus: 204,
|
|
2938
3149
|
});
|
|
2939
3150
|
}
|
|
2940
3151
|
catch (err) {
|
|
@@ -2942,26 +3153,30 @@ export function RegisterRoutes(app) {
|
|
|
2942
3153
|
}
|
|
2943
3154
|
});
|
|
2944
3155
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2945
|
-
const
|
|
2946
|
-
|
|
3156
|
+
const argsVdiSnapshotController_getVdiSnapshots = {
|
|
3157
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3158
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3159
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3160
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3161
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
2947
3162
|
};
|
|
2948
|
-
app.
|
|
3163
|
+
app.get('/rest/v0/vdi-snapshots', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshots)), async function VdiSnapshotController_getVdiSnapshots(request, response, next) {
|
|
2949
3164
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2950
3165
|
let validatedArgs = [];
|
|
2951
3166
|
try {
|
|
2952
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3167
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshots, request, response });
|
|
2953
3168
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2954
|
-
const controller = await container.get(
|
|
3169
|
+
const controller = await container.get(VdiSnapshotController);
|
|
2955
3170
|
if (typeof controller['setStatus'] === 'function') {
|
|
2956
3171
|
controller.setStatus(undefined);
|
|
2957
3172
|
}
|
|
2958
3173
|
await templateService.apiHandler({
|
|
2959
|
-
methodName: '
|
|
3174
|
+
methodName: 'getVdiSnapshots',
|
|
2960
3175
|
controller,
|
|
2961
3176
|
response,
|
|
2962
3177
|
next,
|
|
2963
3178
|
validatedArgs,
|
|
2964
|
-
successStatus:
|
|
3179
|
+
successStatus: undefined,
|
|
2965
3180
|
});
|
|
2966
3181
|
}
|
|
2967
3182
|
catch (err) {
|
|
@@ -2969,31 +3184,28 @@ export function RegisterRoutes(app) {
|
|
|
2969
3184
|
}
|
|
2970
3185
|
});
|
|
2971
3186
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2972
|
-
const
|
|
3187
|
+
const argsVdiSnapshotController_exportVdiSnapshotContent = {
|
|
2973
3188
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
2974
3189
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2975
|
-
|
|
2976
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
2977
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
2978
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3190
|
+
format: { "in": "path", "name": "format", "required": true, "ref": "Exclude_SUPPORTED_VDI_FORMAT.qcow2_" },
|
|
2979
3191
|
};
|
|
2980
|
-
app.get('/rest/v0/
|
|
3192
|
+
app.get('/rest/v0/vdi-snapshots/:id.:format', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.exportVdiSnapshotContent)), async function VdiSnapshotController_exportVdiSnapshotContent(request, response, next) {
|
|
2981
3193
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2982
3194
|
let validatedArgs = [];
|
|
2983
3195
|
try {
|
|
2984
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3196
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_exportVdiSnapshotContent, request, response });
|
|
2985
3197
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
2986
|
-
const controller = await container.get(
|
|
3198
|
+
const controller = await container.get(VdiSnapshotController);
|
|
2987
3199
|
if (typeof controller['setStatus'] === 'function') {
|
|
2988
3200
|
controller.setStatus(undefined);
|
|
2989
3201
|
}
|
|
2990
3202
|
await templateService.apiHandler({
|
|
2991
|
-
methodName: '
|
|
3203
|
+
methodName: 'exportVdiSnapshotContent',
|
|
2992
3204
|
controller,
|
|
2993
3205
|
response,
|
|
2994
3206
|
next,
|
|
2995
3207
|
validatedArgs,
|
|
2996
|
-
successStatus:
|
|
3208
|
+
successStatus: 200,
|
|
2997
3209
|
});
|
|
2998
3210
|
}
|
|
2999
3211
|
catch (err) {
|
|
@@ -3001,24 +3213,21 @@ export function RegisterRoutes(app) {
|
|
|
3001
3213
|
}
|
|
3002
3214
|
});
|
|
3003
3215
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3004
|
-
const
|
|
3005
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3216
|
+
const argsVdiSnapshotController_getVdiSnapshot = {
|
|
3006
3217
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3007
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3008
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3009
3218
|
};
|
|
3010
|
-
app.get('/rest/v0/
|
|
3219
|
+
app.get('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshot)), async function VdiSnapshotController_getVdiSnapshot(request, response, next) {
|
|
3011
3220
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3012
3221
|
let validatedArgs = [];
|
|
3013
3222
|
try {
|
|
3014
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3223
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshot, request, response });
|
|
3015
3224
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3016
|
-
const controller = await container.get(
|
|
3225
|
+
const controller = await container.get(VdiSnapshotController);
|
|
3017
3226
|
if (typeof controller['setStatus'] === 'function') {
|
|
3018
3227
|
controller.setStatus(undefined);
|
|
3019
3228
|
}
|
|
3020
3229
|
await templateService.apiHandler({
|
|
3021
|
-
methodName: '
|
|
3230
|
+
methodName: 'getVdiSnapshot',
|
|
3022
3231
|
controller,
|
|
3023
3232
|
response,
|
|
3024
3233
|
next,
|
|
@@ -3031,26 +3240,26 @@ export function RegisterRoutes(app) {
|
|
|
3031
3240
|
}
|
|
3032
3241
|
});
|
|
3033
3242
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3034
|
-
const
|
|
3243
|
+
const argsVdiSnapshotController_getVdiSnapshotAlarms = {
|
|
3035
3244
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3245
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3036
3246
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3037
3247
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3038
|
-
watch: { "in": "query", "name": "watch", "dataType": "boolean" },
|
|
3039
3248
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3040
3249
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3041
3250
|
};
|
|
3042
|
-
app.get('/rest/v0/
|
|
3251
|
+
app.get('/rest/v0/vdi-snapshots/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotAlarms)), async function VdiSnapshotController_getVdiSnapshotAlarms(request, response, next) {
|
|
3043
3252
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3044
3253
|
let validatedArgs = [];
|
|
3045
3254
|
try {
|
|
3046
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3255
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotAlarms, request, response });
|
|
3047
3256
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3048
|
-
const controller = await container.get(
|
|
3257
|
+
const controller = await container.get(VdiSnapshotController);
|
|
3049
3258
|
if (typeof controller['setStatus'] === 'function') {
|
|
3050
3259
|
controller.setStatus(undefined);
|
|
3051
3260
|
}
|
|
3052
3261
|
await templateService.apiHandler({
|
|
3053
|
-
methodName: '
|
|
3262
|
+
methodName: 'getVdiSnapshotAlarms',
|
|
3054
3263
|
controller,
|
|
3055
3264
|
response,
|
|
3056
3265
|
next,
|
|
@@ -3063,48 +3272,21 @@ export function RegisterRoutes(app) {
|
|
|
3063
3272
|
}
|
|
3064
3273
|
});
|
|
3065
3274
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3066
|
-
const
|
|
3067
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3275
|
+
const argsVdiSnapshotController_deleteVdiSnapshot = {
|
|
3068
3276
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3069
|
-
wait: { "in": "query", "name": "wait", "dataType": "boolean" },
|
|
3070
3277
|
};
|
|
3071
|
-
app.
|
|
3072
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3073
|
-
let validatedArgs = [];
|
|
3074
|
-
try {
|
|
3075
|
-
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
|
|
3076
|
-
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3077
|
-
const controller = await container.get(TaskController);
|
|
3078
|
-
if (typeof controller['setStatus'] === 'function') {
|
|
3079
|
-
controller.setStatus(undefined);
|
|
3080
|
-
}
|
|
3081
|
-
await templateService.apiHandler({
|
|
3082
|
-
methodName: 'getTask',
|
|
3083
|
-
controller,
|
|
3084
|
-
response,
|
|
3085
|
-
next,
|
|
3086
|
-
validatedArgs,
|
|
3087
|
-
successStatus: undefined,
|
|
3088
|
-
});
|
|
3089
|
-
}
|
|
3090
|
-
catch (err) {
|
|
3091
|
-
return next(err);
|
|
3092
|
-
}
|
|
3093
|
-
});
|
|
3094
|
-
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3095
|
-
const argsTaskController_deleteTasks = {};
|
|
3096
|
-
app.delete('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTasks)), async function TaskController_deleteTasks(request, response, next) {
|
|
3278
|
+
app.delete('/rest/v0/vdi-snapshots/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshot)), async function VdiSnapshotController_deleteVdiSnapshot(request, response, next) {
|
|
3097
3279
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3098
3280
|
let validatedArgs = [];
|
|
3099
3281
|
try {
|
|
3100
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3282
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshot, request, response });
|
|
3101
3283
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3102
|
-
const controller = await container.get(
|
|
3284
|
+
const controller = await container.get(VdiSnapshotController);
|
|
3103
3285
|
if (typeof controller['setStatus'] === 'function') {
|
|
3104
3286
|
controller.setStatus(undefined);
|
|
3105
3287
|
}
|
|
3106
3288
|
await templateService.apiHandler({
|
|
3107
|
-
methodName: '
|
|
3289
|
+
methodName: 'deleteVdiSnapshot',
|
|
3108
3290
|
controller,
|
|
3109
3291
|
response,
|
|
3110
3292
|
next,
|
|
@@ -3117,26 +3299,31 @@ export function RegisterRoutes(app) {
|
|
|
3117
3299
|
}
|
|
3118
3300
|
});
|
|
3119
3301
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3120
|
-
const
|
|
3302
|
+
const argsVdiSnapshotController_getVdiSnapshotMessages = {
|
|
3303
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3121
3304
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3305
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3306
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3307
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3308
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3122
3309
|
};
|
|
3123
|
-
app.
|
|
3310
|
+
app.get('/rest/v0/vdi-snapshots/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotMessages)), async function VdiSnapshotController_getVdiSnapshotMessages(request, response, next) {
|
|
3124
3311
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3125
3312
|
let validatedArgs = [];
|
|
3126
3313
|
try {
|
|
3127
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3314
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotMessages, request, response });
|
|
3128
3315
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3129
|
-
const controller = await container.get(
|
|
3316
|
+
const controller = await container.get(VdiSnapshotController);
|
|
3130
3317
|
if (typeof controller['setStatus'] === 'function') {
|
|
3131
3318
|
controller.setStatus(undefined);
|
|
3132
3319
|
}
|
|
3133
3320
|
await templateService.apiHandler({
|
|
3134
|
-
methodName: '
|
|
3321
|
+
methodName: 'getVdiSnapshotMessages',
|
|
3135
3322
|
controller,
|
|
3136
3323
|
response,
|
|
3137
3324
|
next,
|
|
3138
3325
|
validatedArgs,
|
|
3139
|
-
successStatus:
|
|
3326
|
+
successStatus: undefined,
|
|
3140
3327
|
});
|
|
3141
3328
|
}
|
|
3142
3329
|
catch (err) {
|
|
@@ -3144,27 +3331,31 @@ export function RegisterRoutes(app) {
|
|
|
3144
3331
|
}
|
|
3145
3332
|
});
|
|
3146
3333
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3147
|
-
const
|
|
3334
|
+
const argsVdiSnapshotController_getVdiSnapshotTasks = {
|
|
3335
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3148
3336
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3149
|
-
|
|
3337
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3338
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3339
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3340
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3150
3341
|
};
|
|
3151
|
-
app.
|
|
3342
|
+
app.get('/rest/v0/vdi-snapshots/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.getVdiSnapshotTasks)), async function VdiSnapshotController_getVdiSnapshotTasks(request, response, next) {
|
|
3152
3343
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3153
3344
|
let validatedArgs = [];
|
|
3154
3345
|
try {
|
|
3155
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3346
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_getVdiSnapshotTasks, request, response });
|
|
3156
3347
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3157
|
-
const controller = await container.get(
|
|
3348
|
+
const controller = await container.get(VdiSnapshotController);
|
|
3158
3349
|
if (typeof controller['setStatus'] === 'function') {
|
|
3159
3350
|
controller.setStatus(undefined);
|
|
3160
3351
|
}
|
|
3161
3352
|
await templateService.apiHandler({
|
|
3162
|
-
methodName: '
|
|
3353
|
+
methodName: 'getVdiSnapshotTasks',
|
|
3163
3354
|
controller,
|
|
3164
3355
|
response,
|
|
3165
3356
|
next,
|
|
3166
3357
|
validatedArgs,
|
|
3167
|
-
successStatus:
|
|
3358
|
+
successStatus: undefined,
|
|
3168
3359
|
});
|
|
3169
3360
|
}
|
|
3170
3361
|
catch (err) {
|
|
@@ -3172,30 +3363,27 @@ export function RegisterRoutes(app) {
|
|
|
3172
3363
|
}
|
|
3173
3364
|
});
|
|
3174
3365
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3175
|
-
const
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3179
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3180
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3366
|
+
const argsVdiSnapshotController_putVdiSnapshotTag = {
|
|
3367
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3368
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
3181
3369
|
};
|
|
3182
|
-
app.
|
|
3370
|
+
app.put('/rest/v0/vdi-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.putVdiSnapshotTag)), async function VdiSnapshotController_putVdiSnapshotTag(request, response, next) {
|
|
3183
3371
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3184
3372
|
let validatedArgs = [];
|
|
3185
3373
|
try {
|
|
3186
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3374
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_putVdiSnapshotTag, request, response });
|
|
3187
3375
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3188
|
-
const controller = await container.get(
|
|
3376
|
+
const controller = await container.get(VdiSnapshotController);
|
|
3189
3377
|
if (typeof controller['setStatus'] === 'function') {
|
|
3190
3378
|
controller.setStatus(undefined);
|
|
3191
3379
|
}
|
|
3192
3380
|
await templateService.apiHandler({
|
|
3193
|
-
methodName: '
|
|
3381
|
+
methodName: 'putVdiSnapshotTag',
|
|
3194
3382
|
controller,
|
|
3195
3383
|
response,
|
|
3196
3384
|
next,
|
|
3197
3385
|
validatedArgs,
|
|
3198
|
-
successStatus:
|
|
3386
|
+
successStatus: 204,
|
|
3199
3387
|
});
|
|
3200
3388
|
}
|
|
3201
3389
|
catch (err) {
|
|
@@ -3203,26 +3391,27 @@ export function RegisterRoutes(app) {
|
|
|
3203
3391
|
}
|
|
3204
3392
|
});
|
|
3205
3393
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3206
|
-
const
|
|
3394
|
+
const argsVdiSnapshotController_deleteVdiSnapshotTag = {
|
|
3207
3395
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3396
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
3208
3397
|
};
|
|
3209
|
-
app.
|
|
3398
|
+
app.delete('/rest/v0/vdi-snapshots/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VdiSnapshotController)), ...(fetchMiddlewares(VdiSnapshotController.prototype.deleteVdiSnapshotTag)), async function VdiSnapshotController_deleteVdiSnapshotTag(request, response, next) {
|
|
3210
3399
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3211
3400
|
let validatedArgs = [];
|
|
3212
3401
|
try {
|
|
3213
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3402
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVdiSnapshotController_deleteVdiSnapshotTag, request, response });
|
|
3214
3403
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3215
|
-
const controller = await container.get(
|
|
3404
|
+
const controller = await container.get(VdiSnapshotController);
|
|
3216
3405
|
if (typeof controller['setStatus'] === 'function') {
|
|
3217
3406
|
controller.setStatus(undefined);
|
|
3218
3407
|
}
|
|
3219
3408
|
await templateService.apiHandler({
|
|
3220
|
-
methodName: '
|
|
3409
|
+
methodName: 'deleteVdiSnapshotTag',
|
|
3221
3410
|
controller,
|
|
3222
3411
|
response,
|
|
3223
3412
|
next,
|
|
3224
3413
|
validatedArgs,
|
|
3225
|
-
successStatus:
|
|
3414
|
+
successStatus: 204,
|
|
3226
3415
|
});
|
|
3227
3416
|
}
|
|
3228
3417
|
catch (err) {
|
|
@@ -3230,26 +3419,25 @@ export function RegisterRoutes(app) {
|
|
|
3230
3419
|
}
|
|
3231
3420
|
});
|
|
3232
3421
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3233
|
-
const
|
|
3422
|
+
const argsVbdController_getVbds = {
|
|
3234
3423
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3235
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3236
3424
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3237
3425
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3238
3426
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3239
3427
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3240
3428
|
};
|
|
3241
|
-
app.get('/rest/v0/
|
|
3429
|
+
app.get('/rest/v0/vbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbds)), async function VbdController_getVbds(request, response, next) {
|
|
3242
3430
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3243
3431
|
let validatedArgs = [];
|
|
3244
3432
|
try {
|
|
3245
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3433
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbds, request, response });
|
|
3246
3434
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3247
|
-
const controller = await container.get(
|
|
3435
|
+
const controller = await container.get(VbdController);
|
|
3248
3436
|
if (typeof controller['setStatus'] === 'function') {
|
|
3249
3437
|
controller.setStatus(undefined);
|
|
3250
3438
|
}
|
|
3251
3439
|
await templateService.apiHandler({
|
|
3252
|
-
methodName: '
|
|
3440
|
+
methodName: 'getVbds',
|
|
3253
3441
|
controller,
|
|
3254
3442
|
response,
|
|
3255
3443
|
next,
|
|
@@ -3262,30 +3450,26 @@ export function RegisterRoutes(app) {
|
|
|
3262
3450
|
}
|
|
3263
3451
|
});
|
|
3264
3452
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3265
|
-
const
|
|
3266
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3453
|
+
const argsVbdController_getVbd = {
|
|
3267
3454
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3268
|
-
name_label: { "in": "query", "name": "name_label", "dataType": "string" },
|
|
3269
|
-
name_description: { "in": "query", "name": "name_description", "dataType": "string" },
|
|
3270
|
-
raw: { "in": "query", "name": "raw", "dataType": "boolean" },
|
|
3271
3455
|
};
|
|
3272
|
-
app.
|
|
3456
|
+
app.get('/rest/v0/vbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbd)), async function VbdController_getVbd(request, response, next) {
|
|
3273
3457
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3274
3458
|
let validatedArgs = [];
|
|
3275
3459
|
try {
|
|
3276
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3460
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbd, request, response });
|
|
3277
3461
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3278
|
-
const controller = await container.get(
|
|
3462
|
+
const controller = await container.get(VbdController);
|
|
3279
3463
|
if (typeof controller['setStatus'] === 'function') {
|
|
3280
3464
|
controller.setStatus(undefined);
|
|
3281
3465
|
}
|
|
3282
3466
|
await templateService.apiHandler({
|
|
3283
|
-
methodName: '
|
|
3467
|
+
methodName: 'getVbd',
|
|
3284
3468
|
controller,
|
|
3285
3469
|
response,
|
|
3286
3470
|
next,
|
|
3287
3471
|
validatedArgs,
|
|
3288
|
-
successStatus:
|
|
3472
|
+
successStatus: undefined,
|
|
3289
3473
|
});
|
|
3290
3474
|
}
|
|
3291
3475
|
catch (err) {
|
|
@@ -3293,7 +3477,7 @@ export function RegisterRoutes(app) {
|
|
|
3293
3477
|
}
|
|
3294
3478
|
});
|
|
3295
3479
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3296
|
-
const
|
|
3480
|
+
const argsVbdController_getVbdAlarms = {
|
|
3297
3481
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3298
3482
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3299
3483
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -3301,18 +3485,18 @@ export function RegisterRoutes(app) {
|
|
|
3301
3485
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3302
3486
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3303
3487
|
};
|
|
3304
|
-
app.get('/rest/v0/
|
|
3488
|
+
app.get('/rest/v0/vbds/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdAlarms)), async function VbdController_getVbdAlarms(request, response, next) {
|
|
3305
3489
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3306
3490
|
let validatedArgs = [];
|
|
3307
3491
|
try {
|
|
3308
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3492
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdAlarms, request, response });
|
|
3309
3493
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3310
|
-
const controller = await container.get(
|
|
3494
|
+
const controller = await container.get(VbdController);
|
|
3311
3495
|
if (typeof controller['setStatus'] === 'function') {
|
|
3312
3496
|
controller.setStatus(undefined);
|
|
3313
3497
|
}
|
|
3314
3498
|
await templateService.apiHandler({
|
|
3315
|
-
methodName: '
|
|
3499
|
+
methodName: 'getVbdAlarms',
|
|
3316
3500
|
controller,
|
|
3317
3501
|
response,
|
|
3318
3502
|
next,
|
|
@@ -3325,25 +3509,26 @@ export function RegisterRoutes(app) {
|
|
|
3325
3509
|
}
|
|
3326
3510
|
});
|
|
3327
3511
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3328
|
-
const
|
|
3512
|
+
const argsVbdController_getVbdMessages = {
|
|
3329
3513
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3514
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3330
3515
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3331
3516
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3332
3517
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3333
3518
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3334
3519
|
};
|
|
3335
|
-
app.get('/rest/v0/
|
|
3520
|
+
app.get('/rest/v0/vbds/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdMessages)), async function VbdController_getVbdMessages(request, response, next) {
|
|
3336
3521
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3337
3522
|
let validatedArgs = [];
|
|
3338
3523
|
try {
|
|
3339
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3524
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdMessages, request, response });
|
|
3340
3525
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3341
|
-
const controller = await container.get(
|
|
3526
|
+
const controller = await container.get(VbdController);
|
|
3342
3527
|
if (typeof controller['setStatus'] === 'function') {
|
|
3343
3528
|
controller.setStatus(undefined);
|
|
3344
3529
|
}
|
|
3345
3530
|
await templateService.apiHandler({
|
|
3346
|
-
methodName: '
|
|
3531
|
+
methodName: 'getVbdMessages',
|
|
3347
3532
|
controller,
|
|
3348
3533
|
response,
|
|
3349
3534
|
next,
|
|
@@ -3356,21 +3541,26 @@ export function RegisterRoutes(app) {
|
|
|
3356
3541
|
}
|
|
3357
3542
|
});
|
|
3358
3543
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3359
|
-
const
|
|
3544
|
+
const argsVbdController_getVbdTasks = {
|
|
3545
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3360
3546
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3547
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3548
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3549
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3550
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3361
3551
|
};
|
|
3362
|
-
app.get('/rest/v0/
|
|
3552
|
+
app.get('/rest/v0/vbds/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(VbdController)), ...(fetchMiddlewares(VbdController.prototype.getVbdTasks)), async function VbdController_getVbdTasks(request, response, next) {
|
|
3363
3553
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3364
3554
|
let validatedArgs = [];
|
|
3365
3555
|
try {
|
|
3366
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3556
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsVbdController_getVbdTasks, request, response });
|
|
3367
3557
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3368
|
-
const controller = await container.get(
|
|
3558
|
+
const controller = await container.get(VbdController);
|
|
3369
3559
|
if (typeof controller['setStatus'] === 'function') {
|
|
3370
3560
|
controller.setStatus(undefined);
|
|
3371
3561
|
}
|
|
3372
3562
|
await templateService.apiHandler({
|
|
3373
|
-
methodName: '
|
|
3563
|
+
methodName: 'getVbdTasks',
|
|
3374
3564
|
controller,
|
|
3375
3565
|
response,
|
|
3376
3566
|
next,
|
|
@@ -3383,25 +3573,25 @@ export function RegisterRoutes(app) {
|
|
|
3383
3573
|
}
|
|
3384
3574
|
});
|
|
3385
3575
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3386
|
-
const
|
|
3576
|
+
const argsUserController_getUsers = {
|
|
3387
3577
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3388
3578
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3389
3579
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3390
3580
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3391
3581
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3392
3582
|
};
|
|
3393
|
-
app.get('/rest/v0/
|
|
3583
|
+
app.get('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUsers)), async function UserController_getUsers(request, response, next) {
|
|
3394
3584
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3395
3585
|
let validatedArgs = [];
|
|
3396
3586
|
try {
|
|
3397
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3587
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUsers, request, response });
|
|
3398
3588
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3399
|
-
const controller = await container.get(
|
|
3589
|
+
const controller = await container.get(UserController);
|
|
3400
3590
|
if (typeof controller['setStatus'] === 'function') {
|
|
3401
3591
|
controller.setStatus(undefined);
|
|
3402
3592
|
}
|
|
3403
3593
|
await templateService.apiHandler({
|
|
3404
|
-
methodName: '
|
|
3594
|
+
methodName: 'getUsers',
|
|
3405
3595
|
controller,
|
|
3406
3596
|
response,
|
|
3407
3597
|
next,
|
|
@@ -3414,21 +3604,21 @@ export function RegisterRoutes(app) {
|
|
|
3414
3604
|
}
|
|
3415
3605
|
});
|
|
3416
3606
|
// WARNING: This 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
|
-
const
|
|
3607
|
+
const argsUserController_getUser = {
|
|
3418
3608
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3419
3609
|
};
|
|
3420
|
-
app.get('/rest/v0/
|
|
3610
|
+
app.get('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUser)), async function UserController_getUser(request, response, next) {
|
|
3421
3611
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3422
3612
|
let validatedArgs = [];
|
|
3423
3613
|
try {
|
|
3424
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3614
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUser, request, response });
|
|
3425
3615
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3426
|
-
const controller = await container.get(
|
|
3616
|
+
const controller = await container.get(UserController);
|
|
3427
3617
|
if (typeof controller['setStatus'] === 'function') {
|
|
3428
3618
|
controller.setStatus(undefined);
|
|
3429
3619
|
}
|
|
3430
3620
|
await templateService.apiHandler({
|
|
3431
|
-
methodName: '
|
|
3621
|
+
methodName: 'getUser',
|
|
3432
3622
|
controller,
|
|
3433
3623
|
response,
|
|
3434
3624
|
next,
|
|
@@ -3441,21 +3631,22 @@ export function RegisterRoutes(app) {
|
|
|
3441
3631
|
}
|
|
3442
3632
|
});
|
|
3443
3633
|
// WARNING: This 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
|
-
const
|
|
3634
|
+
const argsUserController_updateUser = {
|
|
3445
3635
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3636
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserRequestBody" },
|
|
3446
3637
|
};
|
|
3447
|
-
app.
|
|
3638
|
+
app.patch('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updateUser)), async function UserController_updateUser(request, response, next) {
|
|
3448
3639
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3449
3640
|
let validatedArgs = [];
|
|
3450
3641
|
try {
|
|
3451
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3642
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, request, response });
|
|
3452
3643
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3453
|
-
const controller = await container.get(
|
|
3644
|
+
const controller = await container.get(UserController);
|
|
3454
3645
|
if (typeof controller['setStatus'] === 'function') {
|
|
3455
3646
|
controller.setStatus(undefined);
|
|
3456
3647
|
}
|
|
3457
3648
|
await templateService.apiHandler({
|
|
3458
|
-
methodName: '
|
|
3649
|
+
methodName: 'updateUser',
|
|
3459
3650
|
controller,
|
|
3460
3651
|
response,
|
|
3461
3652
|
next,
|
|
@@ -3468,21 +3659,21 @@ export function RegisterRoutes(app) {
|
|
|
3468
3659
|
}
|
|
3469
3660
|
});
|
|
3470
3661
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3471
|
-
const
|
|
3472
|
-
body: { "in": "body", "name": "body", "required": true, "
|
|
3662
|
+
const argsUserController_createUser = {
|
|
3663
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "permission": { "dataType": "string" }, "password": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true } } },
|
|
3473
3664
|
};
|
|
3474
|
-
app.post('/rest/v0/
|
|
3665
|
+
app.post('/rest/v0/users', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.createUser)), async function UserController_createUser(request, response, next) {
|
|
3475
3666
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3476
3667
|
let validatedArgs = [];
|
|
3477
3668
|
try {
|
|
3478
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3669
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, request, response });
|
|
3479
3670
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3480
|
-
const controller = await container.get(
|
|
3671
|
+
const controller = await container.get(UserController);
|
|
3481
3672
|
if (typeof controller['setStatus'] === 'function') {
|
|
3482
3673
|
controller.setStatus(undefined);
|
|
3483
3674
|
}
|
|
3484
3675
|
await templateService.apiHandler({
|
|
3485
|
-
methodName: '
|
|
3676
|
+
methodName: 'createUser',
|
|
3486
3677
|
controller,
|
|
3487
3678
|
response,
|
|
3488
3679
|
next,
|
|
@@ -3495,27 +3686,26 @@ export function RegisterRoutes(app) {
|
|
|
3495
3686
|
}
|
|
3496
3687
|
});
|
|
3497
3688
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3498
|
-
const
|
|
3689
|
+
const argsUserController_deleteUser = {
|
|
3499
3690
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3500
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3501
3691
|
};
|
|
3502
|
-
app.
|
|
3692
|
+
app.delete('/rest/v0/users/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.deleteUser)), async function UserController_deleteUser(request, response, next) {
|
|
3503
3693
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3504
3694
|
let validatedArgs = [];
|
|
3505
3695
|
try {
|
|
3506
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3696
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, request, response });
|
|
3507
3697
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3508
|
-
const controller = await container.get(
|
|
3698
|
+
const controller = await container.get(UserController);
|
|
3509
3699
|
if (typeof controller['setStatus'] === 'function') {
|
|
3510
3700
|
controller.setStatus(undefined);
|
|
3511
3701
|
}
|
|
3512
3702
|
await templateService.apiHandler({
|
|
3513
|
-
methodName: '
|
|
3703
|
+
methodName: 'deleteUser',
|
|
3514
3704
|
controller,
|
|
3515
3705
|
response,
|
|
3516
3706
|
next,
|
|
3517
3707
|
validatedArgs,
|
|
3518
|
-
successStatus:
|
|
3708
|
+
successStatus: 204,
|
|
3519
3709
|
});
|
|
3520
3710
|
}
|
|
3521
3711
|
catch (err) {
|
|
@@ -3523,27 +3713,31 @@ export function RegisterRoutes(app) {
|
|
|
3523
3713
|
}
|
|
3524
3714
|
});
|
|
3525
3715
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3526
|
-
const
|
|
3716
|
+
const argsUserController_getUserGroups = {
|
|
3717
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3527
3718
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3528
|
-
|
|
3719
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3720
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3721
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3722
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3529
3723
|
};
|
|
3530
|
-
app.
|
|
3724
|
+
app.get('/rest/v0/users/:id/groups', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserGroups)), async function UserController_getUserGroups(request, response, next) {
|
|
3531
3725
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3532
3726
|
let validatedArgs = [];
|
|
3533
3727
|
try {
|
|
3534
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3728
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserGroups, request, response });
|
|
3535
3729
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3536
|
-
const controller = await container.get(
|
|
3730
|
+
const controller = await container.get(UserController);
|
|
3537
3731
|
if (typeof controller['setStatus'] === 'function') {
|
|
3538
3732
|
controller.setStatus(undefined);
|
|
3539
3733
|
}
|
|
3540
3734
|
await templateService.apiHandler({
|
|
3541
|
-
methodName: '
|
|
3735
|
+
methodName: 'getUserGroups',
|
|
3542
3736
|
controller,
|
|
3543
3737
|
response,
|
|
3544
3738
|
next,
|
|
3545
3739
|
validatedArgs,
|
|
3546
|
-
successStatus:
|
|
3740
|
+
successStatus: undefined,
|
|
3547
3741
|
});
|
|
3548
3742
|
}
|
|
3549
3743
|
catch (err) {
|
|
@@ -3551,25 +3745,24 @@ export function RegisterRoutes(app) {
|
|
|
3551
3745
|
}
|
|
3552
3746
|
});
|
|
3553
3747
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3554
|
-
const
|
|
3748
|
+
const argsUserController_getAuthenticationTokens = {
|
|
3555
3749
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3556
|
-
|
|
3557
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3750
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3558
3751
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3559
3752
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3560
3753
|
};
|
|
3561
|
-
app.get('/rest/v0/
|
|
3754
|
+
app.get('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getAuthenticationTokens)), async function UserController_getAuthenticationTokens(request, response, next) {
|
|
3562
3755
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3563
3756
|
let validatedArgs = [];
|
|
3564
3757
|
try {
|
|
3565
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3758
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAuthenticationTokens, request, response });
|
|
3566
3759
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3567
|
-
const controller = await container.get(
|
|
3760
|
+
const controller = await container.get(UserController);
|
|
3568
3761
|
if (typeof controller['setStatus'] === 'function') {
|
|
3569
3762
|
controller.setStatus(undefined);
|
|
3570
3763
|
}
|
|
3571
3764
|
await templateService.apiHandler({
|
|
3572
|
-
methodName: '
|
|
3765
|
+
methodName: 'getAuthenticationTokens',
|
|
3573
3766
|
controller,
|
|
3574
3767
|
response,
|
|
3575
3768
|
next,
|
|
@@ -3582,21 +3775,26 @@ export function RegisterRoutes(app) {
|
|
|
3582
3775
|
}
|
|
3583
3776
|
});
|
|
3584
3777
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3585
|
-
const
|
|
3778
|
+
const argsUserController_getUserTasks = {
|
|
3779
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3586
3780
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3781
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3782
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3783
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3784
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3587
3785
|
};
|
|
3588
|
-
app.get('/rest/v0/
|
|
3786
|
+
app.get('/rest/v0/users/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserTasks)), async function UserController_getUserTasks(request, response, next) {
|
|
3589
3787
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3590
3788
|
let validatedArgs = [];
|
|
3591
3789
|
try {
|
|
3592
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3790
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserTasks, request, response });
|
|
3593
3791
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3594
|
-
const controller = await container.get(
|
|
3792
|
+
const controller = await container.get(UserController);
|
|
3595
3793
|
if (typeof controller['setStatus'] === 'function') {
|
|
3596
3794
|
controller.setStatus(undefined);
|
|
3597
3795
|
}
|
|
3598
3796
|
await templateService.apiHandler({
|
|
3599
|
-
methodName: '
|
|
3797
|
+
methodName: 'getUserTasks',
|
|
3600
3798
|
controller,
|
|
3601
3799
|
response,
|
|
3602
3800
|
next,
|
|
@@ -3609,27 +3807,26 @@ export function RegisterRoutes(app) {
|
|
|
3609
3807
|
}
|
|
3610
3808
|
});
|
|
3611
3809
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3612
|
-
const
|
|
3613
|
-
|
|
3614
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3810
|
+
const argsUserController_postDeprecatedAuthenticationTokens = {
|
|
3811
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "expiresIn": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "double" }] }, "description": { "dataType": "string" }, "client": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "string" } } } } },
|
|
3615
3812
|
};
|
|
3616
|
-
app.post('/rest/v0/
|
|
3813
|
+
app.post('/rest/v0/users/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.postDeprecatedAuthenticationTokens)), async function UserController_postDeprecatedAuthenticationTokens(request, response, next) {
|
|
3617
3814
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3618
3815
|
let validatedArgs = [];
|
|
3619
3816
|
try {
|
|
3620
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3817
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_postDeprecatedAuthenticationTokens, request, response });
|
|
3621
3818
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3622
|
-
const controller = await container.get(
|
|
3819
|
+
const controller = await container.get(UserController);
|
|
3623
3820
|
if (typeof controller['setStatus'] === 'function') {
|
|
3624
3821
|
controller.setStatus(undefined);
|
|
3625
3822
|
}
|
|
3626
3823
|
await templateService.apiHandler({
|
|
3627
|
-
methodName: '
|
|
3824
|
+
methodName: 'postDeprecatedAuthenticationTokens',
|
|
3628
3825
|
controller,
|
|
3629
3826
|
response,
|
|
3630
3827
|
next,
|
|
3631
3828
|
validatedArgs,
|
|
3632
|
-
successStatus:
|
|
3829
|
+
successStatus: 201,
|
|
3633
3830
|
});
|
|
3634
3831
|
}
|
|
3635
3832
|
catch (err) {
|
|
@@ -3637,20 +3834,774 @@ export function RegisterRoutes(app) {
|
|
|
3637
3834
|
}
|
|
3638
3835
|
});
|
|
3639
3836
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3640
|
-
const
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3644
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3645
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3837
|
+
const argsUserController_postAuthenticationTokens = {
|
|
3838
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "expiresIn": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "double" }] }, "description": { "dataType": "string" }, "client": { "dataType": "nestedObjectLiteral", "nestedProperties": { "id": { "dataType": "enum", "enums": ["string"] } } } } },
|
|
3839
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3646
3840
|
};
|
|
3647
|
-
app.
|
|
3841
|
+
app.post('/rest/v0/users/:id/authentication_tokens', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.postAuthenticationTokens)), async function UserController_postAuthenticationTokens(request, response, next) {
|
|
3648
3842
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3649
3843
|
let validatedArgs = [];
|
|
3650
3844
|
try {
|
|
3651
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
3845
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_postAuthenticationTokens, request, response });
|
|
3652
3846
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3653
|
-
const controller = await container.get(
|
|
3847
|
+
const controller = await container.get(UserController);
|
|
3848
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3849
|
+
controller.setStatus(undefined);
|
|
3850
|
+
}
|
|
3851
|
+
await templateService.apiHandler({
|
|
3852
|
+
methodName: 'postAuthenticationTokens',
|
|
3853
|
+
controller,
|
|
3854
|
+
response,
|
|
3855
|
+
next,
|
|
3856
|
+
validatedArgs,
|
|
3857
|
+
successStatus: 201,
|
|
3858
|
+
});
|
|
3859
|
+
}
|
|
3860
|
+
catch (err) {
|
|
3861
|
+
return next(err);
|
|
3862
|
+
}
|
|
3863
|
+
});
|
|
3864
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3865
|
+
const argsTaskController_getTasks = {
|
|
3866
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3867
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3868
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3869
|
+
watch: { "in": "query", "name": "watch", "dataType": "boolean" },
|
|
3870
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3871
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3872
|
+
};
|
|
3873
|
+
app.get('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTasks)), async function TaskController_getTasks(request, response, next) {
|
|
3874
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3875
|
+
let validatedArgs = [];
|
|
3876
|
+
try {
|
|
3877
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTasks, request, response });
|
|
3878
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3879
|
+
const controller = await container.get(TaskController);
|
|
3880
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3881
|
+
controller.setStatus(undefined);
|
|
3882
|
+
}
|
|
3883
|
+
await templateService.apiHandler({
|
|
3884
|
+
methodName: 'getTasks',
|
|
3885
|
+
controller,
|
|
3886
|
+
response,
|
|
3887
|
+
next,
|
|
3888
|
+
validatedArgs,
|
|
3889
|
+
successStatus: undefined,
|
|
3890
|
+
});
|
|
3891
|
+
}
|
|
3892
|
+
catch (err) {
|
|
3893
|
+
return next(err);
|
|
3894
|
+
}
|
|
3895
|
+
});
|
|
3896
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3897
|
+
const argsTaskController_getTask = {
|
|
3898
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3899
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3900
|
+
wait: { "in": "query", "name": "wait", "dataType": "boolean" },
|
|
3901
|
+
};
|
|
3902
|
+
app.get('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.getTask)), async function TaskController_getTask(request, response, next) {
|
|
3903
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3904
|
+
let validatedArgs = [];
|
|
3905
|
+
try {
|
|
3906
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_getTask, request, response });
|
|
3907
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3908
|
+
const controller = await container.get(TaskController);
|
|
3909
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3910
|
+
controller.setStatus(undefined);
|
|
3911
|
+
}
|
|
3912
|
+
await templateService.apiHandler({
|
|
3913
|
+
methodName: 'getTask',
|
|
3914
|
+
controller,
|
|
3915
|
+
response,
|
|
3916
|
+
next,
|
|
3917
|
+
validatedArgs,
|
|
3918
|
+
successStatus: undefined,
|
|
3919
|
+
});
|
|
3920
|
+
}
|
|
3921
|
+
catch (err) {
|
|
3922
|
+
return next(err);
|
|
3923
|
+
}
|
|
3924
|
+
});
|
|
3925
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3926
|
+
const argsTaskController_deleteTasks = {};
|
|
3927
|
+
app.delete('/rest/v0/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTasks)), async function TaskController_deleteTasks(request, response, next) {
|
|
3928
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3929
|
+
let validatedArgs = [];
|
|
3930
|
+
try {
|
|
3931
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTasks, request, response });
|
|
3932
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3933
|
+
const controller = await container.get(TaskController);
|
|
3934
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3935
|
+
controller.setStatus(undefined);
|
|
3936
|
+
}
|
|
3937
|
+
await templateService.apiHandler({
|
|
3938
|
+
methodName: 'deleteTasks',
|
|
3939
|
+
controller,
|
|
3940
|
+
response,
|
|
3941
|
+
next,
|
|
3942
|
+
validatedArgs,
|
|
3943
|
+
successStatus: 204,
|
|
3944
|
+
});
|
|
3945
|
+
}
|
|
3946
|
+
catch (err) {
|
|
3947
|
+
return next(err);
|
|
3948
|
+
}
|
|
3949
|
+
});
|
|
3950
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3951
|
+
const argsTaskController_deleteTask = {
|
|
3952
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3953
|
+
};
|
|
3954
|
+
app.delete('/rest/v0/tasks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.deleteTask)), async function TaskController_deleteTask(request, response, next) {
|
|
3955
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3956
|
+
let validatedArgs = [];
|
|
3957
|
+
try {
|
|
3958
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_deleteTask, request, response });
|
|
3959
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3960
|
+
const controller = await container.get(TaskController);
|
|
3961
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3962
|
+
controller.setStatus(undefined);
|
|
3963
|
+
}
|
|
3964
|
+
await templateService.apiHandler({
|
|
3965
|
+
methodName: 'deleteTask',
|
|
3966
|
+
controller,
|
|
3967
|
+
response,
|
|
3968
|
+
next,
|
|
3969
|
+
validatedArgs,
|
|
3970
|
+
successStatus: 204,
|
|
3971
|
+
});
|
|
3972
|
+
}
|
|
3973
|
+
catch (err) {
|
|
3974
|
+
return next(err);
|
|
3975
|
+
}
|
|
3976
|
+
});
|
|
3977
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3978
|
+
const argsTaskController_abortTask = {
|
|
3979
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3980
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3981
|
+
};
|
|
3982
|
+
app.post('/rest/v0/tasks/:id/actions/abort', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(TaskController)), ...(fetchMiddlewares(TaskController.prototype.abortTask)), async function TaskController_abortTask(request, response, next) {
|
|
3983
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3984
|
+
let validatedArgs = [];
|
|
3985
|
+
try {
|
|
3986
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsTaskController_abortTask, request, response });
|
|
3987
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3988
|
+
const controller = await container.get(TaskController);
|
|
3989
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3990
|
+
controller.setStatus(undefined);
|
|
3991
|
+
}
|
|
3992
|
+
await templateService.apiHandler({
|
|
3993
|
+
methodName: 'abortTask',
|
|
3994
|
+
controller,
|
|
3995
|
+
response,
|
|
3996
|
+
next,
|
|
3997
|
+
validatedArgs,
|
|
3998
|
+
successStatus: 202,
|
|
3999
|
+
});
|
|
4000
|
+
}
|
|
4001
|
+
catch (err) {
|
|
4002
|
+
return next(err);
|
|
4003
|
+
}
|
|
4004
|
+
});
|
|
4005
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4006
|
+
const argsSrController_getSrs = {
|
|
4007
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4008
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4009
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4010
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4011
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4012
|
+
};
|
|
4013
|
+
app.get('/rest/v0/srs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrs)), async function SrController_getSrs(request, response, next) {
|
|
4014
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4015
|
+
let validatedArgs = [];
|
|
4016
|
+
try {
|
|
4017
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrs, request, response });
|
|
4018
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4019
|
+
const controller = await container.get(SrController);
|
|
4020
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4021
|
+
controller.setStatus(undefined);
|
|
4022
|
+
}
|
|
4023
|
+
await templateService.apiHandler({
|
|
4024
|
+
methodName: 'getSrs',
|
|
4025
|
+
controller,
|
|
4026
|
+
response,
|
|
4027
|
+
next,
|
|
4028
|
+
validatedArgs,
|
|
4029
|
+
successStatus: undefined,
|
|
4030
|
+
});
|
|
4031
|
+
}
|
|
4032
|
+
catch (err) {
|
|
4033
|
+
return next(err);
|
|
4034
|
+
}
|
|
4035
|
+
});
|
|
4036
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4037
|
+
const argsSrController_getSr = {
|
|
4038
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4039
|
+
};
|
|
4040
|
+
app.get('/rest/v0/srs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSr)), async function SrController_getSr(request, response, next) {
|
|
4041
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4042
|
+
let validatedArgs = [];
|
|
4043
|
+
try {
|
|
4044
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSr, request, response });
|
|
4045
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4046
|
+
const controller = await container.get(SrController);
|
|
4047
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4048
|
+
controller.setStatus(undefined);
|
|
4049
|
+
}
|
|
4050
|
+
await templateService.apiHandler({
|
|
4051
|
+
methodName: 'getSr',
|
|
4052
|
+
controller,
|
|
4053
|
+
response,
|
|
4054
|
+
next,
|
|
4055
|
+
validatedArgs,
|
|
4056
|
+
successStatus: undefined,
|
|
4057
|
+
});
|
|
4058
|
+
}
|
|
4059
|
+
catch (err) {
|
|
4060
|
+
return next(err);
|
|
4061
|
+
}
|
|
4062
|
+
});
|
|
4063
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4064
|
+
const argsSrController_getSrAlarms = {
|
|
4065
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4066
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4067
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4068
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4069
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4070
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4071
|
+
};
|
|
4072
|
+
app.get('/rest/v0/srs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrAlarms)), async function SrController_getSrAlarms(request, response, next) {
|
|
4073
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4074
|
+
let validatedArgs = [];
|
|
4075
|
+
try {
|
|
4076
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrAlarms, request, response });
|
|
4077
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4078
|
+
const controller = await container.get(SrController);
|
|
4079
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4080
|
+
controller.setStatus(undefined);
|
|
4081
|
+
}
|
|
4082
|
+
await templateService.apiHandler({
|
|
4083
|
+
methodName: 'getSrAlarms',
|
|
4084
|
+
controller,
|
|
4085
|
+
response,
|
|
4086
|
+
next,
|
|
4087
|
+
validatedArgs,
|
|
4088
|
+
successStatus: undefined,
|
|
4089
|
+
});
|
|
4090
|
+
}
|
|
4091
|
+
catch (err) {
|
|
4092
|
+
return next(err);
|
|
4093
|
+
}
|
|
4094
|
+
});
|
|
4095
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4096
|
+
const argsSrController_srImportVdi = {
|
|
4097
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4098
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4099
|
+
name_label: { "in": "query", "name": "name_label", "dataType": "string" },
|
|
4100
|
+
name_description: { "in": "query", "name": "name_description", "dataType": "string" },
|
|
4101
|
+
raw: { "in": "query", "name": "raw", "dataType": "boolean" },
|
|
4102
|
+
};
|
|
4103
|
+
app.post('/rest/v0/srs/:id/vdis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.srImportVdi)), async function SrController_srImportVdi(request, response, next) {
|
|
4104
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4105
|
+
let validatedArgs = [];
|
|
4106
|
+
try {
|
|
4107
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_srImportVdi, request, response });
|
|
4108
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4109
|
+
const controller = await container.get(SrController);
|
|
4110
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4111
|
+
controller.setStatus(undefined);
|
|
4112
|
+
}
|
|
4113
|
+
await templateService.apiHandler({
|
|
4114
|
+
methodName: 'srImportVdi',
|
|
4115
|
+
controller,
|
|
4116
|
+
response,
|
|
4117
|
+
next,
|
|
4118
|
+
validatedArgs,
|
|
4119
|
+
successStatus: 201,
|
|
4120
|
+
});
|
|
4121
|
+
}
|
|
4122
|
+
catch (err) {
|
|
4123
|
+
return next(err);
|
|
4124
|
+
}
|
|
4125
|
+
});
|
|
4126
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4127
|
+
const argsSrController_getSrMessages = {
|
|
4128
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4129
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4130
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4131
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4132
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4133
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4134
|
+
};
|
|
4135
|
+
app.get('/rest/v0/srs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrMessages)), async function SrController_getSrMessages(request, response, next) {
|
|
4136
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4137
|
+
let validatedArgs = [];
|
|
4138
|
+
try {
|
|
4139
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrMessages, request, response });
|
|
4140
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4141
|
+
const controller = await container.get(SrController);
|
|
4142
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4143
|
+
controller.setStatus(undefined);
|
|
4144
|
+
}
|
|
4145
|
+
await templateService.apiHandler({
|
|
4146
|
+
methodName: 'getSrMessages',
|
|
4147
|
+
controller,
|
|
4148
|
+
response,
|
|
4149
|
+
next,
|
|
4150
|
+
validatedArgs,
|
|
4151
|
+
successStatus: undefined,
|
|
4152
|
+
});
|
|
4153
|
+
}
|
|
4154
|
+
catch (err) {
|
|
4155
|
+
return next(err);
|
|
4156
|
+
}
|
|
4157
|
+
});
|
|
4158
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4159
|
+
const argsSrController_getSrTasks = {
|
|
4160
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4161
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4162
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4163
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4164
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4165
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4166
|
+
};
|
|
4167
|
+
app.get('/rest/v0/srs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.getSrTasks)), async function SrController_getSrTasks(request, response, next) {
|
|
4168
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4169
|
+
let validatedArgs = [];
|
|
4170
|
+
try {
|
|
4171
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_getSrTasks, request, response });
|
|
4172
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4173
|
+
const controller = await container.get(SrController);
|
|
4174
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4175
|
+
controller.setStatus(undefined);
|
|
4176
|
+
}
|
|
4177
|
+
await templateService.apiHandler({
|
|
4178
|
+
methodName: 'getSrTasks',
|
|
4179
|
+
controller,
|
|
4180
|
+
response,
|
|
4181
|
+
next,
|
|
4182
|
+
validatedArgs,
|
|
4183
|
+
successStatus: undefined,
|
|
4184
|
+
});
|
|
4185
|
+
}
|
|
4186
|
+
catch (err) {
|
|
4187
|
+
return next(err);
|
|
4188
|
+
}
|
|
4189
|
+
});
|
|
4190
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4191
|
+
const argsSrController_putSrTag = {
|
|
4192
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4193
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
4194
|
+
};
|
|
4195
|
+
app.put('/rest/v0/srs/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.putSrTag)), async function SrController_putSrTag(request, response, next) {
|
|
4196
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4197
|
+
let validatedArgs = [];
|
|
4198
|
+
try {
|
|
4199
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_putSrTag, request, response });
|
|
4200
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4201
|
+
const controller = await container.get(SrController);
|
|
4202
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4203
|
+
controller.setStatus(undefined);
|
|
4204
|
+
}
|
|
4205
|
+
await templateService.apiHandler({
|
|
4206
|
+
methodName: 'putSrTag',
|
|
4207
|
+
controller,
|
|
4208
|
+
response,
|
|
4209
|
+
next,
|
|
4210
|
+
validatedArgs,
|
|
4211
|
+
successStatus: 204,
|
|
4212
|
+
});
|
|
4213
|
+
}
|
|
4214
|
+
catch (err) {
|
|
4215
|
+
return next(err);
|
|
4216
|
+
}
|
|
4217
|
+
});
|
|
4218
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4219
|
+
const argsSrController_deleteSrTag = {
|
|
4220
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4221
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
4222
|
+
};
|
|
4223
|
+
app.delete('/rest/v0/srs/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SrController)), ...(fetchMiddlewares(SrController.prototype.deleteSrTag)), async function SrController_deleteSrTag(request, response, next) {
|
|
4224
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4225
|
+
let validatedArgs = [];
|
|
4226
|
+
try {
|
|
4227
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSrController_deleteSrTag, request, response });
|
|
4228
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4229
|
+
const controller = await container.get(SrController);
|
|
4230
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4231
|
+
controller.setStatus(undefined);
|
|
4232
|
+
}
|
|
4233
|
+
await templateService.apiHandler({
|
|
4234
|
+
methodName: 'deleteSrTag',
|
|
4235
|
+
controller,
|
|
4236
|
+
response,
|
|
4237
|
+
next,
|
|
4238
|
+
validatedArgs,
|
|
4239
|
+
successStatus: 204,
|
|
4240
|
+
});
|
|
4241
|
+
}
|
|
4242
|
+
catch (err) {
|
|
4243
|
+
return next(err);
|
|
4244
|
+
}
|
|
4245
|
+
});
|
|
4246
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4247
|
+
const argsSmController_getSrs = {
|
|
4248
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4249
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4250
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4251
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4252
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4253
|
+
};
|
|
4254
|
+
app.get('/rest/v0/sms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSrs)), async function SmController_getSrs(request, response, next) {
|
|
4255
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4256
|
+
let validatedArgs = [];
|
|
4257
|
+
try {
|
|
4258
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSrs, request, response });
|
|
4259
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4260
|
+
const controller = await container.get(SmController);
|
|
4261
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4262
|
+
controller.setStatus(undefined);
|
|
4263
|
+
}
|
|
4264
|
+
await templateService.apiHandler({
|
|
4265
|
+
methodName: 'getSrs',
|
|
4266
|
+
controller,
|
|
4267
|
+
response,
|
|
4268
|
+
next,
|
|
4269
|
+
validatedArgs,
|
|
4270
|
+
successStatus: undefined,
|
|
4271
|
+
});
|
|
4272
|
+
}
|
|
4273
|
+
catch (err) {
|
|
4274
|
+
return next(err);
|
|
4275
|
+
}
|
|
4276
|
+
});
|
|
4277
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4278
|
+
const argsSmController_getSr = {
|
|
4279
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4280
|
+
};
|
|
4281
|
+
app.get('/rest/v0/sms/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(SmController)), ...(fetchMiddlewares(SmController.prototype.getSr)), async function SmController_getSr(request, response, next) {
|
|
4282
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4283
|
+
let validatedArgs = [];
|
|
4284
|
+
try {
|
|
4285
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsSmController_getSr, request, response });
|
|
4286
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4287
|
+
const controller = await container.get(SmController);
|
|
4288
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4289
|
+
controller.setStatus(undefined);
|
|
4290
|
+
}
|
|
4291
|
+
await templateService.apiHandler({
|
|
4292
|
+
methodName: 'getSr',
|
|
4293
|
+
controller,
|
|
4294
|
+
response,
|
|
4295
|
+
next,
|
|
4296
|
+
validatedArgs,
|
|
4297
|
+
successStatus: undefined,
|
|
4298
|
+
});
|
|
4299
|
+
}
|
|
4300
|
+
catch (err) {
|
|
4301
|
+
return next(err);
|
|
4302
|
+
}
|
|
4303
|
+
});
|
|
4304
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4305
|
+
const argsServerController_getServers = {
|
|
4306
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4307
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4308
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4309
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4310
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4311
|
+
};
|
|
4312
|
+
app.get('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServers)), async function ServerController_getServers(request, response, next) {
|
|
4313
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4314
|
+
let validatedArgs = [];
|
|
4315
|
+
try {
|
|
4316
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServers, request, response });
|
|
4317
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4318
|
+
const controller = await container.get(ServerController);
|
|
4319
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4320
|
+
controller.setStatus(undefined);
|
|
4321
|
+
}
|
|
4322
|
+
await templateService.apiHandler({
|
|
4323
|
+
methodName: 'getServers',
|
|
4324
|
+
controller,
|
|
4325
|
+
response,
|
|
4326
|
+
next,
|
|
4327
|
+
validatedArgs,
|
|
4328
|
+
successStatus: undefined,
|
|
4329
|
+
});
|
|
4330
|
+
}
|
|
4331
|
+
catch (err) {
|
|
4332
|
+
return next(err);
|
|
4333
|
+
}
|
|
4334
|
+
});
|
|
4335
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4336
|
+
const argsServerController_getServer = {
|
|
4337
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4338
|
+
};
|
|
4339
|
+
app.get('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServer)), async function ServerController_getServer(request, response, next) {
|
|
4340
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4341
|
+
let validatedArgs = [];
|
|
4342
|
+
try {
|
|
4343
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServer, request, response });
|
|
4344
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4345
|
+
const controller = await container.get(ServerController);
|
|
4346
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4347
|
+
controller.setStatus(undefined);
|
|
4348
|
+
}
|
|
4349
|
+
await templateService.apiHandler({
|
|
4350
|
+
methodName: 'getServer',
|
|
4351
|
+
controller,
|
|
4352
|
+
response,
|
|
4353
|
+
next,
|
|
4354
|
+
validatedArgs,
|
|
4355
|
+
successStatus: undefined,
|
|
4356
|
+
});
|
|
4357
|
+
}
|
|
4358
|
+
catch (err) {
|
|
4359
|
+
return next(err);
|
|
4360
|
+
}
|
|
4361
|
+
});
|
|
4362
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4363
|
+
const argsServerController_deleteServer = {
|
|
4364
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4365
|
+
};
|
|
4366
|
+
app.delete('/rest/v0/servers/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.deleteServer)), async function ServerController_deleteServer(request, response, next) {
|
|
4367
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4368
|
+
let validatedArgs = [];
|
|
4369
|
+
try {
|
|
4370
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_deleteServer, request, response });
|
|
4371
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4372
|
+
const controller = await container.get(ServerController);
|
|
4373
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4374
|
+
controller.setStatus(undefined);
|
|
4375
|
+
}
|
|
4376
|
+
await templateService.apiHandler({
|
|
4377
|
+
methodName: 'deleteServer',
|
|
4378
|
+
controller,
|
|
4379
|
+
response,
|
|
4380
|
+
next,
|
|
4381
|
+
validatedArgs,
|
|
4382
|
+
successStatus: 204,
|
|
4383
|
+
});
|
|
4384
|
+
}
|
|
4385
|
+
catch (err) {
|
|
4386
|
+
return next(err);
|
|
4387
|
+
}
|
|
4388
|
+
});
|
|
4389
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4390
|
+
const argsServerController_addServer = {
|
|
4391
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "InsertableXoServer" },
|
|
4392
|
+
};
|
|
4393
|
+
app.post('/rest/v0/servers', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.addServer)), async function ServerController_addServer(request, response, next) {
|
|
4394
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4395
|
+
let validatedArgs = [];
|
|
4396
|
+
try {
|
|
4397
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_addServer, request, response });
|
|
4398
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4399
|
+
const controller = await container.get(ServerController);
|
|
4400
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4401
|
+
controller.setStatus(undefined);
|
|
4402
|
+
}
|
|
4403
|
+
await templateService.apiHandler({
|
|
4404
|
+
methodName: 'addServer',
|
|
4405
|
+
controller,
|
|
4406
|
+
response,
|
|
4407
|
+
next,
|
|
4408
|
+
validatedArgs,
|
|
4409
|
+
successStatus: 201,
|
|
4410
|
+
});
|
|
4411
|
+
}
|
|
4412
|
+
catch (err) {
|
|
4413
|
+
return next(err);
|
|
4414
|
+
}
|
|
4415
|
+
});
|
|
4416
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4417
|
+
const argsServerController_connectServer = {
|
|
4418
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4419
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
4420
|
+
};
|
|
4421
|
+
app.post('/rest/v0/servers/:id/actions/connect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.connectServer)), async function ServerController_connectServer(request, response, next) {
|
|
4422
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4423
|
+
let validatedArgs = [];
|
|
4424
|
+
try {
|
|
4425
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_connectServer, request, response });
|
|
4426
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4427
|
+
const controller = await container.get(ServerController);
|
|
4428
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4429
|
+
controller.setStatus(undefined);
|
|
4430
|
+
}
|
|
4431
|
+
await templateService.apiHandler({
|
|
4432
|
+
methodName: 'connectServer',
|
|
4433
|
+
controller,
|
|
4434
|
+
response,
|
|
4435
|
+
next,
|
|
4436
|
+
validatedArgs,
|
|
4437
|
+
successStatus: 202,
|
|
4438
|
+
});
|
|
4439
|
+
}
|
|
4440
|
+
catch (err) {
|
|
4441
|
+
return next(err);
|
|
4442
|
+
}
|
|
4443
|
+
});
|
|
4444
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4445
|
+
const argsServerController_disconnectServer = {
|
|
4446
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4447
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
4448
|
+
};
|
|
4449
|
+
app.post('/rest/v0/servers/:id/actions/disconnect', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.disconnectServer)), async function ServerController_disconnectServer(request, response, next) {
|
|
4450
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4451
|
+
let validatedArgs = [];
|
|
4452
|
+
try {
|
|
4453
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_disconnectServer, request, response });
|
|
4454
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4455
|
+
const controller = await container.get(ServerController);
|
|
4456
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4457
|
+
controller.setStatus(undefined);
|
|
4458
|
+
}
|
|
4459
|
+
await templateService.apiHandler({
|
|
4460
|
+
methodName: 'disconnectServer',
|
|
4461
|
+
controller,
|
|
4462
|
+
response,
|
|
4463
|
+
next,
|
|
4464
|
+
validatedArgs,
|
|
4465
|
+
successStatus: 202,
|
|
4466
|
+
});
|
|
4467
|
+
}
|
|
4468
|
+
catch (err) {
|
|
4469
|
+
return next(err);
|
|
4470
|
+
}
|
|
4471
|
+
});
|
|
4472
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4473
|
+
const argsServerController_getServerTasks = {
|
|
4474
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4475
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4476
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4477
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4478
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4479
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4480
|
+
};
|
|
4481
|
+
app.get('/rest/v0/servers/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ServerController)), ...(fetchMiddlewares(ServerController.prototype.getServerTasks)), async function ServerController_getServerTasks(request, response, next) {
|
|
4482
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4483
|
+
let validatedArgs = [];
|
|
4484
|
+
try {
|
|
4485
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsServerController_getServerTasks, request, response });
|
|
4486
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4487
|
+
const controller = await container.get(ServerController);
|
|
4488
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4489
|
+
controller.setStatus(undefined);
|
|
4490
|
+
}
|
|
4491
|
+
await templateService.apiHandler({
|
|
4492
|
+
methodName: 'getServerTasks',
|
|
4493
|
+
controller,
|
|
4494
|
+
response,
|
|
4495
|
+
next,
|
|
4496
|
+
validatedArgs,
|
|
4497
|
+
successStatus: undefined,
|
|
4498
|
+
});
|
|
4499
|
+
}
|
|
4500
|
+
catch (err) {
|
|
4501
|
+
return next(err);
|
|
4502
|
+
}
|
|
4503
|
+
});
|
|
4504
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4505
|
+
const argsScheduleController_getSchedules = {
|
|
4506
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4507
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4508
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4509
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4510
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4511
|
+
};
|
|
4512
|
+
app.get('/rest/v0/schedules', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedules)), async function ScheduleController_getSchedules(request, response, next) {
|
|
4513
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4514
|
+
let validatedArgs = [];
|
|
4515
|
+
try {
|
|
4516
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedules, request, response });
|
|
4517
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4518
|
+
const controller = await container.get(ScheduleController);
|
|
4519
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4520
|
+
controller.setStatus(undefined);
|
|
4521
|
+
}
|
|
4522
|
+
await templateService.apiHandler({
|
|
4523
|
+
methodName: 'getSchedules',
|
|
4524
|
+
controller,
|
|
4525
|
+
response,
|
|
4526
|
+
next,
|
|
4527
|
+
validatedArgs,
|
|
4528
|
+
successStatus: undefined,
|
|
4529
|
+
});
|
|
4530
|
+
}
|
|
4531
|
+
catch (err) {
|
|
4532
|
+
return next(err);
|
|
4533
|
+
}
|
|
4534
|
+
});
|
|
4535
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4536
|
+
const argsScheduleController_getSchedule = {
|
|
4537
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4538
|
+
};
|
|
4539
|
+
app.get('/rest/v0/schedules/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.getSchedule)), async function ScheduleController_getSchedule(request, response, next) {
|
|
4540
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4541
|
+
let validatedArgs = [];
|
|
4542
|
+
try {
|
|
4543
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_getSchedule, request, response });
|
|
4544
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4545
|
+
const controller = await container.get(ScheduleController);
|
|
4546
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4547
|
+
controller.setStatus(undefined);
|
|
4548
|
+
}
|
|
4549
|
+
await templateService.apiHandler({
|
|
4550
|
+
methodName: 'getSchedule',
|
|
4551
|
+
controller,
|
|
4552
|
+
response,
|
|
4553
|
+
next,
|
|
4554
|
+
validatedArgs,
|
|
4555
|
+
successStatus: undefined,
|
|
4556
|
+
});
|
|
4557
|
+
}
|
|
4558
|
+
catch (err) {
|
|
4559
|
+
return next(err);
|
|
4560
|
+
}
|
|
4561
|
+
});
|
|
4562
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4563
|
+
const argsScheduleController_runSchedule = {
|
|
4564
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4565
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
4566
|
+
};
|
|
4567
|
+
app.post('/rest/v0/schedules/:id/actions/run', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ScheduleController)), ...(fetchMiddlewares(ScheduleController.prototype.runSchedule)), async function ScheduleController_runSchedule(request, response, next) {
|
|
4568
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4569
|
+
let validatedArgs = [];
|
|
4570
|
+
try {
|
|
4571
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsScheduleController_runSchedule, request, response });
|
|
4572
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4573
|
+
const controller = await container.get(ScheduleController);
|
|
4574
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4575
|
+
controller.setStatus(undefined);
|
|
4576
|
+
}
|
|
4577
|
+
await templateService.apiHandler({
|
|
4578
|
+
methodName: 'runSchedule',
|
|
4579
|
+
controller,
|
|
4580
|
+
response,
|
|
4581
|
+
next,
|
|
4582
|
+
validatedArgs,
|
|
4583
|
+
successStatus: 202,
|
|
4584
|
+
});
|
|
4585
|
+
}
|
|
4586
|
+
catch (err) {
|
|
4587
|
+
return next(err);
|
|
4588
|
+
}
|
|
4589
|
+
});
|
|
4590
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4591
|
+
const argsRestoreLogController_getRestoreLogs = {
|
|
4592
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4593
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4594
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4595
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4596
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4597
|
+
};
|
|
4598
|
+
app.get('/rest/v0/restore-logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLogs)), async function RestoreLogController_getRestoreLogs(request, response, next) {
|
|
4599
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4600
|
+
let validatedArgs = [];
|
|
4601
|
+
try {
|
|
4602
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLogs, request, response });
|
|
4603
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4604
|
+
const controller = await container.get(RestoreLogController);
|
|
3654
4605
|
if (typeof controller['setStatus'] === 'function') {
|
|
3655
4606
|
controller.setStatus(undefined);
|
|
3656
4607
|
}
|
|
@@ -3660,7 +4611,321 @@ export function RegisterRoutes(app) {
|
|
|
3660
4611
|
response,
|
|
3661
4612
|
next,
|
|
3662
4613
|
validatedArgs,
|
|
3663
|
-
successStatus: undefined,
|
|
4614
|
+
successStatus: undefined,
|
|
4615
|
+
});
|
|
4616
|
+
}
|
|
4617
|
+
catch (err) {
|
|
4618
|
+
return next(err);
|
|
4619
|
+
}
|
|
4620
|
+
});
|
|
4621
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4622
|
+
const argsRestoreLogController_getRestoreLog = {
|
|
4623
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4624
|
+
};
|
|
4625
|
+
app.get('/rest/v0/restore-logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(RestoreLogController)), ...(fetchMiddlewares(RestoreLogController.prototype.getRestoreLog)), async function RestoreLogController_getRestoreLog(request, response, next) {
|
|
4626
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4627
|
+
let validatedArgs = [];
|
|
4628
|
+
try {
|
|
4629
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRestoreLogController_getRestoreLog, request, response });
|
|
4630
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4631
|
+
const controller = await container.get(RestoreLogController);
|
|
4632
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4633
|
+
controller.setStatus(undefined);
|
|
4634
|
+
}
|
|
4635
|
+
await templateService.apiHandler({
|
|
4636
|
+
methodName: 'getRestoreLog',
|
|
4637
|
+
controller,
|
|
4638
|
+
response,
|
|
4639
|
+
next,
|
|
4640
|
+
validatedArgs,
|
|
4641
|
+
successStatus: undefined,
|
|
4642
|
+
});
|
|
4643
|
+
}
|
|
4644
|
+
catch (err) {
|
|
4645
|
+
return next(err);
|
|
4646
|
+
}
|
|
4647
|
+
});
|
|
4648
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4649
|
+
const argsDeprecatedRestoreController_getDeprecatedRestoreLogs = {
|
|
4650
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4651
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4652
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4653
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4654
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4655
|
+
};
|
|
4656
|
+
app.get('/rest/v0/restore/logs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLogs)), async function DeprecatedRestoreController_getDeprecatedRestoreLogs(request, response, next) {
|
|
4657
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4658
|
+
let validatedArgs = [];
|
|
4659
|
+
try {
|
|
4660
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLogs, request, response });
|
|
4661
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4662
|
+
const controller = await container.get(DeprecatedRestoreController);
|
|
4663
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4664
|
+
controller.setStatus(undefined);
|
|
4665
|
+
}
|
|
4666
|
+
await templateService.apiHandler({
|
|
4667
|
+
methodName: 'getDeprecatedRestoreLogs',
|
|
4668
|
+
controller,
|
|
4669
|
+
response,
|
|
4670
|
+
next,
|
|
4671
|
+
validatedArgs,
|
|
4672
|
+
successStatus: undefined,
|
|
4673
|
+
});
|
|
4674
|
+
}
|
|
4675
|
+
catch (err) {
|
|
4676
|
+
return next(err);
|
|
4677
|
+
}
|
|
4678
|
+
});
|
|
4679
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4680
|
+
const argsDeprecatedRestoreController_getDeprecatedRestoreLog = {
|
|
4681
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4682
|
+
};
|
|
4683
|
+
app.get('/rest/v0/restore/logs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(DeprecatedRestoreController)), ...(fetchMiddlewares(DeprecatedRestoreController.prototype.getDeprecatedRestoreLog)), async function DeprecatedRestoreController_getDeprecatedRestoreLog(request, response, next) {
|
|
4684
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4685
|
+
let validatedArgs = [];
|
|
4686
|
+
try {
|
|
4687
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDeprecatedRestoreController_getDeprecatedRestoreLog, request, response });
|
|
4688
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4689
|
+
const controller = await container.get(DeprecatedRestoreController);
|
|
4690
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4691
|
+
controller.setStatus(undefined);
|
|
4692
|
+
}
|
|
4693
|
+
await templateService.apiHandler({
|
|
4694
|
+
methodName: 'getDeprecatedRestoreLog',
|
|
4695
|
+
controller,
|
|
4696
|
+
response,
|
|
4697
|
+
next,
|
|
4698
|
+
validatedArgs,
|
|
4699
|
+
successStatus: undefined,
|
|
4700
|
+
});
|
|
4701
|
+
}
|
|
4702
|
+
catch (err) {
|
|
4703
|
+
return next(err);
|
|
4704
|
+
}
|
|
4705
|
+
});
|
|
4706
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4707
|
+
const argsProxyController_getProxies = {
|
|
4708
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4709
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4710
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4711
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4712
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4713
|
+
};
|
|
4714
|
+
app.get('/rest/v0/proxies', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxies)), async function ProxyController_getProxies(request, response, next) {
|
|
4715
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4716
|
+
let validatedArgs = [];
|
|
4717
|
+
try {
|
|
4718
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxies, request, response });
|
|
4719
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4720
|
+
const controller = await container.get(ProxyController);
|
|
4721
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4722
|
+
controller.setStatus(undefined);
|
|
4723
|
+
}
|
|
4724
|
+
await templateService.apiHandler({
|
|
4725
|
+
methodName: 'getProxies',
|
|
4726
|
+
controller,
|
|
4727
|
+
response,
|
|
4728
|
+
next,
|
|
4729
|
+
validatedArgs,
|
|
4730
|
+
successStatus: undefined,
|
|
4731
|
+
});
|
|
4732
|
+
}
|
|
4733
|
+
catch (err) {
|
|
4734
|
+
return next(err);
|
|
4735
|
+
}
|
|
4736
|
+
});
|
|
4737
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4738
|
+
const argsProxyController_getProxy = {
|
|
4739
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4740
|
+
};
|
|
4741
|
+
app.get('/rest/v0/proxies/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(ProxyController)), ...(fetchMiddlewares(ProxyController.prototype.getProxy)), async function ProxyController_getProxy(request, response, next) {
|
|
4742
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4743
|
+
let validatedArgs = [];
|
|
4744
|
+
try {
|
|
4745
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsProxyController_getProxy, request, response });
|
|
4746
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4747
|
+
const controller = await container.get(ProxyController);
|
|
4748
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4749
|
+
controller.setStatus(undefined);
|
|
4750
|
+
}
|
|
4751
|
+
await templateService.apiHandler({
|
|
4752
|
+
methodName: 'getProxy',
|
|
4753
|
+
controller,
|
|
4754
|
+
response,
|
|
4755
|
+
next,
|
|
4756
|
+
validatedArgs,
|
|
4757
|
+
successStatus: undefined,
|
|
4758
|
+
});
|
|
4759
|
+
}
|
|
4760
|
+
catch (err) {
|
|
4761
|
+
return next(err);
|
|
4762
|
+
}
|
|
4763
|
+
});
|
|
4764
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4765
|
+
const argsPoolController_getPools = {
|
|
4766
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4767
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4768
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4769
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4770
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4771
|
+
};
|
|
4772
|
+
app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPools)), async function PoolController_getPools(request, response, next) {
|
|
4773
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4774
|
+
let validatedArgs = [];
|
|
4775
|
+
try {
|
|
4776
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPools, request, response });
|
|
4777
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4778
|
+
const controller = await container.get(PoolController);
|
|
4779
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4780
|
+
controller.setStatus(undefined);
|
|
4781
|
+
}
|
|
4782
|
+
await templateService.apiHandler({
|
|
4783
|
+
methodName: 'getPools',
|
|
4784
|
+
controller,
|
|
4785
|
+
response,
|
|
4786
|
+
next,
|
|
4787
|
+
validatedArgs,
|
|
4788
|
+
successStatus: undefined,
|
|
4789
|
+
});
|
|
4790
|
+
}
|
|
4791
|
+
catch (err) {
|
|
4792
|
+
return next(err);
|
|
4793
|
+
}
|
|
4794
|
+
});
|
|
4795
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4796
|
+
const argsPoolController_getPool = {
|
|
4797
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4798
|
+
};
|
|
4799
|
+
app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPool)), async function PoolController_getPool(request, response, next) {
|
|
4800
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4801
|
+
let validatedArgs = [];
|
|
4802
|
+
try {
|
|
4803
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPool, request, response });
|
|
4804
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4805
|
+
const controller = await container.get(PoolController);
|
|
4806
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4807
|
+
controller.setStatus(undefined);
|
|
4808
|
+
}
|
|
4809
|
+
await templateService.apiHandler({
|
|
4810
|
+
methodName: 'getPool',
|
|
4811
|
+
controller,
|
|
4812
|
+
response,
|
|
4813
|
+
next,
|
|
4814
|
+
validatedArgs,
|
|
4815
|
+
successStatus: undefined,
|
|
4816
|
+
});
|
|
4817
|
+
}
|
|
4818
|
+
catch (err) {
|
|
4819
|
+
return next(err);
|
|
4820
|
+
}
|
|
4821
|
+
});
|
|
4822
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4823
|
+
const argsPoolController_createNetwork = {
|
|
4824
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4825
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateNetworkBody" },
|
|
4826
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
4827
|
+
};
|
|
4828
|
+
app.post('/rest/v0/pools/:id/actions/create_network', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createNetwork)), async function PoolController_createNetwork(request, response, next) {
|
|
4829
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4830
|
+
let validatedArgs = [];
|
|
4831
|
+
try {
|
|
4832
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createNetwork, request, response });
|
|
4833
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4834
|
+
const controller = await container.get(PoolController);
|
|
4835
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4836
|
+
controller.setStatus(undefined);
|
|
4837
|
+
}
|
|
4838
|
+
await templateService.apiHandler({
|
|
4839
|
+
methodName: 'createNetwork',
|
|
4840
|
+
controller,
|
|
4841
|
+
response,
|
|
4842
|
+
next,
|
|
4843
|
+
validatedArgs,
|
|
4844
|
+
successStatus: 201,
|
|
4845
|
+
});
|
|
4846
|
+
}
|
|
4847
|
+
catch (err) {
|
|
4848
|
+
return next(err);
|
|
4849
|
+
}
|
|
4850
|
+
});
|
|
4851
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4852
|
+
const argsPoolController_emergencyShutdown = {
|
|
4853
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4854
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
4855
|
+
};
|
|
4856
|
+
app.post('/rest/v0/pools/:id/actions/emergency_shutdown', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.emergencyShutdown)), async function PoolController_emergencyShutdown(request, response, next) {
|
|
4857
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4858
|
+
let validatedArgs = [];
|
|
4859
|
+
try {
|
|
4860
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_emergencyShutdown, request, response });
|
|
4861
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4862
|
+
const controller = await container.get(PoolController);
|
|
4863
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4864
|
+
controller.setStatus(undefined);
|
|
4865
|
+
}
|
|
4866
|
+
await templateService.apiHandler({
|
|
4867
|
+
methodName: 'emergencyShutdown',
|
|
4868
|
+
controller,
|
|
4869
|
+
response,
|
|
4870
|
+
next,
|
|
4871
|
+
validatedArgs,
|
|
4872
|
+
successStatus: 202,
|
|
4873
|
+
});
|
|
4874
|
+
}
|
|
4875
|
+
catch (err) {
|
|
4876
|
+
return next(err);
|
|
4877
|
+
}
|
|
4878
|
+
});
|
|
4879
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4880
|
+
const argsPoolController_rollingReboot = {
|
|
4881
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4882
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
4883
|
+
};
|
|
4884
|
+
app.post('/rest/v0/pools/:id/actions/rolling_reboot', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingReboot)), async function PoolController_rollingReboot(request, response, next) {
|
|
4885
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4886
|
+
let validatedArgs = [];
|
|
4887
|
+
try {
|
|
4888
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingReboot, request, response });
|
|
4889
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4890
|
+
const controller = await container.get(PoolController);
|
|
4891
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4892
|
+
controller.setStatus(undefined);
|
|
4893
|
+
}
|
|
4894
|
+
await templateService.apiHandler({
|
|
4895
|
+
methodName: 'rollingReboot',
|
|
4896
|
+
controller,
|
|
4897
|
+
response,
|
|
4898
|
+
next,
|
|
4899
|
+
validatedArgs,
|
|
4900
|
+
successStatus: 202,
|
|
4901
|
+
});
|
|
4902
|
+
}
|
|
4903
|
+
catch (err) {
|
|
4904
|
+
return next(err);
|
|
4905
|
+
}
|
|
4906
|
+
});
|
|
4907
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4908
|
+
const argsPoolController_rollingUpdate = {
|
|
4909
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4910
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
4911
|
+
};
|
|
4912
|
+
app.post('/rest/v0/pools/:id/actions/rolling_update', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.rollingUpdate)), async function PoolController_rollingUpdate(request, response, next) {
|
|
4913
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4914
|
+
let validatedArgs = [];
|
|
4915
|
+
try {
|
|
4916
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_rollingUpdate, request, response });
|
|
4917
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4918
|
+
const controller = await container.get(PoolController);
|
|
4919
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4920
|
+
controller.setStatus(undefined);
|
|
4921
|
+
}
|
|
4922
|
+
await templateService.apiHandler({
|
|
4923
|
+
methodName: 'rollingUpdate',
|
|
4924
|
+
controller,
|
|
4925
|
+
response,
|
|
4926
|
+
next,
|
|
4927
|
+
validatedArgs,
|
|
4928
|
+
successStatus: 202,
|
|
3664
4929
|
});
|
|
3665
4930
|
}
|
|
3666
4931
|
catch (err) {
|
|
@@ -3668,26 +4933,28 @@ export function RegisterRoutes(app) {
|
|
|
3668
4933
|
}
|
|
3669
4934
|
});
|
|
3670
4935
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3671
|
-
const
|
|
4936
|
+
const argsPoolController_importVm = {
|
|
4937
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3672
4938
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4939
|
+
sr: { "in": "query", "name": "sr", "dataType": "string" },
|
|
3673
4940
|
};
|
|
3674
|
-
app.
|
|
4941
|
+
app.post('/rest/v0/pools/:id/vms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.importVm)), async function PoolController_importVm(request, response, next) {
|
|
3675
4942
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3676
4943
|
let validatedArgs = [];
|
|
3677
4944
|
try {
|
|
3678
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4945
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_importVm, request, response });
|
|
3679
4946
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3680
|
-
const controller = await container.get(
|
|
4947
|
+
const controller = await container.get(PoolController);
|
|
3681
4948
|
if (typeof controller['setStatus'] === 'function') {
|
|
3682
4949
|
controller.setStatus(undefined);
|
|
3683
4950
|
}
|
|
3684
4951
|
await templateService.apiHandler({
|
|
3685
|
-
methodName: '
|
|
4952
|
+
methodName: 'importVm',
|
|
3686
4953
|
controller,
|
|
3687
4954
|
response,
|
|
3688
4955
|
next,
|
|
3689
4956
|
validatedArgs,
|
|
3690
|
-
successStatus:
|
|
4957
|
+
successStatus: 201,
|
|
3691
4958
|
});
|
|
3692
4959
|
}
|
|
3693
4960
|
catch (err) {
|
|
@@ -3695,30 +4962,28 @@ export function RegisterRoutes(app) {
|
|
|
3695
4962
|
}
|
|
3696
4963
|
});
|
|
3697
4964
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3698
|
-
const
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3703
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4965
|
+
const argsPoolController_createVm = {
|
|
4966
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4967
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "Unbrand_CreateVmBody_" },
|
|
4968
|
+
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
3704
4969
|
};
|
|
3705
|
-
app.
|
|
4970
|
+
app.post('/rest/v0/pools/:id/actions/create_vm', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.createVm)), async function PoolController_createVm(request, response, next) {
|
|
3706
4971
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3707
4972
|
let validatedArgs = [];
|
|
3708
4973
|
try {
|
|
3709
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
4974
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_createVm, request, response });
|
|
3710
4975
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3711
|
-
const controller = await container.get(
|
|
4976
|
+
const controller = await container.get(PoolController);
|
|
3712
4977
|
if (typeof controller['setStatus'] === 'function') {
|
|
3713
4978
|
controller.setStatus(undefined);
|
|
3714
4979
|
}
|
|
3715
4980
|
await templateService.apiHandler({
|
|
3716
|
-
methodName: '
|
|
4981
|
+
methodName: 'createVm',
|
|
3717
4982
|
controller,
|
|
3718
4983
|
response,
|
|
3719
4984
|
next,
|
|
3720
4985
|
validatedArgs,
|
|
3721
|
-
successStatus:
|
|
4986
|
+
successStatus: 201,
|
|
3722
4987
|
});
|
|
3723
4988
|
}
|
|
3724
4989
|
catch (err) {
|
|
@@ -3726,21 +4991,22 @@ export function RegisterRoutes(app) {
|
|
|
3726
4991
|
}
|
|
3727
4992
|
});
|
|
3728
4993
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3729
|
-
const
|
|
4994
|
+
const argsPoolController_getStats = {
|
|
3730
4995
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4996
|
+
granularity: { "in": "query", "name": "granularity", "ref": "XapiStatsGranularity" },
|
|
3731
4997
|
};
|
|
3732
|
-
app.get('/rest/v0/
|
|
4998
|
+
app.get('/rest/v0/pools/:id/stats', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getStats)), async function PoolController_getStats(request, response, next) {
|
|
3733
4999
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3734
5000
|
let validatedArgs = [];
|
|
3735
5001
|
try {
|
|
3736
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5002
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getStats, request, response });
|
|
3737
5003
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3738
|
-
const controller = await container.get(
|
|
5004
|
+
const controller = await container.get(PoolController);
|
|
3739
5005
|
if (typeof controller['setStatus'] === 'function') {
|
|
3740
5006
|
controller.setStatus(undefined);
|
|
3741
5007
|
}
|
|
3742
5008
|
await templateService.apiHandler({
|
|
3743
|
-
methodName: '
|
|
5009
|
+
methodName: 'getStats',
|
|
3744
5010
|
controller,
|
|
3745
5011
|
response,
|
|
3746
5012
|
next,
|
|
@@ -3753,25 +5019,23 @@ export function RegisterRoutes(app) {
|
|
|
3753
5019
|
}
|
|
3754
5020
|
});
|
|
3755
5021
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3756
|
-
const
|
|
5022
|
+
const argsPoolController_getPoolDashboard = {
|
|
3757
5023
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3758
|
-
|
|
5024
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3759
5025
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3760
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3761
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3762
5026
|
};
|
|
3763
|
-
app.get('/rest/v0/
|
|
5027
|
+
app.get('/rest/v0/pools/:id/dashboard', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolDashboard)), async function PoolController_getPoolDashboard(request, response, next) {
|
|
3764
5028
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3765
5029
|
let validatedArgs = [];
|
|
3766
5030
|
try {
|
|
3767
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5031
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolDashboard, request, response });
|
|
3768
5032
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3769
|
-
const controller = await container.get(
|
|
5033
|
+
const controller = await container.get(PoolController);
|
|
3770
5034
|
if (typeof controller['setStatus'] === 'function') {
|
|
3771
5035
|
controller.setStatus(undefined);
|
|
3772
5036
|
}
|
|
3773
5037
|
await templateService.apiHandler({
|
|
3774
|
-
methodName: '
|
|
5038
|
+
methodName: 'getPoolDashboard',
|
|
3775
5039
|
controller,
|
|
3776
5040
|
response,
|
|
3777
5041
|
next,
|
|
@@ -3784,21 +5048,26 @@ export function RegisterRoutes(app) {
|
|
|
3784
5048
|
}
|
|
3785
5049
|
});
|
|
3786
5050
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3787
|
-
const
|
|
5051
|
+
const argsPoolController_getPoolAlarms = {
|
|
5052
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3788
5053
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
5054
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5055
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5056
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5057
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3789
5058
|
};
|
|
3790
|
-
app.get('/rest/v0/
|
|
5059
|
+
app.get('/rest/v0/pools/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolAlarms)), async function PoolController_getPoolAlarms(request, response, next) {
|
|
3791
5060
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3792
5061
|
let validatedArgs = [];
|
|
3793
5062
|
try {
|
|
3794
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5063
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolAlarms, request, response });
|
|
3795
5064
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3796
|
-
const controller = await container.get(
|
|
5065
|
+
const controller = await container.get(PoolController);
|
|
3797
5066
|
if (typeof controller['setStatus'] === 'function') {
|
|
3798
5067
|
controller.setStatus(undefined);
|
|
3799
5068
|
}
|
|
3800
5069
|
await templateService.apiHandler({
|
|
3801
|
-
methodName: '
|
|
5070
|
+
methodName: 'getPoolAlarms',
|
|
3802
5071
|
controller,
|
|
3803
5072
|
response,
|
|
3804
5073
|
next,
|
|
@@ -3811,25 +5080,21 @@ export function RegisterRoutes(app) {
|
|
|
3811
5080
|
}
|
|
3812
5081
|
});
|
|
3813
5082
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3814
|
-
const
|
|
3815
|
-
|
|
3816
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
3817
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
3818
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
3819
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
5083
|
+
const argsPoolController_getPoolMissingPatches = {
|
|
5084
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3820
5085
|
};
|
|
3821
|
-
app.get('/rest/v0/pools', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.
|
|
5086
|
+
app.get('/rest/v0/pools/:id/missing_patches', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMissingPatches)), async function PoolController_getPoolMissingPatches(request, response, next) {
|
|
3822
5087
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3823
5088
|
let validatedArgs = [];
|
|
3824
5089
|
try {
|
|
3825
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5090
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMissingPatches, request, response });
|
|
3826
5091
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3827
5092
|
const controller = await container.get(PoolController);
|
|
3828
5093
|
if (typeof controller['setStatus'] === 'function') {
|
|
3829
5094
|
controller.setStatus(undefined);
|
|
3830
5095
|
}
|
|
3831
5096
|
await templateService.apiHandler({
|
|
3832
|
-
methodName: '
|
|
5097
|
+
methodName: 'getPoolMissingPatches',
|
|
3833
5098
|
controller,
|
|
3834
5099
|
response,
|
|
3835
5100
|
next,
|
|
@@ -3842,21 +5107,26 @@ export function RegisterRoutes(app) {
|
|
|
3842
5107
|
}
|
|
3843
5108
|
});
|
|
3844
5109
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3845
|
-
const
|
|
5110
|
+
const argsPoolController_getPoolMessages = {
|
|
5111
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3846
5112
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
5113
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5114
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5115
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5116
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3847
5117
|
};
|
|
3848
|
-
app.get('/rest/v0/pools/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.
|
|
5118
|
+
app.get('/rest/v0/pools/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolMessages)), async function PoolController_getPoolMessages(request, response, next) {
|
|
3849
5119
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3850
5120
|
let validatedArgs = [];
|
|
3851
5121
|
try {
|
|
3852
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5122
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolMessages, request, response });
|
|
3853
5123
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3854
5124
|
const controller = await container.get(PoolController);
|
|
3855
5125
|
if (typeof controller['setStatus'] === 'function') {
|
|
3856
5126
|
controller.setStatus(undefined);
|
|
3857
5127
|
}
|
|
3858
5128
|
await templateService.apiHandler({
|
|
3859
|
-
methodName: '
|
|
5129
|
+
methodName: 'getPoolMessages',
|
|
3860
5130
|
controller,
|
|
3861
5131
|
response,
|
|
3862
5132
|
next,
|
|
@@ -3869,28 +5139,27 @@ export function RegisterRoutes(app) {
|
|
|
3869
5139
|
}
|
|
3870
5140
|
});
|
|
3871
5141
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3872
|
-
const
|
|
5142
|
+
const argsPoolController_putPoolTag = {
|
|
3873
5143
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3874
|
-
|
|
3875
|
-
sync: { "in": "query", "name": "sync", "dataType": "boolean" },
|
|
5144
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
3876
5145
|
};
|
|
3877
|
-
app.
|
|
5146
|
+
app.put('/rest/v0/pools/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.putPoolTag)), async function PoolController_putPoolTag(request, response, next) {
|
|
3878
5147
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3879
5148
|
let validatedArgs = [];
|
|
3880
5149
|
try {
|
|
3881
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5150
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_putPoolTag, request, response });
|
|
3882
5151
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3883
5152
|
const controller = await container.get(PoolController);
|
|
3884
5153
|
if (typeof controller['setStatus'] === 'function') {
|
|
3885
5154
|
controller.setStatus(undefined);
|
|
3886
5155
|
}
|
|
3887
5156
|
await templateService.apiHandler({
|
|
3888
|
-
methodName: '
|
|
5157
|
+
methodName: 'putPoolTag',
|
|
3889
5158
|
controller,
|
|
3890
5159
|
response,
|
|
3891
5160
|
next,
|
|
3892
5161
|
validatedArgs,
|
|
3893
|
-
successStatus:
|
|
5162
|
+
successStatus: 204,
|
|
3894
5163
|
});
|
|
3895
5164
|
}
|
|
3896
5165
|
catch (err) {
|
|
@@ -3898,27 +5167,27 @@ export function RegisterRoutes(app) {
|
|
|
3898
5167
|
}
|
|
3899
5168
|
});
|
|
3900
5169
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3901
|
-
const
|
|
5170
|
+
const argsPoolController_deletePoolTag = {
|
|
3902
5171
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3903
|
-
|
|
5172
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
3904
5173
|
};
|
|
3905
|
-
app.
|
|
5174
|
+
app.delete('/rest/v0/pools/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.deletePoolTag)), async function PoolController_deletePoolTag(request, response, next) {
|
|
3906
5175
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3907
5176
|
let validatedArgs = [];
|
|
3908
5177
|
try {
|
|
3909
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5178
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_deletePoolTag, request, response });
|
|
3910
5179
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3911
5180
|
const controller = await container.get(PoolController);
|
|
3912
5181
|
if (typeof controller['setStatus'] === 'function') {
|
|
3913
5182
|
controller.setStatus(undefined);
|
|
3914
5183
|
}
|
|
3915
5184
|
await templateService.apiHandler({
|
|
3916
|
-
methodName: '
|
|
5185
|
+
methodName: 'deletePoolTag',
|
|
3917
5186
|
controller,
|
|
3918
5187
|
response,
|
|
3919
5188
|
next,
|
|
3920
5189
|
validatedArgs,
|
|
3921
|
-
successStatus:
|
|
5190
|
+
successStatus: 204,
|
|
3922
5191
|
});
|
|
3923
5192
|
}
|
|
3924
5193
|
catch (err) {
|
|
@@ -3926,27 +5195,31 @@ export function RegisterRoutes(app) {
|
|
|
3926
5195
|
}
|
|
3927
5196
|
});
|
|
3928
5197
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3929
|
-
const
|
|
5198
|
+
const argsPoolController_getPoolTasks = {
|
|
5199
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3930
5200
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3931
|
-
|
|
5201
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5202
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5203
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5204
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3932
5205
|
};
|
|
3933
|
-
app.
|
|
5206
|
+
app.get('/rest/v0/pools/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PoolController)), ...(fetchMiddlewares(PoolController.prototype.getPoolTasks)), async function PoolController_getPoolTasks(request, response, next) {
|
|
3934
5207
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3935
5208
|
let validatedArgs = [];
|
|
3936
5209
|
try {
|
|
3937
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5210
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPoolController_getPoolTasks, request, response });
|
|
3938
5211
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3939
5212
|
const controller = await container.get(PoolController);
|
|
3940
5213
|
if (typeof controller['setStatus'] === 'function') {
|
|
3941
5214
|
controller.setStatus(undefined);
|
|
3942
5215
|
}
|
|
3943
5216
|
await templateService.apiHandler({
|
|
3944
|
-
methodName: '
|
|
5217
|
+
methodName: 'getPoolTasks',
|
|
3945
5218
|
controller,
|
|
3946
5219
|
response,
|
|
3947
5220
|
next,
|
|
3948
5221
|
validatedArgs,
|
|
3949
|
-
successStatus:
|
|
5222
|
+
successStatus: undefined,
|
|
3950
5223
|
});
|
|
3951
5224
|
}
|
|
3952
5225
|
catch (err) {
|
|
@@ -3954,27 +5227,30 @@ export function RegisterRoutes(app) {
|
|
|
3954
5227
|
}
|
|
3955
5228
|
});
|
|
3956
5229
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3957
|
-
const
|
|
3958
|
-
|
|
3959
|
-
|
|
5230
|
+
const argsPifController_getPifs = {
|
|
5231
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5232
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5233
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5234
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5235
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
3960
5236
|
};
|
|
3961
|
-
app.
|
|
5237
|
+
app.get('/rest/v0/pifs', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifs)), async function PifController_getPifs(request, response, next) {
|
|
3962
5238
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3963
5239
|
let validatedArgs = [];
|
|
3964
5240
|
try {
|
|
3965
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5241
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifs, request, response });
|
|
3966
5242
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3967
|
-
const controller = await container.get(
|
|
5243
|
+
const controller = await container.get(PifController);
|
|
3968
5244
|
if (typeof controller['setStatus'] === 'function') {
|
|
3969
5245
|
controller.setStatus(undefined);
|
|
3970
5246
|
}
|
|
3971
5247
|
await templateService.apiHandler({
|
|
3972
|
-
methodName: '
|
|
5248
|
+
methodName: 'getPifs',
|
|
3973
5249
|
controller,
|
|
3974
5250
|
response,
|
|
3975
5251
|
next,
|
|
3976
5252
|
validatedArgs,
|
|
3977
|
-
successStatus:
|
|
5253
|
+
successStatus: undefined,
|
|
3978
5254
|
});
|
|
3979
5255
|
}
|
|
3980
5256
|
catch (err) {
|
|
@@ -3982,28 +5258,26 @@ export function RegisterRoutes(app) {
|
|
|
3982
5258
|
}
|
|
3983
5259
|
});
|
|
3984
5260
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3985
|
-
const
|
|
3986
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5261
|
+
const argsPifController_getPif = {
|
|
3987
5262
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3988
|
-
sr: { "in": "query", "name": "sr", "dataType": "string" },
|
|
3989
5263
|
};
|
|
3990
|
-
app.
|
|
5264
|
+
app.get('/rest/v0/pifs/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPif)), async function PifController_getPif(request, response, next) {
|
|
3991
5265
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3992
5266
|
let validatedArgs = [];
|
|
3993
5267
|
try {
|
|
3994
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5268
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPif, request, response });
|
|
3995
5269
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
3996
|
-
const controller = await container.get(
|
|
5270
|
+
const controller = await container.get(PifController);
|
|
3997
5271
|
if (typeof controller['setStatus'] === 'function') {
|
|
3998
5272
|
controller.setStatus(undefined);
|
|
3999
5273
|
}
|
|
4000
5274
|
await templateService.apiHandler({
|
|
4001
|
-
methodName: '
|
|
5275
|
+
methodName: 'getPif',
|
|
4002
5276
|
controller,
|
|
4003
5277
|
response,
|
|
4004
5278
|
next,
|
|
4005
5279
|
validatedArgs,
|
|
4006
|
-
successStatus:
|
|
5280
|
+
successStatus: undefined,
|
|
4007
5281
|
});
|
|
4008
5282
|
}
|
|
4009
5283
|
catch (err) {
|
|
@@ -4011,28 +5285,31 @@ export function RegisterRoutes(app) {
|
|
|
4011
5285
|
}
|
|
4012
5286
|
});
|
|
4013
5287
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4014
|
-
const
|
|
5288
|
+
const argsPifController_getPifAlarms = {
|
|
5289
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4015
5290
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4016
|
-
|
|
4017
|
-
|
|
5291
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5292
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5293
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5294
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4018
5295
|
};
|
|
4019
|
-
app.
|
|
5296
|
+
app.get('/rest/v0/pifs/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifAlarms)), async function PifController_getPifAlarms(request, response, next) {
|
|
4020
5297
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4021
5298
|
let validatedArgs = [];
|
|
4022
5299
|
try {
|
|
4023
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5300
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifAlarms, request, response });
|
|
4024
5301
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4025
|
-
const controller = await container.get(
|
|
5302
|
+
const controller = await container.get(PifController);
|
|
4026
5303
|
if (typeof controller['setStatus'] === 'function') {
|
|
4027
5304
|
controller.setStatus(undefined);
|
|
4028
5305
|
}
|
|
4029
5306
|
await templateService.apiHandler({
|
|
4030
|
-
methodName: '
|
|
5307
|
+
methodName: 'getPifAlarms',
|
|
4031
5308
|
controller,
|
|
4032
5309
|
response,
|
|
4033
5310
|
next,
|
|
4034
5311
|
validatedArgs,
|
|
4035
|
-
successStatus:
|
|
5312
|
+
successStatus: undefined,
|
|
4036
5313
|
});
|
|
4037
5314
|
}
|
|
4038
5315
|
catch (err) {
|
|
@@ -4040,22 +5317,26 @@ export function RegisterRoutes(app) {
|
|
|
4040
5317
|
}
|
|
4041
5318
|
});
|
|
4042
5319
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4043
|
-
const
|
|
5320
|
+
const argsPifController_getPifMessages = {
|
|
5321
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4044
5322
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4045
|
-
|
|
5323
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5324
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5325
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5326
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4046
5327
|
};
|
|
4047
|
-
app.get('/rest/v0/
|
|
5328
|
+
app.get('/rest/v0/pifs/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifMessages)), async function PifController_getPifMessages(request, response, next) {
|
|
4048
5329
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4049
5330
|
let validatedArgs = [];
|
|
4050
5331
|
try {
|
|
4051
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5332
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifMessages, request, response });
|
|
4052
5333
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4053
|
-
const controller = await container.get(
|
|
5334
|
+
const controller = await container.get(PifController);
|
|
4054
5335
|
if (typeof controller['setStatus'] === 'function') {
|
|
4055
5336
|
controller.setStatus(undefined);
|
|
4056
5337
|
}
|
|
4057
5338
|
await templateService.apiHandler({
|
|
4058
|
-
methodName: '
|
|
5339
|
+
methodName: 'getPifMessages',
|
|
4059
5340
|
controller,
|
|
4060
5341
|
response,
|
|
4061
5342
|
next,
|
|
@@ -4068,23 +5349,26 @@ export function RegisterRoutes(app) {
|
|
|
4068
5349
|
}
|
|
4069
5350
|
});
|
|
4070
5351
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4071
|
-
const
|
|
5352
|
+
const argsPifController_getPifTasks = {
|
|
4072
5353
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4073
5354
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
5355
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4074
5356
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5357
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5358
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4075
5359
|
};
|
|
4076
|
-
app.get('/rest/v0/
|
|
5360
|
+
app.get('/rest/v0/pifs/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PifController)), ...(fetchMiddlewares(PifController.prototype.getPifTasks)), async function PifController_getPifTasks(request, response, next) {
|
|
4077
5361
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4078
5362
|
let validatedArgs = [];
|
|
4079
5363
|
try {
|
|
4080
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5364
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPifController_getPifTasks, request, response });
|
|
4081
5365
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4082
|
-
const controller = await container.get(
|
|
5366
|
+
const controller = await container.get(PifController);
|
|
4083
5367
|
if (typeof controller['setStatus'] === 'function') {
|
|
4084
5368
|
controller.setStatus(undefined);
|
|
4085
5369
|
}
|
|
4086
5370
|
await templateService.apiHandler({
|
|
4087
|
-
methodName: '
|
|
5371
|
+
methodName: 'getPifTasks',
|
|
4088
5372
|
controller,
|
|
4089
5373
|
response,
|
|
4090
5374
|
next,
|
|
@@ -4097,26 +5381,25 @@ export function RegisterRoutes(app) {
|
|
|
4097
5381
|
}
|
|
4098
5382
|
});
|
|
4099
5383
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4100
|
-
const
|
|
5384
|
+
const argsPgpuController_getPgpus = {
|
|
4101
5385
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4102
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4103
5386
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4104
5387
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4105
5388
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4106
5389
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4107
5390
|
};
|
|
4108
|
-
app.get('/rest/v0/
|
|
5391
|
+
app.get('/rest/v0/pgpus', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpus)), async function PgpuController_getPgpus(request, response, next) {
|
|
4109
5392
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4110
5393
|
let validatedArgs = [];
|
|
4111
5394
|
try {
|
|
4112
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5395
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpus, request, response });
|
|
4113
5396
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4114
|
-
const controller = await container.get(
|
|
5397
|
+
const controller = await container.get(PgpuController);
|
|
4115
5398
|
if (typeof controller['setStatus'] === 'function') {
|
|
4116
5399
|
controller.setStatus(undefined);
|
|
4117
5400
|
}
|
|
4118
5401
|
await templateService.apiHandler({
|
|
4119
|
-
methodName: '
|
|
5402
|
+
methodName: 'getPgpus',
|
|
4120
5403
|
controller,
|
|
4121
5404
|
response,
|
|
4122
5405
|
next,
|
|
@@ -4129,21 +5412,21 @@ export function RegisterRoutes(app) {
|
|
|
4129
5412
|
}
|
|
4130
5413
|
});
|
|
4131
5414
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4132
|
-
const
|
|
5415
|
+
const argsPgpuController_getPgpu = {
|
|
4133
5416
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4134
5417
|
};
|
|
4135
|
-
app.get('/rest/v0/
|
|
5418
|
+
app.get('/rest/v0/pgpus/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PgpuController)), ...(fetchMiddlewares(PgpuController.prototype.getPgpu)), async function PgpuController_getPgpu(request, response, next) {
|
|
4136
5419
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4137
5420
|
let validatedArgs = [];
|
|
4138
5421
|
try {
|
|
4139
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5422
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPgpuController_getPgpu, request, response });
|
|
4140
5423
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4141
|
-
const controller = await container.get(
|
|
5424
|
+
const controller = await container.get(PgpuController);
|
|
4142
5425
|
if (typeof controller['setStatus'] === 'function') {
|
|
4143
5426
|
controller.setStatus(undefined);
|
|
4144
5427
|
}
|
|
4145
5428
|
await templateService.apiHandler({
|
|
4146
|
-
methodName: '
|
|
5429
|
+
methodName: 'getPgpu',
|
|
4147
5430
|
controller,
|
|
4148
5431
|
response,
|
|
4149
5432
|
next,
|
|
@@ -4156,26 +5439,25 @@ export function RegisterRoutes(app) {
|
|
|
4156
5439
|
}
|
|
4157
5440
|
});
|
|
4158
5441
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4159
|
-
const
|
|
5442
|
+
const argsPciController_getPcis = {
|
|
4160
5443
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4161
|
-
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4162
5444
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4163
5445
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4164
5446
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4165
5447
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4166
5448
|
};
|
|
4167
|
-
app.get('/rest/v0/
|
|
5449
|
+
app.get('/rest/v0/pcis', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPcis)), async function PciController_getPcis(request, response, next) {
|
|
4168
5450
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4169
5451
|
let validatedArgs = [];
|
|
4170
5452
|
try {
|
|
4171
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5453
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPcis, request, response });
|
|
4172
5454
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4173
|
-
const controller = await container.get(
|
|
5455
|
+
const controller = await container.get(PciController);
|
|
4174
5456
|
if (typeof controller['setStatus'] === 'function') {
|
|
4175
5457
|
controller.setStatus(undefined);
|
|
4176
5458
|
}
|
|
4177
5459
|
await templateService.apiHandler({
|
|
4178
|
-
methodName: '
|
|
5460
|
+
methodName: 'getPcis',
|
|
4179
5461
|
controller,
|
|
4180
5462
|
response,
|
|
4181
5463
|
next,
|
|
@@ -4188,25 +5470,21 @@ export function RegisterRoutes(app) {
|
|
|
4188
5470
|
}
|
|
4189
5471
|
});
|
|
4190
5472
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4191
|
-
const
|
|
4192
|
-
|
|
4193
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4194
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4195
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4196
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
5473
|
+
const argsPciController_getPci = {
|
|
5474
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4197
5475
|
};
|
|
4198
|
-
app.get('/rest/v0/
|
|
5476
|
+
app.get('/rest/v0/pcis/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PciController)), ...(fetchMiddlewares(PciController.prototype.getPci)), async function PciController_getPci(request, response, next) {
|
|
4199
5477
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4200
5478
|
let validatedArgs = [];
|
|
4201
5479
|
try {
|
|
4202
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5480
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPciController_getPci, request, response });
|
|
4203
5481
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4204
|
-
const controller = await container.get(
|
|
5482
|
+
const controller = await container.get(PciController);
|
|
4205
5483
|
if (typeof controller['setStatus'] === 'function') {
|
|
4206
5484
|
controller.setStatus(undefined);
|
|
4207
5485
|
}
|
|
4208
5486
|
await templateService.apiHandler({
|
|
4209
|
-
methodName: '
|
|
5487
|
+
methodName: 'getPci',
|
|
4210
5488
|
controller,
|
|
4211
5489
|
response,
|
|
4212
5490
|
next,
|
|
@@ -4219,21 +5497,25 @@ export function RegisterRoutes(app) {
|
|
|
4219
5497
|
}
|
|
4220
5498
|
});
|
|
4221
5499
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4222
|
-
const
|
|
4223
|
-
|
|
5500
|
+
const argsPbdController_getPbds = {
|
|
5501
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5502
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5503
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5504
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5505
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4224
5506
|
};
|
|
4225
|
-
app.get('/rest/v0/
|
|
5507
|
+
app.get('/rest/v0/pbds', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PbdController)), ...(fetchMiddlewares(PbdController.prototype.getPbds)), async function PbdController_getPbds(request, response, next) {
|
|
4226
5508
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4227
5509
|
let validatedArgs = [];
|
|
4228
5510
|
try {
|
|
4229
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5511
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPbdController_getPbds, request, response });
|
|
4230
5512
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4231
|
-
const controller = await container.get(
|
|
5513
|
+
const controller = await container.get(PbdController);
|
|
4232
5514
|
if (typeof controller['setStatus'] === 'function') {
|
|
4233
5515
|
controller.setStatus(undefined);
|
|
4234
5516
|
}
|
|
4235
5517
|
await templateService.apiHandler({
|
|
4236
|
-
methodName: '
|
|
5518
|
+
methodName: 'getPbds',
|
|
4237
5519
|
controller,
|
|
4238
5520
|
response,
|
|
4239
5521
|
next,
|
|
@@ -4246,26 +5528,21 @@ export function RegisterRoutes(app) {
|
|
|
4246
5528
|
}
|
|
4247
5529
|
});
|
|
4248
5530
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4249
|
-
const
|
|
4250
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5531
|
+
const argsPbdController_getPbd = {
|
|
4251
5532
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4252
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4253
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4254
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4255
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4256
5533
|
};
|
|
4257
|
-
app.get('/rest/v0/
|
|
5534
|
+
app.get('/rest/v0/pbds/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(PbdController)), ...(fetchMiddlewares(PbdController.prototype.getPbd)), async function PbdController_getPbd(request, response, next) {
|
|
4258
5535
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4259
5536
|
let validatedArgs = [];
|
|
4260
5537
|
try {
|
|
4261
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5538
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPbdController_getPbd, request, response });
|
|
4262
5539
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4263
|
-
const controller = await container.get(
|
|
5540
|
+
const controller = await container.get(PbdController);
|
|
4264
5541
|
if (typeof controller['setStatus'] === 'function') {
|
|
4265
5542
|
controller.setStatus(undefined);
|
|
4266
5543
|
}
|
|
4267
5544
|
await templateService.apiHandler({
|
|
4268
|
-
methodName: '
|
|
5545
|
+
methodName: 'getPbd',
|
|
4269
5546
|
controller,
|
|
4270
5547
|
response,
|
|
4271
5548
|
next,
|
|
@@ -4278,25 +5555,25 @@ export function RegisterRoutes(app) {
|
|
|
4278
5555
|
}
|
|
4279
5556
|
});
|
|
4280
5557
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4281
|
-
const
|
|
5558
|
+
const argsNetworkController_getNetworks = {
|
|
4282
5559
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4283
5560
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4284
5561
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4285
5562
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4286
5563
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4287
5564
|
};
|
|
4288
|
-
app.get('/rest/v0/
|
|
5565
|
+
app.get('/rest/v0/networks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworks)), async function NetworkController_getNetworks(request, response, next) {
|
|
4289
5566
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4290
5567
|
let validatedArgs = [];
|
|
4291
5568
|
try {
|
|
4292
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5569
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworks, request, response });
|
|
4293
5570
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4294
|
-
const controller = await container.get(
|
|
5571
|
+
const controller = await container.get(NetworkController);
|
|
4295
5572
|
if (typeof controller['setStatus'] === 'function') {
|
|
4296
5573
|
controller.setStatus(undefined);
|
|
4297
5574
|
}
|
|
4298
5575
|
await templateService.apiHandler({
|
|
4299
|
-
methodName: '
|
|
5576
|
+
methodName: 'getNetworks',
|
|
4300
5577
|
controller,
|
|
4301
5578
|
response,
|
|
4302
5579
|
next,
|
|
@@ -4309,21 +5586,21 @@ export function RegisterRoutes(app) {
|
|
|
4309
5586
|
}
|
|
4310
5587
|
});
|
|
4311
5588
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4312
|
-
const
|
|
5589
|
+
const argsNetworkController_getNetwork = {
|
|
4313
5590
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4314
5591
|
};
|
|
4315
|
-
app.get('/rest/v0/
|
|
5592
|
+
app.get('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetwork)), async function NetworkController_getNetwork(request, response, next) {
|
|
4316
5593
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4317
5594
|
let validatedArgs = [];
|
|
4318
5595
|
try {
|
|
4319
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5596
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetwork, request, response });
|
|
4320
5597
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4321
|
-
const controller = await container.get(
|
|
5598
|
+
const controller = await container.get(NetworkController);
|
|
4322
5599
|
if (typeof controller['setStatus'] === 'function') {
|
|
4323
5600
|
controller.setStatus(undefined);
|
|
4324
5601
|
}
|
|
4325
5602
|
await templateService.apiHandler({
|
|
4326
|
-
methodName: '
|
|
5603
|
+
methodName: 'getNetwork',
|
|
4327
5604
|
controller,
|
|
4328
5605
|
response,
|
|
4329
5606
|
next,
|
|
@@ -4336,30 +5613,26 @@ export function RegisterRoutes(app) {
|
|
|
4336
5613
|
}
|
|
4337
5614
|
});
|
|
4338
5615
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4339
|
-
const
|
|
4340
|
-
|
|
4341
|
-
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4342
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4343
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4344
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
5616
|
+
const argsNetworkController_deleteNetwork = {
|
|
5617
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4345
5618
|
};
|
|
4346
|
-
app.
|
|
5619
|
+
app.delete('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetwork)), async function NetworkController_deleteNetwork(request, response, next) {
|
|
4347
5620
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4348
5621
|
let validatedArgs = [];
|
|
4349
5622
|
try {
|
|
4350
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5623
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetwork, request, response });
|
|
4351
5624
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4352
|
-
const controller = await container.get(
|
|
5625
|
+
const controller = await container.get(NetworkController);
|
|
4353
5626
|
if (typeof controller['setStatus'] === 'function') {
|
|
4354
5627
|
controller.setStatus(undefined);
|
|
4355
5628
|
}
|
|
4356
5629
|
await templateService.apiHandler({
|
|
4357
|
-
methodName: '
|
|
5630
|
+
methodName: 'deleteNetwork',
|
|
4358
5631
|
controller,
|
|
4359
5632
|
response,
|
|
4360
5633
|
next,
|
|
4361
5634
|
validatedArgs,
|
|
4362
|
-
successStatus:
|
|
5635
|
+
successStatus: 204,
|
|
4363
5636
|
});
|
|
4364
5637
|
}
|
|
4365
5638
|
catch (err) {
|
|
@@ -4367,21 +5640,26 @@ export function RegisterRoutes(app) {
|
|
|
4367
5640
|
}
|
|
4368
5641
|
});
|
|
4369
5642
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4370
|
-
const
|
|
5643
|
+
const argsNetworkController_getNetworkAlarms = {
|
|
5644
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4371
5645
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
5646
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5647
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5648
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5649
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4372
5650
|
};
|
|
4373
|
-
app.get('/rest/v0/
|
|
5651
|
+
app.get('/rest/v0/networks/:id/alarms', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkAlarms)), async function NetworkController_getNetworkAlarms(request, response, next) {
|
|
4374
5652
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4375
5653
|
let validatedArgs = [];
|
|
4376
5654
|
try {
|
|
4377
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5655
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkAlarms, request, response });
|
|
4378
5656
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4379
|
-
const controller = await container.get(
|
|
5657
|
+
const controller = await container.get(NetworkController);
|
|
4380
5658
|
if (typeof controller['setStatus'] === 'function') {
|
|
4381
5659
|
controller.setStatus(undefined);
|
|
4382
5660
|
}
|
|
4383
5661
|
await templateService.apiHandler({
|
|
4384
|
-
methodName: '
|
|
5662
|
+
methodName: 'getNetworkAlarms',
|
|
4385
5663
|
controller,
|
|
4386
5664
|
response,
|
|
4387
5665
|
next,
|
|
@@ -4394,25 +5672,26 @@ export function RegisterRoutes(app) {
|
|
|
4394
5672
|
}
|
|
4395
5673
|
});
|
|
4396
5674
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4397
|
-
const
|
|
5675
|
+
const argsNetworkController_getNetworkMessages = {
|
|
4398
5676
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5677
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4399
5678
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
4400
5679
|
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4401
5680
|
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4402
5681
|
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4403
5682
|
};
|
|
4404
|
-
app.get('/rest/v0/networks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.
|
|
5683
|
+
app.get('/rest/v0/networks/:id/messages', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkMessages)), async function NetworkController_getNetworkMessages(request, response, next) {
|
|
4405
5684
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4406
5685
|
let validatedArgs = [];
|
|
4407
5686
|
try {
|
|
4408
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5687
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkMessages, request, response });
|
|
4409
5688
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4410
5689
|
const controller = await container.get(NetworkController);
|
|
4411
5690
|
if (typeof controller['setStatus'] === 'function') {
|
|
4412
5691
|
controller.setStatus(undefined);
|
|
4413
5692
|
}
|
|
4414
5693
|
await templateService.apiHandler({
|
|
4415
|
-
methodName: '
|
|
5694
|
+
methodName: 'getNetworkMessages',
|
|
4416
5695
|
controller,
|
|
4417
5696
|
response,
|
|
4418
5697
|
next,
|
|
@@ -4425,21 +5704,26 @@ export function RegisterRoutes(app) {
|
|
|
4425
5704
|
}
|
|
4426
5705
|
});
|
|
4427
5706
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4428
|
-
const
|
|
5707
|
+
const argsNetworkController_getNetworkTasks = {
|
|
5708
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4429
5709
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
5710
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
5711
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
5712
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
5713
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
4430
5714
|
};
|
|
4431
|
-
app.get('/rest/v0/networks/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.
|
|
5715
|
+
app.get('/rest/v0/networks/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.getNetworkTasks)), async function NetworkController_getNetworkTasks(request, response, next) {
|
|
4432
5716
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4433
5717
|
let validatedArgs = [];
|
|
4434
5718
|
try {
|
|
4435
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5719
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_getNetworkTasks, request, response });
|
|
4436
5720
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4437
5721
|
const controller = await container.get(NetworkController);
|
|
4438
5722
|
if (typeof controller['setStatus'] === 'function') {
|
|
4439
5723
|
controller.setStatus(undefined);
|
|
4440
5724
|
}
|
|
4441
5725
|
await templateService.apiHandler({
|
|
4442
|
-
methodName: '
|
|
5726
|
+
methodName: 'getNetworkTasks',
|
|
4443
5727
|
controller,
|
|
4444
5728
|
response,
|
|
4445
5729
|
next,
|
|
@@ -4452,21 +5736,22 @@ export function RegisterRoutes(app) {
|
|
|
4452
5736
|
}
|
|
4453
5737
|
});
|
|
4454
5738
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4455
|
-
const
|
|
5739
|
+
const argsNetworkController_putNetworkTag = {
|
|
4456
5740
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
5741
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
4457
5742
|
};
|
|
4458
|
-
app.
|
|
5743
|
+
app.put('/rest/v0/networks/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.putNetworkTag)), async function NetworkController_putNetworkTag(request, response, next) {
|
|
4459
5744
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4460
5745
|
let validatedArgs = [];
|
|
4461
5746
|
try {
|
|
4462
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5747
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_putNetworkTag, request, response });
|
|
4463
5748
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4464
5749
|
const controller = await container.get(NetworkController);
|
|
4465
5750
|
if (typeof controller['setStatus'] === 'function') {
|
|
4466
5751
|
controller.setStatus(undefined);
|
|
4467
5752
|
}
|
|
4468
5753
|
await templateService.apiHandler({
|
|
4469
|
-
methodName: '
|
|
5754
|
+
methodName: 'putNetworkTag',
|
|
4470
5755
|
controller,
|
|
4471
5756
|
response,
|
|
4472
5757
|
next,
|
|
@@ -4479,31 +5764,27 @@ export function RegisterRoutes(app) {
|
|
|
4479
5764
|
}
|
|
4480
5765
|
});
|
|
4481
5766
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4482
|
-
const
|
|
4483
|
-
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5767
|
+
const argsNetworkController_deleteNetworkTag = {
|
|
4484
5768
|
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4485
|
-
|
|
4486
|
-
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
4487
|
-
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
4488
|
-
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
5769
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
4489
5770
|
};
|
|
4490
|
-
app.
|
|
5771
|
+
app.delete('/rest/v0/networks/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(NetworkController)), ...(fetchMiddlewares(NetworkController.prototype.deleteNetworkTag)), async function NetworkController_deleteNetworkTag(request, response, next) {
|
|
4491
5772
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4492
5773
|
let validatedArgs = [];
|
|
4493
5774
|
try {
|
|
4494
|
-
validatedArgs = templateService.getValidatedArgs({ args:
|
|
5775
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsNetworkController_deleteNetworkTag, request, response });
|
|
4495
5776
|
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
4496
5777
|
const controller = await container.get(NetworkController);
|
|
4497
5778
|
if (typeof controller['setStatus'] === 'function') {
|
|
4498
5779
|
controller.setStatus(undefined);
|
|
4499
5780
|
}
|
|
4500
5781
|
await templateService.apiHandler({
|
|
4501
|
-
methodName: '
|
|
5782
|
+
methodName: 'deleteNetworkTag',
|
|
4502
5783
|
controller,
|
|
4503
5784
|
response,
|
|
4504
5785
|
next,
|
|
4505
5786
|
validatedArgs,
|
|
4506
|
-
successStatus:
|
|
5787
|
+
successStatus: 204,
|
|
4507
5788
|
});
|
|
4508
5789
|
}
|
|
4509
5790
|
catch (err) {
|
|
@@ -4829,6 +6110,94 @@ export function RegisterRoutes(app) {
|
|
|
4829
6110
|
}
|
|
4830
6111
|
});
|
|
4831
6112
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6113
|
+
const argsHostController_getHostTasks = {
|
|
6114
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
6115
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
6116
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
6117
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
6118
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
6119
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
6120
|
+
};
|
|
6121
|
+
app.get('/rest/v0/hosts/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.getHostTasks)), async function HostController_getHostTasks(request, response, next) {
|
|
6122
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6123
|
+
let validatedArgs = [];
|
|
6124
|
+
try {
|
|
6125
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_getHostTasks, request, response });
|
|
6126
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
6127
|
+
const controller = await container.get(HostController);
|
|
6128
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
6129
|
+
controller.setStatus(undefined);
|
|
6130
|
+
}
|
|
6131
|
+
await templateService.apiHandler({
|
|
6132
|
+
methodName: 'getHostTasks',
|
|
6133
|
+
controller,
|
|
6134
|
+
response,
|
|
6135
|
+
next,
|
|
6136
|
+
validatedArgs,
|
|
6137
|
+
successStatus: undefined,
|
|
6138
|
+
});
|
|
6139
|
+
}
|
|
6140
|
+
catch (err) {
|
|
6141
|
+
return next(err);
|
|
6142
|
+
}
|
|
6143
|
+
});
|
|
6144
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6145
|
+
const argsHostController_putHostTag = {
|
|
6146
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
6147
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
6148
|
+
};
|
|
6149
|
+
app.put('/rest/v0/hosts/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.putHostTag)), async function HostController_putHostTag(request, response, next) {
|
|
6150
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6151
|
+
let validatedArgs = [];
|
|
6152
|
+
try {
|
|
6153
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_putHostTag, request, response });
|
|
6154
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
6155
|
+
const controller = await container.get(HostController);
|
|
6156
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
6157
|
+
controller.setStatus(undefined);
|
|
6158
|
+
}
|
|
6159
|
+
await templateService.apiHandler({
|
|
6160
|
+
methodName: 'putHostTag',
|
|
6161
|
+
controller,
|
|
6162
|
+
response,
|
|
6163
|
+
next,
|
|
6164
|
+
validatedArgs,
|
|
6165
|
+
successStatus: 204,
|
|
6166
|
+
});
|
|
6167
|
+
}
|
|
6168
|
+
catch (err) {
|
|
6169
|
+
return next(err);
|
|
6170
|
+
}
|
|
6171
|
+
});
|
|
6172
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6173
|
+
const argsHostController_deleteHostTag = {
|
|
6174
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
6175
|
+
tag: { "in": "path", "name": "tag", "required": true, "dataType": "string" },
|
|
6176
|
+
};
|
|
6177
|
+
app.delete('/rest/v0/hosts/:id/tags/:tag', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(HostController)), ...(fetchMiddlewares(HostController.prototype.deleteHostTag)), async function HostController_deleteHostTag(request, response, next) {
|
|
6178
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6179
|
+
let validatedArgs = [];
|
|
6180
|
+
try {
|
|
6181
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsHostController_deleteHostTag, request, response });
|
|
6182
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
6183
|
+
const controller = await container.get(HostController);
|
|
6184
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
6185
|
+
controller.setStatus(undefined);
|
|
6186
|
+
}
|
|
6187
|
+
await templateService.apiHandler({
|
|
6188
|
+
methodName: 'deleteHostTag',
|
|
6189
|
+
controller,
|
|
6190
|
+
response,
|
|
6191
|
+
next,
|
|
6192
|
+
validatedArgs,
|
|
6193
|
+
successStatus: 204,
|
|
6194
|
+
});
|
|
6195
|
+
}
|
|
6196
|
+
catch (err) {
|
|
6197
|
+
return next(err);
|
|
6198
|
+
}
|
|
6199
|
+
});
|
|
6200
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4832
6201
|
const argsGroupController_getGroups = {
|
|
4833
6202
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
4834
6203
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -5057,6 +6426,38 @@ export function RegisterRoutes(app) {
|
|
|
5057
6426
|
}
|
|
5058
6427
|
});
|
|
5059
6428
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6429
|
+
const argsGroupController_getGroupTasks = {
|
|
6430
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
6431
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
6432
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
6433
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
6434
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
6435
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
6436
|
+
};
|
|
6437
|
+
app.get('/rest/v0/groups/:id/tasks', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(GroupController)), ...(fetchMiddlewares(GroupController.prototype.getGroupTasks)), async function GroupController_getGroupTasks(request, response, next) {
|
|
6438
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6439
|
+
let validatedArgs = [];
|
|
6440
|
+
try {
|
|
6441
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsGroupController_getGroupTasks, request, response });
|
|
6442
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
6443
|
+
const controller = await container.get(GroupController);
|
|
6444
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
6445
|
+
controller.setStatus(undefined);
|
|
6446
|
+
}
|
|
6447
|
+
await templateService.apiHandler({
|
|
6448
|
+
methodName: 'getGroupTasks',
|
|
6449
|
+
controller,
|
|
6450
|
+
response,
|
|
6451
|
+
next,
|
|
6452
|
+
validatedArgs,
|
|
6453
|
+
successStatus: undefined,
|
|
6454
|
+
});
|
|
6455
|
+
}
|
|
6456
|
+
catch (err) {
|
|
6457
|
+
return next(err);
|
|
6458
|
+
}
|
|
6459
|
+
});
|
|
6460
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
5060
6461
|
const argsBackupRepositoryController_getRepositories = {
|
|
5061
6462
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5062
6463
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
@@ -5491,6 +6892,65 @@ export function RegisterRoutes(app) {
|
|
|
5491
6892
|
}
|
|
5492
6893
|
});
|
|
5493
6894
|
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6895
|
+
const argsBackupArchiveController_getBackupArchives = {
|
|
6896
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
6897
|
+
backupRepositories: { "in": "query", "name": "backup-repository", "dataType": "array", "array": { "dataType": "string" } },
|
|
6898
|
+
fields: { "in": "query", "name": "fields", "dataType": "string" },
|
|
6899
|
+
ndjson: { "in": "query", "name": "ndjson", "dataType": "boolean" },
|
|
6900
|
+
filter: { "in": "query", "name": "filter", "dataType": "string" },
|
|
6901
|
+
limit: { "in": "query", "name": "limit", "dataType": "double" },
|
|
6902
|
+
};
|
|
6903
|
+
app.get('/rest/v0/backup-archives', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupArchiveController)), ...(fetchMiddlewares(BackupArchiveController.prototype.getBackupArchives)), async function BackupArchiveController_getBackupArchives(request, response, next) {
|
|
6904
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6905
|
+
let validatedArgs = [];
|
|
6906
|
+
try {
|
|
6907
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupArchiveController_getBackupArchives, request, response });
|
|
6908
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
6909
|
+
const controller = await container.get(BackupArchiveController);
|
|
6910
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
6911
|
+
controller.setStatus(undefined);
|
|
6912
|
+
}
|
|
6913
|
+
await templateService.apiHandler({
|
|
6914
|
+
methodName: 'getBackupArchives',
|
|
6915
|
+
controller,
|
|
6916
|
+
response,
|
|
6917
|
+
next,
|
|
6918
|
+
validatedArgs,
|
|
6919
|
+
successStatus: undefined,
|
|
6920
|
+
});
|
|
6921
|
+
}
|
|
6922
|
+
catch (err) {
|
|
6923
|
+
return next(err);
|
|
6924
|
+
}
|
|
6925
|
+
});
|
|
6926
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6927
|
+
const argsBackupArchiveController_getBackupArchive = {
|
|
6928
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
6929
|
+
};
|
|
6930
|
+
app.get('/rest/v0/backup-archives/:id', authenticateMiddleware([{ "*": [] }]), ...(fetchMiddlewares(BackupArchiveController)), ...(fetchMiddlewares(BackupArchiveController.prototype.getBackupArchive)), async function BackupArchiveController_getBackupArchive(request, response, next) {
|
|
6931
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6932
|
+
let validatedArgs = [];
|
|
6933
|
+
try {
|
|
6934
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsBackupArchiveController_getBackupArchive, request, response });
|
|
6935
|
+
const container = typeof iocContainer === 'function' ? iocContainer(request) : iocContainer;
|
|
6936
|
+
const controller = await container.get(BackupArchiveController);
|
|
6937
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
6938
|
+
controller.setStatus(undefined);
|
|
6939
|
+
}
|
|
6940
|
+
await templateService.apiHandler({
|
|
6941
|
+
methodName: 'getBackupArchive',
|
|
6942
|
+
controller,
|
|
6943
|
+
response,
|
|
6944
|
+
next,
|
|
6945
|
+
validatedArgs,
|
|
6946
|
+
successStatus: undefined,
|
|
6947
|
+
});
|
|
6948
|
+
}
|
|
6949
|
+
catch (err) {
|
|
6950
|
+
return next(err);
|
|
6951
|
+
}
|
|
6952
|
+
});
|
|
6953
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
5494
6954
|
const argsAlarmController_getAlarms = {
|
|
5495
6955
|
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
5496
6956
|
fields: { "in": "query", "name": "fields", "dataType": "string" },
|