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

    /// A list of settings you want to delete.
    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
    pub delete: Option<String>,

    /// 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>>,

    /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
    pub digest: Option<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>,


}

impl ClusterSdnUpdateSubnetsRequest {
    pub fn new() -> ClusterSdnUpdateSubnetsRequest {
        ClusterSdnUpdateSubnetsRequest {
            
            delete: None,
            
            dhcp_dns_server: None,
            
            dhcp_range: None,
            
            digest: None,
            
            dnszoneprefix: None,
            
            gateway: None,
            
            lock_token: None,
            
            snat: None,
            
        }
    }
}