/*
 * 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 CreateMigrationJobRequest {
    /// Source connection to migrate from.
    #[serde(rename = "connection_id")]
    pub connection_id: uuid::Uuid,
    /// List of source repository keys to migrate.
    #[serde(rename = "source_repos")]
    pub source_repos: Vec<String>,
    /// List of target repository keys to migrate into.
    #[serde(rename = "target_repos")]
    pub target_repos: Vec<String>,
    /// Migration options (e.g. include_metadata, dry_run).
    #[serde(rename = "options")]
    pub options: std::collections::HashMap<String, serde_json::Value>,
}

impl CreateMigrationJobRequest {
    pub fn new(connection_id: uuid::Uuid, source_repos: Vec<String>, target_repos: Vec<String>, options: std::collections::HashMap<String, serde_json::Value>) -> CreateMigrationJobRequest {
        CreateMigrationJobRequest {
            connection_id,
            source_repos,
            target_repos,
            options,
        }
    }
}

