From 64a383355713acf68c7bad0788134a882246475a Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 9 Sep 2026 08:14:36 +0000 Subject: [PATCH] feat: update generated APIs --- ...e-apple-silicon-server-create-usage.golden | 4 +++ docs/commands/apple-silicon.md | 36 ++++++++++--------- .../applesilicon/v1alpha1/applesilicon_cli.go | 30 ++++++++++++++++ 3 files changed, 54 insertions(+), 16 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden b/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden index 2536db9a40..ce09012cf5 100644 --- a/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden @@ -17,6 +17,10 @@ ARGS: [runner-configuration.url] [runner-configuration.token] [runner-configuration.provider] (unknown_provider | github | gitlab) + [runner-configuration.download-runner] + [runner-configuration.action] (unknown_action | remove | update | add) + [runner-configuration.id] + [runner-configuration.labels.{index}] [applied-runner-configurations.runner-configuration-ids.{index}] [enable-kext] Enable kernel extensions [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3) diff --git a/docs/commands/apple-silicon.md b/docs/commands/apple-silicon.md index c748ddd9c1..4a322f4cec 100644 --- a/docs/commands/apple-silicon.md +++ b/docs/commands/apple-silicon.md @@ -286,22 +286,26 @@ scw apple-silicon server create [arg=value ...] **Arguments:** -| Name | Description | Argument Specifications | -|----------------------------------------------------------------|------------------------------------------------------------------------------|---------------------------------------------------| -| name | Create a server with this given name | Default: `` | -| project-id | Project ID to use. If none is passed the default project ID will be used | | -| type | Create a server of the given type | | -| os-id | Create a server with the given os_id | | -| enable-vpc | Activate the Private Network feature for this server | | -| commitment-type | Activate commitment for this server | One of: `duration_24h`, `renewed_monthly`, `none` | -| public-bandwidth-bps | Public bandwidth to configure for this server. Expressed in bits per second. | | -| runner-configuration.name | | | -| runner-configuration.url | | | -| runner-configuration.token | | | -| runner-configuration.provider | | One of: `unknown_provider`, `github`, `gitlab` | -| applied-runner-configurations.runner-configuration-ids.{index} | | | -| enable-kext | Enable kernel extensions | | -| zone | Zone to target. If none is passed will use default zone from the config | Default: `fr-par-1`
One of: `fr-par-3` | +| Name | Description | Argument Specifications | +|----------------------------------------------------------------|------------------------------------------------------------------------------|-----------------------------------------------------| +| name | Create a server with this given name | Default: `` | +| project-id | Project ID to use. If none is passed the default project ID will be used | | +| type | Create a server of the given type | | +| os-id | Create a server with the given os_id | | +| enable-vpc | Activate the Private Network feature for this server | | +| commitment-type | Activate commitment for this server | One of: `duration_24h`, `renewed_monthly`, `none` | +| public-bandwidth-bps | Public bandwidth to configure for this server. Expressed in bits per second. | | +| runner-configuration.name | | | +| runner-configuration.url | | | +| runner-configuration.token | | | +| runner-configuration.provider | | One of: `unknown_provider`, `github`, `gitlab` | +| runner-configuration.download-runner | | | +| runner-configuration.action | | One of: `unknown_action`, `remove`, `update`, `add` | +| runner-configuration.id | | | +| runner-configuration.labels.{index} | | | +| applied-runner-configurations.runner-configuration-ids.{index} | | | +| enable-kext | Enable kernel extensions | | +| zone | Zone to target. If none is passed will use default zone from the config | Default: `fr-par-1`
One of: `fr-par-3` | diff --git a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go index 22e8035026..4c970e6b35 100644 --- a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go +++ b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go @@ -247,6 +247,36 @@ func appleSiliconServerCreate() *core.Command { "gitlab", }, }, + { + Name: "runner-configuration.download-runner", + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "runner-configuration.action", + Required: false, + Deprecated: false, + Positional: false, + EnumValues: []string{ + "unknown_action", + "remove", + "update", + "add", + }, + }, + { + Name: "runner-configuration.id", + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "runner-configuration.labels.{index}", + Required: false, + Deprecated: false, + Positional: false, + }, { Name: "applied-runner-configurations.runner-configuration-ids.{index}", Required: false,