Skip to content

Commit

Permalink
feat: update generated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Jan 16, 2025
1 parent 4bfc00a commit 220f01f
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ USAGE:
scw iam user update-password <user-id ...> [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
Expand Down
1 change: 1 addition & 0 deletions cmd/scw/testdata/test-all-usage-jobs-run-list-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
15 changes: 15 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-rule-usage.golden
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions cmd/scw/testdata/test-all-usage-vpc-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion docs/commands/iam.md
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,6 @@ scw iam user update-password <user-id ...> [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 |



Expand Down
1 change: 1 addition & 0 deletions docs/commands/jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |

Expand Down
15 changes: 15 additions & 0 deletions docs/commands/vpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -331,6 +332,20 @@ scw vpc route update <route-id ...> [arg=value ...]



## Rule management command

Acl Rules.

Acl Rules.

**Usage:**

```
scw vpc rule
```



## Subnet management command

CIDR Subnet.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
Original file line number Diff line number Diff line change
@@ -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 🟩🟩🟩
[
Expand All @@ -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
},
Expand Down

0 comments on commit 220f01f

Please sign in to comment.