From 9d6972d4cca4c3db2bbaf1631794ce352a424458 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 9 Jul 2026 14:17:17 +0000 Subject: [PATCH] feat(k8s): add error message on Pool --- scaleway-async/scaleway_async/k8s/v1/marshalling.py | 6 ++++++ scaleway-async/scaleway_async/k8s/v1/types.py | 5 +++++ scaleway/scaleway/k8s/v1/marshalling.py | 6 ++++++ scaleway/scaleway/k8s/v1/types.py | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/scaleway-async/scaleway_async/k8s/v1/marshalling.py b/scaleway-async/scaleway_async/k8s/v1/marshalling.py index 6ef855155..7af4e050f 100644 --- a/scaleway-async/scaleway_async/k8s/v1/marshalling.py +++ b/scaleway-async/scaleway_async/k8s/v1/marshalling.py @@ -848,6 +848,12 @@ def unmarshal_Pool(data: Any) -> Pool: else: args["private_network_id"] = None + field = data.get("error_message", None) + if field is not None: + args["error_message"] = field + else: + args["error_message"] = None + return Pool(**args) diff --git a/scaleway-async/scaleway_async/k8s/v1/types.py b/scaleway-async/scaleway_async/k8s/v1/types.py index e80b4a4e6..d080e707a 100644 --- a/scaleway-async/scaleway_async/k8s/v1/types.py +++ b/scaleway-async/scaleway_async/k8s/v1/types.py @@ -1130,6 +1130,11 @@ class Pool: Private network where the nodes are attached. Should be member of the same VPC as the API Server. """ + error_message: Optional[str] = None + """ + Details of the error, if any occurred when managing the pool. + """ + @dataclass class NodeMetadataCoreV1Taint: diff --git a/scaleway/scaleway/k8s/v1/marshalling.py b/scaleway/scaleway/k8s/v1/marshalling.py index 6ef855155..7af4e050f 100644 --- a/scaleway/scaleway/k8s/v1/marshalling.py +++ b/scaleway/scaleway/k8s/v1/marshalling.py @@ -848,6 +848,12 @@ def unmarshal_Pool(data: Any) -> Pool: else: args["private_network_id"] = None + field = data.get("error_message", None) + if field is not None: + args["error_message"] = field + else: + args["error_message"] = None + return Pool(**args) diff --git a/scaleway/scaleway/k8s/v1/types.py b/scaleway/scaleway/k8s/v1/types.py index e80b4a4e6..d080e707a 100644 --- a/scaleway/scaleway/k8s/v1/types.py +++ b/scaleway/scaleway/k8s/v1/types.py @@ -1130,6 +1130,11 @@ class Pool: Private network where the nodes are attached. Should be member of the same VPC as the API Server. """ + error_message: Optional[str] = None + """ + Details of the error, if any occurred when managing the pool. + """ + @dataclass class NodeMetadataCoreV1Taint: