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

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct NetworkPerformanceConfig {
    #[serde(
        rename = "totalEgressBandwidthTier",
        skip_serializing_if = "Option::is_none"
    )]
    pub total_egress_bandwidth_tier: Option<TotalEgressBandwidthTier>,
}

impl NetworkPerformanceConfig {
    pub fn new() -> NetworkPerformanceConfig {
        NetworkPerformanceConfig {
            total_egress_bandwidth_tier: None,
        }
    }
}

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TotalEgressBandwidthTier {
    #[serde(rename = "DEFAULT")]
    Default,
    #[serde(rename = "TIER_1")]
    Tier1,
}

impl Default for TotalEgressBandwidthTier {
    fn default() -> TotalEgressBandwidthTier {
        Self::Default
    }
}
