Skip to main content

clientapi_pve/models/
cluster_sdn_create_vnets_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 ClusterSdnCreateVnetsRequest {
16
17    /// Alias name of the VNet.
18    #[serde(rename = "alias", skip_serializing_if = "Option::is_none")]
19    pub alias: Option<String>,
20
21    /// If true, sets the isolated property for all interfaces on the bridge of this VNet.
22    #[serde(rename = "isolate-ports", skip_serializing_if = "Option::is_none")]
23    pub isolate_ports: Option<models::PveBoolean>,
24
25    /// the token for unlocking the global SDN configuration
26    #[serde(rename = "lock-token", skip_serializing_if = "Option::is_none")]
27    pub lock_token: Option<String>,
28
29    /// VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones).
30    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
31    pub tag: Option<i32>,
32
33    /// Type of the VNet.
34    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
35    pub r#type: Option<models::PveClusterSdnTypeTypeEnum3>,
36
37    /// Allow VLANs to pass through this vnet.
38    #[serde(rename = "vlanaware", skip_serializing_if = "Option::is_none")]
39    pub vlanaware: Option<models::PveBoolean>,
40
41    /// The SDN vnet object identifier.
42    #[serde(rename = "vnet")]
43    pub vnet: String,
44
45    /// Name of the zone this VNet belongs to.
46    #[serde(rename = "zone")]
47    pub zone: String,
48
49
50}
51
52impl ClusterSdnCreateVnetsRequest {
53    pub fn new(vnet: String, zone: String) -> ClusterSdnCreateVnetsRequest {
54        ClusterSdnCreateVnetsRequest {
55            
56            alias: None,
57            
58            isolate_ports: None,
59            
60            lock_token: None,
61            
62            tag: None,
63            
64            r#type: None,
65            
66            vlanaware: None,
67            
68            vnet,
69            
70            zone,
71            
72        }
73    }
74}
75
76