Skip to content

Commit 8ec934a

Browse files
committed
feat: update generated APIs
1 parent 4a4dfe2 commit 8ec934a

File tree

9 files changed

+22
-7
lines changed

9 files changed

+22
-7
lines changed

cmd/scw/testdata/test-all-usage-container-container-update-usage.golden

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
33
Update the container associated with the specified ID.
44

5+
When updating a container, the container is automatically redeployed to apply the changes.
6+
This behavior can be changed by setting the `redeploy` field to `false` in the request.
7+
58
USAGE:
69
scw container container update <container-id ...> [arg=value ...]
710

cmd/scw/testdata/test-all-usage-function-function-update-usage.golden

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
33
Update the function associated with the specified ID.
44

5+
When updating a function, the function is automatically redeployed to apply the changes.
6+
This behavior can be changed by setting the `redeploy` field to `false` in the request.
7+
58
USAGE:
69
scw function function update <function-id ...> [arg=value ...]
710

cmd/scw/testdata/test-all-usage-keymanager-key-encrypt-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Encrypt a payload using an existing key, specified by the `key_id` parameter. Only keys with a usage set to `symmetric_encryption` are supported by this method. The maximum payload size that can be encrypted is 64 KB of plaintext.
3+
Encrypt a payload using an existing key, specified by the `key_id` parameter. The maximum payload size that can be encrypted is 64 KB of plaintext.
44

55
USAGE:
66
scw keymanager key encrypt <key-id ...> [arg=value ...]

docs/commands/container.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ scw container container list [arg=value ...]
182182

183183
Update the container associated with the specified ID.
184184

185+
When updating a container, the container is automatically redeployed to apply the changes.
186+
This behavior can be changed by setting the `redeploy` field to `false` in the request.
187+
185188
**Usage:**
186189

187190
```

docs/commands/function.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ scw function function list [arg=value ...]
439439

440440
Update the function associated with the specified ID.
441441

442+
When updating a function, the function is automatically redeployed to apply the changes.
443+
This behavior can be changed by setting the `redeploy` field to `false` in the request.
444+
442445
**Usage:**
443446

444447
```

docs/commands/keymanager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ scw keymanager key enable <key-id ...> [arg=value ...]
159159

160160
### Encrypt a payload
161161

162-
Encrypt a payload using an existing key, specified by the `key_id` parameter. Only keys with a usage set to `symmetric_encryption` are supported by this method. The maximum payload size that can be encrypted is 64 KB of plaintext.
162+
Encrypt a payload using an existing key, specified by the `key_id` parameter. The maximum payload size that can be encrypted is 64 KB of plaintext.
163163

164164
**Usage:**
165165

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.13.2
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250902145303-766cbc06071c
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250904135859-8624843a6792
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.9

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
466466
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
468468
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250902145303-766cbc06071c h1:T7TWIHnkURe9gUO349+1e3+D+eGC4U28MJD1Jlzbm4w=
470-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250902145303-766cbc06071c/go.mod h1:2Cfo14o/ZO3hZg9GjbyD/BHKbyri3K5BiEHq4fBcUHY=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250904135859-8624843a6792 h1:WPquMrzwOgY3RFN8m3NGVdUK+R92Fva9DMq+okbBxuY=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250904135859-8624843a6792/go.mod h1:2Cfo14o/ZO3hZg9GjbyD/BHKbyri3K5BiEHq4fBcUHY=
471471
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
472472
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
473473
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/container/v1beta1/container_cli.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,11 @@ func containerContainerCreate() *core.Command {
762762

763763
func containerContainerUpdate() *core.Command {
764764
return &core.Command{
765-
Short: `Update an existing container`,
766-
Long: `Update the container associated with the specified ID.`,
765+
Short: `Update an existing container`,
766+
Long: `Update the container associated with the specified ID.
767+
768+
When updating a container, the container is automatically redeployed to apply the changes.
769+
This behavior can be changed by setting the ` + "`" + `redeploy` + "`" + ` field to ` + "`" + `false` + "`" + ` in the request.`,
767770
Namespace: "container",
768771
Resource: "container",
769772
Verb: "update",

0 commit comments

Comments
 (0)