diff --git a/scaleway-async/scaleway_async/block/v1/api.py b/scaleway-async/scaleway_async/block/v1/api.py index 553a86286..612e2faef 100644 --- a/scaleway-async/scaleway_async/block/v1/api.py +++ b/scaleway-async/scaleway_async/block/v1/api.py @@ -136,6 +136,7 @@ async def list_volumes( name: Optional[str] = None, product_resource_id: Optional[str] = None, tags: Optional[list[str]] = None, + volume_type: Optional[str] = None, ) -> ListVolumesResponse: """ List volumes. @@ -150,6 +151,7 @@ async def list_volumes( :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. + :param volume_type: Filter by volume type. :return: :class:`ListVolumesResponse ` Usage: @@ -176,6 +178,7 @@ async def list_volumes( "product_resource_id": product_resource_id, "project_id": project_id or self.client.default_project_id, "tags": tags, + "volume_type": volume_type, }, ) @@ -195,6 +198,7 @@ async def list_volumes_all( name: Optional[str] = None, product_resource_id: Optional[str] = None, tags: Optional[list[str]] = None, + volume_type: Optional[str] = None, ) -> list[Volume]: """ List volumes. @@ -209,6 +213,7 @@ async def list_volumes_all( :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. + :param volume_type: Filter by volume type. :return: :class:`list[Volume] ` Usage: @@ -234,6 +239,7 @@ async def list_volumes_all( "name": name, "product_resource_id": product_resource_id, "tags": tags, + "volume_type": volume_type, }, ) diff --git a/scaleway-async/scaleway_async/block/v1/types.py b/scaleway-async/scaleway_async/block/v1/types.py index 8e8248068..06d72a335 100644 --- a/scaleway-async/scaleway_async/block/v1/types.py +++ b/scaleway-async/scaleway_async/block/v1/types.py @@ -674,6 +674,11 @@ class ListVolumesRequest: Filter by tags. Only volumes with one or more matching tags will be returned. """ + volume_type: Optional[str] = None + """ + Filter by volume type. + """ + @dataclass class ListVolumesResponse: diff --git a/scaleway/scaleway/block/v1/api.py b/scaleway/scaleway/block/v1/api.py index 8cb27e923..8011f254a 100644 --- a/scaleway/scaleway/block/v1/api.py +++ b/scaleway/scaleway/block/v1/api.py @@ -136,6 +136,7 @@ def list_volumes( name: Optional[str] = None, product_resource_id: Optional[str] = None, tags: Optional[list[str]] = None, + volume_type: Optional[str] = None, ) -> ListVolumesResponse: """ List volumes. @@ -150,6 +151,7 @@ def list_volumes( :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. + :param volume_type: Filter by volume type. :return: :class:`ListVolumesResponse ` Usage: @@ -176,6 +178,7 @@ def list_volumes( "product_resource_id": product_resource_id, "project_id": project_id or self.client.default_project_id, "tags": tags, + "volume_type": volume_type, }, ) @@ -195,6 +198,7 @@ def list_volumes_all( name: Optional[str] = None, product_resource_id: Optional[str] = None, tags: Optional[list[str]] = None, + volume_type: Optional[str] = None, ) -> list[Volume]: """ List volumes. @@ -209,6 +213,7 @@ def list_volumes_all( :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. + :param volume_type: Filter by volume type. :return: :class:`list[Volume] ` Usage: @@ -234,6 +239,7 @@ def list_volumes_all( "name": name, "product_resource_id": product_resource_id, "tags": tags, + "volume_type": volume_type, }, ) diff --git a/scaleway/scaleway/block/v1/types.py b/scaleway/scaleway/block/v1/types.py index 8e8248068..06d72a335 100644 --- a/scaleway/scaleway/block/v1/types.py +++ b/scaleway/scaleway/block/v1/types.py @@ -674,6 +674,11 @@ class ListVolumesRequest: Filter by tags. Only volumes with one or more matching tags will be returned. """ + volume_type: Optional[str] = None + """ + Filter by volume type. + """ + @dataclass class ListVolumesResponse: