proxmox_api/generated/nodes/node/disks/lvm/
name.rs

1pub struct NameClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> NameClient<T>
6where
7    T: crate::client::Client,
8{
9    pub fn new(client: T, parent_path: &str, name: &str) -> Self {
10        Self {
11            client,
12            path: format!("{}/{}", parent_path, name),
13        }
14    }
15}
16impl<T> NameClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Remove an LVM Volume Group."]
21    pub fn delete(&self, params: DeleteParams) -> Result<String, T::Error> {
22        let path = self.path.to_string();
23        self.client.delete(&path, &params)
24    }
25}
26#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
27pub struct DeleteParams {
28    #[serde(rename = "cleanup-config")]
29    #[serde(
30        serialize_with = "crate::types::serialize_bool_optional",
31        deserialize_with = "crate::types::deserialize_bool_optional"
32    )]
33    #[serde(skip_serializing_if = "Option::is_none", default)]
34    #[doc = "Marks associated storage(s) as not available on this node anymore or removes them from the configuration (if configured for this node only)."]
35    pub cleanup_config: Option<bool>,
36    #[serde(rename = "cleanup-disks")]
37    #[serde(
38        serialize_with = "crate::types::serialize_bool_optional",
39        deserialize_with = "crate::types::deserialize_bool_optional"
40    )]
41    #[serde(skip_serializing_if = "Option::is_none", default)]
42    #[doc = "Also wipe disks so they can be repurposed afterwards."]
43    pub cleanup_disks: Option<bool>,
44    #[serde(
45        flatten,
46        default,
47        skip_serializing_if = "::std::collections::HashMap::is_empty"
48    )]
49    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
50}