@scaleway/sdk 1.27.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.
@@ -3,7 +3,7 @@ import { API as API$1 } from '../../../scw/api.js';
3
3
  import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
4
4
  import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
5
5
  import { 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 } from './marshalling.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.
@@ -243,6 +243,16 @@ class API extends API$1 {
243
243
  method: 'PATCH',
244
244
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
245
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);
246
256
  }
247
257
 
248
258
  export { API };
@@ -79,6 +79,19 @@ const unmarshalVolume = data => {
79
79
  updatedAt: unmarshalDate(data.updated_at)
80
80
  };
81
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
+ };
82
95
  const unmarshalListNamesResponse = data => {
83
96
  if (!isJSONObject(data)) {
84
97
  throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
@@ -140,6 +153,11 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
140
153
  name: request.name,
141
154
  project_id: request.projectId ?? defaults.defaultProjectId
142
155
  });
156
+ const marshalImportKeyNameRequest = (request, defaults) => ({
157
+ name: request.name,
158
+ private_key: request.privateKey,
159
+ project_id: request.projectId ?? defaults.defaultProjectId
160
+ });
143
161
  const marshalReplacePinRequest = (request, defaults) => ({
144
162
  cid: request.cid,
145
163
  name: request.name,
@@ -157,4 +175,4 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
157
175
  tags: request.tags
158
176
  });
159
177
 
160
- export { marshalCreateNameRequest, marshalCreatePinByCIDRequest, marshalCreatePinByURLRequest, marshalCreateVolumeRequest, marshalReplacePinRequest, marshalUpdateNameRequest, marshalUpdateVolumeRequest, unmarshalListNamesResponse, unmarshalListPinsResponse, unmarshalListVolumesResponse, unmarshalName, unmarshalPin, unmarshalReplacePinResponse, unmarshalVolume };
178
+ export { marshalCreateNameRequest, marshalCreatePinByCIDRequest, marshalCreatePinByURLRequest, marshalCreateVolumeRequest, marshalImportKeyNameRequest, marshalReplacePinRequest, marshalUpdateNameRequest, marshalUpdateVolumeRequest, unmarshalExportKeyNameResponse, unmarshalListNamesResponse, unmarshalListPinsResponse, unmarshalListVolumesResponse, unmarshalName, unmarshalPin, unmarshalReplacePinResponse, unmarshalVolume };
@@ -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.26.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';
@@ -13165,6 +13165,19 @@ const unmarshalVolume$1 = data => {
13165
13165
  updatedAt: unmarshalDate(data.updated_at)
13166
13166
  };
13167
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
+ };
13168
13181
  const unmarshalListNamesResponse = data => {
13169
13182
  if (!isJSONObject(data)) {
13170
13183
  throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
@@ -13226,6 +13239,11 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
13226
13239
  name: request.name,
13227
13240
  project_id: request.projectId ?? defaults.defaultProjectId
13228
13241
  });
13242
+ const marshalImportKeyNameRequest = (request, defaults) => ({
13243
+ name: request.name,
13244
+ private_key: request.privateKey,
13245
+ project_id: request.projectId ?? defaults.defaultProjectId
13246
+ });
13229
13247
  const marshalReplacePinRequest = (request, defaults) => ({
13230
13248
  cid: request.cid,
13231
13249
  name: request.name,
@@ -13449,6 +13467,16 @@ let API$f = class API extends API$s {
13449
13467
  method: 'PATCH',
13450
13468
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13451
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);
13452
13480
  };
13453
13481
 
13454
13482
  // This file was automatically generated. DO NOT EDIT.
@@ -22211,6 +22239,9 @@ const marshalCreateDHCPRequest = (request, defaults) => ({
22211
22239
  subnet: request.subnet,
22212
22240
  valid_lifetime: request.validLifetime
22213
22241
  });
22242
+ const marshalIpamConfig = (request, defaults) => ({
22243
+ push_default_route: request.pushDefaultRoute
22244
+ });
22214
22245
  const marshalSetDHCPEntriesRequestEntry = (request, defaults) => ({
22215
22246
  ip_address: request.ipAddress,
22216
22247
  mac_address: request.macAddress
@@ -22240,6 +22271,9 @@ const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
22240
22271
  }, {
22241
22272
  param: 'address',
22242
22273
  value: request.address
22274
+ }, {
22275
+ param: 'ipam_config',
22276
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
22243
22277
  }])
22244
22278
  });
22245
22279
  const marshalCreateGatewayRequest = (request, defaults) => ({
@@ -22299,6 +22333,9 @@ const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
22299
22333
  }, {
22300
22334
  param: 'address',
22301
22335
  value: request.address
22336
+ }, {
22337
+ param: 'ipam_config',
22338
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
22302
22339
  }])
22303
22340
  });
22304
22341
  const marshalUpdateGatewayRequest = (request, defaults) => ({
package/dist/index.d.ts CHANGED
@@ -13449,6 +13449,14 @@ type ListVolumesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
13449
13449
  type NameStatus = 'unknown_status' | 'queued' | 'publishing' | 'failed' | 'published';
13450
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';
13451
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
+ }
13452
13460
  interface ListNamesResponse {
13453
13461
  names: Name[];
13454
13462
  totalCount: number;
@@ -13677,6 +13685,24 @@ type UpdateNameRequest = {
13677
13685
  tags?: string[];
13678
13686
  cid?: string;
13679
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
+ };
13680
13706
 
13681
13707
  /** IPFS Pinning service API. */
13682
13708
  declare class API$f extends API$s {
@@ -13808,6 +13834,8 @@ declare class API$f extends API$s {
13808
13834
  [Symbol.asyncIterator]: () => AsyncGenerator<Name[], void, void>;
13809
13835
  };
13810
13836
  updateName: (request: Readonly<UpdateNameRequest>) => Promise<Name>;
13837
+ exportKeyName: (request: Readonly<ExportKeyNameRequest>) => Promise<ExportKeyNameResponse>;
13838
+ importKeyName: (request: Readonly<ImportKeyNameRequest>) => Promise<Name>;
13811
13839
  }
13812
13840
 
13813
13841
  /** Lists transient statutes of the enum {@link NameStatus}. */
@@ -13822,9 +13850,12 @@ type index_gen$d_CreateVolumeRequest = CreateVolumeRequest;
13822
13850
  type index_gen$d_DeleteNameRequest = DeleteNameRequest;
13823
13851
  type index_gen$d_DeletePinRequest = DeletePinRequest;
13824
13852
  type index_gen$d_DeleteVolumeRequest = DeleteVolumeRequest;
13853
+ type index_gen$d_ExportKeyNameRequest = ExportKeyNameRequest;
13854
+ type index_gen$d_ExportKeyNameResponse = ExportKeyNameResponse;
13825
13855
  type index_gen$d_GetNameRequest = GetNameRequest;
13826
13856
  type index_gen$d_GetPinRequest = GetPinRequest;
13827
13857
  type index_gen$d_GetVolumeRequest = GetVolumeRequest;
13858
+ type index_gen$d_ImportKeyNameRequest = ImportKeyNameRequest;
13828
13859
  type index_gen$d_ListNamesRequest = ListNamesRequest;
13829
13860
  type index_gen$d_ListNamesRequestOrderBy = ListNamesRequestOrderBy;
13830
13861
  type index_gen$d_ListNamesResponse = ListNamesResponse;
@@ -13850,7 +13881,7 @@ type index_gen$d_ReplacePinResponse = ReplacePinResponse;
13850
13881
  type index_gen$d_UpdateNameRequest = UpdateNameRequest;
13851
13882
  type index_gen$d_UpdateVolumeRequest = UpdateVolumeRequest;
13852
13883
  declare namespace index_gen$d {
13853
- 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_GetNameRequest as GetNameRequest, type index_gen$d_GetPinRequest as GetPinRequest, type index_gen$d_GetVolumeRequest as GetVolumeRequest, 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 };
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 };
13854
13885
  }
13855
13886
 
13856
13887
  declare namespace index$f {
@@ -26040,6 +26071,11 @@ interface IP {
26040
26071
  /** Zone of the IP address. */
26041
26072
  zone: Zone;
26042
26073
  }
26074
+ /** Ipam config. */
26075
+ interface IpamConfig {
26076
+ /** Defines whether the default route is enabled on that Gateway Network. */
26077
+ pushDefaultRoute: boolean;
26078
+ }
26043
26079
  /** List dhcp entries response. */
26044
26080
  interface ListDHCPEntriesResponse {
26045
26081
  /** DHCP entries in this page. */
@@ -26277,33 +26313,44 @@ type CreateGatewayNetworkRequest = {
26277
26313
  privateNetworkId: string;
26278
26314
  /** Defines whether to enable masquerade (dynamic NAT) on this network. */
26279
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;
26280
26322
  /**
26281
26323
  * ID of an existing DHCP configuration object to use for this GatewayNetwork.
26282
26324
  *
26283
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26284
- * set.
26325
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26326
+ * 'ipamConfig' could be set.
26285
26327
  */
26286
26328
  dhcpId?: string;
26287
26329
  /**
26288
26330
  * New DHCP configuration object to use for this GatewayNetwork.
26289
26331
  *
26290
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26291
- * set.
26332
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26333
+ * 'ipamConfig' could be set.
26292
26334
  */
26293
26335
  dhcp?: CreateDHCPRequest;
26294
26336
  /**
26295
26337
  * Static IP address in CIDR format to to use without DHCP.
26296
26338
  *
26297
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26298
- * set.
26339
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26340
+ * 'ipamConfig' could be set.
26299
26341
  */
26300
26342
  address?: string;
26301
26343
  /**
26302
- * Defines whether to enable DHCP on this Private Network. Defaults to `true`
26303
- * if either `dhcp_id` or `dhcp` are present. If set to `true`, either
26304
- * `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.
26305
26352
  */
26306
- enableDhcp?: boolean;
26353
+ ipamConfig?: IpamConfig;
26307
26354
  };
26308
26355
  type UpdateGatewayNetworkRequest = {
26309
26356
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -26312,20 +26359,29 @@ type UpdateGatewayNetworkRequest = {
26312
26359
  gatewayNetworkId: string;
26313
26360
  /** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
26314
26361
  enableMasquerade?: boolean;
26362
+ /** Defines whether to enable DHCP on the connected Private Network. */
26363
+ enableDhcp?: boolean;
26315
26364
  /**
26316
26365
  * ID of the new DHCP configuration object to use with this GatewayNetwork.
26317
26366
  *
26318
- * 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.
26319
26369
  */
26320
26370
  dhcpId?: string;
26321
- /** Defines whether to enable DHCP on the connected Private Network. */
26322
- enableDhcp?: boolean;
26323
26371
  /**
26324
26372
  * New static IP address.
26325
26373
  *
26326
- * 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.
26327
26376
  */
26328
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;
26329
26385
  };
26330
26386
  type DeleteGatewayNetworkRequest = {
26331
26387
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -27098,6 +27154,7 @@ type index_gen$1_GetGatewayRequest = GetGatewayRequest;
27098
27154
  type index_gen$1_GetIPRequest = GetIPRequest;
27099
27155
  type index_gen$1_GetPATRuleRequest = GetPATRuleRequest;
27100
27156
  type index_gen$1_IP = IP;
27157
+ type index_gen$1_IpamConfig = IpamConfig;
27101
27158
  type index_gen$1_ListDHCPEntriesRequest = ListDHCPEntriesRequest;
27102
27159
  type index_gen$1_ListDHCPEntriesRequestOrderBy = ListDHCPEntriesRequestOrderBy;
27103
27160
  type index_gen$1_ListDHCPEntriesResponse = ListDHCPEntriesResponse;
@@ -27135,7 +27192,7 @@ type index_gen$1_UpdateIPRequest = UpdateIPRequest;
27135
27192
  type index_gen$1_UpdatePATRuleRequest = UpdatePATRuleRequest;
27136
27193
  type index_gen$1_UpgradeGatewayRequest = UpgradeGatewayRequest;
27137
27194
  declare namespace index_gen$1 {
27138
- 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 };
27139
27196
  }
27140
27197
 
27141
27198
  declare namespace index$1 {
@@ -1,4 +1,4 @@
1
- const version = 'v1.26.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.27.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": "7ab7db70d5487dcd92cb758b90d242e0a3b25ebf"
38
+ "gitHead": "7205006ea5a61adb8aa7690754ada4b861a8191a"
39
39
  }