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
12 changes: 12 additions & 0 deletions scaleway-async/scaleway_async/lb/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ async def list_lbs(
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[list[str]] = None,
lb_ids: Optional[list[str]] = None,
) -> ListLbsResponse:
"""
List Load Balancers.
Expand All @@ -230,6 +231,7 @@ async def list_lbs(
:param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned.
:param project_id: Project ID to filter for, only Load Balancers from this Project will be returned.
:param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned.
:param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned.
:return: :class:`ListLbsResponse <ListLbsResponse>`

Usage:
Expand All @@ -244,6 +246,7 @@ async def list_lbs(
"GET",
f"/lb/v1/zones/{param_zone}/lbs",
params={
"lb_ids": lb_ids,
"name": name,
"order_by": order_by,
"organization_id": organization_id
Expand All @@ -269,6 +272,7 @@ async def list_lbs_all(
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[list[str]] = None,
lb_ids: Optional[list[str]] = None,
) -> list[Lb]:
"""
List Load Balancers.
Expand All @@ -281,6 +285,7 @@ async def list_lbs_all(
:param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned.
:param project_id: Project ID to filter for, only Load Balancers from this Project will be returned.
:param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned.
:param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned.
:return: :class:`list[Lb] <list[Lb]>`

Usage:
Expand All @@ -302,6 +307,7 @@ async def list_lbs_all(
"organization_id": organization_id,
"project_id": project_id,
"tags": tags,
"lb_ids": lb_ids,
},
)

Expand Down Expand Up @@ -3256,6 +3262,7 @@ async def list_lbs(
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[list[str]] = None,
lb_ids: Optional[list[str]] = None,
) -> ListLbsResponse:
"""
List load balancers.
Expand All @@ -3267,6 +3274,7 @@ async def list_lbs(
:param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned.
:param project_id: Project ID to filter for, only Load Balancers from this Project will be returned.
:param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned.
:param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned.
:return: :class:`ListLbsResponse <ListLbsResponse>`

Usage:
Expand All @@ -3283,6 +3291,7 @@ async def list_lbs(
"GET",
f"/lb/v1/regions/{param_region}/lbs",
params={
"lb_ids": lb_ids,
"name": name,
"order_by": order_by,
"organization_id": organization_id
Expand All @@ -3308,6 +3317,7 @@ async def list_lbs_all(
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[list[str]] = None,
lb_ids: Optional[list[str]] = None,
) -> list[Lb]:
"""
List load balancers.
Expand All @@ -3319,6 +3329,7 @@ async def list_lbs_all(
:param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned.
:param project_id: Project ID to filter for, only Load Balancers from this Project will be returned.
:param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned.
:param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned.
:return: :class:`list[Lb] <list[Lb]>`

Usage:
Expand All @@ -3340,6 +3351,7 @@ async def list_lbs_all(
"organization_id": organization_id,
"project_id": project_id,
"tags": tags,
"lb_ids": lb_ids,
},
)

Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/lb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2317,6 +2317,11 @@ class ListLbsRequest:
Filter by tag, only Load Balancers with one or more matching tags will be returned.
"""

lb_ids: Optional[list[str]] = field(default_factory=list)
"""
Filter by lb_ids, only Load Balancers with these IDs will be returned.
"""


@dataclass
class ListLbsResponse:
Expand Down Expand Up @@ -3899,6 +3904,11 @@ class ZonedApiListLbsRequest:
Filter by tag, only Load Balancers with one or more matching tags will be returned.
"""

lb_ids: Optional[list[str]] = field(default_factory=list)
"""
Filter by lb_ids, only Load Balancers with these IDs will be returned.
"""


@dataclass
class ZonedApiListRoutesRequest:
Expand Down
12 changes: 12 additions & 0 deletions scaleway/scaleway/lb/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def list_lbs(
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[list[str]] = None,
lb_ids: Optional[list[str]] = None,
) -> ListLbsResponse:
"""
List Load Balancers.
Expand All @@ -230,6 +231,7 @@ def list_lbs(
:param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned.
:param project_id: Project ID to filter for, only Load Balancers from this Project will be returned.
:param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned.
:param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned.
:return: :class:`ListLbsResponse <ListLbsResponse>`

Usage:
Expand All @@ -244,6 +246,7 @@ def list_lbs(
"GET",
f"/lb/v1/zones/{param_zone}/lbs",
params={
"lb_ids": lb_ids,
"name": name,
"order_by": order_by,
"organization_id": organization_id
Expand All @@ -269,6 +272,7 @@ def list_lbs_all(
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[list[str]] = None,
lb_ids: Optional[list[str]] = None,
) -> list[Lb]:
"""
List Load Balancers.
Expand All @@ -281,6 +285,7 @@ def list_lbs_all(
:param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned.
:param project_id: Project ID to filter for, only Load Balancers from this Project will be returned.
:param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned.
:param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned.
:return: :class:`list[Lb] <list[Lb]>`

Usage:
Expand All @@ -302,6 +307,7 @@ def list_lbs_all(
"organization_id": organization_id,
"project_id": project_id,
"tags": tags,
"lb_ids": lb_ids,
},
)

Expand Down Expand Up @@ -3254,6 +3260,7 @@ def list_lbs(
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[list[str]] = None,
lb_ids: Optional[list[str]] = None,
) -> ListLbsResponse:
"""
List load balancers.
Expand All @@ -3265,6 +3272,7 @@ def list_lbs(
:param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned.
:param project_id: Project ID to filter for, only Load Balancers from this Project will be returned.
:param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned.
:param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned.
:return: :class:`ListLbsResponse <ListLbsResponse>`

Usage:
Expand All @@ -3281,6 +3289,7 @@ def list_lbs(
"GET",
f"/lb/v1/regions/{param_region}/lbs",
params={
"lb_ids": lb_ids,
"name": name,
"order_by": order_by,
"organization_id": organization_id
Expand All @@ -3306,6 +3315,7 @@ def list_lbs_all(
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[list[str]] = None,
lb_ids: Optional[list[str]] = None,
) -> list[Lb]:
"""
List load balancers.
Expand All @@ -3317,6 +3327,7 @@ def list_lbs_all(
:param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned.
:param project_id: Project ID to filter for, only Load Balancers from this Project will be returned.
:param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned.
:param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned.
:return: :class:`list[Lb] <list[Lb]>`

Usage:
Expand All @@ -3338,6 +3349,7 @@ def list_lbs_all(
"organization_id": organization_id,
"project_id": project_id,
"tags": tags,
"lb_ids": lb_ids,
},
)

Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/lb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2317,6 +2317,11 @@ class ListLbsRequest:
Filter by tag, only Load Balancers with one or more matching tags will be returned.
"""

lb_ids: Optional[list[str]] = field(default_factory=list)
"""
Filter by lb_ids, only Load Balancers with these IDs will be returned.
"""


@dataclass
class ListLbsResponse:
Expand Down Expand Up @@ -3899,6 +3904,11 @@ class ZonedApiListLbsRequest:
Filter by tag, only Load Balancers with one or more matching tags will be returned.
"""

lb_ids: Optional[list[str]] = field(default_factory=list)
"""
Filter by lb_ids, only Load Balancers with these IDs will be returned.
"""


@dataclass
class ZonedApiListRoutesRequest:
Expand Down
Loading