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

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

/// TaskArtifact is used to download artifacts before running a task.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct TaskArtifact {
    #[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
    pub getter_mode: Option<String>,

    #[serde(rename = "insecure", skip_serializing_if = "Option::is_none")]
    pub getter_insecure: Option<bool>,

    #[serde(rename = "destination", skip_serializing_if = "Option::is_none")]
    pub relative_dest: Option<String>,

    #[serde(rename = "chown", skip_serializing_if = "Option::is_none")]
    pub chown: Option<bool>,

    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub getter_source: Option<String>,

    #[serde(rename = "options", skip_serializing_if = "Option::is_none")]
    pub getter_options: Option<std::collections::HashMap<String, String>>,

    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
    pub getter_headers: Option<std::collections::HashMap<String, String>>,
}
