@scaleway/sdk-edge-services 1.3.0 → 2.1.1
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.
- package/README.md +96 -0
- package/dist/v1beta1/api.gen.d.ts +2 -2
- package/dist/v1beta1/api.gen.js +66 -105
- package/dist/v1beta1/content.gen.js +3 -1
- package/dist/v1beta1/index.gen.d.ts +2 -2
- package/dist/v1beta1/marshalling.gen.js +159 -61
- package/dist/v1beta1/types.gen.d.ts +32 -6
- package/package.json +6 -9
- package/dist/index.gen.cjs +0 -4
- package/dist/v1beta1/api.gen.cjs +0 -895
- package/dist/v1beta1/content.gen.cjs +0 -8
- package/dist/v1beta1/index.gen.cjs +0 -62
- package/dist/v1beta1/marshalling.gen.cjs +0 -812
- package/dist/v1beta1/validation-rules.gen.cjs +0 -23
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# @scaleway/sdk-edge-services
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@scaleway/sdk-edge-services)
|
|
4
|
+
[](https://www.npmjs.com/package/@scaleway/sdk-edge-services)
|
|
5
|
+
[](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE)
|
|
6
|
+
|
|
7
|
+
Scaleway SDK for Edge Services API.
|
|
8
|
+
|
|
9
|
+
> **Note**
|
|
10
|
+
> This is an automatically generated package that is part of the [Scaleway SDK for JavaScript](https://github.com/scaleway/scaleway-sdk-js).
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @scaleway/sdk-edge-services @scaleway/sdk-client
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
or with pnpm:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pnpm add @scaleway/sdk-edge-services @scaleway/sdk-client
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
or with yarn:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
yarn add @scaleway/sdk-edge-services @scaleway/sdk-client
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Getting Started
|
|
31
|
+
|
|
32
|
+
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/) on how to retrieve them.
|
|
33
|
+
|
|
34
|
+
### Basic Usage
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { createClient } from '@scaleway/sdk-client'
|
|
38
|
+
import { EdgeServices } from '@scaleway/sdk-edge-services'
|
|
39
|
+
|
|
40
|
+
const client = createClient({
|
|
41
|
+
accessKey: 'SCWXXXXXXXXXXXXXXXXX',
|
|
42
|
+
secretKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
|
|
43
|
+
defaultProjectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
|
|
44
|
+
defaultRegion: 'fr-par',
|
|
45
|
+
defaultZone: 'fr-par-1',
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
const api = new EdgeServices.v1.API(client)
|
|
49
|
+
|
|
50
|
+
// Use the API
|
|
51
|
+
// Example: await api.listServers()
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Using Configuration Loader
|
|
55
|
+
|
|
56
|
+
For a simpler setup, you can load credentials from the configuration file or environment variables:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { createClient } from '@scaleway/sdk-client'
|
|
60
|
+
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
|
|
61
|
+
import { EdgeServices } from '@scaleway/sdk-edge-services'
|
|
62
|
+
|
|
63
|
+
const profile = loadProfileFromConfigurationFile()
|
|
64
|
+
const client = createClient(profile)
|
|
65
|
+
const api = new EdgeServices.v1.API(client)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Documentation
|
|
69
|
+
|
|
70
|
+
- 📚 [Scaleway SDK Reference Documentation](https://scaleway.github.io/scaleway-sdk-js)
|
|
71
|
+
- 🌐 [Scaleway Edge Services API Documentation](https://www.scaleway.com/en/developers/api/edge-services/)
|
|
72
|
+
- 📖 [Main Repository](https://github.com/scaleway/scaleway-sdk-js)
|
|
73
|
+
- 💡 [Example Projects](https://github.com/scaleway/scaleway-sdk-js/tree/master/examples)
|
|
74
|
+
|
|
75
|
+
## Features
|
|
76
|
+
|
|
77
|
+
- ✅ Full TypeScript support with complete type definitions
|
|
78
|
+
- ✅ Promise-based API
|
|
79
|
+
- ✅ Automatic pagination helpers
|
|
80
|
+
- ✅ Built-in error handling
|
|
81
|
+
- ✅ Compatible with Node.js ≥ 20
|
|
82
|
+
|
|
83
|
+
## Support
|
|
84
|
+
|
|
85
|
+
We love feedback! Feel free to reach us on:
|
|
86
|
+
- [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
|
|
87
|
+
- [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
|
|
88
|
+
|
|
89
|
+
## Contributing
|
|
90
|
+
|
|
91
|
+
This repository is at its early stage and is still in active development. If you are looking for a way to contribute, please read [CONTRIBUTING.md](https://github.com/scaleway/scaleway-sdk-js/blob/master/CONTRIBUTING.md).
|
|
92
|
+
|
|
93
|
+
## License
|
|
94
|
+
|
|
95
|
+
This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
|
|
96
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
1
|
import type { WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
-
import
|
|
2
|
+
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
+
import type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteWafStageRequest, DNSStage, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetWafStageRequest, HeadStageResponse, ListBackendStagesRequest, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListPipelinesRequest, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesResponse, ListWafStagesRequest, ListWafStagesResponse, Pipeline, Plan, PurgeRequest, RouteStage, SearchBackendStagesRequest, SearchRouteRulesRequest, SearchWafStagesRequest, SelectPlanRequest, SetHeadStageRequest, SetRouteRulesRequest, SetRouteRulesResponse, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, WafStage } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Edge Services API.
|
|
6
6
|
*/
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -15,10 +15,7 @@ class API extends API$1 {
|
|
|
15
15
|
["order_by", request.orderBy],
|
|
16
16
|
["organization_id", request.organizationId],
|
|
17
17
|
["page", request.page],
|
|
18
|
-
[
|
|
19
|
-
"page_size",
|
|
20
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
21
|
-
],
|
|
18
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
22
19
|
["project_id", request.projectId]
|
|
23
20
|
)
|
|
24
21
|
},
|
|
@@ -69,9 +66,7 @@ class API extends API$1 {
|
|
|
69
66
|
* @returns A Promise of Pipeline
|
|
70
67
|
*/
|
|
71
68
|
waitForPipeline = (request, options) => waitForResource(
|
|
72
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
73
|
-
!PIPELINE_TRANSIENT_STATUSES.includes(res.status)
|
|
74
|
-
)),
|
|
69
|
+
options?.stop ?? ((res) => Promise.resolve(!PIPELINE_TRANSIENT_STATUSES.includes(res.status))),
|
|
75
70
|
this.getPipeline,
|
|
76
71
|
request,
|
|
77
72
|
options
|
|
@@ -85,20 +80,13 @@ class API extends API$1 {
|
|
|
85
80
|
["order_by", request.orderBy],
|
|
86
81
|
["organization_id", request.organizationId],
|
|
87
82
|
["page", request.page],
|
|
88
|
-
[
|
|
89
|
-
"page_size",
|
|
90
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
91
|
-
],
|
|
83
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
92
84
|
["project_id", request.projectId]
|
|
93
85
|
)
|
|
94
86
|
},
|
|
95
87
|
unmarshalListPipelinesWithStagesResponse
|
|
96
88
|
);
|
|
97
|
-
listPipelinesWithStages = (request = {}) => enrichForPagination(
|
|
98
|
-
"pipelines",
|
|
99
|
-
this.pageOfListPipelinesWithStages,
|
|
100
|
-
request
|
|
101
|
-
);
|
|
89
|
+
listPipelinesWithStages = (request = {}) => enrichForPagination("pipelines", this.pageOfListPipelinesWithStages, request);
|
|
102
90
|
/**
|
|
103
91
|
* Update pipeline. Update the parameters of an existing pipeline, specified by its `pipeline_id`. Parameters which can be updated include the `name`, `description` and `dns_stage_id`.
|
|
104
92
|
*
|
|
@@ -121,20 +109,19 @@ class API extends API$1 {
|
|
|
121
109
|
*
|
|
122
110
|
* @param request - The request {@link DeletePipelineRequest}
|
|
123
111
|
*/
|
|
124
|
-
deletePipeline = (request) => this.client.fetch(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
112
|
+
deletePipeline = (request) => this.client.fetch(
|
|
113
|
+
{
|
|
114
|
+
method: "DELETE",
|
|
115
|
+
path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}`
|
|
116
|
+
}
|
|
117
|
+
);
|
|
128
118
|
pageOfListHeadStages = (request) => this.client.fetch(
|
|
129
119
|
{
|
|
130
120
|
method: "GET",
|
|
131
121
|
path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/head-stages`,
|
|
132
122
|
urlParams: urlParams(
|
|
133
123
|
["page", request.page],
|
|
134
|
-
[
|
|
135
|
-
"page_size",
|
|
136
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
137
|
-
]
|
|
124
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
138
125
|
)
|
|
139
126
|
},
|
|
140
127
|
unmarshalListHeadStagesResponse
|
|
@@ -165,10 +152,7 @@ class API extends API$1 {
|
|
|
165
152
|
["fqdn", request.fqdn],
|
|
166
153
|
["order_by", request.orderBy],
|
|
167
154
|
["page", request.page],
|
|
168
|
-
[
|
|
169
|
-
"page_size",
|
|
170
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
171
|
-
]
|
|
155
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
172
156
|
)
|
|
173
157
|
},
|
|
174
158
|
unmarshalListDNSStagesResponse
|
|
@@ -232,10 +216,12 @@ class API extends API$1 {
|
|
|
232
216
|
*
|
|
233
217
|
* @param request - The request {@link DeleteDNSStageRequest}
|
|
234
218
|
*/
|
|
235
|
-
deleteDNSStage = (request) => this.client.fetch(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
219
|
+
deleteDNSStage = (request) => this.client.fetch(
|
|
220
|
+
{
|
|
221
|
+
method: "DELETE",
|
|
222
|
+
path: `/edge-services/v1beta1/dns-stages/${validatePathParam("dnsStageId", request.dnsStageId)}`
|
|
223
|
+
}
|
|
224
|
+
);
|
|
239
225
|
pageOfListTLSStages = (request) => this.client.fetch(
|
|
240
226
|
{
|
|
241
227
|
method: "GET",
|
|
@@ -243,10 +229,7 @@ class API extends API$1 {
|
|
|
243
229
|
urlParams: urlParams(
|
|
244
230
|
["order_by", request.orderBy],
|
|
245
231
|
["page", request.page],
|
|
246
|
-
[
|
|
247
|
-
"page_size",
|
|
248
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
249
|
-
],
|
|
232
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
250
233
|
["secret_id", request.secretId],
|
|
251
234
|
["secret_region", request.secretRegion]
|
|
252
235
|
)
|
|
@@ -312,10 +295,12 @@ class API extends API$1 {
|
|
|
312
295
|
*
|
|
313
296
|
* @param request - The request {@link DeleteTLSStageRequest}
|
|
314
297
|
*/
|
|
315
|
-
deleteTLSStage = (request) => this.client.fetch(
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
298
|
+
deleteTLSStage = (request) => this.client.fetch(
|
|
299
|
+
{
|
|
300
|
+
method: "DELETE",
|
|
301
|
+
path: `/edge-services/v1beta1/tls-stages/${validatePathParam("tlsStageId", request.tlsStageId)}`
|
|
302
|
+
}
|
|
303
|
+
);
|
|
319
304
|
pageOfListCacheStages = (request) => this.client.fetch(
|
|
320
305
|
{
|
|
321
306
|
method: "GET",
|
|
@@ -323,10 +308,7 @@ class API extends API$1 {
|
|
|
323
308
|
urlParams: urlParams(
|
|
324
309
|
["order_by", request.orderBy],
|
|
325
310
|
["page", request.page],
|
|
326
|
-
[
|
|
327
|
-
"page_size",
|
|
328
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
329
|
-
]
|
|
311
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
330
312
|
)
|
|
331
313
|
},
|
|
332
314
|
unmarshalListCacheStagesResponse
|
|
@@ -390,10 +372,12 @@ class API extends API$1 {
|
|
|
390
372
|
*
|
|
391
373
|
* @param request - The request {@link DeleteCacheStageRequest}
|
|
392
374
|
*/
|
|
393
|
-
deleteCacheStage = (request) => this.client.fetch(
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
375
|
+
deleteCacheStage = (request) => this.client.fetch(
|
|
376
|
+
{
|
|
377
|
+
method: "DELETE",
|
|
378
|
+
path: `/edge-services/v1beta1/cache-stages/${validatePathParam("cacheStageId", request.cacheStageId)}`
|
|
379
|
+
}
|
|
380
|
+
);
|
|
397
381
|
pageOfListBackendStages = (request) => this.client.fetch(
|
|
398
382
|
{
|
|
399
383
|
method: "GET",
|
|
@@ -404,10 +388,7 @@ class API extends API$1 {
|
|
|
404
388
|
["lb_id", request.lbId],
|
|
405
389
|
["order_by", request.orderBy],
|
|
406
390
|
["page", request.page],
|
|
407
|
-
[
|
|
408
|
-
"page_size",
|
|
409
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
410
|
-
]
|
|
391
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
411
392
|
)
|
|
412
393
|
},
|
|
413
394
|
unmarshalListBackendStagesResponse
|
|
@@ -471,10 +452,12 @@ class API extends API$1 {
|
|
|
471
452
|
*
|
|
472
453
|
* @param request - The request {@link DeleteBackendStageRequest}
|
|
473
454
|
*/
|
|
474
|
-
deleteBackendStage = (request) => this.client.fetch(
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
455
|
+
deleteBackendStage = (request) => this.client.fetch(
|
|
456
|
+
{
|
|
457
|
+
method: "DELETE",
|
|
458
|
+
path: `/edge-services/v1beta1/backend-stages/${validatePathParam("backendStageId", request.backendStageId)}`
|
|
459
|
+
}
|
|
460
|
+
);
|
|
478
461
|
searchBackendStages = (request = {}) => this.client.fetch(
|
|
479
462
|
{
|
|
480
463
|
method: "GET",
|
|
@@ -485,14 +468,8 @@ class API extends API$1 {
|
|
|
485
468
|
["lb_id", request.lbId],
|
|
486
469
|
["order_by", request.orderBy],
|
|
487
470
|
["page", request.page],
|
|
488
|
-
[
|
|
489
|
-
|
|
490
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
491
|
-
],
|
|
492
|
-
[
|
|
493
|
-
"project_id",
|
|
494
|
-
request.projectId ?? this.client.settings.defaultProjectId
|
|
495
|
-
]
|
|
471
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
472
|
+
["project_id", request.projectId ?? this.client.settings.defaultProjectId]
|
|
496
473
|
)
|
|
497
474
|
},
|
|
498
475
|
unmarshalListBackendStagesResponse
|
|
@@ -504,10 +481,7 @@ class API extends API$1 {
|
|
|
504
481
|
urlParams: urlParams(
|
|
505
482
|
["order_by", request.orderBy],
|
|
506
483
|
["page", request.page],
|
|
507
|
-
[
|
|
508
|
-
"page_size",
|
|
509
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
510
|
-
]
|
|
484
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
511
485
|
)
|
|
512
486
|
},
|
|
513
487
|
unmarshalListWafStagesResponse
|
|
@@ -571,10 +545,12 @@ class API extends API$1 {
|
|
|
571
545
|
*
|
|
572
546
|
* @param request - The request {@link DeleteWafStageRequest}
|
|
573
547
|
*/
|
|
574
|
-
deleteWafStage = (request) => this.client.fetch(
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
548
|
+
deleteWafStage = (request) => this.client.fetch(
|
|
549
|
+
{
|
|
550
|
+
method: "DELETE",
|
|
551
|
+
path: `/edge-services/v1beta1/waf-stages/${validatePathParam("wafStageId", request.wafStageId)}`
|
|
552
|
+
}
|
|
553
|
+
);
|
|
578
554
|
searchWafStages = (request = {}) => this.client.fetch(
|
|
579
555
|
{
|
|
580
556
|
method: "GET",
|
|
@@ -582,14 +558,8 @@ class API extends API$1 {
|
|
|
582
558
|
urlParams: urlParams(
|
|
583
559
|
["order_by", request.orderBy],
|
|
584
560
|
["page", request.page],
|
|
585
|
-
[
|
|
586
|
-
|
|
587
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
588
|
-
],
|
|
589
|
-
[
|
|
590
|
-
"project_id",
|
|
591
|
-
request.projectId ?? this.client.settings.defaultProjectId
|
|
592
|
-
]
|
|
561
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
562
|
+
["project_id", request.projectId ?? this.client.settings.defaultProjectId]
|
|
593
563
|
)
|
|
594
564
|
},
|
|
595
565
|
unmarshalListWafStagesResponse
|
|
@@ -601,10 +571,7 @@ class API extends API$1 {
|
|
|
601
571
|
urlParams: urlParams(
|
|
602
572
|
["order_by", request.orderBy],
|
|
603
573
|
["page", request.page],
|
|
604
|
-
[
|
|
605
|
-
"page_size",
|
|
606
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
607
|
-
]
|
|
574
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
608
575
|
)
|
|
609
576
|
},
|
|
610
577
|
unmarshalListRouteStagesResponse
|
|
@@ -668,10 +635,12 @@ class API extends API$1 {
|
|
|
668
635
|
*
|
|
669
636
|
* @param request - The request {@link DeleteRouteStageRequest}
|
|
670
637
|
*/
|
|
671
|
-
deleteRouteStage = (request) => this.client.fetch(
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
638
|
+
deleteRouteStage = (request) => this.client.fetch(
|
|
639
|
+
{
|
|
640
|
+
method: "DELETE",
|
|
641
|
+
path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}`
|
|
642
|
+
}
|
|
643
|
+
);
|
|
675
644
|
/**
|
|
676
645
|
* List route rules. List all route rules of an existing route stage, specified by its `route_stage_id`.
|
|
677
646
|
*
|
|
@@ -733,10 +702,7 @@ class API extends API$1 {
|
|
|
733
702
|
["order_by", request.orderBy],
|
|
734
703
|
["organization_id", request.organizationId],
|
|
735
704
|
["page", request.page],
|
|
736
|
-
[
|
|
737
|
-
"page_size",
|
|
738
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
739
|
-
],
|
|
705
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
740
706
|
["project_id", request.projectId]
|
|
741
707
|
)
|
|
742
708
|
},
|
|
@@ -772,10 +738,7 @@ class API extends API$1 {
|
|
|
772
738
|
["order_by", request.orderBy],
|
|
773
739
|
["organization_id", request.organizationId],
|
|
774
740
|
["page", request.page],
|
|
775
|
-
[
|
|
776
|
-
"page_size",
|
|
777
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
778
|
-
],
|
|
741
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
779
742
|
["pipeline_id", request.pipelineId],
|
|
780
743
|
["project_id", request.projectId]
|
|
781
744
|
)
|
|
@@ -827,11 +790,7 @@ class API extends API$1 {
|
|
|
827
790
|
* @returns A Promise of PurgeRequest
|
|
828
791
|
*/
|
|
829
792
|
waitForPurgeRequest = (request, options) => waitForResource(
|
|
830
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
831
|
-
!PURGE_REQUEST_TRANSIENT_STATUSES.includes(
|
|
832
|
-
res.status
|
|
833
|
-
)
|
|
834
|
-
)),
|
|
793
|
+
options?.stop ?? ((res) => Promise.resolve(!PURGE_REQUEST_TRANSIENT_STATUSES.includes(res.status))),
|
|
835
794
|
this.getPurgeRequest,
|
|
836
795
|
request,
|
|
837
796
|
options
|
|
@@ -872,10 +831,12 @@ class API extends API$1 {
|
|
|
872
831
|
},
|
|
873
832
|
unmarshalPlan
|
|
874
833
|
);
|
|
875
|
-
deleteCurrentPlan = (request = {}) => this.client.fetch(
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
834
|
+
deleteCurrentPlan = (request = {}) => this.client.fetch(
|
|
835
|
+
{
|
|
836
|
+
method: "DELETE",
|
|
837
|
+
path: `/edge-services/v1beta1/current-plan/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
838
|
+
}
|
|
839
|
+
);
|
|
879
840
|
/**
|
|
880
841
|
* Gives information on the currently selected Edge Services subscription plan, resource usage and associated billing information for this calendar month (including whether consumption falls within or exceeds the currently selected subscription plan.).
|
|
881
842
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { API } from './api.gen.js';
|
|
1
|
+
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
|
-
export type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest,
|
|
4
|
+
export type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteWafStageRequest, DNSStage, DNSStageType, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetWafStageRequest, HeadStageResponse, HeadStageResponseHeadStage, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListHeadStagesResponseHeadStage, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesRequestOrderBy, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, ListWafStagesRequest, ListWafStagesRequestOrderBy, ListWafStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStages, PipelineStatus, Plan, PlanDetails, PlanName, PlanUsageDetails, PurgeRequest, PurgeRequestStatus, RouteRule, RouteStage, RuleHttpMatch, RuleHttpMatchMethodFilter, RuleHttpMatchPathFilter, RuleHttpMatchPathFilterPathFilterType, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, ScalewayServerlessContainerBackendConfig, SearchBackendStagesRequest, SearchBackendStagesRequestOrderBy, SearchRouteRulesRequest, SearchRouteRulesRequestOrderBy, SearchWafStagesRequest, SearchWafStagesRequestOrderBy, SelectPlanRequest, SetHeadStageRequest, SetHeadStageRequestAddNewHeadStage, SetHeadStageRequestRemoveHeadStage, SetHeadStageRequestSwapHeadStage, SetRouteRulesRequest, SetRouteRulesRequestRouteRule, SetRouteRulesResponse, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, WafStage, WafStageMode, } from './types.gen.js';
|
|
5
5
|
export * as ValidationRules from './validation-rules.gen.js';
|