@scaleway/sdk-edge-services 2.25.1 → 2.26.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.
@@ -1,19 +1,19 @@
1
1
  import { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateVPCEndpointRequest, CreateWafStageRequest, DNSStage, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteVPCEndpointRequest, DeleteWafStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetVPCEndpointRequest, GetWafStageRequest, HeadStageResponse, ListBackendStagesRequest, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListHeadStagesResponseHeadStage, ListNodesResponse, ListPipelinesRequest, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesResponse, ListVPCEndpointsRequest, ListVPCEndpointsResponse, ListWafStagesRequest, ListWafStagesResponse, Pipeline, PipelineStages, Plan, PurgeRequest, RouteStage, SearchBackendStagesRequest, SearchRouteRulesRequest, SearchWafStagesRequest, SelectPlanRequest, SetHeadStageRequest, SetPipelineVPCEndpointsRequest, SetPipelineVPCEndpointsResponse, SetRouteRulesRequest, SetRouteRulesResponse, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, VPCEndpoint, WafStage } from "./types.gen.js";
2
- import { API, WaitForOptions } from "@scaleway/sdk-client";
2
+ import { API, RequestOptions, WaitForOptions } from "@scaleway/sdk-client";
3
3
  //#region src/v1beta1/api.gen.d.ts
4
4
  /**
5
5
  * Edge Services API.
6
6
  */
7
7
  declare class API$1 extends API {
8
- listNodes: () => Promise<ListNodesResponse>;
9
- protected pageOfListPipelines: (request?: Readonly<ListPipelinesRequest>) => Promise<ListPipelinesResponse>;
8
+ listNodes: (options?: RequestOptions) => Promise<ListNodesResponse>;
9
+ protected pageOfListPipelines: (request?: Readonly<ListPipelinesRequest>, options?: RequestOptions) => Promise<ListPipelinesResponse>;
10
10
  /**
11
11
  * List pipelines. List all pipelines, for a Scaleway Organization or Scaleway Project. By default, the pipelines returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
12
12
  *
13
13
  * @param request - The request {@link ListPipelinesRequest}
14
14
  * @returns A Promise of ListPipelinesResponse
15
15
  */
16
- listPipelines: (request?: Readonly<ListPipelinesRequest>) => Promise<ListPipelinesResponse> & {
16
+ listPipelines: (request?: Readonly<ListPipelinesRequest>, options?: RequestOptions) => Promise<ListPipelinesResponse> & {
17
17
  all: () => Promise<Pipeline[]>;
18
18
  [Symbol.asyncIterator]: () => AsyncGenerator<Pipeline[], void, void>;
19
19
  };
@@ -23,14 +23,14 @@ declare class API$1 extends API {
23
23
  * @param request - The request {@link CreatePipelineRequest}
24
24
  * @returns A Promise of Pipeline
25
25
  */
26
- createPipeline: (request: Readonly<CreatePipelineRequest>) => Promise<Pipeline>;
26
+ createPipeline: (request: Readonly<CreatePipelineRequest>, options?: RequestOptions) => Promise<Pipeline>;
27
27
  /**
28
28
  * Get pipeline. Retrieve information about an existing pipeline, specified by its `pipeline_id`. Its full details, including errors, are returned in the response object.
29
29
  *
30
30
  * @param request - The request {@link GetPipelineRequest}
31
31
  * @returns A Promise of Pipeline
32
32
  */
33
- getPipeline: (request: Readonly<GetPipelineRequest>) => Promise<Pipeline>;
33
+ getPipeline: (request: Readonly<GetPipelineRequest>, options?: RequestOptions) => Promise<Pipeline>;
34
34
  /**
35
35
  * Waits for {@link Pipeline} to be in a final state.
36
36
  *
@@ -39,8 +39,8 @@ declare class API$1 extends API {
39
39
  * @returns A Promise of Pipeline
40
40
  */
41
41
  waitForPipeline: (request: Readonly<GetPipelineRequest>, options?: Readonly<WaitForOptions<Pipeline>>) => Promise<Pipeline>;
42
- protected pageOfListPipelinesWithStages: (request?: Readonly<ListPipelinesWithStagesRequest>) => Promise<ListPipelinesWithStagesResponse>;
43
- listPipelinesWithStages: (request?: Readonly<ListPipelinesWithStagesRequest>) => Promise<ListPipelinesWithStagesResponse> & {
42
+ protected pageOfListPipelinesWithStages: (request?: Readonly<ListPipelinesWithStagesRequest>, options?: RequestOptions) => Promise<ListPipelinesWithStagesResponse>;
43
+ listPipelinesWithStages: (request?: Readonly<ListPipelinesWithStagesRequest>, options?: RequestOptions) => Promise<ListPipelinesWithStagesResponse> & {
44
44
  all: () => Promise<PipelineStages[]>;
45
45
  [Symbol.asyncIterator]: () => AsyncGenerator<PipelineStages[], void, void>;
46
46
  };
@@ -50,28 +50,28 @@ declare class API$1 extends API {
50
50
  * @param request - The request {@link UpdatePipelineRequest}
51
51
  * @returns A Promise of Pipeline
52
52
  */
53
- updatePipeline: (request: Readonly<UpdatePipelineRequest>) => Promise<Pipeline>;
53
+ updatePipeline: (request: Readonly<UpdatePipelineRequest>, options?: RequestOptions) => Promise<Pipeline>;
54
54
  /**
55
55
  * Delete pipeline. Delete an existing pipeline, specified by its `pipeline_id`. Deleting a pipeline is permanent, and cannot be undone. Note that all stages linked to the pipeline are also deleted.
56
56
  *
57
57
  * @param request - The request {@link DeletePipelineRequest}
58
58
  */
59
- deletePipeline: (request: Readonly<DeletePipelineRequest>) => Promise<void>;
59
+ deletePipeline: (request: Readonly<DeletePipelineRequest>, options?: RequestOptions) => Promise<void>;
60
60
  /**
61
61
  * Get VPC Endpoint. Retrieve information about an existing VPC Endpoint, specified by its `vpc_endpoint_id`.
62
62
  *
63
63
  * @param request - The request {@link GetVPCEndpointRequest}
64
64
  * @returns A Promise of VPCEndpoint
65
65
  */
66
- getVPCEndpoint: (request: Readonly<GetVPCEndpointRequest>) => Promise<VPCEndpoint>;
67
- protected pageOfListVPCEndpoints: (request?: Readonly<ListVPCEndpointsRequest>) => Promise<ListVPCEndpointsResponse>;
66
+ getVPCEndpoint: (request: Readonly<GetVPCEndpointRequest>, options?: RequestOptions) => Promise<VPCEndpoint>;
67
+ protected pageOfListVPCEndpoints: (request?: Readonly<ListVPCEndpointsRequest>, options?: RequestOptions) => Promise<ListVPCEndpointsResponse>;
68
68
  /**
69
69
  * List VPC Endpoints. List all VPC Endpoints, for a Scaleway Organization or Scaleway Project. By default, the VPC Endpoints returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
70
70
  *
71
71
  * @param request - The request {@link ListVPCEndpointsRequest}
72
72
  * @returns A Promise of ListVPCEndpointsResponse
73
73
  */
74
- listVPCEndpoints: (request?: Readonly<ListVPCEndpointsRequest>) => Promise<ListVPCEndpointsResponse> & {
74
+ listVPCEndpoints: (request?: Readonly<ListVPCEndpointsRequest>, options?: RequestOptions) => Promise<ListVPCEndpointsResponse> & {
75
75
  all: () => Promise<VPCEndpoint[]>;
76
76
  [Symbol.asyncIterator]: () => AsyncGenerator<VPCEndpoint[], void, void>;
77
77
  };
@@ -81,28 +81,28 @@ declare class API$1 extends API {
81
81
  * @param request - The request {@link CreateVPCEndpointRequest}
82
82
  * @returns A Promise of VPCEndpoint
83
83
  */
84
- createVPCEndpoint: (request: Readonly<CreateVPCEndpointRequest>) => Promise<VPCEndpoint>;
84
+ createVPCEndpoint: (request: Readonly<CreateVPCEndpointRequest>, options?: RequestOptions) => Promise<VPCEndpoint>;
85
85
  /**
86
86
  * Delete VPC Endpoint. Delete an existing VPC Endpoint, specified by its `vpc_endpoint_id`.
87
87
  *
88
88
  * @param request - The request {@link DeleteVPCEndpointRequest}
89
89
  */
90
- deleteVPCEndpoint: (request: Readonly<DeleteVPCEndpointRequest>) => Promise<void>;
90
+ deleteVPCEndpoint: (request: Readonly<DeleteVPCEndpointRequest>, options?: RequestOptions) => Promise<void>;
91
91
  /**
92
92
  * Attach VPC Endpoints. Attach VPC Endpoint to the given Pipeline. You must specify a `pipeline_id` and `vpc_endpoint_ids` which contains the list of VPC Endpoints.
93
93
  *
94
94
  * @param request - The request {@link SetPipelineVPCEndpointsRequest}
95
95
  * @returns A Promise of SetPipelineVPCEndpointsResponse
96
96
  */
97
- setPipelineVPCEndpoints: (request: Readonly<SetPipelineVPCEndpointsRequest>) => Promise<SetPipelineVPCEndpointsResponse>;
98
- protected pageOfListHeadStages: (request: Readonly<ListHeadStagesRequest>) => Promise<ListHeadStagesResponse>;
97
+ setPipelineVPCEndpoints: (request: Readonly<SetPipelineVPCEndpointsRequest>, options?: RequestOptions) => Promise<SetPipelineVPCEndpointsResponse>;
98
+ protected pageOfListHeadStages: (request: Readonly<ListHeadStagesRequest>, options?: RequestOptions) => Promise<ListHeadStagesResponse>;
99
99
  /**
100
100
  * List Head stage for your pipeline.. List Head stage for your pipeline.
101
101
  *
102
102
  * @param request - The request {@link ListHeadStagesRequest}
103
103
  * @returns A Promise of ListHeadStagesResponse
104
104
  */
105
- listHeadStages: (request: Readonly<ListHeadStagesRequest>) => Promise<ListHeadStagesResponse> & {
105
+ listHeadStages: (request: Readonly<ListHeadStagesRequest>, options?: RequestOptions) => Promise<ListHeadStagesResponse> & {
106
106
  all: () => Promise<ListHeadStagesResponseHeadStage[]>;
107
107
  [Symbol.asyncIterator]: () => AsyncGenerator<ListHeadStagesResponseHeadStage[], void, void>;
108
108
  };
@@ -112,15 +112,15 @@ declare class API$1 extends API {
112
112
  * @param request - The request {@link SetHeadStageRequest}
113
113
  * @returns A Promise of HeadStageResponse
114
114
  */
115
- setHeadStage: (request: Readonly<SetHeadStageRequest>) => Promise<HeadStageResponse>;
116
- protected pageOfListDNSStages: (request: Readonly<ListDNSStagesRequest>) => Promise<ListDNSStagesResponse>;
115
+ setHeadStage: (request: Readonly<SetHeadStageRequest>, options?: RequestOptions) => Promise<HeadStageResponse>;
116
+ protected pageOfListDNSStages: (request: Readonly<ListDNSStagesRequest>, options?: RequestOptions) => Promise<ListDNSStagesResponse>;
117
117
  /**
118
118
  * List DNS stages. List all DNS stages, for a Scaleway Organization or Scaleway Project. By default, the DNS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
119
119
  *
120
120
  * @param request - The request {@link ListDNSStagesRequest}
121
121
  * @returns A Promise of ListDNSStagesResponse
122
122
  */
123
- listDNSStages: (request: Readonly<ListDNSStagesRequest>) => Promise<ListDNSStagesResponse> & {
123
+ listDNSStages: (request: Readonly<ListDNSStagesRequest>, options?: RequestOptions) => Promise<ListDNSStagesResponse> & {
124
124
  all: () => Promise<DNSStage[]>;
125
125
  [Symbol.asyncIterator]: () => AsyncGenerator<DNSStage[], void, void>;
126
126
  };
@@ -130,35 +130,35 @@ declare class API$1 extends API {
130
130
  * @param request - The request {@link CreateDNSStageRequest}
131
131
  * @returns A Promise of DNSStage
132
132
  */
133
- createDNSStage: (request: Readonly<CreateDNSStageRequest>) => Promise<DNSStage>;
133
+ createDNSStage: (request: Readonly<CreateDNSStageRequest>, options?: RequestOptions) => Promise<DNSStage>;
134
134
  /**
135
135
  * Get DNS stage. Retrieve information about an existing DNS stage, specified by its `dns_stage_id`. Its full details, including FQDNs, are returned in the response object.
136
136
  *
137
137
  * @param request - The request {@link GetDNSStageRequest}
138
138
  * @returns A Promise of DNSStage
139
139
  */
140
- getDNSStage: (request: Readonly<GetDNSStageRequest>) => Promise<DNSStage>;
140
+ getDNSStage: (request: Readonly<GetDNSStageRequest>, options?: RequestOptions) => Promise<DNSStage>;
141
141
  /**
142
142
  * Update DNS stage. Update the parameters of an existing DNS stage, specified by its `dns_stage_id`.
143
143
  *
144
144
  * @param request - The request {@link UpdateDNSStageRequest}
145
145
  * @returns A Promise of DNSStage
146
146
  */
147
- updateDNSStage: (request: Readonly<UpdateDNSStageRequest>) => Promise<DNSStage>;
147
+ updateDNSStage: (request: Readonly<UpdateDNSStageRequest>, options?: RequestOptions) => Promise<DNSStage>;
148
148
  /**
149
149
  * Delete DNS stage. Delete an existing DNS stage, specified by its `dns_stage_id`. Deleting a DNS stage is permanent, and cannot be undone.
150
150
  *
151
151
  * @param request - The request {@link DeleteDNSStageRequest}
152
152
  */
153
- deleteDNSStage: (request: Readonly<DeleteDNSStageRequest>) => Promise<void>;
154
- protected pageOfListTLSStages: (request: Readonly<ListTLSStagesRequest>) => Promise<ListTLSStagesResponse>;
153
+ deleteDNSStage: (request: Readonly<DeleteDNSStageRequest>, options?: RequestOptions) => Promise<void>;
154
+ protected pageOfListTLSStages: (request: Readonly<ListTLSStagesRequest>, options?: RequestOptions) => Promise<ListTLSStagesResponse>;
155
155
  /**
156
156
  * List TLS stages. List all TLS stages, for a Scaleway Organization or Scaleway Project. By default, the TLS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
157
157
  *
158
158
  * @param request - The request {@link ListTLSStagesRequest}
159
159
  * @returns A Promise of ListTLSStagesResponse
160
160
  */
161
- listTLSStages: (request: Readonly<ListTLSStagesRequest>) => Promise<ListTLSStagesResponse> & {
161
+ listTLSStages: (request: Readonly<ListTLSStagesRequest>, options?: RequestOptions) => Promise<ListTLSStagesResponse> & {
162
162
  all: () => Promise<TLSStage[]>;
163
163
  [Symbol.asyncIterator]: () => AsyncGenerator<TLSStage[], void, void>;
164
164
  };
@@ -168,35 +168,35 @@ declare class API$1 extends API {
168
168
  * @param request - The request {@link CreateTLSStageRequest}
169
169
  * @returns A Promise of TLSStage
170
170
  */
171
- createTLSStage: (request: Readonly<CreateTLSStageRequest>) => Promise<TLSStage>;
171
+ createTLSStage: (request: Readonly<CreateTLSStageRequest>, options?: RequestOptions) => Promise<TLSStage>;
172
172
  /**
173
173
  * Get TLS stage. Retrieve information about an existing TLS stage, specified by its `tls_stage_id`. Its full details, including secrets and certificate expiration date are returned in the response object.
174
174
  *
175
175
  * @param request - The request {@link GetTLSStageRequest}
176
176
  * @returns A Promise of TLSStage
177
177
  */
178
- getTLSStage: (request: Readonly<GetTLSStageRequest>) => Promise<TLSStage>;
178
+ getTLSStage: (request: Readonly<GetTLSStageRequest>, options?: RequestOptions) => Promise<TLSStage>;
179
179
  /**
180
180
  * Update TLS stage. Update the parameters of an existing TLS stage, specified by its `tls_stage_id`. Both `tls_secrets_config` and `managed_certificate` parameters can be updated.
181
181
  *
182
182
  * @param request - The request {@link UpdateTLSStageRequest}
183
183
  * @returns A Promise of TLSStage
184
184
  */
185
- updateTLSStage: (request: Readonly<UpdateTLSStageRequest>) => Promise<TLSStage>;
185
+ updateTLSStage: (request: Readonly<UpdateTLSStageRequest>, options?: RequestOptions) => Promise<TLSStage>;
186
186
  /**
187
187
  * Delete TLS stage. Delete an existing TLS stage, specified by its `tls_stage_id`. Deleting a TLS stage is permanent, and cannot be undone.
188
188
  *
189
189
  * @param request - The request {@link DeleteTLSStageRequest}
190
190
  */
191
- deleteTLSStage: (request: Readonly<DeleteTLSStageRequest>) => Promise<void>;
192
- protected pageOfListCacheStages: (request: Readonly<ListCacheStagesRequest>) => Promise<ListCacheStagesResponse>;
191
+ deleteTLSStage: (request: Readonly<DeleteTLSStageRequest>, options?: RequestOptions) => Promise<void>;
192
+ protected pageOfListCacheStages: (request: Readonly<ListCacheStagesRequest>, options?: RequestOptions) => Promise<ListCacheStagesResponse>;
193
193
  /**
194
194
  * List cache stages. List all cache stages, for a Scaleway Organization or Scaleway Project. By default, the cache stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
195
195
  *
196
196
  * @param request - The request {@link ListCacheStagesRequest}
197
197
  * @returns A Promise of ListCacheStagesResponse
198
198
  */
199
- listCacheStages: (request: Readonly<ListCacheStagesRequest>) => Promise<ListCacheStagesResponse> & {
199
+ listCacheStages: (request: Readonly<ListCacheStagesRequest>, options?: RequestOptions) => Promise<ListCacheStagesResponse> & {
200
200
  all: () => Promise<CacheStage[]>;
201
201
  [Symbol.asyncIterator]: () => AsyncGenerator<CacheStage[], void, void>;
202
202
  };
@@ -206,35 +206,35 @@ declare class API$1 extends API {
206
206
  * @param request - The request {@link CreateCacheStageRequest}
207
207
  * @returns A Promise of CacheStage
208
208
  */
209
- createCacheStage: (request: Readonly<CreateCacheStageRequest>) => Promise<CacheStage>;
209
+ createCacheStage: (request: Readonly<CreateCacheStageRequest>, options?: RequestOptions) => Promise<CacheStage>;
210
210
  /**
211
211
  * Get cache stage. Retrieve information about an existing cache stage, specified by its `cache_stage_id`. Its full details, including Time To Live (TTL), are returned in the response object.
212
212
  *
213
213
  * @param request - The request {@link GetCacheStageRequest}
214
214
  * @returns A Promise of CacheStage
215
215
  */
216
- getCacheStage: (request: Readonly<GetCacheStageRequest>) => Promise<CacheStage>;
216
+ getCacheStage: (request: Readonly<GetCacheStageRequest>, options?: RequestOptions) => Promise<CacheStage>;
217
217
  /**
218
218
  * Update cache stage. Update the parameters of an existing cache stage, specified by its `cache_stage_id`. Parameters which can be updated include the `fallback_ttl`, `include_cookies` and `backend_stage_id`.
219
219
  *
220
220
  * @param request - The request {@link UpdateCacheStageRequest}
221
221
  * @returns A Promise of CacheStage
222
222
  */
223
- updateCacheStage: (request: Readonly<UpdateCacheStageRequest>) => Promise<CacheStage>;
223
+ updateCacheStage: (request: Readonly<UpdateCacheStageRequest>, options?: RequestOptions) => Promise<CacheStage>;
224
224
  /**
225
225
  * Delete cache stage. Delete an existing cache stage, specified by its `cache_stage_id`. Deleting a cache stage is permanent, and cannot be undone.
226
226
  *
227
227
  * @param request - The request {@link DeleteCacheStageRequest}
228
228
  */
229
- deleteCacheStage: (request: Readonly<DeleteCacheStageRequest>) => Promise<void>;
230
- protected pageOfListBackendStages: (request: Readonly<ListBackendStagesRequest>) => Promise<ListBackendStagesResponse>;
229
+ deleteCacheStage: (request: Readonly<DeleteCacheStageRequest>, options?: RequestOptions) => Promise<void>;
230
+ protected pageOfListBackendStages: (request: Readonly<ListBackendStagesRequest>, options?: RequestOptions) => Promise<ListBackendStagesResponse>;
231
231
  /**
232
232
  * List backend stages. List all backend stages, for a Scaleway Organization or Scaleway Project. By default, the backend stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
233
233
  *
234
234
  * @param request - The request {@link ListBackendStagesRequest}
235
235
  * @returns A Promise of ListBackendStagesResponse
236
236
  */
237
- listBackendStages: (request: Readonly<ListBackendStagesRequest>) => Promise<ListBackendStagesResponse> & {
237
+ listBackendStages: (request: Readonly<ListBackendStagesRequest>, options?: RequestOptions) => Promise<ListBackendStagesResponse> & {
238
238
  all: () => Promise<BackendStage[]>;
239
239
  [Symbol.asyncIterator]: () => AsyncGenerator<BackendStage[], void, void>;
240
240
  };
@@ -244,36 +244,36 @@ declare class API$1 extends API {
244
244
  * @param request - The request {@link CreateBackendStageRequest}
245
245
  * @returns A Promise of BackendStage
246
246
  */
247
- createBackendStage: (request: Readonly<CreateBackendStageRequest>) => Promise<BackendStage>;
247
+ createBackendStage: (request: Readonly<CreateBackendStageRequest>, options?: RequestOptions) => Promise<BackendStage>;
248
248
  /**
249
249
  * Get backend stage. Retrieve information about an existing backend stage, specified by its `backend_stage_id`. Its full details are returned in the response object.
250
250
  *
251
251
  * @param request - The request {@link GetBackendStageRequest}
252
252
  * @returns A Promise of BackendStage
253
253
  */
254
- getBackendStage: (request: Readonly<GetBackendStageRequest>) => Promise<BackendStage>;
254
+ getBackendStage: (request: Readonly<GetBackendStageRequest>, options?: RequestOptions) => Promise<BackendStage>;
255
255
  /**
256
256
  * Update backend stage. Update the parameters of an existing backend stage, specified by its `backend_stage_id`.
257
257
  *
258
258
  * @param request - The request {@link UpdateBackendStageRequest}
259
259
  * @returns A Promise of BackendStage
260
260
  */
261
- updateBackendStage: (request: Readonly<UpdateBackendStageRequest>) => Promise<BackendStage>;
261
+ updateBackendStage: (request: Readonly<UpdateBackendStageRequest>, options?: RequestOptions) => Promise<BackendStage>;
262
262
  /**
263
263
  * Delete backend stage. Delete an existing backend stage, specified by its `backend_stage_id`. Deleting a backend stage is permanent, and cannot be undone.
264
264
  *
265
265
  * @param request - The request {@link DeleteBackendStageRequest}
266
266
  */
267
- deleteBackendStage: (request: Readonly<DeleteBackendStageRequest>) => Promise<void>;
268
- searchBackendStages: (request?: Readonly<SearchBackendStagesRequest>) => Promise<ListBackendStagesResponse>;
269
- protected pageOfListWafStages: (request: Readonly<ListWafStagesRequest>) => Promise<ListWafStagesResponse>;
267
+ deleteBackendStage: (request: Readonly<DeleteBackendStageRequest>, options?: RequestOptions) => Promise<void>;
268
+ searchBackendStages: (request?: Readonly<SearchBackendStagesRequest>, options?: RequestOptions) => Promise<ListBackendStagesResponse>;
269
+ protected pageOfListWafStages: (request: Readonly<ListWafStagesRequest>, options?: RequestOptions) => Promise<ListWafStagesResponse>;
270
270
  /**
271
271
  * List WAF stages. List all WAF stages, for a Scaleway Organization or Scaleway Project. By default, the WAF stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
272
272
  *
273
273
  * @param request - The request {@link ListWafStagesRequest}
274
274
  * @returns A Promise of ListWafStagesResponse
275
275
  */
276
- listWafStages: (request: Readonly<ListWafStagesRequest>) => Promise<ListWafStagesResponse> & {
276
+ listWafStages: (request: Readonly<ListWafStagesRequest>, options?: RequestOptions) => Promise<ListWafStagesResponse> & {
277
277
  all: () => Promise<WafStage[]>;
278
278
  [Symbol.asyncIterator]: () => AsyncGenerator<WafStage[], void, void>;
279
279
  };
@@ -283,36 +283,36 @@ declare class API$1 extends API {
283
283
  * @param request - The request {@link CreateWafStageRequest}
284
284
  * @returns A Promise of WafStage
285
285
  */
286
- createWafStage: (request: Readonly<CreateWafStageRequest>) => Promise<WafStage>;
286
+ createWafStage: (request: Readonly<CreateWafStageRequest>, options?: RequestOptions) => Promise<WafStage>;
287
287
  /**
288
288
  * Get WAF stage. Retrieve information about an existing WAF stage, specified by its `waf_stage_id`. Its full details are returned in the response object.
289
289
  *
290
290
  * @param request - The request {@link GetWafStageRequest}
291
291
  * @returns A Promise of WafStage
292
292
  */
293
- getWafStage: (request: Readonly<GetWafStageRequest>) => Promise<WafStage>;
293
+ getWafStage: (request: Readonly<GetWafStageRequest>, options?: RequestOptions) => Promise<WafStage>;
294
294
  /**
295
295
  * Update WAF stage. Update the parameters of an existing WAF stage, specified by its `waf_stage_id`. Both `mode` and `paranoia_level` parameters can be updated.
296
296
  *
297
297
  * @param request - The request {@link UpdateWafStageRequest}
298
298
  * @returns A Promise of WafStage
299
299
  */
300
- updateWafStage: (request: Readonly<UpdateWafStageRequest>) => Promise<WafStage>;
300
+ updateWafStage: (request: Readonly<UpdateWafStageRequest>, options?: RequestOptions) => Promise<WafStage>;
301
301
  /**
302
302
  * Delete WAF stage. Delete an existing WAF stage, specified by its `waf_stage_id`. Deleting a WAF stage is permanent, and cannot be undone.
303
303
  *
304
304
  * @param request - The request {@link DeleteWafStageRequest}
305
305
  */
306
- deleteWafStage: (request: Readonly<DeleteWafStageRequest>) => Promise<void>;
307
- searchWafStages: (request?: Readonly<SearchWafStagesRequest>) => Promise<ListWafStagesResponse>;
308
- protected pageOfListRouteStages: (request: Readonly<ListRouteStagesRequest>) => Promise<ListRouteStagesResponse>;
306
+ deleteWafStage: (request: Readonly<DeleteWafStageRequest>, options?: RequestOptions) => Promise<void>;
307
+ searchWafStages: (request?: Readonly<SearchWafStagesRequest>, options?: RequestOptions) => Promise<ListWafStagesResponse>;
308
+ protected pageOfListRouteStages: (request: Readonly<ListRouteStagesRequest>, options?: RequestOptions) => Promise<ListRouteStagesResponse>;
309
309
  /**
310
310
  * List route stages. List all route stages, for a given pipeline. By default, the route stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
311
311
  *
312
312
  * @param request - The request {@link ListRouteStagesRequest}
313
313
  * @returns A Promise of ListRouteStagesResponse
314
314
  */
315
- listRouteStages: (request: Readonly<ListRouteStagesRequest>) => Promise<ListRouteStagesResponse> & {
315
+ listRouteStages: (request: Readonly<ListRouteStagesRequest>, options?: RequestOptions) => Promise<ListRouteStagesResponse> & {
316
316
  all: () => Promise<RouteStage[]>;
317
317
  [Symbol.asyncIterator]: () => AsyncGenerator<RouteStage[], void, void>;
318
318
  };
@@ -322,65 +322,65 @@ declare class API$1 extends API {
322
322
  * @param request - The request {@link CreateRouteStageRequest}
323
323
  * @returns A Promise of RouteStage
324
324
  */
325
- createRouteStage: (request: Readonly<CreateRouteStageRequest>) => Promise<RouteStage>;
325
+ createRouteStage: (request: Readonly<CreateRouteStageRequest>, options?: RequestOptions) => Promise<RouteStage>;
326
326
  /**
327
327
  * Get route stage. Retrieve information about an existing route stage, specified by its `route_stage_id`. The summary of the route stage (without route rules) is returned in the response object.
328
328
  *
329
329
  * @param request - The request {@link GetRouteStageRequest}
330
330
  * @returns A Promise of RouteStage
331
331
  */
332
- getRouteStage: (request: Readonly<GetRouteStageRequest>) => Promise<RouteStage>;
332
+ getRouteStage: (request: Readonly<GetRouteStageRequest>, options?: RequestOptions) => Promise<RouteStage>;
333
333
  /**
334
334
  * Update route stage. Update the parameters of an existing route stage, specified by its `route_stage_id`.
335
335
  *
336
336
  * @param request - The request {@link UpdateRouteStageRequest}
337
337
  * @returns A Promise of RouteStage
338
338
  */
339
- updateRouteStage: (request: Readonly<UpdateRouteStageRequest>) => Promise<RouteStage>;
339
+ updateRouteStage: (request: Readonly<UpdateRouteStageRequest>, options?: RequestOptions) => Promise<RouteStage>;
340
340
  /**
341
341
  * Delete route stage. Delete an existing route stage, specified by its `route_stage_id`. Deleting a route stage is permanent, and cannot be undone.
342
342
  *
343
343
  * @param request - The request {@link DeleteRouteStageRequest}
344
344
  */
345
- deleteRouteStage: (request: Readonly<DeleteRouteStageRequest>) => Promise<void>;
345
+ deleteRouteStage: (request: Readonly<DeleteRouteStageRequest>, options?: RequestOptions) => Promise<void>;
346
346
  /**
347
347
  * List route rules. List all route rules of an existing route stage, specified by its `route_stage_id`.
348
348
  *
349
349
  * @param request - The request {@link ListRouteRulesRequest}
350
350
  * @returns A Promise of ListRouteRulesResponse
351
351
  */
352
- listRouteRules: (request: Readonly<ListRouteRulesRequest>) => Promise<ListRouteRulesResponse>;
352
+ listRouteRules: (request: Readonly<ListRouteRulesRequest>, options?: RequestOptions) => Promise<ListRouteRulesResponse>;
353
353
  /**
354
354
  * Set route rules. Set the rules of an existing route stage, specified by its `route_stage_id`.
355
355
  *
356
356
  * @param request - The request {@link SetRouteRulesRequest}
357
357
  * @returns A Promise of SetRouteRulesResponse
358
358
  */
359
- setRouteRules: (request: Readonly<SetRouteRulesRequest>) => Promise<SetRouteRulesResponse>;
359
+ setRouteRules: (request: Readonly<SetRouteRulesRequest>, options?: RequestOptions) => Promise<SetRouteRulesResponse>;
360
360
  /**
361
361
  * Add route rules. Add route rules to an existing route stage, specified by its `route_stage_id`.
362
362
  *
363
363
  * @param request - The request {@link AddRouteRulesRequest}
364
364
  * @returns A Promise of AddRouteRulesResponse
365
365
  */
366
- addRouteRules: (request: Readonly<AddRouteRulesRequest>) => Promise<AddRouteRulesResponse>;
366
+ addRouteRules: (request: Readonly<AddRouteRulesRequest>, options?: RequestOptions) => Promise<AddRouteRulesResponse>;
367
367
  /**
368
368
  * Search route rules. List all route rules of an organization or project.
369
369
  *
370
370
  * @param request - The request {@link SearchRouteRulesRequest}
371
371
  * @returns A Promise of ListRouteRulesResponse
372
372
  */
373
- searchRouteRules: (request?: Readonly<SearchRouteRulesRequest>) => Promise<ListRouteRulesResponse>;
374
- checkDomain: (request: Readonly<CheckDomainRequest>) => Promise<CheckDomainResponse>;
375
- checkPEMChain: (request: Readonly<CheckPEMChainRequest>) => Promise<CheckPEMChainResponse>;
376
- protected pageOfListPurgeRequests: (request?: Readonly<ListPurgeRequestsRequest>) => Promise<ListPurgeRequestsResponse>;
373
+ searchRouteRules: (request?: Readonly<SearchRouteRulesRequest>, options?: RequestOptions) => Promise<ListRouteRulesResponse>;
374
+ checkDomain: (request: Readonly<CheckDomainRequest>, options?: RequestOptions) => Promise<CheckDomainResponse>;
375
+ checkPEMChain: (request: Readonly<CheckPEMChainRequest>, options?: RequestOptions) => Promise<CheckPEMChainResponse>;
376
+ protected pageOfListPurgeRequests: (request?: Readonly<ListPurgeRequestsRequest>, options?: RequestOptions) => Promise<ListPurgeRequestsResponse>;
377
377
  /**
378
378
  * List purge requests. List all purge requests, for a Scaleway Organization or Scaleway Project. This enables you to retrieve a history of all previously-made purge requests. By default, the purge requests returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
379
379
  *
380
380
  * @param request - The request {@link ListPurgeRequestsRequest}
381
381
  * @returns A Promise of ListPurgeRequestsResponse
382
382
  */
383
- listPurgeRequests: (request?: Readonly<ListPurgeRequestsRequest>) => Promise<ListPurgeRequestsResponse> & {
383
+ listPurgeRequests: (request?: Readonly<ListPurgeRequestsRequest>, options?: RequestOptions) => Promise<ListPurgeRequestsResponse> & {
384
384
  all: () => Promise<PurgeRequest[]>;
385
385
  [Symbol.asyncIterator]: () => AsyncGenerator<PurgeRequest[], void, void>;
386
386
  };
@@ -390,14 +390,14 @@ declare class API$1 extends API {
390
390
  * @param request - The request {@link CreatePurgeRequestRequest}
391
391
  * @returns A Promise of PurgeRequest
392
392
  */
393
- createPurgeRequest: (request: Readonly<CreatePurgeRequestRequest>) => Promise<PurgeRequest>;
393
+ createPurgeRequest: (request: Readonly<CreatePurgeRequestRequest>, options?: RequestOptions) => Promise<PurgeRequest>;
394
394
  /**
395
395
  * Get purge request. Retrieve information about a purge request, specified by its `purge_request_id`. Its full details, including `status` and `target`, are returned in the response object.
396
396
  *
397
397
  * @param request - The request {@link GetPurgeRequestRequest}
398
398
  * @returns A Promise of PurgeRequest
399
399
  */
400
- getPurgeRequest: (request: Readonly<GetPurgeRequestRequest>) => Promise<PurgeRequest>;
400
+ getPurgeRequest: (request: Readonly<GetPurgeRequestRequest>, options?: RequestOptions) => Promise<PurgeRequest>;
401
401
  /**
402
402
  * Waits for {@link PurgeRequest} to be in a final state.
403
403
  *
@@ -406,40 +406,40 @@ declare class API$1 extends API {
406
406
  * @returns A Promise of PurgeRequest
407
407
  */
408
408
  waitForPurgeRequest: (request: Readonly<GetPurgeRequestRequest>, options?: Readonly<WaitForOptions<PurgeRequest>>) => Promise<PurgeRequest>;
409
- checkLbOrigin: (request?: Readonly<CheckLbOriginRequest>) => Promise<CheckLbOriginResponse>;
409
+ checkLbOrigin: (request?: Readonly<CheckLbOriginRequest>, options?: RequestOptions) => Promise<CheckLbOriginResponse>;
410
410
  /**
411
411
  * List plans. List all available Edge Services subscription plans.
412
412
  *
413
413
  * @returns A Promise of ListPlansResponse
414
414
  */
415
- listPlans: () => Promise<ListPlansResponse>;
415
+ listPlans: (options?: RequestOptions) => Promise<ListPlansResponse>;
416
416
  /**
417
417
  * Select plan. Subscribe to the Edge Services subscription plan of your choice, for the given Scaleway Project.
418
418
  *
419
419
  * @param request - The request {@link SelectPlanRequest}
420
420
  * @returns A Promise of Plan
421
421
  */
422
- selectPlan: (request?: Readonly<SelectPlanRequest>) => Promise<Plan>;
422
+ selectPlan: (request?: Readonly<SelectPlanRequest>, options?: RequestOptions) => Promise<Plan>;
423
423
  /**
424
424
  * Get plan. Get the current Edge Services subscription plan for your Scaleway Project.
425
425
  *
426
426
  * @param request - The request {@link GetCurrentPlanRequest}
427
427
  * @returns A Promise of Plan
428
428
  */
429
- getCurrentPlan: (request?: Readonly<GetCurrentPlanRequest>) => Promise<Plan>;
429
+ getCurrentPlan: (request?: Readonly<GetCurrentPlanRequest>, options?: RequestOptions) => Promise<Plan>;
430
430
  /**
431
431
  * Delete plan. Unsubscribe from the current Edge Services subscription plan for your Scaleway Project.
432
432
  *
433
433
  * @param request - The request {@link DeleteCurrentPlanRequest}
434
434
  */
435
- deleteCurrentPlan: (request?: Readonly<DeleteCurrentPlanRequest>) => Promise<void>;
435
+ deleteCurrentPlan: (request?: Readonly<DeleteCurrentPlanRequest>, options?: RequestOptions) => Promise<void>;
436
436
  /**
437
437
  * Billing information. 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.).
438
438
  *
439
439
  * @param request - The request {@link GetBillingRequest}
440
440
  * @returns A Promise of GetBillingResponse
441
441
  */
442
- getBilling: (request?: Readonly<GetBillingRequest>) => Promise<GetBillingResponse>;
442
+ getBilling: (request?: Readonly<GetBillingRequest>, options?: RequestOptions) => Promise<GetBillingResponse>;
443
443
  }
444
444
  //#endregion
445
445
  export { API$1 as API };
@@ -10,324 +10,385 @@ const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" }
10
10
  var API$1 = class extends API {
11
11
  constructor(..._args) {
12
12
  super(..._args);
13
- this.listNodes = () => this.client.fetch({
13
+ this.listNodes = (options) => this.client.fetch({
14
14
  method: "GET",
15
- path: `/edge-services/v1beta1/nodes`
15
+ path: `/edge-services/v1beta1/nodes`,
16
+ signal: options?.signal
16
17
  }, unmarshalListNodesResponse);
17
- this.pageOfListPipelines = (request = {}) => this.client.fetch({
18
+ this.pageOfListPipelines = (request = {}, options) => this.client.fetch({
18
19
  method: "GET",
19
20
  path: `/edge-services/v1beta1/pipelines`,
20
- urlParams: urlParams(["has_backend_stage_lb", request.hasBackendStageLb], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
21
+ urlParams: urlParams(["has_backend_stage_lb", request.hasBackendStageLb], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId]),
22
+ signal: options?.signal
21
23
  }, unmarshalListPipelinesResponse);
22
- this.listPipelines = (request = {}) => enrichForPagination("pipelines", this.pageOfListPipelines, request);
23
- this.createPipeline = (request) => this.client.fetch({
24
+ this.listPipelines = (request = {}, options) => enrichForPagination("pipelines", this.pageOfListPipelines, request, options);
25
+ this.createPipeline = (request, options) => this.client.fetch({
24
26
  body: JSON.stringify(marshalCreatePipelineRequest(request, this.client.settings)),
25
27
  headers: jsonContentHeaders,
26
28
  method: "POST",
27
- path: `/edge-services/v1beta1/pipelines`
29
+ path: `/edge-services/v1beta1/pipelines`,
30
+ signal: options?.signal
28
31
  }, unmarshalPipeline);
29
- this.getPipeline = (request) => this.client.fetch({
32
+ this.getPipeline = (request, options) => this.client.fetch({
30
33
  method: "GET",
31
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}`
34
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}`,
35
+ signal: options?.signal
32
36
  }, unmarshalPipeline);
33
37
  this.waitForPipeline = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!PIPELINE_TRANSIENT_STATUSES.includes(res.status))), this.getPipeline, request, options);
34
- this.pageOfListPipelinesWithStages = (request = {}) => this.client.fetch({
38
+ this.pageOfListPipelinesWithStages = (request = {}, options) => this.client.fetch({
35
39
  method: "GET",
36
40
  path: `/edge-services/v1beta1/pipelines-stages`,
37
- urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
41
+ urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId]),
42
+ signal: options?.signal
38
43
  }, unmarshalListPipelinesWithStagesResponse);
39
- this.listPipelinesWithStages = (request = {}) => enrichForPagination("pipelines", this.pageOfListPipelinesWithStages, request);
40
- this.updatePipeline = (request) => this.client.fetch({
44
+ this.listPipelinesWithStages = (request = {}, options) => enrichForPagination("pipelines", this.pageOfListPipelinesWithStages, request, options);
45
+ this.updatePipeline = (request, options) => this.client.fetch({
41
46
  body: JSON.stringify(marshalUpdatePipelineRequest(request, this.client.settings)),
42
47
  headers: jsonContentHeaders,
43
48
  method: "PATCH",
44
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}`
49
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}`,
50
+ signal: options?.signal
45
51
  }, unmarshalPipeline);
46
- this.deletePipeline = (request) => this.client.fetch({
52
+ this.deletePipeline = (request, options) => this.client.fetch({
47
53
  method: "DELETE",
48
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}`
54
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}`,
55
+ signal: options?.signal
49
56
  });
50
- this.getVPCEndpoint = (request) => this.client.fetch({
57
+ this.getVPCEndpoint = (request, options) => this.client.fetch({
51
58
  method: "GET",
52
- path: `/edge-services/v1beta1/vpc-endpoints/${validatePathParam("vpcEndpointId", request.vpcEndpointId)}`
59
+ path: `/edge-services/v1beta1/vpc-endpoints/${validatePathParam("vpcEndpointId", request.vpcEndpointId)}`,
60
+ signal: options?.signal
53
61
  }, unmarshalVPCEndpoint);
54
- this.pageOfListVPCEndpoints = (request = {}) => this.client.fetch({
62
+ this.pageOfListVPCEndpoints = (request = {}, options) => this.client.fetch({
55
63
  method: "GET",
56
64
  path: `/edge-services/v1beta1/vpc-endpoints`,
57
- urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
65
+ urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId]),
66
+ signal: options?.signal
58
67
  }, unmarshalListVPCEndpointsResponse);
59
- this.listVPCEndpoints = (request = {}) => enrichForPagination("vpcEndpoints", this.pageOfListVPCEndpoints, request);
60
- this.createVPCEndpoint = (request) => this.client.fetch({
68
+ this.listVPCEndpoints = (request = {}, options) => enrichForPagination("vpcEndpoints", this.pageOfListVPCEndpoints, request, options);
69
+ this.createVPCEndpoint = (request, options) => this.client.fetch({
61
70
  body: JSON.stringify(marshalCreateVPCEndpointRequest(request, this.client.settings)),
62
71
  headers: jsonContentHeaders,
63
72
  method: "POST",
64
- path: `/edge-services/v1beta1/vpc-endpoints`
73
+ path: `/edge-services/v1beta1/vpc-endpoints`,
74
+ signal: options?.signal
65
75
  }, unmarshalVPCEndpoint);
66
- this.deleteVPCEndpoint = (request) => this.client.fetch({
76
+ this.deleteVPCEndpoint = (request, options) => this.client.fetch({
67
77
  method: "DELETE",
68
- path: `/edge-services/v1beta1/vpc-endpoints/${validatePathParam("vpcEndpointId", request.vpcEndpointId)}`
78
+ path: `/edge-services/v1beta1/vpc-endpoints/${validatePathParam("vpcEndpointId", request.vpcEndpointId)}`,
79
+ signal: options?.signal
69
80
  });
70
- this.setPipelineVPCEndpoints = (request) => this.client.fetch({
81
+ this.setPipelineVPCEndpoints = (request, options) => this.client.fetch({
71
82
  body: JSON.stringify(marshalSetPipelineVPCEndpointsRequest(request, this.client.settings)),
72
83
  headers: jsonContentHeaders,
73
84
  method: "PUT",
74
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/vpc-endpoints`
85
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/vpc-endpoints`,
86
+ signal: options?.signal
75
87
  }, unmarshalSetPipelineVPCEndpointsResponse);
76
- this.pageOfListHeadStages = (request) => this.client.fetch({
88
+ this.pageOfListHeadStages = (request, options) => this.client.fetch({
77
89
  method: "GET",
78
90
  path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/head-stages`,
79
- urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
91
+ urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
92
+ signal: options?.signal
80
93
  }, unmarshalListHeadStagesResponse);
81
- this.listHeadStages = (request) => enrichForPagination("headStages", this.pageOfListHeadStages, request);
82
- this.setHeadStage = (request) => this.client.fetch({
94
+ this.listHeadStages = (request, options) => enrichForPagination("headStages", this.pageOfListHeadStages, request, options);
95
+ this.setHeadStage = (request, options) => this.client.fetch({
83
96
  body: JSON.stringify(marshalSetHeadStageRequest(request, this.client.settings)),
84
97
  headers: jsonContentHeaders,
85
98
  method: "POST",
86
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/set-head-stage`
99
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/set-head-stage`,
100
+ signal: options?.signal
87
101
  }, unmarshalHeadStageResponse);
88
- this.pageOfListDNSStages = (request) => this.client.fetch({
102
+ this.pageOfListDNSStages = (request, options) => this.client.fetch({
89
103
  method: "GET",
90
104
  path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/dns-stages`,
91
- urlParams: urlParams(["fqdn", request.fqdn], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
105
+ urlParams: urlParams(["fqdn", request.fqdn], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
106
+ signal: options?.signal
92
107
  }, unmarshalListDNSStagesResponse);
93
- this.listDNSStages = (request) => enrichForPagination("stages", this.pageOfListDNSStages, request);
94
- this.createDNSStage = (request) => this.client.fetch({
108
+ this.listDNSStages = (request, options) => enrichForPagination("stages", this.pageOfListDNSStages, request, options);
109
+ this.createDNSStage = (request, options) => this.client.fetch({
95
110
  body: JSON.stringify(marshalCreateDNSStageRequest(request, this.client.settings)),
96
111
  headers: jsonContentHeaders,
97
112
  method: "POST",
98
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/dns-stages`
113
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/dns-stages`,
114
+ signal: options?.signal
99
115
  }, unmarshalDNSStage);
100
- this.getDNSStage = (request) => this.client.fetch({
116
+ this.getDNSStage = (request, options) => this.client.fetch({
101
117
  method: "GET",
102
- path: `/edge-services/v1beta1/dns-stages/${validatePathParam("dnsStageId", request.dnsStageId)}`
118
+ path: `/edge-services/v1beta1/dns-stages/${validatePathParam("dnsStageId", request.dnsStageId)}`,
119
+ signal: options?.signal
103
120
  }, unmarshalDNSStage);
104
- this.updateDNSStage = (request) => this.client.fetch({
121
+ this.updateDNSStage = (request, options) => this.client.fetch({
105
122
  body: JSON.stringify(marshalUpdateDNSStageRequest(request, this.client.settings)),
106
123
  headers: jsonContentHeaders,
107
124
  method: "PATCH",
108
- path: `/edge-services/v1beta1/dns-stages/${validatePathParam("dnsStageId", request.dnsStageId)}`
125
+ path: `/edge-services/v1beta1/dns-stages/${validatePathParam("dnsStageId", request.dnsStageId)}`,
126
+ signal: options?.signal
109
127
  }, unmarshalDNSStage);
110
- this.deleteDNSStage = (request) => this.client.fetch({
128
+ this.deleteDNSStage = (request, options) => this.client.fetch({
111
129
  method: "DELETE",
112
- path: `/edge-services/v1beta1/dns-stages/${validatePathParam("dnsStageId", request.dnsStageId)}`
130
+ path: `/edge-services/v1beta1/dns-stages/${validatePathParam("dnsStageId", request.dnsStageId)}`,
131
+ signal: options?.signal
113
132
  });
114
- this.pageOfListTLSStages = (request) => this.client.fetch({
133
+ this.pageOfListTLSStages = (request, options) => this.client.fetch({
115
134
  method: "GET",
116
135
  path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/tls-stages`,
117
- urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["secret_id", request.secretId], ["secret_region", request.secretRegion])
136
+ urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["secret_id", request.secretId], ["secret_region", request.secretRegion]),
137
+ signal: options?.signal
118
138
  }, unmarshalListTLSStagesResponse);
119
- this.listTLSStages = (request) => enrichForPagination("stages", this.pageOfListTLSStages, request);
120
- this.createTLSStage = (request) => this.client.fetch({
139
+ this.listTLSStages = (request, options) => enrichForPagination("stages", this.pageOfListTLSStages, request, options);
140
+ this.createTLSStage = (request, options) => this.client.fetch({
121
141
  body: JSON.stringify(marshalCreateTLSStageRequest(request, this.client.settings)),
122
142
  headers: jsonContentHeaders,
123
143
  method: "POST",
124
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/tls-stages`
144
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/tls-stages`,
145
+ signal: options?.signal
125
146
  }, unmarshalTLSStage);
126
- this.getTLSStage = (request) => this.client.fetch({
147
+ this.getTLSStage = (request, options) => this.client.fetch({
127
148
  method: "GET",
128
- path: `/edge-services/v1beta1/tls-stages/${validatePathParam("tlsStageId", request.tlsStageId)}`
149
+ path: `/edge-services/v1beta1/tls-stages/${validatePathParam("tlsStageId", request.tlsStageId)}`,
150
+ signal: options?.signal
129
151
  }, unmarshalTLSStage);
130
- this.updateTLSStage = (request) => this.client.fetch({
152
+ this.updateTLSStage = (request, options) => this.client.fetch({
131
153
  body: JSON.stringify(marshalUpdateTLSStageRequest(request, this.client.settings)),
132
154
  headers: jsonContentHeaders,
133
155
  method: "PATCH",
134
- path: `/edge-services/v1beta1/tls-stages/${validatePathParam("tlsStageId", request.tlsStageId)}`
156
+ path: `/edge-services/v1beta1/tls-stages/${validatePathParam("tlsStageId", request.tlsStageId)}`,
157
+ signal: options?.signal
135
158
  }, unmarshalTLSStage);
136
- this.deleteTLSStage = (request) => this.client.fetch({
159
+ this.deleteTLSStage = (request, options) => this.client.fetch({
137
160
  method: "DELETE",
138
- path: `/edge-services/v1beta1/tls-stages/${validatePathParam("tlsStageId", request.tlsStageId)}`
161
+ path: `/edge-services/v1beta1/tls-stages/${validatePathParam("tlsStageId", request.tlsStageId)}`,
162
+ signal: options?.signal
139
163
  });
140
- this.pageOfListCacheStages = (request) => this.client.fetch({
164
+ this.pageOfListCacheStages = (request, options) => this.client.fetch({
141
165
  method: "GET",
142
166
  path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/cache-stages`,
143
- urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
167
+ urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
168
+ signal: options?.signal
144
169
  }, unmarshalListCacheStagesResponse);
145
- this.listCacheStages = (request) => enrichForPagination("stages", this.pageOfListCacheStages, request);
146
- this.createCacheStage = (request) => this.client.fetch({
170
+ this.listCacheStages = (request, options) => enrichForPagination("stages", this.pageOfListCacheStages, request, options);
171
+ this.createCacheStage = (request, options) => this.client.fetch({
147
172
  body: JSON.stringify(marshalCreateCacheStageRequest(request, this.client.settings)),
148
173
  headers: jsonContentHeaders,
149
174
  method: "POST",
150
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/cache-stages`
175
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/cache-stages`,
176
+ signal: options?.signal
151
177
  }, unmarshalCacheStage);
152
- this.getCacheStage = (request) => this.client.fetch({
178
+ this.getCacheStage = (request, options) => this.client.fetch({
153
179
  method: "GET",
154
- path: `/edge-services/v1beta1/cache-stages/${validatePathParam("cacheStageId", request.cacheStageId)}`
180
+ path: `/edge-services/v1beta1/cache-stages/${validatePathParam("cacheStageId", request.cacheStageId)}`,
181
+ signal: options?.signal
155
182
  }, unmarshalCacheStage);
156
- this.updateCacheStage = (request) => this.client.fetch({
183
+ this.updateCacheStage = (request, options) => this.client.fetch({
157
184
  body: JSON.stringify(marshalUpdateCacheStageRequest(request, this.client.settings)),
158
185
  headers: jsonContentHeaders,
159
186
  method: "PATCH",
160
- path: `/edge-services/v1beta1/cache-stages/${validatePathParam("cacheStageId", request.cacheStageId)}`
187
+ path: `/edge-services/v1beta1/cache-stages/${validatePathParam("cacheStageId", request.cacheStageId)}`,
188
+ signal: options?.signal
161
189
  }, unmarshalCacheStage);
162
- this.deleteCacheStage = (request) => this.client.fetch({
190
+ this.deleteCacheStage = (request, options) => this.client.fetch({
163
191
  method: "DELETE",
164
- path: `/edge-services/v1beta1/cache-stages/${validatePathParam("cacheStageId", request.cacheStageId)}`
192
+ path: `/edge-services/v1beta1/cache-stages/${validatePathParam("cacheStageId", request.cacheStageId)}`,
193
+ signal: options?.signal
165
194
  });
166
- this.pageOfListBackendStages = (request) => this.client.fetch({
195
+ this.pageOfListBackendStages = (request, options) => this.client.fetch({
167
196
  method: "GET",
168
197
  path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/backend-stages`,
169
- urlParams: urlParams(["bucket_name", request.bucketName], ["bucket_region", request.bucketRegion], ["lb_id", request.lbId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
198
+ urlParams: urlParams(["bucket_name", request.bucketName], ["bucket_region", request.bucketRegion], ["lb_id", request.lbId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
199
+ signal: options?.signal
170
200
  }, unmarshalListBackendStagesResponse);
171
- this.listBackendStages = (request) => enrichForPagination("stages", this.pageOfListBackendStages, request);
172
- this.createBackendStage = (request) => this.client.fetch({
201
+ this.listBackendStages = (request, options) => enrichForPagination("stages", this.pageOfListBackendStages, request, options);
202
+ this.createBackendStage = (request, options) => this.client.fetch({
173
203
  body: JSON.stringify(marshalCreateBackendStageRequest(request, this.client.settings)),
174
204
  headers: jsonContentHeaders,
175
205
  method: "POST",
176
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/backend-stages`
206
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/backend-stages`,
207
+ signal: options?.signal
177
208
  }, unmarshalBackendStage);
178
- this.getBackendStage = (request) => this.client.fetch({
209
+ this.getBackendStage = (request, options) => this.client.fetch({
179
210
  method: "GET",
180
- path: `/edge-services/v1beta1/backend-stages/${validatePathParam("backendStageId", request.backendStageId)}`
211
+ path: `/edge-services/v1beta1/backend-stages/${validatePathParam("backendStageId", request.backendStageId)}`,
212
+ signal: options?.signal
181
213
  }, unmarshalBackendStage);
182
- this.updateBackendStage = (request) => this.client.fetch({
214
+ this.updateBackendStage = (request, options) => this.client.fetch({
183
215
  body: JSON.stringify(marshalUpdateBackendStageRequest(request, this.client.settings)),
184
216
  headers: jsonContentHeaders,
185
217
  method: "PATCH",
186
- path: `/edge-services/v1beta1/backend-stages/${validatePathParam("backendStageId", request.backendStageId)}`
218
+ path: `/edge-services/v1beta1/backend-stages/${validatePathParam("backendStageId", request.backendStageId)}`,
219
+ signal: options?.signal
187
220
  }, unmarshalBackendStage);
188
- this.deleteBackendStage = (request) => this.client.fetch({
221
+ this.deleteBackendStage = (request, options) => this.client.fetch({
189
222
  method: "DELETE",
190
- path: `/edge-services/v1beta1/backend-stages/${validatePathParam("backendStageId", request.backendStageId)}`
223
+ path: `/edge-services/v1beta1/backend-stages/${validatePathParam("backendStageId", request.backendStageId)}`,
224
+ signal: options?.signal
191
225
  });
192
- this.searchBackendStages = (request = {}) => this.client.fetch({
226
+ this.searchBackendStages = (request = {}, options) => this.client.fetch({
193
227
  method: "GET",
194
228
  path: `/edge-services/v1beta1/search-backend-stages`,
195
- urlParams: urlParams(["bucket_name", request.bucketName], ["bucket_region", request.bucketRegion], ["lb_id", request.lbId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId])
229
+ urlParams: urlParams(["bucket_name", request.bucketName], ["bucket_region", request.bucketRegion], ["lb_id", request.lbId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId]),
230
+ signal: options?.signal
196
231
  }, unmarshalListBackendStagesResponse);
197
- this.pageOfListWafStages = (request) => this.client.fetch({
232
+ this.pageOfListWafStages = (request, options) => this.client.fetch({
198
233
  method: "GET",
199
234
  path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/waf-stages`,
200
- urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
235
+ urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
236
+ signal: options?.signal
201
237
  }, unmarshalListWafStagesResponse);
202
- this.listWafStages = (request) => enrichForPagination("stages", this.pageOfListWafStages, request);
203
- this.createWafStage = (request) => this.client.fetch({
238
+ this.listWafStages = (request, options) => enrichForPagination("stages", this.pageOfListWafStages, request, options);
239
+ this.createWafStage = (request, options) => this.client.fetch({
204
240
  body: JSON.stringify(marshalCreateWafStageRequest(request, this.client.settings)),
205
241
  headers: jsonContentHeaders,
206
242
  method: "POST",
207
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/waf-stages`
243
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/waf-stages`,
244
+ signal: options?.signal
208
245
  }, unmarshalWafStage);
209
- this.getWafStage = (request) => this.client.fetch({
246
+ this.getWafStage = (request, options) => this.client.fetch({
210
247
  method: "GET",
211
- path: `/edge-services/v1beta1/waf-stages/${validatePathParam("wafStageId", request.wafStageId)}`
248
+ path: `/edge-services/v1beta1/waf-stages/${validatePathParam("wafStageId", request.wafStageId)}`,
249
+ signal: options?.signal
212
250
  }, unmarshalWafStage);
213
- this.updateWafStage = (request) => this.client.fetch({
251
+ this.updateWafStage = (request, options) => this.client.fetch({
214
252
  body: JSON.stringify(marshalUpdateWafStageRequest(request, this.client.settings)),
215
253
  headers: jsonContentHeaders,
216
254
  method: "PATCH",
217
- path: `/edge-services/v1beta1/waf-stages/${validatePathParam("wafStageId", request.wafStageId)}`
255
+ path: `/edge-services/v1beta1/waf-stages/${validatePathParam("wafStageId", request.wafStageId)}`,
256
+ signal: options?.signal
218
257
  }, unmarshalWafStage);
219
- this.deleteWafStage = (request) => this.client.fetch({
258
+ this.deleteWafStage = (request, options) => this.client.fetch({
220
259
  method: "DELETE",
221
- path: `/edge-services/v1beta1/waf-stages/${validatePathParam("wafStageId", request.wafStageId)}`
260
+ path: `/edge-services/v1beta1/waf-stages/${validatePathParam("wafStageId", request.wafStageId)}`,
261
+ signal: options?.signal
222
262
  });
223
- this.searchWafStages = (request = {}) => this.client.fetch({
263
+ this.searchWafStages = (request = {}, options) => this.client.fetch({
224
264
  method: "GET",
225
265
  path: `/edge-services/v1beta1/search-waf-stages`,
226
- urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId])
266
+ urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId]),
267
+ signal: options?.signal
227
268
  }, unmarshalListWafStagesResponse);
228
- this.pageOfListRouteStages = (request) => this.client.fetch({
269
+ this.pageOfListRouteStages = (request, options) => this.client.fetch({
229
270
  method: "GET",
230
271
  path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/route-stages`,
231
- urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
272
+ urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
273
+ signal: options?.signal
232
274
  }, unmarshalListRouteStagesResponse);
233
- this.listRouteStages = (request) => enrichForPagination("stages", this.pageOfListRouteStages, request);
234
- this.createRouteStage = (request) => this.client.fetch({
275
+ this.listRouteStages = (request, options) => enrichForPagination("stages", this.pageOfListRouteStages, request, options);
276
+ this.createRouteStage = (request, options) => this.client.fetch({
235
277
  body: JSON.stringify(marshalCreateRouteStageRequest(request, this.client.settings)),
236
278
  headers: jsonContentHeaders,
237
279
  method: "POST",
238
- path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/route-stages`
280
+ path: `/edge-services/v1beta1/pipelines/${validatePathParam("pipelineId", request.pipelineId)}/route-stages`,
281
+ signal: options?.signal
239
282
  }, unmarshalRouteStage);
240
- this.getRouteStage = (request) => this.client.fetch({
283
+ this.getRouteStage = (request, options) => this.client.fetch({
241
284
  method: "GET",
242
- path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}`
285
+ path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}`,
286
+ signal: options?.signal
243
287
  }, unmarshalRouteStage);
244
- this.updateRouteStage = (request) => this.client.fetch({
288
+ this.updateRouteStage = (request, options) => this.client.fetch({
245
289
  body: JSON.stringify(marshalUpdateRouteStageRequest(request, this.client.settings)),
246
290
  headers: jsonContentHeaders,
247
291
  method: "PATCH",
248
- path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}`
292
+ path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}`,
293
+ signal: options?.signal
249
294
  }, unmarshalRouteStage);
250
- this.deleteRouteStage = (request) => this.client.fetch({
295
+ this.deleteRouteStage = (request, options) => this.client.fetch({
251
296
  method: "DELETE",
252
- path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}`
297
+ path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}`,
298
+ signal: options?.signal
253
299
  });
254
- this.listRouteRules = (request) => this.client.fetch({
300
+ this.listRouteRules = (request, options) => this.client.fetch({
255
301
  method: "GET",
256
- path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}/route-rules`
302
+ path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}/route-rules`,
303
+ signal: options?.signal
257
304
  }, unmarshalListRouteRulesResponse);
258
- this.setRouteRules = (request) => this.client.fetch({
305
+ this.setRouteRules = (request, options) => this.client.fetch({
259
306
  body: JSON.stringify(marshalSetRouteRulesRequest(request, this.client.settings)),
260
307
  headers: jsonContentHeaders,
261
308
  method: "PUT",
262
- path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}/route-rules`
309
+ path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}/route-rules`,
310
+ signal: options?.signal
263
311
  }, unmarshalSetRouteRulesResponse);
264
- this.addRouteRules = (request) => this.client.fetch({
312
+ this.addRouteRules = (request, options) => this.client.fetch({
265
313
  body: JSON.stringify(marshalAddRouteRulesRequest(request, this.client.settings)),
266
314
  headers: jsonContentHeaders,
267
315
  method: "POST",
268
- path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}/route-rules`
316
+ path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}/route-rules`,
317
+ signal: options?.signal
269
318
  }, unmarshalAddRouteRulesResponse);
270
- this.searchRouteRules = (request = {}) => this.client.fetch({
319
+ this.searchRouteRules = (request = {}, options) => this.client.fetch({
271
320
  method: "GET",
272
321
  path: `/edge-services/v1beta1/search-route-rules`,
273
- urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
322
+ urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId]),
323
+ signal: options?.signal
274
324
  }, unmarshalListRouteRulesResponse);
275
- this.checkDomain = (request) => this.client.fetch({
325
+ this.checkDomain = (request, options) => this.client.fetch({
276
326
  body: JSON.stringify(marshalCheckDomainRequest(request, this.client.settings)),
277
327
  headers: jsonContentHeaders,
278
328
  method: "POST",
279
- path: `/edge-services/v1beta1/check-domain`
329
+ path: `/edge-services/v1beta1/check-domain`,
330
+ signal: options?.signal
280
331
  }, unmarshalCheckDomainResponse);
281
- this.checkPEMChain = (request) => this.client.fetch({
332
+ this.checkPEMChain = (request, options) => this.client.fetch({
282
333
  body: JSON.stringify(marshalCheckPEMChainRequest(request, this.client.settings)),
283
334
  headers: jsonContentHeaders,
284
335
  method: "POST",
285
- path: `/edge-services/v1beta1/check-pem-chain`
336
+ path: `/edge-services/v1beta1/check-pem-chain`,
337
+ signal: options?.signal
286
338
  }, unmarshalCheckPEMChainResponse);
287
- this.pageOfListPurgeRequests = (request = {}) => this.client.fetch({
339
+ this.pageOfListPurgeRequests = (request = {}, options) => this.client.fetch({
288
340
  method: "GET",
289
341
  path: `/edge-services/v1beta1/purge-requests`,
290
- urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["pipeline_id", request.pipelineId], ["project_id", request.projectId])
342
+ urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["pipeline_id", request.pipelineId], ["project_id", request.projectId]),
343
+ signal: options?.signal
291
344
  }, unmarshalListPurgeRequestsResponse);
292
- this.listPurgeRequests = (request = {}) => enrichForPagination("purgeRequests", this.pageOfListPurgeRequests, request);
293
- this.createPurgeRequest = (request) => this.client.fetch({
345
+ this.listPurgeRequests = (request = {}, options) => enrichForPagination("purgeRequests", this.pageOfListPurgeRequests, request, options);
346
+ this.createPurgeRequest = (request, options) => this.client.fetch({
294
347
  body: JSON.stringify(marshalCreatePurgeRequestRequest(request, this.client.settings)),
295
348
  headers: jsonContentHeaders,
296
349
  method: "POST",
297
- path: `/edge-services/v1beta1/purge-requests`
350
+ path: `/edge-services/v1beta1/purge-requests`,
351
+ signal: options?.signal
298
352
  }, unmarshalPurgeRequest);
299
- this.getPurgeRequest = (request) => this.client.fetch({
353
+ this.getPurgeRequest = (request, options) => this.client.fetch({
300
354
  method: "GET",
301
- path: `/edge-services/v1beta1/purge-requests/${validatePathParam("purgeRequestId", request.purgeRequestId)}`
355
+ path: `/edge-services/v1beta1/purge-requests/${validatePathParam("purgeRequestId", request.purgeRequestId)}`,
356
+ signal: options?.signal
302
357
  }, unmarshalPurgeRequest);
303
358
  this.waitForPurgeRequest = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!PURGE_REQUEST_TRANSIENT_STATUSES.includes(res.status))), this.getPurgeRequest, request, options);
304
- this.checkLbOrigin = (request = {}) => this.client.fetch({
359
+ this.checkLbOrigin = (request = {}, options) => this.client.fetch({
305
360
  body: JSON.stringify(marshalCheckLbOriginRequest(request, this.client.settings)),
306
361
  headers: jsonContentHeaders,
307
362
  method: "POST",
308
- path: `/edge-services/v1beta1/check-lb-origin`
363
+ path: `/edge-services/v1beta1/check-lb-origin`,
364
+ signal: options?.signal
309
365
  }, unmarshalCheckLbOriginResponse);
310
- this.listPlans = () => this.client.fetch({
366
+ this.listPlans = (options) => this.client.fetch({
311
367
  method: "GET",
312
- path: `/edge-services/v1beta1/plans`
368
+ path: `/edge-services/v1beta1/plans`,
369
+ signal: options?.signal
313
370
  }, unmarshalListPlansResponse);
314
- this.selectPlan = (request = {}) => this.client.fetch({
371
+ this.selectPlan = (request = {}, options) => this.client.fetch({
315
372
  body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
316
373
  headers: jsonContentHeaders,
317
374
  method: "PATCH",
318
- path: `/edge-services/v1beta1/current-plan`
375
+ path: `/edge-services/v1beta1/current-plan`,
376
+ signal: options?.signal
319
377
  }, unmarshalPlan);
320
- this.getCurrentPlan = (request = {}) => this.client.fetch({
378
+ this.getCurrentPlan = (request = {}, options) => this.client.fetch({
321
379
  method: "GET",
322
- path: `/edge-services/v1beta1/current-plan/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
380
+ path: `/edge-services/v1beta1/current-plan/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`,
381
+ signal: options?.signal
323
382
  }, unmarshalPlan);
324
- this.deleteCurrentPlan = (request = {}) => this.client.fetch({
383
+ this.deleteCurrentPlan = (request = {}, options) => this.client.fetch({
325
384
  method: "DELETE",
326
- path: `/edge-services/v1beta1/current-plan/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
385
+ path: `/edge-services/v1beta1/current-plan/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`,
386
+ signal: options?.signal
327
387
  });
328
- this.getBilling = (request = {}) => this.client.fetch({
388
+ this.getBilling = (request = {}, options) => this.client.fetch({
329
389
  method: "GET",
330
- path: `/edge-services/v1beta1/billing/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
390
+ path: `/edge-services/v1beta1/billing/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`,
391
+ signal: options?.signal
331
392
  }, unmarshalGetBillingResponse);
332
393
  }
333
394
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-edge-services",
3
- "version": "2.25.1",
3
+ "version": "2.26.0",
4
4
  "description": "Scaleway SDK edge-services",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {