/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateMigrationRequest {
    #[serde(rename = "config")]
    pub config: serde_json::Value,
    #[serde(rename = "job_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub job_type: Option<Option<String>>,
    #[serde(rename = "source_connection_id")]
    pub source_connection_id: uuid::Uuid,
}

impl CreateMigrationRequest {
    pub fn new(config: serde_json::Value, source_connection_id: uuid::Uuid) -> CreateMigrationRequest {
        CreateMigrationRequest {
            config,
            job_type: None,
            source_connection_id,
        }
    }
}

