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, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PveActiveStateEnum {
    #[serde(rename = "active")]
    Active,
    #[serde(rename = "inactive")]
    Inactive,
    #[serde(rename = "failed")]
    Failed,
    #[serde(rename = "activating")]
    Activating,
    #[serde(rename = "deactivating")]
    Deactivating,
    #[serde(rename = "maintenance")]
    Maintenance,
    #[serde(rename = "reloading")]
    Reloading,
    #[serde(rename = "refreshing")]
    Refreshing,
    #[serde(rename = "unknown")]
    Unknown,

}

impl std::fmt::Display for PveActiveStateEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Active => write!(f, "active"),
            Self::Inactive => write!(f, "inactive"),
            Self::Failed => write!(f, "failed"),
            Self::Activating => write!(f, "activating"),
            Self::Deactivating => write!(f, "deactivating"),
            Self::Maintenance => write!(f, "maintenance"),
            Self::Reloading => write!(f, "reloading"),
            Self::Refreshing => write!(f, "refreshing"),
            Self::Unknown => write!(f, "unknown"),
        }
    }
}

impl Default for PveActiveStateEnum {
    fn default() -> PveActiveStateEnum {
        Self::Active
    }
}