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
                                      */

/// TruncateLogContext : Database Instance truncate log context.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct TruncateLogContext {
    /// This is always `sql#truncateLogContext`.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// The type of log to truncate. Valid values are `MYSQL_GENERAL_TABLE` and `MYSQL_SLOW_TABLE`.
    #[serde(rename = "logType", skip_serializing_if = "Option::is_none")]
    pub log_type: Option<String>,
}

impl TruncateLogContext {
    /// Database Instance truncate log context.
    pub fn new() -> TruncateLogContext {
        TruncateLogContext {
            kind: None,
            log_type: None,
        }
    }
}
