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

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

impl ListZonesResponse {
    /// Response to GET https://api.hetzner.cloud/v1/zones
    pub fn new(meta: models::Meta, zones: Vec<models::Zone>) -> ListZonesResponse {
        ListZonesResponse {
            meta: Box::new(meta),
            zones,
        }
    }
}
