Skip to content

Commit 170db57

Browse files
committed
feat: update generated APIs
1 parent 1d39c40 commit 170db57

File tree

9 files changed

+21
-6
lines changed

9 files changed

+21
-6
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

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/mattn/go-isatty v0.0.20
2424
github.com/moby/buildkit v0.25.1
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251022133213-7b6348727d6e
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251024091811-f46054a61f65
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.10.1
2929
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
462462
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
463463
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
465-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251022133213-7b6348727d6e h1:g0hKUapP1X/99att+W0WS+iF/VJxhzw1kLa9fpnhEjg=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251022133213-7b6348727d6e/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA=
465+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251024091811-f46054a61f65 h1:PFmz82c+uiCm7BY5JQGwR8R15LSqbitZAbEdd9SsFFY=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251024091811-f46054a61f65/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA=
467467
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
468468
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
469469
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/baremetal/v1/testdata/test-create-server-simple-default.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ ID NAME STATUS MANAGEABLE EXPIRES AT
6161
"ping_status": "ping_status_unknown",
6262
"options": [],
6363
"rescue_server": null,
64-
"protected": false
64+
"protected": false,
65+
"user_data": null
6566
}

internal/namespaces/baremetal/v1/testdata/test-install-server-simple-all-ssh-keys.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,6 @@ PartitioningSchema.Filesystems.2.Mountpoint /
251251
"ping_status": "ping_status_unknown",
252252
"options": [],
253253
"rescue_server": null,
254-
"protected": false
254+
"protected": false,
255+
"user_data": null
255256
}

internal/namespaces/baremetal/v1/testdata/test-install-server-simple-with-id.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,6 @@ PartitioningSchema.Filesystems.2.Mountpoint /
221221
"ping_status": "ping_status_unknown",
222222
"options": [],
223223
"rescue_server": null,
224-
"protected": false
224+
"protected": false,
225+
"user_data": null
225226
}

internal/namespaces/baremetal/v1/testdata/test-list-server-simple.golden

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ e54658ca-e08d-473a-aad1-d3f31a8a5551 cli-bm-friendly-brahmagupta EM-I215E-NVME
4343
"options": [],
4444
"rescue_server": null,
4545
"protected": false,
46+
"user_data": null,
4647
"offer_name": "EM-I215E-NVME"
4748
},
4849
{
@@ -195,6 +196,7 @@ e54658ca-e08d-473a-aad1-d3f31a8a5551 cli-bm-friendly-brahmagupta EM-I215E-NVME
195196
"options": [],
196197
"rescue_server": null,
197198
"protected": false,
199+
"user_data": null,
198200
"offer_name": "EM-I215E-NVME"
199201
},
200202
{
@@ -338,6 +340,7 @@ e54658ca-e08d-473a-aad1-d3f31a8a5551 cli-bm-friendly-brahmagupta EM-I215E-NVME
338340
"options": [],
339341
"rescue_server": null,
340342
"protected": false,
343+
"user_data": null,
341344
"offer_name": "EM-I215E-NVME"
342345
}
343346
]

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)