Skip to content

Commit b06984c

Browse files
committed
feat: update generated APIs
1 parent ddc327a commit b06984c

14 files changed

+53
-17
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ARGS:
3030
[health-check.http.path] Path to use for the HTTP health check.
3131
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3232
[health-check.interval] Period between health checks.
33+
[tags.{index}] Tags of the Serverless Container
3334
[deploy=true] Deploy container after creation
3435
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
3536

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

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ARGS:
3030
[health-check.http.path] Path to use for the HTTP health check.
3131
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3232
[health-check.interval] Period between health checks.
33+
[tags.{index}] Tags of the Serverless Container
3334
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
3435

3536
DEPRECATED ARGS:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ARGS:
1212
[description] Description of the namespace to create
1313
[secret-environment-variables.{index}.key]
1414
[secret-environment-variables.{index}.value]
15-
[tags.{index}] [ALPHA] Tags of the Serverless Container Namespace
15+
[tags.{index}] Tags of the Serverless Container Namespace
1616
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1717

1818
FLAGS:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[description] Description of the namespace to update
1212
[secret-environment-variables.{index}.key]
1313
[secret-environment-variables.{index}.value]
14-
[tags.{index}] [ALPHA] Tags of the Serverless Container Namespace
14+
[tags.{index}] Tags of the Serverless Container Namespace
1515
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1616

1717
FLAGS:

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

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARGS:
2121
[secret-environment-variables.{index}.value]
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)
24+
[tags.{index}] Tags of the Serverless Function
2425
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2526

2627
FLAGS:

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

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARGS:
2121
[secret-environment-variables.{index}.value]
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)
24+
[tags.{index}] Tags of the Serverless Function
2425
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2526

2627
FLAGS:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ARGS:
1212
[description] Description of the namespace
1313
[secret-environment-variables.{index}.key]
1414
[secret-environment-variables.{index}.value]
15-
[tags.{index}] [ALPHA] Tags of the Serverless Function Namespace
15+
[tags.{index}] Tags of the Serverless Function Namespace
1616
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1717

1818
FLAGS:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[description] Description of the namespace
1212
[secret-environment-variables.{index}.key]
1313
[secret-environment-variables.{index}.value]
14-
[tags.{index}] [ALPHA] Tags of the Serverless Function Namespace
14+
[tags.{index}] Tags of the Serverless Function Namespace
1515
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1616

1717
FLAGS:

docs/commands/container.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ scw container container create [arg=value ...]
8585
| health-check.http.path | | Path to use for the HTTP health check. |
8686
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
8787
| health-check.interval | | Period between health checks. |
88+
| tags.{index} | | Tags of the Serverless Container |
8889
| deploy | Default: `true` | Deploy container after creation |
8990
| 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 |
9091

@@ -214,6 +215,7 @@ scw container container update <container-id ...> [arg=value ...]
214215
| health-check.http.path | | Path to use for the HTTP health check. |
215216
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
216217
| health-check.interval | | Period between health checks. |
218+
| tags.{index} | | Tags of the Serverless Container |
217219
| 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 |
218220

219221

@@ -474,7 +476,7 @@ scw container namespace create [arg=value ...]
474476
| description | | Description of the namespace to create |
475477
| secret-environment-variables.{index}.key | | |
476478
| secret-environment-variables.{index}.value | | |
477-
| tags.{index} | | [ALPHA] Tags of the Serverless Container Namespace |
479+
| tags.{index} | | Tags of the Serverless Container Namespace |
478480
| 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 |
479481

480482

@@ -562,7 +564,7 @@ scw container namespace update <namespace-id ...> [arg=value ...]
562564
| description | | Description of the namespace to update |
563565
| secret-environment-variables.{index}.key | | |
564566
| secret-environment-variables.{index}.value | | |
565-
| tags.{index} | | [ALPHA] Tags of the Serverless Container Namespace |
567+
| tags.{index} | | Tags of the Serverless Container Namespace |
566568
| 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 |
567569

568570

docs/commands/function.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ scw function function create [arg=value ...]
304304
| secret-environment-variables.{index}.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 |
307+
| tags.{index} | | Tags of the Serverless Function |
307308
| 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 |
308309

309310

@@ -463,6 +464,7 @@ scw function function update <function-id ...> [arg=value ...]
463464
| secret-environment-variables.{index}.value | | |
464465
| http-option | One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
465466
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the function |
467+
| tags.{index} | | Tags of the Serverless Function |
466468
| 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 |
467469

468470

@@ -493,7 +495,7 @@ scw function namespace create [arg=value ...]
493495
| description | | Description of the namespace |
494496
| secret-environment-variables.{index}.key | | |
495497
| secret-environment-variables.{index}.value | | |
496-
| tags.{index} | | [ALPHA] Tags of the Serverless Function Namespace |
498+
| tags.{index} | | Tags of the Serverless Function Namespace |
497499
| 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 |
498500

499501

@@ -581,7 +583,7 @@ scw function namespace update <namespace-id ...> [arg=value ...]
581583
| description | | Description of the namespace |
582584
| secret-environment-variables.{index}.key | | |
583585
| secret-environment-variables.{index}.value | | |
584-
| tags.{index} | | [ALPHA] Tags of the Serverless Function Namespace |
586+
| tags.{index} | | Tags of the Serverless Function Namespace |
585587
| 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 |
586588

587589

go.mod

+1-1
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.33.0.20250422095315-6f998f4655ec
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250425155221-30ae936d86f6
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.9.1
2929
github.com/spf13/pflag v1.0.6

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
466466
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
468468
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250422095315-6f998f4655ec h1:XLNQFZzigDYXgdRHPxuV3w5VnKvnsCVbl8HBpvDYu40=
470-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250422095315-6f998f4655ec/go.mod h1:w4o02EHpO0CBGy2nehzWRaFQKd62G9HIf+Q07PDaUcE=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250425155221-30ae936d86f6 h1:8gDJ72j/by4RH6VDkW9lTPpdve5v7Ou2ypD4ZbGzYvY=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250425155221-30ae936d86f6/go.mod h1:w4o02EHpO0CBGy2nehzWRaFQKd62G9HIf+Q07PDaUcE=
471471
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
472472
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
473473
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/container/v1beta1/container_cli.go

+17-3
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-
container "github.com/scaleway/scaleway-sdk-go/api/container/v1beta1"
11+
"github.com/scaleway/scaleway-sdk-go/api/container/v1beta1"
1212
"github.com/scaleway/scaleway-sdk-go/scw"
1313
)
1414

@@ -272,7 +272,7 @@ func containerNamespaceCreate() *core.Command {
272272
},
273273
{
274274
Name: "tags.{index}",
275-
Short: `[ALPHA] Tags of the Serverless Container Namespace`,
275+
Short: `Tags of the Serverless Container Namespace`,
276276
Required: false,
277277
Deprecated: false,
278278
Positional: false,
@@ -339,7 +339,7 @@ func containerNamespaceUpdate() *core.Command {
339339
},
340340
{
341341
Name: "tags.{index}",
342-
Short: `[ALPHA] Tags of the Serverless Container Namespace`,
342+
Short: `Tags of the Serverless Container Namespace`,
343343
Required: false,
344344
Deprecated: false,
345345
Positional: false,
@@ -708,6 +708,13 @@ func containerContainerCreate() *core.Command {
708708
Deprecated: false,
709709
Positional: false,
710710
},
711+
{
712+
Name: "tags.{index}",
713+
Short: `Tags of the Serverless Container`,
714+
Required: false,
715+
Deprecated: false,
716+
Positional: false,
717+
},
711718
core.RegionArgSpec(
712719
scw.RegionFrPar,
713720
scw.RegionNlAms,
@@ -923,6 +930,13 @@ func containerContainerUpdate() *core.Command {
923930
Deprecated: false,
924931
Positional: false,
925932
},
933+
{
934+
Name: "tags.{index}",
935+
Short: `Tags of the Serverless Container`,
936+
Required: false,
937+
Deprecated: false,
938+
Positional: false,
939+
},
926940
core.RegionArgSpec(
927941
scw.RegionFrPar,
928942
scw.RegionNlAms,

internal/namespaces/function/v1beta1/function_cli.go

+17-3
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

@@ -319,7 +319,7 @@ func functionNamespaceCreate() *core.Command {
319319
},
320320
{
321321
Name: "tags.{index}",
322-
Short: `[ALPHA] Tags of the Serverless Function Namespace`,
322+
Short: `Tags of the Serverless Function Namespace`,
323323
Required: false,
324324
Deprecated: false,
325325
Positional: false,
@@ -386,7 +386,7 @@ func functionNamespaceUpdate() *core.Command {
386386
},
387387
{
388388
Name: "tags.{index}",
389-
Short: `[ALPHA] Tags of the Serverless Function Namespace`,
389+
Short: `Tags of the Serverless Function Namespace`,
390390
Required: false,
391391
Deprecated: false,
392392
Positional: false,
@@ -721,6 +721,13 @@ func functionFunctionCreate() *core.Command {
721721
"v2",
722722
},
723723
},
724+
{
725+
Name: "tags.{index}",
726+
Short: `Tags of the Serverless Function`,
727+
Required: false,
728+
Deprecated: false,
729+
Positional: false,
730+
},
724731
core.RegionArgSpec(
725732
scw.RegionFrPar,
726733
scw.RegionNlAms,
@@ -903,6 +910,13 @@ func functionFunctionUpdate() *core.Command {
903910
"v2",
904911
},
905912
},
913+
{
914+
Name: "tags.{index}",
915+
Short: `Tags of the Serverless Function`,
916+
Required: false,
917+
Deprecated: false,
918+
Positional: false,
919+
},
906920
core.RegionArgSpec(
907921
scw.RegionFrPar,
908922
scw.RegionNlAms,

0 commit comments

Comments
 (0)