Skip to main content

windmill_api/models/
update_instance_group_request.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.864.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UpdateInstanceGroupRequest {
16    #[serde(rename = "new_summary")]
17    pub new_summary: String,
18    /// Instance-level role for group members. 'superadmin', 'devops', 'user' or empty to clear.
19    #[serde(rename = "instance_role", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub instance_role: Option<Option<String>>,
21    /// IdP group the SSO groups claim links this group to: a group id or a full path such as /operators/network-team. Omitted keeps the current link, blank clears it. Refused on a group SCIM provisioned.
22    #[serde(rename = "external_id", skip_serializing_if = "Option::is_none")]
23    pub external_id: Option<String>,
24}
25
26impl UpdateInstanceGroupRequest {
27    pub fn new(new_summary: String) -> UpdateInstanceGroupRequest {
28        UpdateInstanceGroupRequest {
29            new_summary,
30            instance_role: None,
31            external_id: None,
32        }
33    }
34}
35