use serde::{Deserialize, Serialize}; /*
                                      * Compute Engine API
                                      *
                                      * Creates and runs virtual machines on Google Cloud Platform.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

/// SslCertificateSelfManagedSslCertificate : Configuration and status of a self-managed SSL certificate.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct SslCertificateSelfManagedSslCertificate {
    /// A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
    #[serde(rename = "certificate", skip_serializing_if = "Option::is_none")]
    pub certificate: Option<String>,
    /// A write-only private key in PEM format. Only insert requests will include this field.
    #[serde(rename = "privateKey", skip_serializing_if = "Option::is_none")]
    pub private_key: Option<String>,
}

impl SslCertificateSelfManagedSslCertificate {
    /// Configuration and status of a self-managed SSL certificate.
    pub fn new() -> SslCertificateSelfManagedSslCertificate {
        SslCertificateSelfManagedSslCertificate {
            certificate: None,
            private_key: None,
        }
    }
}
