Skip to content

Commit 9eeb612

Browse files
authored
feat(instance): added field type for ListIpsRequest (#293)
1 parent 3ce171a commit 9eeb612

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

scaleway-async/scaleway_async/instance/v1/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,6 +3040,7 @@ async def list_ips(
30403040
name: Optional[str] = None,
30413041
per_page: Optional[int] = None,
30423042
page: Optional[int] = None,
3043+
type_: Optional[str] = None,
30433044
) -> ListIpsResponse:
30443045
"""
30453046
List all flexible IPs.
@@ -3051,6 +3052,7 @@ async def list_ips(
30513052
:param name: Filter on the IP address (Works as a LIKE operation on the IP address).
30523053
:param per_page: A positive integer lower or equal to 100 to select the number of items to return.
30533054
:param page: A positive integer to choose the page to return.
3055+
:param type_: Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6').
30543056
:return: :class:`ListIpsResponse <ListIpsResponse>`
30553057
30563058
Usage:
@@ -3071,6 +3073,7 @@ async def list_ips(
30713073
"per_page": per_page or self.client.default_page_size,
30723074
"project": project or self.client.default_project_id,
30733075
"tags": ",".join(tags) if tags and len(tags) > 0 else None,
3076+
"type": type_,
30743077
},
30753078
)
30763079

@@ -3087,6 +3090,7 @@ async def list_ips_all(
30873090
name: Optional[str] = None,
30883091
per_page: Optional[int] = None,
30893092
page: Optional[int] = None,
3093+
type_: Optional[str] = None,
30903094
) -> List[Ip]:
30913095
"""
30923096
List all flexible IPs.
@@ -3098,6 +3102,7 @@ async def list_ips_all(
30983102
:param name: Filter on the IP address (Works as a LIKE operation on the IP address).
30993103
:param per_page: A positive integer lower or equal to 100 to select the number of items to return.
31003104
:param page: A positive integer to choose the page to return.
3105+
:param type_: Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6').
31013106
:return: :class:`List[ListIpsResponse] <List[ListIpsResponse]>`
31023107
31033108
Usage:
@@ -3118,6 +3123,7 @@ async def list_ips_all(
31183123
"name": name,
31193124
"per_page": per_page,
31203125
"page": page,
3126+
"type_": type_,
31213127
},
31223128
)
31233129

scaleway-async/scaleway_async/instance/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,6 +3060,11 @@ class ListIpsRequest:
30603060
A positive integer to choose the page to return.
30613061
"""
30623062

3063+
type_: Optional[str]
3064+
"""
3065+
Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6').
3066+
"""
3067+
30633068

30643069
@dataclass
30653070
class CreateIpRequest:

scaleway/scaleway/instance/v1/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,6 +3040,7 @@ def list_ips(
30403040
name: Optional[str] = None,
30413041
per_page: Optional[int] = None,
30423042
page: Optional[int] = None,
3043+
type_: Optional[str] = None,
30433044
) -> ListIpsResponse:
30443045
"""
30453046
List all flexible IPs.
@@ -3051,6 +3052,7 @@ def list_ips(
30513052
:param name: Filter on the IP address (Works as a LIKE operation on the IP address).
30523053
:param per_page: A positive integer lower or equal to 100 to select the number of items to return.
30533054
:param page: A positive integer to choose the page to return.
3055+
:param type_: Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6').
30543056
:return: :class:`ListIpsResponse <ListIpsResponse>`
30553057
30563058
Usage:
@@ -3071,6 +3073,7 @@ def list_ips(
30713073
"per_page": per_page or self.client.default_page_size,
30723074
"project": project or self.client.default_project_id,
30733075
"tags": ",".join(tags) if tags and len(tags) > 0 else None,
3076+
"type": type_,
30743077
},
30753078
)
30763079

@@ -3087,6 +3090,7 @@ def list_ips_all(
30873090
name: Optional[str] = None,
30883091
per_page: Optional[int] = None,
30893092
page: Optional[int] = None,
3093+
type_: Optional[str] = None,
30903094
) -> List[Ip]:
30913095
"""
30923096
List all flexible IPs.
@@ -3098,6 +3102,7 @@ def list_ips_all(
30983102
:param name: Filter on the IP address (Works as a LIKE operation on the IP address).
30993103
:param per_page: A positive integer lower or equal to 100 to select the number of items to return.
31003104
:param page: A positive integer to choose the page to return.
3105+
:param type_: Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6').
31013106
:return: :class:`List[ListIpsResponse] <List[ListIpsResponse]>`
31023107
31033108
Usage:
@@ -3118,6 +3123,7 @@ def list_ips_all(
31183123
"name": name,
31193124
"per_page": per_page,
31203125
"page": page,
3126+
"type_": type_,
31213127
},
31223128
)
31233129

scaleway/scaleway/instance/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,6 +3060,11 @@ class ListIpsRequest:
30603060
A positive integer to choose the page to return.
30613061
"""
30623062

3063+
type_: Optional[str]
3064+
"""
3065+
Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6').
3066+
"""
3067+
30633068

30643069
@dataclass
30653070
class CreateIpRequest:

0 commit comments

Comments
 (0)