diff --git a/scaleway-async/scaleway_async/instance/v1/marshalling.py b/scaleway-async/scaleway_async/instance/v1/marshalling.py index 419fa1dda..6a752f91e 100644 --- a/scaleway-async/scaleway_async/instance/v1/marshalling.py +++ b/scaleway-async/scaleway_async/instance/v1/marshalling.py @@ -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: @@ -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) diff --git a/scaleway-async/scaleway_async/instance/v1/types.py b/scaleway-async/scaleway_async/instance/v1/types.py index fef8846e8..160fbef17 100644 --- a/scaleway-async/scaleway_async/instance/v1/types.py +++ b/scaleway-async/scaleway_async/instance/v1/types.py @@ -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] @@ -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. diff --git a/scaleway/scaleway/instance/v1/marshalling.py b/scaleway/scaleway/instance/v1/marshalling.py index 419fa1dda..6a752f91e 100644 --- a/scaleway/scaleway/instance/v1/marshalling.py +++ b/scaleway/scaleway/instance/v1/marshalling.py @@ -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: @@ -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) diff --git a/scaleway/scaleway/instance/v1/types.py b/scaleway/scaleway/instance/v1/types.py index fef8846e8..160fbef17 100644 --- a/scaleway/scaleway/instance/v1/types.py +++ b/scaleway/scaleway/instance/v1/types.py @@ -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] @@ -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.