/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.683.1
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FolderDefaultPermissionedAsInner {
/// Glob pattern evaluated against the item path *relative* to the folder root (e.g. \"jobs/_**\" matches every item whose full path is `f/<folder>/jobs/...`). Supports `*`, `**`, `?`, `[abc]`, `{a,b}`.
#[serde(rename = "path_glob")]
pub path_glob: String,
/// Target identity the matched item should be permissioned as. Must be `u/<username>`, `g/<groupname>`, or an email that exists in this workspace.
#[serde(rename = "permissioned_as")]
pub permissioned_as: String,
}
impl FolderDefaultPermissionedAsInner {
pub fn new(path_glob: String, permissioned_as: String) -> FolderDefaultPermissionedAsInner {
FolderDefaultPermissionedAsInner {
path_glob,
permissioned_as,
}
}
}