Skip to content

Commit 508250a

Browse files
authored
feat(edge_services): add include_cookies to cache-stage (scaleway#2619)
1 parent 7ba1d43 commit 508250a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

api/edge_services/v1beta1/edge_services_sdk.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,9 @@ type CacheStage struct {
11581158
// FallbackTTL: time To Live (TTL) in seconds. Defines how long content is cached.
11591159
FallbackTTL *scw.Duration `json:"fallback_ttl"`
11601160

1161+
// IncludeCookies: defines whether responses to requests with cookies must be stored in the cache.
1162+
IncludeCookies bool `json:"include_cookies"`
1163+
11611164
// CreatedAt: date the cache stage was created.
11621165
CreatedAt *time.Time `json:"created_at"`
11631166

@@ -1549,6 +1552,9 @@ type CreateCacheStageRequest struct {
15491552
// FallbackTTL: time To Live (TTL) in seconds. Defines how long content is cached.
15501553
FallbackTTL *scw.Duration `json:"fallback_ttl,omitempty"`
15511554

1555+
// IncludeCookies: defines whether responses to requests with cookies must be stored in the cache.
1556+
IncludeCookies *bool `json:"include_cookies,omitempty"`
1557+
15521558
// BackendStageID: backend stage ID the cache stage will be linked to.
15531559
// Precisely one of BackendStageID, WafStageID, RouteStageID must be set.
15541560
BackendStageID *string `json:"backend_stage_id,omitempty"`
@@ -2420,6 +2426,9 @@ type UpdateCacheStageRequest struct {
24202426
// FallbackTTL: time To Live (TTL) in seconds. Defines how long content is cached.
24212427
FallbackTTL *scw.Duration `json:"fallback_ttl,omitempty"`
24222428

2429+
// IncludeCookies: defines whether responses to requests with cookies must be stored in the cache.
2430+
IncludeCookies *bool `json:"include_cookies,omitempty"`
2431+
24232432
// BackendStageID: backend stage ID the cache stage will be linked to.
24242433
// Precisely one of BackendStageID, WafStageID, RouteStageID must be set.
24252434
BackendStageID *string `json:"backend_stage_id,omitempty"`
@@ -3092,7 +3101,7 @@ func (s *API) GetCacheStage(req *GetCacheStageRequest, opts ...scw.RequestOption
30923101
return &resp, nil
30933102
}
30943103

3095-
// UpdateCacheStage: Update the parameters of an existing cache stage, specified by its `cache_stage_id`. Parameters which can be updated include the `fallback_ttl` and `backend_stage_id`.
3104+
// UpdateCacheStage: Update the parameters of an existing cache stage, specified by its `cache_stage_id`. Parameters which can be updated include the `fallback_ttl`, `include_cookies` and `backend_stage_id`.
30963105
func (s *API) UpdateCacheStage(req *UpdateCacheStageRequest, opts ...scw.RequestOption) (*CacheStage, error) {
30973106
var err error
30983107

0 commit comments

Comments
 (0)