Skip to content

Commit 7f22e78

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

File tree

11 files changed

+47
-9
lines changed

11 files changed

+47
-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

cmd/scw/testdata/test-all-usage-jobs-run-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
[order-by] (created_at_asc | created_at_desc)
1010
[job-definition-id]
1111
[project-id]
12+
[state] (unknown_state | queued | scheduled | running | succeeded | failed | canceled | internal_error)
1213
[organization-id]
1314
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1415

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/jobs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ scw jobs run list [arg=value ...]
217217
| order-by | One of: `created_at_asc`, `created_at_desc` | |
218218
| job-definition-id | | |
219219
| project-id | | |
220+
| state | One of: `unknown_state`, `queued`, `scheduled`, `running`, `succeeded`, `failed`, `canceled`, `internal_error` | |
220221
| organization-id | | |
221222
| 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 |
222223

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/jobs/v1alpha1/jobs_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,13 @@ func jobsRunList() *core.Command {
758758
Deprecated: false,
759759
Positional: false,
760760
},
761+
{
762+
Name: "state",
763+
Required: false,
764+
Deprecated: false,
765+
Positional: false,
766+
EnumValues: []string{"unknown_state", "queued", "scheduled", "running", "succeeded", "failed", "canceled", "internal_error"},
767+
},
761768
{
762769
Name: "organization-id",
763770
Required: false,

0 commit comments

Comments
 (0)