tape: add comment to media pool config
This commit is contained in:
1 parent
5a4233f07b
commit
db04d10d14
2 files changed
+34
-36
No files matched your search
@@ -23,6 +23,7 @@ use crate::{
|
||||
api2::types::{
|
||||
PROXMOX_SAFE_ID_FORMAT,
|
||||
SINGLE_LINE_COMMENT_FORMAT,
|
||||
SINGLE_LINE_COMMENT_SCHEMA,
|
||||
TAPE_ENCRYPTION_KEY_FINGERPRINT_SCHEMA,
|
||||
},
|
||||
};
|
||||
@@ -131,6 +132,10 @@ impl std::str::FromStr for RetentionPolicy {
|
||||
schema: TAPE_ENCRYPTION_KEY_FINGERPRINT_SCHEMA,
|
||||
optional: true,
|
||||
},
|
||||
comment: {
|
||||
optional: true,
|
||||
schema: SINGLE_LINE_COMMENT_SCHEMA,
|
||||
},
|
||||
},
|
||||
)]
|
||||
#[derive(Serialize,Deserialize)]
|
||||
@@ -155,4 +160,6 @@ pub struct MediaPoolConfig {
|
||||
/// If set, encrypt all data using the specified key.
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
pub encrypt: Option<String>,
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
pub comment: Option<String>,
|
||||
}
|
||||
Reference in new issue
Block a user