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
28
29
30
/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 0.1.0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// ReplaceFloatingIpResponse : Response to PUT https://api.hetzner.cloud/v1/floating_ips/{id}



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplaceFloatingIpResponse {
    #[serde(rename = "floating_ip")]
    pub floating_ip: crate::models::FloatingIp,
}

impl ReplaceFloatingIpResponse {
    /// Response to PUT https://api.hetzner.cloud/v1/floating_ips/{id}
    pub fn new(floating_ip: crate::models::FloatingIp) -> ReplaceFloatingIpResponse {
        ReplaceFloatingIpResponse {
            floating_ip,
        }
    }
}