Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions scaleway-async/scaleway_async/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2172,9 +2172,9 @@ def unmarshal_ServerType(data: Any) -> ServerType:
if field is not None:
args["arch"] = field

field = data.get("baremetal", None)
field = data.get("end_of_service", None)
if field is not None:
args["baremetal"] = field
args["end_of_service"] = field

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

field = data.get("end_of_service", None)
if field is not None:
args["end_of_service"] = field

field = data.get("gpu_info", None)
if field is not None:
args["gpu_info"] = unmarshal_ServerTypeGPUInfo(field)
Expand Down
9 changes: 2 additions & 7 deletions scaleway-async/scaleway_async/instance/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,9 +1355,9 @@ class ServerType:
CPU architecture.
"""

baremetal: bool
end_of_service: bool
"""
True if it is a baremetal Instance.
True if this Instance type has reached end of service.
"""

per_volume_constraint: Optional[ServerTypeVolumeConstraintsByType]
Expand All @@ -1375,11 +1375,6 @@ class ServerType:
Number of GPU.
"""

end_of_service: bool
"""
True if this Instance type has reached end of service.
"""

gpu_info: Optional[ServerTypeGPUInfo]
"""
GPU information.
Expand Down
8 changes: 2 additions & 6 deletions scaleway/scaleway/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2172,9 +2172,9 @@ def unmarshal_ServerType(data: Any) -> ServerType:
if field is not None:
args["arch"] = field

field = data.get("baremetal", None)
field = data.get("end_of_service", None)
if field is not None:
args["baremetal"] = field
args["end_of_service"] = field

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

field = data.get("end_of_service", None)
if field is not None:
args["end_of_service"] = field

field = data.get("gpu_info", None)
if field is not None:
args["gpu_info"] = unmarshal_ServerTypeGPUInfo(field)
Expand Down
9 changes: 2 additions & 7 deletions scaleway/scaleway/instance/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,9 +1355,9 @@ class ServerType:
CPU architecture.
"""

baremetal: bool
end_of_service: bool
"""
True if it is a baremetal Instance.
True if this Instance type has reached end of service.
"""

per_volume_constraint: Optional[ServerTypeVolumeConstraintsByType]
Expand All @@ -1375,11 +1375,6 @@ class ServerType:
Number of GPU.
"""

end_of_service: bool
"""
True if this Instance type has reached end of service.
"""

gpu_info: Optional[ServerTypeGPUInfo]
"""
GPU information.
Expand Down