tape: rename DRIVE_ID_SCHEMA to DRIVE_NAME_SCHEMA

This commit is contained in:
Dietmar Maurer
2020-12-13 09:18:16 +01:00
parent 6fe9aedd0b
commit 49c965a497
8 changed files with 38 additions and 38 deletions

View File

@ -9,7 +9,7 @@ use proxmox::api::{
use crate::api2::types::PROXMOX_SAFE_ID_FORMAT;
pub const DRIVE_ID_SCHEMA: Schema = StringSchema::new("Drive Identifier.")
pub const DRIVE_NAME_SCHEMA: Schema = StringSchema::new("Drive Identifier.")
.format(&PROXMOX_SAFE_ID_FORMAT)
.min_length(3)
.max_length(32)
@ -45,7 +45,7 @@ pub const CHANGER_DRIVE_ID_SCHEMA: Schema = IntegerSchema::new(
#[api(
properties: {
name: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
}
}
)]
@ -64,7 +64,7 @@ pub struct VirtualTapeDrive {
#[api(
properties: {
name: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
},
path: {
schema: LINUX_DRIVE_PATH_SCHEMA,

View File

@ -21,7 +21,7 @@ use crate::{
parse_calendar_event,
},
api2::types::{
DRIVE_ID_SCHEMA,
DRIVE_NAME_SCHEMA,
PROXMOX_SAFE_ID_FORMAT,
SINGLE_LINE_COMMENT_FORMAT,
},
@ -116,7 +116,7 @@ impl std::str::FromStr for RetentionPolicy {
schema: MEDIA_POOL_NAME_SCHEMA,
},
drive: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
},
allocation: {
schema: MEDIA_SET_ALLOCATION_POLICY_SCHEMA,