@scaleway/sdk 2.21.1 → 2.23.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/dedibox/index.js +2 -0
- package/dist/api/dedibox/v1/api.gen.js +974 -0
- package/dist/api/dedibox/v1/content.gen.js +31 -0
- package/dist/api/dedibox/v1/index.gen.js +7 -0
- package/dist/api/dedibox/v1/marshalling.gen.js +1198 -0
- package/dist/api/dedibox/v1/validation-rules.gen.js +544 -0
- package/dist/api/document_db/v1beta1/api.gen.js +15 -1
- package/dist/api/document_db/v1beta1/content.gen.js +1 -1
- package/dist/api/document_db/v1beta1/marshalling.gen.js +15 -14
- package/dist/api/iam/v1alpha1/api.gen.js +1 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/lb/v1/api.gen.js +2 -2
- package/dist/api/llm_inference/index.js +2 -0
- package/dist/api/llm_inference/v1beta1/api.gen.js +233 -0
- package/dist/api/llm_inference/v1beta1/content.gen.js +7 -0
- package/dist/api/llm_inference/v1beta1/index.gen.js +7 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.js +225 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.js +55 -0
- package/dist/api/rdb/v1/api.gen.js +18 -1
- package/dist/api/rdb/v1/content.gen.js +1 -1
- package/dist/api/rdb/v1/marshalling.gen.js +15 -14
- package/dist/api/secret/v1beta1/api.gen.js +3 -2
- package/dist/api/secret/v1beta1/marshalling.gen.js +2 -1
- package/dist/api/vpc/v2/api.gen.js +14 -0
- package/dist/index.cjs +4435 -1005
- package/dist/index.d.ts +15177 -11168
- package/dist/index.js +52 -48
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
2
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3
|
+
|
|
4
|
+
const AttachFailoverIPToMacAddressRequest = {
|
|
5
|
+
ipId: {
|
|
6
|
+
greaterThan: 0
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
const AttachFailoverIPsRequest = {
|
|
10
|
+
serverId: {
|
|
11
|
+
greaterThan: 0
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const BillingApiDownloadInvoiceRequest = {
|
|
15
|
+
invoiceId: {
|
|
16
|
+
greaterThan: 0
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const BillingApiDownloadRefundRequest = {
|
|
20
|
+
refundId: {
|
|
21
|
+
greaterThan: 0
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const BillingApiGetInvoiceRequest = {
|
|
25
|
+
invoiceId: {
|
|
26
|
+
greaterThan: 0
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const BillingApiGetRefundRequest = {
|
|
30
|
+
refundId: {
|
|
31
|
+
greaterThan: 0
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const BillingApiListInvoicesRequest = {
|
|
35
|
+
page: {
|
|
36
|
+
greaterThan: 0
|
|
37
|
+
},
|
|
38
|
+
pageSize: {
|
|
39
|
+
greaterThan: 0,
|
|
40
|
+
lessThanOrEqual: 100
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const BillingApiListRefundsRequest = {
|
|
44
|
+
page: {
|
|
45
|
+
greaterThan: 0
|
|
46
|
+
},
|
|
47
|
+
pageSize: {
|
|
48
|
+
greaterThan: 0,
|
|
49
|
+
lessThanOrEqual: 100
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const CancelServerInstallRequest = {
|
|
53
|
+
serverId: {
|
|
54
|
+
greaterThan: 0
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const DeleteFailoverIPRequest = {
|
|
58
|
+
ipId: {
|
|
59
|
+
greaterThan: 0
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const DeleteServerRequest = {
|
|
63
|
+
serverId: {
|
|
64
|
+
greaterThan: 0
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const DeleteServiceRequest = {
|
|
68
|
+
serviceId: {
|
|
69
|
+
greaterThan: 0
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const DetachFailoverIPFromMacAddressRequest = {
|
|
73
|
+
ipId: {
|
|
74
|
+
greaterThan: 0
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const GetBMCAccessRequest = {
|
|
78
|
+
serverId: {
|
|
79
|
+
greaterThan: 0
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const GetFailoverIPRequest = {
|
|
83
|
+
ipId: {
|
|
84
|
+
greaterThan: 0
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const GetOSRequest = {
|
|
88
|
+
osId: {
|
|
89
|
+
greaterThan: 0
|
|
90
|
+
},
|
|
91
|
+
serverId: {
|
|
92
|
+
greaterThan: 0
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const GetOfferRequest = {
|
|
96
|
+
offerId: {
|
|
97
|
+
greaterThan: 0
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const GetOrderedServiceRequest = {
|
|
101
|
+
orderedServiceId: {
|
|
102
|
+
greaterThan: 0
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const GetRaidRequest = {
|
|
106
|
+
serverId: {
|
|
107
|
+
greaterThan: 0
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const GetRescueRequest = {
|
|
111
|
+
serverId: {
|
|
112
|
+
greaterThan: 0
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const GetServerBackupRequest = {
|
|
116
|
+
serverId: {
|
|
117
|
+
greaterThan: 0
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const GetServerInstallRequest = {
|
|
121
|
+
serverId: {
|
|
122
|
+
greaterThan: 0
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
const GetServerRequest = {
|
|
126
|
+
serverId: {
|
|
127
|
+
greaterThan: 0
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const GetServiceRequest = {
|
|
131
|
+
serviceId: {
|
|
132
|
+
greaterThan: 0
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
const IPv6Block = {
|
|
136
|
+
id: {
|
|
137
|
+
greaterThan: 0
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
const IPv6BlockApiCreateIPv6BlockSubnetRequest = {
|
|
141
|
+
blockId: {
|
|
142
|
+
greaterThan: 0
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
const IPv6BlockApiDeleteIPv6BlockRequest = {
|
|
146
|
+
blockId: {
|
|
147
|
+
greaterThan: 0
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
const IPv6BlockApiListIPv6BlockSubnetsAvailableRequest = {
|
|
151
|
+
blockId: {
|
|
152
|
+
greaterThan: 0
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const IPv6BlockApiUpdateIPv6BlockRequest = {
|
|
156
|
+
blockId: {
|
|
157
|
+
greaterThan: 0
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const InstallServerRequest = {
|
|
161
|
+
osId: {
|
|
162
|
+
greaterThan: 0
|
|
163
|
+
},
|
|
164
|
+
serverId: {
|
|
165
|
+
greaterThan: 0
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
const ListFailoverIPsRequest = {
|
|
169
|
+
page: {
|
|
170
|
+
greaterThan: 0
|
|
171
|
+
},
|
|
172
|
+
pageSize: {
|
|
173
|
+
greaterThan: 0,
|
|
174
|
+
lessThanOrEqual: 100
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
const ListOSRequest = {
|
|
178
|
+
page: {
|
|
179
|
+
greaterThan: 0
|
|
180
|
+
},
|
|
181
|
+
pageSize: {
|
|
182
|
+
greaterThan: 0,
|
|
183
|
+
lessThanOrEqual: 100
|
|
184
|
+
},
|
|
185
|
+
serverId: {
|
|
186
|
+
greaterThan: 0
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const ListOffersRequest = {
|
|
190
|
+
page: {
|
|
191
|
+
greaterThan: 0
|
|
192
|
+
},
|
|
193
|
+
pageSize: {
|
|
194
|
+
greaterThan: 0,
|
|
195
|
+
lessThanOrEqual: 100
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
const ListServerDisksRequest = {
|
|
199
|
+
page: {
|
|
200
|
+
greaterThan: 0
|
|
201
|
+
},
|
|
202
|
+
pageSize: {
|
|
203
|
+
greaterThan: 0,
|
|
204
|
+
lessThanOrEqual: 100
|
|
205
|
+
},
|
|
206
|
+
serverId: {
|
|
207
|
+
greaterThan: 0
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
const ListServerEventsRequest = {
|
|
211
|
+
page: {
|
|
212
|
+
greaterThan: 0
|
|
213
|
+
},
|
|
214
|
+
pageSize: {
|
|
215
|
+
greaterThan: 0,
|
|
216
|
+
lessThanOrEqual: 100
|
|
217
|
+
},
|
|
218
|
+
serverId: {
|
|
219
|
+
greaterThan: 0
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
const ListServersRequest = {
|
|
223
|
+
page: {
|
|
224
|
+
greaterThan: 0
|
|
225
|
+
},
|
|
226
|
+
pageSize: {
|
|
227
|
+
greaterThan: 0,
|
|
228
|
+
lessThanOrEqual: 100
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
const ListServicesRequest = {
|
|
232
|
+
page: {
|
|
233
|
+
greaterThan: 0
|
|
234
|
+
},
|
|
235
|
+
pageSize: {
|
|
236
|
+
greaterThan: 0,
|
|
237
|
+
lessThanOrEqual: 100
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
const ListSubscribableServerOptionsRequest = {
|
|
241
|
+
page: {
|
|
242
|
+
greaterThan: 0
|
|
243
|
+
},
|
|
244
|
+
pageSize: {
|
|
245
|
+
greaterThan: 0,
|
|
246
|
+
lessThanOrEqual: 100
|
|
247
|
+
},
|
|
248
|
+
serverId: {
|
|
249
|
+
greaterThan: 0
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
const RebootServerRequest = {
|
|
253
|
+
serverId: {
|
|
254
|
+
greaterThan: 0
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
const RpnApiListRpnServerCapabilitiesRequest = {
|
|
258
|
+
page: {
|
|
259
|
+
greaterThan: 0
|
|
260
|
+
},
|
|
261
|
+
pageSize: {
|
|
262
|
+
greaterThan: 0,
|
|
263
|
+
lessThanOrEqual: 100
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
const RpnSanApiAddIpRequest = {
|
|
267
|
+
rpnSanId: {
|
|
268
|
+
greaterThan: 0
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
const RpnSanApiDeleteRpnSanRequest = {
|
|
272
|
+
rpnSanId: {
|
|
273
|
+
greaterThan: 0
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
const RpnSanApiGetRpnSanRequest = {
|
|
277
|
+
rpnSanId: {
|
|
278
|
+
greaterThan: 0
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
const RpnSanApiListAvailableIpsRequest = {
|
|
282
|
+
rpnSanId: {
|
|
283
|
+
greaterThan: 0
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
const RpnSanApiListIpsRequest = {
|
|
287
|
+
rpnSanId: {
|
|
288
|
+
greaterThan: 0
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
const RpnSanApiListRpnSansRequest = {
|
|
292
|
+
page: {
|
|
293
|
+
greaterThan: 0
|
|
294
|
+
},
|
|
295
|
+
pageSize: {
|
|
296
|
+
greaterThan: 0,
|
|
297
|
+
lessThanOrEqual: 100
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
const RpnSanApiRemoveIpRequest = {
|
|
301
|
+
rpnSanId: {
|
|
302
|
+
greaterThan: 0
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
const RpnV1ApiAcceptRpnInviteRequest = {
|
|
306
|
+
memberId: {
|
|
307
|
+
greaterThan: 0
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
const RpnV1ApiAddRpnGroupMembersRequest = {
|
|
311
|
+
groupId: {
|
|
312
|
+
greaterThan: 0
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
const RpnV1ApiDeleteRpnGroupMembersRequest = {
|
|
316
|
+
groupId: {
|
|
317
|
+
greaterThan: 0
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
const RpnV1ApiDeleteRpnGroupRequest = {
|
|
321
|
+
groupId: {
|
|
322
|
+
greaterThan: 0
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
const RpnV1ApiGetRpnGroupRequest = {
|
|
326
|
+
groupId: {
|
|
327
|
+
greaterThan: 0
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
const RpnV1ApiLeaveRpnGroupRequest = {
|
|
331
|
+
groupId: {
|
|
332
|
+
greaterThan: 0
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
const RpnV1ApiListRpnCapableSanServersRequest = {
|
|
336
|
+
page: {
|
|
337
|
+
greaterThan: 0
|
|
338
|
+
},
|
|
339
|
+
pageSize: {
|
|
340
|
+
greaterThan: 0,
|
|
341
|
+
lessThanOrEqual: 100
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
const RpnV1ApiListRpnCapableServersRequest = {
|
|
345
|
+
page: {
|
|
346
|
+
greaterThan: 0
|
|
347
|
+
},
|
|
348
|
+
pageSize: {
|
|
349
|
+
greaterThan: 0,
|
|
350
|
+
lessThanOrEqual: 100
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
const RpnV1ApiListRpnGroupMembersRequest = {
|
|
354
|
+
groupId: {
|
|
355
|
+
greaterThan: 0
|
|
356
|
+
},
|
|
357
|
+
page: {
|
|
358
|
+
greaterThan: 0
|
|
359
|
+
},
|
|
360
|
+
pageSize: {
|
|
361
|
+
greaterThan: 0,
|
|
362
|
+
lessThanOrEqual: 100
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
const RpnV1ApiListRpnGroupsRequest = {
|
|
366
|
+
page: {
|
|
367
|
+
greaterThan: 0
|
|
368
|
+
},
|
|
369
|
+
pageSize: {
|
|
370
|
+
greaterThan: 0,
|
|
371
|
+
lessThanOrEqual: 100
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
const RpnV1ApiListRpnInvitesRequest = {
|
|
375
|
+
page: {
|
|
376
|
+
greaterThan: 0
|
|
377
|
+
},
|
|
378
|
+
pageSize: {
|
|
379
|
+
greaterThan: 0,
|
|
380
|
+
lessThanOrEqual: 100
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
const RpnV1ApiRefuseRpnInviteRequest = {
|
|
384
|
+
memberId: {
|
|
385
|
+
greaterThan: 0
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
const RpnV1ApiRpnGroupInviteRequest = {
|
|
389
|
+
groupId: {
|
|
390
|
+
greaterThan: 0
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
const RpnV1ApiUpdateRpnGroupNameRequest = {
|
|
394
|
+
groupId: {
|
|
395
|
+
greaterThan: 0
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
const RpnV2ApiAddRpnV2MembersRequest = {
|
|
399
|
+
groupId: {
|
|
400
|
+
greaterThan: 0
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
const RpnV2ApiDeleteRpnV2GroupRequest = {
|
|
404
|
+
groupId: {
|
|
405
|
+
greaterThan: 0
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
const RpnV2ApiDeleteRpnV2MembersRequest = {
|
|
409
|
+
groupId: {
|
|
410
|
+
greaterThan: 0
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
const RpnV2ApiDisableRpnV2GroupCompatibilityRequest = {
|
|
414
|
+
groupId: {
|
|
415
|
+
greaterThan: 0
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
const RpnV2ApiEnableRpnV2GroupCompatibilityRequest = {
|
|
419
|
+
groupId: {
|
|
420
|
+
greaterThan: 0
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
const RpnV2ApiGetRpnV2GroupRequest = {
|
|
424
|
+
groupId: {
|
|
425
|
+
greaterThan: 0
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
const RpnV2ApiListRpnV2CapableResourcesRequest = {
|
|
429
|
+
page: {
|
|
430
|
+
greaterThan: 0
|
|
431
|
+
},
|
|
432
|
+
pageSize: {
|
|
433
|
+
greaterThan: 0,
|
|
434
|
+
lessThanOrEqual: 100
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
const RpnV2ApiListRpnV2GroupLogsRequest = {
|
|
438
|
+
groupId: {
|
|
439
|
+
greaterThan: 0
|
|
440
|
+
},
|
|
441
|
+
page: {
|
|
442
|
+
greaterThan: 0
|
|
443
|
+
},
|
|
444
|
+
pageSize: {
|
|
445
|
+
greaterThan: 0,
|
|
446
|
+
lessThanOrEqual: 100
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
const RpnV2ApiListRpnV2GroupsRequest = {
|
|
450
|
+
page: {
|
|
451
|
+
greaterThan: 0
|
|
452
|
+
},
|
|
453
|
+
pageSize: {
|
|
454
|
+
greaterThan: 0,
|
|
455
|
+
lessThanOrEqual: 100
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
const RpnV2ApiListRpnV2MembersRequest = {
|
|
459
|
+
groupId: {
|
|
460
|
+
greaterThan: 0
|
|
461
|
+
},
|
|
462
|
+
page: {
|
|
463
|
+
greaterThan: 0
|
|
464
|
+
},
|
|
465
|
+
pageSize: {
|
|
466
|
+
greaterThan: 0,
|
|
467
|
+
lessThanOrEqual: 100
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
const RpnV2ApiUpdateRpnV2GroupNameRequest = {
|
|
471
|
+
groupId: {
|
|
472
|
+
greaterThan: 0
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
const RpnV2ApiUpdateRpnV2VlanForMembersRequest = {
|
|
476
|
+
groupId: {
|
|
477
|
+
greaterThan: 0
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
const StartRescueRequest = {
|
|
481
|
+
serverId: {
|
|
482
|
+
greaterThan: 0
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
const StartServerRequest = {
|
|
486
|
+
serverId: {
|
|
487
|
+
greaterThan: 0
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
const StopBMCAccessRequest = {
|
|
491
|
+
serverId: {
|
|
492
|
+
greaterThan: 0
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
const StopRescueRequest = {
|
|
496
|
+
serverId: {
|
|
497
|
+
greaterThan: 0
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
const StopServerRequest = {
|
|
501
|
+
serverId: {
|
|
502
|
+
greaterThan: 0
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
const SubscribeServerOptionRequest = {
|
|
506
|
+
optionId: {
|
|
507
|
+
greaterThan: 0
|
|
508
|
+
},
|
|
509
|
+
serverId: {
|
|
510
|
+
greaterThan: 0
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
const SubscribeStorageOptionsRequest = {
|
|
514
|
+
serverId: {
|
|
515
|
+
greaterThan: 0
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
const UpdateRaidRequest = {
|
|
519
|
+
serverId: {
|
|
520
|
+
greaterThan: 0
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
const UpdateReverseRequest = {
|
|
524
|
+
ipId: {
|
|
525
|
+
greaterThan: 0
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
const UpdateServerBackupRequest = {
|
|
529
|
+
serverId: {
|
|
530
|
+
greaterThan: 0
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
const UpdateServerRequest = {
|
|
534
|
+
serverId: {
|
|
535
|
+
greaterThan: 0
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
const UpdateServerTagsRequest = {
|
|
539
|
+
serverId: {
|
|
540
|
+
greaterThan: 0
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
export { AttachFailoverIPToMacAddressRequest, AttachFailoverIPsRequest, BillingApiDownloadInvoiceRequest, BillingApiDownloadRefundRequest, BillingApiGetInvoiceRequest, BillingApiGetRefundRequest, BillingApiListInvoicesRequest, BillingApiListRefundsRequest, CancelServerInstallRequest, DeleteFailoverIPRequest, DeleteServerRequest, DeleteServiceRequest, DetachFailoverIPFromMacAddressRequest, GetBMCAccessRequest, GetFailoverIPRequest, GetOSRequest, GetOfferRequest, GetOrderedServiceRequest, GetRaidRequest, GetRescueRequest, GetServerBackupRequest, GetServerInstallRequest, GetServerRequest, GetServiceRequest, IPv6Block, IPv6BlockApiCreateIPv6BlockSubnetRequest, IPv6BlockApiDeleteIPv6BlockRequest, IPv6BlockApiListIPv6BlockSubnetsAvailableRequest, IPv6BlockApiUpdateIPv6BlockRequest, InstallServerRequest, ListFailoverIPsRequest, ListOSRequest, ListOffersRequest, ListServerDisksRequest, ListServerEventsRequest, ListServersRequest, ListServicesRequest, ListSubscribableServerOptionsRequest, RebootServerRequest, RpnApiListRpnServerCapabilitiesRequest, RpnSanApiAddIpRequest, RpnSanApiDeleteRpnSanRequest, RpnSanApiGetRpnSanRequest, RpnSanApiListAvailableIpsRequest, RpnSanApiListIpsRequest, RpnSanApiListRpnSansRequest, RpnSanApiRemoveIpRequest, RpnV1ApiAcceptRpnInviteRequest, RpnV1ApiAddRpnGroupMembersRequest, RpnV1ApiDeleteRpnGroupMembersRequest, RpnV1ApiDeleteRpnGroupRequest, RpnV1ApiGetRpnGroupRequest, RpnV1ApiLeaveRpnGroupRequest, RpnV1ApiListRpnCapableSanServersRequest, RpnV1ApiListRpnCapableServersRequest, RpnV1ApiListRpnGroupMembersRequest, RpnV1ApiListRpnGroupsRequest, RpnV1ApiListRpnInvitesRequest, RpnV1ApiRefuseRpnInviteRequest, RpnV1ApiRpnGroupInviteRequest, RpnV1ApiUpdateRpnGroupNameRequest, RpnV2ApiAddRpnV2MembersRequest, RpnV2ApiDeleteRpnV2GroupRequest, RpnV2ApiDeleteRpnV2MembersRequest, RpnV2ApiDisableRpnV2GroupCompatibilityRequest, RpnV2ApiEnableRpnV2GroupCompatibilityRequest, RpnV2ApiGetRpnV2GroupRequest, RpnV2ApiListRpnV2CapableResourcesRequest, RpnV2ApiListRpnV2GroupLogsRequest, RpnV2ApiListRpnV2GroupsRequest, RpnV2ApiListRpnV2MembersRequest, RpnV2ApiUpdateRpnV2GroupNameRequest, RpnV2ApiUpdateRpnV2VlanForMembersRequest, StartRescueRequest, StartServerRequest, StopBMCAccessRequest, StopRescueRequest, StopServerRequest, SubscribeServerOptionRequest, SubscribeStorageOptionsRequest, UpdateRaidRequest, UpdateReverseRequest, UpdateServerBackupRequest, UpdateServerRequest, UpdateServerTagsRequest };
|
|
@@ -3,7 +3,7 @@ import { API as API$1 } from '../../../scw/api.js';
|
|
|
3
3
|
import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { INSTANCE_TRANSIENT_STATUSES, READ_REPLICA_TRANSIENT_STATUSES, INSTANCE_LOG_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from './content.gen.js';
|
|
6
|
-
import { unmarshalListDatabaseEnginesResponse, unmarshalListNodeTypesResponse, marshalUpgradeInstanceRequest, unmarshalInstance, unmarshalListInstancesResponse, marshalCreateInstanceRequest, marshalUpdateInstanceRequest, marshalCloneInstanceRequest, unmarshalInstanceMetrics, marshalCreateReadReplicaRequest, unmarshalReadReplica, marshalCreateReadReplicaEndpointRequest, unmarshalListInstanceLogsResponse, unmarshalInstanceLog, marshalPurgeInstanceLogsRequest, unmarshalListInstanceLogsDetailsResponse, marshalAddInstanceSettingsRequest, unmarshalAddInstanceSettingsResponse, marshalDeleteInstanceSettingsRequest, unmarshalDeleteInstanceSettingsResponse, marshalSetInstanceSettingsRequest, unmarshalSetInstanceSettingsResponse, unmarshalListInstanceACLRulesResponse, marshalAddInstanceACLRulesRequest, unmarshalAddInstanceACLRulesResponse, marshalSetInstanceACLRulesRequest, unmarshalSetInstanceACLRulesResponse, marshalDeleteInstanceACLRulesRequest, unmarshalDeleteInstanceACLRulesResponse, unmarshalListUsersResponse, marshalCreateUserRequest, unmarshalUser, marshalUpdateUserRequest, unmarshalListDatabasesResponse, marshalCreateDatabaseRequest, unmarshalDatabase, unmarshalListPrivilegesResponse, marshalSetPrivilegeRequest, unmarshalPrivilege, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalUpdateSnapshotRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateEndpointRequest, unmarshalEndpoint, marshalMigrateEndpointRequest } from './marshalling.gen.js';
|
|
6
|
+
import { unmarshalListDatabaseEnginesResponse, unmarshalListNodeTypesResponse, marshalUpgradeInstanceRequest, unmarshalInstance, unmarshalListInstancesResponse, marshalCreateInstanceRequest, marshalUpdateInstanceRequest, marshalCloneInstanceRequest, unmarshalInstanceMetrics, marshalCreateReadReplicaRequest, unmarshalReadReplica, marshalCreateReadReplicaEndpointRequest, unmarshalListInstanceLogsResponse, unmarshalInstanceLog, marshalPurgeInstanceLogsRequest, unmarshalListInstanceLogsDetailsResponse, marshalAddInstanceSettingsRequest, unmarshalAddInstanceSettingsResponse, marshalDeleteInstanceSettingsRequest, unmarshalDeleteInstanceSettingsResponse, marshalSetInstanceSettingsRequest, unmarshalSetInstanceSettingsResponse, unmarshalListInstanceACLRulesResponse, marshalAddInstanceACLRulesRequest, unmarshalAddInstanceACLRulesResponse, marshalSetInstanceACLRulesRequest, unmarshalSetInstanceACLRulesResponse, marshalDeleteInstanceACLRulesRequest, unmarshalDeleteInstanceACLRulesResponse, unmarshalListUsersResponse, marshalCreateUserRequest, unmarshalUser, marshalUpdateUserRequest, unmarshalListDatabasesResponse, marshalCreateDatabaseRequest, unmarshalDatabase, unmarshalListPrivilegesResponse, marshalSetPrivilegeRequest, unmarshalPrivilege, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalUpdateSnapshotRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateEndpointRequest, unmarshalEndpoint, marshalMigrateEndpointRequest, unmarshalMaintenance } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
9
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -777,6 +777,20 @@ class API extends API$1 {
|
|
|
777
777
|
method: 'POST',
|
|
778
778
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}/migrate`
|
|
779
779
|
}, unmarshalEndpoint);
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Apply an instance maintenance. Apply a pending instance maintenance on your
|
|
783
|
+
* instance. This action can generate some service interruption.
|
|
784
|
+
*
|
|
785
|
+
* @param request - The request {@link ApplyInstanceMaintenanceRequest}
|
|
786
|
+
* @returns A Promise of Maintenance
|
|
787
|
+
*/
|
|
788
|
+
applyInstanceMaintenance = request => this.client.fetch({
|
|
789
|
+
body: '{}',
|
|
790
|
+
headers: jsonContentHeaders,
|
|
791
|
+
method: 'POST',
|
|
792
|
+
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/apply-maintenance`
|
|
793
|
+
}, unmarshalMaintenance);
|
|
780
794
|
}
|
|
781
795
|
|
|
782
796
|
export { API };
|
|
@@ -8,7 +8,7 @@ const INSTANCE_LOG_TRANSIENT_STATUSES = ['creating'];
|
|
|
8
8
|
const INSTANCE_TRANSIENT_STATUSES = ['provisioning', 'configuring', 'deleting', 'autohealing', 'initializing', 'backuping', 'snapshotting', 'restarting'];
|
|
9
9
|
|
|
10
10
|
/** Lists transient statutes of the enum {@link MaintenanceStatus}. */
|
|
11
|
-
const MAINTENANCE_TRANSIENT_STATUSES = ['
|
|
11
|
+
const MAINTENANCE_TRANSIENT_STATUSES = ['ongoing'];
|
|
12
12
|
|
|
13
13
|
/** Lists transient statutes of the enum {@link ReadReplicaStatus}. */
|
|
14
14
|
const READ_REPLICA_TRANSIENT_STATUSES = ['provisioning', 'initializing', 'deleting', 'configuring', 'promoting'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
|
-
import {
|
|
4
|
+
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
7
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -42,6 +42,19 @@ const unmarshalEndpoint = data => {
|
|
|
42
42
|
privateNetwork: data.private_network ? unmarshalEndpointPrivateNetworkDetails(data.private_network) : undefined
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
+
const unmarshalMaintenance = data => {
|
|
46
|
+
if (!isJSONObject(data)) {
|
|
47
|
+
throw new TypeError(`Unmarshalling the type 'Maintenance' failed as data isn't a dictionary.`);
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
closedAt: unmarshalDate(data.closed_at),
|
|
51
|
+
forcedAt: unmarshalDate(data.forced_at),
|
|
52
|
+
reason: data.reason,
|
|
53
|
+
startsAt: unmarshalDate(data.starts_at),
|
|
54
|
+
status: data.status,
|
|
55
|
+
stopsAt: unmarshalDate(data.stops_at)
|
|
56
|
+
};
|
|
57
|
+
};
|
|
45
58
|
const unmarshalReadReplica = data => {
|
|
46
59
|
if (!isJSONObject(data)) {
|
|
47
60
|
throw new TypeError(`Unmarshalling the type 'ReadReplica' failed as data isn't a dictionary.`);
|
|
@@ -108,18 +121,6 @@ const unmarshalLogsPolicy = data => {
|
|
|
108
121
|
totalDiskRetention: data.total_disk_retention
|
|
109
122
|
};
|
|
110
123
|
};
|
|
111
|
-
const unmarshalMaintenance = data => {
|
|
112
|
-
if (!isJSONObject(data)) {
|
|
113
|
-
throw new TypeError(`Unmarshalling the type 'Maintenance' failed as data isn't a dictionary.`);
|
|
114
|
-
}
|
|
115
|
-
return {
|
|
116
|
-
closedAt: unmarshalDate(data.closed_at),
|
|
117
|
-
reason: data.reason,
|
|
118
|
-
startsAt: unmarshalDate(data.starts_at),
|
|
119
|
-
status: data.status,
|
|
120
|
-
stopsAt: unmarshalDate(data.stops_at)
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
124
|
const unmarshalUpgradableVersion = data => {
|
|
124
125
|
if (!isJSONObject(data)) {
|
|
125
126
|
throw new TypeError(`Unmarshalling the type 'UpgradableVersion' failed as data isn't a dictionary.`);
|
|
@@ -652,4 +653,4 @@ const marshalUpgradeInstanceRequest = (request, defaults) => ({
|
|
|
652
653
|
}])
|
|
653
654
|
});
|
|
654
655
|
|
|
655
|
-
export { marshalAddInstanceACLRulesRequest, marshalAddInstanceSettingsRequest, marshalCloneInstanceRequest, marshalCreateDatabaseRequest, marshalCreateEndpointRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateInstanceRequest, marshalCreateReadReplicaEndpointRequest, marshalCreateReadReplicaRequest, marshalCreateSnapshotRequest, marshalCreateUserRequest, marshalDeleteInstanceACLRulesRequest, marshalDeleteInstanceSettingsRequest, marshalMigrateEndpointRequest, marshalPurgeInstanceLogsRequest, marshalSetInstanceACLRulesRequest, marshalSetInstanceSettingsRequest, marshalSetPrivilegeRequest, marshalUpdateInstanceRequest, marshalUpdateSnapshotRequest, marshalUpdateUserRequest, marshalUpgradeInstanceRequest, unmarshalAddInstanceACLRulesResponse, unmarshalAddInstanceSettingsResponse, unmarshalDatabase, unmarshalDeleteInstanceACLRulesResponse, unmarshalDeleteInstanceSettingsResponse, unmarshalEndpoint, unmarshalInstance, unmarshalInstanceLog, unmarshalInstanceMetrics, unmarshalListDatabaseEnginesResponse, unmarshalListDatabasesResponse, unmarshalListInstanceACLRulesResponse, unmarshalListInstanceLogsDetailsResponse, unmarshalListInstanceLogsResponse, unmarshalListInstancesResponse, unmarshalListNodeTypesResponse, unmarshalListPrivilegesResponse, unmarshalListSnapshotsResponse, unmarshalListUsersResponse, unmarshalPrivilege, unmarshalReadReplica, unmarshalSetInstanceACLRulesResponse, unmarshalSetInstanceSettingsResponse, unmarshalSnapshot, unmarshalUser };
|
|
656
|
+
export { marshalAddInstanceACLRulesRequest, marshalAddInstanceSettingsRequest, marshalCloneInstanceRequest, marshalCreateDatabaseRequest, marshalCreateEndpointRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateInstanceRequest, marshalCreateReadReplicaEndpointRequest, marshalCreateReadReplicaRequest, marshalCreateSnapshotRequest, marshalCreateUserRequest, marshalDeleteInstanceACLRulesRequest, marshalDeleteInstanceSettingsRequest, marshalMigrateEndpointRequest, marshalPurgeInstanceLogsRequest, marshalSetInstanceACLRulesRequest, marshalSetInstanceSettingsRequest, marshalSetPrivilegeRequest, marshalUpdateInstanceRequest, marshalUpdateSnapshotRequest, marshalUpdateUserRequest, marshalUpgradeInstanceRequest, unmarshalAddInstanceACLRulesResponse, unmarshalAddInstanceSettingsResponse, unmarshalDatabase, unmarshalDeleteInstanceACLRulesResponse, unmarshalDeleteInstanceSettingsResponse, unmarshalEndpoint, unmarshalInstance, unmarshalInstanceLog, unmarshalInstanceMetrics, unmarshalListDatabaseEnginesResponse, unmarshalListDatabasesResponse, unmarshalListInstanceACLRulesResponse, unmarshalListInstanceLogsDetailsResponse, unmarshalListInstanceLogsResponse, unmarshalListInstancesResponse, unmarshalListNodeTypesResponse, unmarshalListPrivilegesResponse, unmarshalListSnapshotsResponse, unmarshalListUsersResponse, unmarshalMaintenance, unmarshalPrivilege, unmarshalReadReplica, unmarshalSetInstanceACLRulesResponse, unmarshalSetInstanceSettingsResponse, unmarshalSnapshot, unmarshalUser };
|
|
@@ -585,7 +585,7 @@ class API extends API$1 {
|
|
|
585
585
|
pageOfListQuota = (request = {}) => this.client.fetch({
|
|
586
586
|
method: 'GET',
|
|
587
587
|
path: `/iam/v1alpha1/quota`,
|
|
588
|
-
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
588
|
+
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['quotum_names', request.quotumNames])
|
|
589
589
|
}, unmarshalListQuotaResponse);
|
|
590
590
|
|
|
591
591
|
/**
|
|
@@ -52,6 +52,7 @@ const unmarshalJobRun = data => {
|
|
|
52
52
|
memoryLimit: data.memory_limit,
|
|
53
53
|
region: data.region,
|
|
54
54
|
runDuration: data.run_duration,
|
|
55
|
+
startedAt: unmarshalDate(data.started_at),
|
|
55
56
|
state: data.state,
|
|
56
57
|
terminatedAt: unmarshalDate(data.terminated_at),
|
|
57
58
|
updatedAt: unmarshalDate(data.updated_at)
|
|
@@ -22,7 +22,7 @@ class ZonedAPI extends API$1 {
|
|
|
22
22
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
23
23
|
method: 'GET',
|
|
24
24
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs`,
|
|
25
|
-
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])
|
|
25
|
+
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], ['tags', request.tags])
|
|
26
26
|
}, unmarshalListLbsResponse);
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -825,7 +825,7 @@ class API extends API$1 {
|
|
|
825
825
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
826
826
|
method: 'GET',
|
|
827
827
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs`,
|
|
828
|
-
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])
|
|
828
|
+
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], ['tags', request.tags])
|
|
829
829
|
}, unmarshalListLbsResponse);
|
|
830
830
|
|
|
831
831
|
/**
|