Skip to content

Commit 4c815ce

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

17 files changed

+134
-13
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

cmd/scw/testdata/test-all-usage-interlink-link-detach-policy-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ USAGE:
66
scw interlink link detach_policy <link-id ...> [arg=value ...]
77

88
ARGS:
9-
link-id ID of the link to detach a routing policy from
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
9+
link-id ID of the link to detach a routing policy from
10+
routing-policy-id ID of the routing policy to be detached
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1112

1213
FLAGS:
1314
-h, --help help for detach_policy

0 commit comments

Comments
 (0)