/*
 * Artifact Keeper API
 *
 * REST API for Artifact Keeper, an open-source universal artifact registry. Covers user management, repositories, artifacts, search, security scanning, SBOM, dependency tracking, SSO, analytics, monitoring, telemetry, lifecycle policies, plugins, edge nodes, migration, and administration. Format-specific protocol endpoints (npm, PyPI, Maven, Docker/OCI, etc.) are not included; those follow their respective upstream specifications.
 *
 * The version of the OpenAPI document: 1.0.0-a2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetSystemStats200Response {
    #[serde(rename = "users")]
    pub users: i32,
    #[serde(rename = "repositories")]
    pub repositories: i32,
    #[serde(rename = "artifacts")]
    pub artifacts: i32,
    #[serde(rename = "storage_used_bytes")]
    pub storage_used_bytes: i64,
    #[serde(rename = "total_downloads")]
    pub total_downloads: i64,
}

impl GetSystemStats200Response {
    pub fn new(users: i32, repositories: i32, artifacts: i32, storage_used_bytes: i64, total_downloads: i64) -> GetSystemStats200Response {
        GetSystemStats200Response {
            users,
            repositories,
            artifacts,
            storage_used_bytes,
            total_downloads,
        }
    }
}

