mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-27 15:10:33 +00:00
RemoteWithoutPassword: new API type
To make it explicit that we do not return the password. Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
32ea4b56a1
commit
027033c17a
@ -85,3 +85,22 @@ pub struct Remote {
|
|||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub config: RemoteConfig,
|
pub config: RemoteConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[api(
|
||||||
|
properties: {
|
||||||
|
name: {
|
||||||
|
schema: REMOTE_ID_SCHEMA,
|
||||||
|
},
|
||||||
|
config: {
|
||||||
|
type: RemoteConfig,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
)]
|
||||||
|
#[derive(Serialize, Deserialize)]
|
||||||
|
#[serde(rename_all = "kebab-case")]
|
||||||
|
/// Remote properties.
|
||||||
|
pub struct RemoteWithoutPassword {
|
||||||
|
pub name: String,
|
||||||
|
#[serde(flatten)]
|
||||||
|
pub config: RemoteConfig,
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user