44from typing import List , Optional
55
66from scaleway_core .api import API
7+ from scaleway_core .bridge import (
8+ Zone ,
9+ )
710from scaleway_core .utils import (
811 OneOfPossibility ,
912 fetch_all_pages_async ,
@@ -238,14 +241,18 @@ async def list_local_images(
238241 page_size : Optional [int ] = None ,
239242 page : Optional [int ] = None ,
240243 order_by : ListLocalImagesRequestOrderBy = ListLocalImagesRequestOrderBy .CREATED_AT_ASC ,
244+ image_label : Optional [str ] = None ,
245+ zone : Optional [Zone ] = None ,
241246 ) -> ListLocalImagesResponse :
242247 """
243248 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.
246251 :param page_size:
247252 :param page:
248253 :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:
249256 :return: :class:`ListLocalImagesResponse <ListLocalImagesResponse>`
250257
251258 Usage:
@@ -261,10 +268,12 @@ async def list_local_images(
261268 "order_by" : order_by ,
262269 "page" : page ,
263270 "page_size" : page_size or self .client .default_page_size ,
271+ "zone" : zone or self .client .default_zone ,
264272 ** resolve_one_of (
265273 [
266274 OneOfPossibility ("image_id" , image_id ),
267275 OneOfPossibility ("version_id" , version_id ),
276+ OneOfPossibility ("image_label" , image_label ),
268277 ]
269278 ),
270279 },
@@ -281,14 +290,18 @@ async def list_local_images_all(
281290 page_size : Optional [int ] = None ,
282291 page : Optional [int ] = None ,
283292 order_by : Optional [ListLocalImagesRequestOrderBy ] = None ,
293+ image_label : Optional [str ] = None ,
294+ zone : Optional [Zone ] = None ,
284295 ) -> List [LocalImage ]:
285296 """
286297 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.
289300 :param page_size:
290301 :param page:
291302 :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:
292305 :return: :class:`List[ListLocalImagesResponse] <List[ListLocalImagesResponse]>`
293306
294307 Usage:
@@ -307,6 +320,8 @@ async def list_local_images_all(
307320 "page_size" : page_size ,
308321 "page" : page ,
309322 "order_by" : order_by ,
323+ "image_label" : image_label ,
324+ "zone" : zone ,
310325 },
311326 )
312327
0 commit comments