diff --git a/scaleway-async/scaleway_async/instance/v1/marshalling.py b/scaleway-async/scaleway_async/instance/v1/marshalling.py index 4f6f6b280..45c4281fa 100644 --- a/scaleway-async/scaleway_async/instance/v1/marshalling.py +++ b/scaleway-async/scaleway_async/instance/v1/marshalling.py @@ -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( @@ -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) diff --git a/scaleway-async/scaleway_async/instance/v1/types.py b/scaleway-async/scaleway_async/instance/v1/types.py index b692c1002..f550378d2 100644 --- a/scaleway-async/scaleway_async/instance/v1/types.py +++ b/scaleway-async/scaleway_async/instance/v1/types.py @@ -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. diff --git a/scaleway/scaleway/instance/v1/marshalling.py b/scaleway/scaleway/instance/v1/marshalling.py index 4f6f6b280..45c4281fa 100644 --- a/scaleway/scaleway/instance/v1/marshalling.py +++ b/scaleway/scaleway/instance/v1/marshalling.py @@ -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( @@ -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) diff --git a/scaleway/scaleway/instance/v1/types.py b/scaleway/scaleway/instance/v1/types.py index b692c1002..f550378d2 100644 --- a/scaleway/scaleway/instance/v1/types.py +++ b/scaleway/scaleway/instance/v1/types.py @@ -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.