proxmox_api/generated/nodes/node/
ceph.rs

1pub mod cfg;
2pub mod cmd_safety;
3pub mod crush;
4pub mod fs;
5pub mod init;
6pub mod log;
7pub mod mds;
8pub mod mgr;
9pub mod mon;
10pub mod osd;
11pub mod pool;
12pub mod restart;
13pub mod rules;
14pub mod start;
15pub mod status;
16pub mod stop;
17pub struct CephClient<T> {
18    client: T,
19    path: String,
20}
21impl<T> CephClient<T>
22where
23    T: crate::client::Client,
24{
25    pub fn new(client: T, parent_path: &str) -> Self {
26        Self {
27            client,
28            path: format!("{}{}", parent_path, "/ceph"),
29        }
30    }
31}
32impl<T> CephClient<T>
33where
34    T: crate::client::Client,
35{
36    #[doc = "Directory index."]
37    pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
38        let path = self.path.to_string();
39        self.client.get(&path, &())
40    }
41}
42#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
43pub struct GetOutputItems {
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}
51impl<T> CephClient<T>
52where
53    T: crate::client::Client,
54{
55    pub fn cfg(&self) -> cfg::CfgClient<T> {
56        cfg::CfgClient::<T>::new(self.client.clone(), &self.path)
57    }
58}
59impl<T> CephClient<T>
60where
61    T: crate::client::Client,
62{
63    pub fn osd(&self) -> osd::OsdClient<T> {
64        osd::OsdClient::<T>::new(self.client.clone(), &self.path)
65    }
66}
67impl<T> CephClient<T>
68where
69    T: crate::client::Client,
70{
71    pub fn mds(&self) -> mds::MdsClient<T> {
72        mds::MdsClient::<T>::new(self.client.clone(), &self.path)
73    }
74}
75impl<T> CephClient<T>
76where
77    T: crate::client::Client,
78{
79    pub fn mgr(&self) -> mgr::MgrClient<T> {
80        mgr::MgrClient::<T>::new(self.client.clone(), &self.path)
81    }
82}
83impl<T> CephClient<T>
84where
85    T: crate::client::Client,
86{
87    pub fn mon(&self) -> mon::MonClient<T> {
88        mon::MonClient::<T>::new(self.client.clone(), &self.path)
89    }
90}
91impl<T> CephClient<T>
92where
93    T: crate::client::Client,
94{
95    pub fn fs(&self) -> fs::FsClient<T> {
96        fs::FsClient::<T>::new(self.client.clone(), &self.path)
97    }
98}
99impl<T> CephClient<T>
100where
101    T: crate::client::Client,
102{
103    pub fn pool(&self) -> pool::PoolClient<T> {
104        pool::PoolClient::<T>::new(self.client.clone(), &self.path)
105    }
106}
107impl<T> CephClient<T>
108where
109    T: crate::client::Client,
110{
111    pub fn init(&self) -> init::InitClient<T> {
112        init::InitClient::<T>::new(self.client.clone(), &self.path)
113    }
114}
115impl<T> CephClient<T>
116where
117    T: crate::client::Client,
118{
119    pub fn stop(&self) -> stop::StopClient<T> {
120        stop::StopClient::<T>::new(self.client.clone(), &self.path)
121    }
122}
123impl<T> CephClient<T>
124where
125    T: crate::client::Client,
126{
127    pub fn start(&self) -> start::StartClient<T> {
128        start::StartClient::<T>::new(self.client.clone(), &self.path)
129    }
130}
131impl<T> CephClient<T>
132where
133    T: crate::client::Client,
134{
135    pub fn restart(&self) -> restart::RestartClient<T> {
136        restart::RestartClient::<T>::new(self.client.clone(), &self.path)
137    }
138}
139impl<T> CephClient<T>
140where
141    T: crate::client::Client,
142{
143    pub fn status(&self) -> status::StatusClient<T> {
144        status::StatusClient::<T>::new(self.client.clone(), &self.path)
145    }
146}
147impl<T> CephClient<T>
148where
149    T: crate::client::Client,
150{
151    pub fn crush(&self) -> crush::CrushClient<T> {
152        crush::CrushClient::<T>::new(self.client.clone(), &self.path)
153    }
154}
155impl<T> CephClient<T>
156where
157    T: crate::client::Client,
158{
159    pub fn log(&self) -> log::LogClient<T> {
160        log::LogClient::<T>::new(self.client.clone(), &self.path)
161    }
162}
163impl<T> CephClient<T>
164where
165    T: crate::client::Client,
166{
167    pub fn rules(&self) -> rules::RulesClient<T> {
168        rules::RulesClient::<T>::new(self.client.clone(), &self.path)
169    }
170}
171impl<T> CephClient<T>
172where
173    T: crate::client::Client,
174{
175    pub fn cmd_safety(&self) -> cmd_safety::CmdSafetyClient<T> {
176        cmd_safety::CmdSafetyClient::<T>::new(self.client.clone(), &self.path)
177    }
178}