clientapi-pve 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Virtual Environment API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PveSdnZoneFaucetConfig {

    /// List of cluster node names.
    #[serde(rename = "nodes", skip_serializing_if = "Option::is_none")]
    pub nodes: Option<String>,

    /// Faucet dataplane id
    #[serde(rename = "dp-id")]
    pub dp_id: i64,

    /// Controller for this zone.
    #[serde(rename = "controller")]
    pub controller: String,

    /// dns api server
    #[serde(rename = "dns", skip_serializing_if = "Option::is_none")]
    pub dns: Option<String>,

    /// reverse dns api server
    #[serde(rename = "reversedns", skip_serializing_if = "Option::is_none")]
    pub reversedns: Option<String>,

    /// dns domain zone  ex: mydomain.com
    #[serde(rename = "dnszone", skip_serializing_if = "Option::is_none")]
    pub dnszone: Option<String>,

    /// use a specific ipam
    #[serde(rename = "ipam", skip_serializing_if = "Option::is_none")]
    pub ipam: Option<String>,

    #[serde(rename = "type")]
    pub r#type: Type,


}

impl PveSdnZoneFaucetConfig {
    pub fn new(dp_id: i64, controller: String, r#type: Type) -> PveSdnZoneFaucetConfig {
        PveSdnZoneFaucetConfig {
            
            nodes: None,
            
            dp_id,
            
            controller,
            
            dns: None,
            
            reversedns: None,
            
            dnszone: None,
            
            ipam: None,
            
            r#type,
            
        }
    }
}

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "faucet")]
    Faucet,
}

impl Default for Type {
    fn default() -> Type {
        Self::Faucet
    }
}