/*
 * Tapis Security API
 *
 * The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
 *
 * The version of the OpenAPI document: 1.8.2
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReqRolePermits {
    #[serde(rename = "roleTenant")]
    pub role_tenant: String,
    #[serde(rename = "roleType")]
    pub role_type: models::RoleTypeEnum,
    #[serde(rename = "permSpec")]
    pub perm_spec: String,
}

impl ReqRolePermits {
    pub fn new(
        role_tenant: String,
        role_type: models::RoleTypeEnum,
        perm_spec: String,
    ) -> ReqRolePermits {
        ReqRolePermits {
            role_tenant,
            role_type,
            perm_spec,
        }
    }
}
