diff --git a/scaleway-async/scaleway_async/k8s/v1/api.py b/scaleway-async/scaleway_async/k8s/v1/api.py index 8c0f902eb..399199e0a 100644 --- a/scaleway-async/scaleway_async/k8s/v1/api.py +++ b/scaleway-async/scaleway_async/k8s/v1/api.py @@ -1262,6 +1262,7 @@ async def update_pool( tags: Optional[list[str]] = None, kubelet_args: Optional[dict[str, str]] = None, upgrade_policy: Optional[UpdatePoolRequestUpgradePolicy] = None, + security_group_id: Optional[str] = None, ) -> Pool: """ Update a Pool in a Cluster. @@ -1276,6 +1277,7 @@ async def update_pool( :param tags: New tags associated with the pool. :param kubelet_args: New Kubelet arguments to be used by this pool. Note that this feature is experimental. :param upgrade_policy: New upgrade policy for the pool. + :param security_group_id: Security group ID in which all the nodes of the pool will be moved. :return: :class:`Pool ` Usage: @@ -1306,6 +1308,7 @@ async def update_pool( tags=tags, kubelet_args=kubelet_args, upgrade_policy=upgrade_policy, + security_group_id=security_group_id, ), self.client, ), diff --git a/scaleway-async/scaleway_async/k8s/v1/marshalling.py b/scaleway-async/scaleway_async/k8s/v1/marshalling.py index 3104967ce..a07d3eec0 100644 --- a/scaleway-async/scaleway_async/k8s/v1/marshalling.py +++ b/scaleway-async/scaleway_async/k8s/v1/marshalling.py @@ -2050,6 +2050,9 @@ def marshal_UpdatePoolRequest( request.upgrade_policy, defaults ) + if request.security_group_id is not None: + output["security_group_id"] = request.security_group_id + return output diff --git a/scaleway-async/scaleway_async/k8s/v1/types.py b/scaleway-async/scaleway_async/k8s/v1/types.py index ffc59092a..def60c5e9 100644 --- a/scaleway-async/scaleway_async/k8s/v1/types.py +++ b/scaleway-async/scaleway_async/k8s/v1/types.py @@ -2097,6 +2097,11 @@ class UpdatePoolRequest: New upgrade policy for the pool. """ + security_group_id: Optional[str] = None + """ + Security group ID in which all the nodes of the pool will be moved. + """ + @dataclass class UpgradeClusterRequest: diff --git a/scaleway/scaleway/k8s/v1/api.py b/scaleway/scaleway/k8s/v1/api.py index 788b5e0e6..37455b24e 100644 --- a/scaleway/scaleway/k8s/v1/api.py +++ b/scaleway/scaleway/k8s/v1/api.py @@ -1262,6 +1262,7 @@ def update_pool( tags: Optional[list[str]] = None, kubelet_args: Optional[dict[str, str]] = None, upgrade_policy: Optional[UpdatePoolRequestUpgradePolicy] = None, + security_group_id: Optional[str] = None, ) -> Pool: """ Update a Pool in a Cluster. @@ -1276,6 +1277,7 @@ def update_pool( :param tags: New tags associated with the pool. :param kubelet_args: New Kubelet arguments to be used by this pool. Note that this feature is experimental. :param upgrade_policy: New upgrade policy for the pool. + :param security_group_id: Security group ID in which all the nodes of the pool will be moved. :return: :class:`Pool ` Usage: @@ -1306,6 +1308,7 @@ def update_pool( tags=tags, kubelet_args=kubelet_args, upgrade_policy=upgrade_policy, + security_group_id=security_group_id, ), self.client, ), diff --git a/scaleway/scaleway/k8s/v1/marshalling.py b/scaleway/scaleway/k8s/v1/marshalling.py index 3104967ce..a07d3eec0 100644 --- a/scaleway/scaleway/k8s/v1/marshalling.py +++ b/scaleway/scaleway/k8s/v1/marshalling.py @@ -2050,6 +2050,9 @@ def marshal_UpdatePoolRequest( request.upgrade_policy, defaults ) + if request.security_group_id is not None: + output["security_group_id"] = request.security_group_id + return output diff --git a/scaleway/scaleway/k8s/v1/types.py b/scaleway/scaleway/k8s/v1/types.py index ffc59092a..def60c5e9 100644 --- a/scaleway/scaleway/k8s/v1/types.py +++ b/scaleway/scaleway/k8s/v1/types.py @@ -2097,6 +2097,11 @@ class UpdatePoolRequest: New upgrade policy for the pool. """ + security_group_id: Optional[str] = None + """ + Security group ID in which all the nodes of the pool will be moved. + """ + @dataclass class UpgradeClusterRequest: