Skip to content

Commit ed305ea

Browse files
committed
feat: update generated APIs
1 parent b846a62 commit ed305ea

13 files changed

+196
-10
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ARGS:
3131
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3232
[health-check.interval] Period between health checks.
3333
[tags.{index}] Tags of the Serverless Container
34-
[private-network-id]
34+
[private-network-id] ID of the Private Network the container is connected to.
3535
[command.{index}] Container command
3636
[args.{index}] Container arguments
3737
[deploy=true] Deploy container after creation

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ ARGS:
1717
[privacy] Privacy settings of the container (unknown_privacy | public | private)
1818
[description] Description of the container
1919
[registry-image] Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
20-
[protocol] (unknown_protocol | http1 | h2c)
21-
[port]
20+
[protocol] Protocol the container uses (unknown_protocol | http1 | h2c)
21+
[port] Port the container listens on
2222
[secret-environment-variables.{index}.key]
2323
[secret-environment-variables.{index}.value]
2424
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
@@ -31,7 +31,7 @@ ARGS:
3131
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3232
[health-check.interval] Period between health checks.
3333
[tags.{index}] Tags of the Serverless Container
34-
[private-network-id]
34+
[private-network-id] ID of the Private Network the container is connected to.
3535
[command.{index}] Container command
3636
[args.{index}] Container arguments
3737
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

cmd/scw/testdata/test-all-usage-container-namespace-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ARGS:
1313
[secret-environment-variables.{index}.key]
1414
[secret-environment-variables.{index}.value]
1515
[tags.{index}] Tags of the Serverless Container Namespace
16-
[activate-vpc-integration]
16+
[activate-vpc-integration] Activate VPC integration for the namespace.
1717
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1818

1919
FLAGS:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ARGS:
2222
[http-option=enabled] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
2323
[sandbox] Execution environment of the function (unknown_sandbox | v1 | v2)
2424
[tags.{index}] Tags of the Serverless Function
25+
[private-network-id] ID of the Private Network the function is connected to.
2526
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2627

2728
FLAGS:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ARGS:
2222
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
2323
[sandbox] Execution environment of the function (unknown_sandbox | v1 | v2)
2424
[tags.{index}] Tags of the Serverless Function
25+
[private-network-id] ID of the Private Network the function is connected to.
2526
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2627

2728
FLAGS:

cmd/scw/testdata/test-all-usage-function-namespace-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARGS:
1313
[secret-environment-variables.{index}.key]
1414
[secret-environment-variables.{index}.value]
1515
[tags.{index}] Tags of the Serverless Function Namespace
16+
[activate-vpc-integration] Activate VPC integration for the namespace.
1617
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1718

1819
FLAGS:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Attach a filesystem volume to an Instance.
4+
5+
USAGE:
6+
scw instance server attach-filesystem [arg=value ...]
7+
8+
ARGS:
9+
server-id
10+
[filesystem-id]
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
12+
13+
FLAGS:
14+
-h, --help help for attach-filesystem
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
21+
--web open console page for the current ressource
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Detach a filesystem volume to an Instance.
4+
5+
USAGE:
6+
scw instance server detach-filesystem [arg=value ...]
7+
8+
ARGS:
9+
server-id
10+
[filesystem-id]
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
12+
13+
FLAGS:
14+
-h, --help help for detach-filesystem
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
21+
--web open console page for the current ressource

cmd/scw/testdata/test-all-usage-instance-server-usage.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ USAGE:
99

1010
AVAILABLE COMMANDS:
1111
action Perform a raw API action on a server
12+
attach-filesystem Attach a filesystem volume to an Instance
1213
attach-ip Attach an IP to a server
1314
attach-volume Attach a volume to a server
1415
backup Backup server
1516
console Connect to the serial console of an instance
1617
create Create server
1718
delete Delete server
19+
detach-filesystem Detach a filesystem volume to an Instance
1820
detach-ip Detach an IP from a server
1921
detach-volume Detach a volume from its server
2022
enable-routed-ip Migrate server to IP mobility

docs/commands/container.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ scw container container create [arg=value ...]
8686
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
8787
| health-check.interval | | Period between health checks. |
8888
| tags.{index} | | Tags of the Serverless Container |
89-
| private-network-id | | |
89+
| private-network-id | | ID of the Private Network the container is connected to. |
9090
| command.{index} | | Container command |
9191
| args.{index} | | Container arguments |
9292
| deploy | Default: `true` | Deploy container after creation |
@@ -205,8 +205,8 @@ scw container container update <container-id ...> [arg=value ...]
205205
| description | | Description of the container |
206206
| registry-image | | Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag"). |
207207
| ~~max-concurrency~~ | Deprecated | Number of maximum concurrent executions of the container |
208-
| protocol | One of: `unknown_protocol`, `http1`, `h2c` | |
209-
| port | | |
208+
| protocol | One of: `unknown_protocol`, `http1`, `h2c` | Protocol the container uses |
209+
| port | | Port the container listens on |
210210
| secret-environment-variables.{index}.key | | |
211211
| secret-environment-variables.{index}.value | | |
212212
| http-option | One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
@@ -219,7 +219,7 @@ scw container container update <container-id ...> [arg=value ...]
219219
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
220220
| health-check.interval | | Period between health checks. |
221221
| tags.{index} | | Tags of the Serverless Container |
222-
| private-network-id | | |
222+
| private-network-id | | ID of the Private Network the container is connected to. |
223223
| command.{index} | | Container command |
224224
| args.{index} | | Container arguments |
225225
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
@@ -483,7 +483,7 @@ scw container namespace create [arg=value ...]
483483
| secret-environment-variables.{index}.key | | |
484484
| secret-environment-variables.{index}.value | | |
485485
| tags.{index} | | Tags of the Serverless Container Namespace |
486-
| activate-vpc-integration | | |
486+
| activate-vpc-integration | | Activate VPC integration for the namespace. |
487487
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
488488

489489

0 commit comments

Comments
 (0)