Skip to content

Commit 3136832

Browse files
authored
feat(lb): add support for ConnectionRateLimit (scaleway#2422)
1 parent e626aef commit 3136832

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

api/lb/v1/lb_sdk.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,9 @@ type Frontend struct {
16251625

16261626
// EnableHTTP3: defines whether to enable HTTP/3 protocol on the frontend.
16271627
EnableHTTP3 bool `json:"enable_http3"`
1628+
1629+
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
1630+
ConnectionRateLimit *uint32 `json:"connection_rate_limit"`
16281631
}
16291632

16301633
func (m *Frontend) UnmarshalJSON(b []byte) error {
@@ -2066,6 +2069,9 @@ type CreateFrontendRequest struct {
20662069

20672070
// EnableHTTP3: defines whether to enable HTTP/3 protocol on the frontend.
20682071
EnableHTTP3 bool `json:"enable_http3"`
2072+
2073+
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
2074+
ConnectionRateLimit *uint32 `json:"connection_rate_limit,omitempty"`
20692075
}
20702076

20712077
func (m *CreateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -3179,6 +3185,9 @@ type UpdateFrontendRequest struct {
31793185

31803186
// EnableHTTP3: defines whether to enable HTTP/3 protocol on the frontend.
31813187
EnableHTTP3 bool `json:"enable_http3"`
3188+
3189+
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
3190+
ConnectionRateLimit *uint32 `json:"connection_rate_limit,omitempty"`
31823191
}
31833192

31843193
func (m *UpdateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -3595,6 +3604,9 @@ type ZonedAPICreateFrontendRequest struct {
35953604

35963605
// EnableHTTP3: defines whether to enable HTTP/3 protocol on the frontend.
35973606
EnableHTTP3 bool `json:"enable_http3"`
3607+
3608+
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
3609+
ConnectionRateLimit *uint32 `json:"connection_rate_limit,omitempty"`
35983610
}
35993611

36003612
func (m *ZonedAPICreateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -4378,6 +4390,9 @@ type ZonedAPIUpdateFrontendRequest struct {
43784390

43794391
// EnableHTTP3: defines whether to enable HTTP/3 protocol on the frontend.
43804392
EnableHTTP3 bool `json:"enable_http3"`
4393+
4394+
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
4395+
ConnectionRateLimit *uint32 `json:"connection_rate_limit,omitempty"`
43814396
}
43824397

43834398
func (m *ZonedAPIUpdateFrontendRequest) UnmarshalJSON(b []byte) error {

0 commit comments

Comments
 (0)