Skip to content

Commit 4d2974d

Browse files
fix(instance): remove unset baremetal field (#916)
Co-authored-by: Laure-di <[email protected]>
1 parent b4832b2 commit 4d2974d

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed

scaleway-async/scaleway_async/instance/v1/marshalling.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,9 +2172,9 @@ def unmarshal_ServerType(data: Any) -> ServerType:
21722172
if field is not None:
21732173
args["arch"] = field
21742174

2175-
field = data.get("baremetal", None)
2175+
field = data.get("end_of_service", None)
21762176
if field is not None:
2177-
args["baremetal"] = field
2177+
args["end_of_service"] = field
21782178

21792179
field = data.get("per_volume_constraint", None)
21802180
if field is not None:
@@ -2196,10 +2196,6 @@ def unmarshal_ServerType(data: Any) -> ServerType:
21962196
else:
21972197
args["gpu"] = None
21982198

2199-
field = data.get("end_of_service", None)
2200-
if field is not None:
2201-
args["end_of_service"] = field
2202-
22032199
field = data.get("gpu_info", None)
22042200
if field is not None:
22052201
args["gpu_info"] = unmarshal_ServerTypeGPUInfo(field)

scaleway-async/scaleway_async/instance/v1/types.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,9 +1355,9 @@ class ServerType:
13551355
CPU architecture.
13561356
"""
13571357

1358-
baremetal: bool
1358+
end_of_service: bool
13591359
"""
1360-
True if it is a baremetal Instance.
1360+
True if this Instance type has reached end of service.
13611361
"""
13621362

13631363
per_volume_constraint: Optional[ServerTypeVolumeConstraintsByType]
@@ -1375,11 +1375,6 @@ class ServerType:
13751375
Number of GPU.
13761376
"""
13771377

1378-
end_of_service: bool
1379-
"""
1380-
True if this Instance type has reached end of service.
1381-
"""
1382-
13831378
gpu_info: Optional[ServerTypeGPUInfo]
13841379
"""
13851380
GPU information.

scaleway/scaleway/instance/v1/marshalling.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,9 +2172,9 @@ def unmarshal_ServerType(data: Any) -> ServerType:
21722172
if field is not None:
21732173
args["arch"] = field
21742174

2175-
field = data.get("baremetal", None)
2175+
field = data.get("end_of_service", None)
21762176
if field is not None:
2177-
args["baremetal"] = field
2177+
args["end_of_service"] = field
21782178

21792179
field = data.get("per_volume_constraint", None)
21802180
if field is not None:
@@ -2196,10 +2196,6 @@ def unmarshal_ServerType(data: Any) -> ServerType:
21962196
else:
21972197
args["gpu"] = None
21982198

2199-
field = data.get("end_of_service", None)
2200-
if field is not None:
2201-
args["end_of_service"] = field
2202-
22032199
field = data.get("gpu_info", None)
22042200
if field is not None:
22052201
args["gpu_info"] = unmarshal_ServerTypeGPUInfo(field)

scaleway/scaleway/instance/v1/types.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,9 +1355,9 @@ class ServerType:
13551355
CPU architecture.
13561356
"""
13571357

1358-
baremetal: bool
1358+
end_of_service: bool
13591359
"""
1360-
True if it is a baremetal Instance.
1360+
True if this Instance type has reached end of service.
13611361
"""
13621362

13631363
per_volume_constraint: Optional[ServerTypeVolumeConstraintsByType]
@@ -1375,11 +1375,6 @@ class ServerType:
13751375
Number of GPU.
13761376
"""
13771377

1378-
end_of_service: bool
1379-
"""
1380-
True if this Instance type has reached end of service.
1381-
"""
1382-
13831378
gpu_info: Optional[ServerTypeGPUInfo]
13841379
"""
13851380
GPU information.

0 commit comments

Comments
 (0)