diff --git a/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden b/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden index d5d087a14..4e300e887 100644 --- a/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden +++ b/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden @@ -6,9 +6,8 @@ USAGE: scw iam user update-password [arg=value ...] ARGS: - user-id ID of the user to update - password The new password - [send-email] Whether or not to send an email alerting the user their password has changed + user-id ID of the user to update + password The new password FLAGS: -h, --help help for update-password diff --git a/cmd/scw/testdata/test-all-usage-jobs-run-list-usage.golden b/cmd/scw/testdata/test-all-usage-jobs-run-list-usage.golden index 08c0c7f43..1db2f96d7 100644 --- a/cmd/scw/testdata/test-all-usage-jobs-run-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-jobs-run-list-usage.golden @@ -9,6 +9,7 @@ ARGS: [order-by] (created_at_asc | created_at_desc) [job-definition-id] [project-id] + [state] (unknown_state | queued | scheduled | running | succeeded | failed | canceled | internal_error) [organization-id] [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all) diff --git a/cmd/scw/testdata/test-all-usage-vpc-rule-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-rule-usage.golden new file mode 100644 index 000000000..ef84df511 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-vpc-rule-usage.golden @@ -0,0 +1,15 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Acl Rules. + +USAGE: + scw vpc rule + +FLAGS: + -h, --help help for rule + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-vpc-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-usage.golden index c0a973118..29fb597a9 100644 --- a/cmd/scw/testdata/test-all-usage-vpc-usage.golden +++ b/cmd/scw/testdata/test-all-usage-vpc-usage.golden @@ -8,6 +8,7 @@ USAGE: AVAILABLE COMMANDS: private-network Private network management command route Route management command + rule Rule management command subnet Subnet management command vpc VPC management command diff --git a/docs/commands/iam.md b/docs/commands/iam.md index 6a5ad4885..fc3a219e0 100644 --- a/docs/commands/iam.md +++ b/docs/commands/iam.md @@ -1168,7 +1168,6 @@ scw iam user update-password [arg=value ...] |------|---|-------------| | user-id | Required | ID of the user to update | | password | Required | The new password | -| send-email | | Whether or not to send an email alerting the user their password has changed | diff --git a/docs/commands/jobs.md b/docs/commands/jobs.md index 77185571c..c50066c95 100644 --- a/docs/commands/jobs.md +++ b/docs/commands/jobs.md @@ -217,6 +217,7 @@ scw jobs run list [arg=value ...] | order-by | One of: `created_at_asc`, `created_at_desc` | | | job-definition-id | | | | project-id | | | +| state | One of: `unknown_state`, `queued`, `scheduled`, `running`, `succeeded`, `failed`, `canceled`, `internal_error` | | | organization-id | | | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config | diff --git a/docs/commands/vpc.md b/docs/commands/vpc.md index 5141adc9f..f369e9812 100644 --- a/docs/commands/vpc.md +++ b/docs/commands/vpc.md @@ -17,6 +17,7 @@ This API allows you to manage your Virtual Private Clouds (VPCs) and Private Net - [Get a Route](#get-a-route) - [Return routes with associated next hop data](#return-routes-with-associated-next-hop-data) - [Update Route](#update-route) +- [Rule management command](#rule-management-command) - [Subnet management command](#subnet-management-command) - [VPC management command](#vpc-management-command) - [Create a VPC](#create-a-vpc) @@ -331,6 +332,20 @@ scw vpc route update [arg=value ...] +## Rule management command + +Acl Rules. + +Acl Rules. + +**Usage:** + +``` +scw vpc rule +``` + + + ## Subnet management command CIDR Subnet. diff --git a/go.mod b/go.mod index 3f916847f..a25f4337d 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,7 @@ require ( github.com/mattn/go-isatty v0.0.20 github.com/moby/buildkit v0.13.2 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250113175114-44bd5547ea5b + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250115142435-07825390847c github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index b347e8033..36ac64588 100644 --- a/go.sum +++ b/go.sum @@ -463,8 +463,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250113175114-44bd5547ea5b h1:x15N6mLN/5Yp/MACKBocLUKRPDnM8ZtMOUpVIXKt3lg= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250113175114-44bd5547ea5b/go.mod h1:kzh+BSAvpoyHHdHBCDhmSWtBc1NbLMZ2lWHqnBoxFks= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250115142435-07825390847c h1:zn2PUSZUy/YS1oVV03pAGH6IB+gjxHxCyc/+KoRehUI= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250115142435-07825390847c/go.mod h1:kzh+BSAvpoyHHdHBCDhmSWtBc1NbLMZ2lWHqnBoxFks= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA= diff --git a/internal/namespaces/rdb/v1/testdata/test-list-backup-simple.golden b/internal/namespaces/rdb/v1/testdata/test-list-backup-simple.golden index 09a53fbb8..c4e2b0d08 100644 --- a/internal/namespaces/rdb/v1/testdata/test-list-backup-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-list-backup-simple.golden @@ -1,7 +1,7 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ ID Name Database Name Size Status Instance ID URL Expired Is Exported Expires At Created At Updated At Region Same Region -4a7d57b2-f92b-4b13-86de-b56e47cad9f5 will_be_exported rdb 2.1 kB ready 8a25dbba-dac7-49bf-854c-5f1da6a545bc false true few seconds ago few seconds ago few seconds ago fr-par false +4a7d57b2-f92b-4b13-86de-b56e47cad9f5 will_be_exported rdb 2.1 kB ready 8a25dbba-dac7-49bf-854c-5f1da6a545bc true true few seconds ago few seconds ago few seconds ago fr-par false a929798a-28be-4717-b8a7-0c02c088160e will_not_be_exported rdb 2.1 kB ready 8a25dbba-dac7-49bf-854c-5f1da6a545bc true false few seconds ago few seconds ago few seconds ago fr-par false 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 [ @@ -17,7 +17,7 @@ a929798a-28be-4717-b8a7-0c02c088160e will_not_be_exported rdb 2.1 k "updated_at": "1970-01-01T00:00:00.0Z", "instance_name": "cli-test", "is_exported": true, - "url_expired": false, + "url_expired": true, "region": "fr-par", "same_region": false },