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: