/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListBlacklistedAgentTokens200ResponseInner {
    /// The blacklisted token (without prefix)
    #[serde(rename = "token")]
    pub token: String,
    /// When the blacklist entry expires
    #[serde(rename = "expires_at")]
    pub expires_at: String,
    /// When the token was blacklisted
    #[serde(rename = "blacklisted_at")]
    pub blacklisted_at: String,
    /// Email of the user who blacklisted the token
    #[serde(rename = "blacklisted_by")]
    pub blacklisted_by: String,
}

impl ListBlacklistedAgentTokens200ResponseInner {
    pub fn new(token: String, expires_at: String, blacklisted_at: String, blacklisted_by: String) -> ListBlacklistedAgentTokens200ResponseInner {
        ListBlacklistedAgentTokens200ResponseInner {
            token,
            expires_at,
            blacklisted_at,
            blacklisted_by,
        }
    }
}

