proxmox-backup-client: add missing prune options to api definition.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
93fbb4ef0a
commit
74616f63b0
@ -1373,25 +1373,61 @@ async fn upload_log(param: Value) -> Result<Value, Error> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[api(
|
#[api(
|
||||||
input: {
|
input: {
|
||||||
properties: {
|
properties: {
|
||||||
repository: {
|
repository: {
|
||||||
schema: REPO_URL_SCHEMA,
|
schema: REPO_URL_SCHEMA,
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
group: {
|
group: {
|
||||||
type: String,
|
type: String,
|
||||||
description: "Backup group.",
|
description: "Backup group.",
|
||||||
},
|
},
|
||||||
"output-format": {
|
"output-format": {
|
||||||
schema: OUTPUT_FORMAT,
|
schema: OUTPUT_FORMAT,
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
"dry-run": {
|
"dry-run": {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
description: "Just show what prune would do, but do not delete anything.",
|
description: "Just show what prune would do, but do not delete anything.",
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
|
"keep-last": {
|
||||||
|
type: Integer,
|
||||||
|
description: "Number of backups to keep.",
|
||||||
|
optional: true,
|
||||||
|
minimum: 1,
|
||||||
|
},
|
||||||
|
"keep-hourly": {
|
||||||
|
type: Integer,
|
||||||
|
description: "Number of hourly backups to keep.",
|
||||||
|
optional: true,
|
||||||
|
minimum: 1,
|
||||||
|
},
|
||||||
|
"keep-daily": {
|
||||||
|
type: Integer,
|
||||||
|
description: "Number of daily backups to keep.",
|
||||||
|
optional: true,
|
||||||
|
minimum: 1,
|
||||||
|
},
|
||||||
|
"keep-monthly": {
|
||||||
|
type: Integer,
|
||||||
|
description: "Number of monthly backups to keep.",
|
||||||
|
optional: true,
|
||||||
|
minimum: 1,
|
||||||
|
},
|
||||||
|
"keep-weekly": {
|
||||||
|
type: Integer,
|
||||||
|
description: "Number of weekly backups to keep.",
|
||||||
|
optional: true,
|
||||||
|
minimum: 1,
|
||||||
|
},
|
||||||
|
"keep-yearly": {
|
||||||
|
type: Integer,
|
||||||
|
description: "Number of yearly backups to keep.",
|
||||||
|
optional: true,
|
||||||
|
minimum: 1,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)]
|
)]
|
||||||
|
Loading…
Reference in New Issue
Block a user