/*
 * Tapis Security API
 *
 * The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
 *
 * The version of the OpenAPI document: 1.8.2
 * 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 SkSecretVersionMetadata {
    #[serde(rename = "created_time", skip_serializing_if = "Option::is_none")]
    pub created_time: Option<String>,
    #[serde(rename = "current_version", skip_serializing_if = "Option::is_none")]
    pub current_version: Option<i32>,
    #[serde(rename = "max_versions", skip_serializing_if = "Option::is_none")]
    pub max_versions: Option<i32>,
    #[serde(rename = "oldest_version", skip_serializing_if = "Option::is_none")]
    pub oldest_version: Option<i32>,
    #[serde(rename = "updated_time", skip_serializing_if = "Option::is_none")]
    pub updated_time: Option<String>,
    #[serde(rename = "versions", skip_serializing_if = "Option::is_none")]
    pub versions: Option<Vec<models::SkSecretVersion>>,
}

impl SkSecretVersionMetadata {
    pub fn new() -> SkSecretVersionMetadata {
        SkSecretVersionMetadata {
            created_time: None,
            current_version: None,
            max_versions: None,
            oldest_version: None,
            updated_time: None,
            versions: None,
        }
    }
}
