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

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

/// AutopilotZoneUpgradeVersions holds the list of servers
/// in a redundancy zone for a specific version.  (Enterprise only)
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct AutopilotZoneUpgradeVersions {
    #[serde(
        rename = "TargetVersionNonVoters",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub target_version_non_voters: Vec<String>,

    #[serde(
        rename = "OtherVersionVoters",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub other_version_voters: Vec<String>,

    #[serde(
        rename = "OtherVersionNonVoters",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub other_version_non_voters: Vec<String>,

    #[serde(
        rename = "TargetVersionVoters",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub target_version_voters: Vec<String>,
}
