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