authentik-client 2026.2.2-rc2

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc2
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Network {
    #[serde(rename = "hostname")]
    pub hostname: String,
    #[serde(rename = "firewall_enabled", skip_serializing_if = "Option::is_none")]
    pub firewall_enabled: Option<bool>,
    #[serde(rename = "interfaces")]
    pub interfaces: Vec<models::NetworkInterface>,
    #[serde(rename = "gateway", skip_serializing_if = "Option::is_none")]
    pub gateway: Option<String>,
}

impl Network {
    pub fn new(hostname: String, interfaces: Vec<models::NetworkInterface>) -> Network {
        Network {
            hostname,
            firewall_enabled: None,
            interfaces,
            gateway: None,
        }
    }
}