Skip to content

Commit edd5a98

Browse files
feat(lb): add access_logs field to frontend (scaleway#2571)
Co-authored-by: Jonathan R. <[email protected]>
1 parent ad5dd8b commit edd5a98

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
@@ -1628,6 +1628,9 @@ type Frontend struct {
16281628

16291629
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
16301630
ConnectionRateLimit *uint32 `json:"connection_rate_limit"`
1631+
1632+
// EnableAccessLogs: defines wether to enable access logs on the frontend.
1633+
EnableAccessLogs bool `json:"enable_access_logs"`
16311634
}
16321635

16331636
func (m *Frontend) UnmarshalJSON(b []byte) error {
@@ -2078,6 +2081,9 @@ type CreateFrontendRequest struct {
20782081

20792082
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
20802083
ConnectionRateLimit *uint32 `json:"connection_rate_limit,omitempty"`
2084+
2085+
// EnableAccessLogs: defines wether to enable access logs on the frontend.
2086+
EnableAccessLogs bool `json:"enable_access_logs"`
20812087
}
20822088

20832089
func (m *CreateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -3194,6 +3200,9 @@ type UpdateFrontendRequest struct {
31943200

31953201
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
31963202
ConnectionRateLimit *uint32 `json:"connection_rate_limit,omitempty"`
3203+
3204+
// EnableAccessLogs: defines wether to enable access logs on the frontend.
3205+
EnableAccessLogs *bool `json:"enable_access_logs,omitempty"`
31973206
}
31983207

31993208
func (m *UpdateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -3613,6 +3622,9 @@ type ZonedAPICreateFrontendRequest struct {
36133622

36143623
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
36153624
ConnectionRateLimit *uint32 `json:"connection_rate_limit,omitempty"`
3625+
3626+
// EnableAccessLogs: defines wether to enable access logs on the frontend.
3627+
EnableAccessLogs bool `json:"enable_access_logs"`
36163628
}
36173629

36183630
func (m *ZonedAPICreateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -4399,6 +4411,9 @@ type ZonedAPIUpdateFrontendRequest struct {
43994411

44004412
// ConnectionRateLimit: rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
44014413
ConnectionRateLimit *uint32 `json:"connection_rate_limit,omitempty"`
4414+
4415+
// EnableAccessLogs: defines wether to enable access logs on the frontend.
4416+
EnableAccessLogs *bool `json:"enable_access_logs,omitempty"`
44024417
}
44034418

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

0 commit comments

Comments
 (0)