4
4
from typing import List , Optional
5
5
6
6
from scaleway_core .api import API
7
+ from scaleway_core .bridge import (
8
+ Zone ,
9
+ )
7
10
from scaleway_core .utils import (
8
11
OneOfPossibility ,
9
12
fetch_all_pages_async ,
@@ -238,14 +241,18 @@ async def list_local_images(
238
241
page_size : Optional [int ] = None ,
239
242
page : Optional [int ] = None ,
240
243
order_by : ListLocalImagesRequestOrderBy = ListLocalImagesRequestOrderBy .CREATED_AT_ASC ,
244
+ image_label : Optional [str ] = None ,
245
+ zone : Optional [Zone ] = None ,
241
246
) -> ListLocalImagesResponse :
242
247
"""
243
248
List local images from a specific image or version
244
- :param image_id: One-of ('scope'): at most one of 'image_id', 'version_id' could be set.
245
- :param version_id: One-of ('scope'): at most one of 'image_id', 'version_id' could be set.
249
+ :param image_id: One-of ('scope'): at most one of 'image_id', 'version_id', 'image_label' could be set.
250
+ :param version_id: One-of ('scope'): at most one of 'image_id', 'version_id', 'image_label' could be set.
246
251
:param page_size:
247
252
:param page:
248
253
:param order_by:
254
+ :param image_label: One-of ('scope'): at most one of 'image_id', 'version_id', 'image_label' could be set.
255
+ :param zone:
249
256
:return: :class:`ListLocalImagesResponse <ListLocalImagesResponse>`
250
257
251
258
Usage:
@@ -261,10 +268,12 @@ async def list_local_images(
261
268
"order_by" : order_by ,
262
269
"page" : page ,
263
270
"page_size" : page_size or self .client .default_page_size ,
271
+ "zone" : zone or self .client .default_zone ,
264
272
** resolve_one_of (
265
273
[
266
274
OneOfPossibility ("image_id" , image_id ),
267
275
OneOfPossibility ("version_id" , version_id ),
276
+ OneOfPossibility ("image_label" , image_label ),
268
277
]
269
278
),
270
279
},
@@ -281,14 +290,18 @@ async def list_local_images_all(
281
290
page_size : Optional [int ] = None ,
282
291
page : Optional [int ] = None ,
283
292
order_by : Optional [ListLocalImagesRequestOrderBy ] = None ,
293
+ image_label : Optional [str ] = None ,
294
+ zone : Optional [Zone ] = None ,
284
295
) -> List [LocalImage ]:
285
296
"""
286
297
List local images from a specific image or version
287
- :param image_id: One-of ('scope'): at most one of 'image_id', 'version_id' could be set.
288
- :param version_id: One-of ('scope'): at most one of 'image_id', 'version_id' could be set.
298
+ :param image_id: One-of ('scope'): at most one of 'image_id', 'version_id', 'image_label' could be set.
299
+ :param version_id: One-of ('scope'): at most one of 'image_id', 'version_id', 'image_label' could be set.
289
300
:param page_size:
290
301
:param page:
291
302
:param order_by:
303
+ :param image_label: One-of ('scope'): at most one of 'image_id', 'version_id', 'image_label' could be set.
304
+ :param zone:
292
305
:return: :class:`List[ListLocalImagesResponse] <List[ListLocalImagesResponse]>`
293
306
294
307
Usage:
@@ -307,6 +320,8 @@ async def list_local_images_all(
307
320
"page_size" : page_size ,
308
321
"page" : page ,
309
322
"order_by" : order_by ,
323
+ "image_label" : image_label ,
324
+ "zone" : zone ,
310
325
},
311
326
)
312
327
0 commit comments