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

@ -8,7 +8,7 @@ use crate::{
config,
api2::types::{
PROXMOX_CONFIG_DIGEST_SCHEMA,
DRIVE_ID_SCHEMA,
DRIVE_NAME_SCHEMA,
CHANGER_ID_SCHEMA,
CHANGER_DRIVE_ID_SCHEMA,
LINUX_DRIVE_PATH_SCHEMA,
@ -28,7 +28,7 @@ use crate::{
input: {
properties: {
name: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
},
path: {
schema: LINUX_DRIVE_PATH_SCHEMA,
@ -72,7 +72,7 @@ pub fn create_drive(param: Value) -> Result<(), Error> {
input: {
properties: {
name: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
},
},
},
@ -161,7 +161,7 @@ pub enum DeletableProperty {
input: {
properties: {
name: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
},
path: {
schema: LINUX_DRIVE_PATH_SCHEMA,
@ -258,7 +258,7 @@ pub fn update_drive(
input: {
properties: {
name: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
},
},
},

View File

@ -11,7 +11,7 @@ use proxmox::{
use crate::{
api2::types::{
DRIVE_ID_SCHEMA,
DRIVE_NAME_SCHEMA,
MEDIA_POOL_NAME_SCHEMA,
MEDIA_SET_NAMING_TEMPLATE_SCHEMA,
MEDIA_SET_ALLOCATION_POLICY_SCHEMA,
@ -33,7 +33,7 @@ use crate::{
schema: MEDIA_POOL_NAME_SCHEMA,
},
drive: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
},
allocation: {
schema: MEDIA_SET_ALLOCATION_POLICY_SCHEMA,
@ -150,7 +150,7 @@ pub enum DeletableProperty {
schema: MEDIA_POOL_NAME_SCHEMA,
},
drive: {
schema: DRIVE_ID_SCHEMA,
schema: DRIVE_NAME_SCHEMA,
optional: true,
},
allocation: {