@scaleway/sdk-edge-services 2.5.0 → 2.6.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.
@@ -191,7 +191,8 @@ var unmarshalRouteRule = (data) => {
191
191
  backendStageId: data.backend_stage_id,
192
192
  position: data.position,
193
193
  routeStageId: data.route_stage_id,
194
- ruleHttpMatch: data.rule_http_match ? unmarshalRuleHttpMatch(data.rule_http_match) : void 0
194
+ ruleHttpMatch: data.rule_http_match ? unmarshalRuleHttpMatch(data.rule_http_match) : void 0,
195
+ wafStageId: data.waf_stage_id
195
196
  };
196
197
  };
197
198
  const unmarshalAddRouteRulesResponse = (data) => {
@@ -365,6 +366,9 @@ const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
365
366
  ...resolveOneOf([{
366
367
  param: "backend_stage_id",
367
368
  value: request.backendStageId
369
+ }, {
370
+ param: "waf_stage_id",
371
+ value: request.wafStageId
368
372
  }])
369
373
  });
370
374
  const marshalAddRouteRulesRequest = (request, defaults) => ({
@@ -406,9 +406,14 @@ export interface SetRouteRulesRequestRouteRule {
406
406
  /**
407
407
  * ID of the backend stage that requests matching the rule should be forwarded to.
408
408
  *
409
- * One-of ('next'): at most one of 'backendStageId' could be set.
409
+ * One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
410
410
  */
411
411
  backendStageId?: string;
412
+ /**
413
+ *
414
+ * One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
415
+ */
416
+ wafStageId?: string;
412
417
  }
413
418
  export interface RouteRule {
414
419
  /**
@@ -420,7 +425,7 @@ export interface RouteRule {
420
425
  /**
421
426
  * ID of the backend stage that requests matching the rule should be forwarded to.
422
427
  *
423
- * One-of ('next'): at most one of 'backendStageId' could be set.
428
+ * One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
424
429
  */
425
430
  backendStageId?: string;
426
431
  /**
@@ -431,6 +436,11 @@ export interface RouteRule {
431
436
  * Route stage ID the route rule belongs to.
432
437
  */
433
438
  routeStageId: string;
439
+ /**
440
+ *
441
+ * One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
442
+ */
443
+ wafStageId?: string;
434
444
  }
435
445
  export interface CheckPEMChainRequestSecretChain {
436
446
  secretId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-edge-services",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Scaleway SDK edge-services",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.0"
30
+ "@scaleway/sdk-std": "2.2.1"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.0"
33
+ "@scaleway/sdk-client": "^2.2.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.0"
36
+ "@scaleway/sdk-client": "^2.2.1"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",