Skip to content

Commit

Permalink
fix(serverless): fix http_option description (#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Jan 27, 2023
1 parent 7a77707 commit 181d9c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions api/container/v1beta1/container_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,10 @@ type Container struct {
// HTTPOption: configure how HTTP and HTTPS requests are handled
//
// possible values:
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
// - enabled: Serve both HTTP and HTTPS traffic.
//
// Default value: unknown_http_option
// Default value: enabled
HTTPOption ContainerHTTPOption `json:"http_option"`

Region scw.Region `json:"region"`
Expand Down Expand Up @@ -1258,10 +1258,10 @@ type CreateContainerRequest struct {
// HTTPOption: configure how HTTP and HTTPS requests are handled
//
// possible values:
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
// - enabled: Serve both HTTP and HTTPS traffic.
//
// Default value: unknown_http_option
// Default value: enabled
HTTPOption ContainerHTTPOption `json:"http_option"`
}

Expand Down Expand Up @@ -1342,10 +1342,10 @@ type UpdateContainerRequest struct {
// HTTPOption: configure how HTTP and HTTPS requests are handled
//
// possible values:
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
// - enabled: Serve both HTTP and HTTPS traffic.
//
// Default value: unknown_http_option
// Default value: enabled
HTTPOption ContainerHTTPOption `json:"http_option"`
}

Expand Down
12 changes: 6 additions & 6 deletions api/function/v1beta1/function_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1006,10 +1006,10 @@ type Function struct {
// HTTPOption: configure how HTTP and HTTPS requests are handled
//
// possible values:
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
// - enabled: Serve both HTTP and HTTPS traffic.
//
// Default value: unknown_http_option
// Default value: enabled
HTTPOption FunctionHTTPOption `json:"http_option"`

RuntimeMessage string `json:"runtime_message"`
Expand Down Expand Up @@ -1702,10 +1702,10 @@ type CreateFunctionRequest struct {
// HTTPOption: configure how HTTP and HTTPS requests are handled
//
// possible values:
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
// - enabled: Serve both HTTP and HTTPS traffic.
//
// Default value: unknown_http_option
// Default value: enabled
HTTPOption FunctionHTTPOption `json:"http_option"`
}

Expand Down Expand Up @@ -1782,10 +1782,10 @@ type UpdateFunctionRequest struct {
// HTTPOption: configure how HTTP and HTTPS requests are handled
//
// possible values:
// - redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
// - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
// - enabled: Serve both HTTP and HTTPS traffic.
//
// Default value: unknown_http_option
// Default value: enabled
HTTPOption FunctionHTTPOption `json:"http_option"`
}

Expand Down

0 comments on commit 181d9c2

Please sign in to comment.