From 3fc21ec2b7cbf852db4ffbc1cd9f52264a570c5e Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 11 Apr 2024 14:34:35 +0000 Subject: [PATCH] feat: update generated APIs --- ...test-all-usage-instance-security-group-create-usage.golden | 4 ++-- .../testdata/test-all-usage-sdb-sql-backup-list-usage.golden | 4 ++-- docs/commands/instance.md | 4 ++-- docs/commands/sdb-sql.md | 4 ++-- internal/namespaces/instance/v1/instance_cli.go | 2 -- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.golden b/cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.golden index f7e07d0ba5..0edc9965e0 100644 --- a/cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.golden @@ -26,7 +26,7 @@ ARGS: [description] Description of the security group [project-id] Project ID to use. If none is passed the default project ID will be used [tags.{index}] Tags of the security group - [project-default=false] Whether this security group becomes the default security group for new Instances + [project-default] Whether this security group becomes the default security group for new Instances [stateful=true] Whether the security group is stateful or not [inbound-default-policy=accept] Default policy for inbound rules (unknown_policy | accept | drop) [outbound-default-policy=accept] Default policy for outbound rules (unknown_policy | accept | drop) @@ -35,7 +35,7 @@ ARGS: [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3) DEPRECATED ARGS: - [organization-default=false] Defines whether this security group becomes the default security group for new Instances + [organization-default] Defines whether this security group becomes the default security group for new Instances FLAGS: -h, --help help for create diff --git a/cmd/scw/testdata/test-all-usage-sdb-sql-backup-list-usage.golden b/cmd/scw/testdata/test-all-usage-sdb-sql-backup-list-usage.golden index 1e4d40fe31..959a2d3460 100644 --- a/cmd/scw/testdata/test-all-usage-sdb-sql-backup-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-sdb-sql-backup-list-usage.golden @@ -1,6 +1,6 @@ 🎲🎲🎲 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 ...] @@ -8,7 +8,7 @@ USAGE: 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) diff --git a/docs/commands/instance.md b/docs/commands/instance.md index ce2d5ddefd..3fa6436e7a 100644 --- a/docs/commands/instance.md +++ b/docs/commands/instance.md @@ -1121,8 +1121,8 @@ scw instance security-group create [arg=value ...] | description | | Description of the security group | | project-id | | Project ID to use. If none is passed the default project ID will be used | | tags.{index} | | Tags of the security group | -| ~~organization-default~~ | Deprecated
Default: `false` | Defines whether this security group becomes the default security group for new Instances | -| project-default | Default: `false` | Whether this security group becomes the default security group for new Instances | +| ~~organization-default~~ | Deprecated | Defines whether this security group becomes the default security group for new Instances | +| project-default | | Whether this security group becomes the default security group for new Instances | | stateful | Default: `true` | Whether the security group is stateful or not | | inbound-default-policy | Default: `accept`
One of: `unknown_policy`, `accept`, `drop` | Default policy for inbound rules | | outbound-default-policy | Default: `accept`
One of: `unknown_policy`, `accept`, `drop` | Default policy for outbound rules | diff --git a/docs/commands/sdb-sql.md b/docs/commands/sdb-sql.md index bd42e79031..075266380c 100644 --- a/docs/commands/sdb-sql.md +++ b/docs/commands/sdb-sql.md @@ -62,7 +62,7 @@ scw sdb-sql backup get [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:** @@ -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`
One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config | diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index 8ec84ef5f2..157540eda0 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -2108,7 +2108,6 @@ func instanceSecurityGroupCreate() *core.Command { Required: false, Deprecated: true, Positional: false, - Default: core.DefaultValueSetter("false"), }, { Name: "project-default", @@ -2116,7 +2115,6 @@ func instanceSecurityGroupCreate() *core.Command { Required: false, Deprecated: false, Positional: false, - Default: core.DefaultValueSetter("false"), }, { Name: "stateful",