Skip to content

Commit 3ccdd55

Browse files
committed
feat: update generated APIs
1 parent d30cd72 commit 3ccdd55

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-iam-api-key-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
access-key Access key to update
1010
[default-project-id] New default Project ID to set
1111
[description] New description to update
12+
[expires-at] New expiration date of the API key
1213

1314
FLAGS:
1415
-h, --help help for update

docs/commands/iam.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ scw iam api-key update <access-key ...> [arg=value ...]
196196
| access-key | Required | Access key to update |
197197
| default-project-id | | New default Project ID to set |
198198
| description | | New description to update |
199+
| expires-at | | New expiration date of the API key |
199200

200201

201202

internal/namespaces/iam/v1alpha1/iam_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2361,6 +2361,13 @@ func iamAPIKeyUpdate() *core.Command {
23612361
Deprecated: false,
23622362
Positional: false,
23632363
},
2364+
{
2365+
Name: "expires-at",
2366+
Short: `New expiration date of the API key`,
2367+
Required: false,
2368+
Deprecated: false,
2369+
Positional: false,
2370+
},
23642371
},
23652372
Run: func(ctx context.Context, args any) (i any, e error) {
23662373
request := args.(*iam.UpdateAPIKeyRequest)

0 commit comments

Comments
 (0)