Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(serverless_sqldb): swap values of OrderBy of list database #3771

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading