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/instance/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3040,6 +3040,7 @@ async def list_ips(
name: Optional[str] = None,
per_page: Optional[int] = None,
page: Optional[int] = None,
type_: Optional[str] = None,
) -> ListIpsResponse:
"""
List all flexible IPs.
Expand All @@ -3051,6 +3052,7 @@ async def list_ips(
:param name: Filter on the IP address (Works as a LIKE operation on the IP address).
:param per_page: A positive integer lower or equal to 100 to select the number of items to return.
:param page: A positive integer to choose the page to return.
:param type_: Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6').
:return: :class:`ListIpsResponse <ListIpsResponse>`

Usage:
Expand All @@ -3071,6 +3073,7 @@ async def list_ips(
"per_page": per_page or self.client.default_page_size,
"project": project or self.client.default_project_id,
"tags": ",".join(tags) if tags and len(tags) > 0 else None,
"type": type_,
},
)

Expand All @@ -3087,6 +3090,7 @@ async def list_ips_all(
name: Optional[str] = None,
per_page: Optional[int] = None,
page: Optional[int] = None,
type_: Optional[str] = None,
) -> List[Ip]:
"""
List all flexible IPs.
Expand All @@ -3098,6 +3102,7 @@ async def list_ips_all(
:param name: Filter on the IP address (Works as a LIKE operation on the IP address).
:param per_page: A positive integer lower or equal to 100 to select the number of items to return.
:param page: A positive integer to choose the page to return.
:param type_: Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6').
:return: :class:`List[ListIpsResponse] <List[ListIpsResponse]>`

Usage:
Expand All @@ -3118,6 +3123,7 @@ async def list_ips_all(
"name": name,
"per_page": per_page,
"page": page,
"type_": type_,
},
)

Expand Down
Loading