@scaleway/sdk 1.26.0 → 1.28.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.
@@ -18,7 +18,7 @@ const jsonContentHeaders = {
18
18
  */
19
19
  class API extends API$1 {
20
20
  /** Lists the available zones of the API. */
21
- static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
21
+ static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2'];
22
22
  pageOfListServers = (() => {
23
23
  var _this = this;
24
24
  return function (request) {
@@ -413,6 +413,7 @@ const unmarshalServerType = data => {
413
413
  network: data.network ? unmarshalServerTypeNetwork(data.network) : undefined,
414
414
  perVolumeConstraint: data.per_volume_constraint ? unmarshalServerTypeVolumeConstraintsByType(data.per_volume_constraint) : undefined,
415
415
  ram: data.ram,
416
+ scratchStorageMaxSize: data.scratch_storage_max_size,
416
417
  volumesConstraint: data.volumes_constraint ? unmarshalServerTypeVolumeConstraintSizes(data.volumes_constraint) : undefined
417
418
  };
418
419
  };
@@ -2,8 +2,8 @@ import { waitForResource } from '../../../internal/async/interval-retrier.js';
2
2
  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
- import { PIN_TRANSIENT_STATUSES } from './content.gen.js';
6
- import { marshalCreateVolumeRequest, unmarshalVolume, unmarshalListVolumesResponse, marshalUpdateVolumeRequest, marshalCreatePinByURLRequest, unmarshalPin, marshalCreatePinByCIDRequest, marshalReplacePinRequest, unmarshalReplacePinResponse, unmarshalListPinsResponse } from './marshalling.gen.js';
5
+ import { PIN_TRANSIENT_STATUSES, NAME_TRANSIENT_STATUSES } from './content.gen.js';
6
+ import { marshalCreateVolumeRequest, unmarshalVolume, unmarshalListVolumesResponse, marshalUpdateVolumeRequest, marshalCreatePinByURLRequest, unmarshalPin, marshalCreatePinByCIDRequest, marshalReplacePinRequest, unmarshalReplacePinResponse, unmarshalListPinsResponse, marshalCreateNameRequest, unmarshalName, unmarshalListNamesResponse, marshalUpdateNameRequest, unmarshalExportKeyNameResponse, marshalImportKeyNameRequest } 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.
@@ -192,6 +192,67 @@ class API extends API$1 {
192
192
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
193
193
  urlParams: urlParams(['volume_id', request.volumeId])
194
194
  });
195
+ createName = request => this.client.fetch({
196
+ body: JSON.stringify(marshalCreateNameRequest(request, this.client.settings)),
197
+ headers: jsonContentHeaders,
198
+ method: 'POST',
199
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
200
+ }, unmarshalName);
201
+ getName = request => this.client.fetch({
202
+ method: 'GET',
203
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
204
+ }, unmarshalName);
205
+
206
+ /**
207
+ * Waits for {@link Name} to be in a final state.
208
+ *
209
+ * @param request - The request {@link GetNameRequest}
210
+ * @param options - The waiting options
211
+ * @returns A Promise of Name
212
+ */
213
+ waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
214
+ deleteName = request => this.client.fetch({
215
+ method: 'DELETE',
216
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
217
+ });
218
+ pageOfListNames = (() => {
219
+ var _this3 = this;
220
+ return function (request) {
221
+ if (request === void 0) {
222
+ request = {};
223
+ }
224
+ return _this3.client.fetch({
225
+ method: 'GET',
226
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/names`,
227
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['project_id', request.projectId])
228
+ }, unmarshalListNamesResponse);
229
+ };
230
+ })();
231
+ listNames = (() => {
232
+ var _this4 = this;
233
+ return function (request) {
234
+ if (request === void 0) {
235
+ request = {};
236
+ }
237
+ return enrichForPagination('names', _this4.pageOfListNames, request);
238
+ };
239
+ })();
240
+ updateName = request => this.client.fetch({
241
+ body: JSON.stringify(marshalUpdateNameRequest(request, this.client.settings)),
242
+ headers: jsonContentHeaders,
243
+ method: 'PATCH',
244
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
245
+ }, unmarshalName);
246
+ exportKeyName = request => this.client.fetch({
247
+ method: 'GET',
248
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
249
+ }, unmarshalExportKeyNameResponse);
250
+ importKeyName = request => this.client.fetch({
251
+ body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
252
+ headers: jsonContentHeaders,
253
+ method: 'POST',
254
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
255
+ }, unmarshalName);
195
256
  }
196
257
 
197
258
  export { API };
@@ -1,7 +1,10 @@
1
1
  // This file was automatically generated. DO NOT EDIT.
2
2
  // If you have any remark or suggestion do not hesitate to open an issue.
3
3
 
4
+ /** Lists transient statutes of the enum {@link NameStatus}. */
5
+ const NAME_TRANSIENT_STATUSES = ['queued', 'publishing'];
6
+
4
7
  /** Lists transient statutes of the enum {@link PinStatus}. */
5
8
  const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
6
9
 
7
- export { PIN_TRANSIENT_STATUSES };
10
+ export { NAME_TRANSIENT_STATUSES, PIN_TRANSIENT_STATUSES };
@@ -1,5 +1,5 @@
1
1
  export { API } from './api.gen.js';
2
- export { PIN_TRANSIENT_STATUSES } from './content.gen.js';
2
+ export { NAME_TRANSIENT_STATUSES, PIN_TRANSIENT_STATUSES } from './content.gen.js';
3
3
 
4
4
  // This file was automatically generated. DO NOT EDIT.
5
5
  // If you have any remark or suggestion do not hesitate to open an issue.
@@ -34,6 +34,22 @@ const unmarshalPinInfo = data => {
34
34
  url: data.url
35
35
  };
36
36
  };
37
+ const unmarshalName = data => {
38
+ if (!isJSONObject(data)) {
39
+ throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
40
+ }
41
+ return {
42
+ cid: data.cid,
43
+ createdAt: unmarshalDate(data.created_at),
44
+ key: data.key,
45
+ name: data.name,
46
+ nameId: data.name_id,
47
+ projectId: data.project_id,
48
+ status: data.status,
49
+ tags: data.tags,
50
+ updatedAt: unmarshalDate(data.updated_at)
51
+ };
52
+ };
37
53
  const unmarshalPin = data => {
38
54
  if (!isJSONObject(data)) {
39
55
  throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
@@ -63,6 +79,28 @@ const unmarshalVolume = data => {
63
79
  updatedAt: unmarshalDate(data.updated_at)
64
80
  };
65
81
  };
82
+ const unmarshalExportKeyNameResponse = data => {
83
+ if (!isJSONObject(data)) {
84
+ throw new TypeError(`Unmarshalling the type 'ExportKeyNameResponse' failed as data isn't a dictionary.`);
85
+ }
86
+ return {
87
+ createdAt: unmarshalDate(data.created_at),
88
+ nameId: data.name_id,
89
+ privateKey: data.private_key,
90
+ projectId: data.project_id,
91
+ publicKey: data.public_key,
92
+ updatedAt: unmarshalDate(data.updated_at)
93
+ };
94
+ };
95
+ const unmarshalListNamesResponse = data => {
96
+ if (!isJSONObject(data)) {
97
+ throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
98
+ }
99
+ return {
100
+ names: unmarshalArrayOfObject(data.names, unmarshalName),
101
+ totalCount: data.total_count
102
+ };
103
+ };
66
104
  const unmarshalListPinsResponse = data => {
67
105
  if (!isJSONObject(data)) {
68
106
  throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
@@ -93,6 +131,11 @@ const marshalPinOptions = (request, defaults) => ({
93
131
  replication_count: request.replicationCount,
94
132
  required_zones: request.requiredZones
95
133
  });
134
+ const marshalCreateNameRequest = (request, defaults) => ({
135
+ cid: request.cid,
136
+ name: request.name,
137
+ project_id: request.projectId ?? defaults.defaultProjectId
138
+ });
96
139
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
97
140
  cid: request.cid,
98
141
  name: request.name,
@@ -110,6 +153,11 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
110
153
  name: request.name,
111
154
  project_id: request.projectId ?? defaults.defaultProjectId
112
155
  });
156
+ const marshalImportKeyNameRequest = (request, defaults) => ({
157
+ name: request.name,
158
+ private_key: request.privateKey,
159
+ project_id: request.projectId ?? defaults.defaultProjectId
160
+ });
113
161
  const marshalReplacePinRequest = (request, defaults) => ({
114
162
  cid: request.cid,
115
163
  name: request.name,
@@ -117,9 +165,14 @@ const marshalReplacePinRequest = (request, defaults) => ({
117
165
  pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
118
166
  volume_id: request.volumeId
119
167
  });
168
+ const marshalUpdateNameRequest = (request, defaults) => ({
169
+ cid: request.cid,
170
+ name: request.name,
171
+ tags: request.tags
172
+ });
120
173
  const marshalUpdateVolumeRequest = (request, defaults) => ({
121
174
  name: request.name,
122
175
  tags: request.tags
123
176
  });
124
177
 
125
- export { marshalCreatePinByCIDRequest, marshalCreatePinByURLRequest, marshalCreateVolumeRequest, marshalReplacePinRequest, marshalUpdateVolumeRequest, unmarshalListPinsResponse, unmarshalListVolumesResponse, unmarshalPin, unmarshalReplacePinResponse, unmarshalVolume };
178
+ export { marshalCreateNameRequest, marshalCreatePinByCIDRequest, marshalCreatePinByURLRequest, marshalCreateVolumeRequest, marshalImportKeyNameRequest, marshalReplacePinRequest, marshalUpdateNameRequest, marshalUpdateVolumeRequest, unmarshalExportKeyNameResponse, unmarshalListNamesResponse, unmarshalListPinsResponse, unmarshalListVolumesResponse, unmarshalName, unmarshalPin, unmarshalReplacePinResponse, unmarshalVolume };
@@ -123,6 +123,9 @@ class API extends API$1 {
123
123
 
124
124
  /**
125
125
  * Change the Cluster type. Change the type of a specific Kubernetes cluster.
126
+ * To see the possible values you can enter for the `type` field, [list
127
+ * available cluster
128
+ * types](#path-clusters-list-available-cluster-types-for-a-cluster).
126
129
  *
127
130
  * @param request - The request {@link SetClusterTypeRequest}
128
131
  * @returns A Promise of Cluster
@@ -63,7 +63,8 @@ class API extends API$1 {
63
63
  *
64
64
  * GetSecretByName usage is now deprecated.
65
65
  *
66
- * Scaleway recommends you to use ListSecrets with the `name` filter.
66
+ * Scaleway recommends that you use the `ListSecrets` request with the `name`
67
+ * filter.
67
68
  *
68
69
  * @deprecated
69
70
  * @param request - The request {@link GetSecretByNameRequest}
@@ -162,7 +163,7 @@ class API extends API$1 {
162
163
  });
163
164
 
164
165
  /**
165
- * Delete a given folder specified by the and `folder_id` parameter.
166
+ * Delete a given folder specified by the `region` and `folder_id` parameters.
166
167
  *
167
168
  * @param request - The request {@link DeleteFolderRequest}
168
169
  */
@@ -227,6 +227,9 @@ const marshalCreateDHCPRequest = (request, defaults) => ({
227
227
  subnet: request.subnet,
228
228
  valid_lifetime: request.validLifetime
229
229
  });
230
+ const marshalIpamConfig = (request, defaults) => ({
231
+ push_default_route: request.pushDefaultRoute
232
+ });
230
233
  const marshalSetDHCPEntriesRequestEntry = (request, defaults) => ({
231
234
  ip_address: request.ipAddress,
232
235
  mac_address: request.macAddress
@@ -256,6 +259,9 @@ const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
256
259
  }, {
257
260
  param: 'address',
258
261
  value: request.address
262
+ }, {
263
+ param: 'ipam_config',
264
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
259
265
  }])
260
266
  });
261
267
  const marshalCreateGatewayRequest = (request, defaults) => ({
@@ -315,6 +321,9 @@ const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
315
321
  }, {
316
322
  param: 'address',
317
323
  value: request.address
324
+ }, {
325
+ param: 'ipam_config',
326
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
318
327
  }])
319
328
  });
320
329
  const marshalUpdateGatewayRequest = (request, defaults) => ({
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v1.25.0';
500
+ const version = 'v1.27.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -3069,7 +3069,7 @@ const jsonContentHeaders$m = {
3069
3069
  */
3070
3070
  let API$p = class API extends API$s {
3071
3071
  /** Lists the available zones of the API. */
3072
- static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
3072
+ static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2'];
3073
3073
  pageOfListServers = (request = {}) => this.client.fetch({
3074
3074
  method: 'GET',
3075
3075
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
@@ -9955,6 +9955,7 @@ const unmarshalServerType = data => {
9955
9955
  network: data.network ? unmarshalServerTypeNetwork(data.network) : undefined,
9956
9956
  perVolumeConstraint: data.per_volume_constraint ? unmarshalServerTypeVolumeConstraintsByType(data.per_volume_constraint) : undefined,
9957
9957
  ram: data.ram,
9958
+ scratchStorageMaxSize: data.scratch_storage_max_size,
9958
9959
  volumesConstraint: data.volumes_constraint ? unmarshalServerTypeVolumeConstraintSizes(data.volumes_constraint) : undefined
9959
9960
  };
9960
9961
  };
@@ -13080,6 +13081,9 @@ var index$g = /*#__PURE__*/Object.freeze({
13080
13081
  // This file was automatically generated. DO NOT EDIT.
13081
13082
  // If you have any remark or suggestion do not hesitate to open an issue.
13082
13083
 
13084
+ /** Lists transient statutes of the enum {@link NameStatus}. */
13085
+ const NAME_TRANSIENT_STATUSES = ['queued', 'publishing'];
13086
+
13083
13087
  /** Lists transient statutes of the enum {@link PinStatus}. */
13084
13088
  const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
13085
13089
 
@@ -13116,6 +13120,22 @@ const unmarshalPinInfo = data => {
13116
13120
  url: data.url
13117
13121
  };
13118
13122
  };
13123
+ const unmarshalName = data => {
13124
+ if (!isJSONObject(data)) {
13125
+ throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
13126
+ }
13127
+ return {
13128
+ cid: data.cid,
13129
+ createdAt: unmarshalDate(data.created_at),
13130
+ key: data.key,
13131
+ name: data.name,
13132
+ nameId: data.name_id,
13133
+ projectId: data.project_id,
13134
+ status: data.status,
13135
+ tags: data.tags,
13136
+ updatedAt: unmarshalDate(data.updated_at)
13137
+ };
13138
+ };
13119
13139
  const unmarshalPin = data => {
13120
13140
  if (!isJSONObject(data)) {
13121
13141
  throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
@@ -13145,6 +13165,28 @@ const unmarshalVolume$1 = data => {
13145
13165
  updatedAt: unmarshalDate(data.updated_at)
13146
13166
  };
13147
13167
  };
13168
+ const unmarshalExportKeyNameResponse = data => {
13169
+ if (!isJSONObject(data)) {
13170
+ throw new TypeError(`Unmarshalling the type 'ExportKeyNameResponse' failed as data isn't a dictionary.`);
13171
+ }
13172
+ return {
13173
+ createdAt: unmarshalDate(data.created_at),
13174
+ nameId: data.name_id,
13175
+ privateKey: data.private_key,
13176
+ projectId: data.project_id,
13177
+ publicKey: data.public_key,
13178
+ updatedAt: unmarshalDate(data.updated_at)
13179
+ };
13180
+ };
13181
+ const unmarshalListNamesResponse = data => {
13182
+ if (!isJSONObject(data)) {
13183
+ throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
13184
+ }
13185
+ return {
13186
+ names: unmarshalArrayOfObject(data.names, unmarshalName),
13187
+ totalCount: data.total_count
13188
+ };
13189
+ };
13148
13190
  const unmarshalListPinsResponse = data => {
13149
13191
  if (!isJSONObject(data)) {
13150
13192
  throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
@@ -13175,6 +13217,11 @@ const marshalPinOptions = (request, defaults) => ({
13175
13217
  replication_count: request.replicationCount,
13176
13218
  required_zones: request.requiredZones
13177
13219
  });
13220
+ const marshalCreateNameRequest = (request, defaults) => ({
13221
+ cid: request.cid,
13222
+ name: request.name,
13223
+ project_id: request.projectId ?? defaults.defaultProjectId
13224
+ });
13178
13225
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
13179
13226
  cid: request.cid,
13180
13227
  name: request.name,
@@ -13192,6 +13239,11 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
13192
13239
  name: request.name,
13193
13240
  project_id: request.projectId ?? defaults.defaultProjectId
13194
13241
  });
13242
+ const marshalImportKeyNameRequest = (request, defaults) => ({
13243
+ name: request.name,
13244
+ private_key: request.privateKey,
13245
+ project_id: request.projectId ?? defaults.defaultProjectId
13246
+ });
13195
13247
  const marshalReplacePinRequest = (request, defaults) => ({
13196
13248
  cid: request.cid,
13197
13249
  name: request.name,
@@ -13199,6 +13251,11 @@ const marshalReplacePinRequest = (request, defaults) => ({
13199
13251
  pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
13200
13252
  volume_id: request.volumeId
13201
13253
  });
13254
+ const marshalUpdateNameRequest = (request, defaults) => ({
13255
+ cid: request.cid,
13256
+ name: request.name,
13257
+ tags: request.tags
13258
+ });
13202
13259
  const marshalUpdateVolumeRequest = (request, defaults) => ({
13203
13260
  name: request.name,
13204
13261
  tags: request.tags
@@ -13375,6 +13432,51 @@ let API$f = class API extends API$s {
13375
13432
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
13376
13433
  urlParams: urlParams(['volume_id', request.volumeId])
13377
13434
  });
13435
+ createName = request => this.client.fetch({
13436
+ body: JSON.stringify(marshalCreateNameRequest(request, this.client.settings)),
13437
+ headers: jsonContentHeaders$d,
13438
+ method: 'POST',
13439
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
13440
+ }, unmarshalName);
13441
+ getName = request => this.client.fetch({
13442
+ method: 'GET',
13443
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13444
+ }, unmarshalName);
13445
+
13446
+ /**
13447
+ * Waits for {@link Name} to be in a final state.
13448
+ *
13449
+ * @param request - The request {@link GetNameRequest}
13450
+ * @param options - The waiting options
13451
+ * @returns A Promise of Name
13452
+ */
13453
+ waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
13454
+ deleteName = request => this.client.fetch({
13455
+ method: 'DELETE',
13456
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13457
+ });
13458
+ pageOfListNames = (request = {}) => this.client.fetch({
13459
+ method: 'GET',
13460
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`,
13461
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
13462
+ }, unmarshalListNamesResponse);
13463
+ listNames = (request = {}) => enrichForPagination('names', this.pageOfListNames, request);
13464
+ updateName = request => this.client.fetch({
13465
+ body: JSON.stringify(marshalUpdateNameRequest(request, this.client.settings)),
13466
+ headers: jsonContentHeaders$d,
13467
+ method: 'PATCH',
13468
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13469
+ }, unmarshalName);
13470
+ exportKeyName = request => this.client.fetch({
13471
+ method: 'GET',
13472
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
13473
+ }, unmarshalExportKeyNameResponse);
13474
+ importKeyName = request => this.client.fetch({
13475
+ body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
13476
+ headers: jsonContentHeaders$d,
13477
+ method: 'POST',
13478
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
13479
+ }, unmarshalName);
13378
13480
  };
13379
13481
 
13380
13482
  // This file was automatically generated. DO NOT EDIT.
@@ -13383,6 +13485,7 @@ let API$f = class API extends API$s {
13383
13485
  var index_gen$d = /*#__PURE__*/Object.freeze({
13384
13486
  __proto__: null,
13385
13487
  API: API$f,
13488
+ NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
13386
13489
  PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
13387
13490
  });
13388
13491
 
@@ -13918,6 +14021,9 @@ let API$e = class API extends API$s {
13918
14021
 
13919
14022
  /**
13920
14023
  * Change the Cluster type. Change the type of a specific Kubernetes cluster.
14024
+ * To see the possible values you can enter for the `type` field, [list
14025
+ * available cluster
14026
+ * types](#path-clusters-list-available-cluster-types-for-a-cluster).
13921
14027
  *
13922
14028
  * @param request - The request {@link SetClusterTypeRequest}
13923
14029
  * @returns A Promise of Cluster
@@ -20495,7 +20601,8 @@ let API$6 = class API extends API$s {
20495
20601
  *
20496
20602
  * GetSecretByName usage is now deprecated.
20497
20603
  *
20498
- * Scaleway recommends you to use ListSecrets with the `name` filter.
20604
+ * Scaleway recommends that you use the `ListSecrets` request with the `name`
20605
+ * filter.
20499
20606
  *
20500
20607
  * @deprecated
20501
20608
  * @param request - The request {@link GetSecretByNameRequest}
@@ -20562,7 +20669,7 @@ let API$6 = class API extends API$s {
20562
20669
  });
20563
20670
 
20564
20671
  /**
20565
- * Delete a given folder specified by the and `folder_id` parameter.
20672
+ * Delete a given folder specified by the `region` and `folder_id` parameters.
20566
20673
  *
20567
20674
  * @param request - The request {@link DeleteFolderRequest}
20568
20675
  */
@@ -22132,6 +22239,9 @@ const marshalCreateDHCPRequest = (request, defaults) => ({
22132
22239
  subnet: request.subnet,
22133
22240
  valid_lifetime: request.validLifetime
22134
22241
  });
22242
+ const marshalIpamConfig = (request, defaults) => ({
22243
+ push_default_route: request.pushDefaultRoute
22244
+ });
22135
22245
  const marshalSetDHCPEntriesRequestEntry = (request, defaults) => ({
22136
22246
  ip_address: request.ipAddress,
22137
22247
  mac_address: request.macAddress
@@ -22161,6 +22271,9 @@ const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
22161
22271
  }, {
22162
22272
  param: 'address',
22163
22273
  value: request.address
22274
+ }, {
22275
+ param: 'ipam_config',
22276
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
22164
22277
  }])
22165
22278
  });
22166
22279
  const marshalCreateGatewayRequest = (request, defaults) => ({
@@ -22220,6 +22333,9 @@ const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
22220
22333
  }, {
22221
22334
  param: 'address',
22222
22335
  value: request.address
22336
+ }, {
22337
+ param: 'ipam_config',
22338
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
22223
22339
  }])
22224
22340
  });
22225
22341
  const marshalUpdateGatewayRequest = (request, defaults) => ({
package/dist/index.d.ts CHANGED
@@ -9424,7 +9424,7 @@ type SecurityGroupRuleAction = 'accept' | 'drop';
9424
9424
  type SecurityGroupRuleDirection = 'inbound' | 'outbound';
9425
9425
  type SecurityGroupRuleProtocol = 'TCP' | 'UDP' | 'ICMP' | 'ANY';
9426
9426
  type SecurityGroupState = 'available' | 'syncing' | 'syncing_error';
9427
- type ServerAction = 'poweron' | 'backup' | 'stop_in_place' | 'poweroff' | 'terminate' | 'reboot';
9427
+ type ServerAction = 'poweron' | 'backup' | 'stop_in_place' | 'poweroff' | 'terminate' | 'reboot' | 'enable_routed_ip';
9428
9428
  type ServerIpIpFamily = 'inet' | 'inet6';
9429
9429
  type ServerIpProvisioningMode = 'manual' | 'dhcp' | 'slaac';
9430
9430
  type ServerState = 'running' | 'stopped' | 'stopped in place' | 'starting' | 'stopping' | 'locked';
@@ -9435,7 +9435,7 @@ type TaskStatus = 'pending' | 'started' | 'success' | 'failure' | 'retry';
9435
9435
  type VolumeServerState = 'available' | 'snapshotting' | 'error' | 'fetching' | 'resizing' | 'saving' | 'hotsyncing';
9436
9436
  type VolumeServerVolumeType = 'l_ssd' | 'b_ssd';
9437
9437
  type VolumeState = 'available' | 'snapshotting' | 'error' | 'fetching' | 'resizing' | 'saving' | 'hotsyncing';
9438
- type VolumeVolumeType = 'l_ssd' | 'b_ssd' | 'unified';
9438
+ type VolumeVolumeType = 'l_ssd' | 'b_ssd' | 'unified' | 'scratch';
9439
9439
  /** Bootscript. */
9440
9440
  interface Bootscript {
9441
9441
  /** Bootscript arguments. */
@@ -9941,6 +9941,8 @@ interface ServerType {
9941
9941
  network?: ServerTypeNetwork;
9942
9942
  /** Capabilities. */
9943
9943
  capabilities?: ServerTypeCapabilities;
9944
+ /** Maximum available scratch storage. */
9945
+ scratchStorageMaxSize?: number;
9944
9946
  }
9945
9947
  /** Server type. capabilities. */
9946
9948
  interface ServerTypeCapabilities {
@@ -13441,10 +13443,24 @@ declare namespace index$g {
13441
13443
  export { index_gen$e as v1 };
13442
13444
  }
13443
13445
 
13446
+ type ListNamesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
13444
13447
  type ListPinsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
13445
13448
  type ListVolumesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
13449
+ type NameStatus = 'unknown_status' | 'queued' | 'publishing' | 'failed' | 'published';
13446
13450
  type PinDetails = 'unknown_details' | 'pinning_looking_for_provider' | 'pinning_in_progress' | 'pinning_blocks_fetched' | 'pinning_fetching_url_data' | 'pinned_ok' | 'unpinned_ok' | 'unpinning_in_progress' | 'failed_contains_banned_cid' | 'failed_pinning' | 'failed_pinning_no_provider' | 'failed_pinning_bad_cid_format' | 'failed_pinning_timeout' | 'failed_pinning_too_big_content' | 'failed_pinning_unreachable_url' | 'failed_pinning_bad_url_format' | 'failed_pinning_no_url_content_length' | 'failed_pinning_bad_url_status_code' | 'failed_unpinning' | 'checking_coherence' | 'rescheduled';
13447
13451
  type PinStatus = 'unknown_status' | 'queued' | 'pinning' | 'failed' | 'pinned';
13452
+ interface ExportKeyNameResponse {
13453
+ nameId: string;
13454
+ projectId: string;
13455
+ createdAt?: Date;
13456
+ updatedAt?: Date;
13457
+ publicKey: string;
13458
+ privateKey: string;
13459
+ }
13460
+ interface ListNamesResponse {
13461
+ names: Name[];
13462
+ totalCount: number;
13463
+ }
13448
13464
  interface ListPinsResponse {
13449
13465
  totalCount: number;
13450
13466
  pins: Pin[];
@@ -13453,6 +13469,17 @@ interface ListVolumesResponse {
13453
13469
  volumes: Volume$1[];
13454
13470
  totalCount: number;
13455
13471
  }
13472
+ interface Name {
13473
+ nameId: string;
13474
+ projectId: string;
13475
+ createdAt?: Date;
13476
+ updatedAt?: Date;
13477
+ tags: string[];
13478
+ name: string;
13479
+ key: string;
13480
+ cid: string;
13481
+ status: NameStatus;
13482
+ }
13456
13483
  interface Pin {
13457
13484
  pinId: string;
13458
13485
  status: PinStatus;
@@ -13609,6 +13636,73 @@ type DeletePinRequest = {
13609
13636
  pinId: string;
13610
13637
  volumeId: string;
13611
13638
  };
13639
+ type CreateNameRequest = {
13640
+ /**
13641
+ * Region to target. If none is passed will use default region from the
13642
+ * config.
13643
+ */
13644
+ region?: Region;
13645
+ projectId?: string;
13646
+ name: string;
13647
+ cid: string;
13648
+ };
13649
+ type GetNameRequest = {
13650
+ /**
13651
+ * Region to target. If none is passed will use default region from the
13652
+ * config.
13653
+ */
13654
+ region?: Region;
13655
+ nameId: string;
13656
+ };
13657
+ type DeleteNameRequest = {
13658
+ /**
13659
+ * Region to target. If none is passed will use default region from the
13660
+ * config.
13661
+ */
13662
+ region?: Region;
13663
+ nameId: string;
13664
+ };
13665
+ type ListNamesRequest = {
13666
+ /**
13667
+ * Region to target. If none is passed will use default region from the
13668
+ * config.
13669
+ */
13670
+ region?: Region;
13671
+ page?: number;
13672
+ pageSize?: number;
13673
+ orderBy?: ListNamesRequestOrderBy;
13674
+ projectId?: string;
13675
+ organizationId?: string;
13676
+ };
13677
+ type UpdateNameRequest = {
13678
+ /**
13679
+ * Region to target. If none is passed will use default region from the
13680
+ * config.
13681
+ */
13682
+ region?: Region;
13683
+ nameId: string;
13684
+ name?: string;
13685
+ tags?: string[];
13686
+ cid?: string;
13687
+ };
13688
+ type ExportKeyNameRequest = {
13689
+ /**
13690
+ * Region to target. If none is passed will use default region from the
13691
+ * config.
13692
+ */
13693
+ region?: Region;
13694
+ nameId: string;
13695
+ };
13696
+ type ImportKeyNameRequest = {
13697
+ /**
13698
+ * Region to target. If none is passed will use default region from the
13699
+ * config.
13700
+ */
13701
+ region?: Region;
13702
+ projectId?: string;
13703
+ name: string;
13704
+ privateKey: string;
13705
+ };
13612
13706
 
13613
13707
  /** IPFS Pinning service API. */
13614
13708
  declare class API$f extends API$s {
@@ -13723,24 +13817,57 @@ declare class API$f extends API$s {
13723
13817
  * @param request - The request {@link DeletePinRequest}
13724
13818
  */
13725
13819
  deletePin: (request: Readonly<DeletePinRequest>) => Promise<void>;
13820
+ createName: (request: Readonly<CreateNameRequest>) => Promise<Name>;
13821
+ getName: (request: Readonly<GetNameRequest>) => Promise<Name>;
13822
+ /**
13823
+ * Waits for {@link Name} to be in a final state.
13824
+ *
13825
+ * @param request - The request {@link GetNameRequest}
13826
+ * @param options - The waiting options
13827
+ * @returns A Promise of Name
13828
+ */
13829
+ waitForName: (request: Readonly<GetNameRequest>, options?: Readonly<WaitForOptions<Name>>) => Promise<Name>;
13830
+ deleteName: (request: Readonly<DeleteNameRequest>) => Promise<void>;
13831
+ protected pageOfListNames: (request?: Readonly<ListNamesRequest>) => Promise<ListNamesResponse>;
13832
+ listNames: (request?: Readonly<ListNamesRequest>) => Promise<ListNamesResponse> & {
13833
+ all: () => Promise<Name[]>;
13834
+ [Symbol.asyncIterator]: () => AsyncGenerator<Name[], void, void>;
13835
+ };
13836
+ updateName: (request: Readonly<UpdateNameRequest>) => Promise<Name>;
13837
+ exportKeyName: (request: Readonly<ExportKeyNameRequest>) => Promise<ExportKeyNameResponse>;
13838
+ importKeyName: (request: Readonly<ImportKeyNameRequest>) => Promise<Name>;
13726
13839
  }
13727
13840
 
13841
+ /** Lists transient statutes of the enum {@link NameStatus}. */
13842
+ declare const NAME_TRANSIENT_STATUSES: NameStatus[];
13728
13843
  /** Lists transient statutes of the enum {@link PinStatus}. */
13729
13844
  declare const PIN_TRANSIENT_STATUSES: PinStatus[];
13730
13845
 
13846
+ type index_gen$d_CreateNameRequest = CreateNameRequest;
13731
13847
  type index_gen$d_CreatePinByCIDRequest = CreatePinByCIDRequest;
13732
13848
  type index_gen$d_CreatePinByURLRequest = CreatePinByURLRequest;
13733
13849
  type index_gen$d_CreateVolumeRequest = CreateVolumeRequest;
13850
+ type index_gen$d_DeleteNameRequest = DeleteNameRequest;
13734
13851
  type index_gen$d_DeletePinRequest = DeletePinRequest;
13735
13852
  type index_gen$d_DeleteVolumeRequest = DeleteVolumeRequest;
13853
+ type index_gen$d_ExportKeyNameRequest = ExportKeyNameRequest;
13854
+ type index_gen$d_ExportKeyNameResponse = ExportKeyNameResponse;
13855
+ type index_gen$d_GetNameRequest = GetNameRequest;
13736
13856
  type index_gen$d_GetPinRequest = GetPinRequest;
13737
13857
  type index_gen$d_GetVolumeRequest = GetVolumeRequest;
13858
+ type index_gen$d_ImportKeyNameRequest = ImportKeyNameRequest;
13859
+ type index_gen$d_ListNamesRequest = ListNamesRequest;
13860
+ type index_gen$d_ListNamesRequestOrderBy = ListNamesRequestOrderBy;
13861
+ type index_gen$d_ListNamesResponse = ListNamesResponse;
13738
13862
  type index_gen$d_ListPinsRequest = ListPinsRequest;
13739
13863
  type index_gen$d_ListPinsRequestOrderBy = ListPinsRequestOrderBy;
13740
13864
  type index_gen$d_ListPinsResponse = ListPinsResponse;
13741
13865
  type index_gen$d_ListVolumesRequest = ListVolumesRequest;
13742
13866
  type index_gen$d_ListVolumesRequestOrderBy = ListVolumesRequestOrderBy;
13743
13867
  type index_gen$d_ListVolumesResponse = ListVolumesResponse;
13868
+ declare const index_gen$d_NAME_TRANSIENT_STATUSES: typeof NAME_TRANSIENT_STATUSES;
13869
+ type index_gen$d_Name = Name;
13870
+ type index_gen$d_NameStatus = NameStatus;
13744
13871
  declare const index_gen$d_PIN_TRANSIENT_STATUSES: typeof PIN_TRANSIENT_STATUSES;
13745
13872
  type index_gen$d_Pin = Pin;
13746
13873
  type index_gen$d_PinCID = PinCID;
@@ -13751,9 +13878,10 @@ type index_gen$d_PinOptions = PinOptions;
13751
13878
  type index_gen$d_PinStatus = PinStatus;
13752
13879
  type index_gen$d_ReplacePinRequest = ReplacePinRequest;
13753
13880
  type index_gen$d_ReplacePinResponse = ReplacePinResponse;
13881
+ type index_gen$d_UpdateNameRequest = UpdateNameRequest;
13754
13882
  type index_gen$d_UpdateVolumeRequest = UpdateVolumeRequest;
13755
13883
  declare namespace index_gen$d {
13756
- export { API$f as API, type index_gen$d_CreatePinByCIDRequest as CreatePinByCIDRequest, type index_gen$d_CreatePinByURLRequest as CreatePinByURLRequest, type index_gen$d_CreateVolumeRequest as CreateVolumeRequest, type index_gen$d_DeletePinRequest as DeletePinRequest, type index_gen$d_DeleteVolumeRequest as DeleteVolumeRequest, type index_gen$d_GetPinRequest as GetPinRequest, type index_gen$d_GetVolumeRequest as GetVolumeRequest, type index_gen$d_ListPinsRequest as ListPinsRequest, type index_gen$d_ListPinsRequestOrderBy as ListPinsRequestOrderBy, type index_gen$d_ListPinsResponse as ListPinsResponse, type index_gen$d_ListVolumesRequest as ListVolumesRequest, type index_gen$d_ListVolumesRequestOrderBy as ListVolumesRequestOrderBy, type index_gen$d_ListVolumesResponse as ListVolumesResponse, index_gen$d_PIN_TRANSIENT_STATUSES as PIN_TRANSIENT_STATUSES, type index_gen$d_Pin as Pin, type index_gen$d_PinCID as PinCID, type index_gen$d_PinCIDMeta as PinCIDMeta, type index_gen$d_PinDetails as PinDetails, type index_gen$d_PinInfo as PinInfo, type index_gen$d_PinOptions as PinOptions, type index_gen$d_PinStatus as PinStatus, type index_gen$d_ReplacePinRequest as ReplacePinRequest, type index_gen$d_ReplacePinResponse as ReplacePinResponse, type index_gen$d_UpdateVolumeRequest as UpdateVolumeRequest, type Volume$1 as Volume };
13884
+ export { API$f as API, type index_gen$d_CreateNameRequest as CreateNameRequest, type index_gen$d_CreatePinByCIDRequest as CreatePinByCIDRequest, type index_gen$d_CreatePinByURLRequest as CreatePinByURLRequest, type index_gen$d_CreateVolumeRequest as CreateVolumeRequest, type index_gen$d_DeleteNameRequest as DeleteNameRequest, type index_gen$d_DeletePinRequest as DeletePinRequest, type index_gen$d_DeleteVolumeRequest as DeleteVolumeRequest, type index_gen$d_ExportKeyNameRequest as ExportKeyNameRequest, type index_gen$d_ExportKeyNameResponse as ExportKeyNameResponse, type index_gen$d_GetNameRequest as GetNameRequest, type index_gen$d_GetPinRequest as GetPinRequest, type index_gen$d_GetVolumeRequest as GetVolumeRequest, type index_gen$d_ImportKeyNameRequest as ImportKeyNameRequest, type index_gen$d_ListNamesRequest as ListNamesRequest, type index_gen$d_ListNamesRequestOrderBy as ListNamesRequestOrderBy, type index_gen$d_ListNamesResponse as ListNamesResponse, type index_gen$d_ListPinsRequest as ListPinsRequest, type index_gen$d_ListPinsRequestOrderBy as ListPinsRequestOrderBy, type index_gen$d_ListPinsResponse as ListPinsResponse, type index_gen$d_ListVolumesRequest as ListVolumesRequest, type index_gen$d_ListVolumesRequestOrderBy as ListVolumesRequestOrderBy, type index_gen$d_ListVolumesResponse as ListVolumesResponse, index_gen$d_NAME_TRANSIENT_STATUSES as NAME_TRANSIENT_STATUSES, type index_gen$d_Name as Name, type index_gen$d_NameStatus as NameStatus, index_gen$d_PIN_TRANSIENT_STATUSES as PIN_TRANSIENT_STATUSES, type index_gen$d_Pin as Pin, type index_gen$d_PinCID as PinCID, type index_gen$d_PinCIDMeta as PinCIDMeta, type index_gen$d_PinDetails as PinDetails, type index_gen$d_PinInfo as PinInfo, type index_gen$d_PinOptions as PinOptions, type index_gen$d_PinStatus as PinStatus, type index_gen$d_ReplacePinRequest as ReplacePinRequest, type index_gen$d_ReplacePinResponse as ReplacePinResponse, type index_gen$d_UpdateNameRequest as UpdateNameRequest, type index_gen$d_UpdateVolumeRequest as UpdateVolumeRequest, type Volume$1 as Volume };
13757
13885
  }
13758
13886
 
13759
13887
  declare namespace index$f {
@@ -14941,6 +15069,9 @@ declare class API$e extends API$s {
14941
15069
  upgradeCluster: (request: Readonly<UpgradeClusterRequest>) => Promise<Cluster$1>;
14942
15070
  /**
14943
15071
  * Change the Cluster type. Change the type of a specific Kubernetes cluster.
15072
+ * To see the possible values you can enter for the `type` field, [list
15073
+ * available cluster
15074
+ * types](#path-clusters-list-available-cluster-types-for-a-cluster).
14944
15075
  *
14945
15076
  * @param request - The request {@link SetClusterTypeRequest}
14946
15077
  * @returns A Promise of Cluster
@@ -24101,7 +24232,8 @@ declare class API$6 extends API$s {
24101
24232
  *
24102
24233
  * GetSecretByName usage is now deprecated.
24103
24234
  *
24104
- * Scaleway recommends you to use ListSecrets with the `name` filter.
24235
+ * Scaleway recommends that you use the `ListSecrets` request with the `name`
24236
+ * filter.
24105
24237
  *
24106
24238
  * @deprecated
24107
24239
  * @param request - The request {@link GetSecretByNameRequest}
@@ -24149,7 +24281,7 @@ declare class API$6 extends API$s {
24149
24281
  */
24150
24282
  deleteSecret: (request: Readonly<DeleteSecretRequest>) => Promise<void>;
24151
24283
  /**
24152
- * Delete a given folder specified by the and `folder_id` parameter.
24284
+ * Delete a given folder specified by the `region` and `folder_id` parameters.
24153
24285
  *
24154
24286
  * @param request - The request {@link DeleteFolderRequest}
24155
24287
  */
@@ -25939,6 +26071,11 @@ interface IP {
25939
26071
  /** Zone of the IP address. */
25940
26072
  zone: Zone;
25941
26073
  }
26074
+ /** Ipam config. */
26075
+ interface IpamConfig {
26076
+ /** Defines whether the default route is enabled on that Gateway Network. */
26077
+ pushDefaultRoute: boolean;
26078
+ }
25942
26079
  /** List dhcp entries response. */
25943
26080
  interface ListDHCPEntriesResponse {
25944
26081
  /** DHCP entries in this page. */
@@ -26176,33 +26313,44 @@ type CreateGatewayNetworkRequest = {
26176
26313
  privateNetworkId: string;
26177
26314
  /** Defines whether to enable masquerade (dynamic NAT) on this network. */
26178
26315
  enableMasquerade: boolean;
26316
+ /**
26317
+ * Defines whether to enable DHCP on this Private Network. Defaults to `true`
26318
+ * if either `dhcp_id` or `dhcp` are present. If set to `true`, either
26319
+ * `dhcp_id` or `dhcp` must be present.
26320
+ */
26321
+ enableDhcp?: boolean;
26179
26322
  /**
26180
26323
  * ID of an existing DHCP configuration object to use for this GatewayNetwork.
26181
26324
  *
26182
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26183
- * set.
26325
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26326
+ * 'ipamConfig' could be set.
26184
26327
  */
26185
26328
  dhcpId?: string;
26186
26329
  /**
26187
26330
  * New DHCP configuration object to use for this GatewayNetwork.
26188
26331
  *
26189
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26190
- * set.
26332
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26333
+ * 'ipamConfig' could be set.
26191
26334
  */
26192
26335
  dhcp?: CreateDHCPRequest;
26193
26336
  /**
26194
26337
  * Static IP address in CIDR format to to use without DHCP.
26195
26338
  *
26196
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26197
- * set.
26339
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26340
+ * 'ipamConfig' could be set.
26198
26341
  */
26199
26342
  address?: string;
26200
26343
  /**
26201
- * Defines whether to enable DHCP on this Private Network. Defaults to `true`
26202
- * if either `dhcp_id` or `dhcp` are present. If set to `true`, either
26203
- * `dhcp_id` or `dhcp` must be present.
26344
+ * Auto-configure the GatewayNetwork using Scaleway's IPAM (IP address
26345
+ * management service). Note: all or none of the GatewayNetworks for a single
26346
+ * gateway can use the IPAM. DHCP and IPAM configurations cannot be mixed.
26347
+ * Some products may require that the Public Gateway uses the IPAM, to ensure
26348
+ * correct functionality.
26349
+ *
26350
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26351
+ * 'ipamConfig' could be set.
26204
26352
  */
26205
- enableDhcp?: boolean;
26353
+ ipamConfig?: IpamConfig;
26206
26354
  };
26207
26355
  type UpdateGatewayNetworkRequest = {
26208
26356
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -26211,20 +26359,29 @@ type UpdateGatewayNetworkRequest = {
26211
26359
  gatewayNetworkId: string;
26212
26360
  /** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
26213
26361
  enableMasquerade?: boolean;
26362
+ /** Defines whether to enable DHCP on the connected Private Network. */
26363
+ enableDhcp?: boolean;
26214
26364
  /**
26215
26365
  * ID of the new DHCP configuration object to use with this GatewayNetwork.
26216
26366
  *
26217
- * One-of ('ipConfig'): at most one of 'dhcpId', 'address' could be set.
26367
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
26368
+ * be set.
26218
26369
  */
26219
26370
  dhcpId?: string;
26220
- /** Defines whether to enable DHCP on the connected Private Network. */
26221
- enableDhcp?: boolean;
26222
26371
  /**
26223
26372
  * New static IP address.
26224
26373
  *
26225
- * One-of ('ipConfig'): at most one of 'dhcpId', 'address' could be set.
26374
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
26375
+ * be set.
26226
26376
  */
26227
26377
  address?: string;
26378
+ /**
26379
+ * New IPAM configuration to use for this GatewayNetwork.
26380
+ *
26381
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
26382
+ * be set.
26383
+ */
26384
+ ipamConfig?: IpamConfig;
26228
26385
  };
26229
26386
  type DeleteGatewayNetworkRequest = {
26230
26387
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -26997,6 +27154,7 @@ type index_gen$1_GetGatewayRequest = GetGatewayRequest;
26997
27154
  type index_gen$1_GetIPRequest = GetIPRequest;
26998
27155
  type index_gen$1_GetPATRuleRequest = GetPATRuleRequest;
26999
27156
  type index_gen$1_IP = IP;
27157
+ type index_gen$1_IpamConfig = IpamConfig;
27000
27158
  type index_gen$1_ListDHCPEntriesRequest = ListDHCPEntriesRequest;
27001
27159
  type index_gen$1_ListDHCPEntriesRequestOrderBy = ListDHCPEntriesRequestOrderBy;
27002
27160
  type index_gen$1_ListDHCPEntriesResponse = ListDHCPEntriesResponse;
@@ -27034,7 +27192,7 @@ type index_gen$1_UpdateIPRequest = UpdateIPRequest;
27034
27192
  type index_gen$1_UpdatePATRuleRequest = UpdatePATRuleRequest;
27035
27193
  type index_gen$1_UpgradeGatewayRequest = UpgradeGatewayRequest;
27036
27194
  declare namespace index_gen$1 {
27037
- export { API$1 as API, type index_gen$1_CreateDHCPEntryRequest as CreateDHCPEntryRequest, type index_gen$1_CreateDHCPRequest as CreateDHCPRequest, type index_gen$1_CreateGatewayNetworkRequest as CreateGatewayNetworkRequest, type index_gen$1_CreateGatewayRequest as CreateGatewayRequest, type index_gen$1_CreateIPRequest as CreateIPRequest, type index_gen$1_CreatePATRuleRequest as CreatePATRuleRequest, type index_gen$1_DHCP as DHCP, type index_gen$1_DHCPEntry as DHCPEntry, type index_gen$1_DHCPEntryType as DHCPEntryType, type index_gen$1_DeleteDHCPEntryRequest as DeleteDHCPEntryRequest, type index_gen$1_DeleteDHCPRequest as DeleteDHCPRequest, type index_gen$1_DeleteGatewayNetworkRequest as DeleteGatewayNetworkRequest, type index_gen$1_DeleteGatewayRequest as DeleteGatewayRequest, type index_gen$1_DeleteIPRequest as DeleteIPRequest, type index_gen$1_DeletePATRuleRequest as DeletePATRuleRequest, index_gen$1_GATEWAY_NETWORK_TRANSIENT_STATUSES as GATEWAY_NETWORK_TRANSIENT_STATUSES, index_gen$1_GATEWAY_TRANSIENT_STATUSES as GATEWAY_TRANSIENT_STATUSES, type index_gen$1_Gateway as Gateway, type index_gen$1_GatewayNetwork as GatewayNetwork, type index_gen$1_GatewayNetworkStatus as GatewayNetworkStatus, type index_gen$1_GatewayStatus as GatewayStatus, type index_gen$1_GatewayType as GatewayType, type index_gen$1_GetDHCPEntryRequest as GetDHCPEntryRequest, type index_gen$1_GetDHCPRequest as GetDHCPRequest, type index_gen$1_GetGatewayNetworkRequest as GetGatewayNetworkRequest, type index_gen$1_GetGatewayRequest as GetGatewayRequest, type index_gen$1_GetIPRequest as GetIPRequest, type index_gen$1_GetPATRuleRequest as GetPATRuleRequest, type index_gen$1_IP as IP, type index_gen$1_ListDHCPEntriesRequest as ListDHCPEntriesRequest, type index_gen$1_ListDHCPEntriesRequestOrderBy as ListDHCPEntriesRequestOrderBy, type index_gen$1_ListDHCPEntriesResponse as ListDHCPEntriesResponse, type index_gen$1_ListDHCPsRequest as ListDHCPsRequest, type index_gen$1_ListDHCPsRequestOrderBy as ListDHCPsRequestOrderBy, type index_gen$1_ListDHCPsResponse as ListDHCPsResponse, type index_gen$1_ListGatewayNetworksRequest as ListGatewayNetworksRequest, type index_gen$1_ListGatewayNetworksRequestOrderBy as ListGatewayNetworksRequestOrderBy, type index_gen$1_ListGatewayNetworksResponse as ListGatewayNetworksResponse, type index_gen$1_ListGatewayTypesRequest as ListGatewayTypesRequest, type index_gen$1_ListGatewayTypesResponse as ListGatewayTypesResponse, type index_gen$1_ListGatewaysRequest as ListGatewaysRequest, type index_gen$1_ListGatewaysRequestOrderBy as ListGatewaysRequestOrderBy, type index_gen$1_ListGatewaysResponse as ListGatewaysResponse, type index_gen$1_ListIPsRequest as ListIPsRequest, type index_gen$1_ListIPsRequestOrderBy as ListIPsRequestOrderBy, type index_gen$1_ListIPsResponse as ListIPsResponse, type index_gen$1_ListPATRulesRequest as ListPATRulesRequest, type index_gen$1_ListPATRulesRequestOrderBy as ListPATRulesRequestOrderBy, type index_gen$1_ListPATRulesResponse as ListPATRulesResponse, type index_gen$1_PATRule as PATRule, type index_gen$1_PATRuleProtocol as PATRuleProtocol, type index_gen$1_RefreshSSHKeysRequest as RefreshSSHKeysRequest, type index_gen$1_SetDHCPEntriesRequest as SetDHCPEntriesRequest, type index_gen$1_SetDHCPEntriesRequestEntry as SetDHCPEntriesRequestEntry, type index_gen$1_SetDHCPEntriesResponse as SetDHCPEntriesResponse, type index_gen$1_SetPATRulesRequest as SetPATRulesRequest, type index_gen$1_SetPATRulesRequestRule as SetPATRulesRequestRule, type index_gen$1_SetPATRulesResponse as SetPATRulesResponse, type index_gen$1_UpdateDHCPEntryRequest as UpdateDHCPEntryRequest, type index_gen$1_UpdateDHCPRequest as UpdateDHCPRequest, type index_gen$1_UpdateGatewayNetworkRequest as UpdateGatewayNetworkRequest, type index_gen$1_UpdateGatewayRequest as UpdateGatewayRequest, type index_gen$1_UpdateIPRequest as UpdateIPRequest, type index_gen$1_UpdatePATRuleRequest as UpdatePATRuleRequest, type index_gen$1_UpgradeGatewayRequest as UpgradeGatewayRequest };
27195
+ export { API$1 as API, type index_gen$1_CreateDHCPEntryRequest as CreateDHCPEntryRequest, type index_gen$1_CreateDHCPRequest as CreateDHCPRequest, type index_gen$1_CreateGatewayNetworkRequest as CreateGatewayNetworkRequest, type index_gen$1_CreateGatewayRequest as CreateGatewayRequest, type index_gen$1_CreateIPRequest as CreateIPRequest, type index_gen$1_CreatePATRuleRequest as CreatePATRuleRequest, type index_gen$1_DHCP as DHCP, type index_gen$1_DHCPEntry as DHCPEntry, type index_gen$1_DHCPEntryType as DHCPEntryType, type index_gen$1_DeleteDHCPEntryRequest as DeleteDHCPEntryRequest, type index_gen$1_DeleteDHCPRequest as DeleteDHCPRequest, type index_gen$1_DeleteGatewayNetworkRequest as DeleteGatewayNetworkRequest, type index_gen$1_DeleteGatewayRequest as DeleteGatewayRequest, type index_gen$1_DeleteIPRequest as DeleteIPRequest, type index_gen$1_DeletePATRuleRequest as DeletePATRuleRequest, index_gen$1_GATEWAY_NETWORK_TRANSIENT_STATUSES as GATEWAY_NETWORK_TRANSIENT_STATUSES, index_gen$1_GATEWAY_TRANSIENT_STATUSES as GATEWAY_TRANSIENT_STATUSES, type index_gen$1_Gateway as Gateway, type index_gen$1_GatewayNetwork as GatewayNetwork, type index_gen$1_GatewayNetworkStatus as GatewayNetworkStatus, type index_gen$1_GatewayStatus as GatewayStatus, type index_gen$1_GatewayType as GatewayType, type index_gen$1_GetDHCPEntryRequest as GetDHCPEntryRequest, type index_gen$1_GetDHCPRequest as GetDHCPRequest, type index_gen$1_GetGatewayNetworkRequest as GetGatewayNetworkRequest, type index_gen$1_GetGatewayRequest as GetGatewayRequest, type index_gen$1_GetIPRequest as GetIPRequest, type index_gen$1_GetPATRuleRequest as GetPATRuleRequest, type index_gen$1_IP as IP, type index_gen$1_IpamConfig as IpamConfig, type index_gen$1_ListDHCPEntriesRequest as ListDHCPEntriesRequest, type index_gen$1_ListDHCPEntriesRequestOrderBy as ListDHCPEntriesRequestOrderBy, type index_gen$1_ListDHCPEntriesResponse as ListDHCPEntriesResponse, type index_gen$1_ListDHCPsRequest as ListDHCPsRequest, type index_gen$1_ListDHCPsRequestOrderBy as ListDHCPsRequestOrderBy, type index_gen$1_ListDHCPsResponse as ListDHCPsResponse, type index_gen$1_ListGatewayNetworksRequest as ListGatewayNetworksRequest, type index_gen$1_ListGatewayNetworksRequestOrderBy as ListGatewayNetworksRequestOrderBy, type index_gen$1_ListGatewayNetworksResponse as ListGatewayNetworksResponse, type index_gen$1_ListGatewayTypesRequest as ListGatewayTypesRequest, type index_gen$1_ListGatewayTypesResponse as ListGatewayTypesResponse, type index_gen$1_ListGatewaysRequest as ListGatewaysRequest, type index_gen$1_ListGatewaysRequestOrderBy as ListGatewaysRequestOrderBy, type index_gen$1_ListGatewaysResponse as ListGatewaysResponse, type index_gen$1_ListIPsRequest as ListIPsRequest, type index_gen$1_ListIPsRequestOrderBy as ListIPsRequestOrderBy, type index_gen$1_ListIPsResponse as ListIPsResponse, type index_gen$1_ListPATRulesRequest as ListPATRulesRequest, type index_gen$1_ListPATRulesRequestOrderBy as ListPATRulesRequestOrderBy, type index_gen$1_ListPATRulesResponse as ListPATRulesResponse, type index_gen$1_PATRule as PATRule, type index_gen$1_PATRuleProtocol as PATRuleProtocol, type index_gen$1_RefreshSSHKeysRequest as RefreshSSHKeysRequest, type index_gen$1_SetDHCPEntriesRequest as SetDHCPEntriesRequest, type index_gen$1_SetDHCPEntriesRequestEntry as SetDHCPEntriesRequestEntry, type index_gen$1_SetDHCPEntriesResponse as SetDHCPEntriesResponse, type index_gen$1_SetPATRulesRequest as SetPATRulesRequest, type index_gen$1_SetPATRulesRequestRule as SetPATRulesRequestRule, type index_gen$1_SetPATRulesResponse as SetPATRulesResponse, type index_gen$1_UpdateDHCPEntryRequest as UpdateDHCPEntryRequest, type index_gen$1_UpdateDHCPRequest as UpdateDHCPRequest, type index_gen$1_UpdateGatewayNetworkRequest as UpdateGatewayNetworkRequest, type index_gen$1_UpdateGatewayRequest as UpdateGatewayRequest, type index_gen$1_UpdateIPRequest as UpdateIPRequest, type index_gen$1_UpdatePATRuleRequest as UpdatePATRuleRequest, type index_gen$1_UpgradeGatewayRequest as UpgradeGatewayRequest };
27038
27196
  }
27039
27197
 
27040
27198
  declare namespace index$1 {
@@ -1,4 +1,4 @@
1
- const version = 'v1.25.0';
1
+ const version = 'v1.27.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "1.26.0",
3
+ "version": "1.28.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": "036079daf9b5b43f5e84e6679c3762b75b2e0d16"
38
+ "gitHead": "7205006ea5a61adb8aa7690754ada4b861a8191a"
39
39
  }