proxmox_api/generated/nodes/node/ceph/
fs.rs1pub mod name;
2pub struct FsClient<T> {
3 client: T,
4 path: String,
5}
6impl<T> FsClient<T>
7where
8 T: crate::client::Client,
9{
10 pub fn new(client: T, parent_path: &str) -> Self {
11 Self {
12 client,
13 path: format!("{}{}", parent_path, "/fs"),
14 }
15 }
16}
17impl<T> FsClient<T>
18where
19 T: crate::client::Client,
20{
21 #[doc = "Directory index."]
22 pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
23 let path = self.path.to_string();
24 self.client.get(&path, &())
25 }
26}
27impl GetOutputItems {
28 pub fn new(data_pool: String, metadata_pool: String, name: String) -> Self {
29 Self {
30 data_pool,
31 metadata_pool,
32 name,
33 additional_properties: Default::default(),
34 }
35 }
36}
37#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
38pub struct GetOutputItems {
39 #[doc = "The name of the data pool."]
40 pub data_pool: String,
41 #[doc = "The name of the metadata pool."]
42 pub metadata_pool: String,
43 #[doc = "The ceph filesystem name."]
44 pub name: String,
45 #[serde(
46 flatten,
47 default,
48 skip_serializing_if = "::std::collections::HashMap::is_empty"
49 )]
50 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
51}
52impl<T> FsClient<T>
53where
54 T: crate::client::Client,
55{
56 pub fn name(&self, name: &str) -> name::NameClient<T> {
57 name::NameClient::<T>::new(self.client.clone(), &self.path, name)
58 }
59}