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 ClusterSdnCreateSubnetsRequest {

    /// IP address for the DNS server
    #[serde(rename = "dhcp-dns-server", skip_serializing_if = "Option::is_none")]
    pub dhcp_dns_server: Option<String>,

    /// A list of DHCP ranges for this subnet
    #[serde(rename = "dhcp-range", skip_serializing_if = "Option::is_none")]
    pub dhcp_range: Option<Vec<String>>,

    /// dns domain zone prefix  ex: 'adm' -> <hostname>.adm.mydomain.com
    #[serde(rename = "dnszoneprefix", skip_serializing_if = "Option::is_none")]
    pub dnszoneprefix: Option<String>,

    /// Subnet Gateway: Will be assign on vnet for layer3 zones
    #[serde(rename = "gateway", skip_serializing_if = "Option::is_none")]
    pub gateway: Option<String>,

    /// the token for unlocking the global SDN configuration
    #[serde(rename = "lock-token", skip_serializing_if = "Option::is_none")]
    pub lock_token: Option<String>,

    /// enable masquerade for this subnet if pve-firewall
    #[serde(rename = "snat", skip_serializing_if = "Option::is_none")]
    pub snat: Option<models::PveBoolean>,

    /// The SDN subnet object identifier.
    #[serde(rename = "subnet")]
    pub subnet: String,

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


}

impl ClusterSdnCreateSubnetsRequest {
    pub fn new(subnet: String, r#type: models::PveClusterSdnTypeEnum2) -> ClusterSdnCreateSubnetsRequest {
        ClusterSdnCreateSubnetsRequest {
            
            dhcp_dns_server: None,
            
            dhcp_range: None,
            
            dnszoneprefix: None,
            
            gateway: None,
            
            lock_token: None,
            
            snat: None,
            
            subnet,
            
            r#type,
            
        }
    }
}