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

/// AttachIsoToServerRequest : Request for POST https://api.hetzner.cloud/v1/servers/{id}/actions/attach_iso
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AttachIsoToServerRequest {
    /// ID or name of ISO to attach to the Server as listed in GET `/isos`.
    #[serde(rename = "iso")]
    pub iso: String,
}

impl AttachIsoToServerRequest {
    /// Request for POST https://api.hetzner.cloud/v1/servers/{id}/actions/attach_iso
    pub fn new(iso: String) -> AttachIsoToServerRequest {
        AttachIsoToServerRequest { iso }
    }
}
