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

/// RotateServerCaContext : Instance rotate server CA context.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RotateServerCaContext {
    /// This is always `sql#rotateServerCaContext`.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version.
    #[serde(rename = "nextVersion", skip_serializing_if = "Option::is_none")]
    pub next_version: Option<String>,
}

impl RotateServerCaContext {
    /// Instance rotate server CA context.
    pub fn new() -> RotateServerCaContext {
        RotateServerCaContext {
            kind: None,
            next_version: None,
        }
    }
}
