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

/// GetIsoResponse : Response to GET https://api.hetzner.cloud/v1/isos/{id}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetIsoResponse {
    #[serde(rename = "iso")]
    pub iso: Box<models::Iso>,
}

impl GetIsoResponse {
    /// Response to GET https://api.hetzner.cloud/v1/isos/{id}
    pub fn new(iso: models::Iso) -> GetIsoResponse {
        GetIsoResponse { iso: Box::new(iso) }
    }
}
