proxmox_api/generated/nodes/node/disks/
wipedisk.rs

1pub struct WipediskClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> WipediskClient<T>
6where
7    T: crate::client::Client,
8{
9    pub fn new(client: T, parent_path: &str) -> Self {
10        Self {
11            client,
12            path: format!("{}{}", parent_path, "/wipedisk"),
13        }
14    }
15}
16impl<T> WipediskClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Wipe a disk or partition."]
21    pub fn put(&self, params: PutParams) -> Result<String, T::Error> {
22        let path = self.path.to_string();
23        self.client.put(&path, &params)
24    }
25}
26impl PutParams {
27    pub fn new(disk: String) -> Self {
28        Self {
29            disk,
30            additional_properties: Default::default(),
31        }
32    }
33}
34#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
35pub struct PutParams {
36    #[doc = "Block device name"]
37    pub disk: String,
38    #[serde(
39        flatten,
40        default,
41        skip_serializing_if = "::std::collections::HashMap::is_empty"
42    )]
43    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
44}