6
6
from scaleway_core .api import API
7
7
from scaleway_core .bridge import (
8
8
Region as ScwRegion ,
9
+ Zone as ScwZone ,
9
10
)
10
11
from scaleway_core .utils import (
11
12
WaitForOptions ,
@@ -215,6 +216,7 @@ async def list_attachments(
215
216
filesystem_id : Optional [str ] = None ,
216
217
resource_id : Optional [str ] = None ,
217
218
resource_type : Optional [AttachmentResourceType ] = None ,
219
+ zone : Optional [ScwZone ] = None ,
218
220
page : Optional [int ] = None ,
219
221
page_size : Optional [int ] = None ,
220
222
) -> ListAttachmentsResponse :
@@ -227,6 +229,7 @@ async def list_attachments(
227
229
:param filesystem_id: UUID of the File Storage volume.
228
230
:param resource_id: Filter by resource ID.
229
231
:param resource_type: Filter by resource type.
232
+ :param zone: Filter by resource zone.
230
233
:param page: Page number (starting at 1).
231
234
:param page_size: Number of entries per page (default: 20, max: 100).
232
235
:return: :class:`ListAttachmentsResponse <ListAttachmentsResponse>`
@@ -250,6 +253,7 @@ async def list_attachments(
250
253
"page_size" : page_size or self .client .default_page_size ,
251
254
"resource_id" : resource_id ,
252
255
"resource_type" : resource_type ,
256
+ "zone" : zone or self .client .default_zone ,
253
257
},
254
258
)
255
259
@@ -263,6 +267,7 @@ async def list_attachments_all(
263
267
filesystem_id : Optional [str ] = None ,
264
268
resource_id : Optional [str ] = None ,
265
269
resource_type : Optional [AttachmentResourceType ] = None ,
270
+ zone : Optional [ScwZone ] = None ,
266
271
page : Optional [int ] = None ,
267
272
page_size : Optional [int ] = None ,
268
273
) -> List [Attachment ]:
@@ -275,6 +280,7 @@ async def list_attachments_all(
275
280
:param filesystem_id: UUID of the File Storage volume.
276
281
:param resource_id: Filter by resource ID.
277
282
:param resource_type: Filter by resource type.
283
+ :param zone: Filter by resource zone.
278
284
:param page: Page number (starting at 1).
279
285
:param page_size: Number of entries per page (default: 20, max: 100).
280
286
:return: :class:`List[Attachment] <List[Attachment]>`
@@ -294,6 +300,7 @@ async def list_attachments_all(
294
300
"filesystem_id" : filesystem_id ,
295
301
"resource_id" : resource_id ,
296
302
"resource_type" : resource_type ,
303
+ "zone" : zone ,
297
304
"page" : page ,
298
305
"page_size" : page_size ,
299
306
},
0 commit comments