Skip to content

Commit d390ad5

Browse files
authored
feat(edge_services): add include_cookies to cache-stage (#2211)
1 parent 108cca7 commit d390ad5

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

packages_generated/edge_services/src/v1beta1/api.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ export class API extends ParentAPI {
589589
)
590590

591591
/**
592-
* Update cache stage. 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`.
592+
* Update cache stage. 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`.
593593
*
594594
* @param request - The request {@link UpdateCacheStageRequest}
595595
* @returns A Promise of CacheStage

packages_generated/edge_services/src/v1beta1/marshalling.gen.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export const unmarshalCacheStage = (data: unknown): CacheStage => {
160160
createdAt: unmarshalDate(data.created_at),
161161
fallbackTtl: data.fallback_ttl,
162162
id: data.id,
163+
includeCookies: data.include_cookies,
163164
pipelineId: data.pipeline_id,
164165
routeStageId: data.route_stage_id,
165166
updatedAt: unmarshalDate(data.updated_at),
@@ -906,6 +907,7 @@ export const marshalCreateCacheStageRequest = (
906907
defaults: DefaultValues,
907908
): Record<string, unknown> => ({
908909
fallback_ttl: request.fallbackTtl,
910+
include_cookies: request.includeCookies,
909911
...resolveOneOf([
910912
{ param: 'backend_stage_id', value: request.backendStageId },
911913
{ param: 'waf_stage_id', value: request.wafStageId },
@@ -1096,6 +1098,7 @@ export const marshalUpdateCacheStageRequest = (
10961098
defaults: DefaultValues,
10971099
): Record<string, unknown> => ({
10981100
fallback_ttl: request.fallbackTtl,
1101+
include_cookies: request.includeCookies,
10991102
...resolveOneOf([
11001103
{ param: 'backend_stage_id', value: request.backendStageId },
11011104
{ param: 'waf_stage_id', value: request.wafStageId },

packages_generated/edge_services/src/v1beta1/types.gen.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ export interface CacheStage {
250250
* Time To Live (TTL) in seconds. Defines how long content is cached.
251251
*/
252252
fallbackTtl?: string
253+
/**
254+
* Defines whether responses to requests with cookies must be stored in the cache.
255+
*/
256+
includeCookies: boolean
253257
/**
254258
* Date the cache stage was created.
255259
*/
@@ -717,6 +721,10 @@ export type CreateCacheStageRequest = {
717721
* Time To Live (TTL) in seconds. Defines how long content is cached.
718722
*/
719723
fallbackTtl?: string
724+
/**
725+
* Defines whether responses to requests with cookies must be stored in the cache.
726+
*/
727+
includeCookies?: boolean
720728
/**
721729
* Backend stage ID the cache stage will be linked to.
722730
*
@@ -1492,6 +1500,10 @@ export type UpdateCacheStageRequest = {
14921500
* Time To Live (TTL) in seconds. Defines how long content is cached.
14931501
*/
14941502
fallbackTtl?: string
1503+
/**
1504+
* Defines whether responses to requests with cookies must be stored in the cache.
1505+
*/
1506+
includeCookies?: boolean
14951507
/**
14961508
* Backend stage ID the cache stage will be linked to.
14971509
*

0 commit comments

Comments
 (0)