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

/// ReplaceNetworkResponse : Response to PUT https://api.hetzner.cloud/v1/networks/{id}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplaceNetworkResponse {
    #[serde(rename = "network", skip_serializing_if = "Option::is_none")]
    pub network: Option<Box<models::Network>>,
}

impl ReplaceNetworkResponse {
    /// Response to PUT https://api.hetzner.cloud/v1/networks/{id}
    pub fn new() -> ReplaceNetworkResponse {
        ReplaceNetworkResponse { network: None }
    }
}
