/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * 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 CreateAgentTokenRequest {
    #[serde(rename = "worker_group")]
    pub worker_group: String,
    #[serde(rename = "tags")]
    pub tags: Vec<String>,
    #[serde(rename = "exp")]
    pub exp: i32,
}

impl CreateAgentTokenRequest {
    pub fn new(worker_group: String, tags: Vec<String>, exp: i32) -> CreateAgentTokenRequest {
        CreateAgentTokenRequest {
            worker_group,
            tags,
            exp,
        }
    }
}

