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