/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * 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 UpdateFolderRequest {
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
    #[serde(rename = "owners", skip_serializing_if = "Option::is_none")]
    pub owners: Option<Vec<String>>,
    #[serde(rename = "extra_perms", skip_serializing_if = "Option::is_none")]
    pub extra_perms: Option<std::collections::HashMap<String, bool>>,
    /// Ordered list of rules applied at create-time when admins or `wm_deployers` members deploy items in this folder. The first rule whose `path_glob` matches the item path (relative to the folder root) wins, and its `permissioned_as` is used as the default. 
    #[serde(rename = "default_permissioned_as", skip_serializing_if = "Option::is_none")]
    pub default_permissioned_as: Option<Vec<models::FolderDefaultPermissionedAsInner>>,
}

impl UpdateFolderRequest {
    pub fn new() -> UpdateFolderRequest {
        UpdateFolderRequest {
            summary: None,
            owners: None,
            extra_perms: None,
            default_permissioned_as: None,
        }
    }
}

