clientapi-pve 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Virtual Environment API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PveSdnIpamNetboxConfig {

    #[serde(rename = "url")]
    pub url: String,

    #[serde(rename = "token")]
    pub token: String,

    /// Certificate SHA 256 fingerprint.
    #[serde(rename = "fingerprint", skip_serializing_if = "Option::is_none")]
    pub fingerprint: Option<String>,

    #[serde(rename = "type")]
    pub r#type: Type,


}

impl PveSdnIpamNetboxConfig {
    pub fn new(url: String, token: String, r#type: Type) -> PveSdnIpamNetboxConfig {
        PveSdnIpamNetboxConfig {
            
            url,
            
            token,
            
            fingerprint: None,
            
            r#type,
            
        }
    }
}

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "netbox")]
    Netbox,
}

impl Default for Type {
    fn default() -> Type {
        Self::Netbox
    }
}