Skip to content

Commit 181d9c2

Browse files
authored
fix(serverless): fix http_option description (#1517)
1 parent 7a77707 commit 181d9c2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

api/container/v1beta1/container_sdk.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,10 @@ type Container struct {
675675
// HTTPOption: configure how HTTP and HTTPS requests are handled
676676
//
677677
// possible values:
678-
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
678+
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
679679
// - enabled: Serve both HTTP and HTTPS traffic.
680680
//
681-
// Default value: unknown_http_option
681+
// Default value: enabled
682682
HTTPOption ContainerHTTPOption `json:"http_option"`
683683

684684
Region scw.Region `json:"region"`
@@ -1258,10 +1258,10 @@ type CreateContainerRequest struct {
12581258
// HTTPOption: configure how HTTP and HTTPS requests are handled
12591259
//
12601260
// possible values:
1261-
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
1261+
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
12621262
// - enabled: Serve both HTTP and HTTPS traffic.
12631263
//
1264-
// Default value: unknown_http_option
1264+
// Default value: enabled
12651265
HTTPOption ContainerHTTPOption `json:"http_option"`
12661266
}
12671267

@@ -1342,10 +1342,10 @@ type UpdateContainerRequest struct {
13421342
// HTTPOption: configure how HTTP and HTTPS requests are handled
13431343
//
13441344
// possible values:
1345-
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
1345+
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
13461346
// - enabled: Serve both HTTP and HTTPS traffic.
13471347
//
1348-
// Default value: unknown_http_option
1348+
// Default value: enabled
13491349
HTTPOption ContainerHTTPOption `json:"http_option"`
13501350
}
13511351

api/function/v1beta1/function_sdk.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,10 +1006,10 @@ type Function struct {
10061006
// HTTPOption: configure how HTTP and HTTPS requests are handled
10071007
//
10081008
// possible values:
1009-
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
1009+
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
10101010
// - enabled: Serve both HTTP and HTTPS traffic.
10111011
//
1012-
// Default value: unknown_http_option
1012+
// Default value: enabled
10131013
HTTPOption FunctionHTTPOption `json:"http_option"`
10141014

10151015
RuntimeMessage string `json:"runtime_message"`
@@ -1702,10 +1702,10 @@ type CreateFunctionRequest struct {
17021702
// HTTPOption: configure how HTTP and HTTPS requests are handled
17031703
//
17041704
// possible values:
1705-
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
1705+
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
17061706
// - enabled: Serve both HTTP and HTTPS traffic.
17071707
//
1708-
// Default value: unknown_http_option
1708+
// Default value: enabled
17091709
HTTPOption FunctionHTTPOption `json:"http_option"`
17101710
}
17111711

@@ -1782,10 +1782,10 @@ type UpdateFunctionRequest struct {
17821782
// HTTPOption: configure how HTTP and HTTPS requests are handled
17831783
//
17841784
// possible values:
1785-
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
1785+
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
17861786
// - enabled: Serve both HTTP and HTTPS traffic.
17871787
//
1788-
// Default value: unknown_http_option
1788+
// Default value: enabled
17891789
HTTPOption FunctionHTTPOption `json:"http_option"`
17901790
}
17911791

0 commit comments

Comments
 (0)