From 2afa158fb610d7eab8806848fd3fc0977e5f1879 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 21 Jul 2026 15:11:45 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/k8s/v1/api.py | 7 +------ scaleway-async/scaleway_async/k8s/v1/types.py | 5 ----- scaleway/scaleway/k8s/v1/api.py | 7 +------ scaleway/scaleway/k8s/v1/types.py | 5 ----- 4 files changed, 2 insertions(+), 22 deletions(-) diff --git a/scaleway-async/scaleway_async/k8s/v1/api.py b/scaleway-async/scaleway_async/k8s/v1/api.py index 4cc42cdca..c700ba452 100644 --- a/scaleway-async/scaleway_async/k8s/v1/api.py +++ b/scaleway-async/scaleway_async/k8s/v1/api.py @@ -1754,7 +1754,6 @@ async def replace_node( :param node_id: ID of the node to replace. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Node ` - :deprecated Usage: :: @@ -1818,15 +1817,13 @@ async def delete_node( *, node_id: str, skip_drain: bool, - replace: bool, region: Optional[ScwRegion] = None, ) -> Node: """ Delete a Node in a Cluster. - Delete a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur. + Delete a specific Node. Pool size is reduced by 1. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur. :param node_id: ID of the node to replace. :param skip_drain: Skip draining node from its workload (Note: this parameter is currently inactive). - :param replace: Add a new node after the deletion of this node. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Node ` @@ -1836,7 +1833,6 @@ async def delete_node( result = await api.delete_node( node_id="example", skip_drain=False, - replace=False, ) """ @@ -1849,7 +1845,6 @@ async def delete_node( "DELETE", f"/k8s/v1/regions/{param_region}/nodes/{param_node_id}", params={ - "replace": replace, "skip_drain": skip_drain, }, ) diff --git a/scaleway-async/scaleway_async/k8s/v1/types.py b/scaleway-async/scaleway_async/k8s/v1/types.py index d080e707a..504c0cfda 100644 --- a/scaleway-async/scaleway_async/k8s/v1/types.py +++ b/scaleway-async/scaleway_async/k8s/v1/types.py @@ -1570,11 +1570,6 @@ class DeleteNodeRequest: Skip draining node from its workload (Note: this parameter is currently inactive). """ - replace: bool - """ - Add a new node after the deletion of this node. - """ - region: Optional[ScwRegion] = None """ Region to target. If none is passed will use default region from the config. diff --git a/scaleway/scaleway/k8s/v1/api.py b/scaleway/scaleway/k8s/v1/api.py index ddb519f85..00a18e471 100644 --- a/scaleway/scaleway/k8s/v1/api.py +++ b/scaleway/scaleway/k8s/v1/api.py @@ -1754,7 +1754,6 @@ def replace_node( :param node_id: ID of the node to replace. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Node ` - :deprecated Usage: :: @@ -1818,15 +1817,13 @@ def delete_node( *, node_id: str, skip_drain: bool, - replace: bool, region: Optional[ScwRegion] = None, ) -> Node: """ Delete a Node in a Cluster. - Delete a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur. + Delete a specific Node. Pool size is reduced by 1. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur. :param node_id: ID of the node to replace. :param skip_drain: Skip draining node from its workload (Note: this parameter is currently inactive). - :param replace: Add a new node after the deletion of this node. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Node ` @@ -1836,7 +1833,6 @@ def delete_node( result = api.delete_node( node_id="example", skip_drain=False, - replace=False, ) """ @@ -1849,7 +1845,6 @@ def delete_node( "DELETE", f"/k8s/v1/regions/{param_region}/nodes/{param_node_id}", params={ - "replace": replace, "skip_drain": skip_drain, }, ) diff --git a/scaleway/scaleway/k8s/v1/types.py b/scaleway/scaleway/k8s/v1/types.py index d080e707a..504c0cfda 100644 --- a/scaleway/scaleway/k8s/v1/types.py +++ b/scaleway/scaleway/k8s/v1/types.py @@ -1570,11 +1570,6 @@ class DeleteNodeRequest: Skip draining node from its workload (Note: this parameter is currently inactive). """ - replace: bool - """ - Add a new node after the deletion of this node. - """ - region: Optional[ScwRegion] = None """ Region to target. If none is passed will use default region from the config.