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

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

/// JobSummary summarizes the state of the allocations of a job
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct JobSummary {
    #[serde(rename = "JobID")]
    pub job_id: String,

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

    #[serde(rename = "Summary")]
    pub summary: std::collections::HashMap<String, super::TaskGroupSummary>,

    #[serde(rename = "Children", skip_serializing_if = "Option::is_none")]
    pub children: Option<super::JobChildrenSummary>,

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

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