1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* 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,
}
}
}