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
31
32
33
34
35
36
37
/*
* Hetzner Cloud API
*
* Copied from the official API documentation for the Public Hetzner Cloud.
*
* The version of the OpenAPI document: 0.12.0
*
* Generated by: https://openapi-generator.tech
*/
/// ReplacePrimaryIpRequest : Request for PUT https://api.hetzner.cloud/v1/primary_ips/{id}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ReplacePrimaryIpRequest {
/// Delete this Primary IP when the resource it is assigned to is deleted
#[serde(rename = "auto_delete", skip_serializing_if = "Option::is_none")]
pub auto_delete: Option<bool>,
/// User-defined labels (key-value pairs)
#[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
pub labels: Option<::std::collections::HashMap<String, String>>,
/// New unique name to set
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
impl ReplacePrimaryIpRequest {
#![allow(clippy::too_many_arguments)]
/// Request for PUT https://api.hetzner.cloud/v1/primary_ips/{id}
pub fn new() -> ReplacePrimaryIpRequest {
ReplacePrimaryIpRequest {
auto_delete: None,
labels: None,
name: None,
}
}
}