Skip to content

Commit 94874c0

Browse files
scaleway-botCodelax
authored andcommitted
feat: update generated APIs
1 parent 4af138b commit 94874c0

7 files changed

+88
-82
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ ARGS:
1212
forward-port-algorithm=roundrobin Load balancing algorithm to be used when determining which backend server to forward new traffic to (roundrobin | leastconn | first)
1313
sticky-sessions=none 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)
1414
[sticky-sessions-cookie-name] Cookie name for cookie-based sticky sessions
15-
[health-check.mysql-config.user]
15+
lb-id Load Balancer ID
16+
[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
1619
[health-check.check-max-retries] Number of consecutive unsuccessful health checks after which the server will be considered dead
17-
[health-check.pgsql-config.user]
20+
[health-check.mysql-config.user] MySQL user to use for the health check
21+
[health-check.pgsql-config.user] PostgreSQL user to use for the health check
1822
[health-check.http-config.uri] HTTP URI used for the health check
1923
[health-check.http-config.method] HTTP method used for the health check
2024
[health-check.http-config.code] HTTP response code expected for a successful health check
@@ -24,13 +28,9 @@ ARGS:
2428
[health-check.https-config.code] HTTP response code expected for a successful health check
2529
[health-check.https-config.host-header] HTTP host header used for the health check
2630
[health-check.https-config.sni] SNI used for SSL health checks
27-
[health-check.port] Port to use for the backend server health check
28-
[health-check.check-timeout] Maximum time a backend server has to reply to the health check
29-
[health-check.check-delay] Time to wait between two consecutive health checks
3031
[health-check.check-send-proxy] Defines whether proxy protocol should be activated for the health check
3132
[health-check.transient-check-delay.seconds]
3233
[health-check.transient-check-delay.nanos]
33-
lb-id Load Balancer ID
3434
[instance-server-id.{index}] UIID of the instance server.
3535
[instance-server-tag.{index}] Tag of the instance server.
3636
[use-instance-server-public-ip] Use public IP address of the instance instead of the private one
@@ -41,9 +41,9 @@ ARGS:
4141
[timeout-connect] Maximum allowed time for establishing a connection to a backend server
4242
[timeout-tunnel] 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)
44-
[proxy-protocol] PROXY protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. 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)
45-
[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. Do not include the scheme (eg https://)
46-
[ssl-bridging] Defines whether to enable SSL between the Load Balancer and backend servers
44+
[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)
45+
[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
46+
[ssl-bridging] Defines whether to enable SSL bridging between the Load Balancer and backend servers
4747
[ignore-ssl-server-verify] Defines whether the server certificate verification should be ignored
4848
[redispatch-attempt-count] Whether to use another backend server on each attempt
4949
[max-retries] Number of retries when a backend server connection failed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ ARGS:
99
port Port to use for the backend server health check
1010
check-delay Time to wait between two consecutive health checks
1111
check-timeout Maximum time a backend server has to reply to the health check
12-
check-max-retries Number of consecutive unsuccessful health checks, after which the server will be considered dead
12+
check-max-retries Number of consecutive unsuccessful health checks after which the server will be considered dead
1313
backend-id Backend ID
14-
[mysql-config.user]
15-
[pgsql-config.user]
14+
[check-send-proxy] Defines whether proxy protocol should be activated for the health check
15+
[mysql-config.user] MySQL user to use for the health check
16+
[pgsql-config.user] PostgreSQL user to use for the health check
1617
[http-config.uri] HTTP URI used for the health check
1718
[http-config.method] HTTP method used for the health check
1819
[http-config.code] HTTP response code expected for a successful health check
@@ -22,7 +23,6 @@ ARGS:
2223
[https-config.code] HTTP response code expected for a successful health check
2324
[https-config.host-header] HTTP host header used for the health check
2425
[https-config.sni] SNI used for SSL health checks
25-
[check-send-proxy] Defines whether proxy protocol should be activated for the health check
2626
[transient-check-delay.seconds]
2727
[transient-check-delay.nanos]
2828
[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-backend-update-usage.golden

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ ARGS:
1616
[timeout-server] Maximum allowed time for a backend server to process a request
1717
[timeout-connect] Maximum allowed time for establishing a connection to a backend server
1818
[timeout-tunnel] Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout)
19-
[on-marked-down-action] Action to take when a backend server is marked down (on_marked_down_action_none | shutdown_sessions)
20-
[proxy-protocol] PROXY protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. 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)
21-
[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. Do not include the scheme (eg https://)
19+
[on-marked-down-action] Action to take when a backend server is marked as down (on_marked_down_action_none | shutdown_sessions)
20+
[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)
21+
[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
2222
[ssl-bridging] Defines whether to enable SSL bridging between the Load Balancer and backend servers
2323
[ignore-ssl-server-verify] Defines whether the server certificate verification should be ignored
24-
[redispatch-attempt-count] Whether to use another backend server on each retries
24+
[redispatch-attempt-count] Whether to use another backend server on each attempt
2525
[max-retries] Number of retries when a backend server connection failed
2626
[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)
2727

cmd/scw/testdata/test-all-usage-lb-private-network-attach-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
ARGS:
99
lb-id Load Balancer ID
1010
private-network-id Private Network ID
11-
[static-config.ip-address.{index}]
11+
[static-config.ip-address.{index}] Array of a local IP address for the Load Balancer on this Private Network
1212
[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)
1313

1414
FLAGS:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
[order-by] Sort order of routes in the response (created_at_asc | created_at_desc)
10-
[frontend-id]
10+
[frontend-id] Frontend ID to filter for, only Routes from this Frontend will be returned
1111
[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 | all)
1212

1313
FLAGS:

0 commit comments

Comments
 (0)