/*
 * 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 ScanConfigResponse {
    #[serde(rename = "block_on_policy_violation")]
    pub block_on_policy_violation: bool,
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "repository_id")]
    pub repository_id: uuid::Uuid,
    #[serde(rename = "scan_enabled")]
    pub scan_enabled: bool,
    #[serde(rename = "scan_on_proxy")]
    pub scan_on_proxy: bool,
    #[serde(rename = "scan_on_upload")]
    pub scan_on_upload: bool,
    #[serde(rename = "severity_threshold")]
    pub severity_threshold: String,
    #[serde(rename = "updated_at")]
    pub updated_at: String,
}

impl ScanConfigResponse {
    pub fn new(block_on_policy_violation: bool, created_at: String, id: uuid::Uuid, repository_id: uuid::Uuid, scan_enabled: bool, scan_on_proxy: bool, scan_on_upload: bool, severity_threshold: String, updated_at: String) -> ScanConfigResponse {
        ScanConfigResponse {
            block_on_policy_violation,
            created_at,
            id,
            repository_id,
            scan_enabled,
            scan_on_proxy,
            scan_on_upload,
            severity_threshold,
            updated_at,
        }
    }
}

