From 52d8c89b5511a98edb04bd2bd2eeb98ee9e7b30e Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 15 May 2025 14:38:40 +0000 Subject: [PATCH] feat: update generated APIs --- .../scaleway_async/dedibox/v1/marshalling.py | 12 ++++++++---- scaleway-async/scaleway_async/dedibox/v1/types.py | 13 +++++++++---- scaleway/scaleway/dedibox/v1/marshalling.py | 12 ++++++++---- scaleway/scaleway/dedibox/v1/types.py | 13 +++++++++---- 4 files changed, 34 insertions(+), 16 deletions(-) diff --git a/scaleway-async/scaleway_async/dedibox/v1/marshalling.py b/scaleway-async/scaleway_async/dedibox/v1/marshalling.py index 8bdd9b9b6..694914352 100644 --- a/scaleway-async/scaleway_async/dedibox/v1/marshalling.py +++ b/scaleway-async/scaleway_async/dedibox/v1/marshalling.py @@ -1089,6 +1089,10 @@ def unmarshal_Server(data: Any) -> Server: if field is not None: args["hostname"] = field + field = data.get("status", None) + if field is not None: + args["status"] = field + field = data.get("rebooted_at", None) if field is not None: args["rebooted_at"] = ( @@ -1097,10 +1101,6 @@ def unmarshal_Server(data: Any) -> Server: else: args["rebooted_at"] = None - field = data.get("status", None) - if field is not None: - args["status"] = field - field = data.get("abuse_contact", None) if field is not None: args["abuse_contact"] = field @@ -1147,6 +1147,10 @@ def unmarshal_Server(data: Any) -> Server: if field is not None: args["is_rpnv2_member"] = field + field = data.get("is_hds", None) + if field is not None: + args["is_hds"] = field + field = data.get("created_at", None) if field is not None: args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field diff --git a/scaleway-async/scaleway_async/dedibox/v1/types.py b/scaleway-async/scaleway_async/dedibox/v1/types.py index 8fba972c9..7254832cf 100644 --- a/scaleway-async/scaleway_async/dedibox/v1/types.py +++ b/scaleway-async/scaleway_async/dedibox/v1/types.py @@ -1146,14 +1146,14 @@ class Server: Hostname of the server. """ - rebooted_at: Optional[datetime] + status: ServerStatus """ - Date of last reboot of the server. + Status of the server. """ - status: ServerStatus + rebooted_at: Optional[datetime] """ - Status of the server. + Date of last reboot of the server. """ abuse_contact: str @@ -1206,6 +1206,11 @@ class Server: Whether or not the server is already part of an rpnv2 group. """ + is_hds: bool + """ + Whether or not the server is HDS. + """ + created_at: Optional[datetime] """ Date of creation of the server. diff --git a/scaleway/scaleway/dedibox/v1/marshalling.py b/scaleway/scaleway/dedibox/v1/marshalling.py index 8bdd9b9b6..694914352 100644 --- a/scaleway/scaleway/dedibox/v1/marshalling.py +++ b/scaleway/scaleway/dedibox/v1/marshalling.py @@ -1089,6 +1089,10 @@ def unmarshal_Server(data: Any) -> Server: if field is not None: args["hostname"] = field + field = data.get("status", None) + if field is not None: + args["status"] = field + field = data.get("rebooted_at", None) if field is not None: args["rebooted_at"] = ( @@ -1097,10 +1101,6 @@ def unmarshal_Server(data: Any) -> Server: else: args["rebooted_at"] = None - field = data.get("status", None) - if field is not None: - args["status"] = field - field = data.get("abuse_contact", None) if field is not None: args["abuse_contact"] = field @@ -1147,6 +1147,10 @@ def unmarshal_Server(data: Any) -> Server: if field is not None: args["is_rpnv2_member"] = field + field = data.get("is_hds", None) + if field is not None: + args["is_hds"] = field + field = data.get("created_at", None) if field is not None: args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field diff --git a/scaleway/scaleway/dedibox/v1/types.py b/scaleway/scaleway/dedibox/v1/types.py index 8fba972c9..7254832cf 100644 --- a/scaleway/scaleway/dedibox/v1/types.py +++ b/scaleway/scaleway/dedibox/v1/types.py @@ -1146,14 +1146,14 @@ class Server: Hostname of the server. """ - rebooted_at: Optional[datetime] + status: ServerStatus """ - Date of last reboot of the server. + Status of the server. """ - status: ServerStatus + rebooted_at: Optional[datetime] """ - Status of the server. + Date of last reboot of the server. """ abuse_contact: str @@ -1206,6 +1206,11 @@ class Server: Whether or not the server is already part of an rpnv2 group. """ + is_hds: bool + """ + Whether or not the server is HDS. + """ + created_at: Optional[datetime] """ Date of creation of the server.