/*
 * 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 CleanupResponse {
    #[serde(rename = "audit_logs_deleted")]
    pub audit_logs_deleted: i64,
    #[serde(rename = "backups_deleted")]
    pub backups_deleted: i64,
    #[serde(rename = "peers_marked_offline")]
    pub peers_marked_offline: i64,
    #[serde(rename = "stale_uploads_deleted")]
    pub stale_uploads_deleted: i64,
}

impl CleanupResponse {
    pub fn new(audit_logs_deleted: i64, backups_deleted: i64, peers_marked_offline: i64, stale_uploads_deleted: i64) -> CleanupResponse {
        CleanupResponse {
            audit_logs_deleted,
            backups_deleted,
            peers_marked_offline,
            stale_uploads_deleted,
        }
    }
}

