/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.0.0-rc.3
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// StorageSnapshot : A single day's storage metrics snapshot.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StorageSnapshot {
    #[serde(rename = "snapshot_date")]
    pub snapshot_date: String,
    #[serde(rename = "total_artifacts")]
    pub total_artifacts: i64,
    #[serde(rename = "total_downloads")]
    pub total_downloads: i64,
    #[serde(rename = "total_repositories")]
    pub total_repositories: i64,
    #[serde(rename = "total_storage_bytes")]
    pub total_storage_bytes: i64,
    #[serde(rename = "total_users")]
    pub total_users: i64,
}

impl StorageSnapshot {
    /// A single day's storage metrics snapshot.
    pub fn new(snapshot_date: String, total_artifacts: i64, total_downloads: i64, total_repositories: i64, total_storage_bytes: i64, total_users: i64) -> StorageSnapshot {
        StorageSnapshot {
            snapshot_date,
            total_artifacts,
            total_downloads,
            total_repositories,
            total_storage_bytes,
            total_users,
        }
    }
}

