/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.0.0-rc.3
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VirtualMemberResponse {
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "member_repo_id")]
    pub member_repo_id: uuid::Uuid,
    #[serde(rename = "member_repo_key")]
    pub member_repo_key: String,
    #[serde(rename = "member_repo_name")]
    pub member_repo_name: String,
    #[serde(rename = "member_repo_type")]
    pub member_repo_type: String,
    #[serde(rename = "priority")]
    pub priority: i32,
}

impl VirtualMemberResponse {
    pub fn new(created_at: String, id: uuid::Uuid, member_repo_id: uuid::Uuid, member_repo_key: String, member_repo_name: String, member_repo_type: String, priority: i32) -> VirtualMemberResponse {
        VirtualMemberResponse {
            created_at,
            id,
            member_repo_id,
            member_repo_key,
            member_repo_name,
            member_repo_type,
            priority,
        }
    }
}

