Skip to main content

clientapi_pve/models/
cluster_sdn_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 ClusterSdnGetOptionsResponseData {
16
17    /// Enable/disable firewall rules.
18    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
19    pub enable: Option<models::PveBoolean>,
20
21    /// Log level for forwarded traffic.
22    #[serde(rename = "log_level_forward", skip_serializing_if = "Option::is_none")]
23    pub log_level_forward: Option<models::PveLogEnum>,
24
25    /// Forward policy.
26    #[serde(rename = "policy_forward", skip_serializing_if = "Option::is_none")]
27    pub policy_forward: Option<models::PvePolicyForwardEnum>,
28
29
30}
31
32impl ClusterSdnGetOptionsResponseData {
33    pub fn new() -> ClusterSdnGetOptionsResponseData {
34        ClusterSdnGetOptionsResponseData {
35            
36            enable: None,
37            
38            log_level_forward: None,
39            
40            policy_forward: None,
41            
42        }
43    }
44}
45
46