/*
 * 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 ReqUserIsPermittedMulti {
    #[serde(rename = "tenant")]
    pub tenant: String,
    #[serde(rename = "user")]
    pub user: String,
    #[serde(rename = "permSpecs")]
    pub perm_specs: Vec<String>,
    #[serde(rename = "orAdmin", skip_serializing_if = "Option::is_none")]
    pub or_admin: Option<bool>,
}

impl ReqUserIsPermittedMulti {
    pub fn new(tenant: String, user: String, perm_specs: Vec<String>) -> ReqUserIsPermittedMulti {
        ReqUserIsPermittedMulti {
            tenant,
            user,
            perm_specs,
            or_admin: None,
        }
    }
}
