Skip to content

Commit 7d0c2cc

Browse files
committed
feat: update generated APIs
1 parent 4bfc00a commit 7d0c2cc

File tree

8 files changed

+38
-9
lines changed

8 files changed

+38
-9
lines changed

cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ USAGE:
66
scw iam user update-password <user-id ...> [arg=value ...]
77

88
ARGS:
9-
user-id ID of the user to update
10-
password The new password
11-
[send-email] Whether or not to send an email alerting the user their password has changed
9+
user-id ID of the user to update
10+
password The new password
1211

1312
FLAGS:
1413
-h, --help help for update-password
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Acl Rules.
4+
5+
USAGE:
6+
scw vpc rule
7+
8+
FLAGS:
9+
-h, --help help for rule
10+
11+
GLOBAL FLAGS:
12+
-c, --config string The path to the config file
13+
-D, --debug Enable debug mode
14+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
15+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-vpc-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ USAGE:
88
AVAILABLE COMMANDS:
99
private-network Private network management command
1010
route Route management command
11+
rule Rule management command
1112
subnet Subnet management command
1213
vpc VPC management command
1314

docs/commands/iam.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,6 @@ scw iam user update-password <user-id ...> [arg=value ...]
11681168
|------|---|-------------|
11691169
| user-id | Required | ID of the user to update |
11701170
| password | Required | The new password |
1171-
| send-email | | Whether or not to send an email alerting the user their password has changed |
11721171

11731172

11741173

docs/commands/vpc.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This API allows you to manage your Virtual Private Clouds (VPCs) and Private Net
1717
- [Get a Route](#get-a-route)
1818
- [Return routes with associated next hop data](#return-routes-with-associated-next-hop-data)
1919
- [Update Route](#update-route)
20+
- [Rule management command](#rule-management-command)
2021
- [Subnet management command](#subnet-management-command)
2122
- [VPC management command](#vpc-management-command)
2223
- [Create a VPC](#create-a-vpc)
@@ -331,6 +332,20 @@ scw vpc route update <route-id ...> [arg=value ...]
331332

332333

333334

335+
## Rule management command
336+
337+
Acl Rules.
338+
339+
Acl Rules.
340+
341+
**Usage:**
342+
343+
```
344+
scw vpc rule
345+
```
346+
347+
348+
334349
## Subnet management command
335350

336351
CIDR Subnet.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ require (
2626
github.com/mattn/go-isatty v0.0.20
2727
github.com/moby/buildkit v0.13.2
2828
github.com/opencontainers/go-digest v1.0.0
29-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250113175114-44bd5547ea5b
29+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250115142435-07825390847c
3030
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3131
github.com/spf13/cobra v1.8.1
3232
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
463463
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
465465
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250113175114-44bd5547ea5b h1:x15N6mLN/5Yp/MACKBocLUKRPDnM8ZtMOUpVIXKt3lg=
467-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250113175114-44bd5547ea5b/go.mod h1:kzh+BSAvpoyHHdHBCDhmSWtBc1NbLMZ2lWHqnBoxFks=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250115142435-07825390847c h1:zn2PUSZUy/YS1oVV03pAGH6IB+gjxHxCyc/+KoRehUI=
467+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250115142435-07825390847c/go.mod h1:kzh+BSAvpoyHHdHBCDhmSWtBc1NbLMZ2lWHqnBoxFks=
468468
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
469469
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
470470
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/rdb/v1/testdata/test-list-backup-simple.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
33
ID Name Database Name Size Status Instance ID URL Expired Is Exported Expires At Created At Updated At Region Same Region
4-
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
4+
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
55
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
66
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
77
[
@@ -17,7 +17,7 @@ a929798a-28be-4717-b8a7-0c02c088160e will_not_be_exported rdb 2.1 k
1717
"updated_at": "1970-01-01T00:00:00.0Z",
1818
"instance_name": "cli-test",
1919
"is_exported": true,
20-
"url_expired": false,
20+
"url_expired": true,
2121
"region": "fr-par",
2222
"same_region": false
2323
},

0 commit comments

Comments
 (0)