Skip to main content

clientapi_pve/models/
access_acl_read_acl_response_data_inner.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
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 AccessAclReadAclResponseDataInner {
16
17    /// Access control path
18    #[serde(rename = "path")]
19    pub path: String,
20
21    /// Allow to propagate (inherit) permissions.
22    #[serde(rename = "propagate", skip_serializing_if = "Option::is_none")]
23    pub propagate: Option<models::PveBoolean>,
24
25    #[serde(rename = "roleid")]
26    pub roleid: String,
27
28    #[serde(rename = "type")]
29    pub r#type: models::PveAccessAclTypeEnum,
30
31    #[serde(rename = "ugid")]
32    pub ugid: String,
33
34
35}
36
37impl AccessAclReadAclResponseDataInner {
38    pub fn new(path: String, roleid: String, r#type: models::PveAccessAclTypeEnum, ugid: String) -> AccessAclReadAclResponseDataInner {
39        AccessAclReadAclResponseDataInner {
40            
41            path,
42            
43            propagate: None,
44            
45            roleid,
46            
47            r#type,
48            
49            ugid,
50            
51        }
52    }
53}
54
55