proxmox_api/generated/
cluster.rs1pub mod acme;
2pub mod backup;
3pub mod backup_info;
4pub mod ceph;
5pub mod config;
6pub mod firewall;
7pub mod ha;
8pub mod jobs;
9pub mod log;
10pub mod mapping;
11pub mod metrics;
12pub mod nextid;
13pub mod notifications;
14pub mod options;
15pub mod replication;
16pub mod resources;
17pub mod sdn;
18pub mod status;
19pub mod tasks;
20pub struct ClusterClient<T> {
21 client: T,
22 path: String,
23}
24impl<T> ClusterClient<T>
25where
26 T: crate::client::Client,
27{
28 pub fn new(client: T) -> Self {
29 Self {
30 client,
31 path: "/cluster".to_string(),
32 }
33 }
34}
35impl<T> ClusterClient<T>
36where
37 T: crate::client::Client,
38{
39 #[doc = "Cluster index."]
40 pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
41 let path = self.path.to_string();
42 self.client.get(&path, &())
43 }
44}
45#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
46pub struct GetOutputItems {
47 #[serde(
48 flatten,
49 default,
50 skip_serializing_if = "::std::collections::HashMap::is_empty"
51 )]
52 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
53}
54impl<T> ClusterClient<T>
55where
56 T: crate::client::Client,
57{
58 pub fn replication(&self) -> replication::ReplicationClient<T> {
59 replication::ReplicationClient::<T>::new(self.client.clone(), &self.path)
60 }
61}
62impl<T> ClusterClient<T>
63where
64 T: crate::client::Client,
65{
66 pub fn metrics(&self) -> metrics::MetricsClient<T> {
67 metrics::MetricsClient::<T>::new(self.client.clone(), &self.path)
68 }
69}
70impl<T> ClusterClient<T>
71where
72 T: crate::client::Client,
73{
74 pub fn notifications(&self) -> notifications::NotificationsClient<T> {
75 notifications::NotificationsClient::<T>::new(self.client.clone(), &self.path)
76 }
77}
78impl<T> ClusterClient<T>
79where
80 T: crate::client::Client,
81{
82 pub fn config(&self) -> config::ConfigClient<T> {
83 config::ConfigClient::<T>::new(self.client.clone(), &self.path)
84 }
85}
86impl<T> ClusterClient<T>
87where
88 T: crate::client::Client,
89{
90 pub fn firewall(&self) -> firewall::FirewallClient<T> {
91 firewall::FirewallClient::<T>::new(self.client.clone(), &self.path)
92 }
93}
94impl<T> ClusterClient<T>
95where
96 T: crate::client::Client,
97{
98 pub fn backup(&self) -> backup::BackupClient<T> {
99 backup::BackupClient::<T>::new(self.client.clone(), &self.path)
100 }
101}
102impl<T> ClusterClient<T>
103where
104 T: crate::client::Client,
105{
106 pub fn backup_info(&self) -> backup_info::BackupInfoClient<T> {
107 backup_info::BackupInfoClient::<T>::new(self.client.clone(), &self.path)
108 }
109}
110impl<T> ClusterClient<T>
111where
112 T: crate::client::Client,
113{
114 pub fn ha(&self) -> ha::HaClient<T> {
115 ha::HaClient::<T>::new(self.client.clone(), &self.path)
116 }
117}
118impl<T> ClusterClient<T>
119where
120 T: crate::client::Client,
121{
122 pub fn acme(&self) -> acme::AcmeClient<T> {
123 acme::AcmeClient::<T>::new(self.client.clone(), &self.path)
124 }
125}
126impl<T> ClusterClient<T>
127where
128 T: crate::client::Client,
129{
130 pub fn ceph(&self) -> ceph::CephClient<T> {
131 ceph::CephClient::<T>::new(self.client.clone(), &self.path)
132 }
133}
134impl<T> ClusterClient<T>
135where
136 T: crate::client::Client,
137{
138 pub fn jobs(&self) -> jobs::JobsClient<T> {
139 jobs::JobsClient::<T>::new(self.client.clone(), &self.path)
140 }
141}
142impl<T> ClusterClient<T>
143where
144 T: crate::client::Client,
145{
146 pub fn mapping(&self) -> mapping::MappingClient<T> {
147 mapping::MappingClient::<T>::new(self.client.clone(), &self.path)
148 }
149}
150impl<T> ClusterClient<T>
151where
152 T: crate::client::Client,
153{
154 pub fn sdn(&self) -> sdn::SdnClient<T> {
155 sdn::SdnClient::<T>::new(self.client.clone(), &self.path)
156 }
157}
158impl<T> ClusterClient<T>
159where
160 T: crate::client::Client,
161{
162 pub fn log(&self) -> log::LogClient<T> {
163 log::LogClient::<T>::new(self.client.clone(), &self.path)
164 }
165}
166impl<T> ClusterClient<T>
167where
168 T: crate::client::Client,
169{
170 pub fn resources(&self) -> resources::ResourcesClient<T> {
171 resources::ResourcesClient::<T>::new(self.client.clone(), &self.path)
172 }
173}
174impl<T> ClusterClient<T>
175where
176 T: crate::client::Client,
177{
178 pub fn tasks(&self) -> tasks::TasksClient<T> {
179 tasks::TasksClient::<T>::new(self.client.clone(), &self.path)
180 }
181}
182impl<T> ClusterClient<T>
183where
184 T: crate::client::Client,
185{
186 pub fn options(&self) -> options::OptionsClient<T> {
187 options::OptionsClient::<T>::new(self.client.clone(), &self.path)
188 }
189}
190impl<T> ClusterClient<T>
191where
192 T: crate::client::Client,
193{
194 pub fn status(&self) -> status::StatusClient<T> {
195 status::StatusClient::<T>::new(self.client.clone(), &self.path)
196 }
197}
198impl<T> ClusterClient<T>
199where
200 T: crate::client::Client,
201{
202 pub fn nextid(&self) -> nextid::NextidClient<T> {
203 nextid::NextidClient::<T>::new(self.client.clone(), &self.path)
204 }
205}