proxmox_api/generated/nodes/node/ceph/cfg/
value.rs

1pub struct ValueClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> ValueClient<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, "/value"),
13        }
14    }
15}
16impl<T> ValueClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Get configured values from either the config file or config DB."]
21    pub fn get(&self, params: GetParams) -> Result<GetOutput, T::Error> {
22        let path = self.path.to_string();
23        self.client.get(&path, &params)
24    }
25}
26#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
27pub struct GetOutput {
28    #[serde(
29        flatten,
30        default,
31        skip_serializing_if = "::std::collections::HashMap::is_empty"
32    )]
33    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
34}
35impl GetParams {
36    pub fn new(config_keys: String) -> Self {
37        Self {
38            config_keys,
39            additional_properties: Default::default(),
40        }
41    }
42}
43#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
44pub struct GetParams {
45    #[serde(rename = "config-keys")]
46    #[doc = "List of \\<section\\>:\\<config key\\> items."]
47    pub config_keys: String,
48    #[serde(
49        flatten,
50        default,
51        skip_serializing_if = "::std::collections::HashMap::is_empty"
52    )]
53    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
54}