Skip to content

Commit 9c16b74

Browse files
authored
fix(lb): generate sdk for new fields (#1687)
1 parent d06eaab commit 9c16b74

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

api/lb/v1/lb_sdk.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,10 @@ type Backend struct {
991991
RedispatchAttemptCount *int32 `json:"redispatch_attempt_count"`
992992
// MaxRetries: number of retries when a backend server connection failed.
993993
MaxRetries *int32 `json:"max_retries"`
994+
// MaxConnections: maximum number of connections allowed per backend server.
995+
MaxConnections *int32 `json:"max_connections"`
996+
// TimeoutQueue: maximum time for a request to be left pending in queue when `max_connections` is reached.
997+
TimeoutQueue *scw.Duration `json:"timeout_queue"`
994998
}
995999

9961000
func (m *Backend) UnmarshalJSON(b []byte) error {
@@ -2257,6 +2261,10 @@ type ZonedAPICreateBackendRequest struct {
22572261
RedispatchAttemptCount *int32 `json:"redispatch_attempt_count"`
22582262
// MaxRetries: number of retries when a backend server connection failed.
22592263
MaxRetries *int32 `json:"max_retries"`
2264+
// MaxConnections: maximum number of connections allowed per backend server.
2265+
MaxConnections *int32 `json:"max_connections"`
2266+
// TimeoutQueue: maximum time for a request to be left pending in queue when `max_connections` is reached.
2267+
TimeoutQueue *scw.Duration `json:"timeout_queue"`
22602268
}
22612269

22622270
func (m *ZonedAPICreateBackendRequest) UnmarshalJSON(b []byte) error {
@@ -2428,6 +2436,10 @@ type ZonedAPIUpdateBackendRequest struct {
24282436
RedispatchAttemptCount *int32 `json:"redispatch_attempt_count"`
24292437
// MaxRetries: number of retries when a backend server connection failed.
24302438
MaxRetries *int32 `json:"max_retries"`
2439+
// MaxConnections: maximum number of connections allowed per backend server.
2440+
MaxConnections *int32 `json:"max_connections"`
2441+
// TimeoutQueue: maximum time for a request to be left pending in queue when `max_connections` is reached.
2442+
TimeoutQueue *scw.Duration `json:"timeout_queue"`
24312443
}
24322444

24332445
func (m *ZonedAPIUpdateBackendRequest) UnmarshalJSON(b []byte) error {
@@ -5213,6 +5225,10 @@ type CreateBackendRequest struct {
52135225
RedispatchAttemptCount *int32 `json:"redispatch_attempt_count"`
52145226
// MaxRetries: number of retries when a backend server connection failed.
52155227
MaxRetries *int32 `json:"max_retries"`
5228+
// MaxConnections: maximum number of connections allowed per backend server.
5229+
MaxConnections *int32 `json:"max_connections"`
5230+
// TimeoutQueue: maximum time for a request to be left pending in queue when `max_connections` is reached.
5231+
TimeoutQueue *scw.Duration `json:"timeout_queue"`
52165232
}
52175233

52185234
func (m *CreateBackendRequest) UnmarshalJSON(b []byte) error {
@@ -5382,6 +5398,10 @@ type UpdateBackendRequest struct {
53825398
RedispatchAttemptCount *int32 `json:"redispatch_attempt_count"`
53835399
// MaxRetries: number of retries when a backend server connection failed.
53845400
MaxRetries *int32 `json:"max_retries"`
5401+
// MaxConnections: maximum number of connections allowed per backend server.
5402+
MaxConnections *int32 `json:"max_connections"`
5403+
// TimeoutQueue: maximum time for a request to be left pending in queue when `max_connections` is reached.
5404+
TimeoutQueue *scw.Duration `json:"timeout_queue"`
53855405
}
53865406

53875407
func (m *UpdateBackendRequest) UnmarshalJSON(b []byte) error {

0 commit comments

Comments
 (0)