Skip to content

Commit 4b80993

Browse files
authored
docs(sdb): backups are showing up in descending order (#489)
1 parent ced132b commit 4b80993

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

scaleway-async/scaleway_async/serverless_sqldb/v1alpha1/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ async def list_database_backups(
437437
) -> ListDatabaseBackupsResponse:
438438
"""
439439
List your Serverless SQL Database backups.
440-
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
440+
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in descending order, though this can be modified via the order_by field.
441441
:param database_id: Filter by the UUID of the Serverless SQL Database.
442442
:param region: Region to target. If none is passed will use default region from the config.
443443
:param organization_id: Filter by the UUID of the Scaleway organization.
@@ -489,7 +489,7 @@ async def list_database_backups_all(
489489
) -> List[DatabaseBackup]:
490490
"""
491491
List your Serverless SQL Database backups.
492-
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
492+
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in descending order, though this can be modified via the order_by field.
493493
:param database_id: Filter by the UUID of the Serverless SQL Database.
494494
:param region: Region to target. If none is passed will use default region from the config.
495495
:param organization_id: Filter by the UUID of the Scaleway organization.

scaleway-async/scaleway_async/serverless_sqldb/v1alpha1/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def __str__(self) -> str:
3939

4040

4141
class ListDatabaseBackupsRequestOrderBy(str, Enum, metaclass=StrEnumMeta):
42-
CREATED_AT_ASC = "created_at_asc"
4342
CREATED_AT_DESC = "created_at_desc"
43+
CREATED_AT_ASC = "created_at_asc"
4444

4545
def __str__(self) -> str:
4646
return str(self.value)

scaleway/scaleway/serverless_sqldb/v1alpha1/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def list_database_backups(
435435
) -> ListDatabaseBackupsResponse:
436436
"""
437437
List your Serverless SQL Database backups.
438-
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
438+
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in descending order, though this can be modified via the order_by field.
439439
:param database_id: Filter by the UUID of the Serverless SQL Database.
440440
:param region: Region to target. If none is passed will use default region from the config.
441441
:param organization_id: Filter by the UUID of the Scaleway organization.
@@ -487,7 +487,7 @@ def list_database_backups_all(
487487
) -> List[DatabaseBackup]:
488488
"""
489489
List your Serverless SQL Database backups.
490-
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
490+
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in descending order, though this can be modified via the order_by field.
491491
:param database_id: Filter by the UUID of the Serverless SQL Database.
492492
:param region: Region to target. If none is passed will use default region from the config.
493493
:param organization_id: Filter by the UUID of the Scaleway organization.

scaleway/scaleway/serverless_sqldb/v1alpha1/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def __str__(self) -> str:
3939

4040

4141
class ListDatabaseBackupsRequestOrderBy(str, Enum, metaclass=StrEnumMeta):
42-
CREATED_AT_ASC = "created_at_asc"
4342
CREATED_AT_DESC = "created_at_desc"
43+
CREATED_AT_ASC = "created_at_asc"
4444

4545
def __str__(self) -> str:
4646
return str(self.value)

0 commit comments

Comments
 (0)