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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ScalewayPeriodFlexibleIpPeriodV1alpha1PeriodFlexibleIp {
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "organization_id", skip_serializing_if = "Option::is_none")]
pub organization_id: Option<String>,
#[serde(rename = "project_id", skip_serializing_if = "Option::is_none")]
pub project_id: Option<String>,
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>,
#[serde(
rename = "updated_at",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub updated_at: Option<Option<String>>,
#[serde(
rename = "created_at",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub created_at: Option<Option<String>>,
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<Status>,
#[serde(rename = "ip_address", skip_serializing_if = "Option::is_none")]
pub ip_address: Option<String>,
#[serde(rename = "mac_address", skip_serializing_if = "Option::is_none")]
pub mac_address: Option<Box<crate::models::ScalewayFlexibleIpV1alpha1FlexibleIpMacAddress>>,
#[serde(
rename = "server_id",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub server_id: Option<Option<String>>,
#[serde(rename = "reverse", skip_serializing_if = "Option::is_none")]
pub reverse: Option<String>,
#[serde(rename = "zone", skip_serializing_if = "Option::is_none")]
pub zone: Option<String>,
}
impl ScalewayPeriodFlexibleIpPeriodV1alpha1PeriodFlexibleIp {
pub fn new() -> ScalewayPeriodFlexibleIpPeriodV1alpha1PeriodFlexibleIp {
ScalewayPeriodFlexibleIpPeriodV1alpha1PeriodFlexibleIp {
id: None,
organization_id: None,
project_id: None,
description: None,
tags: None,
updated_at: None,
created_at: None,
status: None,
ip_address: None,
mac_address: None,
server_id: None,
reverse: None,
zone: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Status {
#[serde(rename = "unknown")]
Unknown,
#[serde(rename = "ready")]
Ready,
#[serde(rename = "updating")]
Updating,
#[serde(rename = "attached")]
Attached,
#[serde(rename = "error")]
Error,
#[serde(rename = "detaching")]
Detaching,
#[serde(rename = "locked")]
Locked,
}
impl Default for Status {
fn default() -> Status {
Self::Unknown
}
}