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

/// ChangeHomeDirectoryRequest : Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/subaccounts/{subaccount_id}/actions/change_home_directory
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangeHomeDirectoryRequest {
    /// Home directory of the Storage Box Subaccount.  The directory will be created if it doesn't exist yet.
    #[serde(rename = "home_directory")]
    pub home_directory: String,
}

impl ChangeHomeDirectoryRequest {
    /// Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/subaccounts/{subaccount_id}/actions/change_home_directory
    pub fn new(home_directory: String) -> ChangeHomeDirectoryRequest {
        ChangeHomeDirectoryRequest { home_directory }
    }
}
