@scaleway/sdk 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -390,7 +390,7 @@ const assertValidSettings = obj => {
390
390
  }
391
391
  };
392
392
 
393
- const version = 'v1.0.0';
393
+ const version = 'v1.1.0';
394
394
  const userAgent = `scaleway-sdk-js/${version}`;
395
395
 
396
396
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -1399,7 +1399,7 @@ const createAdvancedClient = (...configs) => {
1399
1399
  */
1400
1400
  const createClient = (profile = {}) => createAdvancedClient(withProfile(profile));
1401
1401
 
1402
- var index$r = /*#__PURE__*/Object.freeze({
1402
+ var index$t = /*#__PURE__*/Object.freeze({
1403
1403
  __proto__: null,
1404
1404
  AlreadyExistsError: AlreadyExistsError,
1405
1405
  DeniedAuthenticationError: DeniedAuthenticationError,
@@ -1521,7 +1521,7 @@ const waitForResource = (stop, fetcher, request, options, strategy = createExpon
1521
1521
  *
1522
1522
  * @internal
1523
1523
  */
1524
- let API$o = class API {
1524
+ let API$p = class API {
1525
1525
  constructor(client) {
1526
1526
  this.client = client;
1527
1527
  }
@@ -1883,12 +1883,12 @@ const marshalUpdateSSHKeyRequest$1 = (request, defaults) => ({
1883
1883
  });
1884
1884
 
1885
1885
  // This file was automatically generated. DO NOT EDIT.
1886
- const jsonContentHeaders$m = {
1886
+ const jsonContentHeaders$n = {
1887
1887
  'Content-Type': 'application/json; charset=utf-8'
1888
1888
  };
1889
1889
 
1890
1890
  /** Account API. */
1891
- class AccountV2Alpha1GenAPI extends API$o {
1891
+ class AccountV2Alpha1GenAPI extends API$p {
1892
1892
  pageOfListSSHKeys = (request = {}) => this.client.fetch({
1893
1893
  method: 'GET',
1894
1894
  path: `/account/v2alpha1/ssh-keys`,
@@ -1911,7 +1911,7 @@ class AccountV2Alpha1GenAPI extends API$o {
1911
1911
  */
1912
1912
  createSSHKey = request => this.client.fetch({
1913
1913
  body: JSON.stringify(marshalCreateSSHKeyRequest$1(request, this.client.settings)),
1914
- headers: jsonContentHeaders$m,
1914
+ headers: jsonContentHeaders$n,
1915
1915
  method: 'POST',
1916
1916
  path: `/account/v2alpha1/ssh-keys`
1917
1917
  }, unmarshalSSHKey$1);
@@ -1935,7 +1935,7 @@ class AccountV2Alpha1GenAPI extends API$o {
1935
1935
  */
1936
1936
  updateSSHKey = request => this.client.fetch({
1937
1937
  body: JSON.stringify(marshalUpdateSSHKeyRequest$1(request, this.client.settings)),
1938
- headers: jsonContentHeaders$m,
1938
+ headers: jsonContentHeaders$n,
1939
1939
  method: 'PATCH',
1940
1940
  path: `/account/v2alpha1/ssh-key/${validatePathParam('sshKeyId', request.sshKeyId)}`
1941
1941
  }, unmarshalSSHKey$1);
@@ -1951,7 +1951,7 @@ class AccountV2Alpha1GenAPI extends API$o {
1951
1951
  });
1952
1952
  }
1953
1953
 
1954
- var index$q = /*#__PURE__*/Object.freeze({
1954
+ var index$s = /*#__PURE__*/Object.freeze({
1955
1955
  __proto__: null,
1956
1956
  API: AccountV2Alpha1GenAPI
1957
1957
  });
@@ -1990,7 +1990,7 @@ const marshalUpdateProjectRequest = (request, defaults) => ({
1990
1990
  });
1991
1991
 
1992
1992
  // This file was automatically generated. DO NOT EDIT.
1993
- const jsonContentHeaders$l = {
1993
+ const jsonContentHeaders$m = {
1994
1994
  'Content-Type': 'application/json; charset=utf-8'
1995
1995
  };
1996
1996
 
@@ -1999,7 +1999,7 @@ const jsonContentHeaders$l = {
1999
1999
  *
2000
2000
  * This API allows you to manage projects.
2001
2001
  */
2002
- let API$n = class API extends API$o {
2002
+ let API$o = class API extends API$p {
2003
2003
  /**
2004
2004
  * Create project
2005
2005
  *
@@ -2008,7 +2008,7 @@ let API$n = class API extends API$o {
2008
2008
  */
2009
2009
  createProject = request => this.client.fetch({
2010
2010
  body: JSON.stringify(marshalCreateProjectRequest(request, this.client.settings)),
2011
- headers: jsonContentHeaders$l,
2011
+ headers: jsonContentHeaders$m,
2012
2012
  method: 'POST',
2013
2013
  path: `/account/v2/projects`
2014
2014
  }, unmarshalProject);
@@ -2055,7 +2055,7 @@ let API$n = class API extends API$o {
2055
2055
  */
2056
2056
  updateProject = (request = {}) => this.client.fetch({
2057
2057
  body: JSON.stringify(marshalUpdateProjectRequest(request, this.client.settings)),
2058
- headers: jsonContentHeaders$l,
2058
+ headers: jsonContentHeaders$m,
2059
2059
  method: 'PATCH',
2060
2060
  path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
2061
2061
  }, unmarshalProject);
@@ -2065,13 +2065,13 @@ let API$n = class API extends API$o {
2065
2065
 
2066
2066
  var index_gen$k = /*#__PURE__*/Object.freeze({
2067
2067
  __proto__: null,
2068
- API: API$n
2068
+ API: API$o
2069
2069
  });
2070
2070
 
2071
- var index$p = /*#__PURE__*/Object.freeze({
2071
+ var index$r = /*#__PURE__*/Object.freeze({
2072
2072
  __proto__: null,
2073
2073
  v2: index_gen$k,
2074
- v2alpha1: index$q
2074
+ v2alpha1: index$s
2075
2075
  });
2076
2076
 
2077
2077
  // This file was automatically generated. DO NOT EDIT.
@@ -2200,7 +2200,7 @@ const marshalUpdateServerRequest$2 = (request, defaults) => ({
2200
2200
  });
2201
2201
 
2202
2202
  // This file was automatically generated. DO NOT EDIT.
2203
- const jsonContentHeaders$k = {
2203
+ const jsonContentHeaders$l = {
2204
2204
  'Content-Type': 'application/json; charset=utf-8'
2205
2205
  };
2206
2206
 
@@ -2225,7 +2225,7 @@ const jsonContentHeaders$k = {
2225
2225
  * Cisco in the U.S. and other countries and is used by Apple under license.
2226
2226
  * Scaleway is not affiliated with Apple Inc.
2227
2227
  */
2228
- let API$m = class API extends API$o {
2228
+ let API$n = class API extends API$p {
2229
2229
  /** Lists the available zones of the API. */
2230
2230
  static LOCALITIES = ['fr-par-3'];
2231
2231
 
@@ -2259,7 +2259,7 @@ let API$m = class API extends API$o {
2259
2259
  */
2260
2260
  createServer = request => this.client.fetch({
2261
2261
  body: JSON.stringify(marshalCreateServerRequest$2(request, this.client.settings)),
2262
- headers: jsonContentHeaders$k,
2262
+ headers: jsonContentHeaders$l,
2263
2263
  method: 'POST',
2264
2264
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
2265
2265
  }, unmarshalServer$2);
@@ -2329,7 +2329,7 @@ let API$m = class API extends API$o {
2329
2329
  */
2330
2330
  updateServer = request => this.client.fetch({
2331
2331
  body: JSON.stringify(marshalUpdateServerRequest$2(request, this.client.settings)),
2332
- headers: jsonContentHeaders$k,
2332
+ headers: jsonContentHeaders$l,
2333
2333
  method: 'PATCH',
2334
2334
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
2335
2335
  }, unmarshalServer$2);
@@ -2352,7 +2352,7 @@ let API$m = class API extends API$o {
2352
2352
  */
2353
2353
  rebootServer = request => this.client.fetch({
2354
2354
  body: '{}',
2355
- headers: jsonContentHeaders$k,
2355
+ headers: jsonContentHeaders$l,
2356
2356
  method: 'POST',
2357
2357
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
2358
2358
  }, unmarshalServer$2);
@@ -2365,7 +2365,7 @@ let API$m = class API extends API$o {
2365
2365
  */
2366
2366
  reinstallServer = request => this.client.fetch({
2367
2367
  body: '{}',
2368
- headers: jsonContentHeaders$k,
2368
+ headers: jsonContentHeaders$l,
2369
2369
  method: 'POST',
2370
2370
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reinstall`
2371
2371
  }, unmarshalServer$2);
@@ -2375,11 +2375,11 @@ let API$m = class API extends API$o {
2375
2375
 
2376
2376
  var index_gen$j = /*#__PURE__*/Object.freeze({
2377
2377
  __proto__: null,
2378
- API: API$m,
2378
+ API: API$n,
2379
2379
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
2380
2380
  });
2381
2381
 
2382
- var index$o = /*#__PURE__*/Object.freeze({
2382
+ var index$q = /*#__PURE__*/Object.freeze({
2383
2383
  __proto__: null,
2384
2384
  v1alpha1: index_gen$j
2385
2385
  });
@@ -2538,7 +2538,7 @@ const unmarshalOS = data => {
2538
2538
  version: data.version
2539
2539
  };
2540
2540
  };
2541
- const unmarshalOffer = data => {
2541
+ const unmarshalOffer$1 = data => {
2542
2542
  if (!isJSONObject(data)) {
2543
2543
  throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
2544
2544
  }
@@ -2668,12 +2668,12 @@ const unmarshalListOSResponse = data => {
2668
2668
  totalCount: data.total_count
2669
2669
  };
2670
2670
  };
2671
- const unmarshalListOffersResponse = data => {
2671
+ const unmarshalListOffersResponse$1 = data => {
2672
2672
  if (!isJSONObject(data)) {
2673
2673
  throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
2674
2674
  }
2675
2675
  return {
2676
- offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
2676
+ offers: unmarshalArrayOfObject(data.offers, unmarshalOffer$1),
2677
2677
  totalCount: data.total_count
2678
2678
  };
2679
2679
  };
@@ -2796,7 +2796,7 @@ const marshalUpdateSettingRequest = (request, defaults) => ({
2796
2796
  });
2797
2797
 
2798
2798
  // This file was automatically generated. DO NOT EDIT.
2799
- const jsonContentHeaders$j = {
2799
+ const jsonContentHeaders$k = {
2800
2800
  'Content-Type': 'application/json; charset=utf-8'
2801
2801
  };
2802
2802
 
@@ -2805,7 +2805,7 @@ const jsonContentHeaders$j = {
2805
2805
  *
2806
2806
  * This API allows to manage your Bare metal server.
2807
2807
  */
2808
- let API$l = class API extends API$o {
2808
+ let API$m = class API extends API$p {
2809
2809
  /** Lists the available zones of the API. */
2810
2810
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
2811
2811
  pageOfListServers = (request = {}) => this.client.fetch({
@@ -2851,7 +2851,7 @@ let API$l = class API extends API$o {
2851
2851
  */
2852
2852
  createServer = request => this.client.fetch({
2853
2853
  body: JSON.stringify(marshalCreateServerRequest$1(request, this.client.settings)),
2854
- headers: jsonContentHeaders$j,
2854
+ headers: jsonContentHeaders$k,
2855
2855
  method: 'POST',
2856
2856
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
2857
2857
  }, unmarshalServer$1);
@@ -2864,7 +2864,7 @@ let API$l = class API extends API$o {
2864
2864
  */
2865
2865
  updateServer = request => this.client.fetch({
2866
2866
  body: JSON.stringify(marshalUpdateServerRequest$1(request, this.client.settings)),
2867
- headers: jsonContentHeaders$j,
2867
+ headers: jsonContentHeaders$k,
2868
2868
  method: 'PATCH',
2869
2869
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
2870
2870
  }, unmarshalServer$1);
@@ -2877,7 +2877,7 @@ let API$l = class API extends API$o {
2877
2877
  */
2878
2878
  installServer = request => this.client.fetch({
2879
2879
  body: JSON.stringify(marshalInstallServerRequest(request, this.client.settings)),
2880
- headers: jsonContentHeaders$j,
2880
+ headers: jsonContentHeaders$k,
2881
2881
  method: 'POST',
2882
2882
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
2883
2883
  }, unmarshalServer$1);
@@ -2913,7 +2913,7 @@ let API$l = class API extends API$o {
2913
2913
  */
2914
2914
  rebootServer = request => this.client.fetch({
2915
2915
  body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
2916
- headers: jsonContentHeaders$j,
2916
+ headers: jsonContentHeaders$k,
2917
2917
  method: 'POST',
2918
2918
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
2919
2919
  }, unmarshalServer$1);
@@ -2926,7 +2926,7 @@ let API$l = class API extends API$o {
2926
2926
  */
2927
2927
  startServer = request => this.client.fetch({
2928
2928
  body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
2929
- headers: jsonContentHeaders$j,
2929
+ headers: jsonContentHeaders$k,
2930
2930
  method: 'POST',
2931
2931
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
2932
2932
  }, unmarshalServer$1);
@@ -2939,7 +2939,7 @@ let API$l = class API extends API$o {
2939
2939
  */
2940
2940
  stopServer = request => this.client.fetch({
2941
2941
  body: '{}',
2942
- headers: jsonContentHeaders$j,
2942
+ headers: jsonContentHeaders$k,
2943
2943
  method: 'POST',
2944
2944
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/stop`
2945
2945
  }, unmarshalServer$1);
@@ -2975,7 +2975,7 @@ let API$l = class API extends API$o {
2975
2975
  */
2976
2976
  startBMCAccess = request => this.client.fetch({
2977
2977
  body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
2978
- headers: jsonContentHeaders$j,
2978
+ headers: jsonContentHeaders$k,
2979
2979
  method: 'POST',
2980
2980
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
2981
2981
  }, unmarshalBMCAccess);
@@ -3012,7 +3012,7 @@ let API$l = class API extends API$o {
3012
3012
  */
3013
3013
  updateIP = request => this.client.fetch({
3014
3014
  body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
3015
- headers: jsonContentHeaders$j,
3015
+ headers: jsonContentHeaders$k,
3016
3016
  method: 'PATCH',
3017
3017
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/ips/${validatePathParam('ipId', request.ipId)}`
3018
3018
  }, unmarshalIP$1);
@@ -3025,7 +3025,7 @@ let API$l = class API extends API$o {
3025
3025
  */
3026
3026
  addOptionServer = request => this.client.fetch({
3027
3027
  body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
3028
- headers: jsonContentHeaders$j,
3028
+ headers: jsonContentHeaders$k,
3029
3029
  method: 'POST',
3030
3030
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
3031
3031
  }, unmarshalServer$1);
@@ -3044,7 +3044,7 @@ let API$l = class API extends API$o {
3044
3044
  method: 'GET',
3045
3045
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/offers`,
3046
3046
  urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['subscription_period', request.subscriptionPeriod ?? 'unknown_subscription_period'])
3047
- }, unmarshalListOffersResponse);
3047
+ }, unmarshalListOffersResponse$1);
3048
3048
 
3049
3049
  /**
3050
3050
  * List all available server offers.
@@ -3063,7 +3063,7 @@ let API$l = class API extends API$o {
3063
3063
  getOffer = request => this.client.fetch({
3064
3064
  method: 'GET',
3065
3065
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/offers/${validatePathParam('offerId', request.offerId)}`
3066
- }, unmarshalOffer);
3066
+ }, unmarshalOffer$1);
3067
3067
 
3068
3068
  /**
3069
3069
  * Return specific option for the given ID.
@@ -3110,7 +3110,7 @@ let API$l = class API extends API$o {
3110
3110
  */
3111
3111
  updateSetting = request => this.client.fetch({
3112
3112
  body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
3113
- headers: jsonContentHeaders$j,
3113
+ headers: jsonContentHeaders$k,
3114
3114
  method: 'PATCH',
3115
3115
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/settings/${validatePathParam('settingId', request.settingId)}`
3116
3116
  }, unmarshalSetting);
@@ -3141,7 +3141,7 @@ let API$l = class API extends API$o {
3141
3141
  };
3142
3142
 
3143
3143
  /** Elastic Metal Private Network API. */
3144
- class PrivateNetworkAPI extends API$o {
3144
+ class PrivateNetworkAPI extends API$p {
3145
3145
  /** Lists the available zones of the API. */
3146
3146
  static LOCALITIES = ['fr-par-2'];
3147
3147
 
@@ -3154,7 +3154,7 @@ class PrivateNetworkAPI extends API$o {
3154
3154
  */
3155
3155
  addServerPrivateNetwork = request => this.client.fetch({
3156
3156
  body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
3157
- headers: jsonContentHeaders$j,
3157
+ headers: jsonContentHeaders$k,
3158
3158
  method: 'POST',
3159
3159
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
3160
3160
  }, unmarshalServerPrivateNetwork);
@@ -3168,7 +3168,7 @@ class PrivateNetworkAPI extends API$o {
3168
3168
  */
3169
3169
  setServerPrivateNetworks = request => this.client.fetch({
3170
3170
  body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
3171
- headers: jsonContentHeaders$j,
3171
+ headers: jsonContentHeaders$k,
3172
3172
  method: 'PUT',
3173
3173
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
3174
3174
  }, unmarshalSetServerPrivateNetworksResponse);
@@ -3199,7 +3199,7 @@ class PrivateNetworkAPI extends API$o {
3199
3199
  });
3200
3200
  }
3201
3201
 
3202
- class BaremetalV1UtilsAPI extends API$l {
3202
+ class BaremetalV1UtilsAPI extends API$m {
3203
3203
  /**
3204
3204
  * Waits for {@link ServerInstall} to be in a final state.
3205
3205
  *
@@ -3329,7 +3329,7 @@ const UpdateServerRequest = {
3329
3329
  }
3330
3330
  };
3331
3331
 
3332
- var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
3332
+ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
3333
3333
  __proto__: null,
3334
3334
  CreateServerRequest: CreateServerRequest,
3335
3335
  CreateServerRequestInstall: CreateServerRequestInstall,
@@ -3343,19 +3343,19 @@ var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
3343
3343
  UpdateServerRequest: UpdateServerRequest
3344
3344
  });
3345
3345
 
3346
- var index$n = /*#__PURE__*/Object.freeze({
3346
+ var index$p = /*#__PURE__*/Object.freeze({
3347
3347
  __proto__: null,
3348
3348
  API: BaremetalV1UtilsAPI,
3349
3349
  PrivateNetworkAPI: PrivateNetworkAPI,
3350
3350
  SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES,
3351
3351
  SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES,
3352
3352
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$1,
3353
- ValidationRules: validationRules_gen$3
3353
+ ValidationRules: validationRules_gen$4
3354
3354
  });
3355
3355
 
3356
- var index$m = /*#__PURE__*/Object.freeze({
3356
+ var index$o = /*#__PURE__*/Object.freeze({
3357
3357
  __proto__: null,
3358
- v1: index$n
3358
+ v1: index$p
3359
3359
  });
3360
3360
 
3361
3361
  // This file was automatically generated. DO NOT EDIT.
@@ -3535,7 +3535,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
3535
3535
  });
3536
3536
 
3537
3537
  // This file was automatically generated. DO NOT EDIT.
3538
- const jsonContentHeaders$i = {
3538
+ const jsonContentHeaders$j = {
3539
3539
  'Content-Type': 'application/json; charset=utf-8'
3540
3540
  };
3541
3541
 
@@ -3544,10 +3544,16 @@ const jsonContentHeaders$i = {
3544
3544
  *
3545
3545
  * This API allows to manage Cockpits.
3546
3546
  */
3547
- let API$k = class API extends API$o {
3547
+ let API$l = class API extends API$p {
3548
+ /**
3549
+ * Activate a cockpit associated with the given project ID.
3550
+ *
3551
+ * @param request - The request {@link ActivateCockpitRequest}
3552
+ * @returns A Promise of Cockpit
3553
+ */
3548
3554
  activateCockpit = (request = {}) => this.client.fetch({
3549
3555
  body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
3550
- headers: jsonContentHeaders$i,
3556
+ headers: jsonContentHeaders$j,
3551
3557
  method: 'POST',
3552
3558
  path: `/cockpit/v1beta1/activate`
3553
3559
  }, unmarshalCockpit);
@@ -3572,35 +3578,42 @@ let API$k = class API extends API$o {
3572
3578
  * @returns A Promise of Cockpit
3573
3579
  */
3574
3580
  waitForCockpit = (request = {}, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!COCKPIT_TRANSIENT_STATUSES.includes(res.status))), this.getCockpit, request, options);
3581
+
3582
+ /**
3583
+ * Deactivate a cockpit associated with the given project ID.
3584
+ *
3585
+ * @param request - The request {@link DeactivateCockpitRequest}
3586
+ * @returns A Promise of Cockpit
3587
+ */
3575
3588
  deactivateCockpit = (request = {}) => this.client.fetch({
3576
3589
  body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
3577
- headers: jsonContentHeaders$i,
3590
+ headers: jsonContentHeaders$j,
3578
3591
  method: 'POST',
3579
3592
  path: `/cockpit/v1beta1/deactivate`
3580
3593
  }, unmarshalCockpit);
3581
3594
 
3582
3595
  /**
3583
- * Reset the Grafana your cockpit associated with the given project ID.
3596
+ * Reset the Grafana of your cockpit associated with the given project ID.
3584
3597
  *
3585
3598
  * @param request - The request {@link ResetCockpitGrafanaRequest}
3586
3599
  * @returns A Promise of Cockpit
3587
3600
  */
3588
3601
  resetCockpitGrafana = (request = {}) => this.client.fetch({
3589
3602
  body: JSON.stringify(marshalResetCockpitGrafanaRequest(request, this.client.settings)),
3590
- headers: jsonContentHeaders$i,
3603
+ headers: jsonContentHeaders$j,
3591
3604
  method: 'POST',
3592
3605
  path: `/cockpit/v1beta1/reset-grafana`
3593
3606
  }, unmarshalCockpit);
3594
3607
 
3595
3608
  /**
3596
- * Create token associated with the given project ID.
3609
+ * Create a token associated with the given project ID.
3597
3610
  *
3598
3611
  * @param request - The request {@link CreateTokenRequest}
3599
3612
  * @returns A Promise of Token
3600
3613
  */
3601
3614
  createToken = request => this.client.fetch({
3602
3615
  body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
3603
- headers: jsonContentHeaders$i,
3616
+ headers: jsonContentHeaders$j,
3604
3617
  method: 'POST',
3605
3618
  path: `/cockpit/v1beta1/tokens`
3606
3619
  }, unmarshalToken$2);
@@ -3647,7 +3660,7 @@ let API$k = class API extends API$o {
3647
3660
  */
3648
3661
  createContactPoint = (request = {}) => this.client.fetch({
3649
3662
  body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
3650
- headers: jsonContentHeaders$i,
3663
+ headers: jsonContentHeaders$j,
3651
3664
  method: 'POST',
3652
3665
  path: `/cockpit/v1beta1/contact-points`
3653
3666
  }, unmarshalContactPoint);
@@ -3672,7 +3685,7 @@ let API$k = class API extends API$o {
3672
3685
  */
3673
3686
  deleteContactPoint = (request = {}) => this.client.fetch({
3674
3687
  body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
3675
- headers: jsonContentHeaders$i,
3688
+ headers: jsonContentHeaders$j,
3676
3689
  method: 'POST',
3677
3690
  path: `/cockpit/v1beta1/delete-contact-point`
3678
3691
  });
@@ -3684,7 +3697,7 @@ let API$k = class API extends API$o {
3684
3697
  */
3685
3698
  enableManagedAlerts = (request = {}) => this.client.fetch({
3686
3699
  body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
3687
- headers: jsonContentHeaders$i,
3700
+ headers: jsonContentHeaders$j,
3688
3701
  method: 'POST',
3689
3702
  path: `/cockpit/v1beta1/enable-managed-alerts`
3690
3703
  });
@@ -3696,7 +3709,7 @@ let API$k = class API extends API$o {
3696
3709
  */
3697
3710
  disableManagedAlerts = (request = {}) => this.client.fetch({
3698
3711
  body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
3699
- headers: jsonContentHeaders$i,
3712
+ headers: jsonContentHeaders$j,
3700
3713
  method: 'POST',
3701
3714
  path: `/cockpit/v1beta1/disable-managed-alerts`
3702
3715
  });
@@ -3708,7 +3721,7 @@ let API$k = class API extends API$o {
3708
3721
  */
3709
3722
  triggerTestAlert = (request = {}) => this.client.fetch({
3710
3723
  body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
3711
- headers: jsonContentHeaders$i,
3724
+ headers: jsonContentHeaders$j,
3712
3725
  method: 'POST',
3713
3726
  path: `/cockpit/v1beta1/trigger-test-alert`
3714
3727
  });
@@ -3721,7 +3734,7 @@ let API$k = class API extends API$o {
3721
3734
  */
3722
3735
  createGrafanaUser = request => this.client.fetch({
3723
3736
  body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
3724
- headers: jsonContentHeaders$i,
3737
+ headers: jsonContentHeaders$j,
3725
3738
  method: 'POST',
3726
3739
  path: `/cockpit/v1beta1/grafana-users`
3727
3740
  }, unmarshalGrafanaUser);
@@ -3746,7 +3759,7 @@ let API$k = class API extends API$o {
3746
3759
  */
3747
3760
  deleteGrafanaUser = request => this.client.fetch({
3748
3761
  body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
3749
- headers: jsonContentHeaders$i,
3762
+ headers: jsonContentHeaders$j,
3750
3763
  method: 'POST',
3751
3764
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
3752
3765
  });
@@ -3759,7 +3772,7 @@ let API$k = class API extends API$o {
3759
3772
  */
3760
3773
  resetGrafanaUserPassword = request => this.client.fetch({
3761
3774
  body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
3762
- headers: jsonContentHeaders$i,
3775
+ headers: jsonContentHeaders$j,
3763
3776
  method: 'POST',
3764
3777
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
3765
3778
  }, unmarshalGrafanaUser);
@@ -3769,11 +3782,11 @@ let API$k = class API extends API$o {
3769
3782
 
3770
3783
  var index_gen$i = /*#__PURE__*/Object.freeze({
3771
3784
  __proto__: null,
3772
- API: API$k,
3785
+ API: API$l,
3773
3786
  COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
3774
3787
  });
3775
3788
 
3776
- var index$l = /*#__PURE__*/Object.freeze({
3789
+ var index$n = /*#__PURE__*/Object.freeze({
3777
3790
  __proto__: null,
3778
3791
  v1beta1: index_gen$i
3779
3792
  });
@@ -4039,7 +4052,7 @@ const marshalUpdateNamespaceRequest$3 = (request, defaults) => ({
4039
4052
  });
4040
4053
 
4041
4054
  // This file was automatically generated. DO NOT EDIT.
4042
- const jsonContentHeaders$h = {
4055
+ const jsonContentHeaders$i = {
4043
4056
  'Content-Type': 'application/json; charset=utf-8'
4044
4057
  };
4045
4058
 
@@ -4048,7 +4061,7 @@ const jsonContentHeaders$h = {
4048
4061
  *
4049
4062
  * Serverless Containers API.
4050
4063
  */
4051
- let API$j = class API extends API$o {
4064
+ let API$k = class API extends API$p {
4052
4065
  /** Lists the available regions of the API. */
4053
4066
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
4054
4067
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -4093,7 +4106,7 @@ let API$j = class API extends API$o {
4093
4106
  */
4094
4107
  createNamespace = (request = {}) => this.client.fetch({
4095
4108
  body: JSON.stringify(marshalCreateNamespaceRequest$3(request, this.client.settings)),
4096
- headers: jsonContentHeaders$h,
4109
+ headers: jsonContentHeaders$i,
4097
4110
  method: 'POST',
4098
4111
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
4099
4112
  }, unmarshalNamespace$3);
@@ -4106,7 +4119,7 @@ let API$j = class API extends API$o {
4106
4119
  */
4107
4120
  updateNamespace = request => this.client.fetch({
4108
4121
  body: JSON.stringify(marshalUpdateNamespaceRequest$3(request, this.client.settings)),
4109
- headers: jsonContentHeaders$h,
4122
+ headers: jsonContentHeaders$i,
4110
4123
  method: 'PATCH',
4111
4124
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
4112
4125
  }, unmarshalNamespace$3);
@@ -4163,7 +4176,7 @@ let API$j = class API extends API$o {
4163
4176
  */
4164
4177
  createContainer = request => this.client.fetch({
4165
4178
  body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
4166
- headers: jsonContentHeaders$h,
4179
+ headers: jsonContentHeaders$i,
4167
4180
  method: 'POST',
4168
4181
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
4169
4182
  }, unmarshalContainer);
@@ -4176,7 +4189,7 @@ let API$j = class API extends API$o {
4176
4189
  */
4177
4190
  updateContainer = request => this.client.fetch({
4178
4191
  body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
4179
- headers: jsonContentHeaders$h,
4192
+ headers: jsonContentHeaders$i,
4180
4193
  method: 'PATCH',
4181
4194
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
4182
4195
  }, unmarshalContainer);
@@ -4200,7 +4213,7 @@ let API$j = class API extends API$o {
4200
4213
  */
4201
4214
  deployContainer = request => this.client.fetch({
4202
4215
  body: '{}',
4203
- headers: jsonContentHeaders$h,
4216
+ headers: jsonContentHeaders$i,
4204
4217
  method: 'POST',
4205
4218
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
4206
4219
  }, unmarshalContainer);
@@ -4246,7 +4259,7 @@ let API$j = class API extends API$o {
4246
4259
  */
4247
4260
  createCron = request => this.client.fetch({
4248
4261
  body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
4249
- headers: jsonContentHeaders$h,
4262
+ headers: jsonContentHeaders$i,
4250
4263
  method: 'POST',
4251
4264
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
4252
4265
  }, unmarshalCron$1);
@@ -4259,7 +4272,7 @@ let API$j = class API extends API$o {
4259
4272
  */
4260
4273
  updateCron = request => this.client.fetch({
4261
4274
  body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
4262
- headers: jsonContentHeaders$h,
4275
+ headers: jsonContentHeaders$i,
4263
4276
  method: 'PATCH',
4264
4277
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
4265
4278
  }, unmarshalCron$1);
@@ -4329,7 +4342,7 @@ let API$j = class API extends API$o {
4329
4342
  */
4330
4343
  createDomain = request => this.client.fetch({
4331
4344
  body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
4332
- headers: jsonContentHeaders$h,
4345
+ headers: jsonContentHeaders$i,
4333
4346
  method: 'POST',
4334
4347
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
4335
4348
  }, unmarshalDomain$3);
@@ -4366,7 +4379,7 @@ let API$j = class API extends API$o {
4366
4379
  */
4367
4380
  createToken = (request = {}) => this.client.fetch({
4368
4381
  body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
4369
- headers: jsonContentHeaders$h,
4382
+ headers: jsonContentHeaders$i,
4370
4383
  method: 'POST',
4371
4384
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
4372
4385
  }, unmarshalToken$1);
@@ -4420,7 +4433,7 @@ let API$j = class API extends API$o {
4420
4433
 
4421
4434
  var index_gen$h = /*#__PURE__*/Object.freeze({
4422
4435
  __proto__: null,
4423
- API: API$j,
4436
+ API: API$k,
4424
4437
  CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
4425
4438
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
4426
4439
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
@@ -4428,7 +4441,7 @@ var index_gen$h = /*#__PURE__*/Object.freeze({
4428
4441
  TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1
4429
4442
  });
4430
4443
 
4431
- var index$k = /*#__PURE__*/Object.freeze({
4444
+ var index$m = /*#__PURE__*/Object.freeze({
4432
4445
  __proto__: null,
4433
4446
  v1beta1: index_gen$h
4434
4447
  });
@@ -4875,7 +4888,7 @@ const unmarshalHost = data => {
4875
4888
  status: data.status
4876
4889
  };
4877
4890
  };
4878
- const unmarshalNameserver = data => {
4891
+ const unmarshalNameserver$1 = data => {
4879
4892
  if (!isJSONObject(data)) {
4880
4893
  throw new TypeError(`Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`);
4881
4894
  }
@@ -5058,7 +5071,7 @@ const unmarshalListDNSZoneNameserversResponse = data => {
5058
5071
  throw new TypeError(`Unmarshalling the type 'ListDNSZoneNameserversResponse' failed as data isn't a dictionary.`);
5059
5072
  }
5060
5073
  return {
5061
- ns: unmarshalArrayOfObject(data.ns, unmarshalNameserver)
5074
+ ns: unmarshalArrayOfObject(data.ns, unmarshalNameserver$1)
5062
5075
  };
5063
5076
  };
5064
5077
  const unmarshalListDNSZoneRecordsResponse = data => {
@@ -5193,7 +5206,7 @@ const unmarshalUpdateDNSZoneNameserversResponse = data => {
5193
5206
  throw new TypeError(`Unmarshalling the type 'UpdateDNSZoneNameserversResponse' failed as data isn't a dictionary.`);
5194
5207
  }
5195
5208
  return {
5196
- ns: unmarshalArrayOfObject(data.ns, unmarshalNameserver)
5209
+ ns: unmarshalArrayOfObject(data.ns, unmarshalNameserver$1)
5197
5210
  };
5198
5211
  };
5199
5212
  const unmarshalUpdateDNSZoneRecordsResponse = data => {
@@ -5618,7 +5631,7 @@ const marshalUpdateDNSZoneRequest = (request, defaults) => ({
5618
5631
  });
5619
5632
 
5620
5633
  // This file was automatically generated. DO NOT EDIT.
5621
- const jsonContentHeaders$g = {
5634
+ const jsonContentHeaders$h = {
5622
5635
  'Content-Type': 'application/json; charset=utf-8'
5623
5636
  };
5624
5637
 
@@ -5627,7 +5640,7 @@ const jsonContentHeaders$g = {
5627
5640
  *
5628
5641
  * Manage your DNS zones and records.
5629
5642
  */
5630
- let API$i = class API extends API$o {
5643
+ let API$j = class API extends API$p {
5631
5644
  pageOfListDNSZones = request => this.client.fetch({
5632
5645
  method: 'GET',
5633
5646
  path: `/domain/v2beta1/dns-zones`,
@@ -5651,7 +5664,7 @@ let API$i = class API extends API$o {
5651
5664
  */
5652
5665
  createDNSZone = request => this.client.fetch({
5653
5666
  body: JSON.stringify(marshalCreateDNSZoneRequest(request, this.client.settings)),
5654
- headers: jsonContentHeaders$g,
5667
+ headers: jsonContentHeaders$h,
5655
5668
  method: 'POST',
5656
5669
  path: `/domain/v2beta1/dns-zones`
5657
5670
  }, unmarshalDNSZone);
@@ -5664,7 +5677,7 @@ let API$i = class API extends API$o {
5664
5677
  */
5665
5678
  updateDNSZone = request => this.client.fetch({
5666
5679
  body: JSON.stringify(marshalUpdateDNSZoneRequest(request, this.client.settings)),
5667
- headers: jsonContentHeaders$g,
5680
+ headers: jsonContentHeaders$h,
5668
5681
  method: 'PATCH',
5669
5682
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
5670
5683
  }, unmarshalDNSZone);
@@ -5677,7 +5690,7 @@ let API$i = class API extends API$o {
5677
5690
  */
5678
5691
  cloneDNSZone = request => this.client.fetch({
5679
5692
  body: JSON.stringify(marshalCloneDNSZoneRequest(request, this.client.settings)),
5680
- headers: jsonContentHeaders$g,
5693
+ headers: jsonContentHeaders$h,
5681
5694
  method: 'POST',
5682
5695
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
5683
5696
  }, unmarshalDNSZone);
@@ -5732,7 +5745,7 @@ let API$i = class API extends API$o {
5732
5745
  */
5733
5746
  updateDNSZoneRecords = request => this.client.fetch({
5734
5747
  body: JSON.stringify(marshalUpdateDNSZoneRecordsRequest(request, this.client.settings)),
5735
- headers: jsonContentHeaders$g,
5748
+ headers: jsonContentHeaders$h,
5736
5749
  method: 'PATCH',
5737
5750
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
5738
5751
  }, unmarshalUpdateDNSZoneRecordsResponse);
@@ -5758,7 +5771,7 @@ let API$i = class API extends API$o {
5758
5771
  */
5759
5772
  updateDNSZoneNameservers = request => this.client.fetch({
5760
5773
  body: JSON.stringify(marshalUpdateDNSZoneNameserversRequest(request, this.client.settings)),
5761
- headers: jsonContentHeaders$g,
5774
+ headers: jsonContentHeaders$h,
5762
5775
  method: 'PUT',
5763
5776
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
5764
5777
  }, unmarshalUpdateDNSZoneNameserversResponse);
@@ -5796,7 +5809,7 @@ let API$i = class API extends API$o {
5796
5809
  */
5797
5810
  importRawDNSZone = request => this.client.fetch({
5798
5811
  body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
5799
- headers: jsonContentHeaders$g,
5812
+ headers: jsonContentHeaders$h,
5800
5813
  method: 'POST',
5801
5814
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
5802
5815
  }, unmarshalImportRawDNSZoneResponse);
@@ -5809,7 +5822,7 @@ let API$i = class API extends API$o {
5809
5822
  */
5810
5823
  importProviderDNSZone = request => this.client.fetch({
5811
5824
  body: JSON.stringify(marshalImportProviderDNSZoneRequest(request, this.client.settings)),
5812
- headers: jsonContentHeaders$g,
5825
+ headers: jsonContentHeaders$h,
5813
5826
  method: 'POST',
5814
5827
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
5815
5828
  }, unmarshalImportProviderDNSZoneResponse);
@@ -5823,7 +5836,7 @@ let API$i = class API extends API$o {
5823
5836
  */
5824
5837
  refreshDNSZone = request => this.client.fetch({
5825
5838
  body: JSON.stringify(marshalRefreshDNSZoneRequest(request, this.client.settings)),
5826
- headers: jsonContentHeaders$g,
5839
+ headers: jsonContentHeaders$h,
5827
5840
  method: 'POST',
5828
5841
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/refresh`
5829
5842
  }, unmarshalRefreshDNSZoneResponse);
@@ -5875,7 +5888,7 @@ let API$i = class API extends API$o {
5875
5888
  */
5876
5889
  restoreDNSZoneVersion = request => this.client.fetch({
5877
5890
  body: '{}',
5878
- headers: jsonContentHeaders$g,
5891
+ headers: jsonContentHeaders$h,
5879
5892
  method: 'POST',
5880
5893
  path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
5881
5894
  }, unmarshalRestoreDNSZoneVersionResponse);
@@ -5908,7 +5921,7 @@ let API$i = class API extends API$o {
5908
5921
  */
5909
5922
  createSSLCertificate = request => this.client.fetch({
5910
5923
  body: JSON.stringify(marshalCreateSSLCertificateRequest(request, this.client.settings)),
5911
- headers: jsonContentHeaders$g,
5924
+ headers: jsonContentHeaders$h,
5912
5925
  method: 'POST',
5913
5926
  path: `/domain/v2beta1/ssl-certificates`
5914
5927
  }, unmarshalSSLCertificate);
@@ -5964,7 +5977,7 @@ let API$i = class API extends API$o {
5964
5977
  *
5965
5978
  * Manage your domains and contacts.
5966
5979
  */
5967
- class RegistrarAPI extends API$o {
5980
+ class RegistrarAPI extends API$p {
5968
5981
  pageOfListTasks = (request = {}) => this.client.fetch({
5969
5982
  method: 'GET',
5970
5983
  path: `/domain/v2beta1/tasks`,
@@ -5988,7 +6001,7 @@ class RegistrarAPI extends API$o {
5988
6001
  */
5989
6002
  buyDomains = request => this.client.fetch({
5990
6003
  body: JSON.stringify(marshalRegistrarApiBuyDomainsRequest(request, this.client.settings)),
5991
- headers: jsonContentHeaders$g,
6004
+ headers: jsonContentHeaders$h,
5992
6005
  method: 'POST',
5993
6006
  path: `/domain/v2beta1/buy-domains`
5994
6007
  }, unmarshalOrderResponse);
@@ -6001,7 +6014,7 @@ class RegistrarAPI extends API$o {
6001
6014
  */
6002
6015
  renewDomains = request => this.client.fetch({
6003
6016
  body: JSON.stringify(marshalRegistrarApiRenewDomainsRequest(request, this.client.settings)),
6004
- headers: jsonContentHeaders$g,
6017
+ headers: jsonContentHeaders$h,
6005
6018
  method: 'POST',
6006
6019
  path: `/domain/v2beta1/renew-domains`
6007
6020
  }, unmarshalOrderResponse);
@@ -6014,7 +6027,7 @@ class RegistrarAPI extends API$o {
6014
6027
  */
6015
6028
  transferInDomain = request => this.client.fetch({
6016
6029
  body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
6017
- headers: jsonContentHeaders$g,
6030
+ headers: jsonContentHeaders$h,
6018
6031
  method: 'POST',
6019
6032
  path: `/domain/v2beta1/domains/transfer-domains`
6020
6033
  }, unmarshalOrderResponse);
@@ -6031,7 +6044,7 @@ class RegistrarAPI extends API$o {
6031
6044
  */
6032
6045
  tradeDomain = request => this.client.fetch({
6033
6046
  body: JSON.stringify(marshalRegistrarApiTradeDomainRequest(request, this.client.settings)),
6034
- headers: jsonContentHeaders$g,
6047
+ headers: jsonContentHeaders$h,
6035
6048
  method: 'POST',
6036
6049
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
6037
6050
  }, unmarshalOrderResponse);
@@ -6045,7 +6058,7 @@ class RegistrarAPI extends API$o {
6045
6058
  */
6046
6059
  registerExternalDomain = request => this.client.fetch({
6047
6060
  body: JSON.stringify(marshalRegistrarApiRegisterExternalDomainRequest(request, this.client.settings)),
6048
- headers: jsonContentHeaders$g,
6061
+ headers: jsonContentHeaders$h,
6049
6062
  method: 'POST',
6050
6063
  path: `/domain/v2beta1/external-domains`
6051
6064
  }, unmarshalRegisterExternalDomainResponse);
@@ -6071,7 +6084,7 @@ class RegistrarAPI extends API$o {
6071
6084
  */
6072
6085
  checkContactsCompatibility = (request = {}) => this.client.fetch({
6073
6086
  body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, this.client.settings)),
6074
- headers: jsonContentHeaders$g,
6087
+ headers: jsonContentHeaders$h,
6075
6088
  method: 'POST',
6076
6089
  path: `/domain/v2beta1/check-contacts-compatibility`
6077
6090
  }, unmarshalCheckContactsCompatibilityResponse);
@@ -6110,7 +6123,7 @@ class RegistrarAPI extends API$o {
6110
6123
  */
6111
6124
  updateContact = request => this.client.fetch({
6112
6125
  body: JSON.stringify(marshalRegistrarApiUpdateContactRequest(request, this.client.settings)),
6113
- headers: jsonContentHeaders$g,
6126
+ headers: jsonContentHeaders$h,
6114
6127
  method: 'PATCH',
6115
6128
  path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
6116
6129
  }, unmarshalContact);
@@ -6172,7 +6185,7 @@ class RegistrarAPI extends API$o {
6172
6185
  */
6173
6186
  updateDomain = request => this.client.fetch({
6174
6187
  body: JSON.stringify(marshalRegistrarApiUpdateDomainRequest(request, this.client.settings)),
6175
- headers: jsonContentHeaders$g,
6188
+ headers: jsonContentHeaders$h,
6176
6189
  method: 'PATCH',
6177
6190
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
6178
6191
  }, unmarshalDomain$2);
@@ -6186,7 +6199,7 @@ class RegistrarAPI extends API$o {
6186
6199
  */
6187
6200
  lockDomainTransfer = request => this.client.fetch({
6188
6201
  body: '{}',
6189
- headers: jsonContentHeaders$g,
6202
+ headers: jsonContentHeaders$h,
6190
6203
  method: 'POST',
6191
6204
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
6192
6205
  }, unmarshalDomain$2);
@@ -6200,7 +6213,7 @@ class RegistrarAPI extends API$o {
6200
6213
  */
6201
6214
  unlockDomainTransfer = request => this.client.fetch({
6202
6215
  body: '{}',
6203
- headers: jsonContentHeaders$g,
6216
+ headers: jsonContentHeaders$h,
6204
6217
  method: 'POST',
6205
6218
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
6206
6219
  }, unmarshalDomain$2);
@@ -6214,7 +6227,7 @@ class RegistrarAPI extends API$o {
6214
6227
  */
6215
6228
  enableDomainAutoRenew = request => this.client.fetch({
6216
6229
  body: '{}',
6217
- headers: jsonContentHeaders$g,
6230
+ headers: jsonContentHeaders$h,
6218
6231
  method: 'POST',
6219
6232
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
6220
6233
  }, unmarshalDomain$2);
@@ -6228,7 +6241,7 @@ class RegistrarAPI extends API$o {
6228
6241
  */
6229
6242
  disableDomainAutoRenew = request => this.client.fetch({
6230
6243
  body: '{}',
6231
- headers: jsonContentHeaders$g,
6244
+ headers: jsonContentHeaders$h,
6232
6245
  method: 'POST',
6233
6246
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
6234
6247
  }, unmarshalDomain$2);
@@ -6276,7 +6289,7 @@ class RegistrarAPI extends API$o {
6276
6289
  */
6277
6290
  enableDomainDNSSEC = request => this.client.fetch({
6278
6291
  body: JSON.stringify(marshalRegistrarApiEnableDomainDNSSECRequest(request, this.client.settings)),
6279
- headers: jsonContentHeaders$g,
6292
+ headers: jsonContentHeaders$h,
6280
6293
  method: 'POST',
6281
6294
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
6282
6295
  }, unmarshalDomain$2);
@@ -6289,7 +6302,7 @@ class RegistrarAPI extends API$o {
6289
6302
  */
6290
6303
  disableDomainDNSSEC = request => this.client.fetch({
6291
6304
  body: '{}',
6292
- headers: jsonContentHeaders$g,
6305
+ headers: jsonContentHeaders$h,
6293
6306
  method: 'POST',
6294
6307
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
6295
6308
  }, unmarshalDomain$2);
@@ -6318,7 +6331,7 @@ class RegistrarAPI extends API$o {
6318
6331
  */
6319
6332
  createDomainHost = request => this.client.fetch({
6320
6333
  body: JSON.stringify(marshalRegistrarApiCreateDomainHostRequest(request, this.client.settings)),
6321
- headers: jsonContentHeaders$g,
6334
+ headers: jsonContentHeaders$h,
6322
6335
  method: 'POST',
6323
6336
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts`
6324
6337
  }, unmarshalHost);
@@ -6344,7 +6357,7 @@ class RegistrarAPI extends API$o {
6344
6357
  */
6345
6358
  updateDomainHost = request => this.client.fetch({
6346
6359
  body: JSON.stringify(marshalRegistrarApiUpdateDomainHostRequest(request, this.client.settings)),
6347
- headers: jsonContentHeaders$g,
6360
+ headers: jsonContentHeaders$h,
6348
6361
  method: 'PATCH',
6349
6362
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
6350
6363
  }, unmarshalHost);
@@ -6365,7 +6378,7 @@ class RegistrarAPI extends API$o {
6365
6378
 
6366
6379
  var index_gen$g = /*#__PURE__*/Object.freeze({
6367
6380
  __proto__: null,
6368
- API: API$i,
6381
+ API: API$j,
6369
6382
  DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
6370
6383
  DOMAIN_FEATURE_TRANSIENT_STATUSES: DOMAIN_FEATURE_TRANSIENT_STATUSES,
6371
6384
  DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES,
@@ -6376,7 +6389,7 @@ var index_gen$g = /*#__PURE__*/Object.freeze({
6376
6389
  TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES$1
6377
6390
  });
6378
6391
 
6379
- var index$j = /*#__PURE__*/Object.freeze({
6392
+ var index$l = /*#__PURE__*/Object.freeze({
6380
6393
  __proto__: null,
6381
6394
  v2beta1: index_gen$g
6382
6395
  });
@@ -6483,12 +6496,12 @@ const marshalUpdateFlexibleIPRequest = (request, defaults) => ({
6483
6496
  });
6484
6497
 
6485
6498
  // This file was automatically generated. DO NOT EDIT.
6486
- const jsonContentHeaders$f = {
6499
+ const jsonContentHeaders$g = {
6487
6500
  'Content-Type': 'application/json; charset=utf-8'
6488
6501
  };
6489
6502
 
6490
6503
  /** Flexible IP API. */
6491
- let API$h = class API extends API$o {
6504
+ let API$i = class API extends API$p {
6492
6505
  /** Lists the available zones of the API. */
6493
6506
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
6494
6507
 
@@ -6500,7 +6513,7 @@ let API$h = class API extends API$o {
6500
6513
  */
6501
6514
  createFlexibleIP = request => this.client.fetch({
6502
6515
  body: JSON.stringify(marshalCreateFlexibleIPRequest(request, this.client.settings)),
6503
- headers: jsonContentHeaders$f,
6516
+ headers: jsonContentHeaders$g,
6504
6517
  method: 'POST',
6505
6518
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
6506
6519
  }, unmarshalFlexibleIP);
@@ -6546,7 +6559,7 @@ let API$h = class API extends API$o {
6546
6559
  */
6547
6560
  updateFlexibleIP = request => this.client.fetch({
6548
6561
  body: JSON.stringify(marshalUpdateFlexibleIPRequest(request, this.client.settings)),
6549
- headers: jsonContentHeaders$f,
6562
+ headers: jsonContentHeaders$g,
6550
6563
  method: 'PATCH',
6551
6564
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
6552
6565
  }, unmarshalFlexibleIP);
@@ -6569,7 +6582,7 @@ let API$h = class API extends API$o {
6569
6582
  */
6570
6583
  attachFlexibleIP = request => this.client.fetch({
6571
6584
  body: JSON.stringify(marshalAttachFlexibleIPRequest(request, this.client.settings)),
6572
- headers: jsonContentHeaders$f,
6585
+ headers: jsonContentHeaders$g,
6573
6586
  method: 'POST',
6574
6587
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
6575
6588
  }, unmarshalAttachFlexibleIPsResponse);
@@ -6582,7 +6595,7 @@ let API$h = class API extends API$o {
6582
6595
  */
6583
6596
  detachFlexibleIP = request => this.client.fetch({
6584
6597
  body: JSON.stringify(marshalDetachFlexibleIPRequest(request, this.client.settings)),
6585
- headers: jsonContentHeaders$f,
6598
+ headers: jsonContentHeaders$g,
6586
6599
  method: 'POST',
6587
6600
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
6588
6601
  }, unmarshalDetachFlexibleIPsResponse);
@@ -6595,7 +6608,7 @@ let API$h = class API extends API$o {
6595
6608
  */
6596
6609
  generateMACAddr = request => this.client.fetch({
6597
6610
  body: JSON.stringify(marshalGenerateMACAddrRequest(request, this.client.settings)),
6598
- headers: jsonContentHeaders$f,
6611
+ headers: jsonContentHeaders$g,
6599
6612
  method: 'POST',
6600
6613
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
6601
6614
  }, unmarshalFlexibleIP);
@@ -6609,13 +6622,13 @@ let API$h = class API extends API$o {
6609
6622
  */
6610
6623
  duplicateMACAddr = request => this.client.fetch({
6611
6624
  body: JSON.stringify(marshalDuplicateMACAddrRequest(request, this.client.settings)),
6612
- headers: jsonContentHeaders$f,
6625
+ headers: jsonContentHeaders$g,
6613
6626
  method: 'POST',
6614
6627
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
6615
6628
  }, unmarshalFlexibleIP);
6616
6629
  moveMACAddr = request => this.client.fetch({
6617
6630
  body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
6618
- headers: jsonContentHeaders$f,
6631
+ headers: jsonContentHeaders$g,
6619
6632
  method: 'POST',
6620
6633
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
6621
6634
  }, unmarshalFlexibleIP);
@@ -6644,7 +6657,7 @@ const ListFlexibleIPsRequest = {
6644
6657
  }
6645
6658
  };
6646
6659
 
6647
- var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
6660
+ var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
6648
6661
  __proto__: null,
6649
6662
  ListFlexibleIPsRequest: ListFlexibleIPsRequest
6650
6663
  });
@@ -6653,13 +6666,13 @@ var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
6653
6666
 
6654
6667
  var index_gen$f = /*#__PURE__*/Object.freeze({
6655
6668
  __proto__: null,
6656
- API: API$h,
6669
+ API: API$i,
6657
6670
  FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
6658
6671
  MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
6659
- ValidationRules: validationRules_gen$2
6672
+ ValidationRules: validationRules_gen$3
6660
6673
  });
6661
6674
 
6662
- var index$i = /*#__PURE__*/Object.freeze({
6675
+ var index$k = /*#__PURE__*/Object.freeze({
6663
6676
  __proto__: null,
6664
6677
  v1alpha1: index_gen$f
6665
6678
  });
@@ -7090,7 +7103,7 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
7090
7103
  });
7091
7104
 
7092
7105
  // This file was automatically generated. DO NOT EDIT.
7093
- const jsonContentHeaders$e = {
7106
+ const jsonContentHeaders$f = {
7094
7107
  'Content-Type': 'application/json; charset=utf-8'
7095
7108
  };
7096
7109
 
@@ -7099,7 +7112,7 @@ const jsonContentHeaders$e = {
7099
7112
  *
7100
7113
  * Serverless functions API.
7101
7114
  */
7102
- let API$g = class API extends API$o {
7115
+ let API$h = class API extends API$p {
7103
7116
  /** Lists the available regions of the API. */
7104
7117
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
7105
7118
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -7144,7 +7157,7 @@ let API$g = class API extends API$o {
7144
7157
  */
7145
7158
  createNamespace = (request = {}) => this.client.fetch({
7146
7159
  body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
7147
- headers: jsonContentHeaders$e,
7160
+ headers: jsonContentHeaders$f,
7148
7161
  method: 'POST',
7149
7162
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
7150
7163
  }, unmarshalNamespace$2);
@@ -7157,7 +7170,7 @@ let API$g = class API extends API$o {
7157
7170
  */
7158
7171
  updateNamespace = request => this.client.fetch({
7159
7172
  body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
7160
- headers: jsonContentHeaders$e,
7173
+ headers: jsonContentHeaders$f,
7161
7174
  method: 'PATCH',
7162
7175
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
7163
7176
  }, unmarshalNamespace$2);
@@ -7214,7 +7227,7 @@ let API$g = class API extends API$o {
7214
7227
  */
7215
7228
  createFunction = request => this.client.fetch({
7216
7229
  body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
7217
- headers: jsonContentHeaders$e,
7230
+ headers: jsonContentHeaders$f,
7218
7231
  method: 'POST',
7219
7232
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
7220
7233
  }, unmarshalFunction);
@@ -7227,7 +7240,7 @@ let API$g = class API extends API$o {
7227
7240
  */
7228
7241
  updateFunction = request => this.client.fetch({
7229
7242
  body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
7230
- headers: jsonContentHeaders$e,
7243
+ headers: jsonContentHeaders$f,
7231
7244
  method: 'PATCH',
7232
7245
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
7233
7246
  }, unmarshalFunction);
@@ -7251,7 +7264,7 @@ let API$g = class API extends API$o {
7251
7264
  */
7252
7265
  deployFunction = request => this.client.fetch({
7253
7266
  body: '{}',
7254
- headers: jsonContentHeaders$e,
7267
+ headers: jsonContentHeaders$f,
7255
7268
  method: 'POST',
7256
7269
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
7257
7270
  }, unmarshalFunction);
@@ -7331,7 +7344,7 @@ let API$g = class API extends API$o {
7331
7344
  */
7332
7345
  createCron = request => this.client.fetch({
7333
7346
  body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
7334
- headers: jsonContentHeaders$e,
7347
+ headers: jsonContentHeaders$f,
7335
7348
  method: 'POST',
7336
7349
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
7337
7350
  }, unmarshalCron);
@@ -7344,7 +7357,7 @@ let API$g = class API extends API$o {
7344
7357
  */
7345
7358
  updateCron = request => this.client.fetch({
7346
7359
  body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
7347
- headers: jsonContentHeaders$e,
7360
+ headers: jsonContentHeaders$f,
7348
7361
  method: 'PATCH',
7349
7362
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
7350
7363
  }, unmarshalCron);
@@ -7414,7 +7427,7 @@ let API$g = class API extends API$o {
7414
7427
  */
7415
7428
  createDomain = request => this.client.fetch({
7416
7429
  body: JSON.stringify(marshalCreateDomainRequest$1(request, this.client.settings)),
7417
- headers: jsonContentHeaders$e,
7430
+ headers: jsonContentHeaders$f,
7418
7431
  method: 'POST',
7419
7432
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
7420
7433
  }, unmarshalDomain$1);
@@ -7451,7 +7464,7 @@ let API$g = class API extends API$o {
7451
7464
  */
7452
7465
  createToken = (request = {}) => this.client.fetch({
7453
7466
  body: JSON.stringify(marshalCreateTokenRequest(request, this.client.settings)),
7454
- headers: jsonContentHeaders$e,
7467
+ headers: jsonContentHeaders$f,
7455
7468
  method: 'POST',
7456
7469
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
7457
7470
  }, unmarshalToken);
@@ -7501,7 +7514,7 @@ let API$g = class API extends API$o {
7501
7514
  }, unmarshalToken);
7502
7515
  createTrigger = request => this.client.fetch({
7503
7516
  body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
7504
- headers: jsonContentHeaders$e,
7517
+ headers: jsonContentHeaders$f,
7505
7518
  method: 'POST',
7506
7519
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
7507
7520
  }, unmarshalTrigger);
@@ -7536,7 +7549,7 @@ let API$g = class API extends API$o {
7536
7549
  listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
7537
7550
  updateTrigger = request => this.client.fetch({
7538
7551
  body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
7539
- headers: jsonContentHeaders$e,
7552
+ headers: jsonContentHeaders$f,
7540
7553
  method: 'PATCH',
7541
7554
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
7542
7555
  }, unmarshalTrigger);
@@ -7550,7 +7563,7 @@ let API$g = class API extends API$o {
7550
7563
 
7551
7564
  var index_gen$e = /*#__PURE__*/Object.freeze({
7552
7565
  __proto__: null,
7553
- API: API$g,
7566
+ API: API$h,
7554
7567
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
7555
7568
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$1,
7556
7569
  FUNCTION_TRANSIENT_STATUSES: FUNCTION_TRANSIENT_STATUSES,
@@ -7559,7 +7572,7 @@ var index_gen$e = /*#__PURE__*/Object.freeze({
7559
7572
  TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES
7560
7573
  });
7561
7574
 
7562
- var index$h = /*#__PURE__*/Object.freeze({
7575
+ var index$j = /*#__PURE__*/Object.freeze({
7563
7576
  __proto__: null,
7564
7577
  v1beta1: index_gen$e
7565
7578
  });
@@ -7613,6 +7626,21 @@ const unmarshalGroup = data => {
7613
7626
  userIds: data.user_ids
7614
7627
  };
7615
7628
  };
7629
+ const unmarshalJWT = data => {
7630
+ if (!isJSONObject(data)) {
7631
+ throw new TypeError(`Unmarshalling the type 'JWT' failed as data isn't a dictionary.`);
7632
+ }
7633
+ return {
7634
+ audienceId: data.audience_id,
7635
+ createdAt: unmarshalDate(data.created_at),
7636
+ expiresAt: unmarshalDate(data.expires_at),
7637
+ ip: data.ip,
7638
+ issuerId: data.issuer_id,
7639
+ jti: data.jti,
7640
+ updatedAt: unmarshalDate(data.updated_at),
7641
+ userAgent: data.user_agent
7642
+ };
7643
+ };
7616
7644
  const unmarshalPermissionSet = data => {
7617
7645
  if (!isJSONObject(data)) {
7618
7646
  throw new TypeError(`Unmarshalling the type 'PermissionSet' failed as data isn't a dictionary.`);
@@ -7646,6 +7674,16 @@ const unmarshalPolicy = data => {
7646
7674
  userId: data.user_id
7647
7675
  };
7648
7676
  };
7677
+ const unmarshalQuotum = data => {
7678
+ if (!isJSONObject(data)) {
7679
+ throw new TypeError(`Unmarshalling the type 'Quotum' failed as data isn't a dictionary.`);
7680
+ }
7681
+ return {
7682
+ limit: data.limit,
7683
+ name: data.name,
7684
+ unlimited: data.unlimited
7685
+ };
7686
+ };
7649
7687
  const unmarshalRule = data => {
7650
7688
  if (!isJSONObject(data)) {
7651
7689
  throw new TypeError(`Unmarshalling the type 'Rule' failed as data isn't a dictionary.`);
@@ -7719,6 +7757,15 @@ const unmarshalListGroupsResponse = data => {
7719
7757
  totalCount: data.total_count
7720
7758
  };
7721
7759
  };
7760
+ const unmarshalListJWTsResponse = data => {
7761
+ if (!isJSONObject(data)) {
7762
+ throw new TypeError(`Unmarshalling the type 'ListJWTsResponse' failed as data isn't a dictionary.`);
7763
+ }
7764
+ return {
7765
+ jwts: unmarshalArrayOfObject(data.jwts, unmarshalJWT),
7766
+ totalCount: data.total_count
7767
+ };
7768
+ };
7722
7769
  const unmarshalListPermissionSetsResponse = data => {
7723
7770
  if (!isJSONObject(data)) {
7724
7771
  throw new TypeError(`Unmarshalling the type 'ListPermissionSetsResponse' failed as data isn't a dictionary.`);
@@ -7737,7 +7784,16 @@ const unmarshalListPoliciesResponse = data => {
7737
7784
  totalCount: data.total_count
7738
7785
  };
7739
7786
  };
7740
- const unmarshalListRulesResponse = data => {
7787
+ const unmarshalListQuotaResponse = data => {
7788
+ if (!isJSONObject(data)) {
7789
+ throw new TypeError(`Unmarshalling the type 'ListQuotaResponse' failed as data isn't a dictionary.`);
7790
+ }
7791
+ return {
7792
+ quota: unmarshalArrayOfObject(data.quota, unmarshalQuotum),
7793
+ totalCount: data.total_count
7794
+ };
7795
+ };
7796
+ const unmarshalListRulesResponse = data => {
7741
7797
  if (!isJSONObject(data)) {
7742
7798
  throw new TypeError(`Unmarshalling the type 'ListRulesResponse' failed as data isn't a dictionary.`);
7743
7799
  }
@@ -7889,12 +7945,12 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
7889
7945
  });
7890
7946
 
7891
7947
  // This file was automatically generated. DO NOT EDIT.
7892
- const jsonContentHeaders$d = {
7948
+ const jsonContentHeaders$e = {
7893
7949
  'Content-Type': 'application/json; charset=utf-8'
7894
7950
  };
7895
7951
 
7896
7952
  /** IAM API. */
7897
- let API$f = class API extends API$o {
7953
+ let API$g = class API extends API$p {
7898
7954
  pageOfListSSHKeys = (request = {}) => this.client.fetch({
7899
7955
  method: 'GET',
7900
7956
  path: `/iam/v1alpha1/ssh-keys`,
@@ -7917,7 +7973,7 @@ let API$f = class API extends API$o {
7917
7973
  */
7918
7974
  createSSHKey = request => this.client.fetch({
7919
7975
  body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
7920
- headers: jsonContentHeaders$d,
7976
+ headers: jsonContentHeaders$e,
7921
7977
  method: 'POST',
7922
7978
  path: `/iam/v1alpha1/ssh-keys`
7923
7979
  }, unmarshalSSHKey);
@@ -7941,7 +7997,7 @@ let API$f = class API extends API$o {
7941
7997
  */
7942
7998
  updateSSHKey = request => this.client.fetch({
7943
7999
  body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
7944
- headers: jsonContentHeaders$d,
8000
+ headers: jsonContentHeaders$e,
7945
8001
  method: 'PATCH',
7946
8002
  path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
7947
8003
  }, unmarshalSSHKey);
@@ -8011,7 +8067,7 @@ let API$f = class API extends API$o {
8011
8067
  */
8012
8068
  createApplication = request => this.client.fetch({
8013
8069
  body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
8014
- headers: jsonContentHeaders$d,
8070
+ headers: jsonContentHeaders$e,
8015
8071
  method: 'POST',
8016
8072
  path: `/iam/v1alpha1/applications`
8017
8073
  }, unmarshalApplication);
@@ -8035,7 +8091,7 @@ let API$f = class API extends API$o {
8035
8091
  */
8036
8092
  updateApplication = request => this.client.fetch({
8037
8093
  body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
8038
- headers: jsonContentHeaders$d,
8094
+ headers: jsonContentHeaders$e,
8039
8095
  method: 'PATCH',
8040
8096
  path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
8041
8097
  }, unmarshalApplication);
@@ -8071,7 +8127,7 @@ let API$f = class API extends API$o {
8071
8127
  */
8072
8128
  createGroup = request => this.client.fetch({
8073
8129
  body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
8074
- headers: jsonContentHeaders$d,
8130
+ headers: jsonContentHeaders$e,
8075
8131
  method: 'POST',
8076
8132
  path: `/iam/v1alpha1/groups`
8077
8133
  }, unmarshalGroup);
@@ -8095,7 +8151,7 @@ let API$f = class API extends API$o {
8095
8151
  */
8096
8152
  updateGroup = request => this.client.fetch({
8097
8153
  body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
8098
- headers: jsonContentHeaders$d,
8154
+ headers: jsonContentHeaders$e,
8099
8155
  method: 'PATCH',
8100
8156
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
8101
8157
  }, unmarshalGroup);
@@ -8108,7 +8164,7 @@ let API$f = class API extends API$o {
8108
8164
  */
8109
8165
  setGroupMembers = request => this.client.fetch({
8110
8166
  body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
8111
- headers: jsonContentHeaders$d,
8167
+ headers: jsonContentHeaders$e,
8112
8168
  method: 'PUT',
8113
8169
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/members`
8114
8170
  }, unmarshalGroup);
@@ -8121,7 +8177,7 @@ let API$f = class API extends API$o {
8121
8177
  */
8122
8178
  addGroupMember = request => this.client.fetch({
8123
8179
  body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
8124
- headers: jsonContentHeaders$d,
8180
+ headers: jsonContentHeaders$e,
8125
8181
  method: 'POST',
8126
8182
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
8127
8183
  }, unmarshalGroup);
@@ -8134,7 +8190,7 @@ let API$f = class API extends API$o {
8134
8190
  */
8135
8191
  removeGroupMember = request => this.client.fetch({
8136
8192
  body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
8137
- headers: jsonContentHeaders$d,
8193
+ headers: jsonContentHeaders$e,
8138
8194
  method: 'POST',
8139
8195
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/remove-member`
8140
8196
  }, unmarshalGroup);
@@ -8170,7 +8226,7 @@ let API$f = class API extends API$o {
8170
8226
  */
8171
8227
  createPolicy = request => this.client.fetch({
8172
8228
  body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
8173
- headers: jsonContentHeaders$d,
8229
+ headers: jsonContentHeaders$e,
8174
8230
  method: 'POST',
8175
8231
  path: `/iam/v1alpha1/policies`
8176
8232
  }, unmarshalPolicy);
@@ -8194,7 +8250,7 @@ let API$f = class API extends API$o {
8194
8250
  */
8195
8251
  updatePolicy = request => this.client.fetch({
8196
8252
  body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
8197
- headers: jsonContentHeaders$d,
8253
+ headers: jsonContentHeaders$e,
8198
8254
  method: 'PATCH',
8199
8255
  path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}`
8200
8256
  }, unmarshalPolicy);
@@ -8210,7 +8266,7 @@ let API$f = class API extends API$o {
8210
8266
  });
8211
8267
  clonePolicy = request => this.client.fetch({
8212
8268
  body: '{}',
8213
- headers: jsonContentHeaders$d,
8269
+ headers: jsonContentHeaders$e,
8214
8270
  method: 'POST',
8215
8271
  path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}/clone`
8216
8272
  }, unmarshalPolicy);
@@ -8223,7 +8279,7 @@ let API$f = class API extends API$o {
8223
8279
  */
8224
8280
  setRules = request => this.client.fetch({
8225
8281
  body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
8226
- headers: jsonContentHeaders$d,
8282
+ headers: jsonContentHeaders$e,
8227
8283
  method: 'PUT',
8228
8284
  path: `/iam/v1alpha1/rules`
8229
8285
  }, unmarshalSetRulesResponse);
@@ -8281,7 +8337,7 @@ let API$f = class API extends API$o {
8281
8337
  */
8282
8338
  createAPIKey = request => this.client.fetch({
8283
8339
  body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
8284
- headers: jsonContentHeaders$d,
8340
+ headers: jsonContentHeaders$e,
8285
8341
  method: 'POST',
8286
8342
  path: `/iam/v1alpha1/api-keys`
8287
8343
  }, unmarshalAPIKey);
@@ -8305,7 +8361,7 @@ let API$f = class API extends API$o {
8305
8361
  */
8306
8362
  updateAPIKey = request => this.client.fetch({
8307
8363
  body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
8308
- headers: jsonContentHeaders$d,
8364
+ headers: jsonContentHeaders$e,
8309
8365
  method: 'PATCH',
8310
8366
  path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
8311
8367
  }, unmarshalAPIKey);
@@ -8319,6 +8375,65 @@ let API$f = class API extends API$o {
8319
8375
  method: 'DELETE',
8320
8376
  path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
8321
8377
  });
8378
+ pageOfListQuota = (request = {}) => this.client.fetch({
8379
+ method: 'GET',
8380
+ path: `/iam/v1alpha1/quota`,
8381
+ urlParams: urlParams(['order_by', request.orderBy ?? 'name_asc'], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
8382
+ }, unmarshalListQuotaResponse);
8383
+
8384
+ /**
8385
+ * List all quota in the organization with the associated limit
8386
+ *
8387
+ * @param request - The request {@link ListQuotaRequest}
8388
+ * @returns A Promise of ListQuotaResponse
8389
+ */
8390
+ listQuota = (request = {}) => enrichForPagination('quota', this.pageOfListQuota, request);
8391
+
8392
+ /**
8393
+ * Get a quotum in the organization with the associated limit
8394
+ *
8395
+ * @param request - The request {@link GetQuotumRequest}
8396
+ * @returns A Promise of Quotum
8397
+ */
8398
+ getQuotum = request => this.client.fetch({
8399
+ method: 'GET',
8400
+ path: `/iam/v1alpha1/quota/${validatePathParam('quotumName', request.quotumName)}`,
8401
+ urlParams: urlParams(['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId])
8402
+ }, unmarshalQuotum);
8403
+ pageOfListJWTs = request => this.client.fetch({
8404
+ method: 'GET',
8405
+ path: `/iam/v1alpha1/jwts`,
8406
+ urlParams: urlParams(['audience_id', request.audienceId], ['expired', request.expired], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
8407
+ }, unmarshalListJWTsResponse);
8408
+
8409
+ /**
8410
+ * List JWTs
8411
+ *
8412
+ * @param request - The request {@link ListJWTsRequest}
8413
+ * @returns A Promise of ListJWTsResponse
8414
+ */
8415
+ listJWTs = request => enrichForPagination('jwts', this.pageOfListJWTs, request);
8416
+
8417
+ /**
8418
+ * Get a JWT
8419
+ *
8420
+ * @param request - The request {@link GetJWTRequest}
8421
+ * @returns A Promise of JWT
8422
+ */
8423
+ getJWT = request => this.client.fetch({
8424
+ method: 'GET',
8425
+ path: `/iam/v1alpha1/jwts/${validatePathParam('jti', request.jti)}`
8426
+ }, unmarshalJWT);
8427
+
8428
+ /**
8429
+ * Delete a JWT
8430
+ *
8431
+ * @param request - The request {@link DeleteJWTRequest}
8432
+ */
8433
+ deleteJWT = request => this.client.fetch({
8434
+ method: 'DELETE',
8435
+ path: `/iam/v1alpha1/jwts/${validatePathParam('jti', request.jti)}`
8436
+ });
8322
8437
  };
8323
8438
 
8324
8439
  // This file was automatically generated. DO NOT EDIT.
@@ -8373,6 +8488,11 @@ const CreateSSHKeyRequest = {
8373
8488
  minLength: 1
8374
8489
  }
8375
8490
  };
8491
+ const GetQuotumRequest = {
8492
+ quotumName: {
8493
+ minLength: 1
8494
+ }
8495
+ };
8376
8496
  const ListAPIKeysRequest = {
8377
8497
  description: {
8378
8498
  maxLength: 200
@@ -8411,6 +8531,15 @@ const ListGroupsRequest = {
8411
8531
  lessThanOrEqual: 100
8412
8532
  }
8413
8533
  };
8534
+ const ListJWTsRequest = {
8535
+ page: {
8536
+ greaterThanOrEqual: 1
8537
+ },
8538
+ pageSize: {
8539
+ greaterThanOrEqual: 1,
8540
+ lessThanOrEqual: 100
8541
+ }
8542
+ };
8414
8543
  const ListPermissionSetsRequest = {
8415
8544
  page: {
8416
8545
  greaterThanOrEqual: 1
@@ -8432,6 +8561,15 @@ const ListPoliciesRequest = {
8432
8561
  minLength: 1
8433
8562
  }
8434
8563
  };
8564
+ const ListQuotaRequest = {
8565
+ page: {
8566
+ greaterThanOrEqual: 1
8567
+ },
8568
+ pageSize: {
8569
+ greaterThanOrEqual: 1,
8570
+ lessThanOrEqual: 100
8571
+ }
8572
+ };
8435
8573
  const ListRulesRequest = {
8436
8574
  page: {
8437
8575
  greaterThanOrEqual: 1
@@ -8504,18 +8642,21 @@ const UpdateSSHKeyRequest = {
8504
8642
  }
8505
8643
  };
8506
8644
 
8507
- var validationRules_gen$1 = /*#__PURE__*/Object.freeze({
8645
+ var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
8508
8646
  __proto__: null,
8509
8647
  CreateAPIKeyRequest: CreateAPIKeyRequest,
8510
8648
  CreateApplicationRequest: CreateApplicationRequest,
8511
8649
  CreateGroupRequest: CreateGroupRequest,
8512
8650
  CreatePolicyRequest: CreatePolicyRequest,
8513
8651
  CreateSSHKeyRequest: CreateSSHKeyRequest,
8652
+ GetQuotumRequest: GetQuotumRequest,
8514
8653
  ListAPIKeysRequest: ListAPIKeysRequest,
8515
8654
  ListApplicationsRequest: ListApplicationsRequest,
8516
8655
  ListGroupsRequest: ListGroupsRequest,
8656
+ ListJWTsRequest: ListJWTsRequest,
8517
8657
  ListPermissionSetsRequest: ListPermissionSetsRequest,
8518
8658
  ListPoliciesRequest: ListPoliciesRequest,
8659
+ ListQuotaRequest: ListQuotaRequest,
8519
8660
  ListRulesRequest: ListRulesRequest,
8520
8661
  ListSSHKeysRequest: ListSSHKeysRequest,
8521
8662
  ListUsersRequest: ListUsersRequest,
@@ -8530,11 +8671,11 @@ var validationRules_gen$1 = /*#__PURE__*/Object.freeze({
8530
8671
 
8531
8672
  var index_gen$d = /*#__PURE__*/Object.freeze({
8532
8673
  __proto__: null,
8533
- API: API$f,
8534
- ValidationRules: validationRules_gen$1
8674
+ API: API$g,
8675
+ ValidationRules: validationRules_gen$2
8535
8676
  });
8536
8677
 
8537
- var index$g = /*#__PURE__*/Object.freeze({
8678
+ var index$i = /*#__PURE__*/Object.freeze({
8538
8679
  __proto__: null,
8539
8680
  v1alpha1: index_gen$d
8540
8681
  });
@@ -9869,12 +10010,12 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
9869
10010
  });
9870
10011
 
9871
10012
  // This file was automatically generated. DO NOT EDIT.
9872
- const jsonContentHeaders$c = {
10013
+ const jsonContentHeaders$d = {
9873
10014
  'Content-Type': 'application/json; charset=utf-8'
9874
10015
  };
9875
10016
 
9876
10017
  /** Instance API. */
9877
- let API$e = class API extends API$o {
10018
+ let API$f = class API extends API$p {
9878
10019
  /** Lists the available zones of the API. */
9879
10020
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
9880
10021
 
@@ -9928,7 +10069,7 @@ let API$e = class API extends API$o {
9928
10069
  listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
9929
10070
  _createServer = request => this.client.fetch({
9930
10071
  body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
9931
- headers: jsonContentHeaders$c,
10072
+ headers: jsonContentHeaders$d,
9932
10073
  method: 'POST',
9933
10074
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
9934
10075
  }, unmarshalCreateServerResponse);
@@ -9955,13 +10096,13 @@ let API$e = class API extends API$o {
9955
10096
  }, unmarshalGetServerResponse);
9956
10097
  _setServer = request => this.client.fetch({
9957
10098
  body: JSON.stringify(marshalSetServerRequest(request, this.client.settings)),
9958
- headers: jsonContentHeaders$c,
10099
+ headers: jsonContentHeaders$d,
9959
10100
  method: 'PUT',
9960
10101
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('id', request.id)}`
9961
10102
  }, unmarshalSetServerResponse);
9962
10103
  _updateServer = request => this.client.fetch({
9963
10104
  body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
9964
- headers: jsonContentHeaders$c,
10105
+ headers: jsonContentHeaders$d,
9965
10106
  method: 'PATCH',
9966
10107
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
9967
10108
  }, unmarshalUpdateServerResponse);
@@ -9990,7 +10131,7 @@ let API$e = class API extends API$o {
9990
10131
  */
9991
10132
  serverAction = request => this.client.fetch({
9992
10133
  body: JSON.stringify(marshalServerActionRequest(request, this.client.settings)),
9993
- headers: jsonContentHeaders$c,
10134
+ headers: jsonContentHeaders$d,
9994
10135
  method: 'POST',
9995
10136
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/action`
9996
10137
  }, unmarshalServerActionResponse);
@@ -10048,13 +10189,13 @@ let API$e = class API extends API$o {
10048
10189
  */
10049
10190
  createImage = request => this.client.fetch({
10050
10191
  body: JSON.stringify(marshalCreateImageRequest(request, this.client.settings)),
10051
- headers: jsonContentHeaders$c,
10192
+ headers: jsonContentHeaders$d,
10052
10193
  method: 'POST',
10053
10194
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`
10054
10195
  }, unmarshalCreateImageResponse);
10055
10196
  _setImage = request => this.client.fetch({
10056
10197
  body: JSON.stringify(marshalSetImageRequest(request, this.client.settings)),
10057
- headers: jsonContentHeaders$c,
10198
+ headers: jsonContentHeaders$d,
10058
10199
  method: 'PUT',
10059
10200
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('id', request.id)}`
10060
10201
  }, unmarshalSetImageResponse);
@@ -10090,7 +10231,7 @@ let API$e = class API extends API$o {
10090
10231
  */
10091
10232
  createSnapshot = (request = {}) => this.client.fetch({
10092
10233
  body: JSON.stringify(marshalCreateSnapshotRequest$1(request, this.client.settings)),
10093
- headers: jsonContentHeaders$c,
10234
+ headers: jsonContentHeaders$d,
10094
10235
  method: 'POST',
10095
10236
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
10096
10237
  }, unmarshalCreateSnapshotResponse);
@@ -10107,7 +10248,7 @@ let API$e = class API extends API$o {
10107
10248
  }, unmarshalGetSnapshotResponse);
10108
10249
  _setSnapshot = request => this.client.fetch({
10109
10250
  body: JSON.stringify(marshalSetSnapshotRequest(request, this.client.settings)),
10110
- headers: jsonContentHeaders$c,
10251
+ headers: jsonContentHeaders$d,
10111
10252
  method: 'PUT',
10112
10253
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
10113
10254
  }, unmarshalSetSnapshotResponse);
@@ -10130,7 +10271,7 @@ let API$e = class API extends API$o {
10130
10271
  */
10131
10272
  exportSnapshot = request => this.client.fetch({
10132
10273
  body: JSON.stringify(marshalExportSnapshotRequest(request, this.client.settings)),
10133
- headers: jsonContentHeaders$c,
10274
+ headers: jsonContentHeaders$d,
10134
10275
  method: 'POST',
10135
10276
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/export`
10136
10277
  }, unmarshalExportSnapshotResponse);
@@ -10156,7 +10297,7 @@ let API$e = class API extends API$o {
10156
10297
  */
10157
10298
  createVolume = (request = {}) => this.client.fetch({
10158
10299
  body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
10159
- headers: jsonContentHeaders$c,
10300
+ headers: jsonContentHeaders$d,
10160
10301
  method: 'POST',
10161
10302
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
10162
10303
  }, unmarshalCreateVolumeResponse);
@@ -10182,7 +10323,7 @@ let API$e = class API extends API$o {
10182
10323
  */
10183
10324
  updateVolume = request => this.client.fetch({
10184
10325
  body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
10185
- headers: jsonContentHeaders$c,
10326
+ headers: jsonContentHeaders$d,
10186
10327
  method: 'PATCH',
10187
10328
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
10188
10329
  }, unmarshalUpdateVolumeResponse);
@@ -10218,7 +10359,7 @@ let API$e = class API extends API$o {
10218
10359
  */
10219
10360
  createSecurityGroup = request => this.client.fetch({
10220
10361
  body: JSON.stringify(marshalCreateSecurityGroupRequest(request, this.client.settings)),
10221
- headers: jsonContentHeaders$c,
10362
+ headers: jsonContentHeaders$d,
10222
10363
  method: 'POST',
10223
10364
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups`
10224
10365
  }, unmarshalCreateSecurityGroupResponse);
@@ -10245,7 +10386,7 @@ let API$e = class API extends API$o {
10245
10386
  });
10246
10387
  _setSecurityGroup = request => this.client.fetch({
10247
10388
  body: JSON.stringify(marshalSetSecurityGroupRequest(request, this.client.settings)),
10248
- headers: jsonContentHeaders$c,
10389
+ headers: jsonContentHeaders$d,
10249
10390
  method: 'PUT',
10250
10391
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('id', request.id)}`
10251
10392
  }, unmarshalSetSecurityGroupResponse);
@@ -10282,7 +10423,7 @@ let API$e = class API extends API$o {
10282
10423
  */
10283
10424
  createSecurityGroupRule = request => this.client.fetch({
10284
10425
  body: JSON.stringify(marshalCreateSecurityGroupRuleRequest(request, this.client.settings)),
10285
- headers: jsonContentHeaders$c,
10426
+ headers: jsonContentHeaders$d,
10286
10427
  method: 'POST',
10287
10428
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
10288
10429
  }, unmarshalCreateSecurityGroupRuleResponse);
@@ -10297,7 +10438,7 @@ let API$e = class API extends API$o {
10297
10438
  */
10298
10439
  setSecurityGroupRules = request => this.client.fetch({
10299
10440
  body: JSON.stringify(marshalSetSecurityGroupRulesRequest(request, this.client.settings)),
10300
- headers: jsonContentHeaders$c,
10441
+ headers: jsonContentHeaders$d,
10301
10442
  method: 'PUT',
10302
10443
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
10303
10444
  }, unmarshalSetSecurityGroupRulesResponse);
@@ -10324,7 +10465,7 @@ let API$e = class API extends API$o {
10324
10465
  }, unmarshalGetSecurityGroupRuleResponse);
10325
10466
  _setSecurityGroupRule = request => this.client.fetch({
10326
10467
  body: JSON.stringify(marshalSetSecurityGroupRuleRequest(request, this.client.settings)),
10327
- headers: jsonContentHeaders$c,
10468
+ headers: jsonContentHeaders$d,
10328
10469
  method: 'PUT',
10329
10470
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules/${validatePathParam('securityGroupRuleId', request.securityGroupRuleId)}`
10330
10471
  }, unmarshalSetSecurityGroupRuleResponse);
@@ -10350,7 +10491,7 @@ let API$e = class API extends API$o {
10350
10491
  */
10351
10492
  createPlacementGroup = (request = {}) => this.client.fetch({
10352
10493
  body: JSON.stringify(marshalCreatePlacementGroupRequest(request, this.client.settings)),
10353
- headers: jsonContentHeaders$c,
10494
+ headers: jsonContentHeaders$d,
10354
10495
  method: 'POST',
10355
10496
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups`
10356
10497
  }, unmarshalCreatePlacementGroupResponse);
@@ -10374,7 +10515,7 @@ let API$e = class API extends API$o {
10374
10515
  */
10375
10516
  setPlacementGroup = request => this.client.fetch({
10376
10517
  body: JSON.stringify(marshalSetPlacementGroupRequest(request, this.client.settings)),
10377
- headers: jsonContentHeaders$c,
10518
+ headers: jsonContentHeaders$d,
10378
10519
  method: 'PUT',
10379
10520
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
10380
10521
  }, unmarshalSetPlacementGroupResponse);
@@ -10387,7 +10528,7 @@ let API$e = class API extends API$o {
10387
10528
  */
10388
10529
  updatePlacementGroup = request => this.client.fetch({
10389
10530
  body: JSON.stringify(marshalUpdatePlacementGroupRequest(request, this.client.settings)),
10390
- headers: jsonContentHeaders$c,
10531
+ headers: jsonContentHeaders$d,
10391
10532
  method: 'PATCH',
10392
10533
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
10393
10534
  }, unmarshalUpdatePlacementGroupResponse);
@@ -10421,7 +10562,7 @@ let API$e = class API extends API$o {
10421
10562
  */
10422
10563
  setPlacementGroupServers = request => this.client.fetch({
10423
10564
  body: JSON.stringify(marshalSetPlacementGroupServersRequest(request, this.client.settings)),
10424
- headers: jsonContentHeaders$c,
10565
+ headers: jsonContentHeaders$d,
10425
10566
  method: 'PUT',
10426
10567
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
10427
10568
  }, unmarshalSetPlacementGroupServersResponse);
@@ -10434,7 +10575,7 @@ let API$e = class API extends API$o {
10434
10575
  */
10435
10576
  updatePlacementGroupServers = request => this.client.fetch({
10436
10577
  body: JSON.stringify(marshalUpdatePlacementGroupServersRequest(request, this.client.settings)),
10437
- headers: jsonContentHeaders$c,
10578
+ headers: jsonContentHeaders$d,
10438
10579
  method: 'PATCH',
10439
10580
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
10440
10581
  }, unmarshalUpdatePlacementGroupServersResponse);
@@ -10460,7 +10601,7 @@ let API$e = class API extends API$o {
10460
10601
  */
10461
10602
  createIp = (request = {}) => this.client.fetch({
10462
10603
  body: JSON.stringify(marshalCreateIpRequest$1(request, this.client.settings)),
10463
- headers: jsonContentHeaders$c,
10604
+ headers: jsonContentHeaders$d,
10464
10605
  method: 'POST',
10465
10606
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
10466
10607
  }, unmarshalCreateIpResponse);
@@ -10484,7 +10625,7 @@ let API$e = class API extends API$o {
10484
10625
  */
10485
10626
  updateIp = request => this.client.fetch({
10486
10627
  body: JSON.stringify(marshalUpdateIpRequest$1(request, this.client.settings)),
10487
- headers: jsonContentHeaders$c,
10628
+ headers: jsonContentHeaders$d,
10488
10629
  method: 'PATCH',
10489
10630
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ip', request.ip)}`
10490
10631
  }, unmarshalUpdateIpResponse);
@@ -10520,7 +10661,7 @@ let API$e = class API extends API$o {
10520
10661
  */
10521
10662
  createPrivateNIC = request => this.client.fetch({
10522
10663
  body: JSON.stringify(marshalCreatePrivateNICRequest(request, this.client.settings)),
10523
- headers: jsonContentHeaders$c,
10664
+ headers: jsonContentHeaders$d,
10524
10665
  method: 'POST',
10525
10666
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics`
10526
10667
  }, unmarshalCreatePrivateNICResponse);
@@ -10544,7 +10685,7 @@ let API$e = class API extends API$o {
10544
10685
  */
10545
10686
  updatePrivateNIC = request => this.client.fetch({
10546
10687
  body: JSON.stringify(marshalUpdatePrivateNICRequest(request, this.client.settings)),
10547
- headers: jsonContentHeaders$c,
10688
+ headers: jsonContentHeaders$d,
10548
10689
  method: 'PATCH',
10549
10690
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`
10550
10691
  }, unmarshalPrivateNIC);
@@ -10681,7 +10822,7 @@ const validateNotUndefined = obj => {
10681
10822
  if (obj === undefined) throw new TypeError(`object was found undefined`);
10682
10823
  return obj;
10683
10824
  };
10684
- class InstanceV1UtilsAPI extends API$e {
10825
+ class InstanceV1UtilsAPI extends API$f {
10685
10826
  /**
10686
10827
  * Waits for {@link Image} to be in a final state.
10687
10828
  *
@@ -11038,7 +11179,7 @@ class InstanceV1UtilsAPI extends API$e {
11038
11179
  });
11039
11180
  }
11040
11181
 
11041
- var index$f = /*#__PURE__*/Object.freeze({
11182
+ var index$h = /*#__PURE__*/Object.freeze({
11042
11183
  __proto__: null,
11043
11184
  API: InstanceV1UtilsAPI,
11044
11185
  IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES$1,
@@ -11051,9 +11192,9 @@ var index$f = /*#__PURE__*/Object.freeze({
11051
11192
  VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES
11052
11193
  });
11053
11194
 
11054
- var index$e = /*#__PURE__*/Object.freeze({
11195
+ var index$g = /*#__PURE__*/Object.freeze({
11055
11196
  __proto__: null,
11056
- v1: index$f
11197
+ v1: index$h
11057
11198
  });
11058
11199
 
11059
11200
  // This file was automatically generated. DO NOT EDIT.
@@ -11495,7 +11636,7 @@ const marshalUpdateRouteRequest$1 = (request, defaults) => ({
11495
11636
  });
11496
11637
 
11497
11638
  // This file was automatically generated. DO NOT EDIT.
11498
- const jsonContentHeaders$b = {
11639
+ const jsonContentHeaders$c = {
11499
11640
  'Content-Type': 'application/json; charset=utf-8'
11500
11641
  };
11501
11642
 
@@ -11504,7 +11645,7 @@ const jsonContentHeaders$b = {
11504
11645
  *
11505
11646
  * This API allows you to manage IoT hubs and devices.
11506
11647
  */
11507
- let API$d = class API extends API$o {
11648
+ let API$e = class API extends API$p {
11508
11649
  /** Lists the available regions of the API. */
11509
11650
  static LOCALITIES = ['fr-par'];
11510
11651
  pageOfListHubs = (request = {}) => this.client.fetch({
@@ -11529,7 +11670,7 @@ let API$d = class API extends API$o {
11529
11670
  */
11530
11671
  createHub = request => this.client.fetch({
11531
11672
  body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
11532
- headers: jsonContentHeaders$b,
11673
+ headers: jsonContentHeaders$c,
11533
11674
  method: 'POST',
11534
11675
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
11535
11676
  }, unmarshalHub);
@@ -11562,7 +11703,7 @@ let API$d = class API extends API$o {
11562
11703
  */
11563
11704
  updateHub = request => this.client.fetch({
11564
11705
  body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
11565
- headers: jsonContentHeaders$b,
11706
+ headers: jsonContentHeaders$c,
11566
11707
  method: 'PATCH',
11567
11708
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
11568
11709
  }, unmarshalHub);
@@ -11575,7 +11716,7 @@ let API$d = class API extends API$o {
11575
11716
  */
11576
11717
  enableHub = request => this.client.fetch({
11577
11718
  body: '{}',
11578
- headers: jsonContentHeaders$b,
11719
+ headers: jsonContentHeaders$c,
11579
11720
  method: 'POST',
11580
11721
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
11581
11722
  }, unmarshalHub);
@@ -11588,7 +11729,7 @@ let API$d = class API extends API$o {
11588
11729
  */
11589
11730
  disableHub = request => this.client.fetch({
11590
11731
  body: '{}',
11591
- headers: jsonContentHeaders$b,
11732
+ headers: jsonContentHeaders$c,
11592
11733
  method: 'POST',
11593
11734
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
11594
11735
  }, unmarshalHub);
@@ -11625,7 +11766,7 @@ let API$d = class API extends API$o {
11625
11766
  */
11626
11767
  setHubCA = request => this.client.fetch({
11627
11768
  body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
11628
- headers: jsonContentHeaders$b,
11769
+ headers: jsonContentHeaders$c,
11629
11770
  method: 'POST',
11630
11771
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
11631
11772
  }, unmarshalHub);
@@ -11662,7 +11803,7 @@ let API$d = class API extends API$o {
11662
11803
  */
11663
11804
  createDevice = request => this.client.fetch({
11664
11805
  body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
11665
- headers: jsonContentHeaders$b,
11806
+ headers: jsonContentHeaders$c,
11666
11807
  method: 'POST',
11667
11808
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
11668
11809
  }, unmarshalCreateDeviceResponse);
@@ -11686,7 +11827,7 @@ let API$d = class API extends API$o {
11686
11827
  */
11687
11828
  updateDevice = request => this.client.fetch({
11688
11829
  body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
11689
- headers: jsonContentHeaders$b,
11830
+ headers: jsonContentHeaders$c,
11690
11831
  method: 'PATCH',
11691
11832
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
11692
11833
  }, unmarshalDevice);
@@ -11699,7 +11840,7 @@ let API$d = class API extends API$o {
11699
11840
  */
11700
11841
  enableDevice = request => this.client.fetch({
11701
11842
  body: '{}',
11702
- headers: jsonContentHeaders$b,
11843
+ headers: jsonContentHeaders$c,
11703
11844
  method: 'POST',
11704
11845
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
11705
11846
  }, unmarshalDevice);
@@ -11712,7 +11853,7 @@ let API$d = class API extends API$o {
11712
11853
  */
11713
11854
  disableDevice = request => this.client.fetch({
11714
11855
  body: '{}',
11715
- headers: jsonContentHeaders$b,
11856
+ headers: jsonContentHeaders$c,
11716
11857
  method: 'POST',
11717
11858
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
11718
11859
  }, unmarshalDevice);
@@ -11725,7 +11866,7 @@ let API$d = class API extends API$o {
11725
11866
  */
11726
11867
  renewDeviceCertificate = request => this.client.fetch({
11727
11868
  body: '{}',
11728
- headers: jsonContentHeaders$b,
11869
+ headers: jsonContentHeaders$c,
11729
11870
  method: 'POST',
11730
11871
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
11731
11872
  }, unmarshalRenewDeviceCertificateResponse);
@@ -11738,7 +11879,7 @@ let API$d = class API extends API$o {
11738
11879
  */
11739
11880
  setDeviceCertificate = request => this.client.fetch({
11740
11881
  body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
11741
- headers: jsonContentHeaders$b,
11882
+ headers: jsonContentHeaders$c,
11742
11883
  method: 'PUT',
11743
11884
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
11744
11885
  }, unmarshalSetDeviceCertificateResponse);
@@ -11807,7 +11948,7 @@ let API$d = class API extends API$o {
11807
11948
  */
11808
11949
  createRoute = request => this.client.fetch({
11809
11950
  body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
11810
- headers: jsonContentHeaders$b,
11951
+ headers: jsonContentHeaders$c,
11811
11952
  method: 'POST',
11812
11953
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
11813
11954
  }, unmarshalRoute$1);
@@ -11820,7 +11961,7 @@ let API$d = class API extends API$o {
11820
11961
  */
11821
11962
  updateRoute = request => this.client.fetch({
11822
11963
  body: JSON.stringify(marshalUpdateRouteRequest$1(request, this.client.settings)),
11823
- headers: jsonContentHeaders$b,
11964
+ headers: jsonContentHeaders$c,
11824
11965
  method: 'PATCH',
11825
11966
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
11826
11967
  }, unmarshalRoute$1);
@@ -11867,7 +12008,7 @@ let API$d = class API extends API$o {
11867
12008
  */
11868
12009
  createNetwork = request => this.client.fetch({
11869
12010
  body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
11870
- headers: jsonContentHeaders$b,
12011
+ headers: jsonContentHeaders$c,
11871
12012
  method: 'POST',
11872
12013
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
11873
12014
  }, unmarshalCreateNetworkResponse);
@@ -11912,7 +12053,7 @@ let API$d = class API extends API$o {
11912
12053
  */
11913
12054
  putTwinDocument = request => this.client.fetch({
11914
12055
  body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
11915
- headers: jsonContentHeaders$b,
12056
+ headers: jsonContentHeaders$c,
11916
12057
  method: 'PUT',
11917
12058
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
11918
12059
  }, unmarshalTwinDocument);
@@ -11925,7 +12066,7 @@ let API$d = class API extends API$o {
11925
12066
  */
11926
12067
  patchTwinDocument = request => this.client.fetch({
11927
12068
  body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
11928
- headers: jsonContentHeaders$b,
12069
+ headers: jsonContentHeaders$c,
11929
12070
  method: 'PATCH',
11930
12071
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
11931
12072
  }, unmarshalTwinDocument);
@@ -11966,11 +12107,11 @@ let API$d = class API extends API$o {
11966
12107
 
11967
12108
  var index_gen$c = /*#__PURE__*/Object.freeze({
11968
12109
  __proto__: null,
11969
- API: API$d,
12110
+ API: API$e,
11970
12111
  HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
11971
12112
  });
11972
12113
 
11973
- var index$d = /*#__PURE__*/Object.freeze({
12114
+ var index$f = /*#__PURE__*/Object.freeze({
11974
12115
  __proto__: null,
11975
12116
  v1: index_gen$c
11976
12117
  });
@@ -12357,12 +12498,12 @@ const marshalUpgradePoolRequest = (request, defaults) => ({
12357
12498
  });
12358
12499
 
12359
12500
  // This file was automatically generated. DO NOT EDIT.
12360
- const jsonContentHeaders$a = {
12501
+ const jsonContentHeaders$b = {
12361
12502
  'Content-Type': 'application/json; charset=utf-8'
12362
12503
  };
12363
12504
 
12364
12505
  /** Kapsule API. */
12365
- let API$c = class API extends API$o {
12506
+ let API$d = class API extends API$p {
12366
12507
  /** Lists the available regions of the API. */
12367
12508
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
12368
12509
  pageOfListClusters = (request = {}) => this.client.fetch({
@@ -12388,7 +12529,7 @@ let API$c = class API extends API$o {
12388
12529
  */
12389
12530
  createCluster = request => this.client.fetch({
12390
12531
  body: JSON.stringify(marshalCreateClusterRequest$1(request, this.client.settings)),
12391
- headers: jsonContentHeaders$a,
12532
+ headers: jsonContentHeaders$b,
12392
12533
  method: 'POST',
12393
12534
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters`
12394
12535
  }, unmarshalCluster$1);
@@ -12422,7 +12563,7 @@ let API$c = class API extends API$o {
12422
12563
  */
12423
12564
  updateCluster = request => this.client.fetch({
12424
12565
  body: JSON.stringify(marshalUpdateClusterRequest$1(request, this.client.settings)),
12425
- headers: jsonContentHeaders$a,
12566
+ headers: jsonContentHeaders$b,
12426
12567
  method: 'PATCH',
12427
12568
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}`
12428
12569
  }, unmarshalCluster$1);
@@ -12450,7 +12591,7 @@ let API$c = class API extends API$o {
12450
12591
  */
12451
12592
  upgradeCluster = request => this.client.fetch({
12452
12593
  body: JSON.stringify(marshalUpgradeClusterRequest(request, this.client.settings)),
12453
- headers: jsonContentHeaders$a,
12594
+ headers: jsonContentHeaders$b,
12454
12595
  method: 'POST',
12455
12596
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/upgrade`
12456
12597
  }, unmarshalCluster$1);
@@ -12486,7 +12627,7 @@ let API$c = class API extends API$o {
12486
12627
  */
12487
12628
  resetClusterAdminToken = request => this.client.fetch({
12488
12629
  body: '{}',
12489
- headers: jsonContentHeaders$a,
12630
+ headers: jsonContentHeaders$b,
12490
12631
  method: 'POST',
12491
12632
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/reset-admin-token`
12492
12633
  });
@@ -12513,7 +12654,7 @@ let API$c = class API extends API$o {
12513
12654
  */
12514
12655
  createPool = request => this.client.fetch({
12515
12656
  body: JSON.stringify(marshalCreatePoolRequest(request, this.client.settings)),
12516
- headers: jsonContentHeaders$a,
12657
+ headers: jsonContentHeaders$b,
12517
12658
  method: 'POST',
12518
12659
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/pools`
12519
12660
  }, unmarshalPool);
@@ -12548,7 +12689,7 @@ let API$c = class API extends API$o {
12548
12689
  */
12549
12690
  upgradePool = request => this.client.fetch({
12550
12691
  body: JSON.stringify(marshalUpgradePoolRequest(request, this.client.settings)),
12551
- headers: jsonContentHeaders$a,
12692
+ headers: jsonContentHeaders$b,
12552
12693
  method: 'POST',
12553
12694
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}/upgrade`
12554
12695
  }, unmarshalPool);
@@ -12562,7 +12703,7 @@ let API$c = class API extends API$o {
12562
12703
  */
12563
12704
  updatePool = request => this.client.fetch({
12564
12705
  body: JSON.stringify(marshalUpdatePoolRequest(request, this.client.settings)),
12565
- headers: jsonContentHeaders$a,
12706
+ headers: jsonContentHeaders$b,
12566
12707
  method: 'PATCH',
12567
12708
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}`
12568
12709
  }, unmarshalPool);
@@ -12588,7 +12729,7 @@ let API$c = class API extends API$o {
12588
12729
  */
12589
12730
  createExternalNode = request => this.client.fetch({
12590
12731
  body: '{}',
12591
- headers: jsonContentHeaders$a,
12732
+ headers: jsonContentHeaders$b,
12592
12733
  method: 'POST',
12593
12734
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}/external-nodes`
12594
12735
  }, unmarshalExternalNode);
@@ -12642,7 +12783,7 @@ let API$c = class API extends API$o {
12642
12783
  */
12643
12784
  replaceNode = request => this.client.fetch({
12644
12785
  body: '{}',
12645
- headers: jsonContentHeaders$a,
12786
+ headers: jsonContentHeaders$b,
12646
12787
  method: 'POST',
12647
12788
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nodes/${validatePathParam('nodeId', request.nodeId)}/replace`
12648
12789
  }, unmarshalNode);
@@ -12660,7 +12801,7 @@ let API$c = class API extends API$o {
12660
12801
  */
12661
12802
  rebootNode = request => this.client.fetch({
12662
12803
  body: '{}',
12663
- headers: jsonContentHeaders$a,
12804
+ headers: jsonContentHeaders$b,
12664
12805
  method: 'POST',
12665
12806
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nodes/${validatePathParam('nodeId', request.nodeId)}/reboot`
12666
12807
  }, unmarshalNode);
@@ -12704,6 +12845,16 @@ let API$c = class API extends API$o {
12704
12845
  }, unmarshalVersion$2);
12705
12846
  };
12706
12847
 
12848
+ class K8SUtilsAPI extends API$d {
12849
+ /**
12850
+ * Get configuration of a kube cluster.
12851
+ *
12852
+ * @param request - The request {@link GetClusterKubeConfigRequest}
12853
+ * @returns A Promise of Blob
12854
+ */
12855
+ getClusterKubeConfig = request => this._getClusterKubeConfig(request);
12856
+ }
12857
+
12707
12858
  // This file was automatically generated. DO NOT EDIT.
12708
12859
  // If you have any remark or suggestion do not hesitate to open an issue.
12709
12860
 
@@ -12795,7 +12946,7 @@ const UpdateClusterRequestAutoscalerConfig = {
12795
12946
  }
12796
12947
  };
12797
12948
 
12798
- var validationRules_gen = /*#__PURE__*/Object.freeze({
12949
+ var validationRules_gen$1 = /*#__PURE__*/Object.freeze({
12799
12950
  __proto__: null,
12800
12951
  CreateClusterRequest: CreateClusterRequest,
12801
12952
  CreateClusterRequestAutoscalerConfig: CreateClusterRequestAutoscalerConfig,
@@ -12810,20 +12961,18 @@ var validationRules_gen = /*#__PURE__*/Object.freeze({
12810
12961
  UpdateClusterRequestAutoscalerConfig: UpdateClusterRequestAutoscalerConfig
12811
12962
  });
12812
12963
 
12813
- // This file was automatically generated. DO NOT EDIT.
12814
-
12815
- var index_gen$b = /*#__PURE__*/Object.freeze({
12964
+ var index$e = /*#__PURE__*/Object.freeze({
12816
12965
  __proto__: null,
12817
- API: API$c,
12966
+ API: K8SUtilsAPI,
12818
12967
  CLUSTER_TRANSIENT_STATUSES: CLUSTER_TRANSIENT_STATUSES$1,
12819
12968
  NODE_TRANSIENT_STATUSES: NODE_TRANSIENT_STATUSES,
12820
12969
  POOL_TRANSIENT_STATUSES: POOL_TRANSIENT_STATUSES,
12821
- ValidationRules: validationRules_gen
12970
+ ValidationRules: validationRules_gen$1
12822
12971
  });
12823
12972
 
12824
- var index$c = /*#__PURE__*/Object.freeze({
12973
+ var index$d = /*#__PURE__*/Object.freeze({
12825
12974
  __proto__: null,
12826
- v1: index_gen$b
12975
+ v1: index$e
12827
12976
  });
12828
12977
 
12829
12978
  // This file was automatically generated. DO NOT EDIT.
@@ -13104,6 +13253,12 @@ const unmarshalPrivateNetworkDHCPConfig = data => {
13104
13253
  }
13105
13254
  return {};
13106
13255
  };
13256
+ const unmarshalPrivateNetworkIpamConfig = data => {
13257
+ if (!isJSONObject(data)) {
13258
+ throw new TypeError(`Unmarshalling the type 'PrivateNetworkIpamConfig' failed as data isn't a dictionary.`);
13259
+ }
13260
+ return {};
13261
+ };
13107
13262
  const unmarshalPrivateNetworkStaticConfig = data => {
13108
13263
  if (!isJSONObject(data)) {
13109
13264
  throw new TypeError(`Unmarshalling the type 'PrivateNetworkStaticConfig' failed as data isn't a dictionary.`);
@@ -13169,6 +13324,7 @@ const unmarshalPrivateNetwork$2 = data => {
13169
13324
  return {
13170
13325
  createdAt: unmarshalDate(data.created_at),
13171
13326
  dhcpConfig: data.dhcp_config ? unmarshalPrivateNetworkDHCPConfig(data.dhcp_config) : undefined,
13327
+ ipamConfig: data.ipam_config ? unmarshalPrivateNetworkIpamConfig(data.ipam_config) : undefined,
13172
13328
  lb: data.lb ? unmarshalLb(data.lb) : undefined,
13173
13329
  privateNetworkId: data.private_network_id,
13174
13330
  staticConfig: data.static_config ? unmarshalPrivateNetworkStaticConfig(data.static_config) : undefined,
@@ -13387,6 +13543,7 @@ const marshalHealthCheck = (request, defaults) => ({
13387
13543
  }])
13388
13544
  });
13389
13545
  const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({});
13546
+ const marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
13390
13547
  const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
13391
13548
  ip_address: request.ipAddress
13392
13549
  });
@@ -13415,6 +13572,9 @@ const marshalAttachPrivateNetworkRequest = (request, defaults) => ({
13415
13572
  }, {
13416
13573
  param: 'dhcp_config',
13417
13574
  value: request.dhcpConfig ? marshalPrivateNetworkDHCPConfig(request.dhcpConfig) : undefined
13575
+ }, {
13576
+ param: 'ipam_config',
13577
+ value: request.ipamConfig ? marshalPrivateNetworkIpamConfig(request.ipamConfig) : undefined
13418
13578
  }])
13419
13579
  });
13420
13580
  const marshalCreateAclRequest = (request, defaults) => ({
@@ -13625,6 +13785,9 @@ const marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
13625
13785
  }, {
13626
13786
  param: 'dhcp_config',
13627
13787
  value: request.dhcpConfig ? marshalPrivateNetworkDHCPConfig(request.dhcpConfig) : undefined
13788
+ }, {
13789
+ param: 'ipam_config',
13790
+ value: request.ipamConfig ? marshalPrivateNetworkIpamConfig(request.ipamConfig) : undefined
13628
13791
  }])
13629
13792
  });
13630
13793
  const marshalZonedApiCreateAclRequest = (request, defaults) => ({
@@ -13830,7 +13993,7 @@ const marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
13830
13993
  });
13831
13994
 
13832
13995
  // This file was automatically generated. DO NOT EDIT.
13833
- const jsonContentHeaders$9 = {
13996
+ const jsonContentHeaders$a = {
13834
13997
  'Content-Type': 'application/json; charset=utf-8'
13835
13998
  };
13836
13999
 
@@ -13839,7 +14002,7 @@ const jsonContentHeaders$9 = {
13839
14002
  *
13840
14003
  * This API allows you to manage your load balancer service.
13841
14004
  */
13842
- let API$b = class API extends API$o {
14005
+ let API$c = class API extends API$p {
13843
14006
  /** Lists the available regions of the API. */
13844
14007
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
13845
14008
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -13864,7 +14027,7 @@ let API$b = class API extends API$o {
13864
14027
  */
13865
14028
  createLb = request => this.client.fetch({
13866
14029
  body: JSON.stringify(marshalCreateLbRequest(request, this.client.settings)),
13867
- headers: jsonContentHeaders$9,
14030
+ headers: jsonContentHeaders$a,
13868
14031
  method: 'POST',
13869
14032
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs`
13870
14033
  }, unmarshalLb);
@@ -13897,7 +14060,7 @@ let API$b = class API extends API$o {
13897
14060
  */
13898
14061
  updateLb = request => this.client.fetch({
13899
14062
  body: JSON.stringify(marshalUpdateLbRequest(request, this.client.settings)),
13900
- headers: jsonContentHeaders$9,
14063
+ headers: jsonContentHeaders$a,
13901
14064
  method: 'PUT',
13902
14065
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`
13903
14066
  }, unmarshalLb);
@@ -13921,7 +14084,7 @@ let API$b = class API extends API$o {
13921
14084
  */
13922
14085
  migrateLb = request => this.client.fetch({
13923
14086
  body: JSON.stringify(marshalMigrateLbRequest(request, this.client.settings)),
13924
- headers: jsonContentHeaders$9,
14087
+ headers: jsonContentHeaders$a,
13925
14088
  method: 'POST',
13926
14089
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
13927
14090
  }, unmarshalLb);
@@ -13947,7 +14110,7 @@ let API$b = class API extends API$o {
13947
14110
  */
13948
14111
  createIp = (request = {}) => this.client.fetch({
13949
14112
  body: JSON.stringify(marshalCreateIpRequest(request, this.client.settings)),
13950
- headers: jsonContentHeaders$9,
14113
+ headers: jsonContentHeaders$a,
13951
14114
  method: 'POST',
13952
14115
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`
13953
14116
  }, unmarshalIp);
@@ -13981,7 +14144,7 @@ let API$b = class API extends API$o {
13981
14144
  */
13982
14145
  updateIp = request => this.client.fetch({
13983
14146
  body: JSON.stringify(marshalUpdateIpRequest(request, this.client.settings)),
13984
- headers: jsonContentHeaders$9,
14147
+ headers: jsonContentHeaders$a,
13985
14148
  method: 'PATCH',
13986
14149
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
13987
14150
  }, unmarshalIp);
@@ -14007,7 +14170,7 @@ let API$b = class API extends API$o {
14007
14170
  */
14008
14171
  createBackend = request => this.client.fetch({
14009
14172
  body: JSON.stringify(marshalCreateBackendRequest(request, this.client.settings)),
14010
- headers: jsonContentHeaders$9,
14173
+ headers: jsonContentHeaders$a,
14011
14174
  method: 'POST',
14012
14175
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
14013
14176
  }, unmarshalBackend);
@@ -14031,7 +14194,7 @@ let API$b = class API extends API$o {
14031
14194
  */
14032
14195
  updateBackend = request => this.client.fetch({
14033
14196
  body: JSON.stringify(marshalUpdateBackendRequest(request, this.client.settings)),
14034
- headers: jsonContentHeaders$9,
14197
+ headers: jsonContentHeaders$a,
14035
14198
  method: 'PUT',
14036
14199
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
14037
14200
  }, unmarshalBackend);
@@ -14054,7 +14217,7 @@ let API$b = class API extends API$o {
14054
14217
  */
14055
14218
  addBackendServers = request => this.client.fetch({
14056
14219
  body: JSON.stringify(marshalAddBackendServersRequest(request, this.client.settings)),
14057
- headers: jsonContentHeaders$9,
14220
+ headers: jsonContentHeaders$a,
14058
14221
  method: 'POST',
14059
14222
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
14060
14223
  }, unmarshalBackend);
@@ -14067,7 +14230,7 @@ let API$b = class API extends API$o {
14067
14230
  */
14068
14231
  removeBackendServers = request => this.client.fetch({
14069
14232
  body: JSON.stringify(marshalRemoveBackendServersRequest(request, this.client.settings)),
14070
- headers: jsonContentHeaders$9,
14233
+ headers: jsonContentHeaders$a,
14071
14234
  method: 'DELETE',
14072
14235
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
14073
14236
  }, unmarshalBackend);
@@ -14080,7 +14243,7 @@ let API$b = class API extends API$o {
14080
14243
  */
14081
14244
  setBackendServers = request => this.client.fetch({
14082
14245
  body: JSON.stringify(marshalSetBackendServersRequest(request, this.client.settings)),
14083
- headers: jsonContentHeaders$9,
14246
+ headers: jsonContentHeaders$a,
14084
14247
  method: 'PUT',
14085
14248
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
14086
14249
  }, unmarshalBackend);
@@ -14093,7 +14256,7 @@ let API$b = class API extends API$o {
14093
14256
  */
14094
14257
  updateHealthCheck = request => this.client.fetch({
14095
14258
  body: JSON.stringify(marshalUpdateHealthCheckRequest(request, this.client.settings)),
14096
- headers: jsonContentHeaders$9,
14259
+ headers: jsonContentHeaders$a,
14097
14260
  method: 'PUT',
14098
14261
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
14099
14262
  }, unmarshalHealthCheck);
@@ -14119,7 +14282,7 @@ let API$b = class API extends API$o {
14119
14282
  */
14120
14283
  createFrontend = request => this.client.fetch({
14121
14284
  body: JSON.stringify(marshalCreateFrontendRequest(request, this.client.settings)),
14122
- headers: jsonContentHeaders$9,
14285
+ headers: jsonContentHeaders$a,
14123
14286
  method: 'POST',
14124
14287
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
14125
14288
  }, unmarshalFrontend);
@@ -14143,7 +14306,7 @@ let API$b = class API extends API$o {
14143
14306
  */
14144
14307
  updateFrontend = request => this.client.fetch({
14145
14308
  body: JSON.stringify(marshalUpdateFrontendRequest(request, this.client.settings)),
14146
- headers: jsonContentHeaders$9,
14309
+ headers: jsonContentHeaders$a,
14147
14310
  method: 'PUT',
14148
14311
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
14149
14312
  }, unmarshalFrontend);
@@ -14179,7 +14342,7 @@ let API$b = class API extends API$o {
14179
14342
  */
14180
14343
  createRoute = request => this.client.fetch({
14181
14344
  body: JSON.stringify(marshalCreateRouteRequest(request, this.client.settings)),
14182
- headers: jsonContentHeaders$9,
14345
+ headers: jsonContentHeaders$a,
14183
14346
  method: 'POST',
14184
14347
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
14185
14348
  }, unmarshalRoute);
@@ -14203,7 +14366,7 @@ let API$b = class API extends API$o {
14203
14366
  */
14204
14367
  updateRoute = request => this.client.fetch({
14205
14368
  body: JSON.stringify(marshalUpdateRouteRequest(request, this.client.settings)),
14206
- headers: jsonContentHeaders$9,
14369
+ headers: jsonContentHeaders$a,
14207
14370
  method: 'PUT',
14208
14371
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
14209
14372
  }, unmarshalRoute);
@@ -14257,7 +14420,7 @@ let API$b = class API extends API$o {
14257
14420
  */
14258
14421
  createAcl = request => this.client.fetch({
14259
14422
  body: JSON.stringify(marshalCreateAclRequest(request, this.client.settings)),
14260
- headers: jsonContentHeaders$9,
14423
+ headers: jsonContentHeaders$a,
14261
14424
  method: 'POST',
14262
14425
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
14263
14426
  }, unmarshalAcl);
@@ -14281,7 +14444,7 @@ let API$b = class API extends API$o {
14281
14444
  */
14282
14445
  updateAcl = request => this.client.fetch({
14283
14446
  body: JSON.stringify(marshalUpdateAclRequest(request, this.client.settings)),
14284
- headers: jsonContentHeaders$9,
14447
+ headers: jsonContentHeaders$a,
14285
14448
  method: 'PUT',
14286
14449
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
14287
14450
  }, unmarshalAcl);
@@ -14305,7 +14468,7 @@ let API$b = class API extends API$o {
14305
14468
  */
14306
14469
  createCertificate = request => this.client.fetch({
14307
14470
  body: JSON.stringify(marshalCreateCertificateRequest(request, this.client.settings)),
14308
- headers: jsonContentHeaders$9,
14471
+ headers: jsonContentHeaders$a,
14309
14472
  method: 'POST',
14310
14473
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
14311
14474
  }, unmarshalCertificate);
@@ -14351,7 +14514,7 @@ let API$b = class API extends API$o {
14351
14514
  */
14352
14515
  updateCertificate = request => this.client.fetch({
14353
14516
  body: JSON.stringify(marshalUpdateCertificateRequest(request, this.client.settings)),
14354
- headers: jsonContentHeaders$9,
14517
+ headers: jsonContentHeaders$a,
14355
14518
  method: 'PUT',
14356
14519
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
14357
14520
  }, unmarshalCertificate);
@@ -14387,7 +14550,7 @@ let API$b = class API extends API$o {
14387
14550
  */
14388
14551
  createSubscriber = request => this.client.fetch({
14389
14552
  body: JSON.stringify(marshalCreateSubscriberRequest(request, this.client.settings)),
14390
- headers: jsonContentHeaders$9,
14553
+ headers: jsonContentHeaders$a,
14391
14554
  method: 'POST',
14392
14555
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers`
14393
14556
  }, unmarshalSubscriber);
@@ -14424,7 +14587,7 @@ let API$b = class API extends API$o {
14424
14587
  */
14425
14588
  updateSubscriber = request => this.client.fetch({
14426
14589
  body: JSON.stringify(marshalUpdateSubscriberRequest(request, this.client.settings)),
14427
- headers: jsonContentHeaders$9,
14590
+ headers: jsonContentHeaders$a,
14428
14591
  method: 'PUT',
14429
14592
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
14430
14593
  }, unmarshalSubscriber);
@@ -14447,7 +14610,7 @@ let API$b = class API extends API$o {
14447
14610
  */
14448
14611
  subscribeToLb = request => this.client.fetch({
14449
14612
  body: JSON.stringify(marshalSubscribeToLbRequest(request, this.client.settings)),
14450
- headers: jsonContentHeaders$9,
14613
+ headers: jsonContentHeaders$a,
14451
14614
  method: 'POST',
14452
14615
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
14453
14616
  }, unmarshalLb);
@@ -14484,7 +14647,7 @@ let API$b = class API extends API$o {
14484
14647
  */
14485
14648
  attachPrivateNetwork = request => this.client.fetch({
14486
14649
  body: JSON.stringify(marshalAttachPrivateNetworkRequest(request, this.client.settings)),
14487
- headers: jsonContentHeaders$9,
14650
+ headers: jsonContentHeaders$a,
14488
14651
  method: 'POST',
14489
14652
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
14490
14653
  }, unmarshalPrivateNetwork$2);
@@ -14496,7 +14659,7 @@ let API$b = class API extends API$o {
14496
14659
  */
14497
14660
  detachPrivateNetwork = request => this.client.fetch({
14498
14661
  body: '{}',
14499
- headers: jsonContentHeaders$9,
14662
+ headers: jsonContentHeaders$a,
14500
14663
  method: 'POST',
14501
14664
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
14502
14665
  });
@@ -14507,7 +14670,7 @@ let API$b = class API extends API$o {
14507
14670
  *
14508
14671
  * This API allows you to manage your load balancer service.
14509
14672
  */
14510
- class ZonedAPI extends API$o {
14673
+ class ZonedAPI extends API$p {
14511
14674
  /** Lists the available zones of the API. */
14512
14675
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
14513
14676
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -14532,7 +14695,7 @@ class ZonedAPI extends API$o {
14532
14695
  */
14533
14696
  createLb = request => this.client.fetch({
14534
14697
  body: JSON.stringify(marshalZonedApiCreateLbRequest(request, this.client.settings)),
14535
- headers: jsonContentHeaders$9,
14698
+ headers: jsonContentHeaders$a,
14536
14699
  method: 'POST',
14537
14700
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs`
14538
14701
  }, unmarshalLb);
@@ -14565,7 +14728,7 @@ class ZonedAPI extends API$o {
14565
14728
  */
14566
14729
  updateLb = request => this.client.fetch({
14567
14730
  body: JSON.stringify(marshalZonedApiUpdateLbRequest(request, this.client.settings)),
14568
- headers: jsonContentHeaders$9,
14731
+ headers: jsonContentHeaders$a,
14569
14732
  method: 'PUT',
14570
14733
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`
14571
14734
  }, unmarshalLb);
@@ -14589,7 +14752,7 @@ class ZonedAPI extends API$o {
14589
14752
  */
14590
14753
  migrateLb = request => this.client.fetch({
14591
14754
  body: JSON.stringify(marshalZonedApiMigrateLbRequest(request, this.client.settings)),
14592
- headers: jsonContentHeaders$9,
14755
+ headers: jsonContentHeaders$a,
14593
14756
  method: 'POST',
14594
14757
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
14595
14758
  }, unmarshalLb);
@@ -14615,7 +14778,7 @@ class ZonedAPI extends API$o {
14615
14778
  */
14616
14779
  createIp = (request = {}) => this.client.fetch({
14617
14780
  body: JSON.stringify(marshalZonedApiCreateIpRequest(request, this.client.settings)),
14618
- headers: jsonContentHeaders$9,
14781
+ headers: jsonContentHeaders$a,
14619
14782
  method: 'POST',
14620
14783
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
14621
14784
  }, unmarshalIp);
@@ -14649,7 +14812,7 @@ class ZonedAPI extends API$o {
14649
14812
  */
14650
14813
  updateIp = request => this.client.fetch({
14651
14814
  body: JSON.stringify(marshalZonedApiUpdateIpRequest(request, this.client.settings)),
14652
- headers: jsonContentHeaders$9,
14815
+ headers: jsonContentHeaders$a,
14653
14816
  method: 'PATCH',
14654
14817
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
14655
14818
  }, unmarshalIp);
@@ -14675,7 +14838,7 @@ class ZonedAPI extends API$o {
14675
14838
  */
14676
14839
  createBackend = request => this.client.fetch({
14677
14840
  body: JSON.stringify(marshalZonedApiCreateBackendRequest(request, this.client.settings)),
14678
- headers: jsonContentHeaders$9,
14841
+ headers: jsonContentHeaders$a,
14679
14842
  method: 'POST',
14680
14843
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
14681
14844
  }, unmarshalBackend);
@@ -14699,7 +14862,7 @@ class ZonedAPI extends API$o {
14699
14862
  */
14700
14863
  updateBackend = request => this.client.fetch({
14701
14864
  body: JSON.stringify(marshalZonedApiUpdateBackendRequest(request, this.client.settings)),
14702
- headers: jsonContentHeaders$9,
14865
+ headers: jsonContentHeaders$a,
14703
14866
  method: 'PUT',
14704
14867
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
14705
14868
  }, unmarshalBackend);
@@ -14722,7 +14885,7 @@ class ZonedAPI extends API$o {
14722
14885
  */
14723
14886
  addBackendServers = request => this.client.fetch({
14724
14887
  body: JSON.stringify(marshalZonedApiAddBackendServersRequest(request, this.client.settings)),
14725
- headers: jsonContentHeaders$9,
14888
+ headers: jsonContentHeaders$a,
14726
14889
  method: 'POST',
14727
14890
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
14728
14891
  }, unmarshalBackend);
@@ -14735,7 +14898,7 @@ class ZonedAPI extends API$o {
14735
14898
  */
14736
14899
  removeBackendServers = request => this.client.fetch({
14737
14900
  body: JSON.stringify(marshalZonedApiRemoveBackendServersRequest(request, this.client.settings)),
14738
- headers: jsonContentHeaders$9,
14901
+ headers: jsonContentHeaders$a,
14739
14902
  method: 'DELETE',
14740
14903
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
14741
14904
  }, unmarshalBackend);
@@ -14748,7 +14911,7 @@ class ZonedAPI extends API$o {
14748
14911
  */
14749
14912
  setBackendServers = request => this.client.fetch({
14750
14913
  body: JSON.stringify(marshalZonedApiSetBackendServersRequest(request, this.client.settings)),
14751
- headers: jsonContentHeaders$9,
14914
+ headers: jsonContentHeaders$a,
14752
14915
  method: 'PUT',
14753
14916
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
14754
14917
  }, unmarshalBackend);
@@ -14761,7 +14924,7 @@ class ZonedAPI extends API$o {
14761
14924
  */
14762
14925
  updateHealthCheck = request => this.client.fetch({
14763
14926
  body: JSON.stringify(marshalZonedApiUpdateHealthCheckRequest(request, this.client.settings)),
14764
- headers: jsonContentHeaders$9,
14927
+ headers: jsonContentHeaders$a,
14765
14928
  method: 'PUT',
14766
14929
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
14767
14930
  }, unmarshalHealthCheck);
@@ -14787,7 +14950,7 @@ class ZonedAPI extends API$o {
14787
14950
  */
14788
14951
  createFrontend = request => this.client.fetch({
14789
14952
  body: JSON.stringify(marshalZonedApiCreateFrontendRequest(request, this.client.settings)),
14790
- headers: jsonContentHeaders$9,
14953
+ headers: jsonContentHeaders$a,
14791
14954
  method: 'POST',
14792
14955
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
14793
14956
  }, unmarshalFrontend);
@@ -14811,7 +14974,7 @@ class ZonedAPI extends API$o {
14811
14974
  */
14812
14975
  updateFrontend = request => this.client.fetch({
14813
14976
  body: JSON.stringify(marshalZonedApiUpdateFrontendRequest(request, this.client.settings)),
14814
- headers: jsonContentHeaders$9,
14977
+ headers: jsonContentHeaders$a,
14815
14978
  method: 'PUT',
14816
14979
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
14817
14980
  }, unmarshalFrontend);
@@ -14847,7 +15010,7 @@ class ZonedAPI extends API$o {
14847
15010
  */
14848
15011
  createRoute = request => this.client.fetch({
14849
15012
  body: JSON.stringify(marshalZonedApiCreateRouteRequest(request, this.client.settings)),
14850
- headers: jsonContentHeaders$9,
15013
+ headers: jsonContentHeaders$a,
14851
15014
  method: 'POST',
14852
15015
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes`
14853
15016
  }, unmarshalRoute);
@@ -14871,7 +15034,7 @@ class ZonedAPI extends API$o {
14871
15034
  */
14872
15035
  updateRoute = request => this.client.fetch({
14873
15036
  body: JSON.stringify(marshalZonedApiUpdateRouteRequest(request, this.client.settings)),
14874
- headers: jsonContentHeaders$9,
15037
+ headers: jsonContentHeaders$a,
14875
15038
  method: 'PUT',
14876
15039
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
14877
15040
  }, unmarshalRoute);
@@ -14925,7 +15088,7 @@ class ZonedAPI extends API$o {
14925
15088
  */
14926
15089
  createAcl = request => this.client.fetch({
14927
15090
  body: JSON.stringify(marshalZonedApiCreateAclRequest(request, this.client.settings)),
14928
- headers: jsonContentHeaders$9,
15091
+ headers: jsonContentHeaders$a,
14929
15092
  method: 'POST',
14930
15093
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
14931
15094
  }, unmarshalAcl);
@@ -14949,7 +15112,7 @@ class ZonedAPI extends API$o {
14949
15112
  */
14950
15113
  updateAcl = request => this.client.fetch({
14951
15114
  body: JSON.stringify(marshalZonedApiUpdateAclRequest(request, this.client.settings)),
14952
- headers: jsonContentHeaders$9,
15115
+ headers: jsonContentHeaders$a,
14953
15116
  method: 'PUT',
14954
15117
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
14955
15118
  }, unmarshalAcl);
@@ -14972,7 +15135,7 @@ class ZonedAPI extends API$o {
14972
15135
  */
14973
15136
  setAcls = request => this.client.fetch({
14974
15137
  body: JSON.stringify(marshalZonedApiSetAclsRequest(request, this.client.settings)),
14975
- headers: jsonContentHeaders$9,
15138
+ headers: jsonContentHeaders$a,
14976
15139
  method: 'PUT',
14977
15140
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
14978
15141
  }, unmarshalSetAclsResponse);
@@ -14986,7 +15149,7 @@ class ZonedAPI extends API$o {
14986
15149
  */
14987
15150
  createCertificate = request => this.client.fetch({
14988
15151
  body: JSON.stringify(marshalZonedApiCreateCertificateRequest(request, this.client.settings)),
14989
- headers: jsonContentHeaders$9,
15152
+ headers: jsonContentHeaders$a,
14990
15153
  method: 'POST',
14991
15154
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
14992
15155
  }, unmarshalCertificate);
@@ -15032,7 +15195,7 @@ class ZonedAPI extends API$o {
15032
15195
  */
15033
15196
  updateCertificate = request => this.client.fetch({
15034
15197
  body: JSON.stringify(marshalZonedApiUpdateCertificateRequest(request, this.client.settings)),
15035
- headers: jsonContentHeaders$9,
15198
+ headers: jsonContentHeaders$a,
15036
15199
  method: 'PUT',
15037
15200
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
15038
15201
  }, unmarshalCertificate);
@@ -15068,7 +15231,7 @@ class ZonedAPI extends API$o {
15068
15231
  */
15069
15232
  createSubscriber = request => this.client.fetch({
15070
15233
  body: JSON.stringify(marshalZonedApiCreateSubscriberRequest(request, this.client.settings)),
15071
- headers: jsonContentHeaders$9,
15234
+ headers: jsonContentHeaders$a,
15072
15235
  method: 'POST',
15073
15236
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers`
15074
15237
  }, unmarshalSubscriber);
@@ -15105,7 +15268,7 @@ class ZonedAPI extends API$o {
15105
15268
  */
15106
15269
  updateSubscriber = request => this.client.fetch({
15107
15270
  body: JSON.stringify(marshalZonedApiUpdateSubscriberRequest(request, this.client.settings)),
15108
- headers: jsonContentHeaders$9,
15271
+ headers: jsonContentHeaders$a,
15109
15272
  method: 'PUT',
15110
15273
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
15111
15274
  }, unmarshalSubscriber);
@@ -15128,7 +15291,7 @@ class ZonedAPI extends API$o {
15128
15291
  */
15129
15292
  subscribeToLb = request => this.client.fetch({
15130
15293
  body: JSON.stringify(marshalZonedApiSubscribeToLbRequest(request, this.client.settings)),
15131
- headers: jsonContentHeaders$9,
15294
+ headers: jsonContentHeaders$a,
15132
15295
  method: 'POST',
15133
15296
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
15134
15297
  }, unmarshalLb);
@@ -15165,7 +15328,7 @@ class ZonedAPI extends API$o {
15165
15328
  */
15166
15329
  attachPrivateNetwork = request => this.client.fetch({
15167
15330
  body: JSON.stringify(marshalZonedApiAttachPrivateNetworkRequest(request, this.client.settings)),
15168
- headers: jsonContentHeaders$9,
15331
+ headers: jsonContentHeaders$a,
15169
15332
  method: 'POST',
15170
15333
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
15171
15334
  }, unmarshalPrivateNetwork$2);
@@ -15177,13 +15340,13 @@ class ZonedAPI extends API$o {
15177
15340
  */
15178
15341
  detachPrivateNetwork = request => this.client.fetch({
15179
15342
  body: '{}',
15180
- headers: jsonContentHeaders$9,
15343
+ headers: jsonContentHeaders$a,
15181
15344
  method: 'POST',
15182
15345
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
15183
15346
  });
15184
15347
  }
15185
15348
 
15186
- class LbV1UtilsAPI extends API$b {
15349
+ class LbV1UtilsAPI extends API$c {
15187
15350
  /**
15188
15351
  * Waits for all private networks of a load balancer to be in a final state.
15189
15352
  *
@@ -15259,7 +15422,7 @@ class LbZonedV1UtilsAPI extends ZonedAPI {
15259
15422
  }, createExponentialBackoffStrategy(options?.minDelay ?? 1, options?.maxDelay ?? 30), options?.timeout);
15260
15423
  }
15261
15424
 
15262
- var index$b = /*#__PURE__*/Object.freeze({
15425
+ var index$c = /*#__PURE__*/Object.freeze({
15263
15426
  __proto__: null,
15264
15427
  API: LbV1UtilsAPI,
15265
15428
  CERTIFICATE_TRANSIENT_STATUSES: CERTIFICATE_TRANSIENT_STATUSES,
@@ -15269,9 +15432,9 @@ var index$b = /*#__PURE__*/Object.freeze({
15269
15432
  ZonedAPI: LbZonedV1UtilsAPI
15270
15433
  });
15271
15434
 
15272
- var index$a = /*#__PURE__*/Object.freeze({
15435
+ var index$b = /*#__PURE__*/Object.freeze({
15273
15436
  __proto__: null,
15274
- v1: index$b
15437
+ v1: index$c
15275
15438
  });
15276
15439
 
15277
15440
  // This file was automatically generated. DO NOT EDIT.
@@ -15363,7 +15526,7 @@ const unmarshalListVersionsResponse$1 = data => {
15363
15526
 
15364
15527
  // This file was automatically generated. DO NOT EDIT.
15365
15528
  /** Marketplace API. */
15366
- let API$a = class API extends API$o {
15529
+ let API$b = class API extends API$p {
15367
15530
  pageOfListImages = (request = {}) => this.client.fetch({
15368
15531
  method: 'GET',
15369
15532
  path: `/marketplace/v1/images`,
@@ -15400,9 +15563,9 @@ let API$a = class API extends API$o {
15400
15563
 
15401
15564
  // This file was automatically generated. DO NOT EDIT.
15402
15565
 
15403
- var index_gen$a = /*#__PURE__*/Object.freeze({
15566
+ var index_gen$b = /*#__PURE__*/Object.freeze({
15404
15567
  __proto__: null,
15405
- API: API$a
15568
+ API: API$b
15406
15569
  });
15407
15570
 
15408
15571
  // This file was automatically generated. DO NOT EDIT.
@@ -15495,7 +15658,7 @@ const unmarshalListVersionsResponse = data => {
15495
15658
 
15496
15659
  // This file was automatically generated. DO NOT EDIT.
15497
15660
  /** Marketplace API. */
15498
- let API$9 = class API extends API$o {
15661
+ let API$a = class API extends API$p {
15499
15662
  pageOfListImages = request => this.client.fetch({
15500
15663
  method: 'GET',
15501
15664
  path: `/marketplace/v2/images`,
@@ -15570,15 +15733,15 @@ let API$9 = class API extends API$o {
15570
15733
 
15571
15734
  // This file was automatically generated. DO NOT EDIT.
15572
15735
 
15573
- var index_gen$9 = /*#__PURE__*/Object.freeze({
15736
+ var index_gen$a = /*#__PURE__*/Object.freeze({
15574
15737
  __proto__: null,
15575
- API: API$9
15738
+ API: API$a
15576
15739
  });
15577
15740
 
15578
- var index$9 = /*#__PURE__*/Object.freeze({
15741
+ var index$a = /*#__PURE__*/Object.freeze({
15579
15742
  __proto__: null,
15580
- v1: index_gen$a,
15581
- v2: index_gen$9
15743
+ v1: index_gen$b,
15744
+ v2: index_gen$a
15582
15745
  });
15583
15746
 
15584
15747
  // This file was automatically generated. DO NOT EDIT.
@@ -15708,7 +15871,7 @@ const marshalUpdateNamespaceRequest$1 = (request, defaults) => ({
15708
15871
  });
15709
15872
 
15710
15873
  // This file was automatically generated. DO NOT EDIT.
15711
- const jsonContentHeaders$8 = {
15874
+ const jsonContentHeaders$9 = {
15712
15875
  'Content-Type': 'application/json; charset=utf-8'
15713
15876
  };
15714
15877
 
@@ -15717,7 +15880,7 @@ const jsonContentHeaders$8 = {
15717
15880
  *
15718
15881
  * This API allows you to manage Messaging or Queueing brokers.
15719
15882
  */
15720
- let API$8 = class API extends API$o {
15883
+ let API$9 = class API extends API$p {
15721
15884
  /** Lists the available regions of the API. */
15722
15885
  static LOCALITIES = ['fr-par'];
15723
15886
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -15742,7 +15905,7 @@ let API$8 = class API extends API$o {
15742
15905
  */
15743
15906
  createNamespace = request => this.client.fetch({
15744
15907
  body: JSON.stringify(marshalCreateNamespaceRequest$1(request, this.client.settings)),
15745
- headers: jsonContentHeaders$8,
15908
+ headers: jsonContentHeaders$9,
15746
15909
  method: 'POST',
15747
15910
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
15748
15911
  }, unmarshalNamespace$1);
@@ -15755,7 +15918,7 @@ let API$8 = class API extends API$o {
15755
15918
  */
15756
15919
  updateNamespace = request => this.client.fetch({
15757
15920
  body: JSON.stringify(marshalUpdateNamespaceRequest$1(request, this.client.settings)),
15758
- headers: jsonContentHeaders$8,
15921
+ headers: jsonContentHeaders$9,
15759
15922
  method: 'PATCH',
15760
15923
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
15761
15924
  }, unmarshalNamespace$1);
@@ -15789,7 +15952,7 @@ let API$8 = class API extends API$o {
15789
15952
  */
15790
15953
  createCredential = request => this.client.fetch({
15791
15954
  body: JSON.stringify(marshalCreateCredentialRequest(request, this.client.settings)),
15792
- headers: jsonContentHeaders$8,
15955
+ headers: jsonContentHeaders$9,
15793
15956
  method: 'POST',
15794
15957
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials`
15795
15958
  }, unmarshalCredential);
@@ -15825,7 +15988,7 @@ let API$8 = class API extends API$o {
15825
15988
  */
15826
15989
  updateCredential = request => this.client.fetch({
15827
15990
  body: JSON.stringify(marshalUpdateCredentialRequest(request, this.client.settings)),
15828
- headers: jsonContentHeaders$8,
15991
+ headers: jsonContentHeaders$9,
15829
15992
  method: 'PATCH',
15830
15993
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials/${validatePathParam('credentialId', request.credentialId)}`
15831
15994
  }, unmarshalCredential);
@@ -15844,14 +16007,14 @@ let API$8 = class API extends API$o {
15844
16007
 
15845
16008
  // This file was automatically generated. DO NOT EDIT.
15846
16009
 
15847
- var index_gen$8 = /*#__PURE__*/Object.freeze({
16010
+ var index_gen$9 = /*#__PURE__*/Object.freeze({
15848
16011
  __proto__: null,
15849
- API: API$8
16012
+ API: API$9
15850
16013
  });
15851
16014
 
15852
- var index$8 = /*#__PURE__*/Object.freeze({
16015
+ var index$9 = /*#__PURE__*/Object.freeze({
15853
16016
  __proto__: null,
15854
- v1alpha1: index_gen$8
16017
+ v1alpha1: index_gen$9
15855
16018
  });
15856
16019
 
15857
16020
  // This file was automatically generated. DO NOT EDIT.
@@ -16476,6 +16639,9 @@ const marshalDeleteInstanceACLRulesRequest = (request, defaults) => ({
16476
16639
  const marshalDeleteInstanceSettingsRequest = (request, defaults) => ({
16477
16640
  setting_names: request.settingNames
16478
16641
  });
16642
+ const marshalMigrateEndpointRequest = (request, defaults) => ({
16643
+ instance_id: request.instanceId
16644
+ });
16479
16645
  const marshalPrepareInstanceLogsRequest = (request, defaults) => ({
16480
16646
  end_date: request.endDate,
16481
16647
  start_date: request.startDate
@@ -16539,12 +16705,12 @@ const marshalUpgradeInstanceRequest = (request, defaults) => ({
16539
16705
  });
16540
16706
 
16541
16707
  // This file was automatically generated. DO NOT EDIT.
16542
- const jsonContentHeaders$7 = {
16708
+ const jsonContentHeaders$8 = {
16543
16709
  'Content-Type': 'application/json; charset=utf-8'
16544
16710
  };
16545
16711
 
16546
16712
  /** Database RDB API. */
16547
- let API$7 = class API extends API$o {
16713
+ let API$8 = class API extends API$p {
16548
16714
  /** Lists the available regions of the API. */
16549
16715
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16550
16716
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -16595,7 +16761,7 @@ let API$7 = class API extends API$o {
16595
16761
  */
16596
16762
  createDatabaseBackup = request => this.client.fetch({
16597
16763
  body: JSON.stringify(marshalCreateDatabaseBackupRequest(request, this.client.settings)),
16598
- headers: jsonContentHeaders$7,
16764
+ headers: jsonContentHeaders$8,
16599
16765
  method: 'POST',
16600
16766
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups`
16601
16767
  }, unmarshalDatabaseBackup);
@@ -16628,7 +16794,7 @@ let API$7 = class API extends API$o {
16628
16794
  */
16629
16795
  updateDatabaseBackup = request => this.client.fetch({
16630
16796
  body: JSON.stringify(marshalUpdateDatabaseBackupRequest(request, this.client.settings)),
16631
- headers: jsonContentHeaders$7,
16797
+ headers: jsonContentHeaders$8,
16632
16798
  method: 'PATCH',
16633
16799
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups/${validatePathParam('databaseBackupId', request.databaseBackupId)}`
16634
16800
  }, unmarshalDatabaseBackup);
@@ -16652,7 +16818,7 @@ let API$7 = class API extends API$o {
16652
16818
  */
16653
16819
  restoreDatabaseBackup = request => this.client.fetch({
16654
16820
  body: JSON.stringify(marshalRestoreDatabaseBackupRequest(request, this.client.settings)),
16655
- headers: jsonContentHeaders$7,
16821
+ headers: jsonContentHeaders$8,
16656
16822
  method: 'POST',
16657
16823
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups/${validatePathParam('databaseBackupId', request.databaseBackupId)}/restore`
16658
16824
  }, unmarshalDatabaseBackup);
@@ -16665,7 +16831,7 @@ let API$7 = class API extends API$o {
16665
16831
  */
16666
16832
  exportDatabaseBackup = request => this.client.fetch({
16667
16833
  body: '{}',
16668
- headers: jsonContentHeaders$7,
16834
+ headers: jsonContentHeaders$8,
16669
16835
  method: 'POST',
16670
16836
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups/${validatePathParam('databaseBackupId', request.databaseBackupId)}/export`
16671
16837
  }, unmarshalDatabaseBackup);
@@ -16679,7 +16845,7 @@ let API$7 = class API extends API$o {
16679
16845
  */
16680
16846
  upgradeInstance = request => this.client.fetch({
16681
16847
  body: JSON.stringify(marshalUpgradeInstanceRequest(request, this.client.settings)),
16682
- headers: jsonContentHeaders$7,
16848
+ headers: jsonContentHeaders$8,
16683
16849
  method: 'POST',
16684
16850
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/upgrade`
16685
16851
  }, unmarshalInstance);
@@ -16725,7 +16891,7 @@ let API$7 = class API extends API$o {
16725
16891
  */
16726
16892
  createInstance = request => this.client.fetch({
16727
16893
  body: JSON.stringify(marshalCreateInstanceRequest(request, this.client.settings)),
16728
- headers: jsonContentHeaders$7,
16894
+ headers: jsonContentHeaders$8,
16729
16895
  method: 'POST',
16730
16896
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances`
16731
16897
  }, unmarshalInstance);
@@ -16738,7 +16904,7 @@ let API$7 = class API extends API$o {
16738
16904
  */
16739
16905
  updateInstance = request => this.client.fetch({
16740
16906
  body: JSON.stringify(marshalUpdateInstanceRequest(request, this.client.settings)),
16741
- headers: jsonContentHeaders$7,
16907
+ headers: jsonContentHeaders$8,
16742
16908
  method: 'PATCH',
16743
16909
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}`
16744
16910
  }, unmarshalInstance);
@@ -16762,7 +16928,7 @@ let API$7 = class API extends API$o {
16762
16928
  */
16763
16929
  cloneInstance = request => this.client.fetch({
16764
16930
  body: JSON.stringify(marshalCloneInstanceRequest(request, this.client.settings)),
16765
- headers: jsonContentHeaders$7,
16931
+ headers: jsonContentHeaders$8,
16766
16932
  method: 'POST',
16767
16933
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/clone`
16768
16934
  }, unmarshalInstance);
@@ -16775,7 +16941,7 @@ let API$7 = class API extends API$o {
16775
16941
  */
16776
16942
  restartInstance = request => this.client.fetch({
16777
16943
  body: '{}',
16778
- headers: jsonContentHeaders$7,
16944
+ headers: jsonContentHeaders$8,
16779
16945
  method: 'POST',
16780
16946
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/restart`
16781
16947
  }, unmarshalInstance);
@@ -16800,7 +16966,7 @@ let API$7 = class API extends API$o {
16800
16966
  */
16801
16967
  renewInstanceCertificate = request => this.client.fetch({
16802
16968
  body: '{}',
16803
- headers: jsonContentHeaders$7,
16969
+ headers: jsonContentHeaders$8,
16804
16970
  method: 'POST',
16805
16971
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/renew-certificate`
16806
16972
  });
@@ -16825,7 +16991,7 @@ let API$7 = class API extends API$o {
16825
16991
  */
16826
16992
  createReadReplica = request => this.client.fetch({
16827
16993
  body: JSON.stringify(marshalCreateReadReplicaRequest(request, this.client.settings)),
16828
- headers: jsonContentHeaders$7,
16994
+ headers: jsonContentHeaders$8,
16829
16995
  method: 'POST',
16830
16996
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas`
16831
16997
  }, unmarshalReadReplica);
@@ -16872,7 +17038,7 @@ let API$7 = class API extends API$o {
16872
17038
  */
16873
17039
  resetReadReplica = request => this.client.fetch({
16874
17040
  body: '{}',
16875
- headers: jsonContentHeaders$7,
17041
+ headers: jsonContentHeaders$8,
16876
17042
  method: 'POST',
16877
17043
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
16878
17044
  }, unmarshalReadReplica);
@@ -16886,7 +17052,7 @@ let API$7 = class API extends API$o {
16886
17052
  */
16887
17053
  createReadReplicaEndpoint = request => this.client.fetch({
16888
17054
  body: JSON.stringify(marshalCreateReadReplicaEndpointRequest(request, this.client.settings)),
16889
- headers: jsonContentHeaders$7,
17055
+ headers: jsonContentHeaders$8,
16890
17056
  method: 'POST',
16891
17057
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/endpoints`
16892
17058
  }, unmarshalReadReplica);
@@ -16900,7 +17066,7 @@ let API$7 = class API extends API$o {
16900
17066
  */
16901
17067
  prepareInstanceLogs = request => this.client.fetch({
16902
17068
  body: JSON.stringify(marshalPrepareInstanceLogsRequest(request, this.client.settings)),
16903
- headers: jsonContentHeaders$7,
17069
+ headers: jsonContentHeaders$8,
16904
17070
  method: 'POST',
16905
17071
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/prepare-logs`
16906
17072
  }, unmarshalPrepareInstanceLogsResponse);
@@ -16944,7 +17110,7 @@ let API$7 = class API extends API$o {
16944
17110
  */
16945
17111
  purgeInstanceLogs = request => this.client.fetch({
16946
17112
  body: JSON.stringify(marshalPurgeInstanceLogsRequest(request, this.client.settings)),
16947
- headers: jsonContentHeaders$7,
17113
+ headers: jsonContentHeaders$8,
16948
17114
  method: 'POST',
16949
17115
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/purge-logs`
16950
17116
  });
@@ -16968,7 +17134,7 @@ let API$7 = class API extends API$o {
16968
17134
  */
16969
17135
  addInstanceSettings = request => this.client.fetch({
16970
17136
  body: JSON.stringify(marshalAddInstanceSettingsRequest(request, this.client.settings)),
16971
- headers: jsonContentHeaders$7,
17137
+ headers: jsonContentHeaders$8,
16972
17138
  method: 'POST',
16973
17139
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
16974
17140
  }, unmarshalAddInstanceSettingsResponse);
@@ -16981,7 +17147,7 @@ let API$7 = class API extends API$o {
16981
17147
  */
16982
17148
  deleteInstanceSettings = request => this.client.fetch({
16983
17149
  body: JSON.stringify(marshalDeleteInstanceSettingsRequest(request, this.client.settings)),
16984
- headers: jsonContentHeaders$7,
17150
+ headers: jsonContentHeaders$8,
16985
17151
  method: 'DELETE',
16986
17152
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
16987
17153
  }, unmarshalDeleteInstanceSettingsResponse);
@@ -16994,7 +17160,7 @@ let API$7 = class API extends API$o {
16994
17160
  */
16995
17161
  setInstanceSettings = request => this.client.fetch({
16996
17162
  body: JSON.stringify(marshalSetInstanceSettingsRequest(request, this.client.settings)),
16997
- headers: jsonContentHeaders$7,
17163
+ headers: jsonContentHeaders$8,
16998
17164
  method: 'PUT',
16999
17165
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
17000
17166
  }, unmarshalSetInstanceSettingsResponse);
@@ -17020,7 +17186,7 @@ let API$7 = class API extends API$o {
17020
17186
  */
17021
17187
  addInstanceACLRules = request => this.client.fetch({
17022
17188
  body: JSON.stringify(marshalAddInstanceACLRulesRequest(request, this.client.settings)),
17023
- headers: jsonContentHeaders$7,
17189
+ headers: jsonContentHeaders$8,
17024
17190
  method: 'POST',
17025
17191
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
17026
17192
  }, unmarshalAddInstanceACLRulesResponse);
@@ -17033,7 +17199,7 @@ let API$7 = class API extends API$o {
17033
17199
  */
17034
17200
  setInstanceACLRules = request => this.client.fetch({
17035
17201
  body: JSON.stringify(marshalSetInstanceACLRulesRequest(request, this.client.settings)),
17036
- headers: jsonContentHeaders$7,
17202
+ headers: jsonContentHeaders$8,
17037
17203
  method: 'PUT',
17038
17204
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
17039
17205
  }, unmarshalSetInstanceACLRulesResponse);
@@ -17046,7 +17212,7 @@ let API$7 = class API extends API$o {
17046
17212
  */
17047
17213
  deleteInstanceACLRules = request => this.client.fetch({
17048
17214
  body: JSON.stringify(marshalDeleteInstanceACLRulesRequest(request, this.client.settings)),
17049
- headers: jsonContentHeaders$7,
17215
+ headers: jsonContentHeaders$8,
17050
17216
  method: 'DELETE',
17051
17217
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
17052
17218
  }, unmarshalDeleteInstanceACLRulesResponse);
@@ -17072,7 +17238,7 @@ let API$7 = class API extends API$o {
17072
17238
  */
17073
17239
  createUser = request => this.client.fetch({
17074
17240
  body: JSON.stringify(marshalCreateUserRequest(request, this.client.settings)),
17075
- headers: jsonContentHeaders$7,
17241
+ headers: jsonContentHeaders$8,
17076
17242
  method: 'POST',
17077
17243
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`
17078
17244
  }, unmarshalUser);
@@ -17085,7 +17251,7 @@ let API$7 = class API extends API$o {
17085
17251
  */
17086
17252
  updateUser = request => this.client.fetch({
17087
17253
  body: JSON.stringify(marshalUpdateUserRequest(request, this.client.settings)),
17088
- headers: jsonContentHeaders$7,
17254
+ headers: jsonContentHeaders$8,
17089
17255
  method: 'PATCH',
17090
17256
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`
17091
17257
  }, unmarshalUser);
@@ -17121,7 +17287,7 @@ let API$7 = class API extends API$o {
17121
17287
  */
17122
17288
  createDatabase = request => this.client.fetch({
17123
17289
  body: JSON.stringify(marshalCreateDatabaseRequest(request, this.client.settings)),
17124
- headers: jsonContentHeaders$7,
17290
+ headers: jsonContentHeaders$8,
17125
17291
  method: 'POST',
17126
17292
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`
17127
17293
  }, unmarshalDatabase);
@@ -17157,7 +17323,7 @@ let API$7 = class API extends API$o {
17157
17323
  */
17158
17324
  setPrivilege = request => this.client.fetch({
17159
17325
  body: JSON.stringify(marshalSetPrivilegeRequest(request, this.client.settings)),
17160
- headers: jsonContentHeaders$7,
17326
+ headers: jsonContentHeaders$8,
17161
17327
  method: 'PUT',
17162
17328
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/privileges`
17163
17329
  }, unmarshalPrivilege);
@@ -17203,7 +17369,7 @@ let API$7 = class API extends API$o {
17203
17369
  */
17204
17370
  createSnapshot = request => this.client.fetch({
17205
17371
  body: JSON.stringify(marshalCreateSnapshotRequest(request, this.client.settings)),
17206
- headers: jsonContentHeaders$7,
17372
+ headers: jsonContentHeaders$8,
17207
17373
  method: 'POST',
17208
17374
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/snapshots`
17209
17375
  }, unmarshalSnapshot);
@@ -17216,7 +17382,7 @@ let API$7 = class API extends API$o {
17216
17382
  */
17217
17383
  updateSnapshot = request => this.client.fetch({
17218
17384
  body: JSON.stringify(marshalUpdateSnapshotRequest(request, this.client.settings)),
17219
- headers: jsonContentHeaders$7,
17385
+ headers: jsonContentHeaders$8,
17220
17386
  method: 'PATCH',
17221
17387
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
17222
17388
  }, unmarshalSnapshot);
@@ -17240,7 +17406,7 @@ let API$7 = class API extends API$o {
17240
17406
  */
17241
17407
  createInstanceFromSnapshot = request => this.client.fetch({
17242
17408
  body: JSON.stringify(marshalCreateInstanceFromSnapshotRequest(request, this.client.settings)),
17243
- headers: jsonContentHeaders$7,
17409
+ headers: jsonContentHeaders$8,
17244
17410
  method: 'POST',
17245
17411
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/create-instance`
17246
17412
  }, unmarshalInstance);
@@ -17253,7 +17419,7 @@ let API$7 = class API extends API$o {
17253
17419
  */
17254
17420
  createEndpoint = request => this.client.fetch({
17255
17421
  body: JSON.stringify(marshalCreateEndpointRequest(request, this.client.settings)),
17256
- headers: jsonContentHeaders$7,
17422
+ headers: jsonContentHeaders$8,
17257
17423
  method: 'POST',
17258
17424
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/endpoints`
17259
17425
  }, unmarshalEndpoint$1);
@@ -17278,13 +17444,26 @@ let API$7 = class API extends API$o {
17278
17444
  method: 'GET',
17279
17445
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}`
17280
17446
  }, unmarshalEndpoint$1);
17447
+
17448
+ /**
17449
+ * Migrate an existing instance endpoint to another instance
17450
+ *
17451
+ * @param request - The request {@link MigrateEndpointRequest}
17452
+ * @returns A Promise of Endpoint
17453
+ */
17454
+ migrateEndpoint = request => this.client.fetch({
17455
+ body: JSON.stringify(marshalMigrateEndpointRequest(request, this.client.settings)),
17456
+ headers: jsonContentHeaders$8,
17457
+ method: 'POST',
17458
+ path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}/migrate`
17459
+ }, unmarshalEndpoint$1);
17281
17460
  };
17282
17461
 
17283
17462
  // This file was automatically generated. DO NOT EDIT.
17284
17463
 
17285
- var index_gen$7 = /*#__PURE__*/Object.freeze({
17464
+ var index_gen$8 = /*#__PURE__*/Object.freeze({
17286
17465
  __proto__: null,
17287
- API: API$7,
17466
+ API: API$8,
17288
17467
  DATABASE_BACKUP_TRANSIENT_STATUSES: DATABASE_BACKUP_TRANSIENT_STATUSES,
17289
17468
  INSTANCE_LOG_TRANSIENT_STATUSES: INSTANCE_LOG_TRANSIENT_STATUSES,
17290
17469
  INSTANCE_TRANSIENT_STATUSES: INSTANCE_TRANSIENT_STATUSES,
@@ -17293,9 +17472,9 @@ var index_gen$7 = /*#__PURE__*/Object.freeze({
17293
17472
  SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES
17294
17473
  });
17295
17474
 
17296
- var index$7 = /*#__PURE__*/Object.freeze({
17475
+ var index$8 = /*#__PURE__*/Object.freeze({
17297
17476
  __proto__: null,
17298
- v1: index_gen$7
17477
+ v1: index_gen$8
17299
17478
  });
17300
17479
 
17301
17480
  // This file was automatically generated. DO NOT EDIT.
@@ -17578,12 +17757,12 @@ const marshalUpdateEndpointRequest = (request, defaults) => ({
17578
17757
  });
17579
17758
 
17580
17759
  // This file was automatically generated. DO NOT EDIT.
17581
- const jsonContentHeaders$6 = {
17760
+ const jsonContentHeaders$7 = {
17582
17761
  'Content-Type': 'application/json; charset=utf-8'
17583
17762
  };
17584
17763
 
17585
17764
  /** Managed Database for Redis™ API. */
17586
- let API$6 = class API extends API$o {
17765
+ let API$7 = class API extends API$p {
17587
17766
  /** Lists the available zones of the API. */
17588
17767
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
17589
17768
 
@@ -17595,7 +17774,7 @@ let API$6 = class API extends API$o {
17595
17774
  */
17596
17775
  createCluster = request => this.client.fetch({
17597
17776
  body: JSON.stringify(marshalCreateClusterRequest(request, this.client.settings)),
17598
- headers: jsonContentHeaders$6,
17777
+ headers: jsonContentHeaders$7,
17599
17778
  method: 'POST',
17600
17779
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters`
17601
17780
  }, unmarshalCluster);
@@ -17608,7 +17787,7 @@ let API$6 = class API extends API$o {
17608
17787
  */
17609
17788
  updateCluster = request => this.client.fetch({
17610
17789
  body: JSON.stringify(marshalUpdateClusterRequest(request, this.client.settings)),
17611
- headers: jsonContentHeaders$6,
17790
+ headers: jsonContentHeaders$7,
17612
17791
  method: 'PATCH',
17613
17792
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}`
17614
17793
  }, unmarshalCluster);
@@ -17657,7 +17836,7 @@ let API$6 = class API extends API$o {
17657
17836
  */
17658
17837
  migrateCluster = request => this.client.fetch({
17659
17838
  body: JSON.stringify(marshalMigrateClusterRequest(request, this.client.settings)),
17660
- headers: jsonContentHeaders$6,
17839
+ headers: jsonContentHeaders$7,
17661
17840
  method: 'POST',
17662
17841
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate`
17663
17842
  }, unmarshalCluster);
@@ -17732,7 +17911,7 @@ let API$6 = class API extends API$o {
17732
17911
  */
17733
17912
  renewClusterCertificate = request => this.client.fetch({
17734
17913
  body: '{}',
17735
- headers: jsonContentHeaders$6,
17914
+ headers: jsonContentHeaders$7,
17736
17915
  method: 'POST',
17737
17916
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/renew-certificate`
17738
17917
  }, unmarshalCluster);
@@ -17745,7 +17924,7 @@ let API$6 = class API extends API$o {
17745
17924
  */
17746
17925
  addClusterSettings = request => this.client.fetch({
17747
17926
  body: JSON.stringify(marshalAddClusterSettingsRequest(request, this.client.settings)),
17748
- headers: jsonContentHeaders$6,
17927
+ headers: jsonContentHeaders$7,
17749
17928
  method: 'POST',
17750
17929
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/settings`
17751
17930
  }, unmarshalClusterSettingsResponse);
@@ -17769,7 +17948,7 @@ let API$6 = class API extends API$o {
17769
17948
  */
17770
17949
  setClusterSettings = request => this.client.fetch({
17771
17950
  body: JSON.stringify(marshalSetClusterSettingsRequest(request, this.client.settings)),
17772
- headers: jsonContentHeaders$6,
17951
+ headers: jsonContentHeaders$7,
17773
17952
  method: 'PUT',
17774
17953
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/settings`
17775
17954
  }, unmarshalClusterSettingsResponse);
@@ -17782,7 +17961,7 @@ let API$6 = class API extends API$o {
17782
17961
  */
17783
17962
  setAclRules = request => this.client.fetch({
17784
17963
  body: JSON.stringify(marshalSetAclRulesRequest(request, this.client.settings)),
17785
- headers: jsonContentHeaders$6,
17964
+ headers: jsonContentHeaders$7,
17786
17965
  method: 'PUT',
17787
17966
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/acls`
17788
17967
  }, unmarshalSetAclRulesResponse);
@@ -17795,7 +17974,7 @@ let API$6 = class API extends API$o {
17795
17974
  */
17796
17975
  addAclRules = request => this.client.fetch({
17797
17976
  body: JSON.stringify(marshalAddAclRulesRequest(request, this.client.settings)),
17798
- headers: jsonContentHeaders$6,
17977
+ headers: jsonContentHeaders$7,
17799
17978
  method: 'POST',
17800
17979
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/acls`
17801
17980
  }, unmarshalAddAclRulesResponse);
@@ -17830,7 +18009,7 @@ let API$6 = class API extends API$o {
17830
18009
  */
17831
18010
  setEndpoints = request => this.client.fetch({
17832
18011
  body: JSON.stringify(marshalSetEndpointsRequest(request, this.client.settings)),
17833
- headers: jsonContentHeaders$6,
18012
+ headers: jsonContentHeaders$7,
17834
18013
  method: 'PUT',
17835
18014
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/endpoints`
17836
18015
  }, unmarshalSetEndpointsResponse);
@@ -17843,7 +18022,7 @@ let API$6 = class API extends API$o {
17843
18022
  */
17844
18023
  addEndpoints = request => this.client.fetch({
17845
18024
  body: JSON.stringify(marshalAddEndpointsRequest(request, this.client.settings)),
17846
- headers: jsonContentHeaders$6,
18025
+ headers: jsonContentHeaders$7,
17847
18026
  method: 'POST',
17848
18027
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/endpoints`
17849
18028
  }, unmarshalAddEndpointsResponse);
@@ -17871,7 +18050,7 @@ let API$6 = class API extends API$o {
17871
18050
  }, unmarshalEndpoint);
17872
18051
  updateEndpoint = request => this.client.fetch({
17873
18052
  body: JSON.stringify(marshalUpdateEndpointRequest(request, this.client.settings)),
17874
- headers: jsonContentHeaders$6,
18053
+ headers: jsonContentHeaders$7,
17875
18054
  method: 'PATCH',
17876
18055
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam('endpointId', request.endpointId)}`
17877
18056
  }, unmarshalEndpoint);
@@ -17879,15 +18058,15 @@ let API$6 = class API extends API$o {
17879
18058
 
17880
18059
  // This file was automatically generated. DO NOT EDIT.
17881
18060
 
17882
- var index_gen$6 = /*#__PURE__*/Object.freeze({
18061
+ var index_gen$7 = /*#__PURE__*/Object.freeze({
17883
18062
  __proto__: null,
17884
- API: API$6,
18063
+ API: API$7,
17885
18064
  CLUSTER_TRANSIENT_STATUSES: CLUSTER_TRANSIENT_STATUSES
17886
18065
  });
17887
18066
 
17888
- var index$6 = /*#__PURE__*/Object.freeze({
18067
+ var index$7 = /*#__PURE__*/Object.freeze({
17889
18068
  __proto__: null,
17890
- v1: index_gen$6
18069
+ v1: index_gen$7
17891
18070
  });
17892
18071
 
17893
18072
  // This file was automatically generated. DO NOT EDIT.
@@ -18005,7 +18184,7 @@ const marshalUpdateNamespaceRequest = (request, defaults) => ({
18005
18184
  });
18006
18185
 
18007
18186
  // This file was automatically generated. DO NOT EDIT.
18008
- const jsonContentHeaders$5 = {
18187
+ const jsonContentHeaders$6 = {
18009
18188
  'Content-Type': 'application/json; charset=utf-8'
18010
18189
  };
18011
18190
 
@@ -18014,7 +18193,7 @@ const jsonContentHeaders$5 = {
18014
18193
  *
18015
18194
  * Container registry API.
18016
18195
  */
18017
- let API$5 = class API extends API$o {
18196
+ let API$6 = class API extends API$p {
18018
18197
  /** Lists the available regions of the API. */
18019
18198
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
18020
18199
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -18059,7 +18238,7 @@ let API$5 = class API extends API$o {
18059
18238
  */
18060
18239
  createNamespace = request => this.client.fetch({
18061
18240
  body: JSON.stringify(marshalCreateNamespaceRequest(request, this.client.settings)),
18062
- headers: jsonContentHeaders$5,
18241
+ headers: jsonContentHeaders$6,
18063
18242
  method: 'POST',
18064
18243
  path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
18065
18244
  }, unmarshalNamespace);
@@ -18072,7 +18251,7 @@ let API$5 = class API extends API$o {
18072
18251
  */
18073
18252
  updateNamespace = request => this.client.fetch({
18074
18253
  body: JSON.stringify(marshalUpdateNamespaceRequest(request, this.client.settings)),
18075
- headers: jsonContentHeaders$5,
18254
+ headers: jsonContentHeaders$6,
18076
18255
  method: 'PATCH',
18077
18256
  path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
18078
18257
  }, unmarshalNamespace);
@@ -18129,7 +18308,7 @@ let API$5 = class API extends API$o {
18129
18308
  */
18130
18309
  updateImage = request => this.client.fetch({
18131
18310
  body: JSON.stringify(marshalUpdateImageRequest(request, this.client.settings)),
18132
- headers: jsonContentHeaders$5,
18311
+ headers: jsonContentHeaders$6,
18133
18312
  method: 'PATCH',
18134
18313
  path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}`
18135
18314
  }, unmarshalImage);
@@ -18193,17 +18372,17 @@ let API$5 = class API extends API$o {
18193
18372
 
18194
18373
  // This file was automatically generated. DO NOT EDIT.
18195
18374
 
18196
- var index_gen$5 = /*#__PURE__*/Object.freeze({
18375
+ var index_gen$6 = /*#__PURE__*/Object.freeze({
18197
18376
  __proto__: null,
18198
- API: API$5,
18377
+ API: API$6,
18199
18378
  IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES,
18200
18379
  NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES,
18201
18380
  TAG_TRANSIENT_STATUSES: TAG_TRANSIENT_STATUSES
18202
18381
  });
18203
18382
 
18204
- var index$5 = /*#__PURE__*/Object.freeze({
18383
+ var index$6 = /*#__PURE__*/Object.freeze({
18205
18384
  __proto__: null,
18206
- v1: index_gen$5
18385
+ v1: index_gen$6
18207
18386
  });
18208
18387
 
18209
18388
  // This file was automatically generated. DO NOT EDIT.
@@ -18285,7 +18464,7 @@ const marshalUpdateSecretVersionRequest = (request, defaults) => ({
18285
18464
  });
18286
18465
 
18287
18466
  // This file was automatically generated. DO NOT EDIT.
18288
- const jsonContentHeaders$4 = {
18467
+ const jsonContentHeaders$5 = {
18289
18468
  'Content-Type': 'application/json; charset=utf-8'
18290
18469
  };
18291
18470
 
@@ -18294,7 +18473,7 @@ const jsonContentHeaders$4 = {
18294
18473
  *
18295
18474
  * This API allows you to conveniently store, access and share sensitive data.
18296
18475
  */
18297
- let API$4 = class API extends API$o {
18476
+ let API$5 = class API extends API$p {
18298
18477
  /** Lists the available regions of the API. */
18299
18478
  static LOCALITIES = ['fr-par'];
18300
18479
 
@@ -18306,7 +18485,7 @@ let API$4 = class API extends API$o {
18306
18485
  */
18307
18486
  createSecret = request => this.client.fetch({
18308
18487
  body: JSON.stringify(marshalCreateSecretRequest(request, this.client.settings)),
18309
- headers: jsonContentHeaders$4,
18488
+ headers: jsonContentHeaders$5,
18310
18489
  method: 'POST',
18311
18490
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets`
18312
18491
  }, unmarshalSecret);
@@ -18341,7 +18520,7 @@ let API$4 = class API extends API$o {
18341
18520
  */
18342
18521
  updateSecret = request => this.client.fetch({
18343
18522
  body: JSON.stringify(marshalUpdateSecretRequest(request, this.client.settings)),
18344
- headers: jsonContentHeaders$4,
18523
+ headers: jsonContentHeaders$5,
18345
18524
  method: 'PATCH',
18346
18525
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}`
18347
18526
  }, unmarshalSecret);
@@ -18377,7 +18556,7 @@ let API$4 = class API extends API$o {
18377
18556
  */
18378
18557
  createSecretVersion = request => this.client.fetch({
18379
18558
  body: JSON.stringify(marshalCreateSecretVersionRequest(request, this.client.settings)),
18380
- headers: jsonContentHeaders$4,
18559
+ headers: jsonContentHeaders$5,
18381
18560
  method: 'POST',
18382
18561
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions`
18383
18562
  }, unmarshalSecretVersion);
@@ -18412,7 +18591,7 @@ let API$4 = class API extends API$o {
18412
18591
  */
18413
18592
  updateSecretVersion = request => this.client.fetch({
18414
18593
  body: JSON.stringify(marshalUpdateSecretVersionRequest(request, this.client.settings)),
18415
- headers: jsonContentHeaders$4,
18594
+ headers: jsonContentHeaders$5,
18416
18595
  method: 'PATCH',
18417
18596
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}`
18418
18597
  }, unmarshalSecretVersion);
@@ -18451,7 +18630,7 @@ let API$4 = class API extends API$o {
18451
18630
  */
18452
18631
  destroySecretVersion = request => this.client.fetch({
18453
18632
  body: '{}',
18454
- headers: jsonContentHeaders$4,
18633
+ headers: jsonContentHeaders$5,
18455
18634
  method: 'POST',
18456
18635
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/destroy`
18457
18636
  }, unmarshalSecretVersion);
@@ -18464,7 +18643,7 @@ let API$4 = class API extends API$o {
18464
18643
  */
18465
18644
  enableSecretVersion = request => this.client.fetch({
18466
18645
  body: '{}',
18467
- headers: jsonContentHeaders$4,
18646
+ headers: jsonContentHeaders$5,
18468
18647
  method: 'POST',
18469
18648
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/enable`
18470
18649
  }, unmarshalSecretVersion);
@@ -18477,7 +18656,7 @@ let API$4 = class API extends API$o {
18477
18656
  */
18478
18657
  disableSecretVersion = request => this.client.fetch({
18479
18658
  body: '{}',
18480
- headers: jsonContentHeaders$4,
18659
+ headers: jsonContentHeaders$5,
18481
18660
  method: 'POST',
18482
18661
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/disable`
18483
18662
  }, unmarshalSecretVersion);
@@ -18507,14 +18686,14 @@ let API$4 = class API extends API$o {
18507
18686
 
18508
18687
  // This file was automatically generated. DO NOT EDIT.
18509
18688
 
18510
- var index_gen$4 = /*#__PURE__*/Object.freeze({
18689
+ var index_gen$5 = /*#__PURE__*/Object.freeze({
18511
18690
  __proto__: null,
18512
- API: API$4
18691
+ API: API$5
18513
18692
  });
18514
18693
 
18515
- var index$4 = /*#__PURE__*/Object.freeze({
18694
+ var index$5 = /*#__PURE__*/Object.freeze({
18516
18695
  __proto__: null,
18517
- v1alpha1: index_gen$4
18696
+ v1alpha1: index_gen$5
18518
18697
  });
18519
18698
 
18520
18699
  // This file was automatically generated. DO NOT EDIT.
@@ -18600,7 +18779,7 @@ const marshalUpdateHumanRequest = (request, defaults) => ({
18600
18779
  });
18601
18780
 
18602
18781
  // This file was automatically generated. DO NOT EDIT.
18603
- const jsonContentHeaders$3 = {
18782
+ const jsonContentHeaders$4 = {
18604
18783
  'Content-Type': 'application/json; charset=utf-8'
18605
18784
  };
18606
18785
 
@@ -18618,7 +18797,7 @@ const jsonContentHeaders$3 = {
18618
18797
  * access-key. Then, you can use other test commands by setting the
18619
18798
  * SCW_SECRET_KEY env variable.
18620
18799
  */
18621
- let API$3 = class API extends API$o {
18800
+ let API$4 = class API extends API$p {
18622
18801
  /**
18623
18802
  * Register a human and return a access-key and a secret-key that must be used
18624
18803
  * in all other commands.
@@ -18631,7 +18810,7 @@ let API$3 = class API extends API$o {
18631
18810
  */
18632
18811
  register = request => this.client.fetch({
18633
18812
  body: JSON.stringify(marshalRegisterRequest(request, this.client.settings)),
18634
- headers: jsonContentHeaders$3,
18813
+ headers: jsonContentHeaders$4,
18635
18814
  method: 'POST',
18636
18815
  path: `/test/v1/register`
18637
18816
  }, unmarshalRegisterResponse);
@@ -18677,7 +18856,7 @@ let API$3 = class API extends API$o {
18677
18856
  */
18678
18857
  createHuman = request => this.client.fetch({
18679
18858
  body: JSON.stringify(marshalCreateHumanRequest(request, this.client.settings)),
18680
- headers: jsonContentHeaders$3,
18859
+ headers: jsonContentHeaders$4,
18681
18860
  method: 'POST',
18682
18861
  path: `/test/v1/humans`
18683
18862
  }, unmarshalHuman);
@@ -18690,7 +18869,7 @@ let API$3 = class API extends API$o {
18690
18869
  */
18691
18870
  updateHuman = request => this.client.fetch({
18692
18871
  body: JSON.stringify(marshalUpdateHumanRequest(request, this.client.settings)),
18693
- headers: jsonContentHeaders$3,
18872
+ headers: jsonContentHeaders$4,
18694
18873
  method: 'PATCH',
18695
18874
  path: `/test/v1/humans/${validatePathParam('humanId', request.humanId)}`
18696
18875
  }, unmarshalHuman);
@@ -18714,7 +18893,7 @@ let API$3 = class API extends API$o {
18714
18893
  */
18715
18894
  runHuman = request => this.client.fetch({
18716
18895
  body: '{}',
18717
- headers: jsonContentHeaders$3,
18896
+ headers: jsonContentHeaders$4,
18718
18897
  method: 'POST',
18719
18898
  path: `/test/v1/humans/${validatePathParam('humanId', request.humanId)}/run`
18720
18899
  }, unmarshalHuman);
@@ -18728,7 +18907,7 @@ let API$3 = class API extends API$o {
18728
18907
  */
18729
18908
  smokeHuman = (request = {}) => this.client.fetch({
18730
18909
  body: '{}',
18731
- headers: jsonContentHeaders$3,
18910
+ headers: jsonContentHeaders$4,
18732
18911
  method: 'POST',
18733
18912
  path: `/test/v1/humans/${validatePathParam('humanId', request.humanId)}/smoke`
18734
18913
  }, unmarshalHuman);
@@ -18736,15 +18915,15 @@ let API$3 = class API extends API$o {
18736
18915
 
18737
18916
  // This file was automatically generated. DO NOT EDIT.
18738
18917
 
18739
- var index_gen$3 = /*#__PURE__*/Object.freeze({
18918
+ var index_gen$4 = /*#__PURE__*/Object.freeze({
18740
18919
  __proto__: null,
18741
- API: API$3,
18920
+ API: API$4,
18742
18921
  HUMAN_TRANSIENT_STATUSES: HUMAN_TRANSIENT_STATUSES
18743
18922
  });
18744
18923
 
18745
- var index$3 = /*#__PURE__*/Object.freeze({
18924
+ var index$4 = /*#__PURE__*/Object.freeze({
18746
18925
  __proto__: null,
18747
- v1: index_gen$3
18926
+ v1: index_gen$4
18748
18927
  });
18749
18928
 
18750
18929
  // This file was automatically generated. DO NOT EDIT.
@@ -18885,7 +19064,7 @@ const marshalCreateEmailRequest = (request, defaults) => ({
18885
19064
  });
18886
19065
 
18887
19066
  // This file was automatically generated. DO NOT EDIT.
18888
- const jsonContentHeaders$2 = {
19067
+ const jsonContentHeaders$3 = {
18889
19068
  'Content-Type': 'application/json; charset=utf-8'
18890
19069
  };
18891
19070
 
@@ -18894,7 +19073,7 @@ const jsonContentHeaders$2 = {
18894
19073
  *
18895
19074
  * Tem.
18896
19075
  */
18897
- let API$2 = class API extends API$o {
19076
+ let API$3 = class API extends API$p {
18898
19077
  /** Lists the available regions of the API. */
18899
19078
  static LOCALITIES = ['fr-par'];
18900
19079
 
@@ -18906,7 +19085,7 @@ let API$2 = class API extends API$o {
18906
19085
  */
18907
19086
  createEmail = request => this.client.fetch({
18908
19087
  body: JSON.stringify(marshalCreateEmailRequest(request, this.client.settings)),
18909
- headers: jsonContentHeaders$2,
19088
+ headers: jsonContentHeaders$3,
18910
19089
  method: 'POST',
18911
19090
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/emails`
18912
19091
  }, unmarshalCreateEmailResponse);
@@ -18965,7 +19144,7 @@ let API$2 = class API extends API$o {
18965
19144
  */
18966
19145
  cancelEmail = request => this.client.fetch({
18967
19146
  body: '{}',
18968
- headers: jsonContentHeaders$2,
19147
+ headers: jsonContentHeaders$3,
18969
19148
  method: 'POST',
18970
19149
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/emails/${validatePathParam('emailId', request.emailId)}/cancel`
18971
19150
  }, unmarshalEmail);
@@ -18978,7 +19157,7 @@ let API$2 = class API extends API$o {
18978
19157
  */
18979
19158
  createDomain = request => this.client.fetch({
18980
19159
  body: JSON.stringify(marshalCreateDomainRequest(request, this.client.settings)),
18981
- headers: jsonContentHeaders$2,
19160
+ headers: jsonContentHeaders$3,
18982
19161
  method: 'POST',
18983
19162
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
18984
19163
  }, unmarshalDomain);
@@ -19024,7 +19203,7 @@ let API$2 = class API extends API$o {
19024
19203
  */
19025
19204
  revokeDomain = request => this.client.fetch({
19026
19205
  body: '{}',
19027
- headers: jsonContentHeaders$2,
19206
+ headers: jsonContentHeaders$3,
19028
19207
  method: 'POST',
19029
19208
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}/revoke`
19030
19209
  }, unmarshalDomain);
@@ -19037,7 +19216,7 @@ let API$2 = class API extends API$o {
19037
19216
  */
19038
19217
  checkDomain = request => this.client.fetch({
19039
19218
  body: '{}',
19040
- headers: jsonContentHeaders$2,
19219
+ headers: jsonContentHeaders$3,
19041
19220
  method: 'POST',
19042
19221
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}/check`
19043
19222
  }, unmarshalDomain);
@@ -19045,16 +19224,16 @@ let API$2 = class API extends API$o {
19045
19224
 
19046
19225
  // This file was automatically generated. DO NOT EDIT.
19047
19226
 
19048
- var index_gen$2 = /*#__PURE__*/Object.freeze({
19227
+ var index_gen$3 = /*#__PURE__*/Object.freeze({
19049
19228
  __proto__: null,
19050
- API: API$2,
19229
+ API: API$3,
19051
19230
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES,
19052
19231
  EMAIL_TRANSIENT_STATUSES: EMAIL_TRANSIENT_STATUSES
19053
19232
  });
19054
19233
 
19055
- var index$2 = /*#__PURE__*/Object.freeze({
19234
+ var index$3 = /*#__PURE__*/Object.freeze({
19056
19235
  __proto__: null,
19057
- v1alpha1: index_gen$2
19236
+ v1alpha1: index_gen$3
19058
19237
  });
19059
19238
 
19060
19239
  // This file was automatically generated. DO NOT EDIT.
@@ -19096,12 +19275,12 @@ const marshalUpdatePrivateNetworkRequest = (request, defaults) => ({
19096
19275
  });
19097
19276
 
19098
19277
  // This file was automatically generated. DO NOT EDIT.
19099
- const jsonContentHeaders$1 = {
19278
+ const jsonContentHeaders$2 = {
19100
19279
  'Content-Type': 'application/json; charset=utf-8'
19101
19280
  };
19102
19281
 
19103
19282
  /** VPC API. */
19104
- let API$1 = class API extends API$o {
19283
+ let API$2 = class API extends API$p {
19105
19284
  /** Lists the available zones of the API. */
19106
19285
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
19107
19286
  pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
@@ -19126,7 +19305,7 @@ let API$1 = class API extends API$o {
19126
19305
  */
19127
19306
  createPrivateNetwork = (request = {}) => this.client.fetch({
19128
19307
  body: JSON.stringify(marshalCreatePrivateNetworkRequest(request, this.client.settings)),
19129
- headers: jsonContentHeaders$1,
19308
+ headers: jsonContentHeaders$2,
19130
19309
  method: 'POST',
19131
19310
  path: `/vpc/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/private-networks`
19132
19311
  }, unmarshalPrivateNetwork);
@@ -19150,7 +19329,7 @@ let API$1 = class API extends API$o {
19150
19329
  */
19151
19330
  updatePrivateNetwork = request => this.client.fetch({
19152
19331
  body: JSON.stringify(marshalUpdatePrivateNetworkRequest(request, this.client.settings)),
19153
- headers: jsonContentHeaders$1,
19332
+ headers: jsonContentHeaders$2,
19154
19333
  method: 'PATCH',
19155
19334
  path: `/vpc/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
19156
19335
  }, unmarshalPrivateNetwork);
@@ -19168,14 +19347,14 @@ let API$1 = class API extends API$o {
19168
19347
 
19169
19348
  // This file was automatically generated. DO NOT EDIT.
19170
19349
 
19171
- var index_gen$1 = /*#__PURE__*/Object.freeze({
19350
+ var index_gen$2 = /*#__PURE__*/Object.freeze({
19172
19351
  __proto__: null,
19173
- API: API$1
19352
+ API: API$2
19174
19353
  });
19175
19354
 
19176
- var index$1 = /*#__PURE__*/Object.freeze({
19355
+ var index$2 = /*#__PURE__*/Object.freeze({
19177
19356
  __proto__: null,
19178
- v1: index_gen$1
19357
+ v1: index_gen$2
19179
19358
  });
19180
19359
 
19181
19360
  // This file was automatically generated. DO NOT EDIT.
@@ -19519,12 +19698,12 @@ const marshalUpdatePATRuleRequest = (request, defaults) => ({
19519
19698
  });
19520
19699
 
19521
19700
  // This file was automatically generated. DO NOT EDIT.
19522
- const jsonContentHeaders = {
19701
+ const jsonContentHeaders$1 = {
19523
19702
  'Content-Type': 'application/json; charset=utf-8'
19524
19703
  };
19525
19704
 
19526
19705
  /** VPC Public Gateway API. */
19527
- class API extends API$o {
19706
+ let API$1 = class API extends API$p {
19528
19707
  /** Lists the available zones of the API. */
19529
19708
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
19530
19709
  pageOfListGateways = (request = {}) => this.client.fetch({
@@ -19569,7 +19748,7 @@ class API extends API$o {
19569
19748
  */
19570
19749
  createGateway = request => this.client.fetch({
19571
19750
  body: JSON.stringify(marshalCreateGatewayRequest(request, this.client.settings)),
19572
- headers: jsonContentHeaders,
19751
+ headers: jsonContentHeaders$1,
19573
19752
  method: 'POST',
19574
19753
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways`
19575
19754
  }, unmarshalGateway);
@@ -19582,7 +19761,7 @@ class API extends API$o {
19582
19761
  */
19583
19762
  updateGateway = request => this.client.fetch({
19584
19763
  body: JSON.stringify(marshalUpdateGatewayRequest(request, this.client.settings)),
19585
- headers: jsonContentHeaders,
19764
+ headers: jsonContentHeaders$1,
19586
19765
  method: 'PATCH',
19587
19766
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam('gatewayId', request.gatewayId)}`
19588
19767
  }, unmarshalGateway);
@@ -19606,7 +19785,7 @@ class API extends API$o {
19606
19785
  */
19607
19786
  upgradeGateway = request => this.client.fetch({
19608
19787
  body: '{}',
19609
- headers: jsonContentHeaders,
19788
+ headers: jsonContentHeaders$1,
19610
19789
  method: 'POST',
19611
19790
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam('gatewayId', request.gatewayId)}/upgrade`
19612
19791
  }, unmarshalGateway);
@@ -19652,7 +19831,7 @@ class API extends API$o {
19652
19831
  */
19653
19832
  createGatewayNetwork = request => this.client.fetch({
19654
19833
  body: JSON.stringify(marshalCreateGatewayNetworkRequest(request, this.client.settings)),
19655
- headers: jsonContentHeaders,
19834
+ headers: jsonContentHeaders$1,
19656
19835
  method: 'POST',
19657
19836
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateway-networks`
19658
19837
  }, unmarshalGatewayNetwork);
@@ -19665,7 +19844,7 @@ class API extends API$o {
19665
19844
  */
19666
19845
  updateGatewayNetwork = request => this.client.fetch({
19667
19846
  body: JSON.stringify(marshalUpdateGatewayNetworkRequest(request, this.client.settings)),
19668
- headers: jsonContentHeaders,
19847
+ headers: jsonContentHeaders$1,
19669
19848
  method: 'PATCH',
19670
19849
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam('gatewayNetworkId', request.gatewayNetworkId)}`
19671
19850
  }, unmarshalGatewayNetwork);
@@ -19713,7 +19892,7 @@ class API extends API$o {
19713
19892
  */
19714
19893
  createDHCP = request => this.client.fetch({
19715
19894
  body: JSON.stringify(marshalCreateDHCPRequest(request, this.client.settings)),
19716
- headers: jsonContentHeaders,
19895
+ headers: jsonContentHeaders$1,
19717
19896
  method: 'POST',
19718
19897
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/dhcps`
19719
19898
  }, unmarshalDHCP);
@@ -19726,7 +19905,7 @@ class API extends API$o {
19726
19905
  */
19727
19906
  updateDHCP = request => this.client.fetch({
19728
19907
  body: JSON.stringify(marshalUpdateDHCPRequest(request, this.client.settings)),
19729
- headers: jsonContentHeaders,
19908
+ headers: jsonContentHeaders$1,
19730
19909
  method: 'PATCH',
19731
19910
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam('dhcpId', request.dhcpId)}`
19732
19911
  }, unmarshalDHCP);
@@ -19773,7 +19952,7 @@ class API extends API$o {
19773
19952
  */
19774
19953
  createDHCPEntry = request => this.client.fetch({
19775
19954
  body: JSON.stringify(marshalCreateDHCPEntryRequest(request, this.client.settings)),
19776
- headers: jsonContentHeaders,
19955
+ headers: jsonContentHeaders$1,
19777
19956
  method: 'POST',
19778
19957
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`
19779
19958
  }, unmarshalDHCPEntry);
@@ -19786,7 +19965,7 @@ class API extends API$o {
19786
19965
  */
19787
19966
  updateDHCPEntry = request => this.client.fetch({
19788
19967
  body: JSON.stringify(marshalUpdateDHCPEntryRequest(request, this.client.settings)),
19789
- headers: jsonContentHeaders,
19968
+ headers: jsonContentHeaders$1,
19790
19969
  method: 'PATCH',
19791
19970
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam('dhcpEntryId', request.dhcpEntryId)}`
19792
19971
  }, unmarshalDHCPEntry);
@@ -19802,7 +19981,7 @@ class API extends API$o {
19802
19981
  */
19803
19982
  setDHCPEntries = request => this.client.fetch({
19804
19983
  body: JSON.stringify(marshalSetDHCPEntriesRequest(request, this.client.settings)),
19805
- headers: jsonContentHeaders,
19984
+ headers: jsonContentHeaders$1,
19806
19985
  method: 'PUT',
19807
19986
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`
19808
19987
  }, unmarshalSetDHCPEntriesResponse);
@@ -19849,7 +20028,7 @@ class API extends API$o {
19849
20028
  */
19850
20029
  createPATRule = request => this.client.fetch({
19851
20030
  body: JSON.stringify(marshalCreatePATRuleRequest(request, this.client.settings)),
19852
- headers: jsonContentHeaders,
20031
+ headers: jsonContentHeaders$1,
19853
20032
  method: 'POST',
19854
20033
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/pat-rules`
19855
20034
  }, unmarshalPATRule);
@@ -19862,7 +20041,7 @@ class API extends API$o {
19862
20041
  */
19863
20042
  updatePATRule = request => this.client.fetch({
19864
20043
  body: JSON.stringify(marshalUpdatePATRuleRequest(request, this.client.settings)),
19865
- headers: jsonContentHeaders,
20044
+ headers: jsonContentHeaders$1,
19866
20045
  method: 'PATCH',
19867
20046
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam('patRuleId', request.patRuleId)}`
19868
20047
  }, unmarshalPATRule);
@@ -19877,7 +20056,7 @@ class API extends API$o {
19877
20056
  */
19878
20057
  setPATRules = request => this.client.fetch({
19879
20058
  body: JSON.stringify(marshalSetPATRulesRequest(request, this.client.settings)),
19880
- headers: jsonContentHeaders,
20059
+ headers: jsonContentHeaders$1,
19881
20060
  method: 'PUT',
19882
20061
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/pat-rules`
19883
20062
  }, unmarshalSetPATRulesResponse);
@@ -19935,7 +20114,7 @@ class API extends API$o {
19935
20114
  */
19936
20115
  createIP = (request = {}) => this.client.fetch({
19937
20116
  body: JSON.stringify(marshalCreateIPRequest(request, this.client.settings)),
19938
- headers: jsonContentHeaders,
20117
+ headers: jsonContentHeaders$1,
19939
20118
  method: 'POST',
19940
20119
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
19941
20120
  }, unmarshalIP);
@@ -19948,7 +20127,7 @@ class API extends API$o {
19948
20127
  */
19949
20128
  updateIP = request => this.client.fetch({
19950
20129
  body: JSON.stringify(marshalUpdateIPRequest(request, this.client.settings)),
19951
- headers: jsonContentHeaders,
20130
+ headers: jsonContentHeaders$1,
19952
20131
  method: 'PATCH',
19953
20132
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
19954
20133
  }, unmarshalIP);
@@ -19971,51 +20150,342 @@ class API extends API$o {
19971
20150
  */
19972
20151
  refreshSSHKeys = request => this.client.fetch({
19973
20152
  body: '{}',
19974
- headers: jsonContentHeaders,
20153
+ headers: jsonContentHeaders$1,
19975
20154
  method: 'POST',
19976
20155
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam('gatewayId', request.gatewayId)}/refresh-ssh-keys`
19977
20156
  }, unmarshalGateway);
20157
+ };
20158
+
20159
+ // This file was automatically generated. DO NOT EDIT.
20160
+
20161
+ var index_gen$1 = /*#__PURE__*/Object.freeze({
20162
+ __proto__: null,
20163
+ API: API$1,
20164
+ GATEWAY_NETWORK_TRANSIENT_STATUSES: GATEWAY_NETWORK_TRANSIENT_STATUSES,
20165
+ GATEWAY_TRANSIENT_STATUSES: GATEWAY_TRANSIENT_STATUSES
20166
+ });
20167
+
20168
+ var index$1 = /*#__PURE__*/Object.freeze({
20169
+ __proto__: null,
20170
+ v1: index_gen$1
20171
+ });
20172
+
20173
+ // This file was automatically generated. DO NOT EDIT.
20174
+ // If you have any remark or suggestion do not hesitate to open an issue.
20175
+
20176
+ /** Lists transient statutes of the enum {@link HostingStatus}. */
20177
+ const HOSTING_TRANSIENT_STATUSES = ['delivering', 'deleting'];
20178
+
20179
+ // This file was automatically generated. DO NOT EDIT.
20180
+ const unmarshalHostingCpanelUrls = data => {
20181
+ if (!isJSONObject(data)) {
20182
+ throw new TypeError(`Unmarshalling the type 'HostingCpanelUrls' failed as data isn't a dictionary.`);
20183
+ }
20184
+ return {
20185
+ dashboard: data.dashboard,
20186
+ webmail: data.webmail
20187
+ };
20188
+ };
20189
+ const unmarshalHostingOption = data => {
20190
+ if (!isJSONObject(data)) {
20191
+ throw new TypeError(`Unmarshalling the type 'HostingOption' failed as data isn't a dictionary.`);
20192
+ }
20193
+ return {
20194
+ id: data.id,
20195
+ name: data.name
20196
+ };
20197
+ };
20198
+ const unmarshalOfferProduct = data => {
20199
+ if (!isJSONObject(data)) {
20200
+ throw new TypeError(`Unmarshalling the type 'OfferProduct' failed as data isn't a dictionary.`);
20201
+ }
20202
+ return {
20203
+ databasesQuota: data.databases_quota,
20204
+ emailAccountsQuota: data.email_accounts_quota,
20205
+ emailStorageQuota: data.email_storage_quota,
20206
+ hostingStorageQuota: data.hosting_storage_quota,
20207
+ name: data.name,
20208
+ option: data.option,
20209
+ ram: data.ram,
20210
+ supportIncluded: data.support_included,
20211
+ vCpu: data.v_cpu
20212
+ };
20213
+ };
20214
+ const unmarshalDnsRecord = data => {
20215
+ if (!isJSONObject(data)) {
20216
+ throw new TypeError(`Unmarshalling the type 'DnsRecord' failed as data isn't a dictionary.`);
20217
+ }
20218
+ return {
20219
+ name: data.name,
20220
+ priority: data.priority,
20221
+ status: data.status,
20222
+ ttl: data.ttl,
20223
+ type: data.type,
20224
+ value: data.value
20225
+ };
20226
+ };
20227
+ const unmarshalHosting = data => {
20228
+ if (!isJSONObject(data)) {
20229
+ throw new TypeError(`Unmarshalling the type 'Hosting' failed as data isn't a dictionary.`);
20230
+ }
20231
+ return {
20232
+ cpanelUrls: data.cpanel_urls ? unmarshalHostingCpanelUrls(data.cpanel_urls) : undefined,
20233
+ createdAt: unmarshalDate(data.created_at),
20234
+ dnsStatus: data.dns_status,
20235
+ domain: data.domain,
20236
+ id: data.id,
20237
+ offerId: data.offer_id,
20238
+ offerName: data.offer_name,
20239
+ options: unmarshalArrayOfObject(data.options, unmarshalHostingOption),
20240
+ organizationId: data.organization_id,
20241
+ platformHostname: data.platform_hostname,
20242
+ platformNumber: data.platform_number,
20243
+ projectId: data.project_id,
20244
+ region: data.region,
20245
+ status: data.status,
20246
+ tags: data.tags,
20247
+ updatedAt: unmarshalDate(data.updated_at),
20248
+ username: data.username
20249
+ };
20250
+ };
20251
+ const unmarshalNameserver = data => {
20252
+ if (!isJSONObject(data)) {
20253
+ throw new TypeError(`Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`);
20254
+ }
20255
+ return {
20256
+ hostname: data.hostname,
20257
+ isDefault: data.is_default,
20258
+ status: data.status
20259
+ };
20260
+ };
20261
+ const unmarshalOffer = data => {
20262
+ if (!isJSONObject(data)) {
20263
+ throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
20264
+ }
20265
+ return {
20266
+ billingOperationPath: data.billing_operation_path,
20267
+ id: data.id,
20268
+ price: data.price ? unmarshalMoney(data.price) : undefined,
20269
+ product: data.product ? unmarshalOfferProduct(data.product) : undefined
20270
+ };
20271
+ };
20272
+ const unmarshalDnsRecords = data => {
20273
+ if (!isJSONObject(data)) {
20274
+ throw new TypeError(`Unmarshalling the type 'DnsRecords' failed as data isn't a dictionary.`);
20275
+ }
20276
+ return {
20277
+ nameServers: unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
20278
+ records: unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
20279
+ status: data.status
20280
+ };
20281
+ };
20282
+ const unmarshalListHostingsResponse = data => {
20283
+ if (!isJSONObject(data)) {
20284
+ throw new TypeError(`Unmarshalling the type 'ListHostingsResponse' failed as data isn't a dictionary.`);
20285
+ }
20286
+ return {
20287
+ hostings: unmarshalArrayOfObject(data.hostings, unmarshalHosting),
20288
+ totalCount: data.total_count
20289
+ };
20290
+ };
20291
+ const unmarshalListOffersResponse = data => {
20292
+ if (!isJSONObject(data)) {
20293
+ throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
20294
+ }
20295
+ return {
20296
+ offers: unmarshalArrayOfObject(data.offers, unmarshalOffer)
20297
+ };
20298
+ };
20299
+ const marshalCreateHostingRequest = (request, defaults) => ({
20300
+ domain: request.domain,
20301
+ email: request.email,
20302
+ offer_id: request.offerId,
20303
+ option_ids: request.optionIds,
20304
+ project_id: request.projectId ?? defaults.defaultProjectId,
20305
+ tags: request.tags
20306
+ });
20307
+ const marshalUpdateHostingRequest = (request, defaults) => ({
20308
+ email: request.email,
20309
+ offer_id: request.offerId,
20310
+ option_ids: request.optionIds,
20311
+ tags: request.tags
20312
+ });
20313
+
20314
+ // This file was automatically generated. DO NOT EDIT.
20315
+ const jsonContentHeaders = {
20316
+ 'Content-Type': 'application/json; charset=utf-8'
20317
+ };
20318
+
20319
+ /** Webhosting API. */
20320
+ class API extends API$p {
20321
+ /** Lists the available regions of the API. */
20322
+ static LOCALITIES = ['fr-par'];
20323
+
20324
+ /**
20325
+ * Create a hosting
20326
+ *
20327
+ * @param request - The request {@link CreateHostingRequest}
20328
+ * @returns A Promise of Hosting
20329
+ */
20330
+ createHosting = request => this.client.fetch({
20331
+ body: JSON.stringify(marshalCreateHostingRequest(request, this.client.settings)),
20332
+ headers: jsonContentHeaders,
20333
+ method: 'POST',
20334
+ path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hostings`
20335
+ }, unmarshalHosting);
20336
+ pageOfListHostings = (request = {}) => this.client.fetch({
20337
+ method: 'GET',
20338
+ path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hostings`,
20339
+ urlParams: urlParams(['domain', request.domain], ['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], ['statuses', request.statuses], ['tags', request.tags])
20340
+ }, unmarshalListHostingsResponse);
20341
+
20342
+ /**
20343
+ * List all hostings
20344
+ *
20345
+ * @param request - The request {@link ListHostingsRequest}
20346
+ * @returns A Promise of ListHostingsResponse
20347
+ */
20348
+ listHostings = (request = {}) => enrichForPagination('hostings', this.pageOfListHostings, request);
20349
+
20350
+ /**
20351
+ * Get the details of a Hosting with the given ID.
20352
+ *
20353
+ * @param request - The request {@link GetHostingRequest}
20354
+ * @returns A Promise of Hosting
20355
+ */
20356
+ getHosting = request => this.client.fetch({
20357
+ method: 'GET',
20358
+ path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam('hostingId', request.hostingId)}`
20359
+ }, unmarshalHosting);
20360
+
20361
+ /**
20362
+ * Waits for {@link Hosting} to be in a final state.
20363
+ *
20364
+ * @param request - The request {@link GetHostingRequest}
20365
+ * @param options - The waiting options
20366
+ * @returns A Promise of Hosting
20367
+ */
20368
+ waitForHosting = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!HOSTING_TRANSIENT_STATUSES.includes(res.status))), this.getHosting, request, options);
20369
+
20370
+ /**
20371
+ * Update a hosting
20372
+ *
20373
+ * @param request - The request {@link UpdateHostingRequest}
20374
+ * @returns A Promise of Hosting
20375
+ */
20376
+ updateHosting = request => this.client.fetch({
20377
+ body: JSON.stringify(marshalUpdateHostingRequest(request, this.client.settings)),
20378
+ headers: jsonContentHeaders,
20379
+ method: 'PATCH',
20380
+ path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam('hostingId', request.hostingId)}`
20381
+ }, unmarshalHosting);
20382
+
20383
+ /**
20384
+ * Delete a hosting with the given ID.
20385
+ *
20386
+ * @param request - The request {@link DeleteHostingRequest}
20387
+ * @returns A Promise of Hosting
20388
+ */
20389
+ deleteHosting = request => this.client.fetch({
20390
+ method: 'DELETE',
20391
+ path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam('hostingId', request.hostingId)}`
20392
+ }, unmarshalHosting);
20393
+
20394
+ /**
20395
+ * Restore a hosting with the given ID.
20396
+ *
20397
+ * @param request - The request {@link RestoreHostingRequest}
20398
+ * @returns A Promise of Hosting
20399
+ */
20400
+ restoreHosting = request => this.client.fetch({
20401
+ body: '{}',
20402
+ headers: jsonContentHeaders,
20403
+ method: 'POST',
20404
+ path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam('hostingId', request.hostingId)}/restore`
20405
+ }, unmarshalHosting);
20406
+
20407
+ /**
20408
+ * Get the DNS records of a specified domain.
20409
+ *
20410
+ * @param request - The request {@link GetDomainDnsRecordsRequest}
20411
+ * @returns A Promise of DnsRecords
20412
+ */
20413
+ getDomainDnsRecords = request => this.client.fetch({
20414
+ method: 'GET',
20415
+ path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domain', request.domain)}/dns-records`
20416
+ }, unmarshalDnsRecords);
20417
+
20418
+ /**
20419
+ * List all offers
20420
+ *
20421
+ * @param request - The request {@link ListOffersRequest}
20422
+ * @returns A Promise of ListOffersResponse
20423
+ */
20424
+ listOffers = request => this.client.fetch({
20425
+ method: 'GET',
20426
+ path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/offers`,
20427
+ urlParams: urlParams(['only_options', request.onlyOptions], ['order_by', request.orderBy ?? 'price_asc'], ['without_options', request.withoutOptions])
20428
+ }, unmarshalListOffersResponse);
19978
20429
  }
19979
20430
 
20431
+ // This file was automatically generated. DO NOT EDIT.
20432
+ // If you have any remark or suggestion do not hesitate to open an issue.
20433
+
20434
+ const ListHostingsRequest = {
20435
+ page: {
20436
+ greaterThan: 0
20437
+ },
20438
+ pageSize: {
20439
+ greaterThan: 0,
20440
+ lessThanOrEqual: 100
20441
+ }
20442
+ };
20443
+
20444
+ var validationRules_gen = /*#__PURE__*/Object.freeze({
20445
+ __proto__: null,
20446
+ ListHostingsRequest: ListHostingsRequest
20447
+ });
20448
+
19980
20449
  // This file was automatically generated. DO NOT EDIT.
19981
20450
 
19982
20451
  var index_gen = /*#__PURE__*/Object.freeze({
19983
20452
  __proto__: null,
19984
20453
  API: API,
19985
- GATEWAY_NETWORK_TRANSIENT_STATUSES: GATEWAY_NETWORK_TRANSIENT_STATUSES,
19986
- GATEWAY_TRANSIENT_STATUSES: GATEWAY_TRANSIENT_STATUSES
20454
+ HOSTING_TRANSIENT_STATUSES: HOSTING_TRANSIENT_STATUSES,
20455
+ ValidationRules: validationRules_gen
19987
20456
  });
19988
20457
 
19989
20458
  var index = /*#__PURE__*/Object.freeze({
19990
20459
  __proto__: null,
19991
- v1: index_gen
19992
- });
19993
-
19994
- exports.API = API$o;
19995
- exports.Account = index$p;
19996
- exports.AppleSilicon = index$o;
19997
- exports.BareMetal = index$m;
19998
- exports.Cockpit = index$l;
19999
- exports.Container = index$k;
20000
- exports.Domain = index$j;
20001
- exports.Errors = index$r;
20002
- exports.FlexibleIP = index$i;
20003
- exports.Function = index$h;
20004
- exports.IAM = index$g;
20005
- exports.IOT = index$d;
20006
- exports.Instance = index$e;
20007
- exports.K8S = index$c;
20008
- exports.LB = index$a;
20009
- exports.MNQ = index$8;
20010
- exports.Marketplace = index$9;
20011
- exports.RDB = index$7;
20012
- exports.Redis = index$6;
20013
- exports.Registry = index$5;
20014
- exports.Secret = index$4;
20015
- exports.Test = index$3;
20016
- exports.TransactionalEmail = index$2;
20017
- exports.VPC = index$1;
20018
- exports.VPCGW = index;
20460
+ v1alpha1: index_gen
20461
+ });
20462
+
20463
+ exports.API = API$p;
20464
+ exports.Account = index$r;
20465
+ exports.AppleSilicon = index$q;
20466
+ exports.BareMetal = index$o;
20467
+ exports.Cockpit = index$n;
20468
+ exports.Container = index$m;
20469
+ exports.Domain = index$l;
20470
+ exports.Errors = index$t;
20471
+ exports.FlexibleIP = index$k;
20472
+ exports.Function = index$j;
20473
+ exports.IAM = index$i;
20474
+ exports.IOT = index$f;
20475
+ exports.Instance = index$g;
20476
+ exports.K8S = index$d;
20477
+ exports.LB = index$b;
20478
+ exports.MNQ = index$9;
20479
+ exports.Marketplace = index$a;
20480
+ exports.RDB = index$8;
20481
+ exports.Redis = index$7;
20482
+ exports.Registry = index$6;
20483
+ exports.Secret = index$5;
20484
+ exports.Test = index$4;
20485
+ exports.TransactionalEmail = index$3;
20486
+ exports.VPC = index$2;
20487
+ exports.VPCGW = index$1;
20488
+ exports.Webhosting = index;
20019
20489
  exports.authenticateWithSessionToken = authenticateWithSessionToken;
20020
20490
  exports.createAdvancedClient = createAdvancedClient;
20021
20491
  exports.createClient = createClient;