clientapi_pve/models/cluster_sdn_ipcreate_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 ClusterSdnIpcreateRequest {
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 SDN zone object identifier.
26 #[serde(rename = "zone")]
27 pub zone: String,
28
29
30}
31
32impl ClusterSdnIpcreateRequest {
33 pub fn new(ip: String, zone: String) -> ClusterSdnIpcreateRequest {
34 ClusterSdnIpcreateRequest {
35
36 ip,
37
38 mac: None,
39
40 zone,
41
42 }
43 }
44}
45
46