Skip to content

Commit b101de7

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

9 files changed

+38
-11
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:

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

docs/commands/function.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ scw function function create [arg=value ...]
305305
| http-option | Default: `enabled`<br />One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
306306
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the function |
307307
| tags.{index} | | Tags of the Serverless Function |
308+
| private-network-id | | ID of the Private Network the function is connected to. |
308309
| 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 |
309310

310311

@@ -465,6 +466,7 @@ scw function function update <function-id ...> [arg=value ...]
465466
| http-option | One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
466467
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the function |
467468
| tags.{index} | | Tags of the Serverless Function |
469+
| private-network-id | | ID of the Private Network the function is connected to. |
468470
| 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 |
469471

470472

@@ -496,6 +498,7 @@ scw function namespace create [arg=value ...]
496498
| secret-environment-variables.{index}.key | | |
497499
| secret-environment-variables.{index}.value | | |
498500
| tags.{index} | | Tags of the Serverless Function Namespace |
501+
| activate-vpc-integration | | Activate VPC integration for the namespace. |
499502
| 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 |
500503

501504

internal/namespaces/function/v1beta1/function_cli.go

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99

1010
"github.com/scaleway/scaleway-cli/v2/core"
11-
function "github.com/scaleway/scaleway-sdk-go/api/function/v1beta1"
11+
"github.com/scaleway/scaleway-sdk-go/api/function/v1beta1"
1212
"github.com/scaleway/scaleway-sdk-go/scw"
1313
)
1414

@@ -324,6 +324,13 @@ func functionNamespaceCreate() *core.Command {
324324
Deprecated: false,
325325
Positional: false,
326326
},
327+
{
328+
Name: "activate-vpc-integration",
329+
Short: `Activate VPC integration for the namespace.`,
330+
Required: false,
331+
Deprecated: false,
332+
Positional: false,
333+
},
327334
core.RegionArgSpec(
328335
scw.RegionFrPar,
329336
scw.RegionNlAms,
@@ -728,6 +735,13 @@ func functionFunctionCreate() *core.Command {
728735
Deprecated: false,
729736
Positional: false,
730737
},
738+
{
739+
Name: "private-network-id",
740+
Short: `ID of the Private Network the function is connected to.`,
741+
Required: false,
742+
Deprecated: false,
743+
Positional: false,
744+
},
731745
core.RegionArgSpec(
732746
scw.RegionFrPar,
733747
scw.RegionNlAms,
@@ -917,6 +931,13 @@ func functionFunctionUpdate() *core.Command {
917931
Deprecated: false,
918932
Positional: false,
919933
},
934+
{
935+
Name: "private-network-id",
936+
Short: `ID of the Private Network the function is connected to.`,
937+
Required: false,
938+
Deprecated: false,
939+
Positional: false,
940+
},
920941
core.RegionArgSpec(
921942
scw.RegionFrPar,
922943
scw.RegionNlAms,

0 commit comments

Comments
 (0)