proxmox_api/generated/cluster/ceph/
status.rs1#[derive(Debug, Clone)]
2pub struct StatusClient<T> {
3 client: T,
4 path: String,
5}
6impl<T> StatusClient<T>
7where
8 T: crate::client::Client,
9{
10 pub fn new(client: T, parent_path: &str) -> Self {
11 Self {
12 client,
13 path: format!("{}{}", parent_path, "/status"),
14 }
15 }
16}
17impl<T> StatusClient<T>
18where
19 T: crate::client::Client,
20{
21 #[doc = "Get ceph status."]
22 #[doc = ""]
23 #[doc = "Permission check: perm(\"/\", [\"Sys.Audit\", \"Datastore.Audit\"], any)"]
24 pub async fn get(&self) -> Result<GetOutput, T::Error> {
25 let path = self.path.to_string();
26 self.client.get(&path, &()).await
27 }
28}
29#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
30pub struct GetOutput {
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}