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

/// AddServerToPlacementGroupRequest : Request for POST https://api.hetzner.cloud/v1/servers/{id}/actions/add_to_placement_group
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddServerToPlacementGroupRequest {
    /// ID of Placement Group the Server should be added to.
    #[serde(rename = "placement_group")]
    pub placement_group: i64,
}

impl AddServerToPlacementGroupRequest {
    /// Request for POST https://api.hetzner.cloud/v1/servers/{id}/actions/add_to_placement_group
    pub fn new(placement_group: i64) -> AddServerToPlacementGroupRequest {
        AddServerToPlacementGroupRequest { placement_group }
    }
}
