mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-23 19:24:46 +00:00
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:
parent
f6950c3ca9
commit
e3ad1c7f15
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user