/*
 * 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 ReqGroupSecret {
    #[serde(rename = "secret_id")]
    pub secret_id: String,
    /// The unique identifier of the secret in the group. Defaults to the secret_id of no id is provided
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
}

impl ReqGroupSecret {
    pub fn new(secret_id: String) -> ReqGroupSecret {
        ReqGroupSecret {
            secret_id,
            id: None,
        }
    }
}
