@scaleway/sdk-edge-services 2.6.0 → 2.7.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,7 +300,7 @@ 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
306
  /**
@@ -311,6 +311,11 @@ export interface RouteStage {
311
311
  * Date the route stage was last updated.
312
312
  */
313
313
  updatedAt?: Date;
314
+ /**
315
+ *
316
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
317
+ */
318
+ backendStageId?: string;
314
319
  }
315
320
  export interface TLSStage {
316
321
  /**
@@ -733,9 +738,14 @@ export type CreateRouteStageRequest = {
733
738
  /**
734
739
  * ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
735
740
  *
736
- * One-of ('next'): at most one of 'wafStageId' could be set.
741
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
737
742
  */
738
743
  wafStageId?: string;
744
+ /**
745
+ *
746
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
747
+ */
748
+ backendStageId?: string;
739
749
  };
740
750
  export type CreateTLSStageRequest = {
741
751
  /**
@@ -1457,9 +1467,14 @@ export type UpdateRouteStageRequest = {
1457
1467
  /**
1458
1468
  * ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
1459
1469
  *
1460
- * One-of ('next'): at most one of 'wafStageId' could be set.
1470
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
1461
1471
  */
1462
1472
  wafStageId?: string;
1473
+ /**
1474
+ *
1475
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
1476
+ */
1477
+ backendStageId?: string;
1463
1478
  };
1464
1479
  export type UpdateTLSStageRequest = {
1465
1480
  /**
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.7.0",
4
4
  "description": "Scaleway SDK edge-services",
5
5
  "license": "Apache-2.0",
6
6
  "files": [