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

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

/// JobScaleStatusResponse is used to return information about job scaling status
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct JobScaleStatusResponse {
    #[serde(rename = "JobModifyIndex")]
    pub job_modify_index: u64,

    #[serde(rename = "JobStopped")]
    pub job_stopped: bool,

    #[serde(rename = "TaskGroups")]
    pub task_groups: std::collections::HashMap<String, super::TaskGroupScaleStatus>,

    #[serde(rename = "JobID")]
    pub job_id: String,

    #[serde(rename = "Namespace")]
    pub namespace: String,

    #[serde(rename = "JobCreateIndex")]
    pub job_create_index: u64,
}
