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

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

impl ListStorageBoxesResponse {
    /// Response to GET https://api.hetzner.com/v1/storage_boxes
    pub fn new(
        meta: models::Meta,
        storage_boxes: Vec<models::StorageBox>,
    ) -> ListStorageBoxesResponse {
        ListStorageBoxesResponse {
            meta: Box::new(meta),
            storage_boxes,
        }
    }
}
