proxmox_api/generated/cluster/
acme.rs

1pub mod account;
2pub mod challenge_schema;
3pub mod directories;
4pub mod meta;
5pub mod plugins;
6pub mod tos;
7pub struct AcmeClient<T> {
8    client: T,
9    path: String,
10}
11impl<T> AcmeClient<T>
12where
13    T: crate::client::Client,
14{
15    pub fn new(client: T, parent_path: &str) -> Self {
16        Self {
17            client,
18            path: format!("{}{}", parent_path, "/acme"),
19        }
20    }
21}
22impl<T> AcmeClient<T>
23where
24    T: crate::client::Client,
25{
26    #[doc = "ACMEAccount index."]
27    pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
28        let path = self.path.to_string();
29        self.client.get(&path, &())
30    }
31}
32#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
33pub struct GetOutputItems {
34    #[serde(
35        flatten,
36        default,
37        skip_serializing_if = "::std::collections::HashMap::is_empty"
38    )]
39    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
40}
41impl<T> AcmeClient<T>
42where
43    T: crate::client::Client,
44{
45    pub fn plugins(&self) -> plugins::PluginsClient<T> {
46        plugins::PluginsClient::<T>::new(self.client.clone(), &self.path)
47    }
48}
49impl<T> AcmeClient<T>
50where
51    T: crate::client::Client,
52{
53    pub fn account(&self) -> account::AccountClient<T> {
54        account::AccountClient::<T>::new(self.client.clone(), &self.path)
55    }
56}
57impl<T> AcmeClient<T>
58where
59    T: crate::client::Client,
60{
61    pub fn tos(&self) -> tos::TosClient<T> {
62        tos::TosClient::<T>::new(self.client.clone(), &self.path)
63    }
64}
65impl<T> AcmeClient<T>
66where
67    T: crate::client::Client,
68{
69    pub fn meta(&self) -> meta::MetaClient<T> {
70        meta::MetaClient::<T>::new(self.client.clone(), &self.path)
71    }
72}
73impl<T> AcmeClient<T>
74where
75    T: crate::client::Client,
76{
77    pub fn directories(&self) -> directories::DirectoriesClient<T> {
78        directories::DirectoriesClient::<T>::new(self.client.clone(), &self.path)
79    }
80}
81impl<T> AcmeClient<T>
82where
83    T: crate::client::Client,
84{
85    pub fn challenge_schema(&self) -> challenge_schema::ChallengeSchemaClient<T> {
86        challenge_schema::ChallengeSchemaClient::<T>::new(self.client.clone(), &self.path)
87    }
88}