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

/// ReplaceZoneResponse : Response to PUT https://api.hetzner.cloud/v1/zones/{id_or_name}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplaceZoneResponse {
    #[serde(rename = "zone")]
    pub zone: Box<models::Zone>,
}

impl ReplaceZoneResponse {
    /// Response to PUT https://api.hetzner.cloud/v1/zones/{id_or_name}
    pub fn new(zone: models::Zone) -> ReplaceZoneResponse {
        ReplaceZoneResponse {
            zone: Box::new(zone),
        }
    }
}
