Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/k8s/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <Pool>`

Usage:
Expand Down Expand Up @@ -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,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/k8s/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <Pool>`

Usage:
Expand Down Expand Up @@ -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,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading