Skip to content

Commit

Permalink
feat(serverless_sqldb): swap values of OrderBy of message ListDatabas…
Browse files Browse the repository at this point in the history
…eBackupsRequest
  • Loading branch information
Codelax committed Apr 16, 2024
1 parent bd18640 commit 51b0278
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
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.

USAGE:
scw sdb-sql backup list [arg=value ...]

ARGS:
[project-id] Filter by the UUID of the Scaleway project.
database-id Filter by the UUID of the Serverless SQL Database.
[order-by] Sorting criteria. One of `created_at_asc`, `created_at_desc`. (created_at_asc | created_at_desc)
[order-by] Sorting criteria. One of `created_at_asc`, `created_at_desc`. (created_at_desc | created_at_asc)
[organization-id] Filter by the UUID of the Scaleway organization.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)

Expand Down
4 changes: 2 additions & 2 deletions docs/commands/sdb-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ scw sdb-sql backup get <backup-id ...> [arg=value ...]

### 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.

**Usage:**

Expand All @@ -77,7 +77,7 @@ scw sdb-sql backup list [arg=value ...]
|------|---|-------------|
| project-id | | Filter by the UUID of the Scaleway project. |
| database-id | Required | Filter by the UUID of the Serverless SQL Database. |
| order-by | One of: `created_at_asc`, `created_at_desc` | Sorting criteria. One of `created_at_asc`, `created_at_desc`. |
| order-by | One of: `created_at_desc`, `created_at_asc` | Sorting criteria. One of `created_at_asc`, `created_at_desc`. |
| organization-id | | Filter by the UUID of the Scaleway organization. |
| region | Default: `fr-par`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func sdbSQLBackupGet() *core.Command {
func sdbSQLBackupList() *core.Command {
return &core.Command{
Short: `List your Serverless SQL Database backups`,
Long: `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.`,
Long: `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.`,
Namespace: "sdb-sql",
Resource: "backup",
Verb: "list",
Expand All @@ -367,7 +367,7 @@ func sdbSQLBackupList() *core.Command {
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"created_at_asc", "created_at_desc"},
EnumValues: []string{"created_at_desc", "created_at_asc"},
},
{
Name: "organization-id",
Expand Down

0 comments on commit 51b0278

Please sign in to comment.