/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// CSINodeInfo is the fingerprinted data from a CSI Plugin that is specific to
/// the Node API.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct CsiNodeInfo {
    /// SupportsExpand indicates plugin support for EXPAND_VOLUME
    #[serde(rename = "SupportsExpand")]
    pub supports_expand: bool,

    /// SupportsCondition indicates plugin support for VOLUME_CONDITION
    #[serde(rename = "SupportsCondition")]
    pub supports_condition: bool,

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

    #[serde(rename = "MaxVolumes")]
    pub max_volumes: i64,

    #[serde(rename = "AccessibleTopology", skip_serializing_if = "Option::is_none")]
    pub accessible_topology: Option<super::CsiTopology>,

    /// RequiresNodeStageVolume indicates whether the client should Stage/Unstage
    /// volumes on this node.
    #[serde(rename = "RequiresNodeStageVolume")]
    pub requires_node_stage_volume: bool,

    /// SupportsStats indicates plugin support for GET_VOLUME_STATS
    #[serde(rename = "SupportsStats")]
    pub supports_stats: bool,
}
