@scaleway/sdk 1.13.0 → 1.15.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.
Files changed (50) hide show
  1. package/dist/api/account/v2/api.gen.js +77 -60
  2. package/dist/api/applesilicon/v1alpha1/api.gen.js +175 -173
  3. package/dist/api/baremetal/v1/api.gen.js +434 -378
  4. package/dist/api/baremetal/v1/api.utils.js +19 -22
  5. package/dist/api/billing/v2alpha1/api.gen.js +21 -17
  6. package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
  7. package/dist/api/container/v1beta1/api.gen.js +384 -337
  8. package/dist/api/domain/v2beta1/api.gen.js +754 -668
  9. package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
  10. package/dist/api/function/v1beta1/api.gen.js +467 -407
  11. package/dist/api/iam/v1alpha1/api.gen.js +641 -557
  12. package/dist/api/instance/v1/api.gen.js +802 -677
  13. package/dist/api/instance/v1/api.utils.js +337 -325
  14. package/dist/api/instance/v1/marshalling.gen.js +2 -1
  15. package/dist/api/iot/v1/api.gen.js +508 -452
  16. package/dist/api/ipfs/index.js +2 -0
  17. package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
  18. package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
  19. package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
  20. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
  21. package/dist/api/k8s/v1/api.gen.js +403 -342
  22. package/dist/api/k8s/v1/api.utils.js +7 -10
  23. package/dist/api/k8s/v1/marshalling.gen.js +19 -1
  24. package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
  25. package/dist/api/lb/v1/api.gen.js +1501 -1363
  26. package/dist/api/lb/v1/api.utils.js +71 -75
  27. package/dist/api/lb/v1/marshalling.gen.js +6 -0
  28. package/dist/api/marketplace/v1/api.gen.js +35 -32
  29. package/dist/api/marketplace/v2/api.gen.js +117 -102
  30. package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
  31. package/dist/api/rdb/v1/api.gen.js +897 -819
  32. package/dist/api/redis/v1/api.gen.js +358 -333
  33. package/dist/api/registry/v1/api.gen.js +211 -189
  34. package/dist/api/secret/v1alpha1/api.gen.js +265 -245
  35. package/dist/api/secret/v1alpha1/marshalling.gen.js +1 -0
  36. package/dist/api/tem/v1alpha1/api.gen.js +183 -156
  37. package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
  38. package/dist/api/test/v1/api.gen.js +116 -104
  39. package/dist/api/vpc/v1/api.gen.js +74 -65
  40. package/dist/api/vpc/v2/api.gen.js +200 -178
  41. package/dist/api/vpc/v2/marshalling.gen.js +2 -0
  42. package/dist/api/vpcgw/v1/api.gen.js +575 -501
  43. package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
  44. package/dist/index.cjs +738 -343
  45. package/dist/index.d.ts +2067 -1592
  46. package/dist/index.js +28 -26
  47. package/dist/internal/logger/console-logger.js +4 -5
  48. package/dist/scw/constants.js +1 -1
  49. package/dist/scw/errors/scw-error.js +0 -1
  50. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v1.12.0';
500
+ const version = 'v1.14.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -1577,7 +1577,7 @@ const createAdvancedClient = (...configs) => {
1577
1577
  */
1578
1578
  const createClient = (profile = {}) => createAdvancedClient(withProfile(profile));
1579
1579
 
1580
- var index$t = /*#__PURE__*/Object.freeze({
1580
+ var index$u = /*#__PURE__*/Object.freeze({
1581
1581
  __proto__: null,
1582
1582
  AlreadyExistsError: AlreadyExistsError,
1583
1583
  DeniedAuthenticationError: DeniedAuthenticationError,
@@ -1705,7 +1705,7 @@ const waitForResource = (stop, fetcher, request, options, strategy = createExpon
1705
1705
  *
1706
1706
  * @internal
1707
1707
  */
1708
- let API$r = class API {
1708
+ let API$s = class API {
1709
1709
  constructor(client) {
1710
1710
  this.client = client;
1711
1711
  }
@@ -2067,7 +2067,7 @@ const marshalUpdateProjectRequest = (request, defaults) => ({
2067
2067
 
2068
2068
  // This file was automatically generated. DO NOT EDIT.
2069
2069
  // If you have any remark or suggestion do not hesitate to open an issue.
2070
- const jsonContentHeaders$n = {
2070
+ const jsonContentHeaders$o = {
2071
2071
  'Content-Type': 'application/json; charset=utf-8'
2072
2072
  };
2073
2073
 
@@ -2076,7 +2076,7 @@ const jsonContentHeaders$n = {
2076
2076
  *
2077
2077
  * User related data. This API allows you to manage projects.
2078
2078
  */
2079
- let API$q = class API extends API$r {
2079
+ let API$r = class API extends API$s {
2080
2080
  /**
2081
2081
  * Create a new Project for an Organization. Generate a new Project for an
2082
2082
  * Organization, specifying its configuration including name and description.
@@ -2086,7 +2086,7 @@ let API$q = class API extends API$r {
2086
2086
  */
2087
2087
  createProject = (request = {}) => this.client.fetch({
2088
2088
  body: JSON.stringify(marshalCreateProjectRequest(request, this.client.settings)),
2089
- headers: jsonContentHeaders$n,
2089
+ headers: jsonContentHeaders$o,
2090
2090
  method: 'POST',
2091
2091
  path: `/account/v2/projects`
2092
2092
  }, unmarshalProject);
@@ -2142,7 +2142,7 @@ let API$q = class API extends API$r {
2142
2142
  */
2143
2143
  updateProject = (request = {}) => this.client.fetch({
2144
2144
  body: JSON.stringify(marshalUpdateProjectRequest(request, this.client.settings)),
2145
- headers: jsonContentHeaders$n,
2145
+ headers: jsonContentHeaders$o,
2146
2146
  method: 'PATCH',
2147
2147
  path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
2148
2148
  }, unmarshalProject);
@@ -2151,14 +2151,14 @@ let API$q = class API extends API$r {
2151
2151
  // This file was automatically generated. DO NOT EDIT.
2152
2152
  // If you have any remark or suggestion do not hesitate to open an issue.
2153
2153
 
2154
- var index_gen$m = /*#__PURE__*/Object.freeze({
2154
+ var index_gen$n = /*#__PURE__*/Object.freeze({
2155
2155
  __proto__: null,
2156
- API: API$q
2156
+ API: API$r
2157
2157
  });
2158
2158
 
2159
- var index$s = /*#__PURE__*/Object.freeze({
2159
+ var index$t = /*#__PURE__*/Object.freeze({
2160
2160
  __proto__: null,
2161
- v2: index_gen$m
2161
+ v2: index_gen$n
2162
2162
  });
2163
2163
 
2164
2164
  // This file was automatically generated. DO NOT EDIT.
@@ -2277,32 +2277,12 @@ const marshalUpdateServerRequest$2 = (request, defaults) => ({
2277
2277
 
2278
2278
  // This file was automatically generated. DO NOT EDIT.
2279
2279
  // If you have any remark or suggestion do not hesitate to open an issue.
2280
- const jsonContentHeaders$m = {
2280
+ const jsonContentHeaders$n = {
2281
2281
  'Content-Type': 'application/json; charset=utf-8'
2282
2282
  };
2283
2283
 
2284
- /**
2285
- * Apple silicon API.
2286
- *
2287
- * Apple Mac mini as a service. Scaleway Apple silicon as-a-Service is built
2288
- * using the latest generation of Apple Mac mini hardware (fifth generation).
2289
- *
2290
- * These dedicated Mac mini M1s are designed for developing, building, testing,
2291
- * and signing applications for Apple devices, including iPhones, iPads, Mac
2292
- * computers and much more.
2293
- *
2294
- * Get set to explore, learn and build on a dedicated Mac mini M1 with more
2295
- * performance and speed than you ever thought possible.
2296
- *
2297
- * _Apple silicon as a Service comes with a minimum allocation period of 24
2298
- * hours_*.
2299
- *
2300
- * Mac mini and macOS are trademarks of Apple Inc., registered in the U.S. and
2301
- * other countries and regions. IOS is a trademark or registered trademark of
2302
- * Cisco in the U.S. and other countries and is used by Apple under license.
2303
- * Scaleway is not affiliated with Apple Inc.
2304
- */
2305
- let API$p = class API extends API$r {
2284
+ /** Apple silicon API. */
2285
+ let API$q = class API extends API$s {
2306
2286
  /** Lists the available zones of the API. */
2307
2287
  static LOCALITIES = ['fr-par-3'];
2308
2288
 
@@ -2340,7 +2320,7 @@ let API$p = class API extends API$r {
2340
2320
  */
2341
2321
  createServer = request => this.client.fetch({
2342
2322
  body: JSON.stringify(marshalCreateServerRequest$2(request, this.client.settings)),
2343
- headers: jsonContentHeaders$m,
2323
+ headers: jsonContentHeaders$n,
2344
2324
  method: 'POST',
2345
2325
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
2346
2326
  }, unmarshalServer$2);
@@ -2418,7 +2398,7 @@ let API$p = class API extends API$r {
2418
2398
  */
2419
2399
  updateServer = request => this.client.fetch({
2420
2400
  body: JSON.stringify(marshalUpdateServerRequest$2(request, this.client.settings)),
2421
- headers: jsonContentHeaders$m,
2401
+ headers: jsonContentHeaders$n,
2422
2402
  method: 'PATCH',
2423
2403
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
2424
2404
  }, unmarshalServer$2);
@@ -2445,7 +2425,7 @@ let API$p = class API extends API$r {
2445
2425
  */
2446
2426
  rebootServer = request => this.client.fetch({
2447
2427
  body: '{}',
2448
- headers: jsonContentHeaders$m,
2428
+ headers: jsonContentHeaders$n,
2449
2429
  method: 'POST',
2450
2430
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
2451
2431
  }, unmarshalServer$2);
@@ -2461,7 +2441,7 @@ let API$p = class API extends API$r {
2461
2441
  */
2462
2442
  reinstallServer = request => this.client.fetch({
2463
2443
  body: '{}',
2464
- headers: jsonContentHeaders$m,
2444
+ headers: jsonContentHeaders$n,
2465
2445
  method: 'POST',
2466
2446
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reinstall`
2467
2447
  }, unmarshalServer$2);
@@ -2470,15 +2450,15 @@ let API$p = class API extends API$r {
2470
2450
  // This file was automatically generated. DO NOT EDIT.
2471
2451
  // If you have any remark or suggestion do not hesitate to open an issue.
2472
2452
 
2473
- var index_gen$l = /*#__PURE__*/Object.freeze({
2453
+ var index_gen$m = /*#__PURE__*/Object.freeze({
2474
2454
  __proto__: null,
2475
- API: API$p,
2455
+ API: API$q,
2476
2456
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
2477
2457
  });
2478
2458
 
2479
- var index$r = /*#__PURE__*/Object.freeze({
2459
+ var index$s = /*#__PURE__*/Object.freeze({
2480
2460
  __proto__: null,
2481
- v1alpha1: index_gen$l
2461
+ v1alpha1: index_gen$m
2482
2462
  });
2483
2463
 
2484
2464
  // This file was automatically generated. DO NOT EDIT.
@@ -2896,7 +2876,7 @@ const marshalUpdateSettingRequest = (request, defaults) => ({
2896
2876
 
2897
2877
  // This file was automatically generated. DO NOT EDIT.
2898
2878
  // If you have any remark or suggestion do not hesitate to open an issue.
2899
- const jsonContentHeaders$l = {
2879
+ const jsonContentHeaders$m = {
2900
2880
  'Content-Type': 'application/json; charset=utf-8'
2901
2881
  };
2902
2882
 
@@ -2905,7 +2885,7 @@ const jsonContentHeaders$l = {
2905
2885
  *
2906
2886
  * This API allows to manage your Elastic Metal server. Elastic Metal API.
2907
2887
  */
2908
- let API$o = class API extends API$r {
2888
+ let API$p = class API extends API$s {
2909
2889
  /** Lists the available zones of the API. */
2910
2890
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
2911
2891
  pageOfListServers = (request = {}) => this.client.fetch({
@@ -2953,7 +2933,7 @@ let API$o = class API extends API$r {
2953
2933
  */
2954
2934
  createServer = request => this.client.fetch({
2955
2935
  body: JSON.stringify(marshalCreateServerRequest$1(request, this.client.settings)),
2956
- headers: jsonContentHeaders$l,
2936
+ headers: jsonContentHeaders$m,
2957
2937
  method: 'POST',
2958
2938
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
2959
2939
  }, unmarshalServer$1);
@@ -2968,7 +2948,7 @@ let API$o = class API extends API$r {
2968
2948
  */
2969
2949
  updateServer = request => this.client.fetch({
2970
2950
  body: JSON.stringify(marshalUpdateServerRequest$1(request, this.client.settings)),
2971
- headers: jsonContentHeaders$l,
2951
+ headers: jsonContentHeaders$m,
2972
2952
  method: 'PATCH',
2973
2953
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
2974
2954
  }, unmarshalServer$1);
@@ -2982,7 +2962,7 @@ let API$o = class API extends API$r {
2982
2962
  */
2983
2963
  installServer = request => this.client.fetch({
2984
2964
  body: JSON.stringify(marshalInstallServerRequest(request, this.client.settings)),
2985
- headers: jsonContentHeaders$l,
2965
+ headers: jsonContentHeaders$m,
2986
2966
  method: 'POST',
2987
2967
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
2988
2968
  }, unmarshalServer$1);
@@ -3020,7 +3000,7 @@ let API$o = class API extends API$r {
3020
3000
  */
3021
3001
  rebootServer = request => this.client.fetch({
3022
3002
  body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
3023
- headers: jsonContentHeaders$l,
3003
+ headers: jsonContentHeaders$m,
3024
3004
  method: 'POST',
3025
3005
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
3026
3006
  }, unmarshalServer$1);
@@ -3033,7 +3013,7 @@ let API$o = class API extends API$r {
3033
3013
  */
3034
3014
  startServer = request => this.client.fetch({
3035
3015
  body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
3036
- headers: jsonContentHeaders$l,
3016
+ headers: jsonContentHeaders$m,
3037
3017
  method: 'POST',
3038
3018
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
3039
3019
  }, unmarshalServer$1);
@@ -3048,7 +3028,7 @@ let API$o = class API extends API$r {
3048
3028
  */
3049
3029
  stopServer = request => this.client.fetch({
3050
3030
  body: '{}',
3051
- headers: jsonContentHeaders$l,
3031
+ headers: jsonContentHeaders$m,
3052
3032
  method: 'POST',
3053
3033
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/stop`
3054
3034
  }, unmarshalServer$1);
@@ -3086,7 +3066,7 @@ let API$o = class API extends API$r {
3086
3066
  */
3087
3067
  startBMCAccess = request => this.client.fetch({
3088
3068
  body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
3089
- headers: jsonContentHeaders$l,
3069
+ headers: jsonContentHeaders$m,
3090
3070
  method: 'POST',
3091
3071
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
3092
3072
  }, unmarshalBMCAccess);
@@ -3124,7 +3104,7 @@ let API$o = class API extends API$r {
3124
3104
  */
3125
3105
  updateIP = request => this.client.fetch({
3126
3106
  body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
3127
- headers: jsonContentHeaders$l,
3107
+ headers: jsonContentHeaders$m,
3128
3108
  method: 'PATCH',
3129
3109
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/ips/${validatePathParam('ipId', request.ipId)}`
3130
3110
  }, unmarshalIP$1);
@@ -3138,7 +3118,7 @@ let API$o = class API extends API$r {
3138
3118
  */
3139
3119
  addOptionServer = request => this.client.fetch({
3140
3120
  body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
3141
- headers: jsonContentHeaders$l,
3121
+ headers: jsonContentHeaders$m,
3142
3122
  method: 'POST',
3143
3123
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
3144
3124
  }, unmarshalServer$1);
@@ -3223,7 +3203,7 @@ let API$o = class API extends API$r {
3223
3203
  */
3224
3204
  updateSetting = request => this.client.fetch({
3225
3205
  body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
3226
- headers: jsonContentHeaders$l,
3206
+ headers: jsonContentHeaders$m,
3227
3207
  method: 'PATCH',
3228
3208
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/settings/${validatePathParam('settingId', request.settingId)}`
3229
3209
  }, unmarshalSetting);
@@ -3255,7 +3235,7 @@ let API$o = class API extends API$r {
3255
3235
  };
3256
3236
 
3257
3237
  /** Elastic Metal Private Network API. */
3258
- class PrivateNetworkAPI extends API$r {
3238
+ class PrivateNetworkAPI extends API$s {
3259
3239
  /** Lists the available zones of the API. */
3260
3240
  static LOCALITIES = ['fr-par-2'];
3261
3241
 
@@ -3268,7 +3248,7 @@ class PrivateNetworkAPI extends API$r {
3268
3248
  */
3269
3249
  addServerPrivateNetwork = request => this.client.fetch({
3270
3250
  body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
3271
- headers: jsonContentHeaders$l,
3251
+ headers: jsonContentHeaders$m,
3272
3252
  method: 'POST',
3273
3253
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
3274
3254
  }, unmarshalServerPrivateNetwork);
@@ -3282,7 +3262,7 @@ class PrivateNetworkAPI extends API$r {
3282
3262
  */
3283
3263
  setServerPrivateNetworks = request => this.client.fetch({
3284
3264
  body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
3285
- headers: jsonContentHeaders$l,
3265
+ headers: jsonContentHeaders$m,
3286
3266
  method: 'PUT',
3287
3267
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
3288
3268
  }, unmarshalSetServerPrivateNetworksResponse);
@@ -3313,7 +3293,7 @@ class PrivateNetworkAPI extends API$r {
3313
3293
  });
3314
3294
  }
3315
3295
 
3316
- class BaremetalV1UtilsAPI extends API$o {
3296
+ class BaremetalV1UtilsAPI extends API$p {
3317
3297
  /**
3318
3298
  * Waits for {@link ServerInstall} to be in a final state.
3319
3299
  *
@@ -3457,7 +3437,7 @@ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
3457
3437
  UpdateServerRequest: UpdateServerRequest
3458
3438
  });
3459
3439
 
3460
- var index$q = /*#__PURE__*/Object.freeze({
3440
+ var index$r = /*#__PURE__*/Object.freeze({
3461
3441
  __proto__: null,
3462
3442
  API: BaremetalV1UtilsAPI,
3463
3443
  PrivateNetworkAPI: PrivateNetworkAPI,
@@ -3467,9 +3447,9 @@ var index$q = /*#__PURE__*/Object.freeze({
3467
3447
  ValidationRules: validationRules_gen$4
3468
3448
  });
3469
3449
 
3470
- var index$p = /*#__PURE__*/Object.freeze({
3450
+ var index$q = /*#__PURE__*/Object.freeze({
3471
3451
  __proto__: null,
3472
- v1: index$q
3452
+ v1: index$r
3473
3453
  });
3474
3454
 
3475
3455
  // This file was automatically generated. DO NOT EDIT.
@@ -3527,7 +3507,7 @@ const unmarshalListInvoicesResponse = data => {
3527
3507
  *
3528
3508
  * This API allows you to query your consumption. Billing API.
3529
3509
  */
3530
- let API$n = class API extends API$r {
3510
+ let API$o = class API extends API$s {
3531
3511
  getConsumption = (request = {}) => this.client.fetch({
3532
3512
  method: 'GET',
3533
3513
  path: `/billing/v2alpha1/consumption`,
@@ -3550,14 +3530,14 @@ let API$n = class API extends API$r {
3550
3530
  // This file was automatically generated. DO NOT EDIT.
3551
3531
  // If you have any remark or suggestion do not hesitate to open an issue.
3552
3532
 
3553
- var index_gen$k = /*#__PURE__*/Object.freeze({
3533
+ var index_gen$l = /*#__PURE__*/Object.freeze({
3554
3534
  __proto__: null,
3555
- API: API$n
3535
+ API: API$o
3556
3536
  });
3557
3537
 
3558
- var index$o = /*#__PURE__*/Object.freeze({
3538
+ var index$p = /*#__PURE__*/Object.freeze({
3559
3539
  __proto__: null,
3560
- v2alpha1: index_gen$k
3540
+ v2alpha1: index_gen$l
3561
3541
  });
3562
3542
 
3563
3543
  // This file was automatically generated. DO NOT EDIT.
@@ -3781,7 +3761,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
3781
3761
 
3782
3762
  // This file was automatically generated. DO NOT EDIT.
3783
3763
  // If you have any remark or suggestion do not hesitate to open an issue.
3784
- const jsonContentHeaders$k = {
3764
+ const jsonContentHeaders$l = {
3785
3765
  'Content-Type': 'application/json; charset=utf-8'
3786
3766
  };
3787
3767
 
@@ -3792,7 +3772,7 @@ const jsonContentHeaders$k = {
3792
3772
  * Projects. Scaleway's Cockpit stores metrics and logs and provides a dedicated
3793
3773
  * Grafana for dashboarding to visualize them.
3794
3774
  */
3795
- let API$m = class API extends API$r {
3775
+ let API$n = class API extends API$s {
3796
3776
  /**
3797
3777
  * Activate a Cockpit. Activate the Cockpit of the specified Project ID.
3798
3778
  *
@@ -3801,7 +3781,7 @@ let API$m = class API extends API$r {
3801
3781
  */
3802
3782
  activateCockpit = (request = {}) => this.client.fetch({
3803
3783
  body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
3804
- headers: jsonContentHeaders$k,
3784
+ headers: jsonContentHeaders$l,
3805
3785
  method: 'POST',
3806
3786
  path: `/cockpit/v1beta1/activate`
3807
3787
  }, unmarshalCockpit);
@@ -3848,7 +3828,7 @@ let API$m = class API extends API$r {
3848
3828
  */
3849
3829
  deactivateCockpit = (request = {}) => this.client.fetch({
3850
3830
  body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
3851
- headers: jsonContentHeaders$k,
3831
+ headers: jsonContentHeaders$l,
3852
3832
  method: 'POST',
3853
3833
  path: `/cockpit/v1beta1/deactivate`
3854
3834
  }, unmarshalCockpit);
@@ -3862,7 +3842,7 @@ let API$m = class API extends API$r {
3862
3842
  */
3863
3843
  resetCockpitGrafana = (request = {}) => this.client.fetch({
3864
3844
  body: JSON.stringify(marshalResetCockpitGrafanaRequest(request, this.client.settings)),
3865
- headers: jsonContentHeaders$k,
3845
+ headers: jsonContentHeaders$l,
3866
3846
  method: 'POST',
3867
3847
  path: `/cockpit/v1beta1/reset-grafana`
3868
3848
  }, unmarshalCockpit);
@@ -3875,7 +3855,7 @@ let API$m = class API extends API$r {
3875
3855
  */
3876
3856
  createToken = (request = {}) => this.client.fetch({
3877
3857
  body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
3878
- headers: jsonContentHeaders$k,
3858
+ headers: jsonContentHeaders$l,
3879
3859
  method: 'POST',
3880
3860
  path: `/cockpit/v1beta1/tokens`
3881
3861
  }, unmarshalToken$2);
@@ -3923,7 +3903,7 @@ let API$m = class API extends API$r {
3923
3903
  */
3924
3904
  createContactPoint = (request = {}) => this.client.fetch({
3925
3905
  body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
3926
- headers: jsonContentHeaders$k,
3906
+ headers: jsonContentHeaders$l,
3927
3907
  method: 'POST',
3928
3908
  path: `/cockpit/v1beta1/contact-points`
3929
3909
  }, unmarshalContactPoint);
@@ -3950,7 +3930,7 @@ let API$m = class API extends API$r {
3950
3930
  */
3951
3931
  deleteContactPoint = (request = {}) => this.client.fetch({
3952
3932
  body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
3953
- headers: jsonContentHeaders$k,
3933
+ headers: jsonContentHeaders$l,
3954
3934
  method: 'POST',
3955
3935
  path: `/cockpit/v1beta1/delete-contact-point`
3956
3936
  });
@@ -3963,7 +3943,7 @@ let API$m = class API extends API$r {
3963
3943
  */
3964
3944
  enableManagedAlerts = (request = {}) => this.client.fetch({
3965
3945
  body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
3966
- headers: jsonContentHeaders$k,
3946
+ headers: jsonContentHeaders$l,
3967
3947
  method: 'POST',
3968
3948
  path: `/cockpit/v1beta1/enable-managed-alerts`
3969
3949
  });
@@ -3976,7 +3956,7 @@ let API$m = class API extends API$r {
3976
3956
  */
3977
3957
  disableManagedAlerts = (request = {}) => this.client.fetch({
3978
3958
  body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
3979
- headers: jsonContentHeaders$k,
3959
+ headers: jsonContentHeaders$l,
3980
3960
  method: 'POST',
3981
3961
  path: `/cockpit/v1beta1/disable-managed-alerts`
3982
3962
  });
@@ -3989,7 +3969,7 @@ let API$m = class API extends API$r {
3989
3969
  */
3990
3970
  triggerTestAlert = (request = {}) => this.client.fetch({
3991
3971
  body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
3992
- headers: jsonContentHeaders$k,
3972
+ headers: jsonContentHeaders$l,
3993
3973
  method: 'POST',
3994
3974
  path: `/cockpit/v1beta1/trigger-test-alert`
3995
3975
  });
@@ -4004,7 +3984,7 @@ let API$m = class API extends API$r {
4004
3984
  */
4005
3985
  createGrafanaUser = request => this.client.fetch({
4006
3986
  body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
4007
- headers: jsonContentHeaders$k,
3987
+ headers: jsonContentHeaders$l,
4008
3988
  method: 'POST',
4009
3989
  path: `/cockpit/v1beta1/grafana-users`
4010
3990
  }, unmarshalGrafanaUser);
@@ -4031,7 +4011,7 @@ let API$m = class API extends API$r {
4031
4011
  */
4032
4012
  deleteGrafanaUser = request => this.client.fetch({
4033
4013
  body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
4034
- headers: jsonContentHeaders$k,
4014
+ headers: jsonContentHeaders$l,
4035
4015
  method: 'POST',
4036
4016
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
4037
4017
  });
@@ -4045,7 +4025,7 @@ let API$m = class API extends API$r {
4045
4025
  */
4046
4026
  resetGrafanaUserPassword = request => this.client.fetch({
4047
4027
  body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
4048
- headers: jsonContentHeaders$k,
4028
+ headers: jsonContentHeaders$l,
4049
4029
  method: 'POST',
4050
4030
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
4051
4031
  }, unmarshalGrafanaUser);
@@ -4073,7 +4053,7 @@ let API$m = class API extends API$r {
4073
4053
  */
4074
4054
  selectPlan = request => this.client.fetch({
4075
4055
  body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
4076
- headers: jsonContentHeaders$k,
4056
+ headers: jsonContentHeaders$l,
4077
4057
  method: 'POST',
4078
4058
  path: `/cockpit/v1beta1/select-plan`
4079
4059
  }, unmarshalSelectPlanResponse);
@@ -4082,15 +4062,15 @@ let API$m = class API extends API$r {
4082
4062
  // This file was automatically generated. DO NOT EDIT.
4083
4063
  // If you have any remark or suggestion do not hesitate to open an issue.
4084
4064
 
4085
- var index_gen$j = /*#__PURE__*/Object.freeze({
4065
+ var index_gen$k = /*#__PURE__*/Object.freeze({
4086
4066
  __proto__: null,
4087
- API: API$m,
4067
+ API: API$n,
4088
4068
  COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
4089
4069
  });
4090
4070
 
4091
- var index$n = /*#__PURE__*/Object.freeze({
4071
+ var index$o = /*#__PURE__*/Object.freeze({
4092
4072
  __proto__: null,
4093
- v1beta1: index_gen$j
4073
+ v1beta1: index_gen$k
4094
4074
  });
4095
4075
 
4096
4076
  // This file was automatically generated. DO NOT EDIT.
@@ -4358,12 +4338,12 @@ const marshalUpdateNamespaceRequest$3 = (request, defaults) => ({
4358
4338
 
4359
4339
  // This file was automatically generated. DO NOT EDIT.
4360
4340
  // If you have any remark or suggestion do not hesitate to open an issue.
4361
- const jsonContentHeaders$j = {
4341
+ const jsonContentHeaders$k = {
4362
4342
  'Content-Type': 'application/json; charset=utf-8'
4363
4343
  };
4364
4344
 
4365
4345
  /** Serverless Containers API. */
4366
- let API$l = class API extends API$r {
4346
+ let API$m = class API extends API$s {
4367
4347
  /** Lists the available regions of the API. */
4368
4348
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
4369
4349
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -4408,7 +4388,7 @@ let API$l = class API extends API$r {
4408
4388
  */
4409
4389
  createNamespace = (request = {}) => this.client.fetch({
4410
4390
  body: JSON.stringify(marshalCreateNamespaceRequest$3(request, this.client.settings)),
4411
- headers: jsonContentHeaders$j,
4391
+ headers: jsonContentHeaders$k,
4412
4392
  method: 'POST',
4413
4393
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
4414
4394
  }, unmarshalNamespace$3);
@@ -4422,7 +4402,7 @@ let API$l = class API extends API$r {
4422
4402
  */
4423
4403
  updateNamespace = request => this.client.fetch({
4424
4404
  body: JSON.stringify(marshalUpdateNamespaceRequest$3(request, this.client.settings)),
4425
- headers: jsonContentHeaders$j,
4405
+ headers: jsonContentHeaders$k,
4426
4406
  method: 'PATCH',
4427
4407
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
4428
4408
  }, unmarshalNamespace$3);
@@ -4480,7 +4460,7 @@ let API$l = class API extends API$r {
4480
4460
  */
4481
4461
  createContainer = request => this.client.fetch({
4482
4462
  body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
4483
- headers: jsonContentHeaders$j,
4463
+ headers: jsonContentHeaders$k,
4484
4464
  method: 'POST',
4485
4465
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
4486
4466
  }, unmarshalContainer);
@@ -4494,7 +4474,7 @@ let API$l = class API extends API$r {
4494
4474
  */
4495
4475
  updateContainer = request => this.client.fetch({
4496
4476
  body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
4497
- headers: jsonContentHeaders$j,
4477
+ headers: jsonContentHeaders$k,
4498
4478
  method: 'PATCH',
4499
4479
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
4500
4480
  }, unmarshalContainer);
@@ -4518,7 +4498,7 @@ let API$l = class API extends API$r {
4518
4498
  */
4519
4499
  deployContainer = request => this.client.fetch({
4520
4500
  body: '{}',
4521
- headers: jsonContentHeaders$j,
4501
+ headers: jsonContentHeaders$k,
4522
4502
  method: 'POST',
4523
4503
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
4524
4504
  }, unmarshalContainer);
@@ -4564,7 +4544,7 @@ let API$l = class API extends API$r {
4564
4544
  */
4565
4545
  createCron = request => this.client.fetch({
4566
4546
  body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
4567
- headers: jsonContentHeaders$j,
4547
+ headers: jsonContentHeaders$k,
4568
4548
  method: 'POST',
4569
4549
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
4570
4550
  }, unmarshalCron$1);
@@ -4577,7 +4557,7 @@ let API$l = class API extends API$r {
4577
4557
  */
4578
4558
  updateCron = request => this.client.fetch({
4579
4559
  body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
4580
- headers: jsonContentHeaders$j,
4560
+ headers: jsonContentHeaders$k,
4581
4561
  method: 'PATCH',
4582
4562
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
4583
4563
  }, unmarshalCron$1);
@@ -4651,7 +4631,7 @@ let API$l = class API extends API$r {
4651
4631
  */
4652
4632
  createDomain = request => this.client.fetch({
4653
4633
  body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
4654
- headers: jsonContentHeaders$j,
4634
+ headers: jsonContentHeaders$k,
4655
4635
  method: 'POST',
4656
4636
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
4657
4637
  }, unmarshalDomain$3);
@@ -4693,7 +4673,7 @@ let API$l = class API extends API$r {
4693
4673
  */
4694
4674
  createToken = (request = {}) => this.client.fetch({
4695
4675
  body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
4696
- headers: jsonContentHeaders$j,
4676
+ headers: jsonContentHeaders$k,
4697
4677
  method: 'POST',
4698
4678
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
4699
4679
  }, unmarshalToken$1);
@@ -4747,9 +4727,9 @@ let API$l = class API extends API$r {
4747
4727
  // This file was automatically generated. DO NOT EDIT.
4748
4728
  // If you have any remark or suggestion do not hesitate to open an issue.
4749
4729
 
4750
- var index_gen$i = /*#__PURE__*/Object.freeze({
4730
+ var index_gen$j = /*#__PURE__*/Object.freeze({
4751
4731
  __proto__: null,
4752
- API: API$l,
4732
+ API: API$m,
4753
4733
  CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
4754
4734
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
4755
4735
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
@@ -4757,9 +4737,9 @@ var index_gen$i = /*#__PURE__*/Object.freeze({
4757
4737
  TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1
4758
4738
  });
4759
4739
 
4760
- var index$m = /*#__PURE__*/Object.freeze({
4740
+ var index$n = /*#__PURE__*/Object.freeze({
4761
4741
  __proto__: null,
4762
- v1beta1: index_gen$i
4742
+ v1beta1: index_gen$j
4763
4743
  });
4764
4744
 
4765
4745
  // This file was automatically generated. DO NOT EDIT.
@@ -5949,7 +5929,7 @@ const marshalUpdateDNSZoneRequest = (request, defaults) => ({
5949
5929
 
5950
5930
  // This file was automatically generated. DO NOT EDIT.
5951
5931
  // If you have any remark or suggestion do not hesitate to open an issue.
5952
- const jsonContentHeaders$i = {
5932
+ const jsonContentHeaders$j = {
5953
5933
  'Content-Type': 'application/json; charset=utf-8'
5954
5934
  };
5955
5935
 
@@ -5959,7 +5939,7 @@ const jsonContentHeaders$i = {
5959
5939
  * Domains and DNS API. Manage your domains, DNS zones and records with the
5960
5940
  * Domains and DNS API.
5961
5941
  */
5962
- let API$k = class API extends API$r {
5942
+ let API$l = class API extends API$s {
5963
5943
  pageOfListDNSZones = request => this.client.fetch({
5964
5944
  method: 'GET',
5965
5945
  path: `/domain/v2beta1/dns-zones`,
@@ -5984,7 +5964,7 @@ let API$k = class API extends API$r {
5984
5964
  */
5985
5965
  createDNSZone = request => this.client.fetch({
5986
5966
  body: JSON.stringify(marshalCreateDNSZoneRequest(request, this.client.settings)),
5987
- headers: jsonContentHeaders$i,
5967
+ headers: jsonContentHeaders$j,
5988
5968
  method: 'POST',
5989
5969
  path: `/domain/v2beta1/dns-zones`
5990
5970
  }, unmarshalDNSZone);
@@ -5997,7 +5977,7 @@ let API$k = class API extends API$r {
5997
5977
  */
5998
5978
  updateDNSZone = request => this.client.fetch({
5999
5979
  body: JSON.stringify(marshalUpdateDNSZoneRequest(request, this.client.settings)),
6000
- headers: jsonContentHeaders$i,
5980
+ headers: jsonContentHeaders$j,
6001
5981
  method: 'PATCH',
6002
5982
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
6003
5983
  }, unmarshalDNSZone);
@@ -6011,7 +5991,7 @@ let API$k = class API extends API$r {
6011
5991
  */
6012
5992
  cloneDNSZone = request => this.client.fetch({
6013
5993
  body: JSON.stringify(marshalCloneDNSZoneRequest(request, this.client.settings)),
6014
- headers: jsonContentHeaders$i,
5994
+ headers: jsonContentHeaders$j,
6015
5995
  method: 'POST',
6016
5996
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
6017
5997
  }, unmarshalDNSZone);
@@ -6064,7 +6044,7 @@ let API$k = class API extends API$r {
6064
6044
  */
6065
6045
  updateDNSZoneRecords = request => this.client.fetch({
6066
6046
  body: JSON.stringify(marshalUpdateDNSZoneRecordsRequest(request, this.client.settings)),
6067
- headers: jsonContentHeaders$i,
6047
+ headers: jsonContentHeaders$j,
6068
6048
  method: 'PATCH',
6069
6049
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
6070
6050
  }, unmarshalUpdateDNSZoneRecordsResponse);
@@ -6091,7 +6071,7 @@ let API$k = class API extends API$r {
6091
6071
  */
6092
6072
  updateDNSZoneNameservers = request => this.client.fetch({
6093
6073
  body: JSON.stringify(marshalUpdateDNSZoneNameserversRequest(request, this.client.settings)),
6094
- headers: jsonContentHeaders$i,
6074
+ headers: jsonContentHeaders$j,
6095
6075
  method: 'PUT',
6096
6076
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
6097
6077
  }, unmarshalUpdateDNSZoneNameserversResponse);
@@ -6131,7 +6111,7 @@ let API$k = class API extends API$r {
6131
6111
  */
6132
6112
  importRawDNSZone = request => this.client.fetch({
6133
6113
  body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
6134
- headers: jsonContentHeaders$i,
6114
+ headers: jsonContentHeaders$j,
6135
6115
  method: 'POST',
6136
6116
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
6137
6117
  }, unmarshalImportRawDNSZoneResponse);
@@ -6145,7 +6125,7 @@ let API$k = class API extends API$r {
6145
6125
  */
6146
6126
  importProviderDNSZone = request => this.client.fetch({
6147
6127
  body: JSON.stringify(marshalImportProviderDNSZoneRequest(request, this.client.settings)),
6148
- headers: jsonContentHeaders$i,
6128
+ headers: jsonContentHeaders$j,
6149
6129
  method: 'POST',
6150
6130
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
6151
6131
  }, unmarshalImportProviderDNSZoneResponse);
@@ -6160,7 +6140,7 @@ let API$k = class API extends API$r {
6160
6140
  */
6161
6141
  refreshDNSZone = request => this.client.fetch({
6162
6142
  body: JSON.stringify(marshalRefreshDNSZoneRequest(request, this.client.settings)),
6163
- headers: jsonContentHeaders$i,
6143
+ headers: jsonContentHeaders$j,
6164
6144
  method: 'POST',
6165
6145
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/refresh`
6166
6146
  }, unmarshalRefreshDNSZoneResponse);
@@ -6215,7 +6195,7 @@ let API$k = class API extends API$r {
6215
6195
  */
6216
6196
  restoreDNSZoneVersion = request => this.client.fetch({
6217
6197
  body: '{}',
6218
- headers: jsonContentHeaders$i,
6198
+ headers: jsonContentHeaders$j,
6219
6199
  method: 'POST',
6220
6200
  path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
6221
6201
  }, unmarshalRestoreDNSZoneVersionResponse);
@@ -6250,7 +6230,7 @@ let API$k = class API extends API$r {
6250
6230
  */
6251
6231
  createSSLCertificate = request => this.client.fetch({
6252
6232
  body: JSON.stringify(marshalCreateSSLCertificateRequest(request, this.client.settings)),
6253
- headers: jsonContentHeaders$i,
6233
+ headers: jsonContentHeaders$j,
6254
6234
  method: 'POST',
6255
6235
  path: `/domain/v2beta1/ssl-certificates`
6256
6236
  }, unmarshalSSLCertificate);
@@ -6311,7 +6291,7 @@ let API$k = class API extends API$r {
6311
6291
  *
6312
6292
  * Domains and DNS - Registrar API. Manage your domains and contacts.
6313
6293
  */
6314
- class RegistrarAPI extends API$r {
6294
+ class RegistrarAPI extends API$s {
6315
6295
  pageOfListTasks = (request = {}) => this.client.fetch({
6316
6296
  method: 'GET',
6317
6297
  path: `/domain/v2beta1/tasks`,
@@ -6319,7 +6299,8 @@ class RegistrarAPI extends API$r {
6319
6299
  }, unmarshalListTasksResponse);
6320
6300
 
6321
6301
  /**
6322
- * List tasks. List all account tasks. You can filter the list by domain name.
6302
+ * List tasks. List all operations performed on the account. You can filter
6303
+ * the list of tasks by domain name.
6323
6304
  *
6324
6305
  * @param request - The request {@link RegistrarApiListTasksRequest}
6325
6306
  * @returns A Promise of ListTasksResponse
@@ -6327,59 +6308,62 @@ class RegistrarAPI extends API$r {
6327
6308
  listTasks = (request = {}) => enrichForPagination('tasks', this.pageOfListTasks, request);
6328
6309
 
6329
6310
  /**
6330
- * Buy one or more domains. Request the registration of domain names. You can
6331
- * provide an already existing domain's contact or a new contact.
6311
+ * Purchase domains. Request the registration of domain names. You can provide
6312
+ * a domain's already existing contact or a new contact.
6332
6313
  *
6333
6314
  * @param request - The request {@link RegistrarApiBuyDomainsRequest}
6334
6315
  * @returns A Promise of OrderResponse
6335
6316
  */
6336
6317
  buyDomains = request => this.client.fetch({
6337
6318
  body: JSON.stringify(marshalRegistrarApiBuyDomainsRequest(request, this.client.settings)),
6338
- headers: jsonContentHeaders$i,
6319
+ headers: jsonContentHeaders$j,
6339
6320
  method: 'POST',
6340
6321
  path: `/domain/v2beta1/buy-domains`
6341
6322
  }, unmarshalOrderResponse);
6342
6323
 
6343
6324
  /**
6344
- * Renew one or more domains. Request the renewal of domain names.
6325
+ * Renew domains. Request the renewal of one or more domain names.
6345
6326
  *
6346
6327
  * @param request - The request {@link RegistrarApiRenewDomainsRequest}
6347
6328
  * @returns A Promise of OrderResponse
6348
6329
  */
6349
6330
  renewDomains = request => this.client.fetch({
6350
6331
  body: JSON.stringify(marshalRegistrarApiRenewDomainsRequest(request, this.client.settings)),
6351
- headers: jsonContentHeaders$i,
6332
+ headers: jsonContentHeaders$j,
6352
6333
  method: 'POST',
6353
6334
  path: `/domain/v2beta1/renew-domains`
6354
6335
  }, unmarshalOrderResponse);
6355
6336
 
6356
6337
  /**
6357
- * Transfer a domain. Request the transfer from another registrar domain to
6358
- * Scaleway.
6338
+ * Transfer a domain. Request the transfer of a domain from another registrar
6339
+ * to Scaleway Domains and DNS.
6359
6340
  *
6360
6341
  * @param request - The request {@link RegistrarApiTransferInDomainRequest}
6361
6342
  * @returns A Promise of OrderResponse
6362
6343
  */
6363
6344
  transferInDomain = request => this.client.fetch({
6364
6345
  body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
6365
- headers: jsonContentHeaders$i,
6346
+ headers: jsonContentHeaders$j,
6366
6347
  method: 'POST',
6367
6348
  path: `/domain/v2beta1/domains/transfer-domains`
6368
6349
  }, unmarshalOrderResponse);
6369
6350
 
6370
6351
  /**
6371
- * Trade a domain contact. Request a trade for the contact owner.<br/> If an
6372
- * `organization_id` is given, the change is from the current Scaleway account
6373
- * to another Scaleway account.<br/> If no contact is given, the first contact
6374
- * of the other Scaleway account is taken.<br/> If the other Scaleway account
6375
- * has no contact. An error occurs.
6352
+ * Trade a domain's contact. Request to change a domain's contact owner.<br/>
6353
+ * If you specify the `organization_id` of the domain's new owner, the contact
6354
+ * will change from the current owner's Scaleway account to the new owner's
6355
+ * Scaleway account.<br/> If the new owner's current contact information is
6356
+ * not available, the first ever contact they have created for previous
6357
+ * domains is taken into account to operate the change.<br/> If the new owner
6358
+ * has never created a contact to register domains before, an error message
6359
+ * displays.
6376
6360
  *
6377
6361
  * @param request - The request {@link RegistrarApiTradeDomainRequest}
6378
6362
  * @returns A Promise of OrderResponse
6379
6363
  */
6380
6364
  tradeDomain = request => this.client.fetch({
6381
6365
  body: JSON.stringify(marshalRegistrarApiTradeDomainRequest(request, this.client.settings)),
6382
- headers: jsonContentHeaders$i,
6366
+ headers: jsonContentHeaders$j,
6383
6367
  method: 'POST',
6384
6368
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
6385
6369
  }, unmarshalOrderResponse);
@@ -6394,7 +6378,7 @@ class RegistrarAPI extends API$r {
6394
6378
  */
6395
6379
  registerExternalDomain = request => this.client.fetch({
6396
6380
  body: JSON.stringify(marshalRegistrarApiRegisterExternalDomainRequest(request, this.client.settings)),
6397
- headers: jsonContentHeaders$i,
6381
+ headers: jsonContentHeaders$j,
6398
6382
  method: 'POST',
6399
6383
  path: `/domain/v2beta1/external-domains`
6400
6384
  }, unmarshalRegisterExternalDomainResponse);
@@ -6411,9 +6395,10 @@ class RegistrarAPI extends API$r {
6411
6395
  }, unmarshalDeleteExternalDomainResponse);
6412
6396
 
6413
6397
  /**
6414
- * Check if contacts are compatible against a domain or a tld. Check if
6415
- * contacts are compatible against a domain or a tld. If not, it will return
6416
- * the information requiring a correction.
6398
+ * Check if contacts are compatible with a domain or a TLD. Check whether
6399
+ * contacts are compatible with a domain or a TLD. If contacts are not
6400
+ * compatible with either the domain or the TLD, the information that needs to
6401
+ * be corrected is returned.
6417
6402
  *
6418
6403
  * @param request - The request
6419
6404
  * {@link RegistrarApiCheckContactsCompatibilityRequest}
@@ -6421,7 +6406,7 @@ class RegistrarAPI extends API$r {
6421
6406
  */
6422
6407
  checkContactsCompatibility = (request = {}) => this.client.fetch({
6423
6408
  body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, this.client.settings)),
6424
- headers: jsonContentHeaders$i,
6409
+ headers: jsonContentHeaders$j,
6425
6410
  method: 'POST',
6426
6411
  path: `/domain/v2beta1/check-contacts-compatibility`
6427
6412
  }, unmarshalCheckContactsCompatibilityResponse);
@@ -6432,8 +6417,8 @@ class RegistrarAPI extends API$r {
6432
6417
  }, unmarshalListContactsResponse);
6433
6418
 
6434
6419
  /**
6435
- * List contacts. Return a list of contacts with their domains and roles. You
6436
- * can filter the list by domain name.
6420
+ * List contacts. Retrieve the list of contacts and their associated domains
6421
+ * and roles. You can filter the list by domain name.
6437
6422
  *
6438
6423
  * @param request - The request {@link RegistrarApiListContactsRequest}
6439
6424
  * @returns A Promise of ListContactsResponse
@@ -6441,8 +6426,8 @@ class RegistrarAPI extends API$r {
6441
6426
  listContacts = (request = {}) => enrichForPagination('contacts', this.pageOfListContacts, request);
6442
6427
 
6443
6428
  /**
6444
- * Get a contact. Return a contact details retrieved from the registrar using
6445
- * a given contact ID.
6429
+ * Get a contact. Retrieve a contact's details from the registrar using the
6430
+ * given contact's ID.
6446
6431
  *
6447
6432
  * @param request - The request {@link RegistrarApiGetContactRequest}
6448
6433
  * @returns A Promise of Contact
@@ -6453,14 +6438,14 @@ class RegistrarAPI extends API$r {
6453
6438
  }, unmarshalContact);
6454
6439
 
6455
6440
  /**
6456
- * Update contact. You can edit the contact coordinates.
6441
+ * Update contact. Edit the contact's information.
6457
6442
  *
6458
6443
  * @param request - The request {@link RegistrarApiUpdateContactRequest}
6459
6444
  * @returns A Promise of Contact
6460
6445
  */
6461
6446
  updateContact = request => this.client.fetch({
6462
6447
  body: JSON.stringify(marshalRegistrarApiUpdateContactRequest(request, this.client.settings)),
6463
- headers: jsonContentHeaders$i,
6448
+ headers: jsonContentHeaders$j,
6464
6449
  method: 'PATCH',
6465
6450
  path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
6466
6451
  }, unmarshalContact);
@@ -6471,7 +6456,7 @@ class RegistrarAPI extends API$r {
6471
6456
  }, unmarshalListDomainsResponse$2);
6472
6457
 
6473
6458
  /**
6474
- * List domains. Returns a list of domains owned by the user.
6459
+ * List domains. Retrieve the list of domains you own.
6475
6460
  *
6476
6461
  * @param request - The request {@link RegistrarApiListDomainsRequest}
6477
6462
  * @returns A Promise of ListDomainsResponse
@@ -6484,9 +6469,9 @@ class RegistrarAPI extends API$r {
6484
6469
  }, unmarshalListRenewableDomainsResponse);
6485
6470
 
6486
6471
  /**
6487
- * List scaleway domains that can or not be renewed. Returns a list of domains
6488
- * owned by the user with a renew status and if renewable, the maximum renew
6489
- * duration in years.
6472
+ * List domains that can be renewed. Retrieve the list of domains you own that
6473
+ * can be renewed. You can also see the maximum renewal duration in years for
6474
+ * your domains that are renewable.
6490
6475
  *
6491
6476
  * @param request - The request {@link RegistrarApiListRenewableDomainsRequest}
6492
6477
  * @returns A Promise of ListRenewableDomainsResponse
@@ -6494,7 +6479,8 @@ class RegistrarAPI extends API$r {
6494
6479
  listRenewableDomains = (request = {}) => enrichForPagination('domains', this.pageOfListRenewableDomains, request);
6495
6480
 
6496
6481
  /**
6497
- * Get domain. Returns a the domain with more informations.
6482
+ * Get domain. Retrieve a specific domain and display the domain's
6483
+ * information.
6498
6484
  *
6499
6485
  * @param request - The request {@link RegistrarApiGetDomainRequest}
6500
6486
  * @returns A Promise of Domain
@@ -6514,50 +6500,54 @@ class RegistrarAPI extends API$r {
6514
6500
  waitForDomain = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES$2.includes(res.status))), this.getDomain, request, options);
6515
6501
 
6516
6502
  /**
6517
- * Update a domain. Update the domain contacts or create a new one.<br/> If
6518
- * you add the same contact for multiple roles. Only one ID will be created
6519
- * and used for all of them.
6503
+ * Update a domain's contacts. Update contacts for a specific domain or create
6504
+ * a new contact.<br/> If you add the same contact for multiple roles (owner,
6505
+ * administrative, technical), only one ID will be created and used for all of
6506
+ * the roles.
6520
6507
  *
6521
6508
  * @param request - The request {@link RegistrarApiUpdateDomainRequest}
6522
6509
  * @returns A Promise of Domain
6523
6510
  */
6524
6511
  updateDomain = request => this.client.fetch({
6525
6512
  body: JSON.stringify(marshalRegistrarApiUpdateDomainRequest(request, this.client.settings)),
6526
- headers: jsonContentHeaders$i,
6513
+ headers: jsonContentHeaders$j,
6527
6514
  method: 'PATCH',
6528
6515
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
6529
6516
  }, unmarshalDomain$2);
6530
6517
 
6531
6518
  /**
6532
- * Lock domain transfer. Lock domain transfer. A locked domain transfer can't
6533
- * be transferred and the auth code can't be requested.
6519
+ * Lock the transfer of a domain. Lock the transfer of a domain. This means
6520
+ * that the domain cannot be transferred and the authorization code cannot be
6521
+ * requested to your current registrar.
6534
6522
  *
6535
6523
  * @param request - The request {@link RegistrarApiLockDomainTransferRequest}
6536
6524
  * @returns A Promise of Domain
6537
6525
  */
6538
6526
  lockDomainTransfer = request => this.client.fetch({
6539
6527
  body: '{}',
6540
- headers: jsonContentHeaders$i,
6528
+ headers: jsonContentHeaders$j,
6541
6529
  method: 'POST',
6542
6530
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
6543
6531
  }, unmarshalDomain$2);
6544
6532
 
6545
6533
  /**
6546
- * Unlock domain transfer. Unlock domain transfer. An unlocked domain can be
6547
- * transferred and the auth code can be requested for this.
6534
+ * Unlock the transfer of a domain. Unlock the transfer of a domain. This
6535
+ * means that the domain can be transferred and the authorization code can be
6536
+ * requested to your current registrar.
6548
6537
  *
6549
6538
  * @param request - The request {@link RegistrarApiUnlockDomainTransferRequest}
6550
6539
  * @returns A Promise of Domain
6551
6540
  */
6552
6541
  unlockDomainTransfer = request => this.client.fetch({
6553
6542
  body: '{}',
6554
- headers: jsonContentHeaders$i,
6543
+ headers: jsonContentHeaders$j,
6555
6544
  method: 'POST',
6556
6545
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
6557
6546
  }, unmarshalDomain$2);
6558
6547
 
6559
6548
  /**
6560
- * Enable domain auto renew.
6549
+ * Enable auto renew. Enable the `auto renew` feature for a domain. This means
6550
+ * the domain will be automatically renewed before its expiry date.
6561
6551
  *
6562
6552
  * @param request - The request
6563
6553
  * {@link RegistrarApiEnableDomainAutoRenewRequest}
@@ -6565,13 +6555,14 @@ class RegistrarAPI extends API$r {
6565
6555
  */
6566
6556
  enableDomainAutoRenew = request => this.client.fetch({
6567
6557
  body: '{}',
6568
- headers: jsonContentHeaders$i,
6558
+ headers: jsonContentHeaders$j,
6569
6559
  method: 'POST',
6570
6560
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
6571
6561
  }, unmarshalDomain$2);
6572
6562
 
6573
6563
  /**
6574
- * Disable domain auto renew.
6564
+ * Disable auto renew. Disable the `auto renew` feature for a domain. This
6565
+ * means the domain will not be renewed before its expiry date.
6575
6566
  *
6576
6567
  * @param request - The request
6577
6568
  * {@link RegistrarApiDisableDomainAutoRenewRequest}
@@ -6579,16 +6570,17 @@ class RegistrarAPI extends API$r {
6579
6570
  */
6580
6571
  disableDomainAutoRenew = request => this.client.fetch({
6581
6572
  body: '{}',
6582
- headers: jsonContentHeaders$i,
6573
+ headers: jsonContentHeaders$j,
6583
6574
  method: 'POST',
6584
6575
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
6585
6576
  }, unmarshalDomain$2);
6586
6577
 
6587
6578
  /**
6588
- * Return domain auth code. If possible, return the auth code for an unlocked
6589
- * domain transfer, or an error if the domain is locked. Some TLD may have a
6590
- * different procedure to retrieve the auth code, in that case, the
6591
- * information is given in the message field.
6579
+ * Get a domain's authorization code. Retrieve the authorization code to
6580
+ * tranfer an unlocked domain. The output returns an error if the domain is
6581
+ * locked. Some TLDs may have a different procedure to retrieve the
6582
+ * authorization code. In that case, the information displays in the message
6583
+ * field.
6592
6584
  *
6593
6585
  * @param request - The request {@link RegistrarApiGetDomainAuthCodeRequest}
6594
6586
  * @returns A Promise of GetDomainAuthCodeResponse
@@ -6607,29 +6599,30 @@ class RegistrarAPI extends API$r {
6607
6599
  */
6608
6600
  enableDomainDNSSEC = request => this.client.fetch({
6609
6601
  body: JSON.stringify(marshalRegistrarApiEnableDomainDNSSECRequest(request, this.client.settings)),
6610
- headers: jsonContentHeaders$i,
6602
+ headers: jsonContentHeaders$j,
6611
6603
  method: 'POST',
6612
6604
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
6613
6605
  }, unmarshalDomain$2);
6614
6606
 
6615
6607
  /**
6616
- * Disable domain DNSSEC.
6608
+ * Disable a domain's DNSSEC. Disable DNSSEC for a domain.
6617
6609
  *
6618
6610
  * @param request - The request {@link RegistrarApiDisableDomainDNSSECRequest}
6619
6611
  * @returns A Promise of Domain
6620
6612
  */
6621
6613
  disableDomainDNSSEC = request => this.client.fetch({
6622
6614
  body: '{}',
6623
- headers: jsonContentHeaders$i,
6615
+ headers: jsonContentHeaders$j,
6624
6616
  method: 'POST',
6625
6617
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
6626
6618
  }, unmarshalDomain$2);
6627
6619
 
6628
6620
  /**
6629
- * Search available domains. Search a domain (or at maximum, 10 domains).
6621
+ * Search available domains. Search a domain or a maximum of 10 domains that
6622
+ * are available.
6630
6623
  *
6631
- * If the TLD list is empty or not set the search returns the results from the
6632
- * most popular TLDs.
6624
+ * If the TLD list is empty or not set, the search returns the results from
6625
+ * the most popular TLDs.
6633
6626
  *
6634
6627
  * @param request - The request
6635
6628
  * {@link RegistrarApiSearchAvailableDomainsRequest}
@@ -6642,14 +6635,15 @@ class RegistrarAPI extends API$r {
6642
6635
  }, unmarshalSearchAvailableDomainsResponse);
6643
6636
 
6644
6637
  /**
6645
- * Create domain hostname with glue IPs.
6638
+ * Create a hostname for a domain. Create a hostname for a domain with glue
6639
+ * IPs.
6646
6640
  *
6647
6641
  * @param request - The request {@link RegistrarApiCreateDomainHostRequest}
6648
6642
  * @returns A Promise of Host
6649
6643
  */
6650
6644
  createDomainHost = request => this.client.fetch({
6651
6645
  body: JSON.stringify(marshalRegistrarApiCreateDomainHostRequest(request, this.client.settings)),
6652
- headers: jsonContentHeaders$i,
6646
+ headers: jsonContentHeaders$j,
6653
6647
  method: 'POST',
6654
6648
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts`
6655
6649
  }, unmarshalHost);
@@ -6660,7 +6654,7 @@ class RegistrarAPI extends API$r {
6660
6654
  }, unmarshalListDomainHostsResponse);
6661
6655
 
6662
6656
  /**
6663
- * List domain hostnames with they glue IPs.
6657
+ * List a domain's hostnames. List a domain's hostnames using their glue IPs.
6664
6658
  *
6665
6659
  * @param request - The request {@link RegistrarApiListDomainHostsRequest}
6666
6660
  * @returns A Promise of ListDomainHostsResponse
@@ -6668,20 +6662,20 @@ class RegistrarAPI extends API$r {
6668
6662
  listDomainHosts = request => enrichForPagination('hosts', this.pageOfListDomainHosts, request);
6669
6663
 
6670
6664
  /**
6671
- * Update domain hostname with glue IPs.
6665
+ * Update a domain's hostname. Update a domain's hostname with glue IPs.
6672
6666
  *
6673
6667
  * @param request - The request {@link RegistrarApiUpdateDomainHostRequest}
6674
6668
  * @returns A Promise of Host
6675
6669
  */
6676
6670
  updateDomainHost = request => this.client.fetch({
6677
6671
  body: JSON.stringify(marshalRegistrarApiUpdateDomainHostRequest(request, this.client.settings)),
6678
- headers: jsonContentHeaders$i,
6672
+ headers: jsonContentHeaders$j,
6679
6673
  method: 'PATCH',
6680
6674
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
6681
6675
  }, unmarshalHost);
6682
6676
 
6683
6677
  /**
6684
- * Delete domain hostname.
6678
+ * Delete a domain's hostname. Delete a domain's hostname.
6685
6679
  *
6686
6680
  * @param request - The request {@link RegistrarApiDeleteDomainHostRequest}
6687
6681
  * @returns A Promise of Host
@@ -6695,9 +6689,9 @@ class RegistrarAPI extends API$r {
6695
6689
  // This file was automatically generated. DO NOT EDIT.
6696
6690
  // If you have any remark or suggestion do not hesitate to open an issue.
6697
6691
 
6698
- var index_gen$h = /*#__PURE__*/Object.freeze({
6692
+ var index_gen$i = /*#__PURE__*/Object.freeze({
6699
6693
  __proto__: null,
6700
- API: API$k,
6694
+ API: API$l,
6701
6695
  DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
6702
6696
  DOMAIN_FEATURE_TRANSIENT_STATUSES: DOMAIN_FEATURE_TRANSIENT_STATUSES,
6703
6697
  DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES,
@@ -6708,9 +6702,9 @@ var index_gen$h = /*#__PURE__*/Object.freeze({
6708
6702
  TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES$1
6709
6703
  });
6710
6704
 
6711
- var index$l = /*#__PURE__*/Object.freeze({
6705
+ var index$m = /*#__PURE__*/Object.freeze({
6712
6706
  __proto__: null,
6713
- v2beta1: index_gen$h
6707
+ v2beta1: index_gen$i
6714
6708
  });
6715
6709
 
6716
6710
  // This file was automatically generated. DO NOT EDIT.
@@ -6817,12 +6811,12 @@ const marshalUpdateFlexibleIPRequest = (request, defaults) => ({
6817
6811
 
6818
6812
  // This file was automatically generated. DO NOT EDIT.
6819
6813
  // If you have any remark or suggestion do not hesitate to open an issue.
6820
- const jsonContentHeaders$h = {
6814
+ const jsonContentHeaders$i = {
6821
6815
  'Content-Type': 'application/json; charset=utf-8'
6822
6816
  };
6823
6817
 
6824
6818
  /** Elastic Metal - Flexible IP API. */
6825
- let API$j = class API extends API$r {
6819
+ let API$k = class API extends API$s {
6826
6820
  /** Lists the available zones of the API. */
6827
6821
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
6828
6822
 
@@ -6835,7 +6829,7 @@ let API$j = class API extends API$r {
6835
6829
  */
6836
6830
  createFlexibleIP = request => this.client.fetch({
6837
6831
  body: JSON.stringify(marshalCreateFlexibleIPRequest(request, this.client.settings)),
6838
- headers: jsonContentHeaders$h,
6832
+ headers: jsonContentHeaders$i,
6839
6833
  method: 'POST',
6840
6834
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
6841
6835
  }, unmarshalFlexibleIP);
@@ -6885,7 +6879,7 @@ let API$j = class API extends API$r {
6885
6879
  */
6886
6880
  updateFlexibleIP = request => this.client.fetch({
6887
6881
  body: JSON.stringify(marshalUpdateFlexibleIPRequest(request, this.client.settings)),
6888
- headers: jsonContentHeaders$h,
6882
+ headers: jsonContentHeaders$i,
6889
6883
  method: 'PATCH',
6890
6884
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
6891
6885
  }, unmarshalFlexibleIP);
@@ -6911,7 +6905,7 @@ let API$j = class API extends API$r {
6911
6905
  */
6912
6906
  attachFlexibleIP = request => this.client.fetch({
6913
6907
  body: JSON.stringify(marshalAttachFlexibleIPRequest(request, this.client.settings)),
6914
- headers: jsonContentHeaders$h,
6908
+ headers: jsonContentHeaders$i,
6915
6909
  method: 'POST',
6916
6910
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
6917
6911
  }, unmarshalAttachFlexibleIPsResponse);
@@ -6925,7 +6919,7 @@ let API$j = class API extends API$r {
6925
6919
  */
6926
6920
  detachFlexibleIP = request => this.client.fetch({
6927
6921
  body: JSON.stringify(marshalDetachFlexibleIPRequest(request, this.client.settings)),
6928
- headers: jsonContentHeaders$h,
6922
+ headers: jsonContentHeaders$i,
6929
6923
  method: 'POST',
6930
6924
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
6931
6925
  }, unmarshalDetachFlexibleIPsResponse);
@@ -6939,7 +6933,7 @@ let API$j = class API extends API$r {
6939
6933
  */
6940
6934
  generateMACAddr = request => this.client.fetch({
6941
6935
  body: JSON.stringify(marshalGenerateMACAddrRequest(request, this.client.settings)),
6942
- headers: jsonContentHeaders$h,
6936
+ headers: jsonContentHeaders$i,
6943
6937
  method: 'POST',
6944
6938
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
6945
6939
  }, unmarshalFlexibleIP);
@@ -6954,7 +6948,7 @@ let API$j = class API extends API$r {
6954
6948
  */
6955
6949
  duplicateMACAddr = request => this.client.fetch({
6956
6950
  body: JSON.stringify(marshalDuplicateMACAddrRequest(request, this.client.settings)),
6957
- headers: jsonContentHeaders$h,
6951
+ headers: jsonContentHeaders$i,
6958
6952
  method: 'POST',
6959
6953
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
6960
6954
  }, unmarshalFlexibleIP);
@@ -6969,7 +6963,7 @@ let API$j = class API extends API$r {
6969
6963
  */
6970
6964
  moveMACAddr = request => this.client.fetch({
6971
6965
  body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
6972
- headers: jsonContentHeaders$h,
6966
+ headers: jsonContentHeaders$i,
6973
6967
  method: 'POST',
6974
6968
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
6975
6969
  }, unmarshalFlexibleIP);
@@ -7007,17 +7001,17 @@ var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
7007
7001
  // This file was automatically generated. DO NOT EDIT.
7008
7002
  // If you have any remark or suggestion do not hesitate to open an issue.
7009
7003
 
7010
- var index_gen$g = /*#__PURE__*/Object.freeze({
7004
+ var index_gen$h = /*#__PURE__*/Object.freeze({
7011
7005
  __proto__: null,
7012
- API: API$j,
7006
+ API: API$k,
7013
7007
  FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
7014
7008
  MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
7015
7009
  ValidationRules: validationRules_gen$3
7016
7010
  });
7017
7011
 
7018
- var index$k = /*#__PURE__*/Object.freeze({
7012
+ var index$l = /*#__PURE__*/Object.freeze({
7019
7013
  __proto__: null,
7020
- v1alpha1: index_gen$g
7014
+ v1alpha1: index_gen$h
7021
7015
  });
7022
7016
 
7023
7017
  // This file was automatically generated. DO NOT EDIT.
@@ -7432,12 +7426,12 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
7432
7426
 
7433
7427
  // This file was automatically generated. DO NOT EDIT.
7434
7428
  // If you have any remark or suggestion do not hesitate to open an issue.
7435
- const jsonContentHeaders$g = {
7429
+ const jsonContentHeaders$h = {
7436
7430
  'Content-Type': 'application/json; charset=utf-8'
7437
7431
  };
7438
7432
 
7439
7433
  /** Serverless Functions API. */
7440
- let API$i = class API extends API$r {
7434
+ let API$j = class API extends API$s {
7441
7435
  /** Lists the available regions of the API. */
7442
7436
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
7443
7437
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -7477,14 +7471,14 @@ let API$i = class API extends API$r {
7477
7471
 
7478
7472
  /**
7479
7473
  * Create a new namespace. Create a new namespace in a specified Organization
7480
- * or Proejct.
7474
+ * or Project.
7481
7475
  *
7482
7476
  * @param request - The request {@link CreateNamespaceRequest}
7483
7477
  * @returns A Promise of Namespace
7484
7478
  */
7485
7479
  createNamespace = (request = {}) => this.client.fetch({
7486
7480
  body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
7487
- headers: jsonContentHeaders$g,
7481
+ headers: jsonContentHeaders$h,
7488
7482
  method: 'POST',
7489
7483
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
7490
7484
  }, unmarshalNamespace$2);
@@ -7498,7 +7492,7 @@ let API$i = class API extends API$r {
7498
7492
  */
7499
7493
  updateNamespace = request => this.client.fetch({
7500
7494
  body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
7501
- headers: jsonContentHeaders$g,
7495
+ headers: jsonContentHeaders$h,
7502
7496
  method: 'PATCH',
7503
7497
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
7504
7498
  }, unmarshalNamespace$2);
@@ -7557,7 +7551,7 @@ let API$i = class API extends API$r {
7557
7551
  */
7558
7552
  createFunction = request => this.client.fetch({
7559
7553
  body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
7560
- headers: jsonContentHeaders$g,
7554
+ headers: jsonContentHeaders$h,
7561
7555
  method: 'POST',
7562
7556
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
7563
7557
  }, unmarshalFunction);
@@ -7571,7 +7565,7 @@ let API$i = class API extends API$r {
7571
7565
  */
7572
7566
  updateFunction = request => this.client.fetch({
7573
7567
  body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
7574
- headers: jsonContentHeaders$g,
7568
+ headers: jsonContentHeaders$h,
7575
7569
  method: 'PATCH',
7576
7570
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
7577
7571
  }, unmarshalFunction);
@@ -7595,7 +7589,7 @@ let API$i = class API extends API$r {
7595
7589
  */
7596
7590
  deployFunction = request => this.client.fetch({
7597
7591
  body: '{}',
7598
- headers: jsonContentHeaders$g,
7592
+ headers: jsonContentHeaders$h,
7599
7593
  method: 'POST',
7600
7594
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
7601
7595
  }, unmarshalFunction);
@@ -7678,7 +7672,7 @@ let API$i = class API extends API$r {
7678
7672
  */
7679
7673
  createCron = request => this.client.fetch({
7680
7674
  body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
7681
- headers: jsonContentHeaders$g,
7675
+ headers: jsonContentHeaders$h,
7682
7676
  method: 'POST',
7683
7677
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
7684
7678
  }, unmarshalCron);
@@ -7691,7 +7685,7 @@ let API$i = class API extends API$r {
7691
7685
  */
7692
7686
  updateCron = request => this.client.fetch({
7693
7687
  body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
7694
- headers: jsonContentHeaders$g,
7688
+ headers: jsonContentHeaders$h,
7695
7689
  method: 'PATCH',
7696
7690
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
7697
7691
  }, unmarshalCron);
@@ -7765,7 +7759,7 @@ let API$i = class API extends API$r {
7765
7759
  */
7766
7760
  createDomain = request => this.client.fetch({
7767
7761
  body: JSON.stringify(marshalCreateDomainRequest$1(request, this.client.settings)),
7768
- headers: jsonContentHeaders$g,
7762
+ headers: jsonContentHeaders$h,
7769
7763
  method: 'POST',
7770
7764
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
7771
7765
  }, unmarshalDomain$1);
@@ -7807,7 +7801,7 @@ let API$i = class API extends API$r {
7807
7801
  */
7808
7802
  createToken = (request = {}) => this.client.fetch({
7809
7803
  body: JSON.stringify(marshalCreateTokenRequest(request, this.client.settings)),
7810
- headers: jsonContentHeaders$g,
7804
+ headers: jsonContentHeaders$h,
7811
7805
  method: 'POST',
7812
7806
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
7813
7807
  }, unmarshalToken);
@@ -7857,7 +7851,7 @@ let API$i = class API extends API$r {
7857
7851
  }, unmarshalToken);
7858
7852
  createTrigger = request => this.client.fetch({
7859
7853
  body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
7860
- headers: jsonContentHeaders$g,
7854
+ headers: jsonContentHeaders$h,
7861
7855
  method: 'POST',
7862
7856
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
7863
7857
  }, unmarshalTrigger);
@@ -7892,7 +7886,7 @@ let API$i = class API extends API$r {
7892
7886
  listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
7893
7887
  updateTrigger = request => this.client.fetch({
7894
7888
  body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
7895
- headers: jsonContentHeaders$g,
7889
+ headers: jsonContentHeaders$h,
7896
7890
  method: 'PATCH',
7897
7891
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
7898
7892
  }, unmarshalTrigger);
@@ -7905,9 +7899,9 @@ let API$i = class API extends API$r {
7905
7899
  // This file was automatically generated. DO NOT EDIT.
7906
7900
  // If you have any remark or suggestion do not hesitate to open an issue.
7907
7901
 
7908
- var index_gen$f = /*#__PURE__*/Object.freeze({
7902
+ var index_gen$g = /*#__PURE__*/Object.freeze({
7909
7903
  __proto__: null,
7910
- API: API$i,
7904
+ API: API$j,
7911
7905
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
7912
7906
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$1,
7913
7907
  FUNCTION_TRANSIENT_STATUSES: FUNCTION_TRANSIENT_STATUSES,
@@ -7916,9 +7910,9 @@ var index_gen$f = /*#__PURE__*/Object.freeze({
7916
7910
  TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES
7917
7911
  });
7918
7912
 
7919
- var index$j = /*#__PURE__*/Object.freeze({
7913
+ var index$k = /*#__PURE__*/Object.freeze({
7920
7914
  __proto__: null,
7921
- v1beta1: index_gen$f
7915
+ v1beta1: index_gen$g
7922
7916
  });
7923
7917
 
7924
7918
  // This file was automatically generated. DO NOT EDIT.
@@ -8297,12 +8291,12 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
8297
8291
 
8298
8292
  // This file was automatically generated. DO NOT EDIT.
8299
8293
  // If you have any remark or suggestion do not hesitate to open an issue.
8300
- const jsonContentHeaders$f = {
8294
+ const jsonContentHeaders$g = {
8301
8295
  'Content-Type': 'application/json; charset=utf-8'
8302
8296
  };
8303
8297
 
8304
8298
  /** IAM API. */
8305
- let API$h = class API extends API$r {
8299
+ let API$i = class API extends API$s {
8306
8300
  pageOfListSSHKeys = (request = {}) => this.client.fetch({
8307
8301
  method: 'GET',
8308
8302
  path: `/iam/v1alpha1/ssh-keys`,
@@ -8329,7 +8323,7 @@ let API$h = class API extends API$r {
8329
8323
  */
8330
8324
  createSSHKey = request => this.client.fetch({
8331
8325
  body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
8332
- headers: jsonContentHeaders$f,
8326
+ headers: jsonContentHeaders$g,
8333
8327
  method: 'POST',
8334
8328
  path: `/iam/v1alpha1/ssh-keys`
8335
8329
  }, unmarshalSSHKey);
@@ -8356,7 +8350,7 @@ let API$h = class API extends API$r {
8356
8350
  */
8357
8351
  updateSSHKey = request => this.client.fetch({
8358
8352
  body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
8359
- headers: jsonContentHeaders$f,
8353
+ headers: jsonContentHeaders$g,
8360
8354
  method: 'PATCH',
8361
8355
  path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
8362
8356
  }, unmarshalSSHKey);
@@ -8444,7 +8438,7 @@ let API$h = class API extends API$r {
8444
8438
  */
8445
8439
  createApplication = request => this.client.fetch({
8446
8440
  body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
8447
- headers: jsonContentHeaders$f,
8441
+ headers: jsonContentHeaders$g,
8448
8442
  method: 'POST',
8449
8443
  path: `/iam/v1alpha1/applications`
8450
8444
  }, unmarshalApplication);
@@ -8472,7 +8466,7 @@ let API$h = class API extends API$r {
8472
8466
  */
8473
8467
  updateApplication = request => this.client.fetch({
8474
8468
  body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
8475
- headers: jsonContentHeaders$f,
8469
+ headers: jsonContentHeaders$g,
8476
8470
  method: 'PATCH',
8477
8471
  path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
8478
8472
  }, unmarshalApplication);
@@ -8516,7 +8510,7 @@ let API$h = class API extends API$r {
8516
8510
  */
8517
8511
  createGroup = request => this.client.fetch({
8518
8512
  body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
8519
- headers: jsonContentHeaders$f,
8513
+ headers: jsonContentHeaders$g,
8520
8514
  method: 'POST',
8521
8515
  path: `/iam/v1alpha1/groups`
8522
8516
  }, unmarshalGroup);
@@ -8543,7 +8537,7 @@ let API$h = class API extends API$r {
8543
8537
  */
8544
8538
  updateGroup = request => this.client.fetch({
8545
8539
  body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
8546
- headers: jsonContentHeaders$f,
8540
+ headers: jsonContentHeaders$g,
8547
8541
  method: 'PATCH',
8548
8542
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
8549
8543
  }, unmarshalGroup);
@@ -8558,7 +8552,7 @@ let API$h = class API extends API$r {
8558
8552
  */
8559
8553
  setGroupMembers = request => this.client.fetch({
8560
8554
  body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
8561
- headers: jsonContentHeaders$f,
8555
+ headers: jsonContentHeaders$g,
8562
8556
  method: 'PUT',
8563
8557
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/members`
8564
8558
  }, unmarshalGroup);
@@ -8573,7 +8567,7 @@ let API$h = class API extends API$r {
8573
8567
  */
8574
8568
  addGroupMember = request => this.client.fetch({
8575
8569
  body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
8576
- headers: jsonContentHeaders$f,
8570
+ headers: jsonContentHeaders$g,
8577
8571
  method: 'POST',
8578
8572
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
8579
8573
  }, unmarshalGroup);
@@ -8591,7 +8585,7 @@ let API$h = class API extends API$r {
8591
8585
  */
8592
8586
  addGroupMembers = request => this.client.fetch({
8593
8587
  body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
8594
- headers: jsonContentHeaders$f,
8588
+ headers: jsonContentHeaders$g,
8595
8589
  method: 'POST',
8596
8590
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-members`
8597
8591
  }, unmarshalGroup);
@@ -8610,7 +8604,7 @@ let API$h = class API extends API$r {
8610
8604
  */
8611
8605
  removeGroupMember = request => this.client.fetch({
8612
8606
  body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
8613
- headers: jsonContentHeaders$f,
8607
+ headers: jsonContentHeaders$g,
8614
8608
  method: 'POST',
8615
8609
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/remove-member`
8616
8610
  }, unmarshalGroup);
@@ -8656,7 +8650,7 @@ let API$h = class API extends API$r {
8656
8650
  */
8657
8651
  createPolicy = request => this.client.fetch({
8658
8652
  body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
8659
- headers: jsonContentHeaders$f,
8653
+ headers: jsonContentHeaders$g,
8660
8654
  method: 'POST',
8661
8655
  path: `/iam/v1alpha1/policies`
8662
8656
  }, unmarshalPolicy);
@@ -8685,7 +8679,7 @@ let API$h = class API extends API$r {
8685
8679
  */
8686
8680
  updatePolicy = request => this.client.fetch({
8687
8681
  body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
8688
- headers: jsonContentHeaders$f,
8682
+ headers: jsonContentHeaders$g,
8689
8683
  method: 'PATCH',
8690
8684
  path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}`
8691
8685
  }, unmarshalPolicy);
@@ -8712,7 +8706,7 @@ let API$h = class API extends API$r {
8712
8706
  */
8713
8707
  clonePolicy = request => this.client.fetch({
8714
8708
  body: '{}',
8715
- headers: jsonContentHeaders$f,
8709
+ headers: jsonContentHeaders$g,
8716
8710
  method: 'POST',
8717
8711
  path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}/clone`
8718
8712
  }, unmarshalPolicy);
@@ -8730,7 +8724,7 @@ let API$h = class API extends API$r {
8730
8724
  */
8731
8725
  setRules = request => this.client.fetch({
8732
8726
  body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
8733
- headers: jsonContentHeaders$f,
8727
+ headers: jsonContentHeaders$g,
8734
8728
  method: 'PUT',
8735
8729
  path: `/iam/v1alpha1/rules`
8736
8730
  }, unmarshalSetRulesResponse);
@@ -8801,7 +8795,7 @@ let API$h = class API extends API$r {
8801
8795
  */
8802
8796
  createAPIKey = request => this.client.fetch({
8803
8797
  body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
8804
- headers: jsonContentHeaders$f,
8798
+ headers: jsonContentHeaders$g,
8805
8799
  method: 'POST',
8806
8800
  path: `/iam/v1alpha1/api-keys`
8807
8801
  }, unmarshalAPIKey);
@@ -8831,7 +8825,7 @@ let API$h = class API extends API$r {
8831
8825
  */
8832
8826
  updateAPIKey = request => this.client.fetch({
8833
8827
  body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
8834
- headers: jsonContentHeaders$f,
8828
+ headers: jsonContentHeaders$g,
8835
8829
  method: 'PATCH',
8836
8830
  path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
8837
8831
  }, unmarshalAPIKey);
@@ -9148,15 +9142,15 @@ var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
9148
9142
  // This file was automatically generated. DO NOT EDIT.
9149
9143
  // If you have any remark or suggestion do not hesitate to open an issue.
9150
9144
 
9151
- var index_gen$e = /*#__PURE__*/Object.freeze({
9145
+ var index_gen$f = /*#__PURE__*/Object.freeze({
9152
9146
  __proto__: null,
9153
- API: API$h,
9147
+ API: API$i,
9154
9148
  ValidationRules: validationRules_gen$2
9155
9149
  });
9156
9150
 
9157
- var index$i = /*#__PURE__*/Object.freeze({
9151
+ var index$j = /*#__PURE__*/Object.freeze({
9158
9152
  __proto__: null,
9159
- v1alpha1: index_gen$e
9153
+ v1alpha1: index_gen$f
9160
9154
  });
9161
9155
 
9162
9156
  // This file was automatically generated. DO NOT EDIT.
@@ -9207,7 +9201,7 @@ const unmarshalServerTypeVolumeConstraintSizes = data => {
9207
9201
  minSize: data.min_size
9208
9202
  };
9209
9203
  };
9210
- const unmarshalVolume$1 = data => {
9204
+ const unmarshalVolume$2 = data => {
9211
9205
  if (!isJSONObject(data)) {
9212
9206
  throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
9213
9207
  }
@@ -9246,7 +9240,7 @@ const unmarshalImage$3 = data => {
9246
9240
  arch: data.arch,
9247
9241
  creationDate: unmarshalDate(data.creation_date),
9248
9242
  defaultBootscript: data.default_bootscript ? unmarshalBootscript(data.default_bootscript) : undefined,
9249
- extraVolumes: unmarshalMapOfObject(data.extra_volumes, unmarshalVolume$1),
9243
+ extraVolumes: unmarshalMapOfObject(data.extra_volumes, unmarshalVolume$2),
9250
9244
  fromServer: data.from_server,
9251
9245
  id: data.id,
9252
9246
  modificationDate: unmarshalDate(data.modification_date),
@@ -9679,7 +9673,7 @@ const unmarshalCreateVolumeResponse = data => {
9679
9673
  throw new TypeError(`Unmarshalling the type 'CreateVolumeResponse' failed as data isn't a dictionary.`);
9680
9674
  }
9681
9675
  return {
9682
- volume: data.volume ? unmarshalVolume$1(data.volume) : undefined
9676
+ volume: data.volume ? unmarshalVolume$2(data.volume) : undefined
9683
9677
  };
9684
9678
  };
9685
9679
  const unmarshalExportSnapshotResponse = data => {
@@ -9775,7 +9769,8 @@ const unmarshalGetServerTypesAvailabilityResponse = data => {
9775
9769
  throw new TypeError(`Unmarshalling the type 'GetServerTypesAvailabilityResponse' failed as data isn't a dictionary.`);
9776
9770
  }
9777
9771
  return {
9778
- servers: unmarshalMapOfObject(data.servers, unmarshalGetServerTypesAvailabilityResponseAvailability)
9772
+ servers: unmarshalMapOfObject(data.servers, unmarshalGetServerTypesAvailabilityResponseAvailability),
9773
+ totalCount: data.total_count
9779
9774
  };
9780
9775
  };
9781
9776
  const unmarshalGetSnapshotResponse = data => {
@@ -9791,7 +9786,7 @@ const unmarshalGetVolumeResponse = data => {
9791
9786
  throw new TypeError(`Unmarshalling the type 'GetVolumeResponse' failed as data isn't a dictionary.`);
9792
9787
  }
9793
9788
  return {
9794
- volume: data.volume ? unmarshalVolume$1(data.volume) : undefined
9789
+ volume: data.volume ? unmarshalVolume$2(data.volume) : undefined
9795
9790
  };
9796
9791
  };
9797
9792
  const unmarshalListBootscriptsResponse = data => {
@@ -9900,13 +9895,13 @@ const unmarshalListSnapshotsResponse$1 = data => {
9900
9895
  totalCount: data.total_count
9901
9896
  };
9902
9897
  };
9903
- const unmarshalListVolumesResponse = data => {
9898
+ const unmarshalListVolumesResponse$1 = data => {
9904
9899
  if (!isJSONObject(data)) {
9905
9900
  throw new TypeError(`Unmarshalling the type 'ListVolumesResponse' failed as data isn't a dictionary.`);
9906
9901
  }
9907
9902
  return {
9908
9903
  totalCount: data.total_count,
9909
- volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume$1)
9904
+ volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume$2)
9910
9905
  };
9911
9906
  };
9912
9907
  const unmarshalListVolumesTypesResponse = data => {
@@ -10027,7 +10022,7 @@ const unmarshalUpdateVolumeResponse = data => {
10027
10022
  throw new TypeError(`Unmarshalling the type 'UpdateVolumeResponse' failed as data isn't a dictionary.`);
10028
10023
  }
10029
10024
  return {
10030
- volume: data.volume ? unmarshalVolume$1(data.volume) : undefined
10025
+ volume: data.volume ? unmarshalVolume$2(data.volume) : undefined
10031
10026
  };
10032
10027
  };
10033
10028
  const marshalServerSummary$1 = (request, defaults) => ({
@@ -10310,7 +10305,7 @@ const marshalCreateSnapshotRequest$1 = (request, defaults) => ({
10310
10305
  value: request.organization
10311
10306
  }])
10312
10307
  });
10313
- const marshalCreateVolumeRequest = (request, defaults) => ({
10308
+ const marshalCreateVolumeRequest$1 = (request, defaults) => ({
10314
10309
  name: request.name || randomName('vol'),
10315
10310
  tags: request.tags,
10316
10311
  volume_type: request.volumeType ?? 'l_ssd',
@@ -10483,7 +10478,7 @@ const marshalUpdateServerRequest = (request, defaults) => ({
10483
10478
  [key]: marshalVolumeServerTemplate(value)
10484
10479
  }), {}) : undefined
10485
10480
  });
10486
- const marshalUpdateVolumeRequest = (request, defaults) => ({
10481
+ const marshalUpdateVolumeRequest$1 = (request, defaults) => ({
10487
10482
  name: request.name,
10488
10483
  size: request.size,
10489
10484
  tags: request.tags
@@ -10491,12 +10486,12 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
10491
10486
 
10492
10487
  // This file was automatically generated. DO NOT EDIT.
10493
10488
  // If you have any remark or suggestion do not hesitate to open an issue.
10494
- const jsonContentHeaders$e = {
10489
+ const jsonContentHeaders$f = {
10495
10490
  'Content-Type': 'application/json; charset=utf-8'
10496
10491
  };
10497
10492
 
10498
10493
  /** Instance API. */
10499
- let API$g = class API extends API$r {
10494
+ let API$h = class API extends API$s {
10500
10495
  /** Lists the available zones of the API. */
10501
10496
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
10502
10497
 
@@ -10552,7 +10547,7 @@ let API$g = class API extends API$r {
10552
10547
  listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
10553
10548
  _createServer = request => this.client.fetch({
10554
10549
  body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
10555
- headers: jsonContentHeaders$e,
10550
+ headers: jsonContentHeaders$f,
10556
10551
  method: 'POST',
10557
10552
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
10558
10553
  }, unmarshalCreateServerResponse);
@@ -10579,13 +10574,13 @@ let API$g = class API extends API$r {
10579
10574
  }, unmarshalGetServerResponse);
10580
10575
  _setServer = request => this.client.fetch({
10581
10576
  body: JSON.stringify(marshalSetServerRequest(request, this.client.settings)),
10582
- headers: jsonContentHeaders$e,
10577
+ headers: jsonContentHeaders$f,
10583
10578
  method: 'PUT',
10584
10579
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('id', request.id)}`
10585
10580
  }, unmarshalSetServerResponse);
10586
10581
  _updateServer = request => this.client.fetch({
10587
10582
  body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
10588
- headers: jsonContentHeaders$e,
10583
+ headers: jsonContentHeaders$f,
10589
10584
  method: 'PATCH',
10590
10585
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
10591
10586
  }, unmarshalUpdateServerResponse);
@@ -10622,7 +10617,7 @@ let API$g = class API extends API$r {
10622
10617
  */
10623
10618
  serverAction = request => this.client.fetch({
10624
10619
  body: JSON.stringify(marshalServerActionRequest(request, this.client.settings)),
10625
- headers: jsonContentHeaders$e,
10620
+ headers: jsonContentHeaders$f,
10626
10621
  method: 'POST',
10627
10622
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/action`
10628
10623
  }, unmarshalServerActionResponse);
@@ -10681,13 +10676,13 @@ let API$g = class API extends API$r {
10681
10676
  */
10682
10677
  createImage = request => this.client.fetch({
10683
10678
  body: JSON.stringify(marshalCreateImageRequest(request, this.client.settings)),
10684
- headers: jsonContentHeaders$e,
10679
+ headers: jsonContentHeaders$f,
10685
10680
  method: 'POST',
10686
10681
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`
10687
10682
  }, unmarshalCreateImageResponse);
10688
10683
  _setImage = request => this.client.fetch({
10689
10684
  body: JSON.stringify(marshalSetImageRequest(request, this.client.settings)),
10690
- headers: jsonContentHeaders$e,
10685
+ headers: jsonContentHeaders$f,
10691
10686
  method: 'PUT',
10692
10687
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('id', request.id)}`
10693
10688
  }, unmarshalSetImageResponse);
@@ -10726,7 +10721,7 @@ let API$g = class API extends API$r {
10726
10721
  */
10727
10722
  createSnapshot = (request = {}) => this.client.fetch({
10728
10723
  body: JSON.stringify(marshalCreateSnapshotRequest$1(request, this.client.settings)),
10729
- headers: jsonContentHeaders$e,
10724
+ headers: jsonContentHeaders$f,
10730
10725
  method: 'POST',
10731
10726
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
10732
10727
  }, unmarshalCreateSnapshotResponse);
@@ -10743,7 +10738,7 @@ let API$g = class API extends API$r {
10743
10738
  }, unmarshalGetSnapshotResponse);
10744
10739
  _setSnapshot = request => this.client.fetch({
10745
10740
  body: JSON.stringify(marshalSetSnapshotRequest(request, this.client.settings)),
10746
- headers: jsonContentHeaders$e,
10741
+ headers: jsonContentHeaders$f,
10747
10742
  method: 'PUT',
10748
10743
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
10749
10744
  }, unmarshalSetSnapshotResponse);
@@ -10767,7 +10762,7 @@ let API$g = class API extends API$r {
10767
10762
  */
10768
10763
  exportSnapshot = request => this.client.fetch({
10769
10764
  body: JSON.stringify(marshalExportSnapshotRequest(request, this.client.settings)),
10770
- headers: jsonContentHeaders$e,
10765
+ headers: jsonContentHeaders$f,
10771
10766
  method: 'POST',
10772
10767
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/export`
10773
10768
  }, unmarshalExportSnapshotResponse);
@@ -10775,7 +10770,7 @@ let API$g = class API extends API$r {
10775
10770
  method: 'GET',
10776
10771
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`,
10777
10772
  urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['volume_type', request.volumeType])
10778
- }, unmarshalListVolumesResponse);
10773
+ }, unmarshalListVolumesResponse$1);
10779
10774
 
10780
10775
  /**
10781
10776
  * List volumes. List volumes in the specified Availability Zone. You can
@@ -10794,8 +10789,8 @@ let API$g = class API extends API$r {
10794
10789
  * @returns A Promise of CreateVolumeResponse
10795
10790
  */
10796
10791
  createVolume = (request = {}) => this.client.fetch({
10797
- body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
10798
- headers: jsonContentHeaders$e,
10792
+ body: JSON.stringify(marshalCreateVolumeRequest$1(request, this.client.settings)),
10793
+ headers: jsonContentHeaders$f,
10799
10794
  method: 'POST',
10800
10795
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
10801
10796
  }, unmarshalCreateVolumeResponse);
@@ -10820,8 +10815,8 @@ let API$g = class API extends API$r {
10820
10815
  * @returns A Promise of UpdateVolumeResponse
10821
10816
  */
10822
10817
  updateVolume = request => this.client.fetch({
10823
- body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
10824
- headers: jsonContentHeaders$e,
10818
+ body: JSON.stringify(marshalUpdateVolumeRequest$1(request, this.client.settings)),
10819
+ headers: jsonContentHeaders$f,
10825
10820
  method: 'PATCH',
10826
10821
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
10827
10822
  }, unmarshalUpdateVolumeResponse);
@@ -10858,7 +10853,7 @@ let API$g = class API extends API$r {
10858
10853
  */
10859
10854
  createSecurityGroup = request => this.client.fetch({
10860
10855
  body: JSON.stringify(marshalCreateSecurityGroupRequest(request, this.client.settings)),
10861
- headers: jsonContentHeaders$e,
10856
+ headers: jsonContentHeaders$f,
10862
10857
  method: 'POST',
10863
10858
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups`
10864
10859
  }, unmarshalCreateSecurityGroupResponse);
@@ -10886,7 +10881,7 @@ let API$g = class API extends API$r {
10886
10881
  });
10887
10882
  _setSecurityGroup = request => this.client.fetch({
10888
10883
  body: JSON.stringify(marshalSetSecurityGroupRequest(request, this.client.settings)),
10889
- headers: jsonContentHeaders$e,
10884
+ headers: jsonContentHeaders$f,
10890
10885
  method: 'PUT',
10891
10886
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('id', request.id)}`
10892
10887
  }, unmarshalSetSecurityGroupResponse);
@@ -10924,7 +10919,7 @@ let API$g = class API extends API$r {
10924
10919
  */
10925
10920
  createSecurityGroupRule = request => this.client.fetch({
10926
10921
  body: JSON.stringify(marshalCreateSecurityGroupRuleRequest(request, this.client.settings)),
10927
- headers: jsonContentHeaders$e,
10922
+ headers: jsonContentHeaders$f,
10928
10923
  method: 'POST',
10929
10924
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
10930
10925
  }, unmarshalCreateSecurityGroupRuleResponse);
@@ -10940,7 +10935,7 @@ let API$g = class API extends API$r {
10940
10935
  */
10941
10936
  setSecurityGroupRules = request => this.client.fetch({
10942
10937
  body: JSON.stringify(marshalSetSecurityGroupRulesRequest(request, this.client.settings)),
10943
- headers: jsonContentHeaders$e,
10938
+ headers: jsonContentHeaders$f,
10944
10939
  method: 'PUT',
10945
10940
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
10946
10941
  }, unmarshalSetSecurityGroupRulesResponse);
@@ -10967,7 +10962,7 @@ let API$g = class API extends API$r {
10967
10962
  }, unmarshalGetSecurityGroupRuleResponse);
10968
10963
  _setSecurityGroupRule = request => this.client.fetch({
10969
10964
  body: JSON.stringify(marshalSetSecurityGroupRuleRequest(request, this.client.settings)),
10970
- headers: jsonContentHeaders$e,
10965
+ headers: jsonContentHeaders$f,
10971
10966
  method: 'PUT',
10972
10967
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules/${validatePathParam('securityGroupRuleId', request.securityGroupRuleId)}`
10973
10968
  }, unmarshalSetSecurityGroupRuleResponse);
@@ -10995,7 +10990,7 @@ let API$g = class API extends API$r {
10995
10990
  */
10996
10991
  createPlacementGroup = (request = {}) => this.client.fetch({
10997
10992
  body: JSON.stringify(marshalCreatePlacementGroupRequest(request, this.client.settings)),
10998
- headers: jsonContentHeaders$e,
10993
+ headers: jsonContentHeaders$f,
10999
10994
  method: 'POST',
11000
10995
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups`
11001
10996
  }, unmarshalCreatePlacementGroupResponse);
@@ -11019,7 +11014,7 @@ let API$g = class API extends API$r {
11019
11014
  */
11020
11015
  setPlacementGroup = request => this.client.fetch({
11021
11016
  body: JSON.stringify(marshalSetPlacementGroupRequest(request, this.client.settings)),
11022
- headers: jsonContentHeaders$e,
11017
+ headers: jsonContentHeaders$f,
11023
11018
  method: 'PUT',
11024
11019
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
11025
11020
  }, unmarshalSetPlacementGroupResponse);
@@ -11033,7 +11028,7 @@ let API$g = class API extends API$r {
11033
11028
  */
11034
11029
  updatePlacementGroup = request => this.client.fetch({
11035
11030
  body: JSON.stringify(marshalUpdatePlacementGroupRequest(request, this.client.settings)),
11036
- headers: jsonContentHeaders$e,
11031
+ headers: jsonContentHeaders$f,
11037
11032
  method: 'PATCH',
11038
11033
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
11039
11034
  }, unmarshalUpdatePlacementGroupResponse);
@@ -11069,7 +11064,7 @@ let API$g = class API extends API$r {
11069
11064
  */
11070
11065
  setPlacementGroupServers = request => this.client.fetch({
11071
11066
  body: JSON.stringify(marshalSetPlacementGroupServersRequest(request, this.client.settings)),
11072
- headers: jsonContentHeaders$e,
11067
+ headers: jsonContentHeaders$f,
11073
11068
  method: 'PUT',
11074
11069
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
11075
11070
  }, unmarshalSetPlacementGroupServersResponse);
@@ -11083,7 +11078,7 @@ let API$g = class API extends API$r {
11083
11078
  */
11084
11079
  updatePlacementGroupServers = request => this.client.fetch({
11085
11080
  body: JSON.stringify(marshalUpdatePlacementGroupServersRequest(request, this.client.settings)),
11086
- headers: jsonContentHeaders$e,
11081
+ headers: jsonContentHeaders$f,
11087
11082
  method: 'PATCH',
11088
11083
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
11089
11084
  }, unmarshalUpdatePlacementGroupServersResponse);
@@ -11110,7 +11105,7 @@ let API$g = class API extends API$r {
11110
11105
  */
11111
11106
  createIp = (request = {}) => this.client.fetch({
11112
11107
  body: JSON.stringify(marshalCreateIpRequest$1(request, this.client.settings)),
11113
- headers: jsonContentHeaders$e,
11108
+ headers: jsonContentHeaders$f,
11114
11109
  method: 'POST',
11115
11110
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
11116
11111
  }, unmarshalCreateIpResponse);
@@ -11135,7 +11130,7 @@ let API$g = class API extends API$r {
11135
11130
  */
11136
11131
  updateIp = request => this.client.fetch({
11137
11132
  body: JSON.stringify(marshalUpdateIpRequest$1(request, this.client.settings)),
11138
- headers: jsonContentHeaders$e,
11133
+ headers: jsonContentHeaders$f,
11139
11134
  method: 'PATCH',
11140
11135
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ip', request.ip)}`
11141
11136
  }, unmarshalUpdateIpResponse);
@@ -11171,7 +11166,7 @@ let API$g = class API extends API$r {
11171
11166
  */
11172
11167
  createPrivateNIC = request => this.client.fetch({
11173
11168
  body: JSON.stringify(marshalCreatePrivateNICRequest(request, this.client.settings)),
11174
- headers: jsonContentHeaders$e,
11169
+ headers: jsonContentHeaders$f,
11175
11170
  method: 'POST',
11176
11171
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics`
11177
11172
  }, unmarshalCreatePrivateNICResponse);
@@ -11196,7 +11191,7 @@ let API$g = class API extends API$r {
11196
11191
  */
11197
11192
  updatePrivateNIC = request => this.client.fetch({
11198
11193
  body: JSON.stringify(marshalUpdatePrivateNICRequest(request, this.client.settings)),
11199
- headers: jsonContentHeaders$e,
11194
+ headers: jsonContentHeaders$f,
11200
11195
  method: 'PATCH',
11201
11196
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`
11202
11197
  }, unmarshalPrivateNIC);
@@ -11333,7 +11328,7 @@ const validateNotUndefined = obj => {
11333
11328
  if (obj === undefined) throw new TypeError(`object was found undefined`);
11334
11329
  return obj;
11335
11330
  };
11336
- class InstanceV1UtilsAPI extends API$g {
11331
+ class InstanceV1UtilsAPI extends API$h {
11337
11332
  /**
11338
11333
  * Waits for {@link Image} to be in a final state.
11339
11334
  *
@@ -11690,7 +11685,7 @@ class InstanceV1UtilsAPI extends API$g {
11690
11685
  });
11691
11686
  }
11692
11687
 
11693
- var index$h = /*#__PURE__*/Object.freeze({
11688
+ var index$i = /*#__PURE__*/Object.freeze({
11694
11689
  __proto__: null,
11695
11690
  API: InstanceV1UtilsAPI,
11696
11691
  IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES$1,
@@ -11703,9 +11698,9 @@ var index$h = /*#__PURE__*/Object.freeze({
11703
11698
  VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES
11704
11699
  });
11705
11700
 
11706
- var index$g = /*#__PURE__*/Object.freeze({
11701
+ var index$h = /*#__PURE__*/Object.freeze({
11707
11702
  __proto__: null,
11708
- v1: index$h
11703
+ v1: index$i
11709
11704
  });
11710
11705
 
11711
11706
  // This file was automatically generated. DO NOT EDIT.
@@ -12149,7 +12144,7 @@ const marshalUpdateRouteRequest$1 = (request, defaults) => ({
12149
12144
 
12150
12145
  // This file was automatically generated. DO NOT EDIT.
12151
12146
  // If you have any remark or suggestion do not hesitate to open an issue.
12152
- const jsonContentHeaders$d = {
12147
+ const jsonContentHeaders$e = {
12153
12148
  'Content-Type': 'application/json; charset=utf-8'
12154
12149
  };
12155
12150
 
@@ -12158,7 +12153,7 @@ const jsonContentHeaders$d = {
12158
12153
  *
12159
12154
  * This API allows you to manage IoT hubs and devices. IoT Hub API.
12160
12155
  */
12161
- let API$f = class API extends API$r {
12156
+ let API$g = class API extends API$s {
12162
12157
  /** Lists the available regions of the API. */
12163
12158
  static LOCALITIES = ['fr-par'];
12164
12159
  pageOfListHubs = (request = {}) => this.client.fetch({
@@ -12186,7 +12181,7 @@ let API$f = class API extends API$r {
12186
12181
  */
12187
12182
  createHub = request => this.client.fetch({
12188
12183
  body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
12189
- headers: jsonContentHeaders$d,
12184
+ headers: jsonContentHeaders$e,
12190
12185
  method: 'POST',
12191
12186
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
12192
12187
  }, unmarshalHub);
@@ -12222,7 +12217,7 @@ let API$f = class API extends API$r {
12222
12217
  */
12223
12218
  updateHub = request => this.client.fetch({
12224
12219
  body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
12225
- headers: jsonContentHeaders$d,
12220
+ headers: jsonContentHeaders$e,
12226
12221
  method: 'PATCH',
12227
12222
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
12228
12223
  }, unmarshalHub);
@@ -12235,7 +12230,7 @@ let API$f = class API extends API$r {
12235
12230
  */
12236
12231
  enableHub = request => this.client.fetch({
12237
12232
  body: '{}',
12238
- headers: jsonContentHeaders$d,
12233
+ headers: jsonContentHeaders$e,
12239
12234
  method: 'POST',
12240
12235
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
12241
12236
  }, unmarshalHub);
@@ -12248,7 +12243,7 @@ let API$f = class API extends API$r {
12248
12243
  */
12249
12244
  disableHub = request => this.client.fetch({
12250
12245
  body: '{}',
12251
- headers: jsonContentHeaders$d,
12246
+ headers: jsonContentHeaders$e,
12252
12247
  method: 'POST',
12253
12248
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
12254
12249
  }, unmarshalHub);
@@ -12288,7 +12283,7 @@ let API$f = class API extends API$r {
12288
12283
  */
12289
12284
  setHubCA = request => this.client.fetch({
12290
12285
  body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
12291
- headers: jsonContentHeaders$d,
12286
+ headers: jsonContentHeaders$e,
12292
12287
  method: 'POST',
12293
12288
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
12294
12289
  }, unmarshalHub);
@@ -12328,7 +12323,7 @@ let API$f = class API extends API$r {
12328
12323
  */
12329
12324
  createDevice = request => this.client.fetch({
12330
12325
  body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
12331
- headers: jsonContentHeaders$d,
12326
+ headers: jsonContentHeaders$e,
12332
12327
  method: 'POST',
12333
12328
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
12334
12329
  }, unmarshalCreateDeviceResponse);
@@ -12355,7 +12350,7 @@ let API$f = class API extends API$r {
12355
12350
  */
12356
12351
  updateDevice = request => this.client.fetch({
12357
12352
  body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
12358
- headers: jsonContentHeaders$d,
12353
+ headers: jsonContentHeaders$e,
12359
12354
  method: 'PATCH',
12360
12355
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
12361
12356
  }, unmarshalDevice);
@@ -12368,7 +12363,7 @@ let API$f = class API extends API$r {
12368
12363
  */
12369
12364
  enableDevice = request => this.client.fetch({
12370
12365
  body: '{}',
12371
- headers: jsonContentHeaders$d,
12366
+ headers: jsonContentHeaders$e,
12372
12367
  method: 'POST',
12373
12368
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
12374
12369
  }, unmarshalDevice);
@@ -12381,7 +12376,7 @@ let API$f = class API extends API$r {
12381
12376
  */
12382
12377
  disableDevice = request => this.client.fetch({
12383
12378
  body: '{}',
12384
- headers: jsonContentHeaders$d,
12379
+ headers: jsonContentHeaders$e,
12385
12380
  method: 'POST',
12386
12381
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
12387
12382
  }, unmarshalDevice);
@@ -12395,7 +12390,7 @@ let API$f = class API extends API$r {
12395
12390
  */
12396
12391
  renewDeviceCertificate = request => this.client.fetch({
12397
12392
  body: '{}',
12398
- headers: jsonContentHeaders$d,
12393
+ headers: jsonContentHeaders$e,
12399
12394
  method: 'POST',
12400
12395
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
12401
12396
  }, unmarshalRenewDeviceCertificateResponse);
@@ -12409,7 +12404,7 @@ let API$f = class API extends API$r {
12409
12404
  */
12410
12405
  setDeviceCertificate = request => this.client.fetch({
12411
12406
  body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
12412
- headers: jsonContentHeaders$d,
12407
+ headers: jsonContentHeaders$e,
12413
12408
  method: 'PUT',
12414
12409
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
12415
12410
  }, unmarshalSetDeviceCertificateResponse);
@@ -12484,7 +12479,7 @@ let API$f = class API extends API$r {
12484
12479
  */
12485
12480
  createRoute = request => this.client.fetch({
12486
12481
  body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
12487
- headers: jsonContentHeaders$d,
12482
+ headers: jsonContentHeaders$e,
12488
12483
  method: 'POST',
12489
12484
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
12490
12485
  }, unmarshalRoute$1);
@@ -12498,7 +12493,7 @@ let API$f = class API extends API$r {
12498
12493
  */
12499
12494
  updateRoute = request => this.client.fetch({
12500
12495
  body: JSON.stringify(marshalUpdateRouteRequest$1(request, this.client.settings)),
12501
- headers: jsonContentHeaders$d,
12496
+ headers: jsonContentHeaders$e,
12502
12497
  method: 'PATCH',
12503
12498
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
12504
12499
  }, unmarshalRoute$1);
@@ -12550,7 +12545,7 @@ let API$f = class API extends API$r {
12550
12545
  */
12551
12546
  createNetwork = request => this.client.fetch({
12552
12547
  body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
12553
- headers: jsonContentHeaders$d,
12548
+ headers: jsonContentHeaders$e,
12554
12549
  method: 'POST',
12555
12550
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
12556
12551
  }, unmarshalCreateNetworkResponse);
@@ -12598,7 +12593,7 @@ let API$f = class API extends API$r {
12598
12593
  */
12599
12594
  putTwinDocument = request => this.client.fetch({
12600
12595
  body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
12601
- headers: jsonContentHeaders$d,
12596
+ headers: jsonContentHeaders$e,
12602
12597
  method: 'PUT',
12603
12598
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
12604
12599
  }, unmarshalTwinDocument);
@@ -12611,7 +12606,7 @@ let API$f = class API extends API$r {
12611
12606
  */
12612
12607
  patchTwinDocument = request => this.client.fetch({
12613
12608
  body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
12614
- headers: jsonContentHeaders$d,
12609
+ headers: jsonContentHeaders$e,
12615
12610
  method: 'PATCH',
12616
12611
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
12617
12612
  }, unmarshalTwinDocument);
@@ -12651,15 +12646,329 @@ let API$f = class API extends API$r {
12651
12646
  // This file was automatically generated. DO NOT EDIT.
12652
12647
  // If you have any remark or suggestion do not hesitate to open an issue.
12653
12648
 
12649
+ var index_gen$e = /*#__PURE__*/Object.freeze({
12650
+ __proto__: null,
12651
+ API: API$g,
12652
+ HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
12653
+ });
12654
+
12655
+ var index$g = /*#__PURE__*/Object.freeze({
12656
+ __proto__: null,
12657
+ v1: index_gen$e
12658
+ });
12659
+
12660
+ // This file was automatically generated. DO NOT EDIT.
12661
+ // If you have any remark or suggestion do not hesitate to open an issue.
12662
+
12663
+ /** Lists transient statutes of the enum {@link PinStatus}. */
12664
+ const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
12665
+
12666
+ // This file was automatically generated. DO NOT EDIT.
12667
+ // If you have any remark or suggestion do not hesitate to open an issue.
12668
+ const unmarshalPinCIDMeta = data => {
12669
+ if (!isJSONObject(data)) {
12670
+ throw new TypeError(`Unmarshalling the type 'PinCIDMeta' failed as data isn't a dictionary.`);
12671
+ }
12672
+ return {
12673
+ id: data.id
12674
+ };
12675
+ };
12676
+ const unmarshalPinCID = data => {
12677
+ if (!isJSONObject(data)) {
12678
+ throw new TypeError(`Unmarshalling the type 'PinCID' failed as data isn't a dictionary.`);
12679
+ }
12680
+ return {
12681
+ cid: data.cid,
12682
+ meta: data.meta ? unmarshalPinCIDMeta(data.meta) : undefined,
12683
+ name: data.name,
12684
+ origins: data.origins
12685
+ };
12686
+ };
12687
+ const unmarshalPinInfo = data => {
12688
+ if (!isJSONObject(data)) {
12689
+ throw new TypeError(`Unmarshalling the type 'PinInfo' failed as data isn't a dictionary.`);
12690
+ }
12691
+ return {
12692
+ id: data.id,
12693
+ progress: data.progress,
12694
+ size: data.size,
12695
+ statusDetails: data.status_details,
12696
+ url: data.url
12697
+ };
12698
+ };
12699
+ const unmarshalPin = data => {
12700
+ if (!isJSONObject(data)) {
12701
+ throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
12702
+ }
12703
+ return {
12704
+ cid: data.cid ? unmarshalPinCID(data.cid) : undefined,
12705
+ createdAt: unmarshalDate(data.created_at),
12706
+ delegates: data.delegates,
12707
+ info: data.info ? unmarshalPinInfo(data.info) : undefined,
12708
+ pinId: data.pin_id,
12709
+ status: data.status
12710
+ };
12711
+ };
12712
+ const unmarshalVolume$1 = data => {
12713
+ if (!isJSONObject(data)) {
12714
+ throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
12715
+ }
12716
+ return {
12717
+ countPin: data.count_pin,
12718
+ createdAt: unmarshalDate(data.created_at),
12719
+ id: data.id,
12720
+ name: data.name,
12721
+ projectId: data.project_id,
12722
+ region: data.region,
12723
+ size: data.size,
12724
+ tags: data.tags,
12725
+ updatedAt: unmarshalDate(data.updated_at)
12726
+ };
12727
+ };
12728
+ const unmarshalListPinsResponse = data => {
12729
+ if (!isJSONObject(data)) {
12730
+ throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
12731
+ }
12732
+ return {
12733
+ pins: unmarshalArrayOfObject(data.pins, unmarshalPin),
12734
+ totalCount: data.total_count
12735
+ };
12736
+ };
12737
+ const unmarshalListVolumesResponse = data => {
12738
+ if (!isJSONObject(data)) {
12739
+ throw new TypeError(`Unmarshalling the type 'ListVolumesResponse' failed as data isn't a dictionary.`);
12740
+ }
12741
+ return {
12742
+ totalCount: data.total_count,
12743
+ volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume$1)
12744
+ };
12745
+ };
12746
+ const unmarshalReplacePinResponse = data => {
12747
+ if (!isJSONObject(data)) {
12748
+ throw new TypeError(`Unmarshalling the type 'ReplacePinResponse' failed as data isn't a dictionary.`);
12749
+ }
12750
+ return {
12751
+ pin: data.pin ? unmarshalPin(data.pin) : undefined
12752
+ };
12753
+ };
12754
+ const marshalPinOptions = (request, defaults) => ({
12755
+ replication_count: request.replicationCount,
12756
+ required_zones: request.requiredZones
12757
+ });
12758
+ const marshalCreatePinByCIDRequest = (request, defaults) => ({
12759
+ cid: request.cid,
12760
+ name: request.name,
12761
+ origins: request.origins,
12762
+ pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
12763
+ volume_id: request.volumeId
12764
+ });
12765
+ const marshalCreatePinByURLRequest = (request, defaults) => ({
12766
+ name: request.name,
12767
+ pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
12768
+ url: request.url,
12769
+ volume_id: request.volumeId
12770
+ });
12771
+ const marshalCreateVolumeRequest = (request, defaults) => ({
12772
+ name: request.name,
12773
+ project_id: request.projectId ?? defaults.defaultProjectId
12774
+ });
12775
+ const marshalReplacePinRequest = (request, defaults) => ({
12776
+ cid: request.cid,
12777
+ name: request.name,
12778
+ origins: request.origins,
12779
+ pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
12780
+ volume_id: request.volumeId
12781
+ });
12782
+ const marshalUpdateVolumeRequest = (request, defaults) => ({
12783
+ name: request.name,
12784
+ tags: request.tags
12785
+ });
12786
+
12787
+ // This file was automatically generated. DO NOT EDIT.
12788
+ // If you have any remark or suggestion do not hesitate to open an issue.
12789
+ const jsonContentHeaders$d = {
12790
+ 'Content-Type': 'application/json; charset=utf-8'
12791
+ };
12792
+
12793
+ /** IPFS Pinning service API. */
12794
+ let API$f = class API extends API$s {
12795
+ /** Lists the available regions of the API. */
12796
+ static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
12797
+
12798
+ /**
12799
+ * Create a new volume. Create a new volume from a Project ID. Volume is
12800
+ * identified by an ID and used to host pin references. Volume is personal (at
12801
+ * least to your organization) even if IPFS blocks and CID are available to
12802
+ * anyone. Should be the first command you made because every pin must be
12803
+ * attached to a volume.
12804
+ *
12805
+ * @param request - The request {@link CreateVolumeRequest}
12806
+ * @returns A Promise of Volume
12807
+ */
12808
+ createVolume = request => this.client.fetch({
12809
+ body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
12810
+ headers: jsonContentHeaders$d,
12811
+ method: 'POST',
12812
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes`
12813
+ }, unmarshalVolume$1);
12814
+
12815
+ /**
12816
+ * Get information about a volume. Retrieve information about a specific
12817
+ * volume.
12818
+ *
12819
+ * @param request - The request {@link GetVolumeRequest}
12820
+ * @returns A Promise of Volume
12821
+ */
12822
+ getVolume = request => this.client.fetch({
12823
+ method: 'GET',
12824
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
12825
+ }, unmarshalVolume$1);
12826
+ pageOfListVolumes = (request = {}) => this.client.fetch({
12827
+ method: 'GET',
12828
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes`,
12829
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
12830
+ }, unmarshalListVolumesResponse);
12831
+
12832
+ /**
12833
+ * List all volumes by a Project ID. Retrieve information about all volumes
12834
+ * from a Project ID.
12835
+ *
12836
+ * @param request - The request {@link ListVolumesRequest}
12837
+ * @returns A Promise of ListVolumesResponse
12838
+ */
12839
+ listVolumes = (request = {}) => enrichForPagination('volumes', this.pageOfListVolumes, request);
12840
+
12841
+ /**
12842
+ * Update volume information. Update volume information (tag, name...).
12843
+ *
12844
+ * @param request - The request {@link UpdateVolumeRequest}
12845
+ * @returns A Promise of Volume
12846
+ */
12847
+ updateVolume = request => this.client.fetch({
12848
+ body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
12849
+ headers: jsonContentHeaders$d,
12850
+ method: 'PATCH',
12851
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
12852
+ }, unmarshalVolume$1);
12853
+
12854
+ /**
12855
+ * Delete an existing volume. Delete a volume by its ID and every pin attached
12856
+ * to this volume. This process can take a while to conclude, depending on the
12857
+ * size of your pinned content.
12858
+ *
12859
+ * @param request - The request {@link DeleteVolumeRequest}
12860
+ */
12861
+ deleteVolume = request => this.client.fetch({
12862
+ method: 'DELETE',
12863
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
12864
+ });
12865
+
12866
+ /**
12867
+ * Create a pin by URL. Will fetch and store the content pointed by the
12868
+ * provided URL. The content must be available on the public IPFS network. The
12869
+ * content (IPFS blocks) will be host by the pinning service until pin
12870
+ * deletion. From that point, any other IPFS peer can fetch and host your
12871
+ * content: Make sure to pin public or encrypted content. Many pin requests
12872
+ * (from different users) can target the same CID. A pin is defined by its ID
12873
+ * (UUID), its status (queued, pinning, pinned or failed) and target CID.
12874
+ *
12875
+ * @param request - The request {@link CreatePinByURLRequest}
12876
+ * @returns A Promise of Pin
12877
+ */
12878
+ createPinByURL = request => this.client.fetch({
12879
+ body: JSON.stringify(marshalCreatePinByURLRequest(request, this.client.settings)),
12880
+ headers: jsonContentHeaders$d,
12881
+ method: 'POST',
12882
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-url`
12883
+ }, unmarshalPin);
12884
+
12885
+ /**
12886
+ * Create a pin by CID. Will fetch and store the content pointed by the
12887
+ * provided CID. The content must be available on the public IPFS network. The
12888
+ * content (IPFS blocks) will be host by the pinning service until pin
12889
+ * deletion. From that point, any other IPFS peer can fetch and host your
12890
+ * content: Make sure to pin public or encrypted content. Many pin requests
12891
+ * (from different users) can target the same CID. A pin is defined by its ID
12892
+ * (UUID), its status (queued, pinning, pinned or failed) and target CID.
12893
+ *
12894
+ * @param request - The request {@link CreatePinByCIDRequest}
12895
+ * @returns A Promise of Pin
12896
+ */
12897
+ createPinByCID = request => this.client.fetch({
12898
+ body: JSON.stringify(marshalCreatePinByCIDRequest(request, this.client.settings)),
12899
+ headers: jsonContentHeaders$d,
12900
+ method: 'POST',
12901
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-cid`
12902
+ }, unmarshalPin);
12903
+ replacePin = request => this.client.fetch({
12904
+ body: JSON.stringify(marshalReplacePinRequest(request, this.client.settings)),
12905
+ headers: jsonContentHeaders$d,
12906
+ method: 'POST',
12907
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}/replace`
12908
+ }, unmarshalReplacePinResponse);
12909
+
12910
+ /**
12911
+ * Get pin information. Retrieve information about the provided **pin ID**,
12912
+ * such as status, last modification, and CID.
12913
+ *
12914
+ * @param request - The request {@link GetPinRequest}
12915
+ * @returns A Promise of Pin
12916
+ */
12917
+ getPin = request => this.client.fetch({
12918
+ method: 'GET',
12919
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
12920
+ urlParams: urlParams(['volume_id', request.volumeId])
12921
+ }, unmarshalPin);
12922
+
12923
+ /**
12924
+ * Waits for {@link Pin} to be in a final state.
12925
+ *
12926
+ * @param request - The request {@link GetPinRequest}
12927
+ * @param options - The waiting options
12928
+ * @returns A Promise of Pin
12929
+ */
12930
+ waitForPin = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!PIN_TRANSIENT_STATUSES.includes(res.status))), this.getPin, request, options);
12931
+ pageOfListPins = request => this.client.fetch({
12932
+ method: 'GET',
12933
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins`,
12934
+ 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], ['status', request.status ?? 'unknown_status'], ['volume_id', request.volumeId])
12935
+ }, unmarshalListPinsResponse);
12936
+
12937
+ /**
12938
+ * List all pins within a volume. Retrieve information about all pins into a
12939
+ * volume.
12940
+ *
12941
+ * @param request - The request {@link ListPinsRequest}
12942
+ * @returns A Promise of ListPinsResponse
12943
+ */
12944
+ listPins = request => enrichForPagination('pins', this.pageOfListPins, request);
12945
+
12946
+ /**
12947
+ * Create an unpin request. An unpin request means that you no longer own the
12948
+ * content. This content can therefore be removed and no longer provided on
12949
+ * the IPFS network.
12950
+ *
12951
+ * @param request - The request {@link DeletePinRequest}
12952
+ */
12953
+ deletePin = request => this.client.fetch({
12954
+ method: 'DELETE',
12955
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
12956
+ urlParams: urlParams(['volume_id', request.volumeId])
12957
+ });
12958
+ };
12959
+
12960
+ // This file was automatically generated. DO NOT EDIT.
12961
+ // If you have any remark or suggestion do not hesitate to open an issue.
12962
+
12654
12963
  var index_gen$d = /*#__PURE__*/Object.freeze({
12655
12964
  __proto__: null,
12656
12965
  API: API$f,
12657
- HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
12966
+ PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
12658
12967
  });
12659
12968
 
12660
12969
  var index$f = /*#__PURE__*/Object.freeze({
12661
12970
  __proto__: null,
12662
- v1: index_gen$d
12971
+ v1alpha1: index_gen$d
12663
12972
  });
12664
12973
 
12665
12974
  // This file was automatically generated. DO NOT EDIT.
@@ -12766,6 +13075,15 @@ const unmarshalCluster$1 = data => {
12766
13075
  version: data.version
12767
13076
  };
12768
13077
  };
13078
+ const unmarshalClusterType = data => {
13079
+ if (!isJSONObject(data)) {
13080
+ throw new TypeError(`Unmarshalling the type 'ClusterType' failed as data isn't a dictionary.`);
13081
+ }
13082
+ return {
13083
+ availability: data.availability,
13084
+ name: data.name
13085
+ };
13086
+ };
12769
13087
  const unmarshalNode = data => {
12770
13088
  if (!isJSONObject(data)) {
12771
13089
  throw new TypeError(`Unmarshalling the type 'Node' failed as data isn't a dictionary.`);
@@ -12854,6 +13172,15 @@ const unmarshalListClusterAvailableVersionsResponse = data => {
12854
13172
  versions: unmarshalArrayOfObject(data.versions, unmarshalVersion$2)
12855
13173
  };
12856
13174
  };
13175
+ const unmarshalListClusterTypesResponse = data => {
13176
+ if (!isJSONObject(data)) {
13177
+ throw new TypeError(`Unmarshalling the type 'ListClusterTypesResponse' failed as data isn't a dictionary.`);
13178
+ }
13179
+ return {
13180
+ clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
13181
+ totalCount: data.total_count
13182
+ };
13183
+ };
12857
13184
  const unmarshalListClustersResponse$1 = data => {
12858
13185
  if (!isJSONObject(data)) {
12859
13186
  throw new TypeError(`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`);
@@ -13060,7 +13387,7 @@ const jsonContentHeaders$c = {
13060
13387
  };
13061
13388
 
13062
13389
  /** Kubernetes API. */
13063
- let API$e = class API extends API$r {
13390
+ let API$e = class API extends API$s {
13064
13391
  /** Lists the available regions of the API. */
13065
13392
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
13066
13393
  pageOfListClusters = (request = {}) => this.client.fetch({
@@ -13428,6 +13755,20 @@ let API$e = class API extends API$r {
13428
13755
  method: 'GET',
13429
13756
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/versions/${validatePathParam('versionName', request.versionName)}`
13430
13757
  }, unmarshalVersion$2);
13758
+ pageOfListClusterTypes = (request = {}) => this.client.fetch({
13759
+ method: 'GET',
13760
+ path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/cluster-types`,
13761
+ urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
13762
+ }, unmarshalListClusterTypesResponse);
13763
+
13764
+ /**
13765
+ * List cluster types. List available cluster types and their technical
13766
+ * details.
13767
+ *
13768
+ * @param request - The request {@link ListClusterTypesRequest}
13769
+ * @returns A Promise of ListClusterTypesResponse
13770
+ */
13771
+ listClusterTypes = (request = {}) => enrichForPagination('clusterTypes', this.pageOfListClusterTypes, request);
13431
13772
  };
13432
13773
 
13433
13774
  class K8SUtilsAPI extends API$e {
@@ -13478,6 +13819,15 @@ const CreatePoolRequest = {
13478
13819
  minLength: 1
13479
13820
  }
13480
13821
  };
13822
+ const ListClusterTypesRequest = {
13823
+ page: {
13824
+ greaterThan: 0
13825
+ },
13826
+ pageSize: {
13827
+ greaterThan: 0,
13828
+ lessThanOrEqual: 100
13829
+ }
13830
+ };
13481
13831
  const ListClustersRequest = {
13482
13832
  name: {
13483
13833
  minLength: 1
@@ -13538,6 +13888,7 @@ var validationRules_gen$1 = /*#__PURE__*/Object.freeze({
13538
13888
  CreateClusterRequestOpenIDConnectConfig: CreateClusterRequestOpenIDConnectConfig,
13539
13889
  CreateClusterRequestPoolConfig: CreateClusterRequestPoolConfig,
13540
13890
  CreatePoolRequest: CreatePoolRequest,
13891
+ ListClusterTypesRequest: ListClusterTypesRequest,
13541
13892
  ListClustersRequest: ListClustersRequest,
13542
13893
  ListNodesRequest: ListNodesRequest,
13543
13894
  ListPoolsRequest: ListPoolsRequest,
@@ -14219,6 +14570,7 @@ const marshalCreateFrontendRequest = (request, defaults) => ({
14219
14570
  timeout_client: request.timeoutClient
14220
14571
  });
14221
14572
  const marshalCreateIpRequest = (request, defaults) => ({
14573
+ is_ipv6: request.isIpv6,
14222
14574
  reverse: request.reverse,
14223
14575
  ...resolveOneOf([{
14224
14576
  default: defaults.defaultProjectId,
@@ -14231,8 +14583,10 @@ const marshalCreateIpRequest = (request, defaults) => ({
14231
14583
  }])
14232
14584
  });
14233
14585
  const marshalCreateLbRequest = (request, defaults) => ({
14586
+ assign_flexible_ip: request.assignFlexibleIp,
14234
14587
  description: request.description,
14235
14588
  ip_id: request.ipId,
14589
+ ip_ids: request.ipIds,
14236
14590
  name: request.name || randomName('lb'),
14237
14591
  ssl_compatibility_level: request.sslCompatibilityLevel ?? 'ssl_compatibility_level_unknown',
14238
14592
  tags: request.tags,
@@ -14441,6 +14795,7 @@ const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
14441
14795
  timeout_client: request.timeoutClient
14442
14796
  });
14443
14797
  const marshalZonedApiCreateIpRequest = (request, defaults) => ({
14798
+ is_ipv6: request.isIpv6,
14444
14799
  reverse: request.reverse,
14445
14800
  ...resolveOneOf([{
14446
14801
  default: defaults.defaultProjectId,
@@ -14453,8 +14808,10 @@ const marshalZonedApiCreateIpRequest = (request, defaults) => ({
14453
14808
  }])
14454
14809
  });
14455
14810
  const marshalZonedApiCreateLbRequest = (request, defaults) => ({
14811
+ assign_flexible_ip: request.assignFlexibleIp,
14456
14812
  description: request.description,
14457
14813
  ip_id: request.ipId,
14814
+ ip_ids: request.ipIds,
14458
14815
  name: request.name || randomName('lb'),
14459
14816
  ssl_compatibility_level: request.sslCompatibilityLevel ?? 'ssl_compatibility_level_unknown',
14460
14817
  tags: request.tags,
@@ -14613,7 +14970,7 @@ const jsonContentHeaders$b = {
14613
14970
  *
14614
14971
  * This API allows you to manage your load balancer service. Load balancer API.
14615
14972
  */
14616
- let API$d = class API extends API$r {
14973
+ let API$d = class API extends API$s {
14617
14974
  /** Lists the available regions of the API. */
14618
14975
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
14619
14976
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -14719,7 +15076,7 @@ let API$d = class API extends API$r {
14719
15076
  * @param request - The request {@link CreateIpRequest}
14720
15077
  * @returns A Promise of Ip
14721
15078
  */
14722
- createIp = (request = {}) => this.client.fetch({
15079
+ createIp = request => this.client.fetch({
14723
15080
  body: JSON.stringify(marshalCreateIpRequest(request, this.client.settings)),
14724
15081
  headers: jsonContentHeaders$b,
14725
15082
  method: 'POST',
@@ -15007,7 +15364,7 @@ let API$d = class API extends API$r {
15007
15364
  pageOfListBackendStats = request => this.client.fetch({
15008
15365
  method: 'GET',
15009
15366
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
15010
- urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
15367
+ urlParams: urlParams(['backend_id', request.backendId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
15011
15368
  }, unmarshalListBackendStatsResponse);
15012
15369
  listBackendStats = request => enrichForPagination('backendServersStats', this.pageOfListBackendStats, request);
15013
15370
  pageOfListAcls = request => this.client.fetch({
@@ -15283,7 +15640,7 @@ let API$d = class API extends API$r {
15283
15640
  * This API allows you to manage your Scaleway Load Balancer services. Load
15284
15641
  * Balancer API.
15285
15642
  */
15286
- class ZonedAPI extends API$r {
15643
+ class ZonedAPI extends API$s {
15287
15644
  /** Lists the available zones of the API. */
15288
15645
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
15289
15646
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -15407,7 +15764,7 @@ class ZonedAPI extends API$r {
15407
15764
  * @param request - The request {@link ZonedApiCreateIpRequest}
15408
15765
  * @returns A Promise of Ip
15409
15766
  */
15410
- createIp = (request = {}) => this.client.fetch({
15767
+ createIp = request => this.client.fetch({
15411
15768
  body: JSON.stringify(marshalZonedApiCreateIpRequest(request, this.client.settings)),
15412
15769
  headers: jsonContentHeaders$b,
15413
15770
  method: 'POST',
@@ -15746,7 +16103,7 @@ class ZonedAPI extends API$r {
15746
16103
  pageOfListBackendStats = request => this.client.fetch({
15747
16104
  method: 'GET',
15748
16105
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
15749
- urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
16106
+ urlParams: urlParams(['backend_id', request.backendId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
15750
16107
  }, unmarshalListBackendStatsResponse);
15751
16108
 
15752
16109
  /**
@@ -16263,7 +16620,7 @@ const unmarshalListVersionsResponse$1 = data => {
16263
16620
  // This file was automatically generated. DO NOT EDIT.
16264
16621
  // If you have any remark or suggestion do not hesitate to open an issue.
16265
16622
  /** Marketplace API. */
16266
- let API$c = class API extends API$r {
16623
+ let API$c = class API extends API$s {
16267
16624
  pageOfListImages = (request = {}) => this.client.fetch({
16268
16625
  method: 'GET',
16269
16626
  path: `/marketplace/v1/images`,
@@ -16398,7 +16755,7 @@ const unmarshalListVersionsResponse = data => {
16398
16755
  // This file was automatically generated. DO NOT EDIT.
16399
16756
  // If you have any remark or suggestion do not hesitate to open an issue.
16400
16757
  /** Marketplace API. */
16401
- let API$b = class API extends API$r {
16758
+ let API$b = class API extends API$s {
16402
16759
  pageOfListImages = request => this.client.fetch({
16403
16760
  method: 'GET',
16404
16761
  path: `/marketplace/v2/images`,
@@ -16666,7 +17023,7 @@ const jsonContentHeaders$a = {
16666
17023
  * This API allows you to manage Scaleway Messaging and Queueing brokers.
16667
17024
  * Messaging and Queuing API.
16668
17025
  */
16669
- let API$a = class API extends API$r {
17026
+ let API$a = class API extends API$s {
16670
17027
  /** Lists the available regions of the API. */
16671
17028
  static LOCALITIES = ['fr-par'];
16672
17029
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -17538,7 +17895,7 @@ const jsonContentHeaders$9 = {
17538
17895
  };
17539
17896
 
17540
17897
  /** Managed Database for PostgreSQL and MySQL API. */
17541
- let API$9 = class API extends API$r {
17898
+ let API$9 = class API extends API$s {
17542
17899
  /** Lists the available regions of the API. */
17543
17900
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
17544
17901
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -18364,9 +18721,7 @@ let API$9 = class API extends API$r {
18364
18721
  /**
18365
18722
  * Create a new Database Instance endpoint. Create a new endpoint for a
18366
18723
  * Database Instance. You can add `load_balancer` and `private_network`
18367
- * specifications to the body of the request. Note that this action replaces
18368
- * your current endpoint, which means you might need to update any environment
18369
- * configurations that point to the old endpoint.
18724
+ * specifications to the body of the request.
18370
18725
  *
18371
18726
  * @param request - The request {@link CreateEndpointRequest}
18372
18727
  * @returns A Promise of Endpoint
@@ -18727,7 +19082,7 @@ const jsonContentHeaders$8 = {
18727
19082
  };
18728
19083
 
18729
19084
  /** Managed Database for Redis™ API. */
18730
- let API$8 = class API extends API$r {
19085
+ let API$8 = class API extends API$s {
18731
19086
  /** Lists the available zones of the API. */
18732
19087
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
18733
19088
 
@@ -19221,7 +19576,7 @@ const jsonContentHeaders$7 = {
19221
19576
  };
19222
19577
 
19223
19578
  /** Container Registry API. */
19224
- let API$7 = class API extends API$r {
19579
+ let API$7 = class API extends API$s {
19225
19580
  /** Lists the available regions of the API. */
19226
19581
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
19227
19582
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -19513,6 +19868,7 @@ const marshalPasswordGenerationParams = (request, defaults) => ({
19513
19868
  no_uppercase_letters: request.noUppercaseLetters
19514
19869
  });
19515
19870
  const marshalAddSecretOwnerRequest = (request, defaults) => ({
19871
+ product: request.product ?? 'unknown',
19516
19872
  product_name: request.productName
19517
19873
  });
19518
19874
  const marshalCreateSecretRequest = (request, defaults) => ({
@@ -19561,7 +19917,7 @@ const jsonContentHeaders$6 = {
19561
19917
  * Secret Manager API. This API allows you to conveniently store, access and
19562
19918
  * share sensitive data.
19563
19919
  */
19564
- let API$6 = class API extends API$r {
19920
+ let API$6 = class API extends API$s {
19565
19921
  /** Lists the available regions of the API. */
19566
19922
  static LOCALITIES = ['fr-par'];
19567
19923
 
@@ -19942,7 +20298,7 @@ const jsonContentHeaders$5 = {
19942
20298
  * access-key. Then, you can use other test commands by setting the
19943
20299
  * SCW_SECRET_KEY env variable.
19944
20300
  */
19945
- let API$5 = class API extends API$r {
20301
+ let API$5 = class API extends API$s {
19946
20302
  /**
19947
20303
  * Register a user. Register a human and return a access-key and a secret-key
19948
20304
  * that must be used in all other commands.
@@ -20127,6 +20483,26 @@ const unmarshalDomain = data => {
20127
20483
  status: data.status
20128
20484
  };
20129
20485
  };
20486
+ const unmarshalDomainLastStatusDkimRecord = data => {
20487
+ if (!isJSONObject(data)) {
20488
+ throw new TypeError(`Unmarshalling the type 'DomainLastStatusDkimRecord' failed as data isn't a dictionary.`);
20489
+ }
20490
+ return {
20491
+ error: data.error,
20492
+ lastValidAt: unmarshalDate(data.last_valid_at),
20493
+ status: data.status
20494
+ };
20495
+ };
20496
+ const unmarshalDomainLastStatusSpfRecord = data => {
20497
+ if (!isJSONObject(data)) {
20498
+ throw new TypeError(`Unmarshalling the type 'DomainLastStatusSpfRecord' failed as data isn't a dictionary.`);
20499
+ }
20500
+ return {
20501
+ error: data.error,
20502
+ lastValidAt: unmarshalDate(data.last_valid_at),
20503
+ status: data.status
20504
+ };
20505
+ };
20130
20506
  const unmarshalEmail = data => {
20131
20507
  if (!isJSONObject(data)) {
20132
20508
  throw new TypeError(`Unmarshalling the type 'Email' failed as data isn't a dictionary.`);
@@ -20156,6 +20532,17 @@ const unmarshalCreateEmailResponse = data => {
20156
20532
  emails: unmarshalArrayOfObject(data.emails, unmarshalEmail)
20157
20533
  };
20158
20534
  };
20535
+ const unmarshalDomainLastStatus = data => {
20536
+ if (!isJSONObject(data)) {
20537
+ throw new TypeError(`Unmarshalling the type 'DomainLastStatus' failed as data isn't a dictionary.`);
20538
+ }
20539
+ return {
20540
+ dkimRecord: data.dkim_record ? unmarshalDomainLastStatusDkimRecord(data.dkim_record) : undefined,
20541
+ domainId: data.domain_id,
20542
+ domainName: data.domain_name,
20543
+ spfRecord: data.spf_record ? unmarshalDomainLastStatusSpfRecord(data.spf_record) : undefined
20544
+ };
20545
+ };
20159
20546
  const unmarshalListDomainsResponse = data => {
20160
20547
  if (!isJSONObject(data)) {
20161
20548
  throw new TypeError(`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`);
@@ -20221,7 +20608,7 @@ const jsonContentHeaders$4 = {
20221
20608
  };
20222
20609
 
20223
20610
  /** Transactional Email API. */
20224
- let API$4 = class API extends API$r {
20611
+ let API$4 = class API extends API$s {
20225
20612
  /** Lists the available regions of the API. */
20226
20613
  static LOCALITIES = ['fr-par'];
20227
20614
 
@@ -20264,20 +20651,12 @@ let API$4 = class API extends API$r {
20264
20651
  pageOfListEmails = (request = {}) => this.client.fetch({
20265
20652
  method: 'GET',
20266
20653
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/emails`,
20267
- urlParams: urlParams(['domain_id', request.domainId], ['mail_from', request.mailFrom], ['mail_rcpt', request.mailRcpt], ['mail_to', request.mailTo], ['message_id', request.messageId], ['order_by', request.orderBy ?? 'created_at_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['since', request.since], ['statuses', request.statuses], ['subject', request.subject], ['until', request.until])
20654
+ urlParams: urlParams(['domain_id', request.domainId], ['mail_from', request.mailFrom], ['mail_rcpt', request.mailRcpt], ['mail_to', request.mailTo], ['message_id', request.messageId], ['order_by', request.orderBy ?? 'created_at_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['search', request.search], ['since', request.since], ['statuses', request.statuses], ['subject', request.subject], ['until', request.until])
20268
20655
  }, unmarshalListEmailsResponse);
20269
20656
 
20270
20657
  /**
20271
20658
  * List emails. Retrieve the list of emails sent from a specific domain or for
20272
- * a specific Project or Organization. You must specify the `region`. You can
20273
- * filter your emails in ascending or descending order using:
20274
- *
20275
- * - Created_at
20276
- * - Updated_at
20277
- * - Status
20278
- * - Mail_from
20279
- * - Mail_rcpt
20280
- * - Subject
20659
+ * a specific Project or Organization. You must specify the `region`.
20281
20660
  *
20282
20661
  * @param request - The request {@link ListEmailsRequest}
20283
20662
  * @returns A Promise of ListEmailsResponse
@@ -20388,6 +20767,19 @@ let API$4 = class API extends API$r {
20388
20767
  method: 'POST',
20389
20768
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}/check`
20390
20769
  }, unmarshalDomain);
20770
+
20771
+ /**
20772
+ * Display SPF and DKIM records status and potential errors. Display SPF and
20773
+ * DKIM records status and potential errors, including the found records to
20774
+ * make debugging easier.
20775
+ *
20776
+ * @param request - The request {@link GetDomainLastStatusRequest}
20777
+ * @returns A Promise of DomainLastStatus
20778
+ */
20779
+ getDomainLastStatus = request => this.client.fetch({
20780
+ method: 'GET',
20781
+ path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}/verification`
20782
+ }, unmarshalDomainLastStatus);
20391
20783
  };
20392
20784
 
20393
20785
  // This file was automatically generated. DO NOT EDIT.
@@ -20451,7 +20843,7 @@ const jsonContentHeaders$3 = {
20451
20843
  };
20452
20844
 
20453
20845
  /** VPC API. */
20454
- let API$3 = class API extends API$r {
20846
+ let API$3 = class API extends API$s {
20455
20847
  /** Lists the available zones of the API. */
20456
20848
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
20457
20849
  pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
@@ -20572,6 +20964,7 @@ const unmarshalVPC = data => {
20572
20964
  isDefault: data.is_default,
20573
20965
  name: data.name,
20574
20966
  organizationId: data.organization_id,
20967
+ privateNetworkCount: data.private_network_count,
20575
20968
  projectId: data.project_id,
20576
20969
  region: data.region,
20577
20970
  tags: data.tags,
@@ -20631,6 +21024,7 @@ const marshalCreatePrivateNetworkRequest = (request, defaults) => ({
20631
21024
  vpc_id: request.vpcId
20632
21025
  });
20633
21026
  const marshalCreateVPCRequest = (request, defaults) => ({
21027
+ default_private_network_name: request.defaultPrivateNetworkName,
20634
21028
  name: request.name || randomName('vpc'),
20635
21029
  project_id: request.projectId ?? defaults.defaultProjectId,
20636
21030
  tags: request.tags
@@ -20669,7 +21063,7 @@ const jsonContentHeaders$2 = {
20669
21063
  };
20670
21064
 
20671
21065
  /** VPC API. */
20672
- let API$2 = class API extends API$r {
21066
+ let API$2 = class API extends API$s {
20673
21067
  /** Lists the available regions of the API. */
20674
21068
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
20675
21069
  pageOfListVPCs = (request = {}) => this.client.fetch({
@@ -20692,7 +21086,7 @@ let API$2 = class API extends API$r {
20692
21086
  * @param request - The request {@link CreateVPCRequest}
20693
21087
  * @returns A Promise of VPC
20694
21088
  */
20695
- createVPC = (request = {}) => this.client.fetch({
21089
+ createVPC = request => this.client.fetch({
20696
21090
  body: JSON.stringify(marshalCreateVPCRequest(request, this.client.settings)),
20697
21091
  headers: jsonContentHeaders$2,
20698
21092
  method: 'POST',
@@ -21226,7 +21620,7 @@ const jsonContentHeaders$1 = {
21226
21620
  };
21227
21621
 
21228
21622
  /** Public Gateways API. */
21229
- let API$1 = class API extends API$r {
21623
+ let API$1 = class API extends API$s {
21230
21624
  /** Lists the available zones of the API. */
21231
21625
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
21232
21626
  pageOfListGateways = (request = {}) => this.client.fetch({
@@ -21934,7 +22328,7 @@ const jsonContentHeaders = {
21934
22328
  };
21935
22329
 
21936
22330
  /** Web Hosting API. */
21937
- class API extends API$r {
22331
+ class API extends API$s {
21938
22332
  /** Lists the available regions of the API. */
21939
22333
  static LOCALITIES = ['fr-par'];
21940
22334
 
@@ -22094,20 +22488,21 @@ var index = /*#__PURE__*/Object.freeze({
22094
22488
  v1alpha1: index_gen
22095
22489
  });
22096
22490
 
22097
- exports.API = API$r;
22098
- exports.Account = index$s;
22099
- exports.AppleSilicon = index$r;
22100
- exports.BareMetal = index$p;
22101
- exports.Billing = index$o;
22102
- exports.Cockpit = index$n;
22103
- exports.Container = index$m;
22104
- exports.Domain = index$l;
22105
- exports.Errors = index$t;
22106
- exports.FlexibleIP = index$k;
22107
- exports.Function = index$j;
22108
- exports.IAM = index$i;
22109
- exports.IOT = index$f;
22110
- exports.Instance = index$g;
22491
+ exports.API = API$s;
22492
+ exports.Account = index$t;
22493
+ exports.AppleSilicon = index$s;
22494
+ exports.BareMetal = index$q;
22495
+ exports.Billing = index$p;
22496
+ exports.Cockpit = index$o;
22497
+ exports.Container = index$n;
22498
+ exports.Domain = index$m;
22499
+ exports.Errors = index$u;
22500
+ exports.FlexibleIP = index$l;
22501
+ exports.Function = index$k;
22502
+ exports.IAM = index$j;
22503
+ exports.IOT = index$g;
22504
+ exports.IPFS = index$f;
22505
+ exports.Instance = index$h;
22111
22506
  exports.K8S = index$d;
22112
22507
  exports.LB = index$b;
22113
22508
  exports.MNQ = index$9;