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

use crate::google_rest_apis::compute_v1::models;

/// InterconnectDiagnosticsMacsecStatus : Describes the status of MACsec encryption on the link.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InterconnectDiagnosticsMacsecStatus {
    /// Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is operational.
    #[serde(rename = "ckn", skip_serializing_if = "Option::is_none")]
    pub ckn: Option<String>,
    /// Indicates whether or not MACsec is operational on this link.
    #[serde(rename = "operational", skip_serializing_if = "Option::is_none")]
    pub operational: Option<bool>,
}

impl InterconnectDiagnosticsMacsecStatus {
    /// Describes the status of MACsec encryption on the link.
    pub fn new() -> InterconnectDiagnosticsMacsecStatus {
        InterconnectDiagnosticsMacsecStatus {
            ckn: None,
            operational: None,
        }
    }
}
