Skip to main content

clientapi_pve/models/
cluster_sdn_create_zones_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, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(tag = "type")]
16pub enum ClusterSdnCreateZonesRequest {
17    #[serde(rename="simple")]
18    Simple(Box<models::PveSdnZoneSimpleConfig>),
19    #[serde(rename="vlan")]
20    Vlan(Box<models::PveSdnZoneVlanConfig>),
21    #[serde(rename="qinq")]
22    Qinq(Box<models::PveSdnZoneQinqConfig>),
23    #[serde(rename="vxlan")]
24    Vxlan(Box<models::PveSdnZoneVxlanConfig>),
25    #[serde(rename="evpn")]
26    Evpn(Box<models::PveSdnZoneEvpnConfig>),
27    #[serde(rename="faucet")]
28    Faucet(Box<models::PveSdnZoneFaucetConfig>),
29}
30
31impl Default for ClusterSdnCreateZonesRequest {
32    fn default() -> Self {
33        Self::Simple(Default::default())
34    }
35}
36
37