File tree 4 files changed +22
-18
lines changed
scaleway/scaleway/ipam/v1
scaleway-async/scaleway_async/ipam/v1 4 files changed +22
-18
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,6 @@ def unmarshal_IP(data: Any) -> IP:
126
126
if field is not None :
127
127
args ["is_ipv6" ] = field
128
128
129
- field = data .get ("source" , None )
130
- if field is not None :
131
- args ["source" ] = unmarshal_Source (field )
132
-
133
129
field = data .get ("tags" , None )
134
130
if field is not None :
135
131
args ["tags" ] = field
@@ -156,6 +152,12 @@ def unmarshal_IP(data: Any) -> IP:
156
152
else :
157
153
args ["updated_at" ] = None
158
154
155
+ field = data .get ("source" , None )
156
+ if field is not None :
157
+ args ["source" ] = unmarshal_Source (field )
158
+ else :
159
+ args ["source" ] = None
160
+
159
161
field = data .get ("resource" , None )
160
162
if field is not None :
161
163
args ["resource" ] = unmarshal_Resource (field )
Original file line number Diff line number Diff line change @@ -116,11 +116,6 @@ class IP:
116
116
Defines whether the IP is an IPv6 (false = IPv4).
117
117
"""
118
118
119
- source : Source
120
- """
121
- Source pool where the IP was booked in.
122
- """
123
-
124
119
tags : List [str ]
125
120
"""
126
121
Tags for the IP.
@@ -146,6 +141,11 @@ class IP:
146
141
Date the IP was last modified.
147
142
"""
148
143
144
+ source : Optional [Source ]
145
+ """
146
+ Source pool where the IP was booked in.
147
+ """
148
+
149
149
resource : Optional [Resource ]
150
150
"""
151
151
Resource which the IP is attached to.
Original file line number Diff line number Diff line change @@ -126,10 +126,6 @@ def unmarshal_IP(data: Any) -> IP:
126
126
if field is not None :
127
127
args ["is_ipv6" ] = field
128
128
129
- field = data .get ("source" , None )
130
- if field is not None :
131
- args ["source" ] = unmarshal_Source (field )
132
-
133
129
field = data .get ("tags" , None )
134
130
if field is not None :
135
131
args ["tags" ] = field
@@ -156,6 +152,12 @@ def unmarshal_IP(data: Any) -> IP:
156
152
else :
157
153
args ["updated_at" ] = None
158
154
155
+ field = data .get ("source" , None )
156
+ if field is not None :
157
+ args ["source" ] = unmarshal_Source (field )
158
+ else :
159
+ args ["source" ] = None
160
+
159
161
field = data .get ("resource" , None )
160
162
if field is not None :
161
163
args ["resource" ] = unmarshal_Resource (field )
Original file line number Diff line number Diff line change @@ -116,11 +116,6 @@ class IP:
116
116
Defines whether the IP is an IPv6 (false = IPv4).
117
117
"""
118
118
119
- source : Source
120
- """
121
- Source pool where the IP was booked in.
122
- """
123
-
124
119
tags : List [str ]
125
120
"""
126
121
Tags for the IP.
@@ -146,6 +141,11 @@ class IP:
146
141
Date the IP was last modified.
147
142
"""
148
143
144
+ source : Optional [Source ]
145
+ """
146
+ Source pool where the IP was booked in.
147
+ """
148
+
149
149
resource : Optional [Resource ]
150
150
"""
151
151
Resource which the IP is attached to.
You can’t perform that action at this time.
0 commit comments