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
18 changes: 12 additions & 6 deletions scaleway-async/scaleway_async/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2688,12 +2688,6 @@ def unmarshal_ServerType(data: Any) -> ServerType:
else:
args["arch"] = Arch.UNKNOWN_ARCH

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

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

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

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

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

scratch_storage_max_volumes_count: int
"""
Maximum supported number of scratch volumes.
"""

end_of_service: bool
"""
True if this Instance type has reached end of service.
Expand Down
18 changes: 12 additions & 6 deletions scaleway/scaleway/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2688,12 +2688,6 @@ def unmarshal_ServerType(data: Any) -> ServerType:
else:
args["arch"] = Arch.UNKNOWN_ARCH

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

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

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

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

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

scratch_storage_max_volumes_count: int
"""
Maximum supported number of scratch volumes.
"""

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