@@ -272,6 +272,7 @@ async def list_i_ps(
272
272
organization_id : Optional [str ] = None ,
273
273
is_ipv6 : Optional [bool ] = None ,
274
274
ip_ids : Optional [List [str ]] = None ,
275
+ source_vpc_id : Optional [str ] = None ,
275
276
) -> ListIPsResponse :
276
277
"""
277
278
List existing IPs.
@@ -282,11 +283,11 @@ async def list_i_ps(
282
283
:param page_size: Maximum number of IPs to return per page.
283
284
:param project_id: Project ID to filter for. Only IPs belonging to this Project will be returned.
284
285
: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.
286
287
: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.
288
289
: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.
290
291
:param vpc_id: Only IPs owned by resources in this VPC will be returned.
291
292
:param attached: Defines whether to filter only for IPs which are attached to a resource.
292
293
: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(
299
300
:param organization_id: Organization ID to filter for. Only IPs belonging to this Organization will be returned.
300
301
:param is_ipv6: Defines whether to filter only for IPv4s or IPv6s.
301
302
: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.
302
305
:return: :class:`ListIPsResponse <ListIPsResponse>`
303
306
304
307
Usage:
@@ -335,6 +338,7 @@ async def list_i_ps(
335
338
** resolve_one_of (
336
339
[
337
340
OneOfPossibility ("private_network_id" , private_network_id ),
341
+ OneOfPossibility ("source_vpc_id" , source_vpc_id ),
338
342
OneOfPossibility ("subnet_id" , subnet_id ),
339
343
OneOfPossibility ("zonal" , zonal ),
340
344
]
@@ -368,6 +372,7 @@ async def list_i_ps_all(
368
372
organization_id : Optional [str ] = None ,
369
373
is_ipv6 : Optional [bool ] = None ,
370
374
ip_ids : Optional [List [str ]] = None ,
375
+ source_vpc_id : Optional [str ] = None ,
371
376
) -> List [IP ]:
372
377
"""
373
378
List existing IPs.
@@ -378,11 +383,11 @@ async def list_i_ps_all(
378
383
:param page_size: Maximum number of IPs to return per page.
379
384
:param project_id: Project ID to filter for. Only IPs belonging to this Project will be returned.
380
385
: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.
382
387
: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.
384
389
: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.
386
391
:param vpc_id: Only IPs owned by resources in this VPC will be returned.
387
392
:param attached: Defines whether to filter only for IPs which are attached to a resource.
388
393
: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(
395
400
:param organization_id: Organization ID to filter for. Only IPs belonging to this Organization will be returned.
396
401
:param is_ipv6: Defines whether to filter only for IPv4s or IPv6s.
397
402
: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.
398
405
:return: :class:`List[IP] <List[IP]>`
399
406
400
407
Usage:
@@ -428,6 +435,7 @@ async def list_i_ps_all(
428
435
"zonal" : zonal ,
429
436
"private_network_id" : private_network_id ,
430
437
"subnet_id" : subnet_id ,
438
+ "source_vpc_id" : source_vpc_id ,
431
439
},
432
440
)
433
441
0 commit comments