Skip to main content

clientapi_pve/models/
cluster_sdn_ipupdate_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 ClusterSdnIpupdateRequest {
16
17    /// The IP address to associate with the given MAC address
18    #[serde(rename = "ip")]
19    pub ip: String,
20
21    /// A common MAC address with the I/G (Individual/Group) bit not set.
22    #[serde(rename = "mac", skip_serializing_if = "Option::is_none")]
23    pub mac: Option<String>,
24
25    /// The (unique) ID of the VM.
26    #[serde(rename = "vmid", skip_serializing_if = "Option::is_none")]
27    pub vmid: Option<i32>,
28
29    /// The SDN zone object identifier.
30    #[serde(rename = "zone")]
31    pub zone: String,
32
33
34}
35
36impl ClusterSdnIpupdateRequest {
37    pub fn new(ip: String, zone: String) -> ClusterSdnIpupdateRequest {
38        ClusterSdnIpupdateRequest {
39            
40            ip,
41            
42            mac: None,
43            
44            vmid: None,
45            
46            zone,
47            
48        }
49    }
50}
51
52