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

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

/// ScalingPolicyListStub is used to return a subset of scaling policy information
/// for the scaling policy list
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct ScalingPolicyListStub {
    #[serde(rename = "ID")]
    pub id: String,

    #[serde(rename = "Enabled")]
    pub enabled: bool,

    #[serde(rename = "Type")]
    pub r#type: String,

    #[serde(rename = "Target")]
    pub target: std::collections::HashMap<String, String>,

    #[serde(rename = "CreateIndex")]
    pub create_index: u64,

    #[serde(rename = "ModifyIndex")]
    pub modify_index: u64,
}
