proxmox_api/generated/cluster/
log.rs

1pub struct LogClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> LogClient<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, "/log"),
13        }
14    }
15}
16impl<T> LogClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Read cluster log"]
21    pub fn get(&self, params: GetParams) -> Result<Vec<GetOutputItems>, 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 GetOutputItems {
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}
35#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
36pub struct GetParams {
37    #[serde(
38        serialize_with = "crate::types::serialize_int_optional",
39        deserialize_with = "crate::types::deserialize_int_optional"
40    )]
41    #[serde(skip_serializing_if = "Option::is_none", default)]
42    #[doc = "Maximum number of entries."]
43    pub max: Option<u64>,
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}