remove unused descriptions from api macros
these are now a hard error in the api macro Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -102,10 +102,7 @@ pub fn list_network_devices(
|
||||
},
|
||||
},
|
||||
},
|
||||
returns: {
|
||||
description: "The network interface configuration (with config digest).",
|
||||
type: Interface,
|
||||
},
|
||||
returns: { type: Interface },
|
||||
access: {
|
||||
permission: &Permission::Privilege(&["system", "network", "interfaces", "{name}"], PRIV_SYS_AUDIT, false),
|
||||
},
|
||||
@ -135,7 +132,6 @@ pub fn read_interface(iface: String) -> Result<Value, Error> {
|
||||
schema: NETWORK_INTERFACE_NAME_SCHEMA,
|
||||
},
|
||||
"type": {
|
||||
description: "Interface type.",
|
||||
type: NetworkInterfaceType,
|
||||
optional: true,
|
||||
},
|
||||
@ -388,7 +384,6 @@ pub enum DeletableProperty {
|
||||
schema: NETWORK_INTERFACE_NAME_SCHEMA,
|
||||
},
|
||||
"type": {
|
||||
description: "Interface type. If specified, need to match the current type.",
|
||||
type: NetworkInterfaceType,
|
||||
optional: true,
|
||||
},
|
||||
|
@ -73,10 +73,7 @@ pub fn check_subscription(
|
||||
},
|
||||
},
|
||||
},
|
||||
returns: {
|
||||
description: "Subscription status.",
|
||||
type: SubscriptionInfo,
|
||||
},
|
||||
returns: { type: SubscriptionInfo },
|
||||
access: {
|
||||
permission: &Permission::Anybody,
|
||||
},
|
||||
|
@ -166,7 +166,6 @@ fn check_task_access(auth_id: &Authid, upid: &UPID) -> Result<(), Error> {
|
||||
},
|
||||
user: {
|
||||
type: Userid,
|
||||
description: "The user who started the task.",
|
||||
},
|
||||
tokenid: {
|
||||
type: Tokenname,
|
||||
|
Reference in New Issue
Block a user