/*
 * Tapis Workflows API
 *
 * Create and manage pipelines
 *
 * The version of the OpenAPI document: 1.6.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReqTapisSystemArchive {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "type")]
    pub r#type: models::EnumArchiveType,
    #[serde(rename = "archive_dir", skip_serializing_if = "Option::is_none")]
    pub archive_dir: Option<String>,
    #[serde(rename = "system_id")]
    pub system_id: String,
}

impl ReqTapisSystemArchive {
    pub fn new(
        id: String,
        r#type: models::EnumArchiveType,
        system_id: String,
    ) -> ReqTapisSystemArchive {
        ReqTapisSystemArchive {
            id,
            r#type,
            archive_dir: None,
            system_id,
        }
    }
}
