/*
 * 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 ValueFrom {
    #[serde(rename = "args", skip_serializing_if = "Option::is_none")]
    pub args: Option<String>,
    #[serde(rename = "env", skip_serializing_if = "Option::is_none")]
    pub env: Option<String>,
    #[serde(rename = "task_output", skip_serializing_if = "Option::is_none")]
    pub task_output: Option<Box<models::TaskOutputRef>>,
    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
    pub secret: Option<Box<models::SecretRef>>,
}

impl ValueFrom {
    pub fn new() -> ValueFrom {
        ValueFrom {
            args: None,
            env: None,
            task_output: None,
            host: None,
            secret: None,
        }
    }
}
