// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Secret {
    pub name: String,
    /// When the secret was first created.
    pub created_at: String,
    /// When the secret value was last updated.
    pub updated_at: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub created_by: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub updated_by: Option<String>,
}
impl Secret {
    /// Construct a new `Secret` with the required fields set.
    #[allow(deprecated)]
    pub fn new(
        name: impl Into<String>,
        created_at: impl Into<String>,
        updated_at: impl Into<String>,
    ) -> Self {
        Self {
            name: name.into(),
            created_at: created_at.into(),
            updated_at: updated_at.into(),
            created_by: Default::default(),
            updated_by: Default::default(),
        }
    }
}
