@scaleway/sdk 1.33.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.
@@ -11,6 +11,14 @@ import { unmarshalGetConsumptionResponse, unmarshalListInvoicesResponse } from '
11
11
  * This API allows you to query your consumption. Billing API.
12
12
  */
13
13
  class API extends API$1 {
14
+ /**
15
+ * Get current month's consumption. The consumption reflects the amount of
16
+ * money you have spent for the products you have used. The consumption value
17
+ * is monetary and is not computed in real time.
18
+ *
19
+ * @param request - The request {@link GetConsumptionRequest}
20
+ * @returns A Promise of GetConsumptionResponse
21
+ */
14
22
  getConsumption = (() => {
15
23
  var _this = this;
16
24
  return function (request) {
@@ -37,6 +45,14 @@ class API extends API$1 {
37
45
  }, unmarshalListInvoicesResponse);
38
46
  };
39
47
  })();
48
+
49
+ /**
50
+ * List invoices. List all your invoices, filtering by `start_date` and
51
+ * `invoice_type`. Each invoice has its own ID.
52
+ *
53
+ * @param request - The request {@link ListInvoicesRequest}
54
+ * @returns A Promise of ListInvoicesResponse
55
+ */
40
56
  listInvoices = (() => {
41
57
  var _this3 = this;
42
58
  return function (request) {
@@ -46,6 +62,13 @@ class API extends API$1 {
46
62
  return enrichForPagination('invoices', _this3.pageOfListInvoices, request);
47
63
  };
48
64
  })();
65
+
66
+ /**
67
+ * Download an invoice. Download a specific invoice, specified by its ID.
68
+ *
69
+ * @param request - The request {@link DownloadInvoiceRequest}
70
+ * @returns A Promise of Blob
71
+ */
49
72
  downloadInvoice = request => this.client.fetch({
50
73
  method: 'GET',
51
74
  path: `/billing/v2alpha1/invoices/${validatePathParam('invoiceId', request.invoiceId)}/download`,
@@ -12,10 +12,10 @@ const jsonContentHeaders = {
12
12
  };
13
13
 
14
14
  /**
15
- * Scaleway Block Storage (SBS) API.
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 (SBS) API.
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 volume listed are ordered by creation date in ascending order. This can
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 new empty volume by specifying the `size`. To create a volume from
87
- * an existing snapshot, specify the `snapshot_id` in the request payload
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. In that case the created volume will have the same volume
90
- * class (and underlying IOPS limitations) as the originating snapshot. You
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 about a volume, such as its name,
138
- * tags, or its new size and `volume_type` (within the same Block Storage
139
- * class). You can only resize a volume to a larger size. It is not possible
140
- * for now to change your Block Storage Class.
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 _this7 = this;
191
+ var _this9 = this;
163
192
  return function (request) {
164
193
  if (request === void 0) {
165
194
  request = {};
166
195
  }
167
- return _this7.client.fetch({
168
- body: JSON.stringify(marshalCreateTokenRequest(request, _this7.client.settings)),
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 _this8 = this;
205
+ var _this10 = this;
177
206
  return function (request) {
178
207
  if (request === void 0) {
179
208
  request = {};
180
209
  }
181
- return _this8.client.fetch({
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 ?? _this8.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this8.client.settings.defaultProjectId])
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 _this9 = this;
225
+ var _this11 = this;
197
226
  return function (request) {
198
227
  if (request === void 0) {
199
228
  request = {};
200
229
  }
201
- return enrichForPagination('tokens', _this9.pageOfListTokens, request);
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 _this10 = this;
262
+ var _this12 = this;
234
263
  return function (request) {
235
264
  if (request === void 0) {
236
265
  request = {};
237
266
  }
238
- return _this10.client.fetch({
239
- body: JSON.stringify(marshalCreateContactPointRequest(request, _this10.client.settings)),
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 _this11 = this;
276
+ var _this13 = this;
248
277
  return function (request) {
249
278
  if (request === void 0) {
250
279
  request = {};
251
280
  }
252
- return _this11.client.fetch({
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 ?? _this11.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this11.client.settings.defaultProjectId])
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 _this12 = this;
297
+ var _this14 = this;
269
298
  return function (request) {
270
299
  if (request === void 0) {
271
300
  request = {};
272
301
  }
273
- return enrichForPagination('contactPoints', _this12.pageOfListContactPoints, request);
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 _this13 = this;
312
+ var _this15 = this;
284
313
  return function (request) {
285
314
  if (request === void 0) {
286
315
  request = {};
287
316
  }
288
- return _this13.client.fetch({
289
- body: JSON.stringify(marshalDeleteContactPointRequest(request, _this13.client.settings)),
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 _this14 = this;
332
+ var _this16 = this;
304
333
  return function (request) {
305
334
  if (request === void 0) {
306
335
  request = {};
307
336
  }
308
- return _this14.client.fetch({
309
- body: JSON.stringify(marshalEnableManagedAlertsRequest(request, _this14.client.settings)),
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 _this15 = this;
352
+ var _this17 = this;
324
353
  return function (request) {
325
354
  if (request === void 0) {
326
355
  request = {};
327
356
  }
328
- return _this15.client.fetch({
329
- body: JSON.stringify(marshalDisableManagedAlertsRequest(request, _this15.client.settings)),
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 _this16 = this;
372
+ var _this18 = this;
344
373
  return function (request) {
345
374
  if (request === void 0) {
346
375
  request = {};
347
376
  }
348
- return _this16.client.fetch({
349
- body: JSON.stringify(marshalTriggerTestAlertRequest(request, _this16.client.settings)),
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 _this17 = this;
400
+ var _this19 = this;
372
401
  return function (request) {
373
402
  if (request === void 0) {
374
403
  request = {};
375
404
  }
376
- return _this17.client.fetch({
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 ?? _this17.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this17.client.settings.defaultProjectId])
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 _this18 = this;
421
+ var _this20 = this;
393
422
  return function (request) {
394
423
  if (request === void 0) {
395
424
  request = {};
396
425
  }
397
- return enrichForPagination('grafanaUsers', _this18.pageOfListGrafanaUsers, request);
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 _this19 = this;
457
+ var _this21 = this;
429
458
  return function (request) {
430
459
  if (request === void 0) {
431
460
  request = {};
432
461
  }
433
- return _this19.client.fetch({
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 ?? _this19.client.settings.defaultPageSize])
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 _this20 = this;
477
+ var _this22 = this;
449
478
  return function (request) {
450
479
  if (request === void 0) {
451
480
  request = {};
452
481
  }
453
- return enrichForPagination('plans', _this20.pageOfListPlans, request);
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
@@ -83,7 +83,7 @@ class API extends API$1 {
83
83
  return _this4.client.fetch({
84
84
  method: 'GET',
85
85
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this4.client.settings.defaultZone)}/servers`,
86
- urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['private_nic_mac_address', request.privateNicMacAddress], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
86
+ urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['private_nic_mac_address', request.privateNicMacAddress], ['project', request.project], ['servers', request.servers && request.servers.length > 0 ? request.servers.join(',') : undefined], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
87
87
  }, unmarshalListServersResponse);
88
88
  };
89
89
  })();
@@ -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,
@@ -767,7 +767,7 @@ class API extends API$1 {
767
767
  */
768
768
  class ZonedAPI extends API$1 {
769
769
  /** Lists the available zones of the API. */
770
- static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
770
+ static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
771
771
  pageOfListLbs = (() => {
772
772
  var _this10 = this;
773
773
  return function (request) {