Skip to content

Commit 676c1a9

Browse files
committed
feat: update generated APIs
1 parent 4a4dfe2 commit 676c1a9

12 files changed

+41
-11
lines changed

cmd/scw/testdata/test-all-usage-baremetal-server-reboot-usage.golden

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ EXAMPLES:
1313
scw baremetal server reboot 11111111-1111-1111-1111-111111111111 boot-type=rescue
1414

1515
ARGS:
16-
server-id ID of the server to reboot
17-
[boot-type=normal] The type of boot (unknown_boot_type | normal | rescue)
18-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-2 | pl-waw-3)
16+
server-id ID of the server to reboot
17+
[boot-type=normal] The type of boot (unknown_boot_type | normal | rescue)
18+
[ssh-key-ids.{index}] Additional SSH public key IDs to configure on rescue image
19+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-2 | pl-waw-3)
1920

2021
FLAGS:
2122
-h, --help help for reboot

cmd/scw/testdata/test-all-usage-baremetal-server-start-usage.golden

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ EXAMPLES:
1313
scw baremetal server start 11111111-1111-1111-1111-111111111111 boot-type=rescue
1414

1515
ARGS:
16-
server-id ID of the server to start
17-
[boot-type] The type of boot (unknown_boot_type | normal | rescue)
18-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-2 | pl-waw-3)
16+
server-id ID of the server to start
17+
[boot-type] The type of boot (unknown_boot_type | normal | rescue)
18+
[ssh-key-ids.{index}] Additional SSH public key IDs to configure on rescue image
19+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-2 | pl-waw-3)
1920

2021
FLAGS:
2122
-h, --help help for start

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ scw baremetal server reboot <server-id ...> [arg=value ...]
788788
|------|---|-------------|
789789
| server-id | Required | ID of the server to reboot |
790790
| boot-type | Default: `normal`<br />One of: `unknown_boot_type`, `normal`, `rescue` | The type of boot |
791+
| ssh-key-ids.{index} | | Additional SSH public key IDs to configure on rescue image |
791792
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
792793

793794

@@ -824,6 +825,7 @@ scw baremetal server start <server-id ...> [arg=value ...]
824825
|------|---|-------------|
825826
| server-id | Required | ID of the server to start |
826827
| boot-type | One of: `unknown_boot_type`, `normal`, `rescue` | The type of boot |
828+
| ssh-key-ids.{index} | | Additional SSH public key IDs to configure on rescue image |
827829
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
828830

829831

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

0 commit comments

Comments
 (0)