Skip to content

Commit 531f31b

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

16 files changed

+23
-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.20250502134911-8e9702aa2a77
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.20250502134911-8e9702aa2a77 h1:PrRutFdLjGTw4ULbymArBYDEuxk/n2BWy0mGKwCe4Fk=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250502134911-8e9702aa2a77/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/testdata/test-create-simple.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ Region fr-par
4949
"created_at": null,
5050
"updated_at": null,
5151
"ready_at": null,
52-
"region": "fr-par"
52+
"region": "fr-par",
53+
"tags": null
5354
}

internal/namespaces/function/v1beta1/testdata/test-deploy-simple.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ Sandbox unknown_sandbox
4444
"sandbox": "unknown_sandbox",
4545
"created_at": null,
4646
"updated_at": null,
47-
"ready_at": null
47+
"ready_at": null,
48+
"tags": null
4849
}

internal/namespaces/k8s/v1/testdata/test-get-cluster-simple.golden

-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ UpdatedAt few seconds ago
1717
UpgradeAvailable true
1818
PrivateNetworkID 42299907-e54a-4454-9afd-7146b9ab28d2
1919
CommitmentEndsAt few seconds ago
20-
SbsCsiEnabled true
2120
IamNodesGroupID -
2221

2322
Autoscaler configuration:
@@ -98,7 +97,6 @@ ID NAME STATUS VERSION NODE TYPE MIN
9897
"apiserver_cert_sans": [],
9998
"private_network_id": "42299907-e54a-4454-9afd-7146b9ab28d2",
10099
"commitment_ends_at": "1970-01-01T00:00:00.0Z",
101-
"sbs_csi_enabled": true,
102100
"iam_nodes_group_id": "",
103101
"pools": [
104102
{

internal/namespaces/k8s/v1/testdata/test-wait-cluster-wait-for-pools.golden

-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ UpdatedAt few seconds ago
1717
UpgradeAvailable true
1818
PrivateNetworkID 99b960e4-e830-4979-baab-40184b9b8209
1919
CommitmentEndsAt few seconds ago
20-
SbsCsiEnabled true
2120
IamNodesGroupID -
2221

2322
Autoscaler configuration:
@@ -94,6 +93,5 @@ GroupsPrefix -
9493
"apiserver_cert_sans": [],
9594
"private_network_id": "99b960e4-e830-4979-baab-40184b9b8209",
9695
"commitment_ends_at": "1970-01-01T00:00:00.0Z",
97-
"sbs_csi_enabled": true,
9896
"iam_nodes_group_id": ""
9997
}

0 commit comments

Comments
 (0)