/*
 * 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 QuarantineStatusResponse {
    #[serde(rename = "artifact_id")]
    pub artifact_id: uuid::Uuid,
    #[serde(rename = "is_blocked")]
    pub is_blocked: bool,
    #[serde(rename = "quarantine_status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub quarantine_status: Option<Option<String>>,
    #[serde(rename = "quarantine_until", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub quarantine_until: Option<Option<String>>,
}

impl QuarantineStatusResponse {
    pub fn new(artifact_id: uuid::Uuid, is_blocked: bool) -> QuarantineStatusResponse {
        QuarantineStatusResponse {
            artifact_id,
            is_blocked,
            quarantine_status: None,
            quarantine_until: None,
        }
    }
}

