/*
 * 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 UpdateGateRequest {
    #[serde(rename = "action", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub action: Option<Option<String>>,
    #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub description: Option<Option<String>>,
    #[serde(rename = "enforce_on_download", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub enforce_on_download: Option<Option<bool>>,
    #[serde(rename = "enforce_on_promotion", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub enforce_on_promotion: Option<Option<bool>>,
    #[serde(rename = "is_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub is_enabled: Option<Option<bool>>,
    #[serde(rename = "max_critical_issues", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub max_critical_issues: Option<Option<i32>>,
    #[serde(rename = "max_high_issues", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub max_high_issues: Option<Option<i32>>,
    #[serde(rename = "max_medium_issues", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub max_medium_issues: Option<Option<i32>>,
    #[serde(rename = "min_health_score", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub min_health_score: Option<Option<i32>>,
    #[serde(rename = "min_metadata_score", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub min_metadata_score: Option<Option<i32>>,
    #[serde(rename = "min_quality_score", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub min_quality_score: Option<Option<i32>>,
    #[serde(rename = "min_security_score", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub min_security_score: Option<Option<i32>>,
    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name: Option<Option<String>>,
    #[serde(rename = "required_checks", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub required_checks: Option<Option<Vec<String>>>,
}

impl UpdateGateRequest {
    pub fn new() -> UpdateGateRequest {
        UpdateGateRequest {
            action: None,
            description: None,
            enforce_on_download: None,
            enforce_on_promotion: None,
            is_enabled: None,
            max_critical_issues: None,
            max_high_issues: None,
            max_medium_issues: None,
            min_health_score: None,
            min_metadata_score: None,
            min_quality_score: None,
            min_security_score: None,
            name: None,
            required_checks: None,
        }
    }
}

