@scaleway/sdk-edge-services 1.0.5 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -371,7 +371,7 @@ class API extends sdkClient.API {
371
371
  marshalling_gen.unmarshalCacheStage
372
372
  );
373
373
  /**
374
- * 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`.
374
+ * 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`.
375
375
  *
376
376
  * @param request - The request {@link UpdateCacheStageRequest}
377
377
  * @returns A Promise of CacheStage
@@ -170,7 +170,7 @@ export declare class API extends ParentAPI {
170
170
  */
171
171
  getCacheStage: (request: Readonly<GetCacheStageRequest>) => Promise<CacheStage>;
172
172
  /**
173
- * 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`.
173
+ * 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`.
174
174
  *
175
175
  * @param request - The request {@link UpdateCacheStageRequest}
176
176
  * @returns A Promise of CacheStage
@@ -369,7 +369,7 @@ class API extends API$1 {
369
369
  unmarshalCacheStage
370
370
  );
371
371
  /**
372
- * 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`.
372
+ * 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`.
373
373
  *
374
374
  * @param request - The request {@link UpdateCacheStageRequest}
375
375
  * @returns A Promise of CacheStage
@@ -63,6 +63,7 @@ const unmarshalCacheStage = (data) => {
63
63
  createdAt: sdkClient.unmarshalDate(data.created_at),
64
64
  fallbackTtl: data.fallback_ttl,
65
65
  id: data.id,
66
+ includeCookies: data.include_cookies,
66
67
  pipelineId: data.pipeline_id,
67
68
  routeStageId: data.route_stage_id,
68
69
  updatedAt: sdkClient.unmarshalDate(data.updated_at),
@@ -606,6 +607,7 @@ const marshalCreateBackendStageRequest = (request, defaults) => ({
606
607
  });
607
608
  const marshalCreateCacheStageRequest = (request, defaults) => ({
608
609
  fallback_ttl: request.fallbackTtl,
610
+ include_cookies: request.includeCookies,
609
611
  ...sdkClient.resolveOneOf([
610
612
  { param: "backend_stage_id", value: request.backendStageId },
611
613
  { param: "waf_stage_id", value: request.wafStageId },
@@ -712,6 +714,7 @@ const marshalUpdateBackendStageRequest = (request, defaults) => ({
712
714
  });
713
715
  const marshalUpdateCacheStageRequest = (request, defaults) => ({
714
716
  fallback_ttl: request.fallbackTtl,
717
+ include_cookies: request.includeCookies,
715
718
  ...sdkClient.resolveOneOf([
716
719
  { param: "backend_stage_id", value: request.backendStageId },
717
720
  { param: "waf_stage_id", value: request.wafStageId },
@@ -61,6 +61,7 @@ const unmarshalCacheStage = (data) => {
61
61
  createdAt: unmarshalDate(data.created_at),
62
62
  fallbackTtl: data.fallback_ttl,
63
63
  id: data.id,
64
+ includeCookies: data.include_cookies,
64
65
  pipelineId: data.pipeline_id,
65
66
  routeStageId: data.route_stage_id,
66
67
  updatedAt: unmarshalDate(data.updated_at),
@@ -604,6 +605,7 @@ const marshalCreateBackendStageRequest = (request, defaults) => ({
604
605
  });
605
606
  const marshalCreateCacheStageRequest = (request, defaults) => ({
606
607
  fallback_ttl: request.fallbackTtl,
608
+ include_cookies: request.includeCookies,
607
609
  ...resolveOneOf([
608
610
  { param: "backend_stage_id", value: request.backendStageId },
609
611
  { param: "waf_stage_id", value: request.wafStageId },
@@ -710,6 +712,7 @@ const marshalUpdateBackendStageRequest = (request, defaults) => ({
710
712
  });
711
713
  const marshalUpdateCacheStageRequest = (request, defaults) => ({
712
714
  fallback_ttl: request.fallbackTtl,
715
+ include_cookies: request.includeCookies,
713
716
  ...resolveOneOf([
714
717
  { param: "backend_stage_id", value: request.backendStageId },
715
718
  { param: "waf_stage_id", value: request.wafStageId },
@@ -144,6 +144,10 @@ export interface CacheStage {
144
144
  * Time To Live (TTL) in seconds. Defines how long content is cached.
145
145
  */
146
146
  fallbackTtl?: string;
147
+ /**
148
+ * Defines whether responses to requests with cookies must be stored in the cache.
149
+ */
150
+ includeCookies: boolean;
147
151
  /**
148
152
  * Date the cache stage was created.
149
153
  */
@@ -583,6 +587,10 @@ export type CreateCacheStageRequest = {
583
587
  * Time To Live (TTL) in seconds. Defines how long content is cached.
584
588
  */
585
589
  fallbackTtl?: string;
590
+ /**
591
+ * Defines whether responses to requests with cookies must be stored in the cache.
592
+ */
593
+ includeCookies?: boolean;
586
594
  /**
587
595
  * Backend stage ID the cache stage will be linked to.
588
596
  *
@@ -1300,6 +1308,10 @@ export type UpdateCacheStageRequest = {
1300
1308
  * Time To Live (TTL) in seconds. Defines how long content is cached.
1301
1309
  */
1302
1310
  fallbackTtl?: string;
1311
+ /**
1312
+ * Defines whether responses to requests with cookies must be stored in the cache.
1313
+ */
1314
+ includeCookies?: boolean;
1303
1315
  /**
1304
1316
  * Backend stage ID the cache stage will be linked to.
1305
1317
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-edge-services",
3
- "version": "1.0.5",
3
+ "version": "1.1.0",
4
4
  "description": "Scaleway SDK edge-services",
5
5
  "license": "Apache-2.0",
6
6
  "files": [