Skip to content

Commit

Permalink
docs(sdb): backups are showing up in descending order (scaleway#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Apr 11, 2024
1 parent ced132b commit 4b80993
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ async def list_database_backups(
) -> ListDatabaseBackupsResponse:
"""
List your Serverless SQL Database backups.
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.
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.
:param database_id: Filter by the UUID of the Serverless SQL Database.
:param region: Region to target. If none is passed will use default region from the config.
:param organization_id: Filter by the UUID of the Scaleway organization.
Expand Down Expand Up @@ -489,7 +489,7 @@ async def list_database_backups_all(
) -> List[DatabaseBackup]:
"""
List your Serverless SQL Database backups.
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.
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.
:param database_id: Filter by the UUID of the Serverless SQL Database.
:param region: Region to target. If none is passed will use default region from the config.
:param organization_id: Filter by the UUID of the Scaleway organization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def __str__(self) -> str:


class ListDatabaseBackupsRequestOrderBy(str, Enum, metaclass=StrEnumMeta):
CREATED_AT_ASC = "created_at_asc"
CREATED_AT_DESC = "created_at_desc"
CREATED_AT_ASC = "created_at_asc"

def __str__(self) -> str:
return str(self.value)
Expand Down
4 changes: 2 additions & 2 deletions scaleway/scaleway/serverless_sqldb/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def list_database_backups(
) -> ListDatabaseBackupsResponse:
"""
List your Serverless SQL Database backups.
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.
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.
:param database_id: Filter by the UUID of the Serverless SQL Database.
:param region: Region to target. If none is passed will use default region from the config.
:param organization_id: Filter by the UUID of the Scaleway organization.
Expand Down Expand Up @@ -487,7 +487,7 @@ def list_database_backups_all(
) -> List[DatabaseBackup]:
"""
List your Serverless SQL Database backups.
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.
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.
:param database_id: Filter by the UUID of the Serverless SQL Database.
:param region: Region to target. If none is passed will use default region from the config.
:param organization_id: Filter by the UUID of the Scaleway organization.
Expand Down
2 changes: 1 addition & 1 deletion scaleway/scaleway/serverless_sqldb/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def __str__(self) -> str:


class ListDatabaseBackupsRequestOrderBy(str, Enum, metaclass=StrEnumMeta):
CREATED_AT_ASC = "created_at_asc"
CREATED_AT_DESC = "created_at_desc"
CREATED_AT_ASC = "created_at_asc"

def __str__(self) -> str:
return str(self.value)
Expand Down

0 comments on commit 4b80993

Please sign in to comment.