/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 4b3f595
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LoadBalancerPrivateNet {
    /// IP address (v4) of this Load Balancer in this Network.
    #[serde(rename = "ip", skip_serializing_if = "Option::is_none")]
    pub ip: Option<String>,
    /// ID of the Network.
    #[serde(rename = "network", skip_serializing_if = "Option::is_none")]
    pub network: Option<i64>,
}

impl LoadBalancerPrivateNet {
    pub fn new() -> LoadBalancerPrivateNet {
        LoadBalancerPrivateNet {
            ip: None,
            network: None,
        }
    }
}
