@@ -213,6 +213,8 @@ async def list_i_ps(
213
213
project_id : Optional [str ] = None ,
214
214
zonal : Optional [str ] = None ,
215
215
private_network_id : Optional [str ] = None ,
216
+ subnet_id : Optional [str ] = None ,
217
+ vpc_id : Optional [str ] = None ,
216
218
attached : Optional [bool ] = None ,
217
219
resource_id : Optional [str ] = None ,
218
220
resource_type : Optional [ResourceType ] = None ,
@@ -231,9 +233,12 @@ async def list_i_ps(
231
233
:param page_size: Maximum number of IPs to return per page.
232
234
:param project_id: Project ID to filter for. Only IPs belonging to this Project will be returned.
233
235
:param zonal: Zone to filter for. Only IPs that are zonal, and in this zone, will be returned.
234
- One-Of ('source'): at most one of 'zonal', 'private_network_id' could be set.
236
+ One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
235
237
:param private_network_id: Only IPs that are private, and in this Private Network, will be returned.
236
- One-Of ('source'): at most one of 'zonal', 'private_network_id' could be set.
238
+ One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
239
+ :param subnet_id: Only IPs inside this exact subnet will be returned.
240
+ One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
241
+ :param vpc_id: Only IPs owned by resources in this VPC will be returned.
237
242
:param attached: Defines whether to filter only for IPs which are attached to a resource.
238
243
:param resource_id: Resource ID to filter for. Only IPs attached to this resource will be returned.
239
244
:param resource_type: Resource type to filter for. Only IPs attached to this type of resource will be returned.
@@ -271,9 +276,11 @@ async def list_i_ps(
271
276
"resource_name" : resource_name ,
272
277
"resource_type" : resource_type ,
273
278
"tags" : tags ,
279
+ "vpc_id" : vpc_id ,
274
280
** resolve_one_of (
275
281
[
276
282
OneOfPossibility ("private_network_id" , private_network_id ),
283
+ OneOfPossibility ("subnet_id" , subnet_id ),
277
284
OneOfPossibility ("zonal" , zonal ),
278
285
]
279
286
),
@@ -293,6 +300,8 @@ async def list_i_ps_all(
293
300
project_id : Optional [str ] = None ,
294
301
zonal : Optional [str ] = None ,
295
302
private_network_id : Optional [str ] = None ,
303
+ subnet_id : Optional [str ] = None ,
304
+ vpc_id : Optional [str ] = None ,
296
305
attached : Optional [bool ] = None ,
297
306
resource_id : Optional [str ] = None ,
298
307
resource_type : Optional [ResourceType ] = None ,
@@ -311,9 +320,12 @@ async def list_i_ps_all(
311
320
:param page_size: Maximum number of IPs to return per page.
312
321
:param project_id: Project ID to filter for. Only IPs belonging to this Project will be returned.
313
322
:param zonal: Zone to filter for. Only IPs that are zonal, and in this zone, will be returned.
314
- One-Of ('source'): at most one of 'zonal', 'private_network_id' could be set.
323
+ One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
315
324
:param private_network_id: Only IPs that are private, and in this Private Network, will be returned.
316
- One-Of ('source'): at most one of 'zonal', 'private_network_id' could be set.
325
+ One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
326
+ :param subnet_id: Only IPs inside this exact subnet will be returned.
327
+ One-Of ('source'): at most one of 'zonal', 'private_network_id', 'subnet_id' could be set.
328
+ :param vpc_id: Only IPs owned by resources in this VPC will be returned.
317
329
:param attached: Defines whether to filter only for IPs which are attached to a resource.
318
330
:param resource_id: Resource ID to filter for. Only IPs attached to this resource will be returned.
319
331
:param resource_type: Resource type to filter for. Only IPs attached to this type of resource will be returned.
@@ -340,6 +352,7 @@ async def list_i_ps_all(
340
352
"page" : page ,
341
353
"page_size" : page_size ,
342
354
"project_id" : project_id ,
355
+ "vpc_id" : vpc_id ,
343
356
"attached" : attached ,
344
357
"resource_id" : resource_id ,
345
358
"resource_type" : resource_type ,
@@ -350,5 +363,6 @@ async def list_i_ps_all(
350
363
"resource_name" : resource_name ,
351
364
"zonal" : zonal ,
352
365
"private_network_id" : private_network_id ,
366
+ "subnet_id" : subnet_id ,
353
367
},
354
368
)
0 commit comments