Skip to main content

clientapi_pve/models/
cluster_sdn_update_subnets_request.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 ClusterSdnUpdateSubnetsRequest {
16
17    /// A list of settings you want to delete.
18    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
19    pub delete: Option<String>,
20
21    /// IP address for the DNS server
22    #[serde(rename = "dhcp-dns-server", skip_serializing_if = "Option::is_none")]
23    pub dhcp_dns_server: Option<String>,
24
25    /// A list of DHCP ranges for this subnet
26    #[serde(rename = "dhcp-range", skip_serializing_if = "Option::is_none")]
27    pub dhcp_range: Option<Vec<String>>,
28
29    /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
30    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
31    pub digest: Option<String>,
32
33    /// dns domain zone prefix  ex: 'adm' -> <hostname>.adm.mydomain.com
34    #[serde(rename = "dnszoneprefix", skip_serializing_if = "Option::is_none")]
35    pub dnszoneprefix: Option<String>,
36
37    /// Subnet Gateway: Will be assign on vnet for layer3 zones
38    #[serde(rename = "gateway", skip_serializing_if = "Option::is_none")]
39    pub gateway: Option<String>,
40
41    /// the token for unlocking the global SDN configuration
42    #[serde(rename = "lock-token", skip_serializing_if = "Option::is_none")]
43    pub lock_token: Option<String>,
44
45    /// enable masquerade for this subnet if pve-firewall
46    #[serde(rename = "snat", skip_serializing_if = "Option::is_none")]
47    pub snat: Option<models::PveBoolean>,
48
49
50}
51
52impl ClusterSdnUpdateSubnetsRequest {
53    pub fn new() -> ClusterSdnUpdateSubnetsRequest {
54        ClusterSdnUpdateSubnetsRequest {
55            
56            delete: None,
57            
58            dhcp_dns_server: None,
59            
60            dhcp_range: None,
61            
62            digest: None,
63            
64            dnszoneprefix: None,
65            
66            gateway: None,
67            
68            lock_token: None,
69            
70            snat: None,
71            
72        }
73    }
74}
75
76