Skip to content

Commit 4bb1b67

Browse files
committed
feat: update generated APIs
1 parent d1b4d48 commit 4bb1b67

File tree

6 files changed

+50
-12
lines changed

6 files changed

+50
-12
lines changed

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ async def list_i_ps(
272272
organization_id: Optional[str] = None,
273273
is_ipv6: Optional[bool] = None,
274274
ip_ids: Optional[List[str]] = None,
275+
source_vpc_id: Optional[str] = None,
275276
) -> ListIPsResponse:
276277
"""
277278
List existing IPs.
@@ -282,11 +283,11 @@ async def list_i_ps(
282283
:param page_size: Maximum number of IPs to return per page.
283284
:param project_id: Project ID to filter for. Only IPs belonging to this Project will be returned.
284285
:param zonal: Zone to filter for. Only IPs that are zonal, and in this zone, will be returned.
285-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
286+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
286287
:param private_network_id: Only IPs that are private, and in this Private Network, will be returned.
287-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
288+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
288289
:param subnet_id: Only IPs inside this exact subnet will be returned.
289-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
290+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
290291
:param vpc_id: Only IPs owned by resources in this VPC will be returned.
291292
:param attached: Defines whether to filter only for IPs which are attached to a resource.
292293
:param resource_name: Attached resource name to filter for, only IPs attached to a resource with this string within their name will be returned.
@@ -299,6 +300,8 @@ async def list_i_ps(
299300
:param organization_id: Organization ID to filter for. Only IPs belonging to this Organization will be returned.
300301
:param is_ipv6: Defines whether to filter only for IPv4s or IPv6s.
301302
:param ip_ids: IP IDs to filter for. Only IPs with these UUIDs will be returned.
303+
:param source_vpc_id:
304+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
302305
:return: :class:`ListIPsResponse <ListIPsResponse>`
303306
304307
Usage:
@@ -335,6 +338,7 @@ async def list_i_ps(
335338
**resolve_one_of(
336339
[
337340
OneOfPossibility("private_network_id", private_network_id),
341+
OneOfPossibility("source_vpc_id", source_vpc_id),
338342
OneOfPossibility("subnet_id", subnet_id),
339343
OneOfPossibility("zonal", zonal),
340344
]
@@ -368,6 +372,7 @@ async def list_i_ps_all(
368372
organization_id: Optional[str] = None,
369373
is_ipv6: Optional[bool] = None,
370374
ip_ids: Optional[List[str]] = None,
375+
source_vpc_id: Optional[str] = None,
371376
) -> List[IP]:
372377
"""
373378
List existing IPs.
@@ -378,11 +383,11 @@ async def list_i_ps_all(
378383
:param page_size: Maximum number of IPs to return per page.
379384
:param project_id: Project ID to filter for. Only IPs belonging to this Project will be returned.
380385
:param zonal: Zone to filter for. Only IPs that are zonal, and in this zone, will be returned.
381-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
386+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
382387
:param private_network_id: Only IPs that are private, and in this Private Network, will be returned.
383-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
388+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
384389
:param subnet_id: Only IPs inside this exact subnet will be returned.
385-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
390+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
386391
:param vpc_id: Only IPs owned by resources in this VPC will be returned.
387392
:param attached: Defines whether to filter only for IPs which are attached to a resource.
388393
:param resource_name: Attached resource name to filter for, only IPs attached to a resource with this string within their name will be returned.
@@ -395,6 +400,8 @@ async def list_i_ps_all(
395400
:param organization_id: Organization ID to filter for. Only IPs belonging to this Organization will be returned.
396401
:param is_ipv6: Defines whether to filter only for IPv4s or IPv6s.
397402
:param ip_ids: IP IDs to filter for. Only IPs with these UUIDs will be returned.
403+
:param source_vpc_id:
404+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
398405
:return: :class:`List[IP] <List[IP]>`
399406
400407
Usage:
@@ -428,6 +435,7 @@ async def list_i_ps_all(
428435
"zonal": zonal,
429436
"private_network_id": private_network_id,
430437
"subnet_id": subnet_id,
438+
"source_vpc_id": source_vpc_id,
431439
},
432440
)
433441

scaleway-async/scaleway_async/ipam/v1/marshalling.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ def unmarshal_Source(data: Any) -> Source:
103103
else:
104104
args["subnet_id"] = None
105105

106+
field = data.get("vpc_id", None)
107+
if field is not None:
108+
args["vpc_id"] = field
109+
else:
110+
args["vpc_id"] = None
111+
106112
return Source(**args)
107113

108114

@@ -234,6 +240,7 @@ def marshal_Source(
234240
OneOfPossibility("zonal", request.zonal),
235241
OneOfPossibility("private_network_id", request.private_network_id),
236242
OneOfPossibility("subnet_id", request.subnet_id),
243+
OneOfPossibility("vpc_id", request.vpc_id),
237244
]
238245
),
239246
)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ class Source:
101101

102102
subnet_id: Optional[str]
103103

104+
vpc_id: Optional[str]
105+
104106

105107
@dataclass
106108
class CustomResource:
@@ -358,6 +360,8 @@ class ListIPsRequest:
358360

359361
subnet_id: Optional[str]
360362

363+
source_vpc_id: Optional[str]
364+
361365

362366
@dataclass
363367
class ListIPsResponse:

scaleway/scaleway/ipam/v1/api.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def list_i_ps(
272272
organization_id: Optional[str] = None,
273273
is_ipv6: Optional[bool] = None,
274274
ip_ids: Optional[List[str]] = None,
275+
source_vpc_id: Optional[str] = None,
275276
) -> ListIPsResponse:
276277
"""
277278
List existing IPs.
@@ -282,11 +283,11 @@ def list_i_ps(
282283
:param page_size: Maximum number of IPs to return per page.
283284
:param project_id: Project ID to filter for. Only IPs belonging to this Project will be returned.
284285
:param zonal: Zone to filter for. Only IPs that are zonal, and in this zone, will be returned.
285-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
286+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
286287
:param private_network_id: Only IPs that are private, and in this Private Network, will be returned.
287-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
288+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
288289
:param subnet_id: Only IPs inside this exact subnet will be returned.
289-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
290+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
290291
:param vpc_id: Only IPs owned by resources in this VPC will be returned.
291292
:param attached: Defines whether to filter only for IPs which are attached to a resource.
292293
:param resource_name: Attached resource name to filter for, only IPs attached to a resource with this string within their name will be returned.
@@ -299,6 +300,8 @@ def list_i_ps(
299300
:param organization_id: Organization ID to filter for. Only IPs belonging to this Organization will be returned.
300301
:param is_ipv6: Defines whether to filter only for IPv4s or IPv6s.
301302
:param ip_ids: IP IDs to filter for. Only IPs with these UUIDs will be returned.
303+
:param source_vpc_id:
304+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
302305
:return: :class:`ListIPsResponse <ListIPsResponse>`
303306
304307
Usage:
@@ -335,6 +338,7 @@ def list_i_ps(
335338
**resolve_one_of(
336339
[
337340
OneOfPossibility("private_network_id", private_network_id),
341+
OneOfPossibility("source_vpc_id", source_vpc_id),
338342
OneOfPossibility("subnet_id", subnet_id),
339343
OneOfPossibility("zonal", zonal),
340344
]
@@ -368,6 +372,7 @@ def list_i_ps_all(
368372
organization_id: Optional[str] = None,
369373
is_ipv6: Optional[bool] = None,
370374
ip_ids: Optional[List[str]] = None,
375+
source_vpc_id: Optional[str] = None,
371376
) -> List[IP]:
372377
"""
373378
List existing IPs.
@@ -378,11 +383,11 @@ def list_i_ps_all(
378383
:param page_size: Maximum number of IPs to return per page.
379384
:param project_id: Project ID to filter for. Only IPs belonging to this Project will be returned.
380385
:param zonal: Zone to filter for. Only IPs that are zonal, and in this zone, will be returned.
381-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
386+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
382387
:param private_network_id: Only IPs that are private, and in this Private Network, will be returned.
383-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
388+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
384389
:param subnet_id: Only IPs inside this exact subnet will be returned.
385-
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
390+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
386391
:param vpc_id: Only IPs owned by resources in this VPC will be returned.
387392
:param attached: Defines whether to filter only for IPs which are attached to a resource.
388393
:param resource_name: Attached resource name to filter for, only IPs attached to a resource with this string within their name will be returned.
@@ -395,6 +400,8 @@ def list_i_ps_all(
395400
:param organization_id: Organization ID to filter for. Only IPs belonging to this Organization will be returned.
396401
:param is_ipv6: Defines whether to filter only for IPv4s or IPv6s.
397402
:param ip_ids: IP IDs to filter for. Only IPs with these UUIDs will be returned.
403+
:param source_vpc_id:
404+
One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id', 'source_vpc_id' could be set.
398405
:return: :class:`List[IP] <List[IP]>`
399406
400407
Usage:
@@ -428,6 +435,7 @@ def list_i_ps_all(
428435
"zonal": zonal,
429436
"private_network_id": private_network_id,
430437
"subnet_id": subnet_id,
438+
"source_vpc_id": source_vpc_id,
431439
},
432440
)
433441

scaleway/scaleway/ipam/v1/marshalling.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ def unmarshal_Source(data: Any) -> Source:
103103
else:
104104
args["subnet_id"] = None
105105

106+
field = data.get("vpc_id", None)
107+
if field is not None:
108+
args["vpc_id"] = field
109+
else:
110+
args["vpc_id"] = None
111+
106112
return Source(**args)
107113

108114

@@ -234,6 +240,7 @@ def marshal_Source(
234240
OneOfPossibility("zonal", request.zonal),
235241
OneOfPossibility("private_network_id", request.private_network_id),
236242
OneOfPossibility("subnet_id", request.subnet_id),
243+
OneOfPossibility("vpc_id", request.vpc_id),
237244
]
238245
),
239246
)

scaleway/scaleway/ipam/v1/types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ class Source:
101101

102102
subnet_id: Optional[str]
103103

104+
vpc_id: Optional[str]
105+
104106

105107
@dataclass
106108
class CustomResource:
@@ -358,6 +360,8 @@ class ListIPsRequest:
358360

359361
subnet_id: Optional[str]
360362

363+
source_vpc_id: Optional[str]
364+
361365

362366
@dataclass
363367
class ListIPsResponse:

0 commit comments

Comments
 (0)