/*
 * 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 UpdateInstanceGroupRequest {
    #[serde(rename = "new_summary")]
    pub new_summary: String,
    /// Instance-level role for group members. 'superadmin', 'devops', 'user' or empty to clear.
    #[serde(rename = "instance_role", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub instance_role: Option<Option<String>>,
}

impl UpdateInstanceGroupRequest {
    pub fn new(new_summary: String) -> UpdateInstanceGroupRequest {
        UpdateInstanceGroupRequest {
            new_summary,
            instance_role: None,
        }
    }
}

