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

impl GetApprovalInfo200ResponseApprovalConditions {
    pub fn new(user_auth_required: bool, user_groups_required: Vec<String>, self_approval_disabled: bool) -> GetApprovalInfo200ResponseApprovalConditions {
        GetApprovalInfo200ResponseApprovalConditions {
            user_auth_required,
            user_groups_required,
            self_approval_disabled,
        }
    }
}

