proxmox_api/generated/nodes/node/scan/
glusterfs.rs1pub struct GlusterfsClient<T> {
2 client: T,
3 path: String,
4}
5impl<T> GlusterfsClient<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, "/glusterfs"),
13 }
14 }
15}
16impl<T> GlusterfsClient<T>
17where
18 T: crate::client::Client,
19{
20 #[doc = "Scan remote GlusterFS server."]
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(volname: String) -> Self {
28 Self {
29 volname,
30 additional_properties: Default::default(),
31 }
32 }
33}
34#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
35pub struct GetOutputItems {
36 #[doc = "The volume name."]
37 pub volname: 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(server: String) -> Self {
47 Self {
48 server,
49 additional_properties: Default::default(),
50 }
51 }
52}
53#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
54pub struct GetParams {
55 #[doc = "The server address (name or IP)."]
56 pub server: String,
57 #[serde(
58 flatten,
59 default,
60 skip_serializing_if = "::std::collections::HashMap::is_empty"
61 )]
62 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
63}