/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EditVariable {
    /// The path to the variable
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    /// The new value of the variable
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
    /// Whether the variable is a secret
    #[serde(rename = "is_secret", skip_serializing_if = "Option::is_none")]
    pub is_secret: Option<bool>,
    /// The new description of the variable
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
    pub labels: Option<Vec<String>>,
    #[serde(rename = "ws_specific", skip_serializing_if = "Option::is_none")]
    pub ws_specific: Option<bool>,
}

impl EditVariable {
    pub fn new() -> EditVariable {
        EditVariable {
            path: None,
            value: None,
            is_secret: None,
            description: None,
            labels: None,
            ws_specific: None,
        }
    }
}

