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

/// ReplacePlacementgroupResponse : Response to PUT https://api.hetzner.cloud/v1/placement_groups/{id}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplacePlacementgroupResponse {
    #[serde(rename = "placement_group")]
    pub placement_group: Box<models::PlacementGroup>,
}

impl ReplacePlacementgroupResponse {
    /// Response to PUT https://api.hetzner.cloud/v1/placement_groups/{id}
    pub fn new(placement_group: models::PlacementGroup) -> ReplacePlacementgroupResponse {
        ReplacePlacementgroupResponse {
            placement_group: Box::new(placement_group),
        }
    }
}
