move some API return types to pbs-api-types

they'll be required by the api client

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-08-26 13:17:55 +02:00
parent 6838b75904
commit 7b570c177d
5 changed files with 101 additions and 87 deletions

View File

@ -412,11 +412,7 @@ fn stop_task(
},
},
},
returns: {
description: "A list of tasks.",
type: Array,
items: { type: TaskListItem },
},
returns: pbs_api_types::NODE_TASKS_LIST_TASKS_RETURN_TYPE,
access: {
description: "Users can only see their own tasks, unless they have Sys.Audit on /system/tasks.",
permission: &Permission::Anybody,