@scaleway/sdk 1.2.0 → 1.4.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.
- package/dist/api/account/v2/api.gen.js +16 -6
- package/dist/api/applesilicon/v1alpha1/api.gen.js +31 -13
- package/dist/api/baremetal/v1/api.gen.js +59 -45
- package/dist/api/cockpit/v1beta1/api.gen.js +25 -17
- package/dist/api/container/v1beta1/api.gen.js +34 -27
- package/dist/api/domain/v2beta1/api.gen.js +89 -78
- package/dist/api/flexibleip/v1alpha1/api.gen.js +11 -11
- package/dist/api/function/v1beta1/api.gen.js +39 -30
- package/dist/api/iam/v1alpha1/api.gen.js +140 -39
- package/dist/api/instance/v1/api.gen.js +72 -61
- package/dist/api/iot/v1/api.gen.js +37 -37
- package/dist/api/k8s/v1/api.gen.js +52 -45
- package/dist/api/lb/v1/api.gen.js +231 -110
- package/dist/api/lb/v1/marshalling.gen.js +2 -2
- package/dist/api/marketplace/v1/api.gen.js +2 -2
- package/dist/api/marketplace/v2/api.gen.js +3 -3
- package/dist/api/mnq/v1alpha1/api.gen.js +11 -10
- package/dist/api/rdb/v1/api.gen.js +195 -63
- package/dist/api/rdb/v1/marshalling.gen.js +16 -2
- package/dist/api/redis/v1/api.gen.js +26 -25
- package/dist/api/registry/v1/api.gen.js +15 -13
- package/dist/api/secret/v1alpha1/api.gen.js +18 -17
- package/dist/api/tem/v1alpha1/api.gen.js +12 -12
- package/dist/api/tem/v1alpha1/marshalling.gen.js +2 -0
- package/dist/api/test/v1/api.gen.js +11 -10
- package/dist/api/vpc/v1/api.gen.js +5 -5
- package/dist/api/vpcgw/v1/api.gen.js +130 -41
- package/dist/api/vpcgw/v1/marshalling.gen.js +18 -15
- package/dist/api/webhosting/v1alpha1/api.gen.js +9 -9
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +3 -1
- package/dist/index.cjs +1316 -750
- package/dist/index.d.ts +3277 -2440
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ const jsonContentHeaders = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Functions API.
|
|
15
15
|
*
|
|
16
|
-
* Serverless functions API.
|
|
16
|
+
* Serverless functions API. Functions API.
|
|
17
17
|
*/
|
|
18
18
|
class API extends API$1 {
|
|
19
19
|
constructor() {
|
|
@@ -31,7 +31,7 @@ class API extends API$1 {
|
|
|
31
31
|
}, unmarshalListNamespacesResponse);
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* List all your namespaces
|
|
34
|
+
* List all your namespaces.
|
|
35
35
|
*
|
|
36
36
|
* @param request - The request {@link ListNamespacesRequest}
|
|
37
37
|
* @returns A Promise of ListNamespacesResponse
|
|
@@ -43,7 +43,7 @@ class API extends API$1 {
|
|
|
43
43
|
return enrichForPagination('namespaces', _this.pageOfListNamespaces, request);
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* Get the namespace associated with the given id.
|
|
46
|
+
* Get a namespace. Get the namespace associated with the given id.
|
|
47
47
|
*
|
|
48
48
|
* @param request - The request {@link GetNamespaceRequest}
|
|
49
49
|
* @returns A Promise of Namespace
|
|
@@ -61,7 +61,7 @@ class API extends API$1 {
|
|
|
61
61
|
*/
|
|
62
62
|
this.waitForNamespace = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), this.getNamespace, request, options);
|
|
63
63
|
/**
|
|
64
|
-
* Create a new namespace
|
|
64
|
+
* Create a new namespace.
|
|
65
65
|
*
|
|
66
66
|
* @param request - The request {@link CreateNamespaceRequest}
|
|
67
67
|
* @returns A Promise of Namespace
|
|
@@ -78,7 +78,8 @@ class API extends API$1 {
|
|
|
78
78
|
}, unmarshalNamespace);
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
81
|
-
* Update the space associated with the given
|
|
81
|
+
* Update an existing namespace. Update the space associated with the given
|
|
82
|
+
* id.
|
|
82
83
|
*
|
|
83
84
|
* @param request - The request {@link UpdateNamespaceRequest}
|
|
84
85
|
* @returns A Promise of Namespace
|
|
@@ -90,7 +91,8 @@ class API extends API$1 {
|
|
|
90
91
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
91
92
|
}, unmarshalNamespace);
|
|
92
93
|
/**
|
|
93
|
-
* Delete the namespace associated with the
|
|
94
|
+
* Delete an existing namespace. Delete the namespace associated with the
|
|
95
|
+
* given id.
|
|
94
96
|
*
|
|
95
97
|
* @param request - The request {@link DeleteNamespaceRequest}
|
|
96
98
|
* @returns A Promise of Namespace
|
|
@@ -105,14 +107,14 @@ class API extends API$1 {
|
|
|
105
107
|
urlParams: urlParams(['name', request.name], ['namespace_id', request.namespaceId], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
106
108
|
}, unmarshalListFunctionsResponse);
|
|
107
109
|
/**
|
|
108
|
-
* List all your functions
|
|
110
|
+
* List all your functions.
|
|
109
111
|
*
|
|
110
112
|
* @param request - The request {@link ListFunctionsRequest}
|
|
111
113
|
* @returns A Promise of ListFunctionsResponse
|
|
112
114
|
*/
|
|
113
115
|
this.listFunctions = request => enrichForPagination('functions', this.pageOfListFunctions, request);
|
|
114
116
|
/**
|
|
115
|
-
* Get the function associated with the given id.
|
|
117
|
+
* Get a function. Get the function associated with the given id.
|
|
116
118
|
*
|
|
117
119
|
* @param request - The request {@link GetFunctionRequest}
|
|
118
120
|
* @returns A Promise of Function
|
|
@@ -130,7 +132,7 @@ class API extends API$1 {
|
|
|
130
132
|
*/
|
|
131
133
|
this.waitForFunction = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!FUNCTION_TRANSIENT_STATUSES.includes(res.status))), this.getFunction, request, options);
|
|
132
134
|
/**
|
|
133
|
-
* Create a new function
|
|
135
|
+
* Create a new function.
|
|
134
136
|
*
|
|
135
137
|
* @param request - The request {@link CreateFunctionRequest}
|
|
136
138
|
* @returns A Promise of Function
|
|
@@ -142,7 +144,8 @@ class API extends API$1 {
|
|
|
142
144
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
|
|
143
145
|
}, unmarshalFunction);
|
|
144
146
|
/**
|
|
145
|
-
* Update the function associated with the given
|
|
147
|
+
* Update an existing function. Update the function associated with the given
|
|
148
|
+
* id.
|
|
146
149
|
*
|
|
147
150
|
* @param request - The request {@link UpdateFunctionRequest}
|
|
148
151
|
* @returns A Promise of Function
|
|
@@ -154,7 +157,7 @@ class API extends API$1 {
|
|
|
154
157
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
|
|
155
158
|
}, unmarshalFunction);
|
|
156
159
|
/**
|
|
157
|
-
* Delete the function associated with the given id.
|
|
160
|
+
* Delete a function. Delete the function associated with the given id.
|
|
158
161
|
*
|
|
159
162
|
* @param request - The request {@link DeleteFunctionRequest}
|
|
160
163
|
* @returns A Promise of Function
|
|
@@ -164,7 +167,7 @@ class API extends API$1 {
|
|
|
164
167
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
|
|
165
168
|
}, unmarshalFunction);
|
|
166
169
|
/**
|
|
167
|
-
* Deploy a function associated with the given id.
|
|
170
|
+
* Deploy a function. Deploy a function associated with the given id.
|
|
168
171
|
*
|
|
169
172
|
* @param request - The request {@link DeployFunctionRequest}
|
|
170
173
|
* @returns A Promise of Function
|
|
@@ -176,7 +179,7 @@ class API extends API$1 {
|
|
|
176
179
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
|
|
177
180
|
}, unmarshalFunction);
|
|
178
181
|
/**
|
|
179
|
-
* List available function runtimes.
|
|
182
|
+
* List function runtimes. List available function runtimes.
|
|
180
183
|
*
|
|
181
184
|
* @param request - The request {@link ListFunctionRuntimesRequest}
|
|
182
185
|
* @returns A Promise of ListFunctionRuntimesResponse
|
|
@@ -191,7 +194,8 @@ class API extends API$1 {
|
|
|
191
194
|
}, unmarshalListFunctionRuntimesResponse);
|
|
192
195
|
};
|
|
193
196
|
/**
|
|
194
|
-
* Get an upload URL of a function
|
|
197
|
+
* Get an upload URL of a function. Get an upload URL of a function associated
|
|
198
|
+
* with the given id.
|
|
195
199
|
*
|
|
196
200
|
* @param request - The request {@link GetFunctionUploadURLRequest}
|
|
197
201
|
* @returns A Promise of UploadURL
|
|
@@ -202,7 +206,8 @@ class API extends API$1 {
|
|
|
202
206
|
urlParams: urlParams(['content_length', request.contentLength])
|
|
203
207
|
}, unmarshalUploadURL);
|
|
204
208
|
/**
|
|
205
|
-
* Get a download URL
|
|
209
|
+
* Get a download URL of a function. Get a download URL for a function
|
|
210
|
+
* associated with the given id.
|
|
206
211
|
*
|
|
207
212
|
* @param request - The request {@link GetFunctionDownloadURLRequest}
|
|
208
213
|
* @returns A Promise of DownloadURL
|
|
@@ -217,14 +222,14 @@ class API extends API$1 {
|
|
|
217
222
|
urlParams: urlParams(['function_id', request.functionId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
218
223
|
}, unmarshalListCronsResponse);
|
|
219
224
|
/**
|
|
220
|
-
* List all your crons
|
|
225
|
+
* List all your crons.
|
|
221
226
|
*
|
|
222
227
|
* @param request - The request {@link ListCronsRequest}
|
|
223
228
|
* @returns A Promise of ListCronsResponse
|
|
224
229
|
*/
|
|
225
230
|
this.listCrons = request => enrichForPagination('crons', this.pageOfListCrons, request);
|
|
226
231
|
/**
|
|
227
|
-
* Get the cron associated with the given id.
|
|
232
|
+
* Get a cron. Get the cron associated with the given id.
|
|
228
233
|
*
|
|
229
234
|
* @param request - The request {@link GetCronRequest}
|
|
230
235
|
* @returns A Promise of Cron
|
|
@@ -242,7 +247,7 @@ class API extends API$1 {
|
|
|
242
247
|
*/
|
|
243
248
|
this.waitForCron = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!CRON_TRANSIENT_STATUSES.includes(res.status))), this.getCron, request, options);
|
|
244
249
|
/**
|
|
245
|
-
* Create a new cron
|
|
250
|
+
* Create a new cron.
|
|
246
251
|
*
|
|
247
252
|
* @param request - The request {@link CreateCronRequest}
|
|
248
253
|
* @returns A Promise of Cron
|
|
@@ -254,7 +259,7 @@ class API extends API$1 {
|
|
|
254
259
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
255
260
|
}, unmarshalCron);
|
|
256
261
|
/**
|
|
257
|
-
* Update the cron associated with the given id.
|
|
262
|
+
* Update an existing cron. Update the cron associated with the given id.
|
|
258
263
|
*
|
|
259
264
|
* @param request - The request {@link UpdateCronRequest}
|
|
260
265
|
* @returns A Promise of Cron
|
|
@@ -266,7 +271,7 @@ class API extends API$1 {
|
|
|
266
271
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
267
272
|
}, unmarshalCron);
|
|
268
273
|
/**
|
|
269
|
-
* Delete the cron associated with the given id.
|
|
274
|
+
* Delete an existing cron. Delete the cron associated with the given id.
|
|
270
275
|
*
|
|
271
276
|
* @param request - The request {@link DeleteCronRequest}
|
|
272
277
|
* @returns A Promise of Cron
|
|
@@ -281,7 +286,7 @@ class API extends API$1 {
|
|
|
281
286
|
urlParams: urlParams(['order_by', request.orderBy ?? 'timestamp_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
282
287
|
}, unmarshalListLogsResponse);
|
|
283
288
|
/**
|
|
284
|
-
* List your application logs
|
|
289
|
+
* List your application logs.
|
|
285
290
|
*
|
|
286
291
|
* @param request - The request {@link ListLogsRequest}
|
|
287
292
|
* @returns A Promise of ListLogsResponse
|
|
@@ -293,14 +298,14 @@ class API extends API$1 {
|
|
|
293
298
|
urlParams: urlParams(['function_id', request.functionId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
294
299
|
}, unmarshalListDomainsResponse);
|
|
295
300
|
/**
|
|
296
|
-
* List all domain name bindings
|
|
301
|
+
* List all domain name bindings.
|
|
297
302
|
*
|
|
298
303
|
* @param request - The request {@link ListDomainsRequest}
|
|
299
304
|
* @returns A Promise of ListDomainsResponse
|
|
300
305
|
*/
|
|
301
306
|
this.listDomains = request => enrichForPagination('domains', this.pageOfListDomains, request);
|
|
302
307
|
/**
|
|
303
|
-
* Get a domain name binding
|
|
308
|
+
* Get a domain name binding.
|
|
304
309
|
*
|
|
305
310
|
* @param request - The request {@link GetDomainRequest}
|
|
306
311
|
* @returns A Promise of Domain
|
|
@@ -318,7 +323,7 @@ class API extends API$1 {
|
|
|
318
323
|
*/
|
|
319
324
|
this.waitForDomain = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), this.getDomain, request, options);
|
|
320
325
|
/**
|
|
321
|
-
* Create a domain name binding
|
|
326
|
+
* Create a domain name binding.
|
|
322
327
|
*
|
|
323
328
|
* @param request - The request {@link CreateDomainRequest}
|
|
324
329
|
* @returns A Promise of Domain
|
|
@@ -330,7 +335,7 @@ class API extends API$1 {
|
|
|
330
335
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
331
336
|
}, unmarshalDomain);
|
|
332
337
|
/**
|
|
333
|
-
* Delete a domain name binding
|
|
338
|
+
* Delete a domain name binding.
|
|
334
339
|
*
|
|
335
340
|
* @param request - The request {@link DeleteDomainRequest}
|
|
336
341
|
* @returns A Promise of Domain
|
|
@@ -339,7 +344,11 @@ class API extends API$1 {
|
|
|
339
344
|
method: 'DELETE',
|
|
340
345
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}`
|
|
341
346
|
}, unmarshalDomain);
|
|
342
|
-
/**
|
|
347
|
+
/**
|
|
348
|
+
* @deprecated
|
|
349
|
+
* @param request - The request {@link IssueJWTRequest}
|
|
350
|
+
* @returns A Promise of Token
|
|
351
|
+
*/
|
|
343
352
|
this.issueJWT = function (request) {
|
|
344
353
|
if (request === void 0) {
|
|
345
354
|
request = {};
|
|
@@ -357,7 +366,7 @@ class API extends API$1 {
|
|
|
357
366
|
}, unmarshalToken);
|
|
358
367
|
};
|
|
359
368
|
/**
|
|
360
|
-
* Create a new revocable token
|
|
369
|
+
* Create a new revocable token.
|
|
361
370
|
*
|
|
362
371
|
* @param request - The request {@link CreateTokenRequest}
|
|
363
372
|
* @returns A Promise of Token
|
|
@@ -374,7 +383,7 @@ class API extends API$1 {
|
|
|
374
383
|
}, unmarshalToken);
|
|
375
384
|
};
|
|
376
385
|
/**
|
|
377
|
-
* Get a token
|
|
386
|
+
* Get a token.
|
|
378
387
|
*
|
|
379
388
|
* @param request - The request {@link GetTokenRequest}
|
|
380
389
|
* @returns A Promise of Token
|
|
@@ -402,7 +411,7 @@ class API extends API$1 {
|
|
|
402
411
|
}, unmarshalListTokensResponse);
|
|
403
412
|
};
|
|
404
413
|
/**
|
|
405
|
-
* List all tokens
|
|
414
|
+
* List all tokens.
|
|
406
415
|
*
|
|
407
416
|
* @param request - The request {@link ListTokensRequest}
|
|
408
417
|
* @returns A Promise of ListTokensResponse
|
|
@@ -414,7 +423,7 @@ class API extends API$1 {
|
|
|
414
423
|
return enrichForPagination('tokens', _this.pageOfListTokens, request);
|
|
415
424
|
};
|
|
416
425
|
/**
|
|
417
|
-
* Delete a token
|
|
426
|
+
* Delete a token.
|
|
418
427
|
*
|
|
419
428
|
* @param request - The request {@link DeleteTokenRequest}
|
|
420
429
|
* @returns A Promise of Token
|