/*
 * 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 MigrationAssessment {
    #[serde(rename = "job_id")]
    pub job_id: uuid::Uuid,
    #[serde(rename = "total_artifacts")]
    pub total_artifacts: i32,
    #[serde(rename = "total_size_bytes")]
    pub total_size_bytes: i32,
    /// Map of format name to artifact count
    #[serde(rename = "format_breakdown")]
    pub format_breakdown: std::collections::HashMap<String, i32>,
    #[serde(rename = "estimated_duration_seconds")]
    pub estimated_duration_seconds: i32,
    #[serde(rename = "warnings")]
    pub warnings: Vec<String>,
}

impl MigrationAssessment {
    pub fn new(job_id: uuid::Uuid, total_artifacts: i32, total_size_bytes: i32, format_breakdown: std::collections::HashMap<String, i32>, estimated_duration_seconds: i32, warnings: Vec<String>) -> MigrationAssessment {
        MigrationAssessment {
            job_id,
            total_artifacts,
            total_size_bytes,
            format_breakdown,
            estimated_duration_seconds,
            warnings,
        }
    }
}

