proxmox_api/generated/nodes/node/qemu/vmid/
firewall.rs

1pub mod aliases;
2pub mod ipset;
3pub mod log;
4pub mod options;
5pub mod refs;
6pub mod rules;
7pub struct FirewallClient<T> {
8    client: T,
9    path: String,
10}
11impl<T> FirewallClient<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, "/firewall"),
19        }
20    }
21}
22impl<T> FirewallClient<T>
23where
24    T: crate::client::Client,
25{
26    #[doc = "Directory 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> FirewallClient<T>
42where
43    T: crate::client::Client,
44{
45    pub fn rules(&self) -> rules::RulesClient<T> {
46        rules::RulesClient::<T>::new(self.client.clone(), &self.path)
47    }
48}
49impl<T> FirewallClient<T>
50where
51    T: crate::client::Client,
52{
53    pub fn aliases(&self) -> aliases::AliasesClient<T> {
54        aliases::AliasesClient::<T>::new(self.client.clone(), &self.path)
55    }
56}
57impl<T> FirewallClient<T>
58where
59    T: crate::client::Client,
60{
61    pub fn ipset(&self) -> ipset::IpsetClient<T> {
62        ipset::IpsetClient::<T>::new(self.client.clone(), &self.path)
63    }
64}
65impl<T> FirewallClient<T>
66where
67    T: crate::client::Client,
68{
69    pub fn options(&self) -> options::OptionsClient<T> {
70        options::OptionsClient::<T>::new(self.client.clone(), &self.path)
71    }
72}
73impl<T> FirewallClient<T>
74where
75    T: crate::client::Client,
76{
77    pub fn log(&self) -> log::LogClient<T> {
78        log::LogClient::<T>::new(self.client.clone(), &self.path)
79    }
80}
81impl<T> FirewallClient<T>
82where
83    T: crate::client::Client,
84{
85    pub fn refs(&self) -> refs::RefsClient<T> {
86        refs::RefsClient::<T>::new(self.client.clone(), &self.path)
87    }
88}