@scaleway/sdk 1.34.0 → 1.35.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/block/v1alpha1/api.gen.js +14 -15
- package/dist/api/cockpit/v1beta1/api.gen.js +68 -39
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +22 -13
- package/dist/api/container/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +3 -0
- package/dist/index.cjs +54 -28
- package/dist/index.d.ts +119 -64
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -12,10 +12,10 @@ const jsonContentHeaders = {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Scaleway Block Storage
|
|
15
|
+
* Scaleway Block Storage API.
|
|
16
16
|
*
|
|
17
17
|
* This API allows you to use and manage your Block Storage volumes. Scaleway
|
|
18
|
-
* Block Storage
|
|
18
|
+
* Block Storage API.
|
|
19
19
|
*/
|
|
20
20
|
class API extends API$1 {
|
|
21
21
|
/** Lists the available zones of the API. */
|
|
@@ -66,8 +66,8 @@ class API extends API$1 {
|
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* List volumes. List all existing volumes in a specified zone. By default,
|
|
69
|
-
* the
|
|
70
|
-
* be modified via the `order_by` field.
|
|
69
|
+
* the volumes listed are ordered by creation date in ascending order. This
|
|
70
|
+
* can be modified via the `order_by` field.
|
|
71
71
|
*
|
|
72
72
|
* @param request - The request {@link ListVolumesRequest}
|
|
73
73
|
* @returns A Promise of ListVolumesResponse
|
|
@@ -83,13 +83,12 @@ class API extends API$1 {
|
|
|
83
83
|
})();
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
* Create a
|
|
87
|
-
*
|
|
86
|
+
* Create a volume. To create a new volume from scratch, you must specify
|
|
87
|
+
* `from_empty` and the `size`. To create a volume from an existing snapshot,
|
|
88
|
+
* specify `from_snapshot` and the `snapshot_id` in the request payload
|
|
88
89
|
* instead, size is optional and can be specified if you need to extend the
|
|
89
|
-
* original size.
|
|
90
|
-
*
|
|
91
|
-
* can specify the desired performance of the volume by setting `requirements`
|
|
92
|
-
* accordingly.
|
|
90
|
+
* original size. The volume will take on the same volume class and underlying
|
|
91
|
+
* IOPS limitations as the original snapshot.
|
|
93
92
|
*
|
|
94
93
|
* @param request - The request {@link CreateVolumeRequest}
|
|
95
94
|
* @returns A Promise of Volume
|
|
@@ -134,10 +133,10 @@ class API extends API$1 {
|
|
|
134
133
|
});
|
|
135
134
|
|
|
136
135
|
/**
|
|
137
|
-
* Update a volume. Update technical details
|
|
138
|
-
* tags, or its new size and `volume_type` (within the same Block
|
|
139
|
-
* class). You can only resize a volume to a larger size. It is
|
|
140
|
-
*
|
|
136
|
+
* Update a volume. Update the technical details of a volume, such as its
|
|
137
|
+
* name, tags, or its new size and `volume_type` (within the same Block
|
|
138
|
+
* Storage class). You can only resize a volume to a larger size. It is
|
|
139
|
+
* currently not possible to change your Block Storage Class.
|
|
141
140
|
*
|
|
142
141
|
* @param request - The request {@link UpdateVolumeRequest}
|
|
143
142
|
* @returns A Promise of Volume
|
|
@@ -229,7 +228,7 @@ class API extends API$1 {
|
|
|
229
228
|
});
|
|
230
229
|
|
|
231
230
|
/**
|
|
232
|
-
* Update a snapshot. Update name or tags of the snapshot.
|
|
231
|
+
* Update a snapshot. Update the name or tags of the snapshot.
|
|
233
232
|
*
|
|
234
233
|
* @param request - The request {@link UpdateSnapshotRequest}
|
|
235
234
|
* @returns A Promise of Snapshot
|
|
@@ -3,7 +3,7 @@ import { API as API$1 } from '../../../scw/api.js';
|
|
|
3
3
|
import { urlParams, validatePathParam } from '../../../helpers/marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { COCKPIT_TRANSIENT_STATUSES } from './content.gen.js';
|
|
6
|
-
import { marshalActivateCockpitRequest, unmarshalCockpit, unmarshalCockpitMetrics, marshalDeactivateCockpitRequest, marshalResetCockpitGrafanaRequest, marshalCreateDatasourceRequest, unmarshalDatasource, marshalCreateTokenRequest, unmarshalToken, unmarshalListTokensResponse, marshalCreateContactPointRequest, unmarshalContactPoint, unmarshalListContactPointsResponse, marshalDeleteContactPointRequest, marshalEnableManagedAlertsRequest, marshalDisableManagedAlertsRequest, marshalTriggerTestAlertRequest, marshalCreateGrafanaUserRequest, unmarshalGrafanaUser, unmarshalListGrafanaUsersResponse, marshalDeleteGrafanaUserRequest, marshalResetGrafanaUserPasswordRequest, unmarshalListPlansResponse, marshalSelectPlanRequest, unmarshalSelectPlanResponse } from './marshalling.gen.js';
|
|
6
|
+
import { marshalActivateCockpitRequest, unmarshalCockpit, unmarshalCockpitMetrics, marshalDeactivateCockpitRequest, marshalResetCockpitGrafanaRequest, marshalCreateDatasourceRequest, unmarshalDatasource, unmarshalListDatasourcesResponse, marshalCreateTokenRequest, unmarshalToken, unmarshalListTokensResponse, marshalCreateContactPointRequest, unmarshalContactPoint, unmarshalListContactPointsResponse, marshalDeleteContactPointRequest, marshalEnableManagedAlertsRequest, marshalDisableManagedAlertsRequest, marshalTriggerTestAlertRequest, marshalCreateGrafanaUserRequest, unmarshalGrafanaUser, unmarshalListGrafanaUsersResponse, marshalDeleteGrafanaUserRequest, marshalResetGrafanaUserPasswordRequest, unmarshalListPlansResponse, marshalSelectPlanRequest, unmarshalSelectPlanResponse } 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.
|
|
@@ -151,6 +151,35 @@ class API extends API$1 {
|
|
|
151
151
|
method: 'POST',
|
|
152
152
|
path: `/cockpit/v1beta1/datasources`
|
|
153
153
|
}, unmarshalDatasource);
|
|
154
|
+
pageOfListDatasources = (() => {
|
|
155
|
+
var _this7 = this;
|
|
156
|
+
return function (request) {
|
|
157
|
+
if (request === void 0) {
|
|
158
|
+
request = {};
|
|
159
|
+
}
|
|
160
|
+
return _this7.client.fetch({
|
|
161
|
+
method: 'GET',
|
|
162
|
+
path: `/cockpit/v1beta1/datasources`,
|
|
163
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this7.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this7.client.settings.defaultProjectId], ['types', request.types])
|
|
164
|
+
}, unmarshalListDatasourcesResponse);
|
|
165
|
+
};
|
|
166
|
+
})();
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Get a list of datasources for the specified Project ID.
|
|
170
|
+
*
|
|
171
|
+
* @param request - The request {@link ListDatasourcesRequest}
|
|
172
|
+
* @returns A Promise of ListDatasourcesResponse
|
|
173
|
+
*/
|
|
174
|
+
listDatasources = (() => {
|
|
175
|
+
var _this8 = this;
|
|
176
|
+
return function (request) {
|
|
177
|
+
if (request === void 0) {
|
|
178
|
+
request = {};
|
|
179
|
+
}
|
|
180
|
+
return enrichForPagination('datasources', _this8.pageOfListDatasources, request);
|
|
181
|
+
};
|
|
182
|
+
})();
|
|
154
183
|
|
|
155
184
|
/**
|
|
156
185
|
* Create a token associated with the specified Project ID.
|
|
@@ -159,13 +188,13 @@ class API extends API$1 {
|
|
|
159
188
|
* @returns A Promise of Token
|
|
160
189
|
*/
|
|
161
190
|
createToken = (() => {
|
|
162
|
-
var
|
|
191
|
+
var _this9 = this;
|
|
163
192
|
return function (request) {
|
|
164
193
|
if (request === void 0) {
|
|
165
194
|
request = {};
|
|
166
195
|
}
|
|
167
|
-
return
|
|
168
|
-
body: JSON.stringify(marshalCreateTokenRequest(request,
|
|
196
|
+
return _this9.client.fetch({
|
|
197
|
+
body: JSON.stringify(marshalCreateTokenRequest(request, _this9.client.settings)),
|
|
169
198
|
headers: jsonContentHeaders,
|
|
170
199
|
method: 'POST',
|
|
171
200
|
path: `/cockpit/v1beta1/tokens`
|
|
@@ -173,15 +202,15 @@ class API extends API$1 {
|
|
|
173
202
|
};
|
|
174
203
|
})();
|
|
175
204
|
pageOfListTokens = (() => {
|
|
176
|
-
var
|
|
205
|
+
var _this10 = this;
|
|
177
206
|
return function (request) {
|
|
178
207
|
if (request === void 0) {
|
|
179
208
|
request = {};
|
|
180
209
|
}
|
|
181
|
-
return
|
|
210
|
+
return _this10.client.fetch({
|
|
182
211
|
method: 'GET',
|
|
183
212
|
path: `/cockpit/v1beta1/tokens`,
|
|
184
|
-
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ??
|
|
213
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this10.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this10.client.settings.defaultProjectId])
|
|
185
214
|
}, unmarshalListTokensResponse);
|
|
186
215
|
};
|
|
187
216
|
})();
|
|
@@ -193,12 +222,12 @@ class API extends API$1 {
|
|
|
193
222
|
* @returns A Promise of ListTokensResponse
|
|
194
223
|
*/
|
|
195
224
|
listTokens = (() => {
|
|
196
|
-
var
|
|
225
|
+
var _this11 = this;
|
|
197
226
|
return function (request) {
|
|
198
227
|
if (request === void 0) {
|
|
199
228
|
request = {};
|
|
200
229
|
}
|
|
201
|
-
return enrichForPagination('tokens',
|
|
230
|
+
return enrichForPagination('tokens', _this11.pageOfListTokens, request);
|
|
202
231
|
};
|
|
203
232
|
})();
|
|
204
233
|
|
|
@@ -230,13 +259,13 @@ class API extends API$1 {
|
|
|
230
259
|
* @returns A Promise of ContactPoint
|
|
231
260
|
*/
|
|
232
261
|
createContactPoint = (() => {
|
|
233
|
-
var
|
|
262
|
+
var _this12 = this;
|
|
234
263
|
return function (request) {
|
|
235
264
|
if (request === void 0) {
|
|
236
265
|
request = {};
|
|
237
266
|
}
|
|
238
|
-
return
|
|
239
|
-
body: JSON.stringify(marshalCreateContactPointRequest(request,
|
|
267
|
+
return _this12.client.fetch({
|
|
268
|
+
body: JSON.stringify(marshalCreateContactPointRequest(request, _this12.client.settings)),
|
|
240
269
|
headers: jsonContentHeaders,
|
|
241
270
|
method: 'POST',
|
|
242
271
|
path: `/cockpit/v1beta1/contact-points`
|
|
@@ -244,15 +273,15 @@ class API extends API$1 {
|
|
|
244
273
|
};
|
|
245
274
|
})();
|
|
246
275
|
pageOfListContactPoints = (() => {
|
|
247
|
-
var
|
|
276
|
+
var _this13 = this;
|
|
248
277
|
return function (request) {
|
|
249
278
|
if (request === void 0) {
|
|
250
279
|
request = {};
|
|
251
280
|
}
|
|
252
|
-
return
|
|
281
|
+
return _this13.client.fetch({
|
|
253
282
|
method: 'GET',
|
|
254
283
|
path: `/cockpit/v1beta1/contact-points`,
|
|
255
|
-
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ??
|
|
284
|
+
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? _this13.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this13.client.settings.defaultProjectId])
|
|
256
285
|
}, unmarshalListContactPointsResponse);
|
|
257
286
|
};
|
|
258
287
|
})();
|
|
@@ -265,12 +294,12 @@ class API extends API$1 {
|
|
|
265
294
|
* @returns A Promise of ListContactPointsResponse
|
|
266
295
|
*/
|
|
267
296
|
listContactPoints = (() => {
|
|
268
|
-
var
|
|
297
|
+
var _this14 = this;
|
|
269
298
|
return function (request) {
|
|
270
299
|
if (request === void 0) {
|
|
271
300
|
request = {};
|
|
272
301
|
}
|
|
273
|
-
return enrichForPagination('contactPoints',
|
|
302
|
+
return enrichForPagination('contactPoints', _this14.pageOfListContactPoints, request);
|
|
274
303
|
};
|
|
275
304
|
})();
|
|
276
305
|
|
|
@@ -280,13 +309,13 @@ class API extends API$1 {
|
|
|
280
309
|
* @param request - The request {@link DeleteContactPointRequest}
|
|
281
310
|
*/
|
|
282
311
|
deleteContactPoint = (() => {
|
|
283
|
-
var
|
|
312
|
+
var _this15 = this;
|
|
284
313
|
return function (request) {
|
|
285
314
|
if (request === void 0) {
|
|
286
315
|
request = {};
|
|
287
316
|
}
|
|
288
|
-
return
|
|
289
|
-
body: JSON.stringify(marshalDeleteContactPointRequest(request,
|
|
317
|
+
return _this15.client.fetch({
|
|
318
|
+
body: JSON.stringify(marshalDeleteContactPointRequest(request, _this15.client.settings)),
|
|
290
319
|
headers: jsonContentHeaders,
|
|
291
320
|
method: 'POST',
|
|
292
321
|
path: `/cockpit/v1beta1/delete-contact-point`
|
|
@@ -300,13 +329,13 @@ class API extends API$1 {
|
|
|
300
329
|
* @param request - The request {@link EnableManagedAlertsRequest}
|
|
301
330
|
*/
|
|
302
331
|
enableManagedAlerts = (() => {
|
|
303
|
-
var
|
|
332
|
+
var _this16 = this;
|
|
304
333
|
return function (request) {
|
|
305
334
|
if (request === void 0) {
|
|
306
335
|
request = {};
|
|
307
336
|
}
|
|
308
|
-
return
|
|
309
|
-
body: JSON.stringify(marshalEnableManagedAlertsRequest(request,
|
|
337
|
+
return _this16.client.fetch({
|
|
338
|
+
body: JSON.stringify(marshalEnableManagedAlertsRequest(request, _this16.client.settings)),
|
|
310
339
|
headers: jsonContentHeaders,
|
|
311
340
|
method: 'POST',
|
|
312
341
|
path: `/cockpit/v1beta1/enable-managed-alerts`
|
|
@@ -320,13 +349,13 @@ class API extends API$1 {
|
|
|
320
349
|
* @param request - The request {@link DisableManagedAlertsRequest}
|
|
321
350
|
*/
|
|
322
351
|
disableManagedAlerts = (() => {
|
|
323
|
-
var
|
|
352
|
+
var _this17 = this;
|
|
324
353
|
return function (request) {
|
|
325
354
|
if (request === void 0) {
|
|
326
355
|
request = {};
|
|
327
356
|
}
|
|
328
|
-
return
|
|
329
|
-
body: JSON.stringify(marshalDisableManagedAlertsRequest(request,
|
|
357
|
+
return _this17.client.fetch({
|
|
358
|
+
body: JSON.stringify(marshalDisableManagedAlertsRequest(request, _this17.client.settings)),
|
|
330
359
|
headers: jsonContentHeaders,
|
|
331
360
|
method: 'POST',
|
|
332
361
|
path: `/cockpit/v1beta1/disable-managed-alerts`
|
|
@@ -340,13 +369,13 @@ class API extends API$1 {
|
|
|
340
369
|
* @param request - The request {@link TriggerTestAlertRequest}
|
|
341
370
|
*/
|
|
342
371
|
triggerTestAlert = (() => {
|
|
343
|
-
var
|
|
372
|
+
var _this18 = this;
|
|
344
373
|
return function (request) {
|
|
345
374
|
if (request === void 0) {
|
|
346
375
|
request = {};
|
|
347
376
|
}
|
|
348
|
-
return
|
|
349
|
-
body: JSON.stringify(marshalTriggerTestAlertRequest(request,
|
|
377
|
+
return _this18.client.fetch({
|
|
378
|
+
body: JSON.stringify(marshalTriggerTestAlertRequest(request, _this18.client.settings)),
|
|
350
379
|
headers: jsonContentHeaders,
|
|
351
380
|
method: 'POST',
|
|
352
381
|
path: `/cockpit/v1beta1/trigger-test-alert`
|
|
@@ -368,15 +397,15 @@ class API extends API$1 {
|
|
|
368
397
|
path: `/cockpit/v1beta1/grafana-users`
|
|
369
398
|
}, unmarshalGrafanaUser);
|
|
370
399
|
pageOfListGrafanaUsers = (() => {
|
|
371
|
-
var
|
|
400
|
+
var _this19 = this;
|
|
372
401
|
return function (request) {
|
|
373
402
|
if (request === void 0) {
|
|
374
403
|
request = {};
|
|
375
404
|
}
|
|
376
|
-
return
|
|
405
|
+
return _this19.client.fetch({
|
|
377
406
|
method: 'GET',
|
|
378
407
|
path: `/cockpit/v1beta1/grafana-users`,
|
|
379
|
-
urlParams: urlParams(['order_by', request.orderBy ?? 'login_asc'], ['page', request.page], ['page_size', request.pageSize ??
|
|
408
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'login_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this19.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this19.client.settings.defaultProjectId])
|
|
380
409
|
}, unmarshalListGrafanaUsersResponse);
|
|
381
410
|
};
|
|
382
411
|
})();
|
|
@@ -389,12 +418,12 @@ class API extends API$1 {
|
|
|
389
418
|
* @returns A Promise of ListGrafanaUsersResponse
|
|
390
419
|
*/
|
|
391
420
|
listGrafanaUsers = (() => {
|
|
392
|
-
var
|
|
421
|
+
var _this20 = this;
|
|
393
422
|
return function (request) {
|
|
394
423
|
if (request === void 0) {
|
|
395
424
|
request = {};
|
|
396
425
|
}
|
|
397
|
-
return enrichForPagination('grafanaUsers',
|
|
426
|
+
return enrichForPagination('grafanaUsers', _this20.pageOfListGrafanaUsers, request);
|
|
398
427
|
};
|
|
399
428
|
})();
|
|
400
429
|
|
|
@@ -425,15 +454,15 @@ class API extends API$1 {
|
|
|
425
454
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
|
|
426
455
|
}, unmarshalGrafanaUser);
|
|
427
456
|
pageOfListPlans = (() => {
|
|
428
|
-
var
|
|
457
|
+
var _this21 = this;
|
|
429
458
|
return function (request) {
|
|
430
459
|
if (request === void 0) {
|
|
431
460
|
request = {};
|
|
432
461
|
}
|
|
433
|
-
return
|
|
462
|
+
return _this21.client.fetch({
|
|
434
463
|
method: 'GET',
|
|
435
464
|
path: `/cockpit/v1beta1/plans`,
|
|
436
|
-
urlParams: urlParams(['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ??
|
|
465
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this21.client.settings.defaultPageSize])
|
|
437
466
|
}, unmarshalListPlansResponse);
|
|
438
467
|
};
|
|
439
468
|
})();
|
|
@@ -445,12 +474,12 @@ class API extends API$1 {
|
|
|
445
474
|
* @returns A Promise of ListPlansResponse
|
|
446
475
|
*/
|
|
447
476
|
listPlans = (() => {
|
|
448
|
-
var
|
|
477
|
+
var _this22 = this;
|
|
449
478
|
return function (request) {
|
|
450
479
|
if (request === void 0) {
|
|
451
480
|
request = {};
|
|
452
481
|
}
|
|
453
|
-
return enrichForPagination('plans',
|
|
482
|
+
return enrichForPagination('plans', _this22.pageOfListPlans, request);
|
|
454
483
|
};
|
|
455
484
|
})();
|
|
456
485
|
|
|
@@ -48,6 +48,18 @@ const unmarshalContactPoint = data => {
|
|
|
48
48
|
email: data.email ? unmarshalContactPointEmail(data.email) : undefined
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
+
const unmarshalDatasource = data => {
|
|
52
|
+
if (!isJSONObject(data)) {
|
|
53
|
+
throw new TypeError(`Unmarshalling the type 'Datasource' failed as data isn't a dictionary.`);
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
id: data.id,
|
|
57
|
+
name: data.name,
|
|
58
|
+
projectId: data.project_id,
|
|
59
|
+
type: data.type,
|
|
60
|
+
url: data.url
|
|
61
|
+
};
|
|
62
|
+
};
|
|
51
63
|
const unmarshalGrafanaUser = data => {
|
|
52
64
|
if (!isJSONObject(data)) {
|
|
53
65
|
throw new TypeError(`Unmarshalling the type 'GrafanaUser' failed as data isn't a dictionary.`);
|
|
@@ -109,18 +121,6 @@ const unmarshalCockpitMetrics = data => {
|
|
|
109
121
|
timeseries: unmarshalArrayOfObject(data.timeseries, unmarshalTimeSeries)
|
|
110
122
|
};
|
|
111
123
|
};
|
|
112
|
-
const unmarshalDatasource = data => {
|
|
113
|
-
if (!isJSONObject(data)) {
|
|
114
|
-
throw new TypeError(`Unmarshalling the type 'Datasource' failed as data isn't a dictionary.`);
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
id: data.id,
|
|
118
|
-
name: data.name,
|
|
119
|
-
projectId: data.project_id,
|
|
120
|
-
type: data.type,
|
|
121
|
-
url: data.url
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
124
|
const unmarshalListContactPointsResponse = data => {
|
|
125
125
|
if (!isJSONObject(data)) {
|
|
126
126
|
throw new TypeError(`Unmarshalling the type 'ListContactPointsResponse' failed as data isn't a dictionary.`);
|
|
@@ -132,6 +132,15 @@ const unmarshalListContactPointsResponse = data => {
|
|
|
132
132
|
totalCount: data.total_count
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
+
const unmarshalListDatasourcesResponse = data => {
|
|
136
|
+
if (!isJSONObject(data)) {
|
|
137
|
+
throw new TypeError(`Unmarshalling the type 'ListDatasourcesResponse' failed as data isn't a dictionary.`);
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
datasources: unmarshalArrayOfObject(data.datasources, unmarshalDatasource),
|
|
141
|
+
totalCount: data.total_count
|
|
142
|
+
};
|
|
143
|
+
};
|
|
135
144
|
const unmarshalListGrafanaUsersResponse = data => {
|
|
136
145
|
if (!isJSONObject(data)) {
|
|
137
146
|
throw new TypeError(`Unmarshalling the type 'ListGrafanaUsersResponse' failed as data isn't a dictionary.`);
|
|
@@ -237,4 +246,4 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
237
246
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
238
247
|
});
|
|
239
248
|
|
|
240
|
-
export { marshalActivateCockpitRequest, marshalCreateContactPointRequest, marshalCreateDatasourceRequest, marshalCreateGrafanaUserRequest, marshalCreateTokenRequest, marshalDeactivateCockpitRequest, marshalDeleteContactPointRequest, marshalDeleteGrafanaUserRequest, marshalDisableManagedAlertsRequest, marshalEnableManagedAlertsRequest, marshalResetCockpitGrafanaRequest, marshalResetGrafanaUserPasswordRequest, marshalSelectPlanRequest, marshalTriggerTestAlertRequest, unmarshalCockpit, unmarshalCockpitMetrics, unmarshalContactPoint, unmarshalDatasource, unmarshalGrafanaUser, unmarshalListContactPointsResponse, unmarshalListGrafanaUsersResponse, unmarshalListPlansResponse, unmarshalListTokensResponse, unmarshalSelectPlanResponse, unmarshalToken };
|
|
249
|
+
export { marshalActivateCockpitRequest, marshalCreateContactPointRequest, marshalCreateDatasourceRequest, marshalCreateGrafanaUserRequest, marshalCreateTokenRequest, marshalDeactivateCockpitRequest, marshalDeleteContactPointRequest, marshalDeleteGrafanaUserRequest, marshalDisableManagedAlertsRequest, marshalEnableManagedAlertsRequest, marshalResetCockpitGrafanaRequest, marshalResetGrafanaUserPasswordRequest, marshalSelectPlanRequest, marshalTriggerTestAlertRequest, unmarshalCockpit, unmarshalCockpitMetrics, unmarshalContactPoint, unmarshalDatasource, unmarshalGrafanaUser, unmarshalListContactPointsResponse, unmarshalListDatasourcesResponse, unmarshalListGrafanaUsersResponse, unmarshalListPlansResponse, unmarshalListTokensResponse, unmarshalSelectPlanResponse, unmarshalToken };
|
|
@@ -231,6 +231,7 @@ const unmarshalListTriggersResponse = data => {
|
|
|
231
231
|
};
|
|
232
232
|
const marshalCreateTriggerRequestMnqNatsClientConfig = (request, defaults) => ({
|
|
233
233
|
mnq_namespace_id: request.mnqNamespaceId,
|
|
234
|
+
mnq_nats_account_id: request.mnqNatsAccountId,
|
|
234
235
|
mnq_project_id: request.mnqProjectId,
|
|
235
236
|
mnq_region: request.mnqRegion,
|
|
236
237
|
subject: request.subject
|
|
@@ -275,6 +275,7 @@ const unmarshalUploadURL = data => {
|
|
|
275
275
|
};
|
|
276
276
|
const marshalCreateTriggerRequestMnqNatsClientConfig = (request, defaults) => ({
|
|
277
277
|
mnq_namespace_id: request.mnqNamespaceId,
|
|
278
|
+
mnq_nats_account_id: request.mnqNatsAccountId,
|
|
278
279
|
mnq_project_id: request.mnqProjectId,
|
|
279
280
|
mnq_region: request.mnqRegion,
|
|
280
281
|
subject: request.subject
|
|
@@ -147,6 +147,7 @@ const unmarshalPool = data => {
|
|
|
147
147
|
name: data.name,
|
|
148
148
|
nodeType: data.node_type,
|
|
149
149
|
placementGroupId: data.placement_group_id,
|
|
150
|
+
publicIpDisabled: data.public_ip_disabled,
|
|
150
151
|
region: data.region,
|
|
151
152
|
rootVolumeSize: data.root_volume_size,
|
|
152
153
|
rootVolumeType: data.root_volume_type,
|
|
@@ -294,6 +295,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
294
295
|
name: request.name,
|
|
295
296
|
node_type: request.nodeType,
|
|
296
297
|
placement_group_id: request.placementGroupId,
|
|
298
|
+
public_ip_disabled: request.publicIpDisabled,
|
|
297
299
|
root_volume_size: request.rootVolumeSize,
|
|
298
300
|
root_volume_type: request.rootVolumeType,
|
|
299
301
|
size: request.size,
|
|
@@ -371,6 +373,7 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
371
373
|
name: request.name || randomName('pool'),
|
|
372
374
|
node_type: request.nodeType,
|
|
373
375
|
placement_group_id: request.placementGroupId,
|
|
376
|
+
public_ip_disabled: request.publicIpDisabled,
|
|
374
377
|
root_volume_size: request.rootVolumeSize,
|
|
375
378
|
root_volume_type: request.rootVolumeType ?? 'default_volume_type',
|
|
376
379
|
size: request.size,
|
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v1.
|
|
500
|
+
const version = 'v1.34.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -3938,10 +3938,10 @@ const jsonContentHeaders$n = {
|
|
|
3938
3938
|
};
|
|
3939
3939
|
|
|
3940
3940
|
/**
|
|
3941
|
-
* Scaleway Block Storage
|
|
3941
|
+
* Scaleway Block Storage API.
|
|
3942
3942
|
*
|
|
3943
3943
|
* This API allows you to use and manage your Block Storage volumes. Scaleway
|
|
3944
|
-
* Block Storage
|
|
3944
|
+
* Block Storage API.
|
|
3945
3945
|
*/
|
|
3946
3946
|
let API$p = class API extends API$u {
|
|
3947
3947
|
/** Lists the available zones of the API. */
|
|
@@ -3968,8 +3968,8 @@ let API$p = class API extends API$u {
|
|
|
3968
3968
|
|
|
3969
3969
|
/**
|
|
3970
3970
|
* List volumes. List all existing volumes in a specified zone. By default,
|
|
3971
|
-
* the
|
|
3972
|
-
* be modified via the `order_by` field.
|
|
3971
|
+
* the volumes listed are ordered by creation date in ascending order. This
|
|
3972
|
+
* can be modified via the `order_by` field.
|
|
3973
3973
|
*
|
|
3974
3974
|
* @param request - The request {@link ListVolumesRequest}
|
|
3975
3975
|
* @returns A Promise of ListVolumesResponse
|
|
@@ -3977,13 +3977,12 @@ let API$p = class API extends API$u {
|
|
|
3977
3977
|
listVolumes = (request = {}) => enrichForPagination('volumes', this.pageOfListVolumes, request);
|
|
3978
3978
|
|
|
3979
3979
|
/**
|
|
3980
|
-
* Create a
|
|
3981
|
-
*
|
|
3980
|
+
* Create a volume. To create a new volume from scratch, you must specify
|
|
3981
|
+
* `from_empty` and the `size`. To create a volume from an existing snapshot,
|
|
3982
|
+
* specify `from_snapshot` and the `snapshot_id` in the request payload
|
|
3982
3983
|
* instead, size is optional and can be specified if you need to extend the
|
|
3983
|
-
* original size.
|
|
3984
|
-
*
|
|
3985
|
-
* can specify the desired performance of the volume by setting `requirements`
|
|
3986
|
-
* accordingly.
|
|
3984
|
+
* original size. The volume will take on the same volume class and underlying
|
|
3985
|
+
* IOPS limitations as the original snapshot.
|
|
3987
3986
|
*
|
|
3988
3987
|
* @param request - The request {@link CreateVolumeRequest}
|
|
3989
3988
|
* @returns A Promise of Volume
|
|
@@ -4028,10 +4027,10 @@ let API$p = class API extends API$u {
|
|
|
4028
4027
|
});
|
|
4029
4028
|
|
|
4030
4029
|
/**
|
|
4031
|
-
* Update a volume. Update technical details
|
|
4032
|
-
* tags, or its new size and `volume_type` (within the same Block
|
|
4033
|
-
* class). You can only resize a volume to a larger size. It is
|
|
4034
|
-
*
|
|
4030
|
+
* Update a volume. Update the technical details of a volume, such as its
|
|
4031
|
+
* name, tags, or its new size and `volume_type` (within the same Block
|
|
4032
|
+
* Storage class). You can only resize a volume to a larger size. It is
|
|
4033
|
+
* currently not possible to change your Block Storage Class.
|
|
4035
4034
|
*
|
|
4036
4035
|
* @param request - The request {@link UpdateVolumeRequest}
|
|
4037
4036
|
* @returns A Promise of Volume
|
|
@@ -4107,7 +4106,7 @@ let API$p = class API extends API$u {
|
|
|
4107
4106
|
});
|
|
4108
4107
|
|
|
4109
4108
|
/**
|
|
4110
|
-
* Update a snapshot. Update name or tags of the snapshot.
|
|
4109
|
+
* Update a snapshot. Update the name or tags of the snapshot.
|
|
4111
4110
|
*
|
|
4112
4111
|
* @param request - The request {@link UpdateSnapshotRequest}
|
|
4113
4112
|
* @returns A Promise of Snapshot
|
|
@@ -4238,6 +4237,18 @@ const unmarshalContactPoint = data => {
|
|
|
4238
4237
|
email: data.email ? unmarshalContactPointEmail(data.email) : undefined
|
|
4239
4238
|
};
|
|
4240
4239
|
};
|
|
4240
|
+
const unmarshalDatasource = data => {
|
|
4241
|
+
if (!isJSONObject(data)) {
|
|
4242
|
+
throw new TypeError(`Unmarshalling the type 'Datasource' failed as data isn't a dictionary.`);
|
|
4243
|
+
}
|
|
4244
|
+
return {
|
|
4245
|
+
id: data.id,
|
|
4246
|
+
name: data.name,
|
|
4247
|
+
projectId: data.project_id,
|
|
4248
|
+
type: data.type,
|
|
4249
|
+
url: data.url
|
|
4250
|
+
};
|
|
4251
|
+
};
|
|
4241
4252
|
const unmarshalGrafanaUser = data => {
|
|
4242
4253
|
if (!isJSONObject(data)) {
|
|
4243
4254
|
throw new TypeError(`Unmarshalling the type 'GrafanaUser' failed as data isn't a dictionary.`);
|
|
@@ -4299,18 +4310,6 @@ const unmarshalCockpitMetrics = data => {
|
|
|
4299
4310
|
timeseries: unmarshalArrayOfObject(data.timeseries, unmarshalTimeSeries)
|
|
4300
4311
|
};
|
|
4301
4312
|
};
|
|
4302
|
-
const unmarshalDatasource = data => {
|
|
4303
|
-
if (!isJSONObject(data)) {
|
|
4304
|
-
throw new TypeError(`Unmarshalling the type 'Datasource' failed as data isn't a dictionary.`);
|
|
4305
|
-
}
|
|
4306
|
-
return {
|
|
4307
|
-
id: data.id,
|
|
4308
|
-
name: data.name,
|
|
4309
|
-
projectId: data.project_id,
|
|
4310
|
-
type: data.type,
|
|
4311
|
-
url: data.url
|
|
4312
|
-
};
|
|
4313
|
-
};
|
|
4314
4313
|
const unmarshalListContactPointsResponse = data => {
|
|
4315
4314
|
if (!isJSONObject(data)) {
|
|
4316
4315
|
throw new TypeError(`Unmarshalling the type 'ListContactPointsResponse' failed as data isn't a dictionary.`);
|
|
@@ -4322,6 +4321,15 @@ const unmarshalListContactPointsResponse = data => {
|
|
|
4322
4321
|
totalCount: data.total_count
|
|
4323
4322
|
};
|
|
4324
4323
|
};
|
|
4324
|
+
const unmarshalListDatasourcesResponse = data => {
|
|
4325
|
+
if (!isJSONObject(data)) {
|
|
4326
|
+
throw new TypeError(`Unmarshalling the type 'ListDatasourcesResponse' failed as data isn't a dictionary.`);
|
|
4327
|
+
}
|
|
4328
|
+
return {
|
|
4329
|
+
datasources: unmarshalArrayOfObject(data.datasources, unmarshalDatasource),
|
|
4330
|
+
totalCount: data.total_count
|
|
4331
|
+
};
|
|
4332
|
+
};
|
|
4325
4333
|
const unmarshalListGrafanaUsersResponse = data => {
|
|
4326
4334
|
if (!isJSONObject(data)) {
|
|
4327
4335
|
throw new TypeError(`Unmarshalling the type 'ListGrafanaUsersResponse' failed as data isn't a dictionary.`);
|
|
@@ -4525,6 +4533,19 @@ let API$o = class API extends API$u {
|
|
|
4525
4533
|
method: 'POST',
|
|
4526
4534
|
path: `/cockpit/v1beta1/datasources`
|
|
4527
4535
|
}, unmarshalDatasource);
|
|
4536
|
+
pageOfListDatasources = (request = {}) => this.client.fetch({
|
|
4537
|
+
method: 'GET',
|
|
4538
|
+
path: `/cockpit/v1beta1/datasources`,
|
|
4539
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['types', request.types])
|
|
4540
|
+
}, unmarshalListDatasourcesResponse);
|
|
4541
|
+
|
|
4542
|
+
/**
|
|
4543
|
+
* Get a list of datasources for the specified Project ID.
|
|
4544
|
+
*
|
|
4545
|
+
* @param request - The request {@link ListDatasourcesRequest}
|
|
4546
|
+
* @returns A Promise of ListDatasourcesResponse
|
|
4547
|
+
*/
|
|
4548
|
+
listDatasources = (request = {}) => enrichForPagination('datasources', this.pageOfListDatasources, request);
|
|
4528
4549
|
|
|
4529
4550
|
/**
|
|
4530
4551
|
* Create a token associated with the specified Project ID.
|
|
@@ -4995,6 +5016,7 @@ const unmarshalListTriggersResponse$1 = data => {
|
|
|
4995
5016
|
};
|
|
4996
5017
|
const marshalCreateTriggerRequestMnqNatsClientConfig$1 = (request, defaults) => ({
|
|
4997
5018
|
mnq_namespace_id: request.mnqNamespaceId,
|
|
5019
|
+
mnq_nats_account_id: request.mnqNatsAccountId,
|
|
4998
5020
|
mnq_project_id: request.mnqProjectId,
|
|
4999
5021
|
mnq_region: request.mnqRegion,
|
|
5000
5022
|
subject: request.subject
|
|
@@ -9648,6 +9670,7 @@ const unmarshalUploadURL = data => {
|
|
|
9648
9670
|
};
|
|
9649
9671
|
const marshalCreateTriggerRequestMnqNatsClientConfig = (request, defaults) => ({
|
|
9650
9672
|
mnq_namespace_id: request.mnqNamespaceId,
|
|
9673
|
+
mnq_nats_account_id: request.mnqNatsAccountId,
|
|
9651
9674
|
mnq_project_id: request.mnqProjectId,
|
|
9652
9675
|
mnq_region: request.mnqRegion,
|
|
9653
9676
|
subject: request.subject
|
|
@@ -15579,6 +15602,7 @@ const unmarshalPool = data => {
|
|
|
15579
15602
|
name: data.name,
|
|
15580
15603
|
nodeType: data.node_type,
|
|
15581
15604
|
placementGroupId: data.placement_group_id,
|
|
15605
|
+
publicIpDisabled: data.public_ip_disabled,
|
|
15582
15606
|
region: data.region,
|
|
15583
15607
|
rootVolumeSize: data.root_volume_size,
|
|
15584
15608
|
rootVolumeType: data.root_volume_type,
|
|
@@ -15726,6 +15750,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
15726
15750
|
name: request.name,
|
|
15727
15751
|
node_type: request.nodeType,
|
|
15728
15752
|
placement_group_id: request.placementGroupId,
|
|
15753
|
+
public_ip_disabled: request.publicIpDisabled,
|
|
15729
15754
|
root_volume_size: request.rootVolumeSize,
|
|
15730
15755
|
root_volume_type: request.rootVolumeType,
|
|
15731
15756
|
size: request.size,
|
|
@@ -15803,6 +15828,7 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
15803
15828
|
name: request.name || randomName('pool'),
|
|
15804
15829
|
node_type: request.nodeType,
|
|
15805
15830
|
placement_group_id: request.placementGroupId,
|
|
15831
|
+
public_ip_disabled: request.publicIpDisabled,
|
|
15806
15832
|
root_volume_size: request.rootVolumeSize,
|
|
15807
15833
|
root_volume_type: request.rootVolumeType ?? 'default_volume_type',
|
|
15808
15834
|
size: request.size,
|
package/dist/index.d.ts
CHANGED
|
@@ -3012,7 +3012,7 @@ type VolumeStatus = 'unknown_status' | 'creating' | 'available' | 'in_use' | 'de
|
|
|
3012
3012
|
interface CreateVolumeRequestFromEmpty {
|
|
3013
3013
|
/**
|
|
3014
3014
|
* Volume size in bytes, with a granularity of 1 GB (10^9 bytes). Must be
|
|
3015
|
-
* compliant with the minimum and maximum allowed size.
|
|
3015
|
+
* compliant with the minimum (1 GB) and maximum (10 TB) allowed size.
|
|
3016
3016
|
*/
|
|
3017
3017
|
size: number;
|
|
3018
3018
|
}
|
|
@@ -3020,12 +3020,12 @@ interface CreateVolumeRequestFromEmpty {
|
|
|
3020
3020
|
interface CreateVolumeRequestFromSnapshot {
|
|
3021
3021
|
/**
|
|
3022
3022
|
* Volume size in bytes, with a granularity of 1 GB (10^9 bytes). Must be
|
|
3023
|
-
* compliant with the
|
|
3023
|
+
* compliant with the minimum (1 GB) and maximum (10 TB) allowed size. Size is
|
|
3024
3024
|
* optional and is used only if a resize of the volume is requested, otherwise
|
|
3025
3025
|
* original snapshot size will be used.
|
|
3026
3026
|
*/
|
|
3027
3027
|
size?: number;
|
|
3028
|
-
/** Source snapshot from which
|
|
3028
|
+
/** Source snapshot from which volume will be created. */
|
|
3029
3029
|
snapshotId: string;
|
|
3030
3030
|
}
|
|
3031
3031
|
/** List snapshots response. */
|
|
@@ -3037,7 +3037,7 @@ interface ListSnapshotsResponse$3 {
|
|
|
3037
3037
|
}
|
|
3038
3038
|
/** List volume types response. */
|
|
3039
3039
|
interface ListVolumeTypesResponse {
|
|
3040
|
-
/**
|
|
3040
|
+
/** Returns paginated list of volume-types. */
|
|
3041
3041
|
volumeTypes: VolumeType$3[];
|
|
3042
3042
|
/** Total number of volume-types currently available in stock. */
|
|
3043
3043
|
totalCount: number;
|
|
@@ -3053,7 +3053,7 @@ interface ListVolumesResponse$2 {
|
|
|
3053
3053
|
interface Reference {
|
|
3054
3054
|
/** UUID of the reference. */
|
|
3055
3055
|
id: string;
|
|
3056
|
-
/** Type of
|
|
3056
|
+
/** Type of resoruce to which the reference is associated (snapshot or volume). */
|
|
3057
3057
|
productResourceType: string;
|
|
3058
3058
|
/**
|
|
3059
3059
|
* UUID of the volume or the snapshot it refers to (according to the
|
|
@@ -3062,9 +3062,9 @@ interface Reference {
|
|
|
3062
3062
|
productResourceId: string;
|
|
3063
3063
|
/** Creation date of the reference. */
|
|
3064
3064
|
createdAt?: Date;
|
|
3065
|
-
/** Type of
|
|
3065
|
+
/** Type of reference (link, exclusive, read_only). */
|
|
3066
3066
|
type: ReferenceType;
|
|
3067
|
-
/** Status of
|
|
3067
|
+
/** Status of reference (attaching, attached, detaching). */
|
|
3068
3068
|
status: ReferenceStatus;
|
|
3069
3069
|
}
|
|
3070
3070
|
/** Snapshot. */
|
|
@@ -3074,8 +3074,8 @@ interface Snapshot$3 {
|
|
|
3074
3074
|
/** Name of the snapshot. */
|
|
3075
3075
|
name: string;
|
|
3076
3076
|
/**
|
|
3077
|
-
*
|
|
3078
|
-
*
|
|
3077
|
+
* Information about the parent volume. If the parent volume was deleted,
|
|
3078
|
+
* value is null.
|
|
3079
3079
|
*/
|
|
3080
3080
|
parentVolume?: SnapshotParentVolume;
|
|
3081
3081
|
/** Size in bytes of the snapshot. */
|
|
@@ -3099,13 +3099,13 @@ interface Snapshot$3 {
|
|
|
3099
3099
|
}
|
|
3100
3100
|
/** Snapshot. parent volume. */
|
|
3101
3101
|
interface SnapshotParentVolume {
|
|
3102
|
-
/**
|
|
3102
|
+
/** Parent volume UUID (volume from which the snapshot originates). */
|
|
3103
3103
|
id: string;
|
|
3104
|
-
/** Name of the parent volume
|
|
3104
|
+
/** Name of the parent volume. */
|
|
3105
3105
|
name: string;
|
|
3106
|
-
/** Volume type of the parent volume
|
|
3106
|
+
/** Volume type of the parent volume. */
|
|
3107
3107
|
type: string;
|
|
3108
|
-
/** Current status the parent volume
|
|
3108
|
+
/** Current status the parent volume. */
|
|
3109
3109
|
status: VolumeStatus;
|
|
3110
3110
|
}
|
|
3111
3111
|
/** Snapshot summary. */
|
|
@@ -3119,7 +3119,7 @@ interface SnapshotSummary {
|
|
|
3119
3119
|
* value is null.
|
|
3120
3120
|
*/
|
|
3121
3121
|
parentVolume?: SnapshotParentVolume;
|
|
3122
|
-
/** Size
|
|
3122
|
+
/** Size of the snapshot in bytes. */
|
|
3123
3123
|
size: number;
|
|
3124
3124
|
/** UUID of the project the snapshot belongs to. */
|
|
3125
3125
|
projectId: string;
|
|
@@ -3131,7 +3131,7 @@ interface SnapshotSummary {
|
|
|
3131
3131
|
status: SnapshotStatus$2;
|
|
3132
3132
|
/** List of tags assigned to the volume. */
|
|
3133
3133
|
tags: string[];
|
|
3134
|
-
/** Snapshot
|
|
3134
|
+
/** Snapshot Availability Zone. */
|
|
3135
3135
|
zone: Zone;
|
|
3136
3136
|
/** Storage class of the snapshot. */
|
|
3137
3137
|
class: StorageClass;
|
|
@@ -3142,15 +3142,15 @@ interface Volume$4 {
|
|
|
3142
3142
|
id: string;
|
|
3143
3143
|
/** Name of the volume. */
|
|
3144
3144
|
name: string;
|
|
3145
|
-
/**
|
|
3145
|
+
/** Volume type. */
|
|
3146
3146
|
type: string;
|
|
3147
3147
|
/** Volume size in bytes. */
|
|
3148
3148
|
size: number;
|
|
3149
|
-
/** UUID of the project the volume belongs
|
|
3149
|
+
/** UUID of the project to which the volume belongs. */
|
|
3150
3150
|
projectId: string;
|
|
3151
3151
|
/** Creation date of the volume. */
|
|
3152
3152
|
createdAt?: Date;
|
|
3153
|
-
/** Last
|
|
3153
|
+
/** Last update of the properties of a volume. */
|
|
3154
3154
|
updatedAt?: Date;
|
|
3155
3155
|
/** List of the references to the volume. */
|
|
3156
3156
|
references: Reference[];
|
|
@@ -3165,7 +3165,7 @@ interface Volume$4 {
|
|
|
3165
3165
|
tags: string[];
|
|
3166
3166
|
/** Volume zone. */
|
|
3167
3167
|
zone: Zone;
|
|
3168
|
-
/**
|
|
3168
|
+
/** Specifications of the volume. */
|
|
3169
3169
|
specs?: VolumeSpecifications;
|
|
3170
3170
|
}
|
|
3171
3171
|
/** Volume specifications. */
|
|
@@ -3180,7 +3180,7 @@ interface VolumeSpecifications {
|
|
|
3180
3180
|
}
|
|
3181
3181
|
/** Volume type. */
|
|
3182
3182
|
interface VolumeType$3 {
|
|
3183
|
-
/**
|
|
3183
|
+
/** Volume type. */
|
|
3184
3184
|
type: string;
|
|
3185
3185
|
/** Price of the volume billed in GB/hour. */
|
|
3186
3186
|
pricing?: Money;
|
|
@@ -3192,40 +3192,40 @@ interface VolumeType$3 {
|
|
|
3192
3192
|
type ListVolumeTypesRequest$1 = {
|
|
3193
3193
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
3194
3194
|
zone?: Zone;
|
|
3195
|
-
/**
|
|
3195
|
+
/** Page number. */
|
|
3196
3196
|
page?: number;
|
|
3197
3197
|
/**
|
|
3198
|
-
*
|
|
3199
|
-
*
|
|
3198
|
+
* Page size, defines how many entries are returned in one page, must be lower
|
|
3199
|
+
* or equal to 100.
|
|
3200
3200
|
*/
|
|
3201
3201
|
pageSize?: number;
|
|
3202
3202
|
};
|
|
3203
3203
|
type ListVolumesRequest$3 = {
|
|
3204
3204
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
3205
3205
|
zone?: Zone;
|
|
3206
|
-
/**
|
|
3206
|
+
/** Criteria to use when ordering the list. */
|
|
3207
3207
|
orderBy?: ListVolumesRequestOrderBy$1;
|
|
3208
|
-
/**
|
|
3208
|
+
/** Filter by Project ID. */
|
|
3209
3209
|
projectId?: string;
|
|
3210
|
-
/**
|
|
3210
|
+
/** Page number. */
|
|
3211
3211
|
page?: number;
|
|
3212
3212
|
/**
|
|
3213
|
-
*
|
|
3214
|
-
*
|
|
3213
|
+
* Page size, defines how many entries are returned in one page, must be lower
|
|
3214
|
+
* or equal to 100.
|
|
3215
3215
|
*/
|
|
3216
3216
|
pageSize?: number;
|
|
3217
3217
|
/** Filter the return volumes by their names. */
|
|
3218
3218
|
name?: string;
|
|
3219
3219
|
/**
|
|
3220
|
-
* Filter by a
|
|
3221
|
-
*
|
|
3220
|
+
* Filter by a product resource ID linked to this volume (such as an Instance
|
|
3221
|
+
* ID).
|
|
3222
3222
|
*/
|
|
3223
3223
|
productResourceId?: string;
|
|
3224
3224
|
};
|
|
3225
3225
|
type CreateVolumeRequest$3 = {
|
|
3226
3226
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
3227
3227
|
zone?: Zone;
|
|
3228
|
-
/** Name of the volume
|
|
3228
|
+
/** Name of the volume. */
|
|
3229
3229
|
name: string;
|
|
3230
3230
|
/**
|
|
3231
3231
|
* The maximum IO/s expected, according to the different options available in
|
|
@@ -3237,13 +3237,13 @@ type CreateVolumeRequest$3 = {
|
|
|
3237
3237
|
/** UUID of the project the volume belongs to. */
|
|
3238
3238
|
projectId?: string;
|
|
3239
3239
|
/**
|
|
3240
|
-
*
|
|
3240
|
+
* Specify the size of the new volume if creating a new one from scratch.
|
|
3241
3241
|
*
|
|
3242
3242
|
* One-of ('from'): at most one of 'fromEmpty', 'fromSnapshot' could be set.
|
|
3243
3243
|
*/
|
|
3244
3244
|
fromEmpty?: CreateVolumeRequestFromEmpty;
|
|
3245
3245
|
/**
|
|
3246
|
-
*
|
|
3246
|
+
* Specify the snapshot ID of the original snapshot.
|
|
3247
3247
|
*
|
|
3248
3248
|
* One-of ('from'): at most one of 'fromEmpty', 'fromSnapshot' could be set.
|
|
3249
3249
|
*/
|
|
@@ -3254,7 +3254,7 @@ type CreateVolumeRequest$3 = {
|
|
|
3254
3254
|
type GetVolumeRequest$2 = {
|
|
3255
3255
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
3256
3256
|
zone?: Zone;
|
|
3257
|
-
/** UUID of the volume
|
|
3257
|
+
/** UUID of the volume. */
|
|
3258
3258
|
volumeId: string;
|
|
3259
3259
|
};
|
|
3260
3260
|
type DeleteVolumeRequest$2 = {
|
|
@@ -3271,37 +3271,38 @@ type UpdateVolumeRequest$2 = {
|
|
|
3271
3271
|
/** When defined, is the new name of the volume. */
|
|
3272
3272
|
name?: string;
|
|
3273
3273
|
/**
|
|
3274
|
-
* Optional field for
|
|
3275
|
-
* current one). Size in bytes of the volume, with a
|
|
3276
|
-
* bytes). Must be compliant with the minimum
|
|
3274
|
+
* Optional field for increasing the size of a volume (size must be equal or
|
|
3275
|
+
* larger than the current one). Size in bytes of the volume, with a
|
|
3276
|
+
* granularity of 1 GB (10^9 bytes). Must be compliant with the minimum (1GB)
|
|
3277
|
+
* and maximum (10TB) allowed size.
|
|
3277
3278
|
*/
|
|
3278
3279
|
size?: number;
|
|
3279
3280
|
/** List of tags assigned to the volume. */
|
|
3280
3281
|
tags?: string[];
|
|
3281
3282
|
/**
|
|
3282
3283
|
* The maximum IO/s expected, according to the different options available in
|
|
3283
|
-
* stock (`5000 | 15000`). The selected value must be available
|
|
3284
|
-
*
|
|
3284
|
+
* stock (`5000 | 15000`). The selected value must be available for the
|
|
3285
|
+
* volume's current storage class.
|
|
3285
3286
|
*/
|
|
3286
3287
|
perfIops?: number;
|
|
3287
3288
|
};
|
|
3288
3289
|
type ListSnapshotsRequest$4 = {
|
|
3289
3290
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
3290
3291
|
zone?: Zone;
|
|
3291
|
-
/**
|
|
3292
|
+
/** Criteria to use when ordering the list. */
|
|
3292
3293
|
orderBy?: ListSnapshotsRequestOrderBy$2;
|
|
3293
|
-
/**
|
|
3294
|
+
/** Filter by Project ID. */
|
|
3294
3295
|
projectId?: string;
|
|
3295
|
-
/**
|
|
3296
|
+
/** Page number. */
|
|
3296
3297
|
page?: number;
|
|
3297
3298
|
/**
|
|
3298
|
-
*
|
|
3299
|
-
*
|
|
3299
|
+
* Page size, defines how many entries are returned in one page, must be lower
|
|
3300
|
+
* or equal to 100.
|
|
3300
3301
|
*/
|
|
3301
3302
|
pageSize?: number;
|
|
3302
|
-
/** Filter
|
|
3303
|
+
/** Filter snapshots by the ID of the original volume. */
|
|
3303
3304
|
volumeId?: string;
|
|
3304
|
-
/** Filter
|
|
3305
|
+
/** Filter snapshots by their names. */
|
|
3305
3306
|
name?: string;
|
|
3306
3307
|
};
|
|
3307
3308
|
type GetSnapshotRequest$3 = {
|
|
@@ -3313,11 +3314,11 @@ type GetSnapshotRequest$3 = {
|
|
|
3313
3314
|
type CreateSnapshotRequest$4 = {
|
|
3314
3315
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
3315
3316
|
zone?: Zone;
|
|
3316
|
-
/** UUID of the volume
|
|
3317
|
+
/** UUID of the volume to snapshot. */
|
|
3317
3318
|
volumeId: string;
|
|
3318
3319
|
/** Name of the snapshot. */
|
|
3319
3320
|
name: string;
|
|
3320
|
-
/** UUID of the project the volume and the snapshot belong
|
|
3321
|
+
/** UUID of the project to which the volume and the snapshot belong. */
|
|
3321
3322
|
projectId?: string;
|
|
3322
3323
|
/** List of tags assigned to the snapshot. */
|
|
3323
3324
|
tags?: string[];
|
|
@@ -3340,10 +3341,10 @@ type UpdateSnapshotRequest$3 = {
|
|
|
3340
3341
|
};
|
|
3341
3342
|
|
|
3342
3343
|
/**
|
|
3343
|
-
* Scaleway Block Storage
|
|
3344
|
+
* Scaleway Block Storage API.
|
|
3344
3345
|
*
|
|
3345
3346
|
* This API allows you to use and manage your Block Storage volumes. Scaleway
|
|
3346
|
-
* Block Storage
|
|
3347
|
+
* Block Storage API.
|
|
3347
3348
|
*/
|
|
3348
3349
|
declare class API$p extends API$u {
|
|
3349
3350
|
/** Lists the available zones of the API. */
|
|
@@ -3363,8 +3364,8 @@ declare class API$p extends API$u {
|
|
|
3363
3364
|
protected pageOfListVolumes: (request?: Readonly<ListVolumesRequest$3>) => Promise<ListVolumesResponse$2>;
|
|
3364
3365
|
/**
|
|
3365
3366
|
* List volumes. List all existing volumes in a specified zone. By default,
|
|
3366
|
-
* the
|
|
3367
|
-
* be modified via the `order_by` field.
|
|
3367
|
+
* the volumes listed are ordered by creation date in ascending order. This
|
|
3368
|
+
* can be modified via the `order_by` field.
|
|
3368
3369
|
*
|
|
3369
3370
|
* @param request - The request {@link ListVolumesRequest}
|
|
3370
3371
|
* @returns A Promise of ListVolumesResponse
|
|
@@ -3374,13 +3375,12 @@ declare class API$p extends API$u {
|
|
|
3374
3375
|
[Symbol.asyncIterator]: () => AsyncGenerator<Volume$4[], void, void>;
|
|
3375
3376
|
};
|
|
3376
3377
|
/**
|
|
3377
|
-
* Create a
|
|
3378
|
-
*
|
|
3378
|
+
* Create a volume. To create a new volume from scratch, you must specify
|
|
3379
|
+
* `from_empty` and the `size`. To create a volume from an existing snapshot,
|
|
3380
|
+
* specify `from_snapshot` and the `snapshot_id` in the request payload
|
|
3379
3381
|
* instead, size is optional and can be specified if you need to extend the
|
|
3380
|
-
* original size.
|
|
3381
|
-
*
|
|
3382
|
-
* can specify the desired performance of the volume by setting `requirements`
|
|
3383
|
-
* accordingly.
|
|
3382
|
+
* original size. The volume will take on the same volume class and underlying
|
|
3383
|
+
* IOPS limitations as the original snapshot.
|
|
3384
3384
|
*
|
|
3385
3385
|
* @param request - The request {@link CreateVolumeRequest}
|
|
3386
3386
|
* @returns A Promise of Volume
|
|
@@ -3410,10 +3410,10 @@ declare class API$p extends API$u {
|
|
|
3410
3410
|
*/
|
|
3411
3411
|
deleteVolume: (request: Readonly<DeleteVolumeRequest$2>) => Promise<void>;
|
|
3412
3412
|
/**
|
|
3413
|
-
* Update a volume. Update technical details
|
|
3414
|
-
* tags, or its new size and `volume_type` (within the same Block
|
|
3415
|
-
* class). You can only resize a volume to a larger size. It is
|
|
3416
|
-
*
|
|
3413
|
+
* Update a volume. Update the technical details of a volume, such as its
|
|
3414
|
+
* name, tags, or its new size and `volume_type` (within the same Block
|
|
3415
|
+
* Storage class). You can only resize a volume to a larger size. It is
|
|
3416
|
+
* currently not possible to change your Block Storage Class.
|
|
3417
3417
|
*
|
|
3418
3418
|
* @param request - The request {@link UpdateVolumeRequest}
|
|
3419
3419
|
* @returns A Promise of Volume
|
|
@@ -3466,7 +3466,7 @@ declare class API$p extends API$u {
|
|
|
3466
3466
|
*/
|
|
3467
3467
|
deleteSnapshot: (request: Readonly<DeleteSnapshotRequest$3>) => Promise<void>;
|
|
3468
3468
|
/**
|
|
3469
|
-
* Update a snapshot. Update name or tags of the snapshot.
|
|
3469
|
+
* Update a snapshot. Update the name or tags of the snapshot.
|
|
3470
3470
|
*
|
|
3471
3471
|
* @param request - The request {@link UpdateSnapshotRequest}
|
|
3472
3472
|
* @returns A Promise of Snapshot
|
|
@@ -3547,6 +3547,7 @@ declare namespace index$q {
|
|
|
3547
3547
|
type CockpitStatus = 'unknown_status' | 'creating' | 'ready' | 'deleting' | 'updating' | 'error';
|
|
3548
3548
|
type DatasourceType = 'unknown_datasource_type' | 'metrics' | 'logs' | 'traces' | 'alerts';
|
|
3549
3549
|
type GrafanaUserRole = 'unknown_role' | 'editor' | 'viewer';
|
|
3550
|
+
type ListDatasourcesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
3550
3551
|
type ListGrafanaUsersRequestOrderBy = 'login_asc' | 'login_desc';
|
|
3551
3552
|
type ListPlansRequestOrderBy = 'name_asc' | 'name_desc';
|
|
3552
3553
|
type ListTokensRequestOrderBy$2 = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
@@ -3634,6 +3635,13 @@ interface ListContactPointsResponse {
|
|
|
3634
3635
|
/** Specifies whether there are unmanaged contact points. */
|
|
3635
3636
|
hasAdditionalContactPoints: boolean;
|
|
3636
3637
|
}
|
|
3638
|
+
/** List datasources response. */
|
|
3639
|
+
interface ListDatasourcesResponse {
|
|
3640
|
+
/** Count of all datasources corresponding to the request. */
|
|
3641
|
+
totalCount: number;
|
|
3642
|
+
/** List of the datasources within the pagination. */
|
|
3643
|
+
datasources: Datasource[];
|
|
3644
|
+
}
|
|
3637
3645
|
/** Response returned when listing Grafana users. List grafana users response. */
|
|
3638
3646
|
interface ListGrafanaUsersResponse {
|
|
3639
3647
|
/** Count of all Grafana users. */
|
|
@@ -3747,6 +3755,18 @@ type CreateDatasourceRequest = {
|
|
|
3747
3755
|
/** Datasource type. */
|
|
3748
3756
|
type?: DatasourceType;
|
|
3749
3757
|
};
|
|
3758
|
+
type ListDatasourcesRequest = {
|
|
3759
|
+
/** Page number. */
|
|
3760
|
+
page?: number;
|
|
3761
|
+
/** Page size. */
|
|
3762
|
+
pageSize?: number;
|
|
3763
|
+
/** How the response is ordered. */
|
|
3764
|
+
orderBy?: ListDatasourcesRequestOrderBy;
|
|
3765
|
+
/** ID of the Project. */
|
|
3766
|
+
projectId?: string;
|
|
3767
|
+
/** Filter by datasource types. */
|
|
3768
|
+
types?: DatasourceType[];
|
|
3769
|
+
};
|
|
3750
3770
|
type CreateTokenRequest$2 = {
|
|
3751
3771
|
/** ID of the Project. */
|
|
3752
3772
|
projectId?: string;
|
|
@@ -3760,6 +3780,7 @@ type ListTokensRequest$2 = {
|
|
|
3760
3780
|
page?: number;
|
|
3761
3781
|
/** Page size. */
|
|
3762
3782
|
pageSize?: number;
|
|
3783
|
+
/** How the response is ordered. */
|
|
3763
3784
|
orderBy?: ListTokensRequestOrderBy$2;
|
|
3764
3785
|
/** ID of the Project. */
|
|
3765
3786
|
projectId?: string;
|
|
@@ -3904,6 +3925,17 @@ declare class API$o extends API$u {
|
|
|
3904
3925
|
* @returns A Promise of Datasource
|
|
3905
3926
|
*/
|
|
3906
3927
|
createDatasource: (request: Readonly<CreateDatasourceRequest>) => Promise<Datasource>;
|
|
3928
|
+
protected pageOfListDatasources: (request?: Readonly<ListDatasourcesRequest>) => Promise<ListDatasourcesResponse>;
|
|
3929
|
+
/**
|
|
3930
|
+
* Get a list of datasources for the specified Project ID.
|
|
3931
|
+
*
|
|
3932
|
+
* @param request - The request {@link ListDatasourcesRequest}
|
|
3933
|
+
* @returns A Promise of ListDatasourcesResponse
|
|
3934
|
+
*/
|
|
3935
|
+
listDatasources: (request?: Readonly<ListDatasourcesRequest>) => Promise<ListDatasourcesResponse> & {
|
|
3936
|
+
all: () => Promise<Datasource[]>;
|
|
3937
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Datasource[], void, void>;
|
|
3938
|
+
};
|
|
3907
3939
|
/**
|
|
3908
3940
|
* Create a token associated with the specified Project ID.
|
|
3909
3941
|
*
|
|
@@ -4061,6 +4093,9 @@ type index_gen$l_GrafanaUser = GrafanaUser;
|
|
|
4061
4093
|
type index_gen$l_GrafanaUserRole = GrafanaUserRole;
|
|
4062
4094
|
type index_gen$l_ListContactPointsRequest = ListContactPointsRequest;
|
|
4063
4095
|
type index_gen$l_ListContactPointsResponse = ListContactPointsResponse;
|
|
4096
|
+
type index_gen$l_ListDatasourcesRequest = ListDatasourcesRequest;
|
|
4097
|
+
type index_gen$l_ListDatasourcesRequestOrderBy = ListDatasourcesRequestOrderBy;
|
|
4098
|
+
type index_gen$l_ListDatasourcesResponse = ListDatasourcesResponse;
|
|
4064
4099
|
type index_gen$l_ListGrafanaUsersRequest = ListGrafanaUsersRequest;
|
|
4065
4100
|
type index_gen$l_ListGrafanaUsersRequestOrderBy = ListGrafanaUsersRequestOrderBy;
|
|
4066
4101
|
type index_gen$l_ListGrafanaUsersResponse = ListGrafanaUsersResponse;
|
|
@@ -4076,7 +4111,7 @@ type index_gen$l_SelectPlanResponse = SelectPlanResponse;
|
|
|
4076
4111
|
type index_gen$l_TokenScopes = TokenScopes;
|
|
4077
4112
|
type index_gen$l_TriggerTestAlertRequest = TriggerTestAlertRequest;
|
|
4078
4113
|
declare namespace index_gen$l {
|
|
4079
|
-
export { API$o as API, type index_gen$l_ActivateCockpitRequest as ActivateCockpitRequest, index_gen$l_COCKPIT_TRANSIENT_STATUSES as COCKPIT_TRANSIENT_STATUSES, type index_gen$l_Cockpit as Cockpit, type index_gen$l_CockpitEndpoints as CockpitEndpoints, type index_gen$l_CockpitMetrics as CockpitMetrics, type index_gen$l_CockpitStatus as CockpitStatus, type index_gen$l_ContactPoint as ContactPoint, type index_gen$l_ContactPointEmail as ContactPointEmail, type index_gen$l_CreateContactPointRequest as CreateContactPointRequest, type index_gen$l_CreateDatasourceRequest as CreateDatasourceRequest, type index_gen$l_CreateGrafanaUserRequest as CreateGrafanaUserRequest, type CreateTokenRequest$2 as CreateTokenRequest, type index_gen$l_Datasource as Datasource, type index_gen$l_DatasourceType as DatasourceType, type index_gen$l_DeactivateCockpitRequest as DeactivateCockpitRequest, type index_gen$l_DeleteContactPointRequest as DeleteContactPointRequest, type index_gen$l_DeleteGrafanaUserRequest as DeleteGrafanaUserRequest, type DeleteTokenRequest$2 as DeleteTokenRequest, type index_gen$l_DisableManagedAlertsRequest as DisableManagedAlertsRequest, type index_gen$l_EnableManagedAlertsRequest as EnableManagedAlertsRequest, type index_gen$l_GetCockpitMetricsRequest as GetCockpitMetricsRequest, type index_gen$l_GetCockpitRequest as GetCockpitRequest, type GetTokenRequest$2 as GetTokenRequest, type index_gen$l_GrafanaUser as GrafanaUser, type index_gen$l_GrafanaUserRole as GrafanaUserRole, type index_gen$l_ListContactPointsRequest as ListContactPointsRequest, type index_gen$l_ListContactPointsResponse as ListContactPointsResponse, type index_gen$l_ListGrafanaUsersRequest as ListGrafanaUsersRequest, type index_gen$l_ListGrafanaUsersRequestOrderBy as ListGrafanaUsersRequestOrderBy, type index_gen$l_ListGrafanaUsersResponse as ListGrafanaUsersResponse, type index_gen$l_ListPlansRequest as ListPlansRequest, type index_gen$l_ListPlansRequestOrderBy as ListPlansRequestOrderBy, type index_gen$l_ListPlansResponse as ListPlansResponse, type ListTokensRequest$2 as ListTokensRequest, type ListTokensRequestOrderBy$2 as ListTokensRequestOrderBy, type ListTokensResponse$2 as ListTokensResponse, type index_gen$l_Plan as Plan, type index_gen$l_PlanName as PlanName, type index_gen$l_ResetCockpitGrafanaRequest as ResetCockpitGrafanaRequest, type index_gen$l_ResetGrafanaUserPasswordRequest as ResetGrafanaUserPasswordRequest, type index_gen$l_SelectPlanRequest as SelectPlanRequest, type index_gen$l_SelectPlanResponse as SelectPlanResponse, type Token$2 as Token, type index_gen$l_TokenScopes as TokenScopes, type index_gen$l_TriggerTestAlertRequest as TriggerTestAlertRequest };
|
|
4114
|
+
export { API$o as API, type index_gen$l_ActivateCockpitRequest as ActivateCockpitRequest, index_gen$l_COCKPIT_TRANSIENT_STATUSES as COCKPIT_TRANSIENT_STATUSES, type index_gen$l_Cockpit as Cockpit, type index_gen$l_CockpitEndpoints as CockpitEndpoints, type index_gen$l_CockpitMetrics as CockpitMetrics, type index_gen$l_CockpitStatus as CockpitStatus, type index_gen$l_ContactPoint as ContactPoint, type index_gen$l_ContactPointEmail as ContactPointEmail, type index_gen$l_CreateContactPointRequest as CreateContactPointRequest, type index_gen$l_CreateDatasourceRequest as CreateDatasourceRequest, type index_gen$l_CreateGrafanaUserRequest as CreateGrafanaUserRequest, type CreateTokenRequest$2 as CreateTokenRequest, type index_gen$l_Datasource as Datasource, type index_gen$l_DatasourceType as DatasourceType, type index_gen$l_DeactivateCockpitRequest as DeactivateCockpitRequest, type index_gen$l_DeleteContactPointRequest as DeleteContactPointRequest, type index_gen$l_DeleteGrafanaUserRequest as DeleteGrafanaUserRequest, type DeleteTokenRequest$2 as DeleteTokenRequest, type index_gen$l_DisableManagedAlertsRequest as DisableManagedAlertsRequest, type index_gen$l_EnableManagedAlertsRequest as EnableManagedAlertsRequest, type index_gen$l_GetCockpitMetricsRequest as GetCockpitMetricsRequest, type index_gen$l_GetCockpitRequest as GetCockpitRequest, type GetTokenRequest$2 as GetTokenRequest, type index_gen$l_GrafanaUser as GrafanaUser, type index_gen$l_GrafanaUserRole as GrafanaUserRole, type index_gen$l_ListContactPointsRequest as ListContactPointsRequest, type index_gen$l_ListContactPointsResponse as ListContactPointsResponse, type index_gen$l_ListDatasourcesRequest as ListDatasourcesRequest, type index_gen$l_ListDatasourcesRequestOrderBy as ListDatasourcesRequestOrderBy, type index_gen$l_ListDatasourcesResponse as ListDatasourcesResponse, type index_gen$l_ListGrafanaUsersRequest as ListGrafanaUsersRequest, type index_gen$l_ListGrafanaUsersRequestOrderBy as ListGrafanaUsersRequestOrderBy, type index_gen$l_ListGrafanaUsersResponse as ListGrafanaUsersResponse, type index_gen$l_ListPlansRequest as ListPlansRequest, type index_gen$l_ListPlansRequestOrderBy as ListPlansRequestOrderBy, type index_gen$l_ListPlansResponse as ListPlansResponse, type ListTokensRequest$2 as ListTokensRequest, type ListTokensRequestOrderBy$2 as ListTokensRequestOrderBy, type ListTokensResponse$2 as ListTokensResponse, type index_gen$l_Plan as Plan, type index_gen$l_PlanName as PlanName, type index_gen$l_ResetCockpitGrafanaRequest as ResetCockpitGrafanaRequest, type index_gen$l_ResetGrafanaUserPasswordRequest as ResetGrafanaUserPasswordRequest, type index_gen$l_SelectPlanRequest as SelectPlanRequest, type index_gen$l_SelectPlanResponse as SelectPlanResponse, type Token$2 as Token, type index_gen$l_TokenScopes as TokenScopes, type index_gen$l_TriggerTestAlertRequest as TriggerTestAlertRequest };
|
|
4080
4115
|
}
|
|
4081
4116
|
|
|
4082
4117
|
declare namespace index$p {
|
|
@@ -4161,6 +4196,7 @@ interface CreateTriggerRequestMnqNatsClientConfig$1 {
|
|
|
4161
4196
|
subject: string;
|
|
4162
4197
|
mnqProjectId: string;
|
|
4163
4198
|
mnqRegion: string;
|
|
4199
|
+
mnqNatsAccountId: string;
|
|
4164
4200
|
}
|
|
4165
4201
|
interface CreateTriggerRequestMnqSqsClientConfig$1 {
|
|
4166
4202
|
mnqNamespaceId: string;
|
|
@@ -9160,6 +9196,7 @@ interface CreateTriggerRequestMnqNatsClientConfig {
|
|
|
9160
9196
|
subject: string;
|
|
9161
9197
|
mnqProjectId: string;
|
|
9162
9198
|
mnqRegion: string;
|
|
9199
|
+
mnqNatsAccountId: string;
|
|
9163
9200
|
}
|
|
9164
9201
|
interface CreateTriggerRequestMnqSqsClientConfig {
|
|
9165
9202
|
mnqNamespaceId: string;
|
|
@@ -16671,6 +16708,12 @@ interface CreateClusterRequestPoolConfig$1 {
|
|
|
16671
16708
|
rootVolumeType: PoolVolumeType;
|
|
16672
16709
|
/** System volume disk size. */
|
|
16673
16710
|
rootVolumeSize?: number;
|
|
16711
|
+
/**
|
|
16712
|
+
* Defines if the public IP should be removed from Nodes. To use this feature,
|
|
16713
|
+
* your Cluster must have an attached Private Network set up with a Public
|
|
16714
|
+
* Gateway.
|
|
16715
|
+
*/
|
|
16716
|
+
publicIpDisabled: boolean;
|
|
16674
16717
|
}
|
|
16675
16718
|
/** Create cluster request. pool config. upgrade policy. */
|
|
16676
16719
|
interface CreateClusterRequestPoolConfigUpgradePolicy {
|
|
@@ -16849,6 +16892,12 @@ interface Pool {
|
|
|
16849
16892
|
rootVolumeType: PoolVolumeType;
|
|
16850
16893
|
/** System volume disk size. */
|
|
16851
16894
|
rootVolumeSize?: number;
|
|
16895
|
+
/**
|
|
16896
|
+
* Defines if the public IP should be removed from Nodes. To use this feature,
|
|
16897
|
+
* your Cluster must have an attached Private Network set up with a Public
|
|
16898
|
+
* Gateway.
|
|
16899
|
+
*/
|
|
16900
|
+
publicIpDisabled: boolean;
|
|
16852
16901
|
/** Cluster region of the pool. */
|
|
16853
16902
|
region: Region;
|
|
16854
16903
|
}
|
|
@@ -17295,6 +17344,12 @@ type CreatePoolRequest$1 = {
|
|
|
17295
17344
|
rootVolumeType?: PoolVolumeType;
|
|
17296
17345
|
/** System volume disk size. */
|
|
17297
17346
|
rootVolumeSize?: number;
|
|
17347
|
+
/**
|
|
17348
|
+
* Defines if the public IP should be removed from Nodes. To use this feature,
|
|
17349
|
+
* your Cluster must have an attached Private Network set up with a Public
|
|
17350
|
+
* Gateway.
|
|
17351
|
+
*/
|
|
17352
|
+
publicIpDisabled: boolean;
|
|
17298
17353
|
};
|
|
17299
17354
|
type GetPoolRequest = {
|
|
17300
17355
|
/**
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "d0986c851fe9604dd18e8f1a6a8d2909b9da4d3e"
|
|
39
39
|
}
|