Skip to main content

clientapi_pve/models/
cluster_sdn_create_entries_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 ClusterSdnCreateEntriesRequest {
16
17    #[serde(rename = "action")]
18    pub action: models::PveActionEnum,
19
20    #[serde(rename = "ge", skip_serializing_if = "Option::is_none")]
21    pub ge: Option<i32>,
22
23    #[serde(rename = "le", skip_serializing_if = "Option::is_none")]
24    pub le: Option<i32>,
25
26    /// the token for unlocking the global SDN configuration
27    #[serde(rename = "lock-token", skip_serializing_if = "Option::is_none")]
28    pub lock_token: Option<String>,
29
30    #[serde(rename = "prefix")]
31    pub prefix: String,
32
33    #[serde(rename = "seq", skip_serializing_if = "Option::is_none")]
34    pub seq: Option<i32>,
35
36
37}
38
39impl ClusterSdnCreateEntriesRequest {
40    pub fn new(action: models::PveActionEnum, prefix: String) -> ClusterSdnCreateEntriesRequest {
41        ClusterSdnCreateEntriesRequest {
42            
43            action,
44            
45            ge: None,
46            
47            le: None,
48            
49            lock_token: None,
50            
51            prefix,
52            
53            seq: None,
54            
55        }
56    }
57}
58
59