@scaleway/sdk 1.2.0 → 1.5.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/index.js +0 -2
- package/dist/api/account/v2/api.gen.js +16 -6
- package/dist/api/applesilicon/v1alpha1/api.gen.js +31 -13
- package/dist/api/baremetal/index.js +2 -2
- package/dist/api/baremetal/v1/api.gen.js +59 -45
- package/dist/api/billing/index.js +2 -0
- package/dist/api/billing/v2alpha1/api.gen.js +52 -0
- package/dist/api/billing/v2alpha1/index.gen.js +3 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.js +52 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +36 -23
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +2 -1
- 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 +18 -11
- package/dist/api/function/v1beta1/api.gen.js +39 -30
- package/dist/api/function/v1beta1/marshalling.gen.js +3 -0
- package/dist/api/iam/v1alpha1/api.gen.js +147 -39
- package/dist/api/instance/index.js +2 -2
- package/dist/api/instance/v1/api.gen.js +72 -61
- package/dist/api/iot/v1/api.gen.js +37 -37
- package/dist/api/k8s/index.js +2 -2
- package/dist/api/k8s/v1/api.gen.js +65 -46
- package/dist/api/k8s/v1/marshalling.gen.js +6 -1
- package/dist/api/lb/index.js +2 -2
- 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 +88 -25
- package/dist/api/registry/v1/api.gen.js +15 -13
- package/dist/api/secret/v1alpha1/api.gen.js +43 -18
- package/dist/api/tem/v1alpha1/api.gen.js +26 -14
- 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 +10 -9
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +3 -1
- package/dist/helpers/is-response.js +10 -0
- package/dist/index.cjs +1598 -928
- package/dist/index.d.ts +3970 -2960
- package/dist/index.js +44 -42
- package/dist/scw/constants.js +1 -1
- package/dist/scw/fetch/response-parser.js +2 -1
- package/package.json +2 -2
- package/dist/api/account/v2alpha1/api.gen.js +0 -85
- package/dist/api/account/v2alpha1/index.js +0 -1
- package/dist/api/account/v2alpha1/marshalling.gen.js +0 -57
|
@@ -13,7 +13,7 @@ const jsonContentHeaders = {
|
|
|
13
13
|
/**
|
|
14
14
|
* DNS API.
|
|
15
15
|
*
|
|
16
|
-
* Manage your DNS zones and records.
|
|
16
|
+
* DNS API. Manage your DNS zones and records.
|
|
17
17
|
*/
|
|
18
18
|
class API extends API$1 {
|
|
19
19
|
constructor() {
|
|
@@ -24,15 +24,15 @@ class API extends API$1 {
|
|
|
24
24
|
urlParams: urlParams(['dns_zone', request.dnsZone], ['domain', request.domain], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
25
25
|
}, unmarshalListDNSZonesResponse);
|
|
26
26
|
/**
|
|
27
|
-
* Returns a list of manageable DNS zones. You can filter the
|
|
28
|
-
* domain name.
|
|
27
|
+
* List DNS zones. Returns a list of manageable DNS zones. You can filter the
|
|
28
|
+
* DNS zones by domain name.
|
|
29
29
|
*
|
|
30
30
|
* @param request - The request {@link ListDNSZonesRequest}
|
|
31
31
|
* @returns A Promise of ListDNSZonesResponse
|
|
32
32
|
*/
|
|
33
33
|
this.listDNSZones = request => enrichForPagination('dnsZones', this.pageOfListDNSZones, request);
|
|
34
34
|
/**
|
|
35
|
-
* Create a new DNS zone.
|
|
35
|
+
* Create a DNS zone. Create a new DNS zone.
|
|
36
36
|
*
|
|
37
37
|
* @param request - The request {@link CreateDNSZoneRequest}
|
|
38
38
|
* @returns A Promise of DNSZone
|
|
@@ -44,7 +44,7 @@ class API extends API$1 {
|
|
|
44
44
|
path: `/domain/v2beta1/dns-zones`
|
|
45
45
|
}, unmarshalDNSZone);
|
|
46
46
|
/**
|
|
47
|
-
* Update the name and/or the organizations for a DNS zone.
|
|
47
|
+
* Update a DNS zone. Update the name and/or the organizations for a DNS zone.
|
|
48
48
|
*
|
|
49
49
|
* @param request - The request {@link UpdateDNSZoneRequest}
|
|
50
50
|
* @returns A Promise of DNSZone
|
|
@@ -56,7 +56,8 @@ class API extends API$1 {
|
|
|
56
56
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
|
|
57
57
|
}, unmarshalDNSZone);
|
|
58
58
|
/**
|
|
59
|
-
* Clone an existed DNS zone with all its records into a new
|
|
59
|
+
* Clone a DNS zone. Clone an existed DNS zone with all its records into a new
|
|
60
|
+
* one.
|
|
60
61
|
*
|
|
61
62
|
* @param request - The request {@link CloneDNSZoneRequest}
|
|
62
63
|
* @returns A Promise of DNSZone
|
|
@@ -68,7 +69,7 @@ class API extends API$1 {
|
|
|
68
69
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
|
|
69
70
|
}, unmarshalDNSZone);
|
|
70
71
|
/**
|
|
71
|
-
* Delete a DNS zone and all it's records.
|
|
72
|
+
* Delete DNS zone. Delete a DNS zone and all it's records.
|
|
72
73
|
*
|
|
73
74
|
* @param request - The request {@link DeleteDNSZoneRequest}
|
|
74
75
|
* @returns A Promise of DeleteDNSZoneResponse
|
|
@@ -84,15 +85,16 @@ class API extends API$1 {
|
|
|
84
85
|
urlParams: urlParams(['id', request.id], ['name', request.name], ['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['type', request.type ?? 'unknown'])
|
|
85
86
|
}, unmarshalListDNSZoneRecordsResponse);
|
|
86
87
|
/**
|
|
87
|
-
* Returns a list of DNS records of a DNS zone with
|
|
88
|
-
* the records by type and name.
|
|
88
|
+
* List DNS zone records. Returns a list of DNS records of a DNS zone with
|
|
89
|
+
* default NS. You can filter the records by type and name.
|
|
89
90
|
*
|
|
90
91
|
* @param request - The request {@link ListDNSZoneRecordsRequest}
|
|
91
92
|
* @returns A Promise of ListDNSZoneRecordsResponse
|
|
92
93
|
*/
|
|
93
94
|
this.listDNSZoneRecords = request => enrichForPagination('records', this.pageOfListDNSZoneRecords, request);
|
|
94
95
|
/**
|
|
95
|
-
* Only available with default NS.<br/> Send a list
|
|
96
|
+
* Update DNS zone records. Only available with default NS.<br/> Send a list
|
|
97
|
+
* of actions and records.
|
|
96
98
|
*
|
|
97
99
|
* Action can be:
|
|
98
100
|
*
|
|
@@ -120,8 +122,8 @@ class API extends API$1 {
|
|
|
120
122
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
|
|
121
123
|
}, unmarshalUpdateDNSZoneRecordsResponse);
|
|
122
124
|
/**
|
|
123
|
-
* Returns a list of Nameservers and their optional
|
|
124
|
-
* zone.
|
|
125
|
+
* List DNS zone nameservers. Returns a list of Nameservers and their optional
|
|
126
|
+
* glue records for a DNS zone.
|
|
125
127
|
*
|
|
126
128
|
* @param request - The request {@link ListDNSZoneNameserversRequest}
|
|
127
129
|
* @returns A Promise of ListDNSZoneNameserversResponse
|
|
@@ -132,7 +134,8 @@ class API extends API$1 {
|
|
|
132
134
|
urlParams: urlParams(['project_id', request.projectId])
|
|
133
135
|
}, unmarshalListDNSZoneNameserversResponse);
|
|
134
136
|
/**
|
|
135
|
-
* Update DNS zone nameservers and set optional
|
|
137
|
+
* Update DNS zone nameservers. Update DNS zone nameservers and set optional
|
|
138
|
+
* glue records.
|
|
136
139
|
*
|
|
137
140
|
* @param request - The request {@link UpdateDNSZoneNameserversRequest}
|
|
138
141
|
* @returns A Promise of UpdateDNSZoneNameserversResponse
|
|
@@ -144,8 +147,8 @@ class API extends API$1 {
|
|
|
144
147
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
|
|
145
148
|
}, unmarshalUpdateDNSZoneNameserversResponse);
|
|
146
149
|
/**
|
|
147
|
-
* Only available with default NS.<br/> Delete all the
|
|
148
|
-
* zone. All edits will be versioned.
|
|
150
|
+
* Clear DNS zone records. Only available with default NS.<br/> Delete all the
|
|
151
|
+
* records from a DNS zone. All edits will be versioned.
|
|
149
152
|
*
|
|
150
153
|
* @param request - The request {@link ClearDNSZoneRecordsRequest}
|
|
151
154
|
* @returns A Promise of ClearDNSZoneRecordsResponse
|
|
@@ -155,7 +158,7 @@ class API extends API$1 {
|
|
|
155
158
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
|
|
156
159
|
}, unmarshalClearDNSZoneRecordsResponse);
|
|
157
160
|
/**
|
|
158
|
-
* Get a DNS zone in a given format with default NS.
|
|
161
|
+
* Export raw DNS zone. Get a DNS zone in a given format with default NS.
|
|
159
162
|
*
|
|
160
163
|
* @param request - The request {@link ExportRawDNSZoneRequest}
|
|
161
164
|
* @returns A Promise of Blob
|
|
@@ -167,7 +170,8 @@ class API extends API$1 {
|
|
|
167
170
|
responseType: 'blob'
|
|
168
171
|
});
|
|
169
172
|
/**
|
|
170
|
-
* Import and replace records from a given provider
|
|
173
|
+
* Import raw DNS zone. Import and replace records from a given provider
|
|
174
|
+
* format with default NS.
|
|
171
175
|
*
|
|
172
176
|
* @param request - The request {@link ImportRawDNSZoneRequest}
|
|
173
177
|
* @returns A Promise of ImportRawDNSZoneResponse
|
|
@@ -179,7 +183,8 @@ class API extends API$1 {
|
|
|
179
183
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
|
|
180
184
|
}, unmarshalImportRawDNSZoneResponse);
|
|
181
185
|
/**
|
|
182
|
-
* Import and replace records from a given provider
|
|
186
|
+
* Import provider DNS zone. Import and replace records from a given provider
|
|
187
|
+
* format with default NS.
|
|
183
188
|
*
|
|
184
189
|
* @param request - The request {@link ImportProviderDNSZoneRequest}
|
|
185
190
|
* @returns A Promise of ImportProviderDNSZoneResponse
|
|
@@ -191,8 +196,8 @@ class API extends API$1 {
|
|
|
191
196
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
|
|
192
197
|
}, unmarshalImportProviderDNSZoneResponse);
|
|
193
198
|
/**
|
|
194
|
-
* Refresh SOA DNS zone. You can recreate the given DNS zone
|
|
195
|
-
* zone if needed.
|
|
199
|
+
* Refresh DNS zone. Refresh SOA DNS zone. You can recreate the given DNS zone
|
|
200
|
+
* and its sub DNS zone if needed.
|
|
196
201
|
*
|
|
197
202
|
* @param request - The request {@link RefreshDNSZoneRequest}
|
|
198
203
|
* @returns A Promise of RefreshDNSZoneResponse
|
|
@@ -209,9 +214,9 @@ class API extends API$1 {
|
|
|
209
214
|
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
210
215
|
}, unmarshalListDNSZoneVersionsResponse);
|
|
211
216
|
/**
|
|
212
|
-
* Get a list of DNS zone versions.<br/> The maximum
|
|
213
|
-
* 100.<br/> If the count reaches this limit, the oldest
|
|
214
|
-
* deleted after each new modification.
|
|
217
|
+
* List DNS zone versions. Get a list of DNS zone versions.<br/> The maximum
|
|
218
|
+
* version count is 100.<br/> If the count reaches this limit, the oldest
|
|
219
|
+
* version will be deleted after each new modification.
|
|
215
220
|
*
|
|
216
221
|
* @param request - The request {@link ListDNSZoneVersionsRequest}
|
|
217
222
|
* @returns A Promise of ListDNSZoneVersionsResponse
|
|
@@ -223,14 +228,16 @@ class API extends API$1 {
|
|
|
223
228
|
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
224
229
|
}, unmarshalListDNSZoneVersionRecordsResponse);
|
|
225
230
|
/**
|
|
226
|
-
* Get a list of records from a previous DNS
|
|
231
|
+
* List DNS zone version records. Get a list of records from a previous DNS
|
|
232
|
+
* zone version.
|
|
227
233
|
*
|
|
228
234
|
* @param request - The request {@link ListDNSZoneVersionRecordsRequest}
|
|
229
235
|
* @returns A Promise of ListDNSZoneVersionRecordsResponse
|
|
230
236
|
*/
|
|
231
237
|
this.listDNSZoneVersionRecords = request => enrichForPagination('records', this.pageOfListDNSZoneVersionRecords, request);
|
|
232
238
|
/**
|
|
233
|
-
* Get all differences from a previous DNS zone
|
|
239
|
+
* Get DNS zone version diff. Get all differences from a previous DNS zone
|
|
240
|
+
* version.
|
|
234
241
|
*
|
|
235
242
|
* @param request - The request {@link GetDNSZoneVersionDiffRequest}
|
|
236
243
|
* @returns A Promise of GetDNSZoneVersionDiffResponse
|
|
@@ -240,7 +247,7 @@ class API extends API$1 {
|
|
|
240
247
|
path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/diff`
|
|
241
248
|
}, unmarshalGetDNSZoneVersionDiffResponse);
|
|
242
249
|
/**
|
|
243
|
-
* Restore and activate a previous DNS zone version.
|
|
250
|
+
* Restore DNS zone version. Restore and activate a previous DNS zone version.
|
|
244
251
|
*
|
|
245
252
|
* @param request - The request {@link RestoreDNSZoneVersionRequest}
|
|
246
253
|
* @returns A Promise of RestoreDNSZoneVersionResponse
|
|
@@ -252,7 +259,7 @@ class API extends API$1 {
|
|
|
252
259
|
path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
|
|
253
260
|
}, unmarshalRestoreDNSZoneVersionResponse);
|
|
254
261
|
/**
|
|
255
|
-
* Get the zone TLS certificate if it exists
|
|
262
|
+
* Get the zone TLS certificate if it exists.
|
|
256
263
|
*
|
|
257
264
|
* @param request - The request {@link GetSSLCertificateRequest}
|
|
258
265
|
* @returns A Promise of SSLCertificate
|
|
@@ -270,7 +277,7 @@ class API extends API$1 {
|
|
|
270
277
|
*/
|
|
271
278
|
this.waitForSSLCertificate = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!SSL_CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getSSLCertificate, request, options);
|
|
272
279
|
/**
|
|
273
|
-
* Create or return the zone TLS certificate
|
|
280
|
+
* Create or return the zone TLS certificate.
|
|
274
281
|
*
|
|
275
282
|
* @param request - The request {@link CreateSSLCertificateRequest}
|
|
276
283
|
* @returns A Promise of SSLCertificate
|
|
@@ -287,14 +294,14 @@ class API extends API$1 {
|
|
|
287
294
|
urlParams: urlParams(['dns_zone', request.dnsZone], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
288
295
|
}, unmarshalListSSLCertificatesResponse);
|
|
289
296
|
/**
|
|
290
|
-
* List all user TLS certificates
|
|
297
|
+
* List all user TLS certificates.
|
|
291
298
|
*
|
|
292
299
|
* @param request - The request {@link ListSSLCertificatesRequest}
|
|
293
300
|
* @returns A Promise of ListSSLCertificatesResponse
|
|
294
301
|
*/
|
|
295
302
|
this.listSSLCertificates = request => enrichForPagination('certificates', this.pageOfListSSLCertificates, request);
|
|
296
303
|
/**
|
|
297
|
-
* Delete an TLS certificate
|
|
304
|
+
* Delete an TLS certificate.
|
|
298
305
|
*
|
|
299
306
|
* @param request - The request {@link DeleteSSLCertificateRequest}
|
|
300
307
|
* @returns A Promise of DeleteSSLCertificateResponse
|
|
@@ -304,7 +311,7 @@ class API extends API$1 {
|
|
|
304
311
|
path: `/domain/v2beta1/ssl-certificates/${validatePathParam('dnsZone', request.dnsZone)}`
|
|
305
312
|
}, unmarshalDeleteSSLCertificateResponse);
|
|
306
313
|
/**
|
|
307
|
-
* Get the DNS zone TSIG Key to allow AXFR request.
|
|
314
|
+
* Get the DNS zone TSIG Key. Get the DNS zone TSIG Key to allow AXFR request.
|
|
308
315
|
*
|
|
309
316
|
* @param request - The request {@link GetDNSZoneTsigKeyRequest}
|
|
310
317
|
* @returns A Promise of GetDNSZoneTsigKeyResponse
|
|
@@ -314,7 +321,7 @@ class API extends API$1 {
|
|
|
314
321
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/tsig-key`
|
|
315
322
|
}, unmarshalGetDNSZoneTsigKeyResponse);
|
|
316
323
|
/**
|
|
317
|
-
* Delete the DNS zone TSIG Key
|
|
324
|
+
* Delete the DNS zone TSIG Key.
|
|
318
325
|
*
|
|
319
326
|
* @param request - The request {@link DeleteDNSZoneTsigKeyRequest}
|
|
320
327
|
*/
|
|
@@ -328,7 +335,7 @@ class API extends API$1 {
|
|
|
328
335
|
/**
|
|
329
336
|
* Domains registrar API.
|
|
330
337
|
*
|
|
331
|
-
* Manage your domains and contacts.
|
|
338
|
+
* Domains registrar API. Manage your domains and contacts.
|
|
332
339
|
*/
|
|
333
340
|
class RegistrarAPI extends API$1 {
|
|
334
341
|
constructor() {
|
|
@@ -346,7 +353,7 @@ class RegistrarAPI extends API$1 {
|
|
|
346
353
|
}, unmarshalListTasksResponse);
|
|
347
354
|
};
|
|
348
355
|
/**
|
|
349
|
-
* List all account tasks. You can filter the list by domain name.
|
|
356
|
+
* List tasks. List all account tasks. You can filter the list by domain name.
|
|
350
357
|
*
|
|
351
358
|
* @param request - The request {@link RegistrarApiListTasksRequest}
|
|
352
359
|
* @returns A Promise of ListTasksResponse
|
|
@@ -358,8 +365,8 @@ class RegistrarAPI extends API$1 {
|
|
|
358
365
|
return enrichForPagination('tasks', _this.pageOfListTasks, request);
|
|
359
366
|
};
|
|
360
367
|
/**
|
|
361
|
-
* Request the registration of domain names. You can
|
|
362
|
-
* existing domain's contact or a new contact.
|
|
368
|
+
* Buy one or more domains. Request the registration of domain names. You can
|
|
369
|
+
* provide an already existing domain's contact or a new contact.
|
|
363
370
|
*
|
|
364
371
|
* @param request - The request {@link RegistrarApiBuyDomainsRequest}
|
|
365
372
|
* @returns A Promise of OrderResponse
|
|
@@ -371,7 +378,7 @@ class RegistrarAPI extends API$1 {
|
|
|
371
378
|
path: `/domain/v2beta1/buy-domains`
|
|
372
379
|
}, unmarshalOrderResponse);
|
|
373
380
|
/**
|
|
374
|
-
* Request the renewal of domain names.
|
|
381
|
+
* Renew one or more domains. Request the renewal of domain names.
|
|
375
382
|
*
|
|
376
383
|
* @param request - The request {@link RegistrarApiRenewDomainsRequest}
|
|
377
384
|
* @returns A Promise of OrderResponse
|
|
@@ -383,7 +390,8 @@ class RegistrarAPI extends API$1 {
|
|
|
383
390
|
path: `/domain/v2beta1/renew-domains`
|
|
384
391
|
}, unmarshalOrderResponse);
|
|
385
392
|
/**
|
|
386
|
-
* Request the transfer from another registrar domain to
|
|
393
|
+
* Transfer a domain. Request the transfer from another registrar domain to
|
|
394
|
+
* Scaleway.
|
|
387
395
|
*
|
|
388
396
|
* @param request - The request {@link RegistrarApiTransferInDomainRequest}
|
|
389
397
|
* @returns A Promise of OrderResponse
|
|
@@ -395,11 +403,11 @@ class RegistrarAPI extends API$1 {
|
|
|
395
403
|
path: `/domain/v2beta1/domains/transfer-domains`
|
|
396
404
|
}, unmarshalOrderResponse);
|
|
397
405
|
/**
|
|
398
|
-
* Request a trade for the contact owner.<br/> If an
|
|
399
|
-
* given, the change is from the current Scaleway account
|
|
400
|
-
* account.<br/> If no contact is given, the first contact
|
|
401
|
-
* Scaleway account is taken.<br/> If the other Scaleway account
|
|
402
|
-
* contact. An error occurs.
|
|
406
|
+
* Trade a domain contact. Request a trade for the contact owner.<br/> If an
|
|
407
|
+
* `organization_id` is given, the change is from the current Scaleway account
|
|
408
|
+
* to another Scaleway account.<br/> If no contact is given, the first contact
|
|
409
|
+
* of the other Scaleway account is taken.<br/> If the other Scaleway account
|
|
410
|
+
* has no contact. An error occurs.
|
|
403
411
|
*
|
|
404
412
|
* @param request - The request {@link RegistrarApiTradeDomainRequest}
|
|
405
413
|
* @returns A Promise of OrderResponse
|
|
@@ -411,7 +419,8 @@ class RegistrarAPI extends API$1 {
|
|
|
411
419
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
|
|
412
420
|
}, unmarshalOrderResponse);
|
|
413
421
|
/**
|
|
414
|
-
* Request the registration of an external domain
|
|
422
|
+
* Register an external domain. Request the registration of an external domain
|
|
423
|
+
* name.
|
|
415
424
|
*
|
|
416
425
|
* @param request - The request
|
|
417
426
|
* {@link RegistrarApiRegisterExternalDomainRequest}
|
|
@@ -424,7 +433,7 @@ class RegistrarAPI extends API$1 {
|
|
|
424
433
|
path: `/domain/v2beta1/external-domains`
|
|
425
434
|
}, unmarshalRegisterExternalDomainResponse);
|
|
426
435
|
/**
|
|
427
|
-
* Delete an external domain name.
|
|
436
|
+
* Delete an external domain. Delete an external domain name.
|
|
428
437
|
*
|
|
429
438
|
* @param request - The request {@link RegistrarApiDeleteExternalDomainRequest}
|
|
430
439
|
* @returns A Promise of DeleteExternalDomainResponse
|
|
@@ -434,8 +443,9 @@ class RegistrarAPI extends API$1 {
|
|
|
434
443
|
path: `/domain/v2beta1/external-domains/${validatePathParam('domain', request.domain)}`
|
|
435
444
|
}, unmarshalDeleteExternalDomainResponse);
|
|
436
445
|
/**
|
|
437
|
-
* Check if contacts are compatible against a domain or a tld.
|
|
438
|
-
*
|
|
446
|
+
* Check if contacts are compatible against a domain or a tld. Check if
|
|
447
|
+
* contacts are compatible against a domain or a tld. If not, it will return
|
|
448
|
+
* the information requiring a correction.
|
|
439
449
|
*
|
|
440
450
|
* @param request - The request
|
|
441
451
|
* {@link RegistrarApiCheckContactsCompatibilityRequest}
|
|
@@ -463,8 +473,8 @@ class RegistrarAPI extends API$1 {
|
|
|
463
473
|
}, unmarshalListContactsResponse);
|
|
464
474
|
};
|
|
465
475
|
/**
|
|
466
|
-
* Return a list of contacts with their domains and roles. You
|
|
467
|
-
* list by domain name.
|
|
476
|
+
* List contacts. Return a list of contacts with their domains and roles. You
|
|
477
|
+
* can filter the list by domain name.
|
|
468
478
|
*
|
|
469
479
|
* @param request - The request {@link RegistrarApiListContactsRequest}
|
|
470
480
|
* @returns A Promise of ListContactsResponse
|
|
@@ -476,8 +486,8 @@ class RegistrarAPI extends API$1 {
|
|
|
476
486
|
return enrichForPagination('contacts', _this.pageOfListContacts, request);
|
|
477
487
|
};
|
|
478
488
|
/**
|
|
479
|
-
* Return a contact details retrieved from the registrar using
|
|
480
|
-
* ID.
|
|
489
|
+
* Get a contact. Return a contact details retrieved from the registrar using
|
|
490
|
+
* a given contact ID.
|
|
481
491
|
*
|
|
482
492
|
* @param request - The request {@link RegistrarApiGetContactRequest}
|
|
483
493
|
* @returns A Promise of Contact
|
|
@@ -487,7 +497,7 @@ class RegistrarAPI extends API$1 {
|
|
|
487
497
|
path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
|
|
488
498
|
}, unmarshalContact);
|
|
489
499
|
/**
|
|
490
|
-
* You can edit the contact coordinates.
|
|
500
|
+
* Update contact. You can edit the contact coordinates.
|
|
491
501
|
*
|
|
492
502
|
* @param request - The request {@link RegistrarApiUpdateContactRequest}
|
|
493
503
|
* @returns A Promise of Contact
|
|
@@ -509,7 +519,7 @@ class RegistrarAPI extends API$1 {
|
|
|
509
519
|
}, unmarshalListDomainsResponse);
|
|
510
520
|
};
|
|
511
521
|
/**
|
|
512
|
-
* Returns a list of domains owned by the user.
|
|
522
|
+
* List domains. Returns a list of domains owned by the user.
|
|
513
523
|
*
|
|
514
524
|
* @param request - The request {@link RegistrarApiListDomainsRequest}
|
|
515
525
|
* @returns A Promise of ListDomainsResponse
|
|
@@ -531,8 +541,9 @@ class RegistrarAPI extends API$1 {
|
|
|
531
541
|
}, unmarshalListRenewableDomainsResponse);
|
|
532
542
|
};
|
|
533
543
|
/**
|
|
534
|
-
*
|
|
535
|
-
* renewable, the maximum renew
|
|
544
|
+
* List scaleway domains that can or not be renewed. Returns a list of domains
|
|
545
|
+
* owned by the user with a renew status and if renewable, the maximum renew
|
|
546
|
+
* duration in years.
|
|
536
547
|
*
|
|
537
548
|
* @param request - The request {@link RegistrarApiListRenewableDomainsRequest}
|
|
538
549
|
* @returns A Promise of ListRenewableDomainsResponse
|
|
@@ -544,7 +555,7 @@ class RegistrarAPI extends API$1 {
|
|
|
544
555
|
return enrichForPagination('domains', _this.pageOfListRenewableDomains, request);
|
|
545
556
|
};
|
|
546
557
|
/**
|
|
547
|
-
* Returns a the domain with more informations.
|
|
558
|
+
* Get domain. Returns a the domain with more informations.
|
|
548
559
|
*
|
|
549
560
|
* @param request - The request {@link RegistrarApiGetDomainRequest}
|
|
550
561
|
* @returns A Promise of Domain
|
|
@@ -562,9 +573,9 @@ class RegistrarAPI extends API$1 {
|
|
|
562
573
|
*/
|
|
563
574
|
this.waitForDomain = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), this.getDomain, request, options);
|
|
564
575
|
/**
|
|
565
|
-
* Update the domain contacts or create a new one.<br/> If
|
|
566
|
-
* contact for multiple roles. Only one ID will be created
|
|
567
|
-
* them.
|
|
576
|
+
* Update a domain. Update the domain contacts or create a new one.<br/> If
|
|
577
|
+
* you add the same contact for multiple roles. Only one ID will be created
|
|
578
|
+
* and used for all of them.
|
|
568
579
|
*
|
|
569
580
|
* @param request - The request {@link RegistrarApiUpdateDomainRequest}
|
|
570
581
|
* @returns A Promise of Domain
|
|
@@ -576,8 +587,8 @@ class RegistrarAPI extends API$1 {
|
|
|
576
587
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
|
|
577
588
|
}, unmarshalDomain);
|
|
578
589
|
/**
|
|
579
|
-
* Lock domain transfer. A locked domain transfer can't
|
|
580
|
-
* auth code can't be requested.
|
|
590
|
+
* Lock domain transfer. Lock domain transfer. A locked domain transfer can't
|
|
591
|
+
* be transferred and the auth code can't be requested.
|
|
581
592
|
*
|
|
582
593
|
* @param request - The request {@link RegistrarApiLockDomainTransferRequest}
|
|
583
594
|
* @returns A Promise of Domain
|
|
@@ -589,8 +600,8 @@ class RegistrarAPI extends API$1 {
|
|
|
589
600
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
|
|
590
601
|
}, unmarshalDomain);
|
|
591
602
|
/**
|
|
592
|
-
* Unlock domain transfer. An unlocked domain can be
|
|
593
|
-
* code can be requested for this.
|
|
603
|
+
* Unlock domain transfer. Unlock domain transfer. An unlocked domain can be
|
|
604
|
+
* transferred and the auth code can be requested for this.
|
|
594
605
|
*
|
|
595
606
|
* @param request - The request {@link RegistrarApiUnlockDomainTransferRequest}
|
|
596
607
|
* @returns A Promise of Domain
|
|
@@ -602,7 +613,7 @@ class RegistrarAPI extends API$1 {
|
|
|
602
613
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
|
|
603
614
|
}, unmarshalDomain);
|
|
604
615
|
/**
|
|
605
|
-
* Enable domain auto renew
|
|
616
|
+
* Enable domain auto renew.
|
|
606
617
|
*
|
|
607
618
|
* @param request - The request
|
|
608
619
|
* {@link RegistrarApiEnableDomainAutoRenewRequest}
|
|
@@ -615,7 +626,7 @@ class RegistrarAPI extends API$1 {
|
|
|
615
626
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
|
|
616
627
|
}, unmarshalDomain);
|
|
617
628
|
/**
|
|
618
|
-
* Disable domain auto renew
|
|
629
|
+
* Disable domain auto renew.
|
|
619
630
|
*
|
|
620
631
|
* @param request - The request
|
|
621
632
|
* {@link RegistrarApiDisableDomainAutoRenewRequest}
|
|
@@ -628,10 +639,10 @@ class RegistrarAPI extends API$1 {
|
|
|
628
639
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
|
|
629
640
|
}, unmarshalDomain);
|
|
630
641
|
/**
|
|
631
|
-
* If possible, return the auth code for an unlocked
|
|
632
|
-
* error if the domain is locked. Some TLD may have a
|
|
633
|
-
* retrieve the auth code, in that case, the
|
|
634
|
-
* message field.
|
|
642
|
+
* Return domain auth code. If possible, return the auth code for an unlocked
|
|
643
|
+
* domain transfer, or an error if the domain is locked. Some TLD may have a
|
|
644
|
+
* different procedure to retrieve the auth code, in that case, the
|
|
645
|
+
* information is given in the message field.
|
|
635
646
|
*
|
|
636
647
|
* @param request - The request {@link RegistrarApiGetDomainAuthCodeRequest}
|
|
637
648
|
* @returns A Promise of GetDomainAuthCodeResponse
|
|
@@ -641,9 +652,9 @@ class RegistrarAPI extends API$1 {
|
|
|
641
652
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/auth-code`
|
|
642
653
|
}, unmarshalGetDomainAuthCodeResponse);
|
|
643
654
|
/**
|
|
644
|
-
* If your domain has the default Scaleway NS and uses
|
|
645
|
-
* have to update the DS record manually. For the
|
|
646
|
-
* numbers for each type:
|
|
655
|
+
* Update domain DNSSEC. If your domain has the default Scaleway NS and uses
|
|
656
|
+
* another registrar, you have to update the DS record manually. For the
|
|
657
|
+
* algorithm, here are the code numbers for each type:
|
|
647
658
|
*
|
|
648
659
|
* - 1: RSAMD5
|
|
649
660
|
* - 2: DIFFIE_HELLMAN
|
|
@@ -674,7 +685,7 @@ class RegistrarAPI extends API$1 {
|
|
|
674
685
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
|
|
675
686
|
}, unmarshalDomain);
|
|
676
687
|
/**
|
|
677
|
-
* Disable domain DNSSEC
|
|
688
|
+
* Disable domain DNSSEC.
|
|
678
689
|
*
|
|
679
690
|
* @param request - The request {@link RegistrarApiDisableDomainDNSSECRequest}
|
|
680
691
|
* @returns A Promise of Domain
|
|
@@ -686,7 +697,7 @@ class RegistrarAPI extends API$1 {
|
|
|
686
697
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
|
|
687
698
|
}, unmarshalDomain);
|
|
688
699
|
/**
|
|
689
|
-
* Search a domain (or at maximum, 10 domains).
|
|
700
|
+
* Search available domains. Search a domain (or at maximum, 10 domains).
|
|
690
701
|
*
|
|
691
702
|
* If the TLD list is empty or not set the search returns the results from the
|
|
692
703
|
* most popular TLDs.
|
|
@@ -701,7 +712,7 @@ class RegistrarAPI extends API$1 {
|
|
|
701
712
|
urlParams: urlParams(['domains', request.domains], ['strict_search', request.strictSearch], ['tlds', request.tlds])
|
|
702
713
|
}, unmarshalSearchAvailableDomainsResponse);
|
|
703
714
|
/**
|
|
704
|
-
* Create domain hostname with glue IPs
|
|
715
|
+
* Create domain hostname with glue IPs.
|
|
705
716
|
*
|
|
706
717
|
* @param request - The request {@link RegistrarApiCreateDomainHostRequest}
|
|
707
718
|
* @returns A Promise of Host
|
|
@@ -718,14 +729,14 @@ class RegistrarAPI extends API$1 {
|
|
|
718
729
|
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
719
730
|
}, unmarshalListDomainHostsResponse);
|
|
720
731
|
/**
|
|
721
|
-
* List domain hostnames with they glue IPs
|
|
732
|
+
* List domain hostnames with they glue IPs.
|
|
722
733
|
*
|
|
723
734
|
* @param request - The request {@link RegistrarApiListDomainHostsRequest}
|
|
724
735
|
* @returns A Promise of ListDomainHostsResponse
|
|
725
736
|
*/
|
|
726
737
|
this.listDomainHosts = request => enrichForPagination('hosts', this.pageOfListDomainHosts, request);
|
|
727
738
|
/**
|
|
728
|
-
* Update domain hostname with glue IPs
|
|
739
|
+
* Update domain hostname with glue IPs.
|
|
729
740
|
*
|
|
730
741
|
* @param request - The request {@link RegistrarApiUpdateDomainHostRequest}
|
|
731
742
|
* @returns A Promise of Host
|
|
@@ -737,7 +748,7 @@ class RegistrarAPI extends API$1 {
|
|
|
737
748
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
|
|
738
749
|
}, unmarshalHost);
|
|
739
750
|
/**
|
|
740
|
-
* Delete domain hostname
|
|
751
|
+
* Delete domain hostname.
|
|
741
752
|
*
|
|
742
753
|
* @param request - The request {@link RegistrarApiDeleteDomainHostRequest}
|
|
743
754
|
* @returns A Promise of Host
|
|
@@ -17,7 +17,7 @@ class API extends API$1 {
|
|
|
17
17
|
super(...arguments);
|
|
18
18
|
_this = this;
|
|
19
19
|
/**
|
|
20
|
-
* Create a Flexible IP
|
|
20
|
+
* Create a Flexible IP.
|
|
21
21
|
*
|
|
22
22
|
* @param request - The request {@link CreateFlexibleIPRequest}
|
|
23
23
|
* @returns A Promise of FlexibleIP
|
|
@@ -29,7 +29,7 @@ class API extends API$1 {
|
|
|
29
29
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
|
|
30
30
|
}, unmarshalFlexibleIP);
|
|
31
31
|
/**
|
|
32
|
-
* Get a Flexible IP
|
|
32
|
+
* Get a Flexible IP.
|
|
33
33
|
*
|
|
34
34
|
* @param request - The request {@link GetFlexibleIPRequest}
|
|
35
35
|
* @returns A Promise of FlexibleIP
|
|
@@ -57,7 +57,7 @@ class API extends API$1 {
|
|
|
57
57
|
}, unmarshalListFlexibleIPsResponse);
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
|
-
* List Flexible IPs
|
|
60
|
+
* List Flexible IPs.
|
|
61
61
|
*
|
|
62
62
|
* @param request - The request {@link ListFlexibleIPsRequest}
|
|
63
63
|
* @returns A Promise of ListFlexibleIPsResponse
|
|
@@ -69,7 +69,7 @@ class API extends API$1 {
|
|
|
69
69
|
return enrichForPagination('flexibleIps', _this.pageOfListFlexibleIPs, request);
|
|
70
70
|
};
|
|
71
71
|
/**
|
|
72
|
-
* Update a Flexible IP
|
|
72
|
+
* Update a Flexible IP.
|
|
73
73
|
*
|
|
74
74
|
* @param request - The request {@link UpdateFlexibleIPRequest}
|
|
75
75
|
* @returns A Promise of FlexibleIP
|
|
@@ -81,7 +81,7 @@ class API extends API$1 {
|
|
|
81
81
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
|
|
82
82
|
}, unmarshalFlexibleIP);
|
|
83
83
|
/**
|
|
84
|
-
* Delete a Flexible IP
|
|
84
|
+
* Delete a Flexible IP.
|
|
85
85
|
*
|
|
86
86
|
* @param request - The request {@link DeleteFlexibleIPRequest}
|
|
87
87
|
*/
|
|
@@ -90,7 +90,7 @@ class API extends API$1 {
|
|
|
90
90
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
|
|
91
91
|
});
|
|
92
92
|
/**
|
|
93
|
-
* Attach a Flexible IP to a server
|
|
93
|
+
* Attach a Flexible IP to a server.
|
|
94
94
|
*
|
|
95
95
|
* @param request - The request {@link AttachFlexibleIPRequest}
|
|
96
96
|
* @returns A Promise of AttachFlexibleIPsResponse
|
|
@@ -102,7 +102,7 @@ class API extends API$1 {
|
|
|
102
102
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
|
|
103
103
|
}, unmarshalAttachFlexibleIPsResponse);
|
|
104
104
|
/**
|
|
105
|
-
* Detach a Flexible IP from a server
|
|
105
|
+
* Detach a Flexible IP from a server.
|
|
106
106
|
*
|
|
107
107
|
* @param request - The request {@link DetachFlexibleIPRequest}
|
|
108
108
|
* @returns A Promise of DetachFlexibleIPsResponse
|
|
@@ -114,7 +114,7 @@ class API extends API$1 {
|
|
|
114
114
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
|
|
115
115
|
}, unmarshalDetachFlexibleIPsResponse);
|
|
116
116
|
/**
|
|
117
|
-
* Generate a virtual MAC on a given Flexible IP
|
|
117
|
+
* Generate a virtual MAC on a given Flexible IP.
|
|
118
118
|
*
|
|
119
119
|
* @param request - The request {@link GenerateMACAddrRequest}
|
|
120
120
|
* @returns A Promise of FlexibleIP
|
|
@@ -126,8 +126,8 @@ class API extends API$1 {
|
|
|
126
126
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
|
|
127
127
|
}, unmarshalFlexibleIP);
|
|
128
128
|
/**
|
|
129
|
-
* Duplicate a Virtual MAC from a given Flexible IP
|
|
130
|
-
* the same server.
|
|
129
|
+
* Duplicate a Virtual MAC. Duplicate a Virtual MAC from a given Flexible IP
|
|
130
|
+
* onto another attached on the same server.
|
|
131
131
|
*
|
|
132
132
|
* @param request - The request {@link DuplicateMACAddrRequest}
|
|
133
133
|
* @returns A Promise of FlexibleIP
|
|
@@ -138,6 +138,13 @@ class API extends API$1 {
|
|
|
138
138
|
method: 'POST',
|
|
139
139
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
|
|
140
140
|
}, unmarshalFlexibleIP);
|
|
141
|
+
/**
|
|
142
|
+
* Move a virtual MAC. Move a Virtual MAC from a given Flexible IP onto
|
|
143
|
+
* another Flexible IP.
|
|
144
|
+
*
|
|
145
|
+
* @param request - The request {@link MoveMACAddrRequest}
|
|
146
|
+
* @returns A Promise of FlexibleIP
|
|
147
|
+
*/
|
|
141
148
|
this.moveMACAddr = request => this.client.fetch({
|
|
142
149
|
body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
|
|
143
150
|
headers: jsonContentHeaders,
|
|
@@ -145,7 +152,7 @@ class API extends API$1 {
|
|
|
145
152
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
|
|
146
153
|
}, unmarshalFlexibleIP);
|
|
147
154
|
/**
|
|
148
|
-
* Remove a virtual MAC from a Flexible IP
|
|
155
|
+
* Remove a virtual MAC from a Flexible IP.
|
|
149
156
|
*
|
|
150
157
|
* @param request - The request {@link DeleteMACAddrRequest}
|
|
151
158
|
*/
|