proxmox_api/generated/cluster/
firewall.rs1pub mod aliases;
2pub mod groups;
3pub mod ipset;
4pub mod macros;
5pub mod options;
6pub mod refs;
7pub mod rules;
8pub struct FirewallClient<T> {
9 client: T,
10 path: String,
11}
12impl<T> FirewallClient<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, "/firewall"),
20 }
21 }
22}
23impl<T> FirewallClient<T>
24where
25 T: crate::client::Client,
26{
27 #[doc = "Directory index."]
28 pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
29 let path = self.path.to_string();
30 self.client.get(&path, &())
31 }
32}
33#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
34pub struct GetOutputItems {
35 #[serde(
36 flatten,
37 default,
38 skip_serializing_if = "::std::collections::HashMap::is_empty"
39 )]
40 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
41}
42impl<T> FirewallClient<T>
43where
44 T: crate::client::Client,
45{
46 pub fn groups(&self) -> groups::GroupsClient<T> {
47 groups::GroupsClient::<T>::new(self.client.clone(), &self.path)
48 }
49}
50impl<T> FirewallClient<T>
51where
52 T: crate::client::Client,
53{
54 pub fn rules(&self) -> rules::RulesClient<T> {
55 rules::RulesClient::<T>::new(self.client.clone(), &self.path)
56 }
57}
58impl<T> FirewallClient<T>
59where
60 T: crate::client::Client,
61{
62 pub fn ipset(&self) -> ipset::IpsetClient<T> {
63 ipset::IpsetClient::<T>::new(self.client.clone(), &self.path)
64 }
65}
66impl<T> FirewallClient<T>
67where
68 T: crate::client::Client,
69{
70 pub fn aliases(&self) -> aliases::AliasesClient<T> {
71 aliases::AliasesClient::<T>::new(self.client.clone(), &self.path)
72 }
73}
74impl<T> FirewallClient<T>
75where
76 T: crate::client::Client,
77{
78 pub fn options(&self) -> options::OptionsClient<T> {
79 options::OptionsClient::<T>::new(self.client.clone(), &self.path)
80 }
81}
82impl<T> FirewallClient<T>
83where
84 T: crate::client::Client,
85{
86 pub fn macros(&self) -> macros::MacrosClient<T> {
87 macros::MacrosClient::<T>::new(self.client.clone(), &self.path)
88 }
89}
90impl<T> FirewallClient<T>
91where
92 T: crate::client::Client,
93{
94 pub fn refs(&self) -> refs::RefsClient<T> {
95 refs::RefsClient::<T>::new(self.client.clone(), &self.path)
96 }
97}