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

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

/// JobsParseRequest is used for arguments of the /v1/jobs/parse endpoint
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct JobsParseRequest {
    /// JobHCL is an hcl jobspec
    #[serde(rename = "JobHCL")]
    pub job_hcl: String,

    /// Variables are HCL2 variables associated with the job. Only works with hcl2.
    ///
    /// Interpreted as if it were the content of a variables file.
    #[serde(rename = "Variables")]
    pub variables: String,

    /// Canonicalize is a flag as to if the server should return default values
    /// for unset fields
    #[serde(rename = "Canonicalize")]
    pub canonicalize: bool,
}
