Skip to content

Commit 192b75c

Browse files
committed
feat: update generated APIs
1 parent b0ef8ef commit 192b75c

11 files changed

+32
-10
lines changed

cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ARGS:
1111
[type] Create a server of the given type
1212
[os-id] Create a server with the given os_id
1313
[enable-vpc] Activate the Private Network feature for this server
14+
[commitment-type] Activate commitment for this server (duration_24h | renewed_monthly | none)
1415
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1516

1617
FLAGS:

cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ USAGE:
66
scw apple-silicon server update <server-id ...> [arg=value ...]
77

88
ARGS:
9-
server-id UUID of the server you want to update
10-
[name] Updated name for your server
11-
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
12-
[enable-vpc] Activate or deactivate Private Network support for this server
13-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
9+
server-id UUID of the server you want to update
10+
[name] Updated name for your server
11+
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
12+
[enable-vpc] Activate or deactivate Private Network support for this server
13+
[commitment-type.commitment-type] (duration_24h | renewed_monthly | none)
14+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1415

1516
FLAGS:
1617
-h, --help help for update

cmd/scw/testdata/test-all-usage-lb-frontend-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARGS:
1313
[timeout-client=5m] Maximum allowed inactivity time on the client side
1414
[certificate-ids.{index}] List of SSL/TLS certificate IDs to bind to the frontend
1515
[enable-http3] Defines whether to enable HTTP/3 protocol on the frontend
16+
[connection-rate-limit] Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
1617
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
1718

1819
DEPRECATED ARGS:

cmd/scw/testdata/test-all-usage-lb-frontend-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARGS:
1313
[timeout-client=5m] Maximum allowed inactivity time on the client side
1414
[certificate-ids.{index}] List of SSL/TLS certificate IDs to bind to the frontend
1515
[enable-http3] Defines whether to enable HTTP/3 protocol on the frontend
16+
[connection-rate-limit] Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
1617
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
1718

1819
DEPRECATED ARGS:

cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
[vpc-id] VPC to filter for. Only routes within this VPC will be returned
1111
[nexthop-resource-id] Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned
1212
[nexthop-private-network-id] Next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned
13-
[nexthop-resource-type] Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned (unknown_type | vpc_gateway_network | instance_private_nic | baremetal_private_nic)
13+
[nexthop-resource-type] Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned (unknown_type | vpc_gateway_network | instance_private_nic | baremetal_private_nic | apple_silicon_private_nic)
1414
[contains] Only routes whose destination is contained in this subnet will be returned
1515
[tags.{index}] Tags to filter for, only routes with one or more matching tags will be returned
1616
[is-ipv6] Only routes with an IPv6 destination will be returned

docs/commands/apple-silicon.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ scw apple-silicon server create [arg=value ...]
195195
| type | | Create a server of the given type |
196196
| os-id | | Create a server with the given os_id |
197197
| enable-vpc | | Activate the Private Network feature for this server |
198+
| commitment-type | One of: `duration_24h`, `renewed_monthly`, `none` | Activate commitment for this server |
198199
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
199200

200201

@@ -344,6 +345,7 @@ scw apple-silicon server update <server-id ...> [arg=value ...]
344345
| name | | Updated name for your server |
345346
| schedule-deletion | | Specify whether the server should be flagged for automatic deletion |
346347
| enable-vpc | | Activate or deactivate Private Network support for this server |
348+
| commitment-type.commitment-type | One of: `duration_24h`, `renewed_monthly`, `none` | |
347349
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
348350

349351

docs/commands/lb.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ scw lb frontend create [arg=value ...]
676676
| ~~certificate-id~~ | Deprecated | Certificate ID, deprecated in favor of certificate_ids array |
677677
| certificate-ids.{index} | | List of SSL/TLS certificate IDs to bind to the frontend |
678678
| enable-http3 | | Defines whether to enable HTTP/3 protocol on the frontend |
679+
| connection-rate-limit | | Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. |
679680
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
680681

681682

@@ -765,6 +766,7 @@ scw lb frontend update <frontend-id ...> [arg=value ...]
765766
| ~~certificate-id~~ | Deprecated | Certificate ID, deprecated in favor of certificate_ids array |
766767
| certificate-ids.{index} | | List of SSL/TLS certificate IDs to bind to the frontend |
767768
| enable-http3 | | Defines whether to enable HTTP/3 protocol on the frontend |
769+
| connection-rate-limit | | Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. |
768770
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
769771

770772

docs/commands/vpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ scw vpc route list [arg=value ...]
276276
| vpc-id | | VPC to filter for. Only routes within this VPC will be returned |
277277
| nexthop-resource-id | | Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned |
278278
| nexthop-private-network-id | | Next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned |
279-
| nexthop-resource-type | One of: `unknown_type`, `vpc_gateway_network`, `instance_private_nic`, `baremetal_private_nic` | Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned |
279+
| nexthop-resource-type | One of: `unknown_type`, `vpc_gateway_network`, `instance_private_nic`, `baremetal_private_nic`, `apple_silicon_private_nic` | Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned |
280280
| contains | | Only routes whose destination is contained in this subnet will be returned |
281281
| tags.{index} | | Tags to filter for, only routes with one or more matching tags will be returned |
282282
| is-ipv6 | | Only routes with an IPv6 destination will be returned |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ require (
2626
github.com/mattn/go-isatty v0.0.20
2727
github.com/moby/buildkit v0.13.2
2828
github.com/opencontainers/go-digest v1.0.0
29-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250211155222-f6d517b1fe08
29+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250214105700-e626aef9009c
3030
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3131
github.com/spf13/cobra v1.8.1
3232
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
464464
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
465465
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
466466
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
467-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250211155222-f6d517b1fe08 h1:xwx6FZCCMh4SLvZdfqZEpecUdR5reLWmJTM/07156C4=
468-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250211155222-f6d517b1fe08/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
467+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250214105700-e626aef9009c h1:RZ1m7HZ4RSM9VLeeyJ1Vc8vrHD6Zv1/viH4hGIgUpGE=
468+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250214105700-e626aef9009c/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
469469
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
470470
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
471471
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

0 commit comments

Comments
 (0)