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
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/k8s/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ async def list_clusters(
status: Optional[ClusterStatus] = None,
type_: Optional[str] = None,
private_network_id: Optional[str] = None,
version: Optional[str] = None,
) -> ListClustersResponse:
"""
List Clusters.
Expand All @@ -140,6 +141,7 @@ async def list_clusters(
:param status: Status to filter on, only clusters with this status will be returned.
:param type_: Type to filter on, only clusters with this type will be returned.
:param private_network_id: Private Network ID to filter on, only clusters within this Private Network will be returned.
:param version: Version to filter on, only cluster matching this prefix version will be returned.
:return: :class:`ListClustersResponse <ListClustersResponse>`

Usage:
Expand All @@ -166,6 +168,7 @@ async def list_clusters(
"project_id": project_id or self.client.default_project_id,
"status": status,
"type": type_,
"version": version,
},
)

Expand All @@ -185,6 +188,7 @@ async def list_clusters_all(
status: Optional[ClusterStatus] = None,
type_: Optional[str] = None,
private_network_id: Optional[str] = None,
version: Optional[str] = None,
) -> list[Cluster]:
"""
List Clusters.
Expand All @@ -199,6 +203,7 @@ async def list_clusters_all(
:param status: Status to filter on, only clusters with this status will be returned.
:param type_: Type to filter on, only clusters with this type will be returned.
:param private_network_id: Private Network ID to filter on, only clusters within this Private Network will be returned.
:param version: Version to filter on, only cluster matching this prefix version will be returned.
:return: :class:`list[Cluster] <list[Cluster]>`

Usage:
Expand All @@ -222,6 +227,7 @@ async def list_clusters_all(
"status": status,
"type_": type_,
"private_network_id": private_network_id,
"version": version,
},
)

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 @@ -1844,6 +1844,11 @@ class ListClustersRequest:
Private Network ID to filter on, only clusters within this Private Network will be returned.
"""

version: Optional[str] = None
"""
Version to filter on, only cluster matching this prefix version will be returned.
"""


@dataclass
class ListClustersResponse:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/k8s/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def list_clusters(
status: Optional[ClusterStatus] = None,
type_: Optional[str] = None,
private_network_id: Optional[str] = None,
version: Optional[str] = None,
) -> ListClustersResponse:
"""
List Clusters.
Expand All @@ -140,6 +141,7 @@ def list_clusters(
:param status: Status to filter on, only clusters with this status will be returned.
:param type_: Type to filter on, only clusters with this type will be returned.
:param private_network_id: Private Network ID to filter on, only clusters within this Private Network will be returned.
:param version: Version to filter on, only cluster matching this prefix version will be returned.
:return: :class:`ListClustersResponse <ListClustersResponse>`

Usage:
Expand All @@ -166,6 +168,7 @@ def list_clusters(
"project_id": project_id or self.client.default_project_id,
"status": status,
"type": type_,
"version": version,
},
)

Expand All @@ -185,6 +188,7 @@ def list_clusters_all(
status: Optional[ClusterStatus] = None,
type_: Optional[str] = None,
private_network_id: Optional[str] = None,
version: Optional[str] = None,
) -> list[Cluster]:
"""
List Clusters.
Expand All @@ -199,6 +203,7 @@ def list_clusters_all(
:param status: Status to filter on, only clusters with this status will be returned.
:param type_: Type to filter on, only clusters with this type will be returned.
:param private_network_id: Private Network ID to filter on, only clusters within this Private Network will be returned.
:param version: Version to filter on, only cluster matching this prefix version will be returned.
:return: :class:`list[Cluster] <list[Cluster]>`

Usage:
Expand All @@ -222,6 +227,7 @@ def list_clusters_all(
"status": status,
"type_": type_,
"private_network_id": private_network_id,
"version": version,
},
)

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 @@ -1844,6 +1844,11 @@ class ListClustersRequest:
Private Network ID to filter on, only clusters within this Private Network will be returned.
"""

version: Optional[str] = None
"""
Version to filter on, only cluster matching this prefix version will be returned.
"""


@dataclass
class ListClustersResponse:
Expand Down
Loading