diff --git a/scaleway-async/scaleway_async/block/v1alpha1/api.py b/scaleway-async/scaleway_async/block/v1alpha1/api.py index e023de998..3b66bb20f 100644 --- a/scaleway-async/scaleway_async/block/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/block/v1alpha1/api.py @@ -135,6 +135,7 @@ async def list_volumes( page_size: Optional[int] = None, name: Optional[str] = None, product_resource_id: Optional[str] = None, + tags: Optional[List[str]] = None, ) -> ListVolumesResponse: """ List volumes. @@ -147,6 +148,7 @@ async def list_volumes( :param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100. :param name: Filter the return volumes by their names. :param product_resource_id: Filter by a product resource ID linked to this volume (such as an Instance ID). + :param tags: Filter by tags. Only volumes with one or more matching tags will be returned. :return: :class:`ListVolumesResponse ` Usage: @@ -169,6 +171,7 @@ async def list_volumes( "page_size": page_size or self.client.default_page_size, "product_resource_id": product_resource_id, "project_id": project_id or self.client.default_project_id, + "tags": tags, }, ) @@ -186,6 +189,7 @@ async def list_volumes_all( page_size: Optional[int] = None, name: Optional[str] = None, product_resource_id: Optional[str] = None, + tags: Optional[List[str]] = None, ) -> List[Volume]: """ List volumes. @@ -198,6 +202,7 @@ async def list_volumes_all( :param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100. :param name: Filter the return volumes by their names. :param product_resource_id: Filter by a product resource ID linked to this volume (such as an Instance ID). + :param tags: Filter by tags. Only volumes with one or more matching tags will be returned. :return: :class:`List[Volume] ` Usage: @@ -219,6 +224,7 @@ async def list_volumes_all( "page_size": page_size, "name": name, "product_resource_id": product_resource_id, + "tags": tags, }, ) diff --git a/scaleway-async/scaleway_async/block/v1alpha1/types.py b/scaleway-async/scaleway_async/block/v1alpha1/types.py index 0588226ff..44fc6cf7a 100644 --- a/scaleway-async/scaleway_async/block/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/block/v1alpha1/types.py @@ -688,6 +688,11 @@ class ListVolumesRequest: Filter by a product resource ID linked to this volume (such as an Instance ID). """ + tags: Optional[List[str]] + """ + Filter by tags. Only volumes with one or more matching tags will be returned. + """ + @dataclass class ListVolumesResponse: diff --git a/scaleway/scaleway/block/v1alpha1/api.py b/scaleway/scaleway/block/v1alpha1/api.py index fa05e580f..7d953dda2 100644 --- a/scaleway/scaleway/block/v1alpha1/api.py +++ b/scaleway/scaleway/block/v1alpha1/api.py @@ -135,6 +135,7 @@ def list_volumes( page_size: Optional[int] = None, name: Optional[str] = None, product_resource_id: Optional[str] = None, + tags: Optional[List[str]] = None, ) -> ListVolumesResponse: """ List volumes. @@ -147,6 +148,7 @@ def list_volumes( :param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100. :param name: Filter the return volumes by their names. :param product_resource_id: Filter by a product resource ID linked to this volume (such as an Instance ID). + :param tags: Filter by tags. Only volumes with one or more matching tags will be returned. :return: :class:`ListVolumesResponse ` Usage: @@ -169,6 +171,7 @@ def list_volumes( "page_size": page_size or self.client.default_page_size, "product_resource_id": product_resource_id, "project_id": project_id or self.client.default_project_id, + "tags": tags, }, ) @@ -186,6 +189,7 @@ def list_volumes_all( page_size: Optional[int] = None, name: Optional[str] = None, product_resource_id: Optional[str] = None, + tags: Optional[List[str]] = None, ) -> List[Volume]: """ List volumes. @@ -198,6 +202,7 @@ def list_volumes_all( :param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100. :param name: Filter the return volumes by their names. :param product_resource_id: Filter by a product resource ID linked to this volume (such as an Instance ID). + :param tags: Filter by tags. Only volumes with one or more matching tags will be returned. :return: :class:`List[Volume] ` Usage: @@ -219,6 +224,7 @@ def list_volumes_all( "page_size": page_size, "name": name, "product_resource_id": product_resource_id, + "tags": tags, }, ) diff --git a/scaleway/scaleway/block/v1alpha1/types.py b/scaleway/scaleway/block/v1alpha1/types.py index 0588226ff..44fc6cf7a 100644 --- a/scaleway/scaleway/block/v1alpha1/types.py +++ b/scaleway/scaleway/block/v1alpha1/types.py @@ -688,6 +688,11 @@ class ListVolumesRequest: Filter by a product resource ID linked to this volume (such as an Instance ID). """ + tags: Optional[List[str]] + """ + Filter by tags. Only volumes with one or more matching tags will be returned. + """ + @dataclass class ListVolumesResponse: