From 754dfcf7e36424c96b880755d41f5e47a2f39275 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 18 Mar 2025 14:58:49 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/instance/v1/marshalling.py | 8 ++------ scaleway-async/scaleway_async/instance/v1/types.py | 9 ++------- scaleway/scaleway/instance/v1/marshalling.py | 8 ++------ scaleway/scaleway/instance/v1/types.py | 9 ++------- 4 files changed, 8 insertions(+), 26 deletions(-) diff --git a/scaleway-async/scaleway_async/instance/v1/marshalling.py b/scaleway-async/scaleway_async/instance/v1/marshalling.py index 419fa1dd..6a752f91 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 fef8846e..160fbef1 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 419fa1dd..6a752f91 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 fef8846e..160fbef1 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.