1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 0.17.0
 *
 * Generated by: https://openapi-generator.tech
 */

/// AddServerToPlacementGroupRequest : Request for POST https://api.hetzner.cloud/v1/servers/{id}/actions/add_to_placement_group

#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Debug, PartialEq, Default, 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 {
    #![allow(clippy::too_many_arguments)]
    /// 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 }
    }
}