use serde::{Deserialize, Serialize}; /*
                                      * Cloud SQL Admin API
                                      *
                                      * API for Cloud SQL database instance management
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

/// AclEntry : An entry for an Access Control list.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AclEntry {
    /// The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
    #[serde(rename = "expirationTime", skip_serializing_if = "Option::is_none")]
    pub expiration_time: Option<String>,
    /// This is always `sql#aclEntry`.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// Optional. A label to identify this entry.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The allowlisted value for the access control list.
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}

impl AclEntry {
    /// An entry for an Access Control list.
    pub fn new() -> AclEntry {
        AclEntry {
            expiration_time: None,
            kind: None,
            name: None,
            value: None,
        }
    }
}
