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 ClusterGetStatusResponseDataInner {

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

    /// [node] IP of the resolved nodename.
    #[serde(rename = "ip", skip_serializing_if = "Option::is_none")]
    pub ip: Option<String>,

    /// [node] Proxmox VE Subscription level, indicates if eligible for enterprise support as well as access to the stable Proxmox VE Enterprise Repository.
    #[serde(rename = "level", skip_serializing_if = "Option::is_none")]
    pub level: Option<String>,

    /// [node] Indicates if this is the responding node.
    #[serde(rename = "local", skip_serializing_if = "Option::is_none")]
    pub local: Option<models::PveBoolean>,

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

    /// [node] ID of the node from the corosync configuration.
    #[serde(rename = "nodeid", skip_serializing_if = "Option::is_none")]
    pub nodeid: Option<i64>,

    /// [cluster] Nodes count, including offline nodes.
    #[serde(rename = "nodes", skip_serializing_if = "Option::is_none")]
    pub nodes: Option<i64>,

    /// [node] Indicates if the node is online or offline.
    #[serde(rename = "online", skip_serializing_if = "Option::is_none")]
    pub online: Option<models::PveBoolean>,

    /// [cluster] Indicates if there is a majority of nodes online to make decisions
    #[serde(rename = "quorate", skip_serializing_if = "Option::is_none")]
    pub quorate: Option<models::PveBoolean>,

    /// Indicates the type, either cluster or node. The type defines the object properties e.g. quorate available for type cluster.
    #[serde(rename = "type")]
    pub r#type: models::PveClusterTypeEnum3,

    /// [cluster] Current version of the corosync configuration file.
    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
    pub version: Option<i64>,


}

impl ClusterGetStatusResponseDataInner {
    pub fn new(id: String, name: String, r#type: models::PveClusterTypeEnum3) -> ClusterGetStatusResponseDataInner {
        ClusterGetStatusResponseDataInner {
            
            id,
            
            ip: None,
            
            level: None,
            
            local: None,
            
            name,
            
            nodeid: None,
            
            nodes: None,
            
            online: None,
            
            quorate: None,
            
            r#type,
            
            version: None,
            
        }
    }
}