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;

/// InterconnectMacsecConfigPreSharedKey : Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InterconnectMacsecConfigPreSharedKey {
    /// An auto-generated Connectivity Association Key (CAK) for this key.
    #[serde(rename = "cak", skip_serializing_if = "Option::is_none")]
    pub cak: Option<String>,
    /// An auto-generated Connectivity Association Key Name (CKN) for this key.
    #[serde(rename = "ckn", skip_serializing_if = "Option::is_none")]
    pub ckn: Option<String>,
    /// User provided name for this pre-shared key.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// User provided timestamp on or after which this key is valid.
    #[serde(rename = "startTime", skip_serializing_if = "Option::is_none")]
    pub start_time: Option<String>,
}

impl InterconnectMacsecConfigPreSharedKey {
    /// Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.
    pub fn new() -> InterconnectMacsecConfigPreSharedKey {
        InterconnectMacsecConfigPreSharedKey {
            cak: None,
            ckn: None,
            name: None,
            start_time: None,
        }
    }
}
