/*
 * Tapis Systems API
 *
 * The Tapis Systems API provides for management of Tapis Systems including permissions, credentials and Scheduler Profiles.
 *
 * The version of the OpenAPI document: 26Q1.1
 * 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 SchedulerProfile {
    #[serde(rename = "tenant", skip_serializing_if = "Option::is_none")]
    pub tenant: Option<String>,
    #[serde(rename = "name")]
    pub name: String,
    /// Optional more verbose description.
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[serde(rename = "moduleLoads", skip_serializing_if = "Option::is_none")]
    pub module_loads: Option<Vec<models::ModuleLoadSpec>>,
    #[serde(rename = "hiddenOptions", skip_serializing_if = "Option::is_none")]
    pub hidden_options: Option<Vec<models::SchedulerHiddenOptionEnum>>,
}

impl SchedulerProfile {
    pub fn new(name: String) -> SchedulerProfile {
        SchedulerProfile {
            tenant: None,
            name,
            description: None,
            owner: None,
            module_loads: None,
            hidden_options: None,
        }
    }
}
