Skip to content

Commit 1aee199

Browse files
authored
feat(lbaas): enable http3 and add host header field in HL (#1463)
1 parent 3c638d4 commit 1aee199

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

api/lb/v1/lb_sdk.go

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,8 @@ type Frontend struct {
11781178
CreatedAt *time.Time `json:"created_at"`
11791179

11801180
UpdatedAt *time.Time `json:"updated_at"`
1181+
1182+
EnableHTTP3 bool `json:"enable_http3"`
11811183
}
11821184

11831185
func (m *Frontend) UnmarshalJSON(b []byte) error {
@@ -1283,20 +1285,30 @@ func (m HealthCheck) MarshalJSON() ([]byte, error) {
12831285
return json.Marshal(tmp)
12841286
}
12851287

1288+
// HealthCheckHTTPConfig: health check. http config
12861289
type HealthCheckHTTPConfig struct {
1290+
// URI: HTTP uri used with the request
12871291
URI string `json:"uri"`
1288-
1292+
// Method: HTTP method used with the request
12891293
Method string `json:"method"`
1290-
1294+
// Code: a health check response will be considered as valid if the response's status code match
12911295
Code *int32 `json:"code"`
1296+
// HostHeader: HTTP host header used with the request
1297+
HostHeader string `json:"host_header"`
12921298
}
12931299

1300+
// HealthCheckHTTPSConfig: health check. https config
12941301
type HealthCheckHTTPSConfig struct {
1302+
// URI: HTTP uri used with the request
12951303
URI string `json:"uri"`
1296-
1304+
// Method: HTTP method used with the request
12971305
Method string `json:"method"`
1298-
1306+
// Code: a health check response will be considered as valid if the response's status code match
12991307
Code *int32 `json:"code"`
1308+
// HostHeader: HTTP host header used with the request
1309+
HostHeader string `json:"host_header"`
1310+
// Sni: specifies the SNI to use to do health checks over SSL
1311+
Sni string `json:"sni"`
13001312
}
13011313

13021314
type HealthCheckLdapConfig struct {
@@ -2937,6 +2949,8 @@ type CreateFrontendRequest struct {
29372949
CertificateID *string `json:"certificate_id,omitempty"`
29382950
// CertificateIDs: list of certificate IDs to bind on the frontend
29392951
CertificateIDs *[]string `json:"certificate_ids"`
2952+
// EnableHTTP3: activate HTTP 3 protocol (beta)
2953+
EnableHTTP3 bool `json:"enable_http3"`
29402954
}
29412955

29422956
func (m *CreateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -3072,6 +3086,8 @@ type UpdateFrontendRequest struct {
30723086
CertificateID *string `json:"certificate_id,omitempty"`
30733087
// CertificateIDs: list of certificate IDs to bind on the frontend
30743088
CertificateIDs *[]string `json:"certificate_ids"`
3089+
// EnableHTTP3: activate HTTP 3 protocol (beta)
3090+
EnableHTTP3 bool `json:"enable_http3"`
30753091
}
30763092

30773093
func (m *UpdateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -5939,6 +5955,8 @@ type ZonedAPICreateFrontendRequest struct {
59395955
CertificateID *string `json:"certificate_id,omitempty"`
59405956
// CertificateIDs: list of certificate IDs to bind on the frontend
59415957
CertificateIDs *[]string `json:"certificate_ids"`
5958+
// EnableHTTP3: activate HTTP 3 protocol (beta)
5959+
EnableHTTP3 bool `json:"enable_http3"`
59425960
}
59435961

59445962
func (m *ZonedAPICreateFrontendRequest) UnmarshalJSON(b []byte) error {
@@ -6074,6 +6092,8 @@ type ZonedAPIUpdateFrontendRequest struct {
60746092
CertificateID *string `json:"certificate_id,omitempty"`
60756093
// CertificateIDs: list of certificate IDs to bind on the frontend
60766094
CertificateIDs *[]string `json:"certificate_ids"`
6095+
// EnableHTTP3: activate HTTP 3 protocol (beta)
6096+
EnableHTTP3 bool `json:"enable_http3"`
60776097
}
60786098

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

0 commit comments

Comments
 (0)