@scaleway/sdk 1.1.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.
Files changed (44) hide show
  1. package/dist/api/account/v2/api.gen.js +16 -6
  2. package/dist/api/applesilicon/v1alpha1/api.gen.js +31 -13
  3. package/dist/api/baremetal/v1/api.gen.js +59 -45
  4. package/dist/api/cockpit/v1beta1/api.gen.js +35 -15
  5. package/dist/api/container/v1beta1/api.gen.js +34 -27
  6. package/dist/api/domain/v2beta1/api.gen.js +89 -78
  7. package/dist/api/flexibleip/v1alpha1/api.gen.js +11 -11
  8. package/dist/api/function/v1beta1/api.gen.js +39 -30
  9. package/dist/api/iam/v1alpha1/api.gen.js +200 -35
  10. package/dist/api/iam/v1alpha1/marshalling.gen.js +44 -1
  11. package/dist/api/iam/v1alpha1/validation-rules.gen.js +24 -1
  12. package/dist/api/instance/v1/api.gen.js +72 -61
  13. package/dist/api/iot/v1/api.gen.js +37 -37
  14. package/dist/api/k8s/index.js +2 -2
  15. package/dist/api/k8s/v1/api.gen.js +52 -45
  16. package/dist/api/k8s/v1/api.utils.js +16 -0
  17. package/dist/api/k8s/v1/{index.gen.js → index.js} +1 -3
  18. package/dist/api/lb/v1/api.gen.js +231 -110
  19. package/dist/api/lb/v1/marshalling.gen.js +16 -2
  20. package/dist/api/marketplace/v1/api.gen.js +2 -2
  21. package/dist/api/marketplace/v2/api.gen.js +3 -3
  22. package/dist/api/mnq/v1alpha1/api.gen.js +11 -10
  23. package/dist/api/rdb/v1/api.gen.js +207 -63
  24. package/dist/api/rdb/v1/marshalling.gen.js +20 -3
  25. package/dist/api/redis/v1/api.gen.js +26 -25
  26. package/dist/api/registry/v1/api.gen.js +15 -13
  27. package/dist/api/secret/v1alpha1/api.gen.js +18 -17
  28. package/dist/api/tem/v1alpha1/api.gen.js +12 -12
  29. package/dist/api/tem/v1alpha1/marshalling.gen.js +2 -0
  30. package/dist/api/test/v1/api.gen.js +11 -10
  31. package/dist/api/vpc/v1/api.gen.js +5 -5
  32. package/dist/api/vpcgw/v1/api.gen.js +130 -41
  33. package/dist/api/vpcgw/v1/marshalling.gen.js +18 -15
  34. package/dist/api/webhosting/index.js +2 -0
  35. package/dist/api/webhosting/v1alpha1/api.gen.js +131 -0
  36. package/dist/api/webhosting/v1alpha1/content.gen.js +7 -0
  37. package/dist/api/webhosting/v1alpha1/index.gen.js +6 -0
  38. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +142 -0
  39. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +14 -0
  40. package/dist/index.cjs +2227 -1191
  41. package/dist/index.d.ts +9164 -6899
  42. package/dist/index.js +2 -0
  43. package/dist/scw/constants.js +1 -1
  44. package/package.json +2 -2
@@ -13,7 +13,7 @@ const jsonContentHeaders = {
13
13
  /**
14
14
  * Containers API.
15
15
  *
16
- * Serverless Containers API.
16
+ * Serverless Containers API. Containers 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 id.
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: `/containers/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 given id.
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
  }, unmarshalListContainersResponse);
107
109
  /**
108
- * List all your containers
110
+ * List all your containers.
109
111
  *
110
112
  * @param request - The request {@link ListContainersRequest}
111
113
  * @returns A Promise of ListContainersResponse
112
114
  */
113
115
  this.listContainers = request => enrichForPagination('containers', this.pageOfListContainers, request);
114
116
  /**
115
- * Get the container associated with the given id.
117
+ * Get a container. Get the container associated with the given id.
116
118
  *
117
119
  * @param request - The request {@link GetContainerRequest}
118
120
  * @returns A Promise of Container
@@ -130,7 +132,7 @@ class API extends API$1 {
130
132
  */
131
133
  this.waitForContainer = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!CONTAINER_TRANSIENT_STATUSES.includes(res.status))), this.getContainer, request, options);
132
134
  /**
133
- * Create a new container
135
+ * Create a new container.
134
136
  *
135
137
  * @param request - The request {@link CreateContainerRequest}
136
138
  * @returns A Promise of Container
@@ -142,7 +144,8 @@ class API extends API$1 {
142
144
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
143
145
  }, unmarshalContainer);
144
146
  /**
145
- * Update the container associated with the given id.
147
+ * Update an existing container. Update the container associated with the
148
+ * given id.
146
149
  *
147
150
  * @param request - The request {@link UpdateContainerRequest}
148
151
  * @returns A Promise of Container
@@ -154,7 +157,7 @@ class API extends API$1 {
154
157
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
155
158
  }, unmarshalContainer);
156
159
  /**
157
- * Delete the container associated with the given id.
160
+ * Delete a container. Delete the container associated with the given id.
158
161
  *
159
162
  * @param request - The request {@link DeleteContainerRequest}
160
163
  * @returns A Promise of Container
@@ -164,7 +167,7 @@ class API extends API$1 {
164
167
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
165
168
  }, unmarshalContainer);
166
169
  /**
167
- * Deploy a container associated with the given id.
170
+ * Deploy a container. Deploy a container associated with the given id.
168
171
  *
169
172
  * @param request - The request {@link DeployContainerRequest}
170
173
  * @returns A Promise of Container
@@ -181,14 +184,14 @@ class API extends API$1 {
181
184
  urlParams: urlParams(['container_id', request.containerId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
182
185
  }, unmarshalListCronsResponse);
183
186
  /**
184
- * List all your crons
187
+ * List all your crons.
185
188
  *
186
189
  * @param request - The request {@link ListCronsRequest}
187
190
  * @returns A Promise of ListCronsResponse
188
191
  */
189
192
  this.listCrons = request => enrichForPagination('crons', this.pageOfListCrons, request);
190
193
  /**
191
- * Get the cron associated with the given id.
194
+ * Get a cron. Get the cron associated with the given id.
192
195
  *
193
196
  * @param request - The request {@link GetCronRequest}
194
197
  * @returns A Promise of Cron
@@ -206,7 +209,7 @@ class API extends API$1 {
206
209
  */
207
210
  this.waitForCron = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!CRON_TRANSIENT_STATUSES.includes(res.status))), this.getCron, request, options);
208
211
  /**
209
- * Create a new cron
212
+ * Create a new cron.
210
213
  *
211
214
  * @param request - The request {@link CreateCronRequest}
212
215
  * @returns A Promise of Cron
@@ -218,7 +221,7 @@ class API extends API$1 {
218
221
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
219
222
  }, unmarshalCron);
220
223
  /**
221
- * Update the cron associated with the given id.
224
+ * Update an existing cron. Update the cron associated with the given id.
222
225
  *
223
226
  * @param request - The request {@link UpdateCronRequest}
224
227
  * @returns A Promise of Cron
@@ -230,7 +233,7 @@ class API extends API$1 {
230
233
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
231
234
  }, unmarshalCron);
232
235
  /**
233
- * Delete the cron associated with the given id.
236
+ * Delete an existing cron. Delete the cron associated with the given id.
234
237
  *
235
238
  * @param request - The request {@link DeleteCronRequest}
236
239
  * @returns A Promise of Cron
@@ -245,7 +248,7 @@ class API extends API$1 {
245
248
  urlParams: urlParams(['order_by', request.orderBy ?? 'timestamp_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
246
249
  }, unmarshalListLogsResponse);
247
250
  /**
248
- * List your container logs
251
+ * List your container logs.
249
252
  *
250
253
  * @param request - The request {@link ListLogsRequest}
251
254
  * @returns A Promise of ListLogsResponse
@@ -257,14 +260,14 @@ class API extends API$1 {
257
260
  urlParams: urlParams(['container_id', request.containerId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
258
261
  }, unmarshalListDomainsResponse);
259
262
  /**
260
- * List all domain name bindings
263
+ * List all domain name bindings.
261
264
  *
262
265
  * @param request - The request {@link ListDomainsRequest}
263
266
  * @returns A Promise of ListDomainsResponse
264
267
  */
265
268
  this.listDomains = request => enrichForPagination('domains', this.pageOfListDomains, request);
266
269
  /**
267
- * Get a domain name binding
270
+ * Get a domain name binding.
268
271
  *
269
272
  * @param request - The request {@link GetDomainRequest}
270
273
  * @returns A Promise of Domain
@@ -282,7 +285,7 @@ class API extends API$1 {
282
285
  */
283
286
  this.waitForDomain = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), this.getDomain, request, options);
284
287
  /**
285
- * Create a domain name binding
288
+ * Create a domain name binding.
286
289
  *
287
290
  * @param request - The request {@link CreateDomainRequest}
288
291
  * @returns A Promise of Domain
@@ -294,7 +297,7 @@ class API extends API$1 {
294
297
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
295
298
  }, unmarshalDomain);
296
299
  /**
297
- * Delete a domain name binding
300
+ * Delete a domain name binding.
298
301
  *
299
302
  * @param request - The request {@link DeleteDomainRequest}
300
303
  * @returns A Promise of Domain
@@ -303,7 +306,11 @@ class API extends API$1 {
303
306
  method: 'DELETE',
304
307
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}`
305
308
  }, unmarshalDomain);
306
- /** @deprecated */
309
+ /**
310
+ * @deprecated
311
+ * @param request - The request {@link IssueJWTRequest}
312
+ * @returns A Promise of Token
313
+ */
307
314
  this.issueJWT = function (request) {
308
315
  if (request === void 0) {
309
316
  request = {};
@@ -321,7 +328,7 @@ class API extends API$1 {
321
328
  }, unmarshalToken);
322
329
  };
323
330
  /**
324
- * Create a new revocable token
331
+ * Create a new revocable token.
325
332
  *
326
333
  * @param request - The request {@link CreateTokenRequest}
327
334
  * @returns A Promise of Token
@@ -338,7 +345,7 @@ class API extends API$1 {
338
345
  }, unmarshalToken);
339
346
  };
340
347
  /**
341
- * Get a token
348
+ * Get a token.
342
349
  *
343
350
  * @param request - The request {@link GetTokenRequest}
344
351
  * @returns A Promise of Token
@@ -366,7 +373,7 @@ class API extends API$1 {
366
373
  }, unmarshalListTokensResponse);
367
374
  };
368
375
  /**
369
- * List all tokens
376
+ * List all tokens.
370
377
  *
371
378
  * @param request - The request {@link ListTokensRequest}
372
379
  * @returns A Promise of ListTokensResponse
@@ -378,7 +385,7 @@ class API extends API$1 {
378
385
  return enrichForPagination('tokens', _this.pageOfListTokens, request);
379
386
  };
380
387
  /**
381
- * Delete a token
388
+ * Delete a token.
382
389
  *
383
390
  * @param request - The request {@link DeleteTokenRequest}
384
391
  * @returns A Promise of Token