Skip to main content

clientapi_pve/models/
cluster_firewall_get_options_response_data.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ClusterFirewallGetOptionsResponseData {
16
17    /// Enable ebtables rules cluster wide.
18    #[serde(rename = "ebtables", skip_serializing_if = "Option::is_none")]
19    pub ebtables: Option<models::PveBoolean>,
20
21    /// Enable or disable the firewall cluster wide.
22    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
23    pub enable: Option<i64>,
24
25    /// Log ratelimiting settings
26    #[serde(rename = "log_ratelimit", skip_serializing_if = "Option::is_none")]
27    pub log_ratelimit: Option<Box<models::PveLogRatelimitField>>,
28
29    /// Forward policy.
30    #[serde(rename = "policy_forward", skip_serializing_if = "Option::is_none")]
31    pub policy_forward: Option<models::PvePolicyForwardEnum>,
32
33    /// Input policy.
34    #[serde(rename = "policy_in", skip_serializing_if = "Option::is_none")]
35    pub policy_in: Option<models::PvePolicyInEnum>,
36
37    /// Output policy.
38    #[serde(rename = "policy_out", skip_serializing_if = "Option::is_none")]
39    pub policy_out: Option<models::PvePolicyInEnum>,
40
41
42}
43
44impl ClusterFirewallGetOptionsResponseData {
45    pub fn new() -> ClusterFirewallGetOptionsResponseData {
46        ClusterFirewallGetOptionsResponseData {
47            
48            ebtables: None,
49            
50            enable: None,
51            
52            log_ratelimit: None,
53            
54            policy_forward: None,
55            
56            policy_in: None,
57            
58            policy_out: None,
59            
60        }
61    }
62}
63
64