/*
 * Artifact Keeper API
 *
 * REST API for Artifact Keeper, an open-source universal artifact registry. Covers user management, repositories, artifacts, search, security scanning, SBOM, dependency tracking, SSO, analytics, monitoring, telemetry, lifecycle policies, plugins, edge nodes, migration, and administration. Format-specific protocol endpoints (npm, PyPI, Maven, Docker/OCI, etc.) are not included; those follow their respective upstream specifications.
 *
 * The version of the OpenAPI document: 1.0.0-a2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PluginEvent {
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "plugin_id")]
    pub plugin_id: uuid::Uuid,
    #[serde(rename = "event_type")]
    pub event_type: String,
    #[serde(rename = "message")]
    pub message: String,
    #[serde(rename = "created_at")]
    pub created_at: String,
}

impl PluginEvent {
    pub fn new(id: uuid::Uuid, plugin_id: uuid::Uuid, event_type: String, message: String, created_at: String) -> PluginEvent {
        PluginEvent {
            id,
            plugin_id,
            event_type,
            message,
            created_at,
        }
    }
}

