/*
 * 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 RemoteRepository {
    #[serde(rename = "key")]
    pub key: String,
    #[serde(rename = "format")]
    pub format: String,
    #[serde(rename = "package_type")]
    pub package_type: String,
    #[serde(rename = "artifact_count")]
    pub artifact_count: i32,
    #[serde(rename = "size_bytes")]
    pub size_bytes: i32,
}

impl RemoteRepository {
    pub fn new(key: String, format: String, package_type: String, artifact_count: i32, size_bytes: i32) -> RemoteRepository {
        RemoteRepository {
            key,
            format,
            package_type,
            artifact_count,
            size_bytes,
        }
    }
}

