/*
 * Tapis Applications API
 *
 * The Tapis Applications API provides for management of Tapis applications including permissions.
 *
 * The version of the OpenAPI document: 26Q1.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 AppFileInput {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "inputMode", skip_serializing_if = "Option::is_none")]
    pub input_mode: Option<models::FileInputModeEnum>,
    #[serde(rename = "envKey", skip_serializing_if = "Option::is_none")]
    pub env_key: Option<String>,
    #[serde(rename = "autoMountLocal", skip_serializing_if = "Option::is_none")]
    pub auto_mount_local: Option<bool>,
    #[serde(rename = "notes", skip_serializing_if = "Option::is_none")]
    pub notes: Option<serde_json::Value>,
    #[serde(rename = "sourceUrl", skip_serializing_if = "Option::is_none")]
    pub source_url: Option<String>,
    #[serde(rename = "targetPath")]
    pub target_path: String,
}

impl AppFileInput {
    pub fn new(name: String, target_path: String) -> AppFileInput {
        AppFileInput {
            name,
            description: None,
            input_mode: None,
            env_key: None,
            auto_mount_local: None,
            notes: None,
            source_url: None,
            target_path,
        }
    }
}
