From 1e7bf258dc747004355fe08e87e6a2ea754eaaff Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 31 Oct 2025 15:21:12 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/rdb/v1/api.py | 12 +++++------- scaleway-async/scaleway_async/rdb/v1/types.py | 10 +++++----- scaleway/scaleway/rdb/v1/api.py | 12 +++++------- scaleway/scaleway/rdb/v1/types.py | 10 +++++----- 4 files changed, 20 insertions(+), 24 deletions(-) diff --git a/scaleway-async/scaleway_async/rdb/v1/api.py b/scaleway-async/scaleway_async/rdb/v1/api.py index a97460456..7cce9e877 100644 --- a/scaleway-async/scaleway_async/rdb/v1/api.py +++ b/scaleway-async/scaleway_async/rdb/v1/api.py @@ -2451,12 +2451,12 @@ async def list_databases( self, *, instance_id: str, - skip_size_retrieval: bool, region: Optional[ScwRegion] = None, name: Optional[str] = None, managed: Optional[bool] = None, owner: Optional[str] = None, order_by: Optional[ListDatabasesRequestOrderBy] = None, + skip_size_retrieval: Optional[bool] = None, page: Optional[int] = None, page_size: Optional[int] = None, ) -> ListDatabasesResponse: @@ -2464,12 +2464,12 @@ async def list_databases( List databases in a Database Instance. List all databases of a given Database Instance. By default, the databases returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `name`, `managed` and `owner`. :param instance_id: UUID of the Database Instance to list the databases of. - :param skip_size_retrieval: Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. :param region: Region to target. If none is passed will use default region from the config. :param name: Name of the database. :param managed: Defines whether or not the database is managed. :param owner: User that owns this database. :param order_by: Criteria to use when ordering database listing. + :param skip_size_retrieval: Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. :param page: :param page_size: :return: :class:`ListDatabasesResponse ` @@ -2479,7 +2479,6 @@ async def list_databases( result = await api.list_databases( instance_id="example", - skip_size_retrieval=False, ) """ @@ -2509,12 +2508,12 @@ async def list_databases_all( self, *, instance_id: str, - skip_size_retrieval: bool, region: Optional[ScwRegion] = None, name: Optional[str] = None, managed: Optional[bool] = None, owner: Optional[str] = None, order_by: Optional[ListDatabasesRequestOrderBy] = None, + skip_size_retrieval: Optional[bool] = None, page: Optional[int] = None, page_size: Optional[int] = None, ) -> list[Database]: @@ -2522,12 +2521,12 @@ async def list_databases_all( List databases in a Database Instance. List all databases of a given Database Instance. By default, the databases returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `name`, `managed` and `owner`. :param instance_id: UUID of the Database Instance to list the databases of. - :param skip_size_retrieval: Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. :param region: Region to target. If none is passed will use default region from the config. :param name: Name of the database. :param managed: Defines whether or not the database is managed. :param owner: User that owns this database. :param order_by: Criteria to use when ordering database listing. + :param skip_size_retrieval: Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. :param page: :param page_size: :return: :class:`list[Database] ` @@ -2537,7 +2536,6 @@ async def list_databases_all( result = await api.list_databases_all( instance_id="example", - skip_size_retrieval=False, ) """ @@ -2547,12 +2545,12 @@ async def list_databases_all( fetcher=self.list_databases, args={ "instance_id": instance_id, - "skip_size_retrieval": skip_size_retrieval, "region": region, "name": name, "managed": managed, "owner": owner, "order_by": order_by, + "skip_size_retrieval": skip_size_retrieval, "page": page, "page_size": page_size, }, diff --git a/scaleway-async/scaleway_async/rdb/v1/types.py b/scaleway-async/scaleway_async/rdb/v1/types.py index d28b17169..046a2b107 100644 --- a/scaleway-async/scaleway_async/rdb/v1/types.py +++ b/scaleway-async/scaleway_async/rdb/v1/types.py @@ -1883,11 +1883,6 @@ class ListDatabasesRequest: UUID of the Database Instance to list the databases of. """ - skip_size_retrieval: bool - """ - Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. - """ - region: Optional[ScwRegion] = None """ Region to target. If none is passed will use default region from the config. @@ -1915,6 +1910,11 @@ class ListDatabasesRequest: Criteria to use when ordering database listing. """ + skip_size_retrieval: Optional[bool] = False + """ + Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. + """ + page: Optional[int] = 0 page_size: Optional[int] = 0 diff --git a/scaleway/scaleway/rdb/v1/api.py b/scaleway/scaleway/rdb/v1/api.py index 34e1029c5..3632cb7ac 100644 --- a/scaleway/scaleway/rdb/v1/api.py +++ b/scaleway/scaleway/rdb/v1/api.py @@ -2443,12 +2443,12 @@ def list_databases( self, *, instance_id: str, - skip_size_retrieval: bool, region: Optional[ScwRegion] = None, name: Optional[str] = None, managed: Optional[bool] = None, owner: Optional[str] = None, order_by: Optional[ListDatabasesRequestOrderBy] = None, + skip_size_retrieval: Optional[bool] = None, page: Optional[int] = None, page_size: Optional[int] = None, ) -> ListDatabasesResponse: @@ -2456,12 +2456,12 @@ def list_databases( List databases in a Database Instance. List all databases of a given Database Instance. By default, the databases returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `name`, `managed` and `owner`. :param instance_id: UUID of the Database Instance to list the databases of. - :param skip_size_retrieval: Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. :param region: Region to target. If none is passed will use default region from the config. :param name: Name of the database. :param managed: Defines whether or not the database is managed. :param owner: User that owns this database. :param order_by: Criteria to use when ordering database listing. + :param skip_size_retrieval: Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. :param page: :param page_size: :return: :class:`ListDatabasesResponse ` @@ -2471,7 +2471,6 @@ def list_databases( result = api.list_databases( instance_id="example", - skip_size_retrieval=False, ) """ @@ -2501,12 +2500,12 @@ def list_databases_all( self, *, instance_id: str, - skip_size_retrieval: bool, region: Optional[ScwRegion] = None, name: Optional[str] = None, managed: Optional[bool] = None, owner: Optional[str] = None, order_by: Optional[ListDatabasesRequestOrderBy] = None, + skip_size_retrieval: Optional[bool] = None, page: Optional[int] = None, page_size: Optional[int] = None, ) -> list[Database]: @@ -2514,12 +2513,12 @@ def list_databases_all( List databases in a Database Instance. List all databases of a given Database Instance. By default, the databases returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `name`, `managed` and `owner`. :param instance_id: UUID of the Database Instance to list the databases of. - :param skip_size_retrieval: Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. :param region: Region to target. If none is passed will use default region from the config. :param name: Name of the database. :param managed: Defines whether or not the database is managed. :param owner: User that owns this database. :param order_by: Criteria to use when ordering database listing. + :param skip_size_retrieval: Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. :param page: :param page_size: :return: :class:`list[Database] ` @@ -2529,7 +2528,6 @@ def list_databases_all( result = api.list_databases_all( instance_id="example", - skip_size_retrieval=False, ) """ @@ -2539,12 +2537,12 @@ def list_databases_all( fetcher=self.list_databases, args={ "instance_id": instance_id, - "skip_size_retrieval": skip_size_retrieval, "region": region, "name": name, "managed": managed, "owner": owner, "order_by": order_by, + "skip_size_retrieval": skip_size_retrieval, "page": page, "page_size": page_size, }, diff --git a/scaleway/scaleway/rdb/v1/types.py b/scaleway/scaleway/rdb/v1/types.py index d28b17169..046a2b107 100644 --- a/scaleway/scaleway/rdb/v1/types.py +++ b/scaleway/scaleway/rdb/v1/types.py @@ -1883,11 +1883,6 @@ class ListDatabasesRequest: UUID of the Database Instance to list the databases of. """ - skip_size_retrieval: bool - """ - Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. - """ - region: Optional[ScwRegion] = None """ Region to target. If none is passed will use default region from the config. @@ -1915,6 +1910,11 @@ class ListDatabasesRequest: Criteria to use when ordering database listing. """ + skip_size_retrieval: Optional[bool] = False + """ + Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. + """ + page: Optional[int] = 0 page_size: Optional[int] = 0