proxmox_api/generated/nodes/node/ceph/cfg/
db.rs1pub struct DbClient<T> {
2 client: T,
3 path: String,
4}
5impl<T> DbClient<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, "/db"),
13 }
14 }
15}
16impl<T> DbClient<T>
17where
18 T: crate::client::Client,
19{
20 #[doc = "Get the Ceph configuration database."]
21 pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
22 let path = self.path.to_string();
23 self.client.get(&path, &())
24 }
25}
26impl GetOutputItems {
27 pub fn new(
28 can_update_at_runtime: bool,
29 level: String,
30 mask: String,
31 name: String,
32 section: String,
33 value: String,
34 ) -> Self {
35 Self {
36 can_update_at_runtime,
37 level,
38 mask,
39 name,
40 section,
41 value,
42 additional_properties: Default::default(),
43 }
44 }
45}
46#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
47pub struct GetOutputItems {
48 #[serde(
49 serialize_with = "crate::types::serialize_bool",
50 deserialize_with = "crate::types::deserialize_bool"
51 )]
52 pub can_update_at_runtime: bool,
53 pub level: String,
54 pub mask: String,
55 pub name: String,
56 pub section: String,
57 pub value: String,
58 #[serde(
59 flatten,
60 default,
61 skip_serializing_if = "::std::collections::HashMap::is_empty"
62 )]
63 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
64}