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

/// ChangeTypeRequest : Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/actions/change_type
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangeTypeRequest {
    /// ID or Name of the Storage Box Type.
    #[serde(rename = "storage_box_type")]
    pub storage_box_type: String,
}

impl ChangeTypeRequest {
    /// Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/actions/change_type
    pub fn new(storage_box_type: String) -> ChangeTypeRequest {
        ChangeTypeRequest { storage_box_type }
    }
}
