Skip to content

Commit 79ea278

Browse files
committed
feat: update generated APIs
1 parent 44eaa1d commit 79ea278

14 files changed

+268
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ARGS:
2626
[local-storage-limit] Local storage limit of the container (in MB)
2727
[scaling-option.concurrent-requests-threshold]
2828
[scaling-option.cpu-usage-threshold]
29+
[scaling-option.memory-usage-threshold]
2930
[health-check.http.path] Path to use for the HTTP health check.
3031
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3132
[health-check.interval] Period between health checks.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ARGS:
2626
[local-storage-limit] Local storage limit of the container (in MB)
2727
[scaling-option.concurrent-requests-threshold]
2828
[scaling-option.cpu-usage-threshold]
29+
[scaling-option.memory-usage-threshold]
2930
[health-check.http.path] Path to use for the HTTP health check.
3031
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3132
[health-check.interval] Period between health checks.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create a secret reference within a job definition.
4+
5+
USAGE:
6+
scw jobs secret create [arg=value ...]
7+
8+
ARGS:
9+
job-definition-id UUID of the job definition
10+
[secrets.{index}.secret-manager-id]
11+
[secrets.{index}.secret-manager-version]
12+
[secrets.{index}.path]
13+
[secrets.{index}.env-var-name]
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
15+
16+
FLAGS:
17+
-h, --help help for create
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete a secret reference within a job definition.
4+
5+
USAGE:
6+
scw jobs secret delete [arg=value ...]
7+
8+
ARGS:
9+
job-definition-id UUID of the job definition
10+
secret-id UUID of the secret reference within the job
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for delete
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
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get a secret references within a job definition.
4+
5+
USAGE:
6+
scw jobs secret get [arg=value ...]
7+
8+
ARGS:
9+
job-definition-id UUID of the job definition
10+
secret-id UUID of the secret reference within the job
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for get
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
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List secrets references within a job definition.
4+
5+
USAGE:
6+
scw jobs secret list [arg=value ...]
7+
8+
ARGS:
9+
job-definition-id UUID of the job definition
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
11+
12+
FLAGS:
13+
-h, --help help for list
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update a secret reference within a job definition.
4+
5+
USAGE:
6+
scw jobs secret update [arg=value ...]
7+
8+
ARGS:
9+
job-definition-id UUID of the job definition
10+
secret-id UUID of the secret reference within the job
11+
[secret-manager-version] Version of the secret in Secret Manager
12+
[path] Path of the secret to mount inside the job (either `path` or `env_var_name` must be set)
13+
[env-var-name] Environment variable name used to expose the secret inside the job (either `path` or `env_var_name` must be set)
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
15+
16+
FLAGS:
17+
-h, --help help for update
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-p, --profile string The config profile to use
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
USAGE:
4+
scw jobs secret <command>
5+
6+
AVAILABLE COMMANDS:
7+
create Create a secret reference within a job definition
8+
delete Delete a secret reference within a job definition
9+
get Get a secret references within a job definition
10+
list List secrets references within a job definition
11+
update Update a secret reference within a job definition
12+
13+
FLAGS:
14+
-h, --help help for secret
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+
22+
Use "scw jobs secret [command] --help" for more information about a command.

cmd/scw/testdata/test-all-usage-jobs-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ USAGE:
88
AVAILABLE COMMANDS:
99
definition
1010
run
11+
secret
1112

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

docs/commands/container.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ scw container container create [arg=value ...]
8181
| local-storage-limit | | Local storage limit of the container (in MB) |
8282
| scaling-option.concurrent-requests-threshold | | |
8383
| scaling-option.cpu-usage-threshold | | |
84+
| scaling-option.memory-usage-threshold | | |
8485
| health-check.http.path | | Path to use for the HTTP health check. |
8586
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
8687
| health-check.interval | | Period between health checks. |
@@ -209,6 +210,7 @@ scw container container update <container-id ...> [arg=value ...]
209210
| local-storage-limit | | Local storage limit of the container (in MB) |
210211
| scaling-option.concurrent-requests-threshold | | |
211212
| scaling-option.cpu-usage-threshold | | |
213+
| scaling-option.memory-usage-threshold | | |
212214
| health-check.http.path | | Path to use for the HTTP health check. |
213215
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
214216
| health-check.interval | | Period between health checks. |

0 commit comments

Comments
 (0)