mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-23 19:24:46 +00:00
api2: DataStoreListItem add maintenance info
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
This commit is contained in:
parent
a63b50f79a
commit
a4f552f738
@ -354,6 +354,11 @@ impl DataStoreConfig {
|
||||
optional: true,
|
||||
schema: SINGLE_LINE_COMMENT_SCHEMA,
|
||||
},
|
||||
maintenance: {
|
||||
optional: true,
|
||||
format: &ApiStringFormat::PropertyString(&MaintenanceMode::API_SCHEMA),
|
||||
type: String,
|
||||
}
|
||||
},
|
||||
)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
@ -362,6 +367,9 @@ impl DataStoreConfig {
|
||||
pub struct DataStoreListItem {
|
||||
pub store: String,
|
||||
pub comment: Option<String>,
|
||||
/// If the datastore is in maintenance mode, information about it
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub maintenance: Option<String>,
|
||||
}
|
||||
|
||||
#[api(
|
||||
|
Loading…
Reference in New Issue
Block a user