proxmox_api/generated/nodes/node/scan/
lvmthin.rs1pub struct LvmthinClient<T> {
2 client: T,
3 path: String,
4}
5impl<T> LvmthinClient<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, "/lvmthin"),
13 }
14 }
15}
16impl<T> LvmthinClient<T>
17where
18 T: crate::client::Client,
19{
20 #[doc = "List local LVM Thin Pools."]
21 pub fn get(&self, params: GetParams) -> Result<Vec<GetOutputItems>, T::Error> {
22 let path = self.path.to_string();
23 self.client.get(&path, ¶ms)
24 }
25}
26impl GetOutputItems {
27 pub fn new(lv: String) -> Self {
28 Self {
29 lv,
30 additional_properties: Default::default(),
31 }
32 }
33}
34#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
35pub struct GetOutputItems {
36 #[doc = "The LVM Thin Pool name (LVM logical volume)."]
37 pub lv: 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}
45impl GetParams {
46 pub fn new(vg: String) -> Self {
47 Self {
48 vg,
49 additional_properties: Default::default(),
50 }
51 }
52}
53#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
54pub struct GetParams {
55 pub vg: String,
56 #[serde(
57 flatten,
58 default,
59 skip_serializing_if = "::std::collections::HashMap::is_empty"
60 )]
61 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
62}