Skip to main content

tapis_apps/models/
app_file_input.rs

1/*
2 * Tapis Applications API
3 *
4 * The Tapis Applications API provides for management of Tapis applications including permissions.
5 *
6 * The version of the OpenAPI document: 25Q4.0
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AppFileInput {
16    #[serde(rename = "name")]
17    pub name: String,
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    #[serde(rename = "inputMode", skip_serializing_if = "Option::is_none")]
21    pub input_mode: Option<models::FileInputModeEnum>,
22    #[serde(rename = "envKey", skip_serializing_if = "Option::is_none")]
23    pub env_key: Option<String>,
24    #[serde(rename = "autoMountLocal", skip_serializing_if = "Option::is_none")]
25    pub auto_mount_local: Option<bool>,
26    #[serde(rename = "notes", skip_serializing_if = "Option::is_none")]
27    pub notes: Option<serde_json::Value>,
28    #[serde(rename = "sourceUrl", skip_serializing_if = "Option::is_none")]
29    pub source_url: Option<String>,
30    #[serde(rename = "targetPath")]
31    pub target_path: String,
32}
33
34impl AppFileInput {
35    pub fn new(name: String, target_path: String) -> AppFileInput {
36        AppFileInput {
37            name,
38            description: None,
39            input_mode: None,
40            env_key: None,
41            auto_mount_local: None,
42            notes: None,
43            source_url: None,
44            target_path,
45        }
46    }
47}