Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages_generated/edge_services/src/v1beta1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export class API extends ParentAPI {
)

/**
* 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`.
* 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`.
*
* @param request - The request {@link UpdateCacheStageRequest}
* @returns A Promise of CacheStage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const unmarshalCacheStage = (data: unknown): CacheStage => {
createdAt: unmarshalDate(data.created_at),
fallbackTtl: data.fallback_ttl,
id: data.id,
includeCookies: data.include_cookies,
pipelineId: data.pipeline_id,
routeStageId: data.route_stage_id,
updatedAt: unmarshalDate(data.updated_at),
Expand Down Expand Up @@ -906,6 +907,7 @@ export const marshalCreateCacheStageRequest = (
defaults: DefaultValues,
): Record<string, unknown> => ({
fallback_ttl: request.fallbackTtl,
include_cookies: request.includeCookies,
...resolveOneOf([
{ param: 'backend_stage_id', value: request.backendStageId },
{ param: 'waf_stage_id', value: request.wafStageId },
Expand Down Expand Up @@ -1096,6 +1098,7 @@ export const marshalUpdateCacheStageRequest = (
defaults: DefaultValues,
): Record<string, unknown> => ({
fallback_ttl: request.fallbackTtl,
include_cookies: request.includeCookies,
...resolveOneOf([
{ param: 'backend_stage_id', value: request.backendStageId },
{ param: 'waf_stage_id', value: request.wafStageId },
Expand Down
12 changes: 12 additions & 0 deletions packages_generated/edge_services/src/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ export interface CacheStage {
* Time To Live (TTL) in seconds. Defines how long content is cached.
*/
fallbackTtl?: string
/**
* Defines whether responses to requests with cookies must be stored in the cache.
*/
includeCookies: boolean
/**
* Date the cache stage was created.
*/
Expand Down Expand Up @@ -717,6 +721,10 @@ export type CreateCacheStageRequest = {
* Time To Live (TTL) in seconds. Defines how long content is cached.
*/
fallbackTtl?: string
/**
* Defines whether responses to requests with cookies must be stored in the cache.
*/
includeCookies?: boolean
/**
* Backend stage ID the cache stage will be linked to.
*
Expand Down Expand Up @@ -1492,6 +1500,10 @@ export type UpdateCacheStageRequest = {
* Time To Live (TTL) in seconds. Defines how long content is cached.
*/
fallbackTtl?: string
/**
* Defines whether responses to requests with cookies must be stored in the cache.
*/
includeCookies?: boolean
/**
* Backend stage ID the cache stage will be linked to.
*
Expand Down
Loading