@scaleway/sdk-edge-services 2.6.0 → 2.8.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.
@@ -105,6 +105,7 @@ const unmarshalPipeline = (data) => {
105
105
  const unmarshalRouteStage = (data) => {
106
106
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteStage' failed as data isn't a dictionary.`);
107
107
  return {
108
+ backendStageId: data.backend_stage_id,
108
109
  createdAt: unmarshalDate(data.created_at),
109
110
  id: data.id,
110
111
  pipelineId: data.pipeline_id,
@@ -495,6 +496,9 @@ const marshalCreatePurgeRequestRequest = (request, defaults) => ({
495
496
  const marshalCreateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
496
497
  param: "waf_stage_id",
497
498
  value: request.wafStageId
499
+ }, {
500
+ param: "backend_stage_id",
501
+ value: request.backendStageId
498
502
  }]) });
499
503
  var marshalTLSSecret = (request, defaults) => ({
500
504
  region: request.region,
@@ -618,6 +622,9 @@ const marshalUpdatePipelineRequest = (request, defaults) => ({
618
622
  const marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
619
623
  param: "waf_stage_id",
620
624
  value: request.wafStageId
625
+ }, {
626
+ param: "backend_stage_id",
627
+ value: request.backendStageId
621
628
  }]) });
622
629
  var marshalTLSSecretsConfig = (request, defaults) => ({ tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt, defaults)) });
623
630
  const marshalUpdateTLSStageRequest = (request, defaults) => ({
@@ -300,9 +300,15 @@ export interface RouteStage {
300
300
  /**
301
301
  * ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
302
302
  *
303
- * One-of ('next'): at most one of 'wafStageId' could be set.
303
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
304
304
  */
305
305
  wafStageId?: string;
306
+ /**
307
+ * ID of the backend stage HTTP requests should be forwarded to when no rules are matched.
308
+ *
309
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
310
+ */
311
+ backendStageId?: string;
306
312
  /**
307
313
  * Date the route stage was created.
308
314
  */
@@ -410,6 +416,7 @@ export interface SetRouteRulesRequestRouteRule {
410
416
  */
411
417
  backendStageId?: string;
412
418
  /**
419
+ * ID of the WAF stage that requests matching the rule should be forwarded to.
413
420
  *
414
421
  * One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
415
422
  */
@@ -437,6 +444,7 @@ export interface RouteRule {
437
444
  */
438
445
  routeStageId: string;
439
446
  /**
447
+ * ID of the WAF stage that requests matching the rule should be forwarded to.
440
448
  *
441
449
  * One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
442
450
  */
@@ -733,9 +741,14 @@ export type CreateRouteStageRequest = {
733
741
  /**
734
742
  * ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
735
743
  *
736
- * One-of ('next'): at most one of 'wafStageId' could be set.
744
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
737
745
  */
738
746
  wafStageId?: string;
747
+ /**
748
+ *
749
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
750
+ */
751
+ backendStageId?: string;
739
752
  };
740
753
  export type CreateTLSStageRequest = {
741
754
  /**
@@ -1457,9 +1470,14 @@ export type UpdateRouteStageRequest = {
1457
1470
  /**
1458
1471
  * ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
1459
1472
  *
1460
- * One-of ('next'): at most one of 'wafStageId' could be set.
1473
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
1461
1474
  */
1462
1475
  wafStageId?: string;
1476
+ /**
1477
+ *
1478
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
1479
+ */
1480
+ backendStageId?: string;
1463
1481
  };
1464
1482
  export type UpdateTLSStageRequest = {
1465
1483
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-edge-services",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "Scaleway SDK edge-services",
5
5
  "license": "Apache-2.0",
6
6
  "files": [