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

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

/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct NodeResources {
    #[serde(
        rename = "Devices",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub devices: Vec<super::NodeDeviceResource>,

    #[serde(rename = "MinDynamicPort")]
    pub min_dynamic_port: i64,

    #[serde(rename = "MaxDynamicPort")]
    pub max_dynamic_port: i64,

    #[serde(rename = "Cpu")]
    pub cpu: super::NodeCpuResources,

    #[serde(rename = "Memory")]
    pub memory: super::NodeMemoryResources,

    #[serde(rename = "Disk")]
    pub disk: super::NodeDiskResources,

    #[serde(
        rename = "Networks",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub networks: Vec<super::NetworkResource>,
}
