Skip to content

Commit c275293

Browse files
committed
feat: update generated APIs
1 parent 45caf45 commit c275293

11 files changed

Lines changed: 40 additions & 27 deletions

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ ARGS:
1414
[sticky-sessions-cookie-name] Cookie name for cookie-based sticky sessions
1515
lb-id Load Balancer ID
1616
[health-check.port] Port to use for the backend server health check
17-
[health-check.check-delay] Time to wait between two consecutive health checks
18-
[health-check.check-timeout] Maximum time a backend server has to reply to the health check
17+
[health-check.check-delay=3s] Time to wait between two consecutive health checks
18+
[health-check.check-timeout=1s] Maximum time a backend server has to reply to the health check
1919
[health-check.check-max-retries] Number of consecutive unsuccessful health checks after which the server will be considered dead
2020
[health-check.mysql-config.user] MySQL user to use for the health check
2121
[health-check.pgsql-config.user] PostgreSQL user to use for the health check
@@ -37,9 +37,9 @@ ARGS:
3737
[baremetal-server-id.{index}] UIID of the baremetal server.
3838
[baremetal-server-tag.{index}] Tag of the baremetal server.
3939
server-ip.{index} List of backend server IP addresses (IPv4 or IPv6) the backend should forward traffic to
40-
[timeout-server] Maximum allowed time for a backend server to process a request
41-
[timeout-connect] Maximum allowed time for establishing a connection to a backend server
42-
[timeout-tunnel] Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout)
40+
[timeout-server=5m] Maximum allowed time for a backend server to process a request
41+
[timeout-connect=5s] Maximum allowed time for establishing a connection to a backend server
42+
[timeout-tunnel=15m] Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout)
4343
[on-marked-down-action] Action to take when a backend server is marked as down (on_marked_down_action_none | shutdown_sessions)
4444
[proxy-protocol] Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software (proxy_protocol_unknown | proxy_protocol_none | proxy_protocol_v1 | proxy_protocol_v2 | proxy_protocol_v2_ssl | proxy_protocol_v2_ssl_cn)
4545
[failover-host] Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ARGS:
1313
forward-port-algorithm Load balancing algorithm to be used when determining which backend server to forward new traffic to (roundrobin | leastconn | first)
1414
sticky-sessions Defines whether to activate sticky sessions (binding a particular session to a particular backend server) and the method to use if so. None disables sticky sessions. Cookie-based uses an HTTP cookie to stick a session to a backend server. Table-based uses the source (client) IP address to stick a session to a backend server (none | cookie | table)
1515
[sticky-sessions-cookie-name] Cookie name for cookie-based sticky sessions
16-
[timeout-server] Maximum allowed time for a backend server to process a request
17-
[timeout-connect] Maximum allowed time for establishing a connection to a backend server
18-
[timeout-tunnel] Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout)
16+
[timeout-server=5m] Maximum allowed time for a backend server to process a request
17+
[timeout-connect=5s] Maximum allowed time for establishing a connection to a backend server
18+
[timeout-tunnel=15m] Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout)
1919
[on-marked-down-action] Action to take when a backend server is marked as down (on_marked_down_action_none | shutdown_sessions)
2020
[proxy-protocol] Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software (proxy_protocol_unknown | proxy_protocol_none | proxy_protocol_v1 | proxy_protocol_v2 | proxy_protocol_v2_ssl | proxy_protocol_v2_ssl_cn)
2121
[failover-host] Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
inbound-port Port the frontend should listen on
1111
lb-id Load Balancer ID (ID of the Load Balancer to attach the frontend to)
1212
backend-id Backend ID (ID of the backend the frontend should pass traffic to)
13-
[timeout-client] Maximum allowed inactivity time on the client side
13+
[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
1616
[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 | pl-waw-1 | pl-waw-2)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
name Frontend name
1111
inbound-port Port the frontend should listen on
1212
backend-id Backend ID (ID of the backend the frontend should pass traffic to)
13-
[timeout-client] Maximum allowed inactivity time on the client side
13+
[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
1616
[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 | pl-waw-1 | pl-waw-2)

cmd/scw/testdata/test-all-usage-secret-secret-list-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ USAGE:
77

88
ARGS:
99
[project-id] Filter by Project ID (optional)
10-
[name] Filter by secret name (optional)
11-
[tags.{index}] List of tags to filter on (optional)
1210
[order-by] (name_asc | name_desc | created_at_asc | created_at_desc | updated_at_asc | updated_at_desc)
11+
[tags.{index}] List of tags to filter on (optional)
12+
[name] Filter by secret name (optional)
13+
[is-managed] Filter by managed / not managed (optional)
1314
[organization-id] Filter by Organization ID (optional)
1415
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
1516

docs/commands/lb.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ scw lb backend create [arg=value ...]
286286
| sticky-sessions-cookie-name | | Cookie name for cookie-based sticky sessions |
287287
| lb-id | Required | Load Balancer ID |
288288
| health-check.port | | Port to use for the backend server health check |
289-
| health-check.check-delay | | Time to wait between two consecutive health checks |
290-
| health-check.check-timeout | | Maximum time a backend server has to reply to the health check |
289+
| health-check.check-delay | Default: `3s` | Time to wait between two consecutive health checks |
290+
| health-check.check-timeout | Default: `1s` | Maximum time a backend server has to reply to the health check |
291291
| health-check.check-max-retries | | Number of consecutive unsuccessful health checks after which the server will be considered dead |
292292
| health-check.mysql-config.user | | MySQL user to use for the health check |
293293
| health-check.pgsql-config.user | | PostgreSQL user to use for the health check |
@@ -310,9 +310,9 @@ scw lb backend create [arg=value ...]
310310
| baremetal-server-tag.{index} | | Tag of the baremetal server. |
311311
| server-ip.{index} | Required | List of backend server IP addresses (IPv4 or IPv6) the backend should forward traffic to |
312312
| ~~send-proxy-v2~~ | Deprecated | Deprecated in favor of proxy_protocol field |
313-
| timeout-server | | Maximum allowed time for a backend server to process a request |
314-
| timeout-connect | | Maximum allowed time for establishing a connection to a backend server |
315-
| timeout-tunnel | | Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout) |
313+
| timeout-server | Default: `5m` | Maximum allowed time for a backend server to process a request |
314+
| timeout-connect | Default: `5s` | Maximum allowed time for establishing a connection to a backend server |
315+
| timeout-tunnel | Default: `15m` | Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout) |
316316
| on-marked-down-action | One of: `on_marked_down_action_none`, `shutdown_sessions` | Action to take when a backend server is marked as down |
317317
| proxy-protocol | One of: `proxy_protocol_unknown`, `proxy_protocol_none`, `proxy_protocol_v1`, `proxy_protocol_v2`, `proxy_protocol_v2_ssl`, `proxy_protocol_v2_ssl_cn` | Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software |
318318
| failover-host | | Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud |
@@ -481,9 +481,9 @@ scw lb backend update <backend-id ...> [arg=value ...]
481481
| sticky-sessions | Required<br />One of: `none`, `cookie`, `table` | Defines whether to activate sticky sessions (binding a particular session to a particular backend server) and the method to use if so. None disables sticky sessions. Cookie-based uses an HTTP cookie to stick a session to a backend server. Table-based uses the source (client) IP address to stick a session to a backend server |
482482
| sticky-sessions-cookie-name | | Cookie name for cookie-based sticky sessions |
483483
| ~~send-proxy-v2~~ | Deprecated | Deprecated in favor of proxy_protocol field |
484-
| timeout-server | | Maximum allowed time for a backend server to process a request |
485-
| timeout-connect | | Maximum allowed time for establishing a connection to a backend server |
486-
| timeout-tunnel | | Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout) |
484+
| timeout-server | Default: `5m` | Maximum allowed time for a backend server to process a request |
485+
| timeout-connect | Default: `5s` | Maximum allowed time for establishing a connection to a backend server |
486+
| timeout-tunnel | Default: `15m` | Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout) |
487487
| on-marked-down-action | One of: `on_marked_down_action_none`, `shutdown_sessions` | Action to take when a backend server is marked as down |
488488
| proxy-protocol | One of: `proxy_protocol_unknown`, `proxy_protocol_none`, `proxy_protocol_v1`, `proxy_protocol_v2`, `proxy_protocol_v2_ssl`, `proxy_protocol_v2_ssl_cn` | Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software |
489489
| failover-host | | Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud |
@@ -669,7 +669,7 @@ scw lb frontend create [arg=value ...]
669669
| inbound-port | Required | Port the frontend should listen on |
670670
| lb-id | Required | Load Balancer ID (ID of the Load Balancer to attach the frontend to) |
671671
| backend-id | Required | Backend ID (ID of the backend the frontend should pass traffic to) |
672-
| timeout-client | | Maximum allowed inactivity time on the client side |
672+
| timeout-client | Default: `5m` | Maximum allowed inactivity time on the client side |
673673
| ~~certificate-id~~ | Deprecated | Certificate ID, deprecated in favor of certificate_ids array |
674674
| certificate-ids.{index} | | List of SSL/TLS certificate IDs to bind to the frontend |
675675
| enable-http3 | | Defines whether to enable HTTP/3 protocol on the frontend |
@@ -758,7 +758,7 @@ scw lb frontend update <frontend-id ...> [arg=value ...]
758758
| name | Required | Frontend name |
759759
| inbound-port | Required | Port the frontend should listen on |
760760
| backend-id | Required | Backend ID (ID of the backend the frontend should pass traffic to) |
761-
| timeout-client | | Maximum allowed inactivity time on the client side |
761+
| timeout-client | Default: `5m` | Maximum allowed inactivity time on the client side |
762762
| ~~certificate-id~~ | Deprecated | Certificate ID, deprecated in favor of certificate_ids array |
763763
| certificate-ids.{index} | | List of SSL/TLS certificate IDs to bind to the frontend |
764764
| enable-http3 | | Defines whether to enable HTTP/3 protocol on the frontend |

docs/commands/secret.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ scw secret secret list [arg=value ...]
123123
| Name | | Description |
124124
|------|---|-------------|
125125
| project-id | | Filter by Project ID (optional) |
126-
| name | | Filter by secret name (optional) |
127-
| tags.{index} | | List of tags to filter on (optional) |
128126
| order-by | One of: `name_asc`, `name_desc`, `created_at_asc`, `created_at_desc`, `updated_at_asc`, `updated_at_desc` | |
127+
| tags.{index} | | List of tags to filter on (optional) |
128+
| name | | Filter by secret name (optional) |
129+
| is-managed | | Filter by managed / not managed (optional) |
129130
| organization-id | | Filter by Organization ID (optional) |
130131
| region | Default: `fr-par`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |
131132

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/moby/buildkit v0.11.5
2323
github.com/opencontainers/go-digest v1.0.0
2424
github.com/pkg/errors v0.9.1
25-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230404142259-598b1ac41f06
25+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230420080308-8b7557b9af39
2626
github.com/spf13/cobra v1.7.0
2727
github.com/spf13/pflag v1.0.5
2828
github.com/stretchr/testify v1.8.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
275275
github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY=
276276
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
277277
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
278-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230404142259-598b1ac41f06 h1:QvmCsVGrajhRqLaJNd1KlZduhIkQvKYoUaUdv+I2yTM=
279-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230404142259-598b1ac41f06/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
278+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230420080308-8b7557b9af39 h1:pk7hQ2EsbBiDuOsF/a7NkUHJwOPk96uTFvN3BeZW+Dc=
279+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230420080308-8b7557b9af39/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
280280
github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg=
281281
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
282282
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ RuntimeMessage -
3232
"timeout": "300.000000000s",
3333
"handler": "Handle",
3434
"error_message": null,
35+
"build_message": null,
3536
"privacy": "public",
3637
"description": "",
3738
"domain_name": "clitestfunctiondeploeqj6jxof-cli-test-function-deploy.functions.fnc.fr-par.scw.cloud",

0 commit comments

Comments
 (0)