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

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

/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct Vault {
    #[serde(
        rename = "Policies",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub policies: Vec<String>,

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

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

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

    #[serde(rename = "Role")]
    pub role: String,

    #[serde(rename = "Cluster")]
    pub cluster: String,

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

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

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