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

/// ImportZoneFileRequest : Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/actions/import_zonefile
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ImportZoneFileRequest {
    /// Zone file to import.  See Zone file import for more details.
    #[serde(rename = "zonefile")]
    pub zonefile: String,
}

impl ImportZoneFileRequest {
    /// Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/actions/import_zonefile
    pub fn new(zonefile: String) -> ImportZoneFileRequest {
        ImportZoneFileRequest { zonefile }
    }
}
