api: tape/backup: fix namespace/max-depth parameters

by adding the 'default' serde hint and renaming 'recursion_depth' to
'max_depth' (to be in line with sync job config)

also add the logic to actually add/update the tape backup job config

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2022-05-13 09:06:11 +02:00
parent f6950c3ca9
commit e3ad1c7f15

View File

@ -281,7 +281,7 @@ pub struct VerificationJobStatus {
type: BackupNamespace,
optional: true,
},
"recursion-depth": {
"max-depth": {
schema: crate::NS_MAX_DEPTH_SCHEMA,
optional: true,
},
@ -308,7 +308,7 @@ pub struct TapeBackupJobSetup {
#[serde(skip_serializing_if = "Option::is_none", default)]
pub ns: Option<BackupNamespace>,
#[serde(skip_serializing_if = "Option::is_none", default)]
pub recursion_depth: Option<usize>,
pub max_depth: Option<usize>,
}
#[api(