/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.816.0
* 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 AclObject {
#[serde(rename = "name")]
pub name: String,
/// TABLE, SEQUENCE, FUNCTION, PROCEDURE or TYPE — what the object is. A revoke turns it into the keyword it takes, ROUTINE for both routine kinds; a type's grants are read only.
#[serde(rename = "kind")]
pub kind: String,
/// identity arguments of a routine, which is what tells two of the same name apart
#[serde(rename = "args", skip_serializing_if = "Option::is_none")]
pub args: Option<String>,
}
impl AclObject {
pub fn new(name: String, kind: String) -> AclObject {
AclObject {
name,
kind,
args: None,
}
}
}