proxmox_api/generated/nodes/node/ceph/
cfg.rs1pub mod db;
2pub mod raw;
3pub mod value;
4pub struct CfgClient<T> {
5 client: T,
6 path: String,
7}
8impl<T> CfgClient<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, "/cfg"),
16 }
17 }
18}
19impl<T> CfgClient<T>
20where
21 T: crate::client::Client,
22{
23 #[doc = "Directory 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> CfgClient<T>
39where
40 T: crate::client::Client,
41{
42 pub fn raw(&self) -> raw::RawClient<T> {
43 raw::RawClient::<T>::new(self.client.clone(), &self.path)
44 }
45}
46impl<T> CfgClient<T>
47where
48 T: crate::client::Client,
49{
50 pub fn db(&self) -> db::DbClient<T> {
51 db::DbClient::<T>::new(self.client.clone(), &self.path)
52 }
53}
54impl<T> CfgClient<T>
55where
56 T: crate::client::Client,
57{
58 pub fn value(&self) -> value::ValueClient<T> {
59 value::ValueClient::<T>::new(self.client.clone(), &self.path)
60 }
61}