@scaleway/sdk-edge-services 2.5.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,
|
|
@@ -191,7 +192,8 @@ var unmarshalRouteRule = (data) => {
|
|
|
191
192
|
backendStageId: data.backend_stage_id,
|
|
192
193
|
position: data.position,
|
|
193
194
|
routeStageId: data.route_stage_id,
|
|
194
|
-
ruleHttpMatch: data.rule_http_match ? unmarshalRuleHttpMatch(data.rule_http_match) : void 0
|
|
195
|
+
ruleHttpMatch: data.rule_http_match ? unmarshalRuleHttpMatch(data.rule_http_match) : void 0,
|
|
196
|
+
wafStageId: data.waf_stage_id
|
|
195
197
|
};
|
|
196
198
|
};
|
|
197
199
|
const unmarshalAddRouteRulesResponse = (data) => {
|
|
@@ -365,6 +367,9 @@ const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
|
|
|
365
367
|
...resolveOneOf([{
|
|
366
368
|
param: "backend_stage_id",
|
|
367
369
|
value: request.backendStageId
|
|
370
|
+
}, {
|
|
371
|
+
param: "waf_stage_id",
|
|
372
|
+
value: request.wafStageId
|
|
368
373
|
}])
|
|
369
374
|
});
|
|
370
375
|
const marshalAddRouteRulesRequest = (request, defaults) => ({
|
|
@@ -491,6 +496,9 @@ const marshalCreatePurgeRequestRequest = (request, defaults) => ({
|
|
|
491
496
|
const marshalCreateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
492
497
|
param: "waf_stage_id",
|
|
493
498
|
value: request.wafStageId
|
|
499
|
+
}, {
|
|
500
|
+
param: "backend_stage_id",
|
|
501
|
+
value: request.backendStageId
|
|
494
502
|
}]) });
|
|
495
503
|
var marshalTLSSecret = (request, defaults) => ({
|
|
496
504
|
region: request.region,
|
|
@@ -614,6 +622,9 @@ const marshalUpdatePipelineRequest = (request, defaults) => ({
|
|
|
614
622
|
const marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
615
623
|
param: "waf_stage_id",
|
|
616
624
|
value: request.wafStageId
|
|
625
|
+
}, {
|
|
626
|
+
param: "backend_stage_id",
|
|
627
|
+
value: request.backendStageId
|
|
617
628
|
}]) });
|
|
618
629
|
var marshalTLSSecretsConfig = (request, defaults) => ({ tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt, defaults)) });
|
|
619
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
|
/**
|
|
@@ -406,9 +411,14 @@ export interface SetRouteRulesRequestRouteRule {
|
|
|
406
411
|
/**
|
|
407
412
|
* ID of the backend stage that requests matching the rule should be forwarded to.
|
|
408
413
|
*
|
|
409
|
-
* One-of ('next'): at most one of 'backendStageId' could be set.
|
|
414
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
|
|
410
415
|
*/
|
|
411
416
|
backendStageId?: string;
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
|
|
420
|
+
*/
|
|
421
|
+
wafStageId?: string;
|
|
412
422
|
}
|
|
413
423
|
export interface RouteRule {
|
|
414
424
|
/**
|
|
@@ -420,7 +430,7 @@ export interface RouteRule {
|
|
|
420
430
|
/**
|
|
421
431
|
* ID of the backend stage that requests matching the rule should be forwarded to.
|
|
422
432
|
*
|
|
423
|
-
* One-of ('next'): at most one of 'backendStageId' could be set.
|
|
433
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
|
|
424
434
|
*/
|
|
425
435
|
backendStageId?: string;
|
|
426
436
|
/**
|
|
@@ -431,6 +441,11 @@ export interface RouteRule {
|
|
|
431
441
|
* Route stage ID the route rule belongs to.
|
|
432
442
|
*/
|
|
433
443
|
routeStageId: string;
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
|
|
447
|
+
*/
|
|
448
|
+
wafStageId?: string;
|
|
434
449
|
}
|
|
435
450
|
export interface CheckPEMChainRequestSecretChain {
|
|
436
451
|
secretId: string;
|
|
@@ -723,9 +738,14 @@ export type CreateRouteStageRequest = {
|
|
|
723
738
|
/**
|
|
724
739
|
* ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
|
|
725
740
|
*
|
|
726
|
-
* One-of ('next'): at most one of 'wafStageId' could be set.
|
|
741
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
727
742
|
*/
|
|
728
743
|
wafStageId?: string;
|
|
744
|
+
/**
|
|
745
|
+
*
|
|
746
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
747
|
+
*/
|
|
748
|
+
backendStageId?: string;
|
|
729
749
|
};
|
|
730
750
|
export type CreateTLSStageRequest = {
|
|
731
751
|
/**
|
|
@@ -1447,9 +1467,14 @@ export type UpdateRouteStageRequest = {
|
|
|
1447
1467
|
/**
|
|
1448
1468
|
* ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
|
|
1449
1469
|
*
|
|
1450
|
-
* One-of ('next'): at most one of 'wafStageId' could be set.
|
|
1470
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
1451
1471
|
*/
|
|
1452
1472
|
wafStageId?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
*
|
|
1475
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
1476
|
+
*/
|
|
1477
|
+
backendStageId?: string;
|
|
1453
1478
|
};
|
|
1454
1479
|
export type UpdateTLSStageRequest = {
|
|
1455
1480
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-edge-services",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.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.
|
|
30
|
+
"@scaleway/sdk-std": "2.2.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.1"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|