/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BulkPromoteRequest {
    #[serde(rename = "artifact_ids")]
    pub artifact_ids: Vec<uuid::Uuid>,
    #[serde(rename = "notes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub notes: Option<Option<String>>,
    #[serde(rename = "skip_policy_check", skip_serializing_if = "Option::is_none")]
    pub skip_policy_check: Option<bool>,
    /// Target release repository key. When omitted, the staging repository's linked release target (from `repository_config`) is used instead.
    #[serde(rename = "target_repository", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub target_repository: Option<Option<String>>,
}

impl BulkPromoteRequest {
    pub fn new(artifact_ids: Vec<uuid::Uuid>) -> BulkPromoteRequest {
        BulkPromoteRequest {
            artifact_ids,
            notes: None,
            skip_policy_check: None,
            target_repository: None,
        }
    }
}

