@scaleway/sdk 2.22.0 → 2.23.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
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v2.21.1';
500
+ const version = 'v2.22.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () =>
@@ -1578,7 +1578,7 @@ const createAdvancedClient = (...configs) => {
1578
1578
  */
1579
1579
  const createClient = (profile = {}) => createAdvancedClient(withProfile(profile));
1580
1580
 
1581
- var index$A = /*#__PURE__*/Object.freeze({
1581
+ var index$B = /*#__PURE__*/Object.freeze({
1582
1582
  __proto__: null,
1583
1583
  AlreadyExistsError: AlreadyExistsError,
1584
1584
  DeniedAuthenticationError: DeniedAuthenticationError,
@@ -1706,7 +1706,7 @@ const waitForResource = (stop, fetcher, request, options, strategy = createExpon
1706
1706
  *
1707
1707
  * @internal
1708
1708
  */
1709
- let API$y = class API {
1709
+ let API$z = class API {
1710
1710
  constructor(client) {
1711
1711
  this.client = client;
1712
1712
  }
@@ -2068,7 +2068,7 @@ const marshalUpdateProjectRequest = (request, defaults) => ({
2068
2068
 
2069
2069
  // This file was automatically generated. DO NOT EDIT.
2070
2070
  // If you have any remark or suggestion do not hesitate to open an issue.
2071
- const jsonContentHeaders$w = {
2071
+ const jsonContentHeaders$x = {
2072
2072
  'Content-Type': 'application/json; charset=utf-8'
2073
2073
  };
2074
2074
 
@@ -2077,7 +2077,7 @@ const jsonContentHeaders$w = {
2077
2077
  *
2078
2078
  * User related data. This API allows you to manage projects.
2079
2079
  */
2080
- let API$x = class API extends API$y {
2080
+ let API$y = class API extends API$z {
2081
2081
  /**
2082
2082
  * Create a new Project for an Organization. Deprecated in favor of Account
2083
2083
  * API v3. Generate a new Project for an Organization, specifying its
@@ -2089,7 +2089,7 @@ let API$x = class API extends API$y {
2089
2089
  */
2090
2090
  createProject = (request = {}) => this.client.fetch({
2091
2091
  body: JSON.stringify(marshalCreateProjectRequest(request, this.client.settings)),
2092
- headers: jsonContentHeaders$w,
2092
+ headers: jsonContentHeaders$x,
2093
2093
  method: 'POST',
2094
2094
  path: `/account/v2/projects`
2095
2095
  }, unmarshalProject$1);
@@ -2153,7 +2153,7 @@ let API$x = class API extends API$y {
2153
2153
  */
2154
2154
  updateProject = (request = {}) => this.client.fetch({
2155
2155
  body: JSON.stringify(marshalUpdateProjectRequest(request, this.client.settings)),
2156
- headers: jsonContentHeaders$w,
2156
+ headers: jsonContentHeaders$x,
2157
2157
  method: 'PATCH',
2158
2158
  path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
2159
2159
  }, unmarshalProject$1);
@@ -2162,9 +2162,9 @@ let API$x = class API extends API$y {
2162
2162
  // This file was automatically generated. DO NOT EDIT.
2163
2163
  // If you have any remark or suggestion do not hesitate to open an issue.
2164
2164
 
2165
- var index_gen$w = /*#__PURE__*/Object.freeze({
2165
+ var index_gen$x = /*#__PURE__*/Object.freeze({
2166
2166
  __proto__: null,
2167
- API: API$x
2167
+ API: API$y
2168
2168
  });
2169
2169
 
2170
2170
  // This file was automatically generated. DO NOT EDIT.
@@ -2203,7 +2203,7 @@ const marshalProjectApiUpdateProjectRequest = (request, defaults) => ({
2203
2203
 
2204
2204
  // This file was automatically generated. DO NOT EDIT.
2205
2205
  // If you have any remark or suggestion do not hesitate to open an issue.
2206
- const jsonContentHeaders$v = {
2206
+ const jsonContentHeaders$w = {
2207
2207
  'Content-Type': 'application/json; charset=utf-8'
2208
2208
  };
2209
2209
 
@@ -2212,7 +2212,7 @@ const jsonContentHeaders$v = {
2212
2212
  *
2213
2213
  * This API allows you to manage projects.
2214
2214
  */
2215
- class ProjectAPI extends API$y {
2215
+ class ProjectAPI extends API$z {
2216
2216
  /**
2217
2217
  * Create a new Project for an Organization. Generate a new Project for an
2218
2218
  * Organization, specifying its configuration including name and description.
@@ -2222,7 +2222,7 @@ class ProjectAPI extends API$y {
2222
2222
  */
2223
2223
  createProject = request => this.client.fetch({
2224
2224
  body: JSON.stringify(marshalProjectApiCreateProjectRequest(request, this.client.settings)),
2225
- headers: jsonContentHeaders$v,
2225
+ headers: jsonContentHeaders$w,
2226
2226
  method: 'POST',
2227
2227
  path: `/account/v3/projects`
2228
2228
  }, unmarshalProject);
@@ -2278,7 +2278,7 @@ class ProjectAPI extends API$y {
2278
2278
  */
2279
2279
  updateProject = (request = {}) => this.client.fetch({
2280
2280
  body: JSON.stringify(marshalProjectApiUpdateProjectRequest(request, this.client.settings)),
2281
- headers: jsonContentHeaders$v,
2281
+ headers: jsonContentHeaders$w,
2282
2282
  method: 'PATCH',
2283
2283
  path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
2284
2284
  }, unmarshalProject);
@@ -2322,7 +2322,7 @@ const ProjectApiUpdateProjectRequest = {
2322
2322
  }
2323
2323
  };
2324
2324
 
2325
- var validationRules_gen$f = /*#__PURE__*/Object.freeze({
2325
+ var validationRules_gen$g = /*#__PURE__*/Object.freeze({
2326
2326
  __proto__: null,
2327
2327
  ProjectApiCreateProjectRequest: ProjectApiCreateProjectRequest,
2328
2328
  ProjectApiListProjectsRequest: ProjectApiListProjectsRequest,
@@ -2332,27 +2332,27 @@ var validationRules_gen$f = /*#__PURE__*/Object.freeze({
2332
2332
  // This file was automatically generated. DO NOT EDIT.
2333
2333
  // If you have any remark or suggestion do not hesitate to open an issue.
2334
2334
 
2335
- var index_gen$v = /*#__PURE__*/Object.freeze({
2335
+ var index_gen$w = /*#__PURE__*/Object.freeze({
2336
2336
  __proto__: null,
2337
2337
  ProjectAPI: ProjectAPI,
2338
- ValidationRules: validationRules_gen$f
2338
+ ValidationRules: validationRules_gen$g
2339
2339
  });
2340
2340
 
2341
- var index$z = /*#__PURE__*/Object.freeze({
2341
+ var index$A = /*#__PURE__*/Object.freeze({
2342
2342
  __proto__: null,
2343
- v2: index_gen$w,
2344
- v3: index_gen$v
2343
+ v2: index_gen$x,
2344
+ v3: index_gen$w
2345
2345
  });
2346
2346
 
2347
2347
  // This file was automatically generated. DO NOT EDIT.
2348
2348
  // If you have any remark or suggestion do not hesitate to open an issue.
2349
2349
 
2350
2350
  /** Lists transient statutes of the enum {@link ServerStatus}. */
2351
- const SERVER_TRANSIENT_STATUSES$2 = ['starting', 'rebooting', 'updating', 'locking', 'unlocking', 'reinstalling'];
2351
+ const SERVER_TRANSIENT_STATUSES$3 = ['starting', 'rebooting', 'updating', 'locking', 'unlocking', 'reinstalling'];
2352
2352
 
2353
2353
  // This file was automatically generated. DO NOT EDIT.
2354
2354
  // If you have any remark or suggestion do not hesitate to open an issue.
2355
- const unmarshalOS$1 = data => {
2355
+ const unmarshalOS$2 = data => {
2356
2356
  if (!isJSONObject(data)) {
2357
2357
  throw new TypeError(`Unmarshalling the type 'OS' failed as data isn't a dictionary.`);
2358
2358
  }
@@ -2404,7 +2404,7 @@ const unmarshalServerType$1 = data => {
2404
2404
  stock: data.stock
2405
2405
  };
2406
2406
  };
2407
- const unmarshalServer$2 = data => {
2407
+ const unmarshalServer$3 = data => {
2408
2408
  if (!isJSONObject(data)) {
2409
2409
  throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
2410
2410
  }
@@ -2423,12 +2423,12 @@ const unmarshalServer$2 = data => {
2423
2423
  zone: data.zone
2424
2424
  };
2425
2425
  };
2426
- const unmarshalListOSResponse$1 = data => {
2426
+ const unmarshalListOSResponse$2 = data => {
2427
2427
  if (!isJSONObject(data)) {
2428
2428
  throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
2429
2429
  }
2430
2430
  return {
2431
- os: unmarshalArrayOfObject(data.os, unmarshalOS$1),
2431
+ os: unmarshalArrayOfObject(data.os, unmarshalOS$2),
2432
2432
  totalCount: data.total_count
2433
2433
  };
2434
2434
  };
@@ -2440,32 +2440,32 @@ const unmarshalListServerTypesResponse = data => {
2440
2440
  serverTypes: unmarshalArrayOfObject(data.server_types, unmarshalServerType$1)
2441
2441
  };
2442
2442
  };
2443
- const unmarshalListServersResponse$2 = data => {
2443
+ const unmarshalListServersResponse$3 = data => {
2444
2444
  if (!isJSONObject(data)) {
2445
2445
  throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
2446
2446
  }
2447
2447
  return {
2448
- servers: unmarshalArrayOfObject(data.servers, unmarshalServer$2),
2448
+ servers: unmarshalArrayOfObject(data.servers, unmarshalServer$3),
2449
2449
  totalCount: data.total_count
2450
2450
  };
2451
2451
  };
2452
- const marshalCreateServerRequest$2 = (request, defaults) => ({
2452
+ const marshalCreateServerRequest$3 = (request, defaults) => ({
2453
2453
  name: request.name || randomName('as'),
2454
2454
  project_id: request.projectId ?? defaults.defaultProjectId,
2455
2455
  type: request.type
2456
2456
  });
2457
- const marshalUpdateServerRequest$2 = (request, defaults) => ({
2457
+ const marshalUpdateServerRequest$3 = (request, defaults) => ({
2458
2458
  name: request.name
2459
2459
  });
2460
2460
 
2461
2461
  // This file was automatically generated. DO NOT EDIT.
2462
2462
  // If you have any remark or suggestion do not hesitate to open an issue.
2463
- const jsonContentHeaders$u = {
2463
+ const jsonContentHeaders$v = {
2464
2464
  'Content-Type': 'application/json; charset=utf-8'
2465
2465
  };
2466
2466
 
2467
2467
  /** Apple silicon API. */
2468
- let API$w = class API extends API$y {
2468
+ let API$x = class API extends API$z {
2469
2469
  /** Lists the available zones of the API. */
2470
2470
  static LOCALITIES = ['fr-par-3'];
2471
2471
 
@@ -2502,16 +2502,16 @@ let API$w = class API extends API$y {
2502
2502
  * @returns A Promise of Server
2503
2503
  */
2504
2504
  createServer = request => this.client.fetch({
2505
- body: JSON.stringify(marshalCreateServerRequest$2(request, this.client.settings)),
2506
- headers: jsonContentHeaders$u,
2505
+ body: JSON.stringify(marshalCreateServerRequest$3(request, this.client.settings)),
2506
+ headers: jsonContentHeaders$v,
2507
2507
  method: 'POST',
2508
2508
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
2509
- }, unmarshalServer$2);
2509
+ }, unmarshalServer$3);
2510
2510
  pageOfListServers = (request = {}) => this.client.fetch({
2511
2511
  method: 'GET',
2512
2512
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
2513
2513
  urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
2514
- }, unmarshalListServersResponse$2);
2514
+ }, unmarshalListServersResponse$3);
2515
2515
 
2516
2516
  /**
2517
2517
  * List all servers. List all servers in the specified zone. By default,
@@ -2526,7 +2526,7 @@ let API$w = class API extends API$y {
2526
2526
  method: 'GET',
2527
2527
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os`,
2528
2528
  urlParams: urlParams(['name', request.name], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['server_type', request.serverType])
2529
- }, unmarshalListOSResponse$1);
2529
+ }, unmarshalListOSResponse$2);
2530
2530
 
2531
2531
  /**
2532
2532
  * List all Operating Systems (OS). List all Operating Systems (OS). The
@@ -2548,7 +2548,7 @@ let API$w = class API extends API$y {
2548
2548
  getOS = request => this.client.fetch({
2549
2549
  method: 'GET',
2550
2550
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os/${validatePathParam('osId', request.osId)}`
2551
- }, unmarshalOS$1);
2551
+ }, unmarshalOS$2);
2552
2552
 
2553
2553
  /**
2554
2554
  * Get a server. Retrieve information about an existing Apple silicon server,
@@ -2561,7 +2561,7 @@ let API$w = class API extends API$y {
2561
2561
  getServer = request => this.client.fetch({
2562
2562
  method: 'GET',
2563
2563
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
2564
- }, unmarshalServer$2);
2564
+ }, unmarshalServer$3);
2565
2565
 
2566
2566
  /**
2567
2567
  * Waits for {@link Server} to be in a final state.
@@ -2570,7 +2570,7 @@ let API$w = class API extends API$y {
2570
2570
  * @param options - The waiting options
2571
2571
  * @returns A Promise of Server
2572
2572
  */
2573
- waitForServer = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!SERVER_TRANSIENT_STATUSES$2.includes(res.status))), this.getServer, request, options);
2573
+ waitForServer = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!SERVER_TRANSIENT_STATUSES$3.includes(res.status))), this.getServer, request, options);
2574
2574
 
2575
2575
  /**
2576
2576
  * Update a server. Update the parameters of an existing Apple silicon server,
@@ -2580,11 +2580,11 @@ let API$w = class API extends API$y {
2580
2580
  * @returns A Promise of Server
2581
2581
  */
2582
2582
  updateServer = request => this.client.fetch({
2583
- body: JSON.stringify(marshalUpdateServerRequest$2(request, this.client.settings)),
2584
- headers: jsonContentHeaders$u,
2583
+ body: JSON.stringify(marshalUpdateServerRequest$3(request, this.client.settings)),
2584
+ headers: jsonContentHeaders$v,
2585
2585
  method: 'PATCH',
2586
2586
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
2587
- }, unmarshalServer$2);
2587
+ }, unmarshalServer$3);
2588
2588
 
2589
2589
  /**
2590
2590
  * Delete a server. Delete an existing Apple silicon server, specified by its
@@ -2608,10 +2608,10 @@ let API$w = class API extends API$y {
2608
2608
  */
2609
2609
  rebootServer = request => this.client.fetch({
2610
2610
  body: '{}',
2611
- headers: jsonContentHeaders$u,
2611
+ headers: jsonContentHeaders$v,
2612
2612
  method: 'POST',
2613
2613
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
2614
- }, unmarshalServer$2);
2614
+ }, unmarshalServer$3);
2615
2615
 
2616
2616
  /**
2617
2617
  * Reinstall a server. Reinstall an existing Apple silicon server (specified
@@ -2624,41 +2624,41 @@ let API$w = class API extends API$y {
2624
2624
  */
2625
2625
  reinstallServer = request => this.client.fetch({
2626
2626
  body: '{}',
2627
- headers: jsonContentHeaders$u,
2627
+ headers: jsonContentHeaders$v,
2628
2628
  method: 'POST',
2629
2629
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reinstall`
2630
- }, unmarshalServer$2);
2630
+ }, unmarshalServer$3);
2631
2631
  };
2632
2632
 
2633
2633
  // This file was automatically generated. DO NOT EDIT.
2634
2634
  // If you have any remark or suggestion do not hesitate to open an issue.
2635
2635
 
2636
- var index_gen$u = /*#__PURE__*/Object.freeze({
2636
+ var index_gen$v = /*#__PURE__*/Object.freeze({
2637
2637
  __proto__: null,
2638
- API: API$w,
2639
- SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
2638
+ API: API$x,
2639
+ SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$3
2640
2640
  });
2641
2641
 
2642
- var index$y = /*#__PURE__*/Object.freeze({
2642
+ var index$z = /*#__PURE__*/Object.freeze({
2643
2643
  __proto__: null,
2644
- v1alpha1: index_gen$u
2644
+ v1alpha1: index_gen$v
2645
2645
  });
2646
2646
 
2647
2647
  // This file was automatically generated. DO NOT EDIT.
2648
2648
  // If you have any remark or suggestion do not hesitate to open an issue.
2649
2649
 
2650
2650
  /** Lists transient statutes of the enum {@link ServerInstallStatus}. */
2651
- const SERVER_INSTALL_TRANSIENT_STATUSES = ['to_install', 'installing'];
2651
+ const SERVER_INSTALL_TRANSIENT_STATUSES$1 = ['to_install', 'installing'];
2652
2652
 
2653
2653
  /** Lists transient statutes of the enum {@link ServerPrivateNetworkStatus}. */
2654
2654
  const SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES = ['attaching', 'detaching'];
2655
2655
 
2656
2656
  /** Lists transient statutes of the enum {@link ServerStatus}. */
2657
- const SERVER_TRANSIENT_STATUSES$1 = ['delivering', 'stopping', 'starting', 'deleting', 'ordered', 'resetting'];
2657
+ const SERVER_TRANSIENT_STATUSES$2 = ['delivering', 'stopping', 'starting', 'deleting', 'ordered', 'resetting'];
2658
2658
 
2659
2659
  // This file was automatically generated. DO NOT EDIT.
2660
2660
  // If you have any remark or suggestion do not hesitate to open an issue.
2661
- const unmarshalIP$2 = data => {
2661
+ const unmarshalIP$3 = data => {
2662
2662
  if (!isJSONObject(data)) {
2663
2663
  throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
2664
2664
  }
@@ -2681,7 +2681,7 @@ const unmarshalOSOSField = data => {
2681
2681
  required: data.required
2682
2682
  };
2683
2683
  };
2684
- const unmarshalOS = data => {
2684
+ const unmarshalOS$1 = data => {
2685
2685
  if (!isJSONObject(data)) {
2686
2686
  throw new TypeError(`Unmarshalling the type 'OS' failed as data isn't a dictionary.`);
2687
2687
  }
@@ -2700,7 +2700,7 @@ const unmarshalOS = data => {
2700
2700
  version: data.version
2701
2701
  };
2702
2702
  };
2703
- const unmarshalCPU = data => {
2703
+ const unmarshalCPU$1 = data => {
2704
2704
  if (!isJSONObject(data)) {
2705
2705
  throw new TypeError(`Unmarshalling the type 'CPU' failed as data isn't a dictionary.`);
2706
2706
  }
@@ -2712,7 +2712,7 @@ const unmarshalCPU = data => {
2712
2712
  threadCount: data.thread_count
2713
2713
  };
2714
2714
  };
2715
- const unmarshalDisk = data => {
2715
+ const unmarshalDisk$1 = data => {
2716
2716
  if (!isJSONObject(data)) {
2717
2717
  throw new TypeError(`Unmarshalling the type 'Disk' failed as data isn't a dictionary.`);
2718
2718
  }
@@ -2721,7 +2721,7 @@ const unmarshalDisk = data => {
2721
2721
  type: data.type
2722
2722
  };
2723
2723
  };
2724
- const unmarshalMemory = data => {
2724
+ const unmarshalMemory$1 = data => {
2725
2725
  if (!isJSONObject(data)) {
2726
2726
  throw new TypeError(`Unmarshalling the type 'Memory' failed as data isn't a dictionary.`);
2727
2727
  }
@@ -2746,7 +2746,7 @@ const unmarshalOfferOptionOffer = data => {
2746
2746
  subscriptionPeriod: data.subscription_period
2747
2747
  };
2748
2748
  };
2749
- const unmarshalPersistentMemory = data => {
2749
+ const unmarshalPersistentMemory$1 = data => {
2750
2750
  if (!isJSONObject(data)) {
2751
2751
  throw new TypeError(`Unmarshalling the type 'PersistentMemory' failed as data isn't a dictionary.`);
2752
2752
  }
@@ -2756,7 +2756,7 @@ const unmarshalPersistentMemory = data => {
2756
2756
  type: data.type
2757
2757
  };
2758
2758
  };
2759
- const unmarshalRaidController = data => {
2759
+ const unmarshalRaidController$1 = data => {
2760
2760
  if (!isJSONObject(data)) {
2761
2761
  throw new TypeError(`Unmarshalling the type 'RaidController' failed as data isn't a dictionary.`);
2762
2762
  }
@@ -2765,29 +2765,29 @@ const unmarshalRaidController = data => {
2765
2765
  raidLevel: data.raid_level
2766
2766
  };
2767
2767
  };
2768
- const unmarshalOffer$1 = data => {
2768
+ const unmarshalOffer$2 = data => {
2769
2769
  if (!isJSONObject(data)) {
2770
2770
  throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
2771
2771
  }
2772
2772
  return {
2773
2773
  bandwidth: data.bandwidth,
2774
2774
  commercialRange: data.commercial_range,
2775
- cpus: unmarshalArrayOfObject(data.cpus, unmarshalCPU),
2776
- disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
2775
+ cpus: unmarshalArrayOfObject(data.cpus, unmarshalCPU$1),
2776
+ disks: unmarshalArrayOfObject(data.disks, unmarshalDisk$1),
2777
2777
  enable: data.enable,
2778
2778
  fee: data.fee ? unmarshalMoney(data.fee) : undefined,
2779
2779
  id: data.id,
2780
2780
  incompatibleOsIds: data.incompatible_os_ids,
2781
- memories: unmarshalArrayOfObject(data.memories, unmarshalMemory),
2781
+ memories: unmarshalArrayOfObject(data.memories, unmarshalMemory$1),
2782
2782
  name: data.name,
2783
2783
  operationPath: data.operation_path,
2784
2784
  options: unmarshalArrayOfObject(data.options, unmarshalOfferOptionOffer),
2785
- persistentMemories: unmarshalArrayOfObject(data.persistent_memories, unmarshalPersistentMemory),
2785
+ persistentMemories: unmarshalArrayOfObject(data.persistent_memories, unmarshalPersistentMemory$1),
2786
2786
  pricePerHour: data.price_per_hour ? unmarshalMoney(data.price_per_hour) : undefined,
2787
2787
  pricePerMonth: data.price_per_month ? unmarshalMoney(data.price_per_month) : undefined,
2788
2788
  privateBandwidth: data.private_bandwidth,
2789
2789
  quotaName: data.quota_name,
2790
- raidControllers: unmarshalArrayOfObject(data.raid_controllers, unmarshalRaidController),
2790
+ raidControllers: unmarshalArrayOfObject(data.raid_controllers, unmarshalRaidController$1),
2791
2791
  sharedBandwidth: data.shared_bandwidth,
2792
2792
  stock: data.stock,
2793
2793
  subscriptionPeriod: data.subscription_period,
@@ -2819,7 +2819,7 @@ const unmarshalServerPrivateNetwork = data => {
2819
2819
  vlan: data.vlan
2820
2820
  };
2821
2821
  };
2822
- const unmarshalServerInstall = data => {
2822
+ const unmarshalServerInstall$1 = data => {
2823
2823
  if (!isJSONObject(data)) {
2824
2824
  throw new TypeError(`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`);
2825
2825
  }
@@ -2833,7 +2833,7 @@ const unmarshalServerInstall = data => {
2833
2833
  user: data.user
2834
2834
  };
2835
2835
  };
2836
- const unmarshalServerOption = data => {
2836
+ const unmarshalServerOption$1 = data => {
2837
2837
  if (!isJSONObject(data)) {
2838
2838
  throw new TypeError(`Unmarshalling the type 'ServerOption' failed as data isn't a dictionary.`);
2839
2839
  }
@@ -2854,7 +2854,7 @@ const unmarshalServerRescueServer = data => {
2854
2854
  user: data.user
2855
2855
  };
2856
2856
  };
2857
- const unmarshalServer$1 = data => {
2857
+ const unmarshalServer$2 = data => {
2858
2858
  if (!isJSONObject(data)) {
2859
2859
  throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
2860
2860
  }
@@ -2864,12 +2864,12 @@ const unmarshalServer$1 = data => {
2864
2864
  description: data.description,
2865
2865
  domain: data.domain,
2866
2866
  id: data.id,
2867
- install: data.install ? unmarshalServerInstall(data.install) : undefined,
2868
- ips: unmarshalArrayOfObject(data.ips, unmarshalIP$2),
2867
+ install: data.install ? unmarshalServerInstall$1(data.install) : undefined,
2868
+ ips: unmarshalArrayOfObject(data.ips, unmarshalIP$3),
2869
2869
  name: data.name,
2870
2870
  offerId: data.offer_id,
2871
2871
  offerName: data.offer_name,
2872
- options: unmarshalArrayOfObject(data.options, unmarshalServerOption),
2872
+ options: unmarshalArrayOfObject(data.options, unmarshalServerOption$1),
2873
2873
  organizationId: data.organization_id,
2874
2874
  pingStatus: data.ping_status,
2875
2875
  projectId: data.project_id,
@@ -2891,7 +2891,7 @@ const unmarshalSetting = data => {
2891
2891
  type: data.type
2892
2892
  };
2893
2893
  };
2894
- const unmarshalBMCAccess = data => {
2894
+ const unmarshalBMCAccess$1 = data => {
2895
2895
  if (!isJSONObject(data)) {
2896
2896
  throw new TypeError(`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`);
2897
2897
  }
@@ -2910,21 +2910,21 @@ const unmarshalGetServerMetricsResponse = data => {
2910
2910
  pings: data.pings ? unmarshalTimeSeries(data.pings) : undefined
2911
2911
  };
2912
2912
  };
2913
- const unmarshalListOSResponse = data => {
2913
+ const unmarshalListOSResponse$1 = data => {
2914
2914
  if (!isJSONObject(data)) {
2915
2915
  throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
2916
2916
  }
2917
2917
  return {
2918
- os: unmarshalArrayOfObject(data.os, unmarshalOS),
2918
+ os: unmarshalArrayOfObject(data.os, unmarshalOS$1),
2919
2919
  totalCount: data.total_count
2920
2920
  };
2921
2921
  };
2922
- const unmarshalListOffersResponse$1 = data => {
2922
+ const unmarshalListOffersResponse$2 = data => {
2923
2923
  if (!isJSONObject(data)) {
2924
2924
  throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
2925
2925
  }
2926
2926
  return {
2927
- offers: unmarshalArrayOfObject(data.offers, unmarshalOffer$1),
2927
+ offers: unmarshalArrayOfObject(data.offers, unmarshalOffer$2),
2928
2928
  totalCount: data.total_count
2929
2929
  };
2930
2930
  };
@@ -2937,7 +2937,7 @@ const unmarshalListOptionsResponse = data => {
2937
2937
  totalCount: data.total_count
2938
2938
  };
2939
2939
  };
2940
- const unmarshalServerEvent = data => {
2940
+ const unmarshalServerEvent$1 = data => {
2941
2941
  if (!isJSONObject(data)) {
2942
2942
  throw new TypeError(`Unmarshalling the type 'ServerEvent' failed as data isn't a dictionary.`);
2943
2943
  }
@@ -2948,12 +2948,12 @@ const unmarshalServerEvent = data => {
2948
2948
  updatedAt: unmarshalDate(data.updated_at)
2949
2949
  };
2950
2950
  };
2951
- const unmarshalListServerEventsResponse = data => {
2951
+ const unmarshalListServerEventsResponse$1 = data => {
2952
2952
  if (!isJSONObject(data)) {
2953
2953
  throw new TypeError(`Unmarshalling the type 'ListServerEventsResponse' failed as data isn't a dictionary.`);
2954
2954
  }
2955
2955
  return {
2956
- events: unmarshalArrayOfObject(data.events, unmarshalServerEvent),
2956
+ events: unmarshalArrayOfObject(data.events, unmarshalServerEvent$1),
2957
2957
  totalCount: data.total_count
2958
2958
  };
2959
2959
  };
@@ -2966,12 +2966,12 @@ const unmarshalListServerPrivateNetworksResponse = data => {
2966
2966
  totalCount: data.total_count
2967
2967
  };
2968
2968
  };
2969
- const unmarshalListServersResponse$1 = data => {
2969
+ const unmarshalListServersResponse$2 = data => {
2970
2970
  if (!isJSONObject(data)) {
2971
2971
  throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
2972
2972
  }
2973
2973
  return {
2974
- servers: unmarshalArrayOfObject(data.servers, unmarshalServer$1),
2974
+ servers: unmarshalArrayOfObject(data.servers, unmarshalServer$2),
2975
2975
  totalCount: data.total_count
2976
2976
  };
2977
2977
  };
@@ -3004,7 +3004,7 @@ const marshalCreateServerRequestInstall = (request, defaults) => ({
3004
3004
  ssh_key_ids: request.sshKeyIds,
3005
3005
  user: request.user
3006
3006
  });
3007
- const marshalCreateServerRequest$1 = (request, defaults) => ({
3007
+ const marshalCreateServerRequest$2 = (request, defaults) => ({
3008
3008
  description: request.description,
3009
3009
  install: request.install !== undefined ? marshalCreateServerRequestInstall(request.install) : undefined,
3010
3010
  name: request.name,
@@ -3021,7 +3021,7 @@ const marshalCreateServerRequest$1 = (request, defaults) => ({
3021
3021
  value: request.organizationId
3022
3022
  }])
3023
3023
  });
3024
- const marshalInstallServerRequest = (request, defaults) => ({
3024
+ const marshalInstallServerRequest$1 = (request, defaults) => ({
3025
3025
  hostname: request.hostname,
3026
3026
  os_id: request.osId,
3027
3027
  password: request.password,
@@ -3039,7 +3039,7 @@ const marshalPrivateNetworkApiSetServerPrivateNetworksRequest = (request, defaul
3039
3039
  const marshalRebootServerRequest = (request, defaults) => ({
3040
3040
  boot_type: request.bootType
3041
3041
  });
3042
- const marshalStartBMCAccessRequest = (request, defaults) => ({
3042
+ const marshalStartBMCAccessRequest$1 = (request, defaults) => ({
3043
3043
  ip: request.ip
3044
3044
  });
3045
3045
  const marshalStartServerRequest = (request, defaults) => ({
@@ -3048,7 +3048,7 @@ const marshalStartServerRequest = (request, defaults) => ({
3048
3048
  const marshalUpdateIPRequest$2 = (request, defaults) => ({
3049
3049
  reverse: request.reverse
3050
3050
  });
3051
- const marshalUpdateServerRequest$1 = (request, defaults) => ({
3051
+ const marshalUpdateServerRequest$2 = (request, defaults) => ({
3052
3052
  description: request.description,
3053
3053
  name: request.name,
3054
3054
  tags: request.tags
@@ -3059,7 +3059,7 @@ const marshalUpdateSettingRequest = (request, defaults) => ({
3059
3059
 
3060
3060
  // This file was automatically generated. DO NOT EDIT.
3061
3061
  // If you have any remark or suggestion do not hesitate to open an issue.
3062
- const jsonContentHeaders$t = {
3062
+ const jsonContentHeaders$u = {
3063
3063
  'Content-Type': 'application/json; charset=utf-8'
3064
3064
  };
3065
3065
 
@@ -3068,14 +3068,14 @@ const jsonContentHeaders$t = {
3068
3068
  *
3069
3069
  * This API allows to manage your Elastic Metal server.
3070
3070
  */
3071
- let API$v = class API extends API$y {
3071
+ let API$w = class API extends API$z {
3072
3072
  /** Lists the available zones of the API. */
3073
3073
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2'];
3074
3074
  pageOfListServers = (request = {}) => this.client.fetch({
3075
3075
  method: 'GET',
3076
3076
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
3077
3077
  urlParams: urlParams(['name', request.name], ['option_id', request.optionId], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['status', request.status], ['tags', request.tags])
3078
- }, unmarshalListServersResponse$1);
3078
+ }, unmarshalListServersResponse$2);
3079
3079
 
3080
3080
  /**
3081
3081
  * List Elastic Metal servers for an Organization. List Elastic Metal servers
@@ -3096,7 +3096,7 @@ let API$v = class API extends API$y {
3096
3096
  getServer = request => this.client.fetch({
3097
3097
  method: 'GET',
3098
3098
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
3099
- }, unmarshalServer$1);
3099
+ }, unmarshalServer$2);
3100
3100
 
3101
3101
  /**
3102
3102
  * Waits for {@link Server} to be in a final state.
@@ -3105,7 +3105,7 @@ let API$v = class API extends API$y {
3105
3105
  * @param options - The waiting options
3106
3106
  * @returns A Promise of Server
3107
3107
  */
3108
- waitForServer = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!SERVER_TRANSIENT_STATUSES$1.includes(res.status))), this.getServer, request, options);
3108
+ waitForServer = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!SERVER_TRANSIENT_STATUSES$2.includes(res.status))), this.getServer, request, options);
3109
3109
 
3110
3110
  /**
3111
3111
  * Create an Elastic Metal server. Create a new Elastic Metal server. Once the
@@ -3115,11 +3115,11 @@ let API$v = class API extends API$y {
3115
3115
  * @returns A Promise of Server
3116
3116
  */
3117
3117
  createServer = request => this.client.fetch({
3118
- body: JSON.stringify(marshalCreateServerRequest$1(request, this.client.settings)),
3119
- headers: jsonContentHeaders$t,
3118
+ body: JSON.stringify(marshalCreateServerRequest$2(request, this.client.settings)),
3119
+ headers: jsonContentHeaders$u,
3120
3120
  method: 'POST',
3121
3121
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
3122
- }, unmarshalServer$1);
3122
+ }, unmarshalServer$2);
3123
3123
 
3124
3124
  /**
3125
3125
  * Update an Elastic Metal server. Update the server associated with the ID.
@@ -3130,11 +3130,11 @@ let API$v = class API extends API$y {
3130
3130
  * @returns A Promise of Server
3131
3131
  */
3132
3132
  updateServer = request => this.client.fetch({
3133
- body: JSON.stringify(marshalUpdateServerRequest$1(request, this.client.settings)),
3134
- headers: jsonContentHeaders$t,
3133
+ body: JSON.stringify(marshalUpdateServerRequest$2(request, this.client.settings)),
3134
+ headers: jsonContentHeaders$u,
3135
3135
  method: 'PATCH',
3136
3136
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
3137
- }, unmarshalServer$1);
3137
+ }, unmarshalServer$2);
3138
3138
 
3139
3139
  /**
3140
3140
  * Install an Elastic Metal server. Install an Operating System (OS) on the
@@ -3144,11 +3144,11 @@ let API$v = class API extends API$y {
3144
3144
  * @returns A Promise of Server
3145
3145
  */
3146
3146
  installServer = request => this.client.fetch({
3147
- body: JSON.stringify(marshalInstallServerRequest(request, this.client.settings)),
3148
- headers: jsonContentHeaders$t,
3147
+ body: JSON.stringify(marshalInstallServerRequest$1(request, this.client.settings)),
3148
+ headers: jsonContentHeaders$u,
3149
3149
  method: 'POST',
3150
3150
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
3151
- }, unmarshalServer$1);
3151
+ }, unmarshalServer$2);
3152
3152
 
3153
3153
  /**
3154
3154
  * Return server metrics. Get the ping status of the server associated with
@@ -3171,7 +3171,7 @@ let API$v = class API extends API$y {
3171
3171
  deleteServer = request => this.client.fetch({
3172
3172
  method: 'DELETE',
3173
3173
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
3174
- }, unmarshalServer$1);
3174
+ }, unmarshalServer$2);
3175
3175
 
3176
3176
  /**
3177
3177
  * Reboot an Elastic Metal server. Reboot the Elastic Metal server associated
@@ -3183,10 +3183,10 @@ let API$v = class API extends API$y {
3183
3183
  */
3184
3184
  rebootServer = request => this.client.fetch({
3185
3185
  body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
3186
- headers: jsonContentHeaders$t,
3186
+ headers: jsonContentHeaders$u,
3187
3187
  method: 'POST',
3188
3188
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
3189
- }, unmarshalServer$1);
3189
+ }, unmarshalServer$2);
3190
3190
 
3191
3191
  /**
3192
3192
  * Start an Elastic Metal server. Start the server associated with the ID.
@@ -3196,10 +3196,10 @@ let API$v = class API extends API$y {
3196
3196
  */
3197
3197
  startServer = request => this.client.fetch({
3198
3198
  body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
3199
- headers: jsonContentHeaders$t,
3199
+ headers: jsonContentHeaders$u,
3200
3200
  method: 'POST',
3201
3201
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
3202
- }, unmarshalServer$1);
3202
+ }, unmarshalServer$2);
3203
3203
 
3204
3204
  /**
3205
3205
  * Stop an Elastic Metal server. Stop the server associated with the ID. The
@@ -3211,15 +3211,15 @@ let API$v = class API extends API$y {
3211
3211
  */
3212
3212
  stopServer = request => this.client.fetch({
3213
3213
  body: '{}',
3214
- headers: jsonContentHeaders$t,
3214
+ headers: jsonContentHeaders$u,
3215
3215
  method: 'POST',
3216
3216
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/stop`
3217
- }, unmarshalServer$1);
3217
+ }, unmarshalServer$2);
3218
3218
  pageOfListServerEvents = request => this.client.fetch({
3219
3219
  method: 'GET',
3220
3220
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/events`,
3221
3221
  urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
3222
- }, unmarshalListServerEventsResponse);
3222
+ }, unmarshalListServerEventsResponse$1);
3223
3223
 
3224
3224
  /**
3225
3225
  * List server events. List event (i.e. start/stop/reboot) associated to the
@@ -3248,11 +3248,11 @@ let API$v = class API extends API$y {
3248
3248
  * @returns A Promise of BMCAccess
3249
3249
  */
3250
3250
  startBMCAccess = request => this.client.fetch({
3251
- body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
3252
- headers: jsonContentHeaders$t,
3251
+ body: JSON.stringify(marshalStartBMCAccessRequest$1(request, this.client.settings)),
3252
+ headers: jsonContentHeaders$u,
3253
3253
  method: 'POST',
3254
3254
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
3255
- }, unmarshalBMCAccess);
3255
+ }, unmarshalBMCAccess$1);
3256
3256
 
3257
3257
  /**
3258
3258
  * Get BMC access. Get the BMC (Baseboard Management Controller) access
@@ -3265,7 +3265,7 @@ let API$v = class API extends API$y {
3265
3265
  getBMCAccess = request => this.client.fetch({
3266
3266
  method: 'GET',
3267
3267
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
3268
- }, unmarshalBMCAccess);
3268
+ }, unmarshalBMCAccess$1);
3269
3269
 
3270
3270
  /**
3271
3271
  * Stop BMC access. Stop BMC (Baseboard Management Controller) access
@@ -3287,10 +3287,10 @@ let API$v = class API extends API$y {
3287
3287
  */
3288
3288
  updateIP = request => this.client.fetch({
3289
3289
  body: JSON.stringify(marshalUpdateIPRequest$2(request, this.client.settings)),
3290
- headers: jsonContentHeaders$t,
3290
+ headers: jsonContentHeaders$u,
3291
3291
  method: 'PATCH',
3292
3292
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/ips/${validatePathParam('ipId', request.ipId)}`
3293
- }, unmarshalIP$2);
3293
+ }, unmarshalIP$3);
3294
3294
 
3295
3295
  /**
3296
3296
  * Add server option. Add an option, such as Private Networks, to a specific
@@ -3301,10 +3301,10 @@ let API$v = class API extends API$y {
3301
3301
  */
3302
3302
  addOptionServer = request => this.client.fetch({
3303
3303
  body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
3304
- headers: jsonContentHeaders$t,
3304
+ headers: jsonContentHeaders$u,
3305
3305
  method: 'POST',
3306
3306
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
3307
- }, unmarshalServer$1);
3307
+ }, unmarshalServer$2);
3308
3308
 
3309
3309
  /**
3310
3310
  * Delete server option. Delete an option from a specific server.
@@ -3315,12 +3315,12 @@ let API$v = class API extends API$y {
3315
3315
  deleteOptionServer = request => this.client.fetch({
3316
3316
  method: 'DELETE',
3317
3317
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
3318
- }, unmarshalServer$1);
3318
+ }, unmarshalServer$2);
3319
3319
  pageOfListOffers = (request = {}) => this.client.fetch({
3320
3320
  method: 'GET',
3321
3321
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/offers`,
3322
3322
  urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['subscription_period', request.subscriptionPeriod])
3323
- }, unmarshalListOffersResponse$1);
3323
+ }, unmarshalListOffersResponse$2);
3324
3324
 
3325
3325
  /**
3326
3326
  * List offers. List all available Elastic Metal server configurations.
@@ -3339,7 +3339,7 @@ let API$v = class API extends API$y {
3339
3339
  getOffer = request => this.client.fetch({
3340
3340
  method: 'GET',
3341
3341
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/offers/${validatePathParam('offerId', request.offerId)}`
3342
- }, unmarshalOffer$1);
3342
+ }, unmarshalOffer$2);
3343
3343
 
3344
3344
  /**
3345
3345
  * Get option. Return specific option for the ID.
@@ -3386,7 +3386,7 @@ let API$v = class API extends API$y {
3386
3386
  */
3387
3387
  updateSetting = request => this.client.fetch({
3388
3388
  body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
3389
- headers: jsonContentHeaders$t,
3389
+ headers: jsonContentHeaders$u,
3390
3390
  method: 'PATCH',
3391
3391
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/settings/${validatePathParam('settingId', request.settingId)}`
3392
3392
  }, unmarshalSetting);
@@ -3394,7 +3394,7 @@ let API$v = class API extends API$y {
3394
3394
  method: 'GET',
3395
3395
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os`,
3396
3396
  urlParams: urlParams(['offer_id', request.offerId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
3397
- }, unmarshalListOSResponse);
3397
+ }, unmarshalListOSResponse$1);
3398
3398
 
3399
3399
  /**
3400
3400
  * List available OSes. List all OSes that are available for installation on
@@ -3414,11 +3414,11 @@ let API$v = class API extends API$y {
3414
3414
  getOS = request => this.client.fetch({
3415
3415
  method: 'GET',
3416
3416
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os/${validatePathParam('osId', request.osId)}`
3417
- }, unmarshalOS);
3417
+ }, unmarshalOS$1);
3418
3418
  };
3419
3419
 
3420
3420
  /** Elastic Metal Private Network API. */
3421
- class PrivateNetworkAPI extends API$y {
3421
+ class PrivateNetworkAPI extends API$z {
3422
3422
  /** Lists the available zones of the API. */
3423
3423
  static LOCALITIES = ['fr-par-2'];
3424
3424
 
@@ -3431,7 +3431,7 @@ class PrivateNetworkAPI extends API$y {
3431
3431
  */
3432
3432
  addServerPrivateNetwork = request => this.client.fetch({
3433
3433
  body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
3434
- headers: jsonContentHeaders$t,
3434
+ headers: jsonContentHeaders$u,
3435
3435
  method: 'POST',
3436
3436
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
3437
3437
  }, unmarshalServerPrivateNetwork);
@@ -3445,7 +3445,7 @@ class PrivateNetworkAPI extends API$y {
3445
3445
  */
3446
3446
  setServerPrivateNetworks = request => this.client.fetch({
3447
3447
  body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
3448
- headers: jsonContentHeaders$t,
3448
+ headers: jsonContentHeaders$u,
3449
3449
  method: 'PUT',
3450
3450
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
3451
3451
  }, unmarshalSetServerPrivateNetworksResponse);
@@ -3476,7 +3476,7 @@ class PrivateNetworkAPI extends API$y {
3476
3476
  });
3477
3477
  }
3478
3478
 
3479
- class BaremetalV1UtilsAPI extends API$v {
3479
+ class BaremetalV1UtilsAPI extends API$w {
3480
3480
  /**
3481
3481
  * Waits for {@link ServerInstall} to be in a final state.
3482
3482
  *
@@ -3492,7 +3492,7 @@ class BaremetalV1UtilsAPI extends API$v {
3492
3492
  return server.install;
3493
3493
  });
3494
3494
  return {
3495
- done: !SERVER_INSTALL_TRANSIENT_STATUSES.includes(value.status),
3495
+ done: !SERVER_INSTALL_TRANSIENT_STATUSES$1.includes(value.status),
3496
3496
  value
3497
3497
  };
3498
3498
  }, createExponentialBackoffStrategy(options?.minDelay ?? 1, options?.maxDelay ?? 30), options?.timeout);
@@ -3526,7 +3526,7 @@ const CreateServerRequestInstall = {
3526
3526
  maxLength: 255
3527
3527
  }
3528
3528
  };
3529
- const InstallServerRequest = {
3529
+ const InstallServerRequest$1 = {
3530
3530
  hostname: {
3531
3531
  maxLength: 255
3532
3532
  },
@@ -3543,7 +3543,7 @@ const InstallServerRequest = {
3543
3543
  maxLength: 255
3544
3544
  }
3545
3545
  };
3546
- const ListOSRequest = {
3546
+ const ListOSRequest$1 = {
3547
3547
  page: {
3548
3548
  greaterThan: 0
3549
3549
  },
@@ -3552,7 +3552,7 @@ const ListOSRequest = {
3552
3552
  lessThanOrEqual: 100
3553
3553
  }
3554
3554
  };
3555
- const ListOffersRequest = {
3555
+ const ListOffersRequest$1 = {
3556
3556
  page: {
3557
3557
  greaterThan: 0
3558
3558
  },
@@ -3570,7 +3570,7 @@ const ListOptionsRequest = {
3570
3570
  lessThanOrEqual: 100
3571
3571
  }
3572
3572
  };
3573
- const ListServerEventsRequest = {
3573
+ const ListServerEventsRequest$1 = {
3574
3574
  page: {
3575
3575
  greaterThan: 0
3576
3576
  },
@@ -3579,7 +3579,7 @@ const ListServerEventsRequest = {
3579
3579
  lessThanOrEqual: 100
3580
3580
  }
3581
3581
  };
3582
- const ListServersRequest = {
3582
+ const ListServersRequest$1 = {
3583
3583
  page: {
3584
3584
  greaterThan: 0
3585
3585
  },
@@ -3597,7 +3597,7 @@ const ListSettingsRequest = {
3597
3597
  lessThanOrEqual: 100
3598
3598
  }
3599
3599
  };
3600
- const UpdateServerRequest = {
3600
+ const UpdateServerRequest$1 = {
3601
3601
  description: {
3602
3602
  maxLength: 255
3603
3603
  },
@@ -3606,33 +3606,33 @@ const UpdateServerRequest = {
3606
3606
  }
3607
3607
  };
3608
3608
 
3609
- var validationRules_gen$e = /*#__PURE__*/Object.freeze({
3609
+ var validationRules_gen$f = /*#__PURE__*/Object.freeze({
3610
3610
  __proto__: null,
3611
3611
  CreateServerRequest: CreateServerRequest,
3612
3612
  CreateServerRequestInstall: CreateServerRequestInstall,
3613
- InstallServerRequest: InstallServerRequest,
3614
- ListOSRequest: ListOSRequest,
3615
- ListOffersRequest: ListOffersRequest,
3613
+ InstallServerRequest: InstallServerRequest$1,
3614
+ ListOSRequest: ListOSRequest$1,
3615
+ ListOffersRequest: ListOffersRequest$1,
3616
3616
  ListOptionsRequest: ListOptionsRequest,
3617
- ListServerEventsRequest: ListServerEventsRequest,
3618
- ListServersRequest: ListServersRequest,
3617
+ ListServerEventsRequest: ListServerEventsRequest$1,
3618
+ ListServersRequest: ListServersRequest$1,
3619
3619
  ListSettingsRequest: ListSettingsRequest,
3620
- UpdateServerRequest: UpdateServerRequest
3620
+ UpdateServerRequest: UpdateServerRequest$1
3621
3621
  });
3622
3622
 
3623
- var index$x = /*#__PURE__*/Object.freeze({
3623
+ var index$y = /*#__PURE__*/Object.freeze({
3624
3624
  __proto__: null,
3625
3625
  API: BaremetalV1UtilsAPI,
3626
3626
  PrivateNetworkAPI: PrivateNetworkAPI,
3627
- SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES,
3627
+ SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES$1,
3628
3628
  SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES,
3629
- SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$1,
3630
- ValidationRules: validationRules_gen$e
3629
+ SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2,
3630
+ ValidationRules: validationRules_gen$f
3631
3631
  });
3632
3632
 
3633
- var index$w = /*#__PURE__*/Object.freeze({
3633
+ var index$x = /*#__PURE__*/Object.freeze({
3634
3634
  __proto__: null,
3635
- v1: index$x
3635
+ v1: index$y
3636
3636
  });
3637
3637
 
3638
3638
  // This file was automatically generated. DO NOT EDIT.
@@ -3703,7 +3703,7 @@ const unmarshalListDiscountsResponse$1 = data => {
3703
3703
  totalCount: data.total_count
3704
3704
  };
3705
3705
  };
3706
- const unmarshalInvoice$1 = data => {
3706
+ const unmarshalInvoice$2 = data => {
3707
3707
  if (!isJSONObject(data)) {
3708
3708
  throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
3709
3709
  }
@@ -3718,12 +3718,12 @@ const unmarshalInvoice$1 = data => {
3718
3718
  totalUntaxed: data.total_untaxed ? unmarshalMoney(data.total_untaxed) : undefined
3719
3719
  };
3720
3720
  };
3721
- const unmarshalListInvoicesResponse$1 = data => {
3721
+ const unmarshalListInvoicesResponse$2 = data => {
3722
3722
  if (!isJSONObject(data)) {
3723
3723
  throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
3724
3724
  }
3725
3725
  return {
3726
- invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoice$1),
3726
+ invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoice$2),
3727
3727
  totalCount: data.total_count
3728
3728
  };
3729
3729
  };
@@ -3735,7 +3735,7 @@ const unmarshalListInvoicesResponse$1 = data => {
3735
3735
  *
3736
3736
  * This API allows you to query your consumption.
3737
3737
  */
3738
- let API$u = class API extends API$y {
3738
+ let API$v = class API extends API$z {
3739
3739
  /**
3740
3740
  * Get current month's consumption. The consumption reflects the amount of
3741
3741
  * money you have spent for the products you have used. The consumption value
@@ -3753,7 +3753,7 @@ let API$u = class API extends API$y {
3753
3753
  method: 'GET',
3754
3754
  path: `/billing/v2alpha1/invoices`,
3755
3755
  urlParams: urlParams(['invoice_type', request.invoiceType], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['started_after', request.startedAfter], ['started_before', request.startedBefore])
3756
- }, unmarshalListInvoicesResponse$1);
3756
+ }, unmarshalListInvoicesResponse$2);
3757
3757
 
3758
3758
  /**
3759
3759
  * List invoices. List all your invoices, filtering by `start_date` and
@@ -3796,14 +3796,14 @@ let API$u = class API extends API$y {
3796
3796
  // This file was automatically generated. DO NOT EDIT.
3797
3797
  // If you have any remark or suggestion do not hesitate to open an issue.
3798
3798
 
3799
- var index_gen$t = /*#__PURE__*/Object.freeze({
3799
+ var index_gen$u = /*#__PURE__*/Object.freeze({
3800
3800
  __proto__: null,
3801
- API: API$u
3801
+ API: API$v
3802
3802
  });
3803
3803
 
3804
3804
  // This file was automatically generated. DO NOT EDIT.
3805
3805
  // If you have any remark or suggestion do not hesitate to open an issue.
3806
- const unmarshalInvoice = data => {
3806
+ const unmarshalInvoice$1 = data => {
3807
3807
  if (!isJSONObject(data)) {
3808
3808
  throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
3809
3809
  }
@@ -3898,12 +3898,12 @@ const unmarshalListDiscountsResponse = data => {
3898
3898
  totalCount: data.total_count
3899
3899
  };
3900
3900
  };
3901
- const unmarshalListInvoicesResponse = data => {
3901
+ const unmarshalListInvoicesResponse$1 = data => {
3902
3902
  if (!isJSONObject(data)) {
3903
3903
  throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
3904
3904
  }
3905
3905
  return {
3906
- invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoice),
3906
+ invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoice$1),
3907
3907
  totalCount: data.total_count
3908
3908
  };
3909
3909
  };
@@ -3936,7 +3936,7 @@ const unmarshalListTaxesResponse = data => {
3936
3936
  *
3937
3937
  * This API allows you to query your consumption.
3938
3938
  */
3939
- let API$t = class API extends API$y {
3939
+ let API$u = class API extends API$z {
3940
3940
  pageOfListConsumptions = (request = {}) => this.client.fetch({
3941
3941
  method: 'GET',
3942
3942
  path: `/billing/v2beta1/consumptions`,
@@ -3977,7 +3977,7 @@ let API$t = class API extends API$y {
3977
3977
  method: 'GET',
3978
3978
  path: `/billing/v2beta1/invoices`,
3979
3979
  urlParams: urlParams(['billing_period_start_after', request.billingPeriodStartAfter], ['billing_period_start_before', request.billingPeriodStartBefore], ['invoice_type', request.invoiceType], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
3980
- }, unmarshalListInvoicesResponse);
3980
+ }, unmarshalListInvoicesResponse$1);
3981
3981
 
3982
3982
  /**
3983
3983
  * List invoices. List all your invoices, filtering by `start_date` and
@@ -4010,7 +4010,7 @@ let API$t = class API extends API$y {
4010
4010
  getInvoice = request => this.client.fetch({
4011
4011
  method: 'GET',
4012
4012
  path: `/billing/v2beta1/invoices/${validatePathParam('invoiceId', request.invoiceId)}`
4013
- }, unmarshalInvoice);
4013
+ }, unmarshalInvoice$1);
4014
4014
 
4015
4015
  /**
4016
4016
  * Download an invoice. Download a specific invoice, specified by its ID.
@@ -4044,15 +4044,15 @@ let API$t = class API extends API$y {
4044
4044
  // This file was automatically generated. DO NOT EDIT.
4045
4045
  // If you have any remark or suggestion do not hesitate to open an issue.
4046
4046
 
4047
- var index_gen$s = /*#__PURE__*/Object.freeze({
4047
+ var index_gen$t = /*#__PURE__*/Object.freeze({
4048
4048
  __proto__: null,
4049
- API: API$t
4049
+ API: API$u
4050
4050
  });
4051
4051
 
4052
- var index$v = /*#__PURE__*/Object.freeze({
4052
+ var index$w = /*#__PURE__*/Object.freeze({
4053
4053
  __proto__: null,
4054
- v2alpha1: index_gen$t,
4055
- v2beta1: index_gen$s
4054
+ v2alpha1: index_gen$u,
4055
+ v2beta1: index_gen$t
4056
4056
  });
4057
4057
 
4058
4058
  // This file was automatically generated. DO NOT EDIT.
@@ -4222,7 +4222,7 @@ const marshalUpdateVolumeRequest$2 = (request, defaults) => ({
4222
4222
 
4223
4223
  // This file was automatically generated. DO NOT EDIT.
4224
4224
  // If you have any remark or suggestion do not hesitate to open an issue.
4225
- const jsonContentHeaders$s = {
4225
+ const jsonContentHeaders$t = {
4226
4226
  'Content-Type': 'application/json; charset=utf-8'
4227
4227
  };
4228
4228
 
@@ -4231,7 +4231,7 @@ const jsonContentHeaders$s = {
4231
4231
  *
4232
4232
  * This API allows you to use and manage your Block Storage volumes.
4233
4233
  */
4234
- let API$s = class API extends API$y {
4234
+ let API$t = class API extends API$z {
4235
4235
  /** Lists the available zones of the API. */
4236
4236
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-3', 'pl-waw-3'];
4237
4237
  pageOfListVolumeTypes = (request = {}) => this.client.fetch({
@@ -4277,7 +4277,7 @@ let API$s = class API extends API$y {
4277
4277
  */
4278
4278
  createVolume = request => this.client.fetch({
4279
4279
  body: JSON.stringify(marshalCreateVolumeRequest$2(request, this.client.settings)),
4280
- headers: jsonContentHeaders$s,
4280
+ headers: jsonContentHeaders$t,
4281
4281
  method: 'POST',
4282
4282
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
4283
4283
  }, unmarshalVolume$4);
@@ -4325,7 +4325,7 @@ let API$s = class API extends API$y {
4325
4325
  */
4326
4326
  updateVolume = request => this.client.fetch({
4327
4327
  body: JSON.stringify(marshalUpdateVolumeRequest$2(request, this.client.settings)),
4328
- headers: jsonContentHeaders$s,
4328
+ headers: jsonContentHeaders$t,
4329
4329
  method: 'PATCH',
4330
4330
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
4331
4331
  }, unmarshalVolume$4);
@@ -4377,7 +4377,7 @@ let API$s = class API extends API$y {
4377
4377
  */
4378
4378
  createSnapshot = request => this.client.fetch({
4379
4379
  body: JSON.stringify(marshalCreateSnapshotRequest$3(request, this.client.settings)),
4380
- headers: jsonContentHeaders$s,
4380
+ headers: jsonContentHeaders$t,
4381
4381
  method: 'POST',
4382
4382
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
4383
4383
  }, unmarshalSnapshot$3);
@@ -4401,7 +4401,7 @@ let API$s = class API extends API$y {
4401
4401
  */
4402
4402
  updateSnapshot = request => this.client.fetch({
4403
4403
  body: JSON.stringify(marshalUpdateSnapshotRequest$3(request, this.client.settings)),
4404
- headers: jsonContentHeaders$s,
4404
+ headers: jsonContentHeaders$t,
4405
4405
  method: 'PATCH',
4406
4406
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
4407
4407
  }, unmarshalSnapshot$3);
@@ -4453,7 +4453,7 @@ const Reference = {
4453
4453
  }
4454
4454
  };
4455
4455
 
4456
- var validationRules_gen$d = /*#__PURE__*/Object.freeze({
4456
+ var validationRules_gen$e = /*#__PURE__*/Object.freeze({
4457
4457
  __proto__: null,
4458
4458
  CreateSnapshotRequest: CreateSnapshotRequest,
4459
4459
  CreateVolumeRequest: CreateVolumeRequest,
@@ -4466,18 +4466,18 @@ var validationRules_gen$d = /*#__PURE__*/Object.freeze({
4466
4466
  // This file was automatically generated. DO NOT EDIT.
4467
4467
  // If you have any remark or suggestion do not hesitate to open an issue.
4468
4468
 
4469
- var index_gen$r = /*#__PURE__*/Object.freeze({
4469
+ var index_gen$s = /*#__PURE__*/Object.freeze({
4470
4470
  __proto__: null,
4471
- API: API$s,
4471
+ API: API$t,
4472
4472
  REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
4473
4473
  SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$3,
4474
4474
  VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES$1,
4475
- ValidationRules: validationRules_gen$d
4475
+ ValidationRules: validationRules_gen$e
4476
4476
  });
4477
4477
 
4478
- var index$u = /*#__PURE__*/Object.freeze({
4478
+ var index$v = /*#__PURE__*/Object.freeze({
4479
4479
  __proto__: null,
4480
- v1alpha1: index_gen$r
4480
+ v1alpha1: index_gen$s
4481
4481
  });
4482
4482
 
4483
4483
  // This file was automatically generated. DO NOT EDIT.
@@ -4754,7 +4754,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
4754
4754
 
4755
4755
  // This file was automatically generated. DO NOT EDIT.
4756
4756
  // If you have any remark or suggestion do not hesitate to open an issue.
4757
- const jsonContentHeaders$r = {
4757
+ const jsonContentHeaders$s = {
4758
4758
  'Content-Type': 'application/json; charset=utf-8'
4759
4759
  };
4760
4760
 
@@ -4765,7 +4765,7 @@ const jsonContentHeaders$r = {
4765
4765
  * logs. It also provides you with a dedicated Grafana for dashboarding to
4766
4766
  * visualize your metrics and logs.
4767
4767
  */
4768
- let API$r = class API extends API$y {
4768
+ let API$s = class API extends API$z {
4769
4769
  /**
4770
4770
  * Activate the Cockpit of a given Project specified by the Project ID.
4771
4771
  *
@@ -4774,7 +4774,7 @@ let API$r = class API extends API$y {
4774
4774
  */
4775
4775
  activateCockpit = (request = {}) => this.client.fetch({
4776
4776
  body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
4777
- headers: jsonContentHeaders$r,
4777
+ headers: jsonContentHeaders$s,
4778
4778
  method: 'POST',
4779
4779
  path: `/cockpit/v1beta1/activate`
4780
4780
  }, unmarshalCockpit);
@@ -4821,7 +4821,7 @@ let API$r = class API extends API$y {
4821
4821
  */
4822
4822
  deactivateCockpit = (request = {}) => this.client.fetch({
4823
4823
  body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
4824
- headers: jsonContentHeaders$r,
4824
+ headers: jsonContentHeaders$s,
4825
4825
  method: 'POST',
4826
4826
  path: `/cockpit/v1beta1/deactivate`
4827
4827
  }, unmarshalCockpit);
@@ -4835,7 +4835,7 @@ let API$r = class API extends API$y {
4835
4835
  */
4836
4836
  createDatasource = request => this.client.fetch({
4837
4837
  body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
4838
- headers: jsonContentHeaders$r,
4838
+ headers: jsonContentHeaders$s,
4839
4839
  method: 'POST',
4840
4840
  path: `/cockpit/v1beta1/datasources`
4841
4841
  }, unmarshalDatasource);
@@ -4871,7 +4871,7 @@ let API$r = class API extends API$y {
4871
4871
  */
4872
4872
  createToken = (request = {}) => this.client.fetch({
4873
4873
  body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
4874
- headers: jsonContentHeaders$r,
4874
+ headers: jsonContentHeaders$s,
4875
4875
  method: 'POST',
4876
4876
  path: `/cockpit/v1beta1/tokens`
4877
4877
  }, unmarshalToken$2);
@@ -4919,7 +4919,7 @@ let API$r = class API extends API$y {
4919
4919
  */
4920
4920
  createContactPoint = (request = {}) => this.client.fetch({
4921
4921
  body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
4922
- headers: jsonContentHeaders$r,
4922
+ headers: jsonContentHeaders$s,
4923
4923
  method: 'POST',
4924
4924
  path: `/cockpit/v1beta1/contact-points`
4925
4925
  }, unmarshalContactPoint);
@@ -4945,7 +4945,7 @@ let API$r = class API extends API$y {
4945
4945
  */
4946
4946
  deleteContactPoint = (request = {}) => this.client.fetch({
4947
4947
  body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
4948
- headers: jsonContentHeaders$r,
4948
+ headers: jsonContentHeaders$s,
4949
4949
  method: 'POST',
4950
4950
  path: `/cockpit/v1beta1/delete-contact-point`
4951
4951
  });
@@ -4958,7 +4958,7 @@ let API$r = class API extends API$y {
4958
4958
  */
4959
4959
  enableManagedAlerts = (request = {}) => this.client.fetch({
4960
4960
  body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
4961
- headers: jsonContentHeaders$r,
4961
+ headers: jsonContentHeaders$s,
4962
4962
  method: 'POST',
4963
4963
  path: `/cockpit/v1beta1/enable-managed-alerts`
4964
4964
  });
@@ -4971,7 +4971,7 @@ let API$r = class API extends API$y {
4971
4971
  */
4972
4972
  disableManagedAlerts = (request = {}) => this.client.fetch({
4973
4973
  body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
4974
- headers: jsonContentHeaders$r,
4974
+ headers: jsonContentHeaders$s,
4975
4975
  method: 'POST',
4976
4976
  path: `/cockpit/v1beta1/disable-managed-alerts`
4977
4977
  });
@@ -4984,7 +4984,7 @@ let API$r = class API extends API$y {
4984
4984
  */
4985
4985
  triggerTestAlert = (request = {}) => this.client.fetch({
4986
4986
  body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
4987
- headers: jsonContentHeaders$r,
4987
+ headers: jsonContentHeaders$s,
4988
4988
  method: 'POST',
4989
4989
  path: `/cockpit/v1beta1/trigger-test-alert`
4990
4990
  });
@@ -4998,7 +4998,7 @@ let API$r = class API extends API$y {
4998
4998
  */
4999
4999
  createGrafanaUser = request => this.client.fetch({
5000
5000
  body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
5001
- headers: jsonContentHeaders$r,
5001
+ headers: jsonContentHeaders$s,
5002
5002
  method: 'POST',
5003
5003
  path: `/cockpit/v1beta1/grafana-users`
5004
5004
  }, unmarshalGrafanaUser);
@@ -5024,7 +5024,7 @@ let API$r = class API extends API$y {
5024
5024
  */
5025
5025
  deleteGrafanaUser = request => this.client.fetch({
5026
5026
  body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
5027
- headers: jsonContentHeaders$r,
5027
+ headers: jsonContentHeaders$s,
5028
5028
  method: 'POST',
5029
5029
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
5030
5030
  });
@@ -5038,7 +5038,7 @@ let API$r = class API extends API$y {
5038
5038
  */
5039
5039
  resetGrafanaUserPassword = request => this.client.fetch({
5040
5040
  body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
5041
- headers: jsonContentHeaders$r,
5041
+ headers: jsonContentHeaders$s,
5042
5042
  method: 'POST',
5043
5043
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
5044
5044
  }, unmarshalGrafanaUser);
@@ -5065,7 +5065,7 @@ let API$r = class API extends API$y {
5065
5065
  */
5066
5066
  selectPlan = request => this.client.fetch({
5067
5067
  body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
5068
- headers: jsonContentHeaders$r,
5068
+ headers: jsonContentHeaders$s,
5069
5069
  method: 'POST',
5070
5070
  path: `/cockpit/v1beta1/select-plan`
5071
5071
  }, unmarshalSelectPlanResponse);
@@ -5100,15 +5100,15 @@ let API$r = class API extends API$y {
5100
5100
  // This file was automatically generated. DO NOT EDIT.
5101
5101
  // If you have any remark or suggestion do not hesitate to open an issue.
5102
5102
 
5103
- var index_gen$q = /*#__PURE__*/Object.freeze({
5103
+ var index_gen$r = /*#__PURE__*/Object.freeze({
5104
5104
  __proto__: null,
5105
- API: API$r,
5105
+ API: API$s,
5106
5106
  COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
5107
5107
  });
5108
5108
 
5109
- var index$t = /*#__PURE__*/Object.freeze({
5109
+ var index$u = /*#__PURE__*/Object.freeze({
5110
5110
  __proto__: null,
5111
- v1beta1: index_gen$q
5111
+ v1beta1: index_gen$r
5112
5112
  });
5113
5113
 
5114
5114
  // This file was automatically generated. DO NOT EDIT.
@@ -5461,12 +5461,12 @@ const marshalUpdateTriggerRequest$1 = (request, defaults) => ({
5461
5461
 
5462
5462
  // This file was automatically generated. DO NOT EDIT.
5463
5463
  // If you have any remark or suggestion do not hesitate to open an issue.
5464
- const jsonContentHeaders$q = {
5464
+ const jsonContentHeaders$r = {
5465
5465
  'Content-Type': 'application/json; charset=utf-8'
5466
5466
  };
5467
5467
 
5468
5468
  /** Serverless Containers API. */
5469
- let API$q = class API extends API$y {
5469
+ let API$r = class API extends API$z {
5470
5470
  /** Lists the available regions of the API. */
5471
5471
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
5472
5472
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -5511,7 +5511,7 @@ let API$q = class API extends API$y {
5511
5511
  */
5512
5512
  createNamespace = (request = {}) => this.client.fetch({
5513
5513
  body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
5514
- headers: jsonContentHeaders$q,
5514
+ headers: jsonContentHeaders$r,
5515
5515
  method: 'POST',
5516
5516
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
5517
5517
  }, unmarshalNamespace$2);
@@ -5525,7 +5525,7 @@ let API$q = class API extends API$y {
5525
5525
  */
5526
5526
  updateNamespace = request => this.client.fetch({
5527
5527
  body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
5528
- headers: jsonContentHeaders$q,
5528
+ headers: jsonContentHeaders$r,
5529
5529
  method: 'PATCH',
5530
5530
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
5531
5531
  }, unmarshalNamespace$2);
@@ -5583,7 +5583,7 @@ let API$q = class API extends API$y {
5583
5583
  */
5584
5584
  createContainer = request => this.client.fetch({
5585
5585
  body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
5586
- headers: jsonContentHeaders$q,
5586
+ headers: jsonContentHeaders$r,
5587
5587
  method: 'POST',
5588
5588
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
5589
5589
  }, unmarshalContainer);
@@ -5597,7 +5597,7 @@ let API$q = class API extends API$y {
5597
5597
  */
5598
5598
  updateContainer = request => this.client.fetch({
5599
5599
  body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
5600
- headers: jsonContentHeaders$q,
5600
+ headers: jsonContentHeaders$r,
5601
5601
  method: 'PATCH',
5602
5602
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
5603
5603
  }, unmarshalContainer);
@@ -5621,7 +5621,7 @@ let API$q = class API extends API$y {
5621
5621
  */
5622
5622
  deployContainer = request => this.client.fetch({
5623
5623
  body: '{}',
5624
- headers: jsonContentHeaders$q,
5624
+ headers: jsonContentHeaders$r,
5625
5625
  method: 'POST',
5626
5626
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
5627
5627
  }, unmarshalContainer);
@@ -5667,7 +5667,7 @@ let API$q = class API extends API$y {
5667
5667
  */
5668
5668
  createCron = request => this.client.fetch({
5669
5669
  body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
5670
- headers: jsonContentHeaders$q,
5670
+ headers: jsonContentHeaders$r,
5671
5671
  method: 'POST',
5672
5672
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
5673
5673
  }, unmarshalCron$1);
@@ -5680,7 +5680,7 @@ let API$q = class API extends API$y {
5680
5680
  */
5681
5681
  updateCron = request => this.client.fetch({
5682
5682
  body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
5683
- headers: jsonContentHeaders$q,
5683
+ headers: jsonContentHeaders$r,
5684
5684
  method: 'PATCH',
5685
5685
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
5686
5686
  }, unmarshalCron$1);
@@ -5740,7 +5740,7 @@ let API$q = class API extends API$y {
5740
5740
  */
5741
5741
  createDomain = request => this.client.fetch({
5742
5742
  body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
5743
- headers: jsonContentHeaders$q,
5743
+ headers: jsonContentHeaders$r,
5744
5744
  method: 'POST',
5745
5745
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
5746
5746
  }, unmarshalDomain$3);
@@ -5784,7 +5784,7 @@ let API$q = class API extends API$y {
5784
5784
  */
5785
5785
  createToken = (request = {}) => this.client.fetch({
5786
5786
  body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
5787
- headers: jsonContentHeaders$q,
5787
+ headers: jsonContentHeaders$r,
5788
5788
  method: 'POST',
5789
5789
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
5790
5790
  }, unmarshalToken$1);
@@ -5842,7 +5842,7 @@ let API$q = class API extends API$y {
5842
5842
  */
5843
5843
  createTrigger = request => this.client.fetch({
5844
5844
  body: JSON.stringify(marshalCreateTriggerRequest$1(request, this.client.settings)),
5845
- headers: jsonContentHeaders$q,
5845
+ headers: jsonContentHeaders$r,
5846
5846
  method: 'POST',
5847
5847
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
5848
5848
  }, unmarshalTrigger$1);
@@ -5899,7 +5899,7 @@ let API$q = class API extends API$y {
5899
5899
  */
5900
5900
  updateTrigger = request => this.client.fetch({
5901
5901
  body: JSON.stringify(marshalUpdateTriggerRequest$1(request, this.client.settings)),
5902
- headers: jsonContentHeaders$q,
5902
+ headers: jsonContentHeaders$r,
5903
5903
  method: 'PATCH',
5904
5904
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
5905
5905
  }, unmarshalTrigger$1);
@@ -5915,56 +5915,2897 @@ let API$q = class API extends API$y {
5915
5915
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
5916
5916
  }, unmarshalTrigger$1);
5917
5917
  };
5918
-
5919
- // This file was automatically generated. DO NOT EDIT.
5920
- // If you have any remark or suggestion do not hesitate to open an issue.
5921
-
5922
- const CreateTriggerRequest$1 = {
5923
- description: {
5924
- maxLength: 255
5918
+
5919
+ // This file was automatically generated. DO NOT EDIT.
5920
+ // If you have any remark or suggestion do not hesitate to open an issue.
5921
+
5922
+ const CreateTriggerRequest$1 = {
5923
+ description: {
5924
+ maxLength: 255
5925
+ },
5926
+ name: {
5927
+ maxLength: 50,
5928
+ minLength: 1
5929
+ }
5930
+ };
5931
+ const CreateTriggerRequestMnqNatsClientConfig$1 = {
5932
+ mnqRegion: {
5933
+ maxLength: 20,
5934
+ minLength: 1
5935
+ },
5936
+ subject: {
5937
+ maxLength: 100,
5938
+ minLength: 1,
5939
+ pattern: /^[^\s]+$/
5940
+ }
5941
+ };
5942
+ const CreateTriggerRequestMnqSqsClientConfig$1 = {
5943
+ mnqRegion: {
5944
+ maxLength: 20,
5945
+ minLength: 1
5946
+ },
5947
+ queue: {
5948
+ maxLength: 100,
5949
+ minLength: 1
5950
+ }
5951
+ };
5952
+ const UpdateTriggerRequest$1 = {
5953
+ description: {
5954
+ maxLength: 255
5955
+ },
5956
+ name: {
5957
+ maxLength: 50,
5958
+ minLength: 1
5959
+ }
5960
+ };
5961
+
5962
+ var validationRules_gen$d = /*#__PURE__*/Object.freeze({
5963
+ __proto__: null,
5964
+ CreateTriggerRequest: CreateTriggerRequest$1,
5965
+ CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig$1,
5966
+ CreateTriggerRequestMnqSqsClientConfig: CreateTriggerRequestMnqSqsClientConfig$1,
5967
+ UpdateTriggerRequest: UpdateTriggerRequest$1
5968
+ });
5969
+
5970
+ // This file was automatically generated. DO NOT EDIT.
5971
+ // If you have any remark or suggestion do not hesitate to open an issue.
5972
+
5973
+ var index_gen$q = /*#__PURE__*/Object.freeze({
5974
+ __proto__: null,
5975
+ API: API$r,
5976
+ CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
5977
+ CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
5978
+ DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
5979
+ NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$2,
5980
+ TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1,
5981
+ TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1,
5982
+ ValidationRules: validationRules_gen$d
5983
+ });
5984
+
5985
+ var index$t = /*#__PURE__*/Object.freeze({
5986
+ __proto__: null,
5987
+ v1beta1: index_gen$q
5988
+ });
5989
+
5990
+ // This file was automatically generated. DO NOT EDIT.
5991
+ // If you have any remark or suggestion do not hesitate to open an issue.
5992
+
5993
+ /** Lists transient statutes of the enum {@link BMCAccessStatus}. */
5994
+ const BMC_ACCESS_TRANSIENT_STATUSES = ['creating', 'deleting'];
5995
+
5996
+ /** Lists transient statutes of the enum {@link IPv6BlockDelegationStatus}. */
5997
+ const I_PV6_BLOCK_DELEGATION_TRANSIENT_STATUSES = ['updating'];
5998
+
5999
+ /** Lists transient statutes of the enum {@link RpnGroupMemberStatus}. */
6000
+ const RPN_GROUP_MEMBER_TRANSIENT_STATUSES = ['creating', 'deleting'];
6001
+
6002
+ /** Lists transient statutes of the enum {@link RpnSanStatus}. */
6003
+ const RPN_SAN_TRANSIENT_STATUSES = ['creating', 'deleting'];
6004
+
6005
+ /** Lists transient statutes of the enum {@link RpnV2GroupStatus}. */
6006
+ const RPN_V2_GROUP_TRANSIENT_STATUSES = ['creating', 'updating', 'deleting'];
6007
+
6008
+ /** Lists transient statutes of the enum {@link RpnV2MemberStatus}. */
6009
+ const RPN_V2_MEMBER_TRANSIENT_STATUSES = ['creating', 'updating', 'deleting'];
6010
+
6011
+ /** Lists transient statutes of the enum {@link ServerInstallStatus}. */
6012
+ const SERVER_INSTALL_TRANSIENT_STATUSES = ['booting', 'setting_up_raid', 'partitioning', 'formatting', 'installing', 'configuring', 'configuring_bootloader', 'rebooting'];
6013
+
6014
+ /** Lists transient statutes of the enum {@link ServerStatus}. */
6015
+ const SERVER_TRANSIENT_STATUSES$1 = ['delivering', 'installing'];
6016
+
6017
+ /** Lists transient statutes of the enum {@link ServiceProvisioningStatus}. */
6018
+ const SERVICE_PROVISIONING_TRANSIENT_STATUSES = ['delivering', 'expiring'];
6019
+
6020
+ // This file was automatically generated. DO NOT EDIT.
6021
+ // If you have any remark or suggestion do not hesitate to open an issue.
6022
+ const unmarshalIP$2 = data => {
6023
+ if (!isJSONObject(data)) {
6024
+ throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
6025
+ }
6026
+ return {
6027
+ address: data.address,
6028
+ cidr: data.cidr,
6029
+ gateway: data.gateway,
6030
+ ipId: data.ip_id,
6031
+ netmask: data.netmask,
6032
+ reverse: data.reverse,
6033
+ semantic: data.semantic,
6034
+ status: data.status,
6035
+ version: data.version
6036
+ };
6037
+ };
6038
+ const unmarshalCPU = data => {
6039
+ if (!isJSONObject(data)) {
6040
+ throw new TypeError(`Unmarshalling the type 'CPU' failed as data isn't a dictionary.`);
6041
+ }
6042
+ return {
6043
+ coreCount: data.core_count,
6044
+ frequency: data.frequency,
6045
+ name: data.name,
6046
+ threadCount: data.thread_count
6047
+ };
6048
+ };
6049
+ const unmarshalDisk = data => {
6050
+ if (!isJSONObject(data)) {
6051
+ throw new TypeError(`Unmarshalling the type 'Disk' failed as data isn't a dictionary.`);
6052
+ }
6053
+ return {
6054
+ capacity: data.capacity,
6055
+ type: data.type
6056
+ };
6057
+ };
6058
+ const unmarshalMemory = data => {
6059
+ if (!isJSONObject(data)) {
6060
+ throw new TypeError(`Unmarshalling the type 'Memory' failed as data isn't a dictionary.`);
6061
+ }
6062
+ return {
6063
+ capacity: data.capacity,
6064
+ frequency: data.frequency,
6065
+ isEcc: data.is_ecc,
6066
+ type: data.type
6067
+ };
6068
+ };
6069
+ const unmarshalPersistentMemory = data => {
6070
+ if (!isJSONObject(data)) {
6071
+ throw new TypeError(`Unmarshalling the type 'PersistentMemory' failed as data isn't a dictionary.`);
6072
+ }
6073
+ return {
6074
+ capacity: data.capacity,
6075
+ frequency: data.frequency,
6076
+ model: data.model
6077
+ };
6078
+ };
6079
+ const unmarshalRaidController = data => {
6080
+ if (!isJSONObject(data)) {
6081
+ throw new TypeError(`Unmarshalling the type 'RaidController' failed as data isn't a dictionary.`);
6082
+ }
6083
+ return {
6084
+ model: data.model,
6085
+ raidLevel: data.raid_level
6086
+ };
6087
+ };
6088
+ const unmarshalOfferAntiDosInfo = data => {
6089
+ if (!isJSONObject(data)) {
6090
+ throw new TypeError(`Unmarshalling the type 'OfferAntiDosInfo' failed as data isn't a dictionary.`);
6091
+ }
6092
+ return {
6093
+ type: data.type
6094
+ };
6095
+ };
6096
+ const unmarshalOfferBackupInfo = data => {
6097
+ if (!isJSONObject(data)) {
6098
+ throw new TypeError(`Unmarshalling the type 'OfferBackupInfo' failed as data isn't a dictionary.`);
6099
+ }
6100
+ return {
6101
+ size: data.size
6102
+ };
6103
+ };
6104
+ const unmarshalOfferBandwidthInfo = data => {
6105
+ if (!isJSONObject(data)) {
6106
+ throw new TypeError(`Unmarshalling the type 'OfferBandwidthInfo' failed as data isn't a dictionary.`);
6107
+ }
6108
+ return {
6109
+ speed: data.speed
6110
+ };
6111
+ };
6112
+ const unmarshalOfferFailoverBlockInfo = data => {
6113
+ if (!isJSONObject(data)) {
6114
+ throw new TypeError(`Unmarshalling the type 'OfferFailoverBlockInfo' failed as data isn't a dictionary.`);
6115
+ }
6116
+ return {
6117
+ onetimeFees: data.onetime_fees ? unmarshalOffer$1(data.onetime_fees) : undefined
6118
+ };
6119
+ };
6120
+ const unmarshalOfferFailoverIpInfo = data => {
6121
+ if (!isJSONObject(data)) {
6122
+ throw new TypeError(`Unmarshalling the type 'OfferFailoverIpInfo' failed as data isn't a dictionary.`);
6123
+ }
6124
+ return {
6125
+ onetimeFees: data.onetime_fees ? unmarshalOffer$1(data.onetime_fees) : undefined
6126
+ };
6127
+ };
6128
+ const unmarshalOfferLicenseInfo = data => {
6129
+ if (!isJSONObject(data)) {
6130
+ throw new TypeError(`Unmarshalling the type 'OfferLicenseInfo' failed as data isn't a dictionary.`);
6131
+ }
6132
+ return {
6133
+ boundToIp: data.bound_to_ip
6134
+ };
6135
+ };
6136
+ const unmarshalOfferRPNInfo = data => {
6137
+ if (!isJSONObject(data)) {
6138
+ throw new TypeError(`Unmarshalling the type 'OfferRPNInfo' failed as data isn't a dictionary.`);
6139
+ }
6140
+ return {
6141
+ speed: data.speed
6142
+ };
6143
+ };
6144
+ const unmarshalOfferSANInfo = data => {
6145
+ if (!isJSONObject(data)) {
6146
+ throw new TypeError(`Unmarshalling the type 'OfferSANInfo' failed as data isn't a dictionary.`);
6147
+ }
6148
+ return {
6149
+ deviceType: data.device_type,
6150
+ ha: data.ha,
6151
+ size: data.size
6152
+ };
6153
+ };
6154
+ const unmarshalOfferServerInfo = data => {
6155
+ if (!isJSONObject(data)) {
6156
+ throw new TypeError(`Unmarshalling the type 'OfferServerInfo' failed as data isn't a dictionary.`);
6157
+ }
6158
+ return {
6159
+ availableOptions: unmarshalArrayOfObject(data.available_options, unmarshalOffer$1),
6160
+ bandwidth: data.bandwidth,
6161
+ commercialRange: data.commercial_range,
6162
+ connectivity: data.connectivity,
6163
+ cpus: unmarshalArrayOfObject(data.cpus, unmarshalCPU),
6164
+ disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
6165
+ memories: unmarshalArrayOfObject(data.memories, unmarshalMemory),
6166
+ onetimeFees: data.onetime_fees ? unmarshalOffer$1(data.onetime_fees) : undefined,
6167
+ persistentMemories: unmarshalArrayOfObject(data.persistent_memories, unmarshalPersistentMemory),
6168
+ raidControllers: unmarshalArrayOfObject(data.raid_controllers, unmarshalRaidController),
6169
+ rpnVersion: data.rpn_version,
6170
+ stock: data.stock,
6171
+ stockByDatacenter: data.stock_by_datacenter
6172
+ };
6173
+ };
6174
+ const unmarshalOfferServiceLevelInfo = data => {
6175
+ if (!isJSONObject(data)) {
6176
+ throw new TypeError(`Unmarshalling the type 'OfferServiceLevelInfo' failed as data isn't a dictionary.`);
6177
+ }
6178
+ return {
6179
+ antidos: data.antidos,
6180
+ availableOptions: unmarshalArrayOfObject(data.available_options, unmarshalOffer$1),
6181
+ customization: data.customization,
6182
+ extraFailoverQuota: data.extra_failover_quota,
6183
+ git: data.git,
6184
+ highRpnBandwidth: data.high_rpn_bandwidth,
6185
+ prioritySupport: data.priority_support,
6186
+ salesSupport: data.sales_support,
6187
+ sla: data.sla,
6188
+ supportPhone: data.support_phone,
6189
+ supportTicket: data.support_ticket
6190
+ };
6191
+ };
6192
+ const unmarshalOfferStorageInfo = data => {
6193
+ if (!isJSONObject(data)) {
6194
+ throw new TypeError(`Unmarshalling the type 'OfferStorageInfo' failed as data isn't a dictionary.`);
6195
+ }
6196
+ return {
6197
+ maxQuota: data.max_quota,
6198
+ size: data.size
6199
+ };
6200
+ };
6201
+ const unmarshalOffer$1 = data => {
6202
+ if (!isJSONObject(data)) {
6203
+ throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
6204
+ }
6205
+ return {
6206
+ antidosInfo: data.antidos_info ? unmarshalOfferAntiDosInfo(data.antidos_info) : undefined,
6207
+ backupInfo: data.backup_info ? unmarshalOfferBackupInfo(data.backup_info) : undefined,
6208
+ bandwidthInfo: data.bandwidth_info ? unmarshalOfferBandwidthInfo(data.bandwidth_info) : undefined,
6209
+ catalog: data.catalog,
6210
+ failoverBlockInfo: data.failover_block_info ? unmarshalOfferFailoverBlockInfo(data.failover_block_info) : undefined,
6211
+ failoverIpInfo: data.failover_ip_info ? unmarshalOfferFailoverIpInfo(data.failover_ip_info) : undefined,
6212
+ id: data.id,
6213
+ licenseInfo: data.license_info ? unmarshalOfferLicenseInfo(data.license_info) : undefined,
6214
+ name: data.name,
6215
+ paymentFrequency: data.payment_frequency,
6216
+ pricing: data.pricing ? unmarshalMoney(data.pricing) : undefined,
6217
+ rpnInfo: data.rpn_info ? unmarshalOfferRPNInfo(data.rpn_info) : undefined,
6218
+ sanInfo: data.san_info ? unmarshalOfferSANInfo(data.san_info) : undefined,
6219
+ serverInfo: data.server_info ? unmarshalOfferServerInfo(data.server_info) : undefined,
6220
+ serviceLevelInfo: data.service_level_info ? unmarshalOfferServiceLevelInfo(data.service_level_info) : undefined,
6221
+ storageInfo: data.storage_info ? unmarshalOfferStorageInfo(data.storage_info) : undefined,
6222
+ usbStorageInfo: data.usb_storage_info ? unmarshalOfferStorageInfo(data.usb_storage_info) : undefined
6223
+ };
6224
+ };
6225
+ const unmarshalOS = data => {
6226
+ if (!isJSONObject(data)) {
6227
+ throw new TypeError(`Unmarshalling the type 'OS' failed as data isn't a dictionary.`);
6228
+ }
6229
+ return {
6230
+ allowCustomPartitioning: data.allow_custom_partitioning,
6231
+ allowSshKeys: data.allow_ssh_keys,
6232
+ allowedFilesystems: data.allowed_filesystems,
6233
+ arch: data.arch,
6234
+ displayName: data.display_name,
6235
+ hostnameMaxLength: data.hostname_max_length,
6236
+ hostnameRegex: data.hostname_regex,
6237
+ id: data.id,
6238
+ licenseOffers: unmarshalArrayOfObject(data.license_offers, unmarshalOffer$1),
6239
+ maxPartitions: data.max_partitions,
6240
+ name: data.name,
6241
+ panelPasswordRegex: data.panel_password_regex,
6242
+ passwordRegex: data.password_regex,
6243
+ releasedAt: unmarshalDate(data.released_at),
6244
+ requiresAdminPassword: data.requires_admin_password,
6245
+ requiresLicense: data.requires_license,
6246
+ requiresPanelPassword: data.requires_panel_password,
6247
+ requiresUser: data.requires_user,
6248
+ requiresValidHostname: data.requires_valid_hostname,
6249
+ type: data.type,
6250
+ version: data.version
6251
+ };
6252
+ };
6253
+ const unmarshalRpnSan = data => {
6254
+ if (!isJSONObject(data)) {
6255
+ throw new TypeError(`Unmarshalling the type 'RpnSan' failed as data isn't a dictionary.`);
6256
+ }
6257
+ return {
6258
+ createdAt: unmarshalDate(data.created_at),
6259
+ datacenterName: data.datacenter_name,
6260
+ deliveredAt: unmarshalDate(data.delivered_at),
6261
+ expiresAt: unmarshalDate(data.expires_at),
6262
+ id: data.id,
6263
+ iqn: data.iqn,
6264
+ iqnSuffix: data.iqn_suffix,
6265
+ offer: data.offer ? unmarshalOffer$1(data.offer) : undefined,
6266
+ offerId: data.offer_id,
6267
+ offerName: data.offer_name,
6268
+ organizationId: data.organization_id,
6269
+ projectId: data.project_id,
6270
+ rpnv1Compatible: data.rpnv1_compatible,
6271
+ rpnv1Implicit: data.rpnv1_implicit,
6272
+ serverHostname: data.server_hostname,
6273
+ status: data.status,
6274
+ storageSize: data.storage_size,
6275
+ terminatedAt: unmarshalDate(data.terminated_at)
6276
+ };
6277
+ };
6278
+ const unmarshalRpnGroup = data => {
6279
+ if (!isJSONObject(data)) {
6280
+ throw new TypeError(`Unmarshalling the type 'RpnGroup' failed as data isn't a dictionary.`);
6281
+ }
6282
+ return {
6283
+ active: data.active,
6284
+ createdAt: unmarshalDate(data.created_at),
6285
+ id: data.id,
6286
+ membersCount: data.members_count,
6287
+ name: data.name,
6288
+ organizationId: data.organization_id,
6289
+ owner: data.owner,
6290
+ projectId: data.project_id,
6291
+ type: data.type
6292
+ };
6293
+ };
6294
+ const unmarshalNetworkInterface = data => {
6295
+ if (!isJSONObject(data)) {
6296
+ throw new TypeError(`Unmarshalling the type 'NetworkInterface' failed as data isn't a dictionary.`);
6297
+ }
6298
+ return {
6299
+ cardId: data.card_id,
6300
+ deviceId: data.device_id,
6301
+ ips: unmarshalArrayOfObject(data.ips, unmarshalIP$2),
6302
+ mac: data.mac,
6303
+ type: data.type
6304
+ };
6305
+ };
6306
+ const unmarshalServerLocation$1 = data => {
6307
+ if (!isJSONObject(data)) {
6308
+ throw new TypeError(`Unmarshalling the type 'ServerLocation' failed as data isn't a dictionary.`);
6309
+ }
6310
+ return {
6311
+ datacenterName: data.datacenter_name,
6312
+ rack: data.rack,
6313
+ room: data.room
6314
+ };
6315
+ };
6316
+ const unmarshalServerOption = data => {
6317
+ if (!isJSONObject(data)) {
6318
+ throw new TypeError(`Unmarshalling the type 'ServerOption' failed as data isn't a dictionary.`);
6319
+ }
6320
+ return {
6321
+ createdAt: unmarshalDate(data.created_at),
6322
+ expiredAt: unmarshalDate(data.expired_at),
6323
+ offer: data.offer ? unmarshalOffer$1(data.offer) : undefined,
6324
+ options: unmarshalArrayOfObject(data.options, unmarshalServerOption),
6325
+ updatedAt: unmarshalDate(data.updated_at)
6326
+ };
6327
+ };
6328
+ const unmarshalServiceLevel = data => {
6329
+ if (!isJSONObject(data)) {
6330
+ throw new TypeError(`Unmarshalling the type 'ServiceLevel' failed as data isn't a dictionary.`);
6331
+ }
6332
+ return {
6333
+ level: data.level,
6334
+ offerId: data.offer_id
6335
+ };
6336
+ };
6337
+ const unmarshalServer$1 = data => {
6338
+ if (!isJSONObject(data)) {
6339
+ throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
6340
+ }
6341
+ return {
6342
+ abuseContact: data.abuse_contact,
6343
+ createdAt: unmarshalDate(data.created_at),
6344
+ expiredAt: unmarshalDate(data.expired_at),
6345
+ hasBmc: data.has_bmc,
6346
+ hostname: data.hostname,
6347
+ id: data.id,
6348
+ interfaces: unmarshalArrayOfObject(data.interfaces, unmarshalNetworkInterface),
6349
+ ipv6Slaac: data.ipv6_slaac,
6350
+ isOutsourced: data.is_outsourced,
6351
+ isRpnv2Member: data.is_rpnv2_member,
6352
+ level: data.level ? unmarshalServiceLevel(data.level) : undefined,
6353
+ location: data.location ? unmarshalServerLocation$1(data.location) : undefined,
6354
+ offer: data.offer ? unmarshalOffer$1(data.offer) : undefined,
6355
+ options: unmarshalArrayOfObject(data.options, unmarshalServerOption),
6356
+ organizationId: data.organization_id,
6357
+ os: data.os ? unmarshalOS(data.os) : undefined,
6358
+ projectId: data.project_id,
6359
+ qinq: data.qinq,
6360
+ rebootedAt: unmarshalDate(data.rebooted_at),
6361
+ rescueOs: data.rescue_os ? unmarshalOS(data.rescue_os) : undefined,
6362
+ status: data.status,
6363
+ tags: data.tags,
6364
+ updatedAt: unmarshalDate(data.updated_at),
6365
+ zone: data.zone
6366
+ };
6367
+ };
6368
+ const unmarshalRpnV2GroupSubnet = data => {
6369
+ if (!isJSONObject(data)) {
6370
+ throw new TypeError(`Unmarshalling the type 'RpnV2GroupSubnet' failed as data isn't a dictionary.`);
6371
+ }
6372
+ return {
6373
+ address: data.address,
6374
+ cidr: data.cidr
6375
+ };
6376
+ };
6377
+ const unmarshalRpnV2Group = data => {
6378
+ if (!isJSONObject(data)) {
6379
+ throw new TypeError(`Unmarshalling the type 'RpnV2Group' failed as data isn't a dictionary.`);
6380
+ }
6381
+ return {
6382
+ compatibleRpnv1: data.compatible_rpnv1,
6383
+ gateway: data.gateway,
6384
+ id: data.id,
6385
+ membersCount: data.members_count,
6386
+ name: data.name,
6387
+ organizationId: data.organization_id,
6388
+ owner: data.owner,
6389
+ projectId: data.project_id,
6390
+ rpnv1Group: data.rpnv1_group ? unmarshalRpnGroup(data.rpnv1_group) : undefined,
6391
+ status: data.status,
6392
+ subnet: data.subnet ? unmarshalRpnV2GroupSubnet(data.subnet) : undefined,
6393
+ type: data.type
6394
+ };
6395
+ };
6396
+ const unmarshalService = data => {
6397
+ if (!isJSONObject(data)) {
6398
+ throw new TypeError(`Unmarshalling the type 'Service' failed as data isn't a dictionary.`);
6399
+ }
6400
+ return {
6401
+ createdAt: unmarshalDate(data.created_at),
6402
+ deliveredAt: unmarshalDate(data.delivered_at),
6403
+ expiresAt: unmarshalDate(data.expires_at),
6404
+ id: data.id,
6405
+ offer: data.offer ? unmarshalOffer$1(data.offer) : undefined,
6406
+ provisioningStatus: data.provisioning_status,
6407
+ resourceId: data.resource_id,
6408
+ terminatedAt: unmarshalDate(data.terminated_at),
6409
+ type: data.type
6410
+ };
6411
+ };
6412
+ const unmarshalFailoverBlock = data => {
6413
+ if (!isJSONObject(data)) {
6414
+ throw new TypeError(`Unmarshalling the type 'FailoverBlock' failed as data isn't a dictionary.`);
6415
+ }
6416
+ return {
6417
+ address: data.address,
6418
+ cidr: data.cidr,
6419
+ gatewayIp: data.gateway_ip,
6420
+ id: data.id,
6421
+ ipVersion: data.ip_version,
6422
+ nameservers: data.nameservers,
6423
+ netmask: data.netmask
6424
+ };
6425
+ };
6426
+ const unmarshalFailoverIP = data => {
6427
+ if (!isJSONObject(data)) {
6428
+ throw new TypeError(`Unmarshalling the type 'FailoverIP' failed as data isn't a dictionary.`);
6429
+ }
6430
+ return {
6431
+ address: data.address,
6432
+ block: data.block ? unmarshalFailoverBlock(data.block) : undefined,
6433
+ cidr: data.cidr,
6434
+ gatewayIp: data.gateway_ip,
6435
+ id: data.id,
6436
+ ipVersion: data.ip_version,
6437
+ mac: data.mac,
6438
+ netmask: data.netmask,
6439
+ reverse: data.reverse,
6440
+ serverId: data.server_id,
6441
+ serverZone: data.server_zone,
6442
+ status: data.status,
6443
+ type: data.type
6444
+ };
6445
+ };
6446
+ const unmarshalBMCAccess = data => {
6447
+ if (!isJSONObject(data)) {
6448
+ throw new TypeError(`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`);
6449
+ }
6450
+ return {
6451
+ expiresAt: unmarshalDate(data.expires_at),
6452
+ login: data.login,
6453
+ password: data.password,
6454
+ status: data.status,
6455
+ url: data.url
6456
+ };
6457
+ };
6458
+ const unmarshalBackup = data => {
6459
+ if (!isJSONObject(data)) {
6460
+ throw new TypeError(`Unmarshalling the type 'Backup' failed as data isn't a dictionary.`);
6461
+ }
6462
+ return {
6463
+ aclEnabled: data.acl_enabled,
6464
+ autologin: data.autologin,
6465
+ id: data.id,
6466
+ login: data.login,
6467
+ quotaFiles: data.quota_files,
6468
+ quotaFilesUsed: data.quota_files_used,
6469
+ quotaSpace: data.quota_space,
6470
+ quotaSpaceUsed: data.quota_space_used,
6471
+ server: data.server,
6472
+ status: data.status
6473
+ };
6474
+ };
6475
+ const unmarshalCanOrderResponse = data => {
6476
+ if (!isJSONObject(data)) {
6477
+ throw new TypeError(`Unmarshalling the type 'CanOrderResponse' failed as data isn't a dictionary.`);
6478
+ }
6479
+ return {
6480
+ billingOk: data.billing_ok,
6481
+ canOrder: data.can_order,
6482
+ emailConfirmed: data.email_confirmed,
6483
+ message: data.message,
6484
+ paymentMode: data.payment_mode,
6485
+ phoneConfirmed: data.phone_confirmed,
6486
+ quotaOk: data.quota_ok,
6487
+ userConfirmed: data.user_confirmed
6488
+ };
6489
+ };
6490
+ const unmarshalCreateFailoverIPsResponse = data => {
6491
+ if (!isJSONObject(data)) {
6492
+ throw new TypeError(`Unmarshalling the type 'CreateFailoverIPsResponse' failed as data isn't a dictionary.`);
6493
+ }
6494
+ return {
6495
+ services: unmarshalArrayOfObject(data.services, unmarshalService),
6496
+ totalCount: data.total_count
6497
+ };
6498
+ };
6499
+ const unmarshalGetIPv6BlockQuotasResponseQuota = data => {
6500
+ if (!isJSONObject(data)) {
6501
+ throw new TypeError(`Unmarshalling the type 'GetIPv6BlockQuotasResponseQuota' failed as data isn't a dictionary.`);
6502
+ }
6503
+ return {
6504
+ cidr: data.cidr,
6505
+ quota: data.quota
6506
+ };
6507
+ };
6508
+ const unmarshalGetIPv6BlockQuotasResponse = data => {
6509
+ if (!isJSONObject(data)) {
6510
+ throw new TypeError(`Unmarshalling the type 'GetIPv6BlockQuotasResponse' failed as data isn't a dictionary.`);
6511
+ }
6512
+ return {
6513
+ quotas: unmarshalArrayOfObject(data.quotas, unmarshalGetIPv6BlockQuotasResponseQuota),
6514
+ totalCount: data.total_count
6515
+ };
6516
+ };
6517
+ const unmarshalGetRemainingQuotaResponse = data => {
6518
+ if (!isJSONObject(data)) {
6519
+ throw new TypeError(`Unmarshalling the type 'GetRemainingQuotaResponse' failed as data isn't a dictionary.`);
6520
+ }
6521
+ return {
6522
+ failoverBlockQuota: data.failover_block_quota,
6523
+ failoverBlockRemainingQuota: data.failover_block_remaining_quota,
6524
+ failoverIpQuota: data.failover_ip_quota,
6525
+ failoverIpRemainingQuota: data.failover_ip_remaining_quota
6526
+ };
6527
+ };
6528
+ const unmarshalGetRpnStatusResponse = data => {
6529
+ if (!isJSONObject(data)) {
6530
+ throw new TypeError(`Unmarshalling the type 'GetRpnStatusResponse' failed as data isn't a dictionary.`);
6531
+ }
6532
+ return {
6533
+ operationsLeft: data.operations_left,
6534
+ status: data.status
6535
+ };
6536
+ };
6537
+ const unmarshalIPv6Block = data => {
6538
+ if (!isJSONObject(data)) {
6539
+ throw new TypeError(`Unmarshalling the type 'IPv6Block' failed as data isn't a dictionary.`);
6540
+ }
6541
+ return {
6542
+ address: data.address,
6543
+ cidr: data.cidr,
6544
+ delegationStatus: data.delegation_status,
6545
+ duid: data.duid,
6546
+ id: data.id,
6547
+ nameservers: data.nameservers,
6548
+ subnets: unmarshalArrayOfObject(data.subnets, unmarshalIPv6Block)
6549
+ };
6550
+ };
6551
+ const unmarshalInvoice = data => {
6552
+ if (!isJSONObject(data)) {
6553
+ throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
6554
+ }
6555
+ return {
6556
+ content: data.content,
6557
+ createdAt: unmarshalDate(data.created_at),
6558
+ id: data.id,
6559
+ paidAt: unmarshalDate(data.paid_at),
6560
+ paymentMethod: data.payment_method,
6561
+ status: data.status,
6562
+ totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : undefined,
6563
+ totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : undefined,
6564
+ transactionId: data.transaction_id
6565
+ };
6566
+ };
6567
+ const unmarshalListFailoverIPsResponse = data => {
6568
+ if (!isJSONObject(data)) {
6569
+ throw new TypeError(`Unmarshalling the type 'ListFailoverIPsResponse' failed as data isn't a dictionary.`);
6570
+ }
6571
+ return {
6572
+ failoverIps: unmarshalArrayOfObject(data.failover_ips, unmarshalFailoverIP),
6573
+ totalCount: data.total_count
6574
+ };
6575
+ };
6576
+ const unmarshalListIPv6BlockSubnetsAvailableResponseSubnet = data => {
6577
+ if (!isJSONObject(data)) {
6578
+ throw new TypeError(`Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponseSubnet' failed as data isn't a dictionary.`);
6579
+ }
6580
+ return {
6581
+ address: data.address,
6582
+ cidr: data.cidr
6583
+ };
6584
+ };
6585
+ const unmarshalListIPv6BlockSubnetsAvailableResponse = data => {
6586
+ if (!isJSONObject(data)) {
6587
+ throw new TypeError(`Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponse' failed as data isn't a dictionary.`);
6588
+ }
6589
+ return {
6590
+ subnetAvailables: unmarshalArrayOfObject(data.subnet_availables, unmarshalListIPv6BlockSubnetsAvailableResponseSubnet),
6591
+ totalCount: data.total_count
6592
+ };
6593
+ };
6594
+ const unmarshalInvoiceSummary = data => {
6595
+ if (!isJSONObject(data)) {
6596
+ throw new TypeError(`Unmarshalling the type 'InvoiceSummary' failed as data isn't a dictionary.`);
6597
+ }
6598
+ return {
6599
+ createdAt: unmarshalDate(data.created_at),
6600
+ id: data.id,
6601
+ paidAt: unmarshalDate(data.paid_at),
6602
+ paymentMethod: data.payment_method,
6603
+ status: data.status,
6604
+ totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : undefined,
6605
+ totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : undefined,
6606
+ transactionId: data.transaction_id
6607
+ };
6608
+ };
6609
+ const unmarshalListInvoicesResponse = data => {
6610
+ if (!isJSONObject(data)) {
6611
+ throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
6612
+ }
6613
+ return {
6614
+ invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoiceSummary),
6615
+ totalCount: data.total_count
6616
+ };
6617
+ };
6618
+ const unmarshalRpnSanIpRpnV2Group = data => {
6619
+ if (!isJSONObject(data)) {
6620
+ throw new TypeError(`Unmarshalling the type 'RpnSanIpRpnV2Group' failed as data isn't a dictionary.`);
6621
+ }
6622
+ return {
6623
+ id: data.id,
6624
+ name: data.name
6625
+ };
6626
+ };
6627
+ const unmarshalRpnSanIpServer = data => {
6628
+ if (!isJSONObject(data)) {
6629
+ throw new TypeError(`Unmarshalling the type 'RpnSanIpServer' failed as data isn't a dictionary.`);
6630
+ }
6631
+ return {
6632
+ datacenterName: data.datacenter_name,
6633
+ hostname: data.hostname,
6634
+ id: data.id
6635
+ };
6636
+ };
6637
+ const unmarshalRpnSanIp = data => {
6638
+ if (!isJSONObject(data)) {
6639
+ throw new TypeError(`Unmarshalling the type 'RpnSanIp' failed as data isn't a dictionary.`);
6640
+ }
6641
+ return {
6642
+ ip: data.ip ? unmarshalIP$2(data.ip) : undefined,
6643
+ rpnv2Group: data.rpnv2_group ? unmarshalRpnSanIpRpnV2Group(data.rpnv2_group) : undefined,
6644
+ server: data.server ? unmarshalRpnSanIpServer(data.server) : undefined,
6645
+ type: data.type
6646
+ };
6647
+ };
6648
+ const unmarshalListIpsResponse$2 = data => {
6649
+ if (!isJSONObject(data)) {
6650
+ throw new TypeError(`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`);
6651
+ }
6652
+ return {
6653
+ ips: unmarshalArrayOfObject(data.ips, unmarshalRpnSanIp),
6654
+ totalCount: data.total_count
6655
+ };
6656
+ };
6657
+ const unmarshalListOSResponse = data => {
6658
+ if (!isJSONObject(data)) {
6659
+ throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
6660
+ }
6661
+ return {
6662
+ os: unmarshalArrayOfObject(data.os, unmarshalOS),
6663
+ totalCount: data.total_count
6664
+ };
6665
+ };
6666
+ const unmarshalListOffersResponse$1 = data => {
6667
+ if (!isJSONObject(data)) {
6668
+ throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
6669
+ }
6670
+ return {
6671
+ offers: unmarshalArrayOfObject(data.offers, unmarshalOffer$1),
6672
+ totalCount: data.total_count
6673
+ };
6674
+ };
6675
+ const unmarshalRefundSummary = data => {
6676
+ if (!isJSONObject(data)) {
6677
+ throw new TypeError(`Unmarshalling the type 'RefundSummary' failed as data isn't a dictionary.`);
6678
+ }
6679
+ return {
6680
+ createdAt: unmarshalDate(data.created_at),
6681
+ id: data.id,
6682
+ method: data.method,
6683
+ refundedAt: unmarshalDate(data.refunded_at),
6684
+ status: data.status,
6685
+ totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : undefined,
6686
+ totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : undefined
6687
+ };
6688
+ };
6689
+ const unmarshalListRefundsResponse = data => {
6690
+ if (!isJSONObject(data)) {
6691
+ throw new TypeError(`Unmarshalling the type 'ListRefundsResponse' failed as data isn't a dictionary.`);
6692
+ }
6693
+ return {
6694
+ refunds: unmarshalArrayOfObject(data.refunds, unmarshalRefundSummary),
6695
+ totalCount: data.total_count
6696
+ };
6697
+ };
6698
+ const unmarshalRpnSanServer = data => {
6699
+ if (!isJSONObject(data)) {
6700
+ throw new TypeError(`Unmarshalling the type 'RpnSanServer' failed as data isn't a dictionary.`);
6701
+ }
6702
+ return {
6703
+ datacenterName: data.datacenter_name,
6704
+ hostname: data.hostname,
6705
+ id: data.id,
6706
+ sans: unmarshalArrayOfObject(data.sans, unmarshalRpnSan),
6707
+ zone: data.zone
6708
+ };
6709
+ };
6710
+ const unmarshalListRpnCapableSanServersResponse = data => {
6711
+ if (!isJSONObject(data)) {
6712
+ throw new TypeError(`Unmarshalling the type 'ListRpnCapableSanServersResponse' failed as data isn't a dictionary.`);
6713
+ }
6714
+ return {
6715
+ sanServers: unmarshalArrayOfObject(data.san_servers, unmarshalRpnSanServer),
6716
+ totalCount: data.total_count
6717
+ };
6718
+ };
6719
+ const unmarshalListRpnCapableServersResponse = data => {
6720
+ if (!isJSONObject(data)) {
6721
+ throw new TypeError(`Unmarshalling the type 'ListRpnCapableServersResponse' failed as data isn't a dictionary.`);
6722
+ }
6723
+ return {
6724
+ servers: unmarshalArrayOfObject(data.servers, unmarshalServer$1),
6725
+ totalCount: data.total_count
6726
+ };
6727
+ };
6728
+ const unmarshalRpnGroupMember = data => {
6729
+ if (!isJSONObject(data)) {
6730
+ throw new TypeError(`Unmarshalling the type 'RpnGroupMember' failed as data isn't a dictionary.`);
6731
+ }
6732
+ return {
6733
+ groupId: data.group_id,
6734
+ groupName: data.group_name,
6735
+ groupOwner: data.group_owner,
6736
+ id: data.id,
6737
+ owner: data.owner,
6738
+ sanServer: data.san_server ? unmarshalRpnSanServer(data.san_server) : undefined,
6739
+ server: data.server ? unmarshalServer$1(data.server) : undefined,
6740
+ speed: data.speed,
6741
+ status: data.status
6742
+ };
6743
+ };
6744
+ const unmarshalListRpnGroupMembersResponse = data => {
6745
+ if (!isJSONObject(data)) {
6746
+ throw new TypeError(`Unmarshalling the type 'ListRpnGroupMembersResponse' failed as data isn't a dictionary.`);
6747
+ }
6748
+ return {
6749
+ members: unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
6750
+ totalCount: data.total_count
6751
+ };
6752
+ };
6753
+ const unmarshalListRpnGroupsResponse = data => {
6754
+ if (!isJSONObject(data)) {
6755
+ throw new TypeError(`Unmarshalling the type 'ListRpnGroupsResponse' failed as data isn't a dictionary.`);
6756
+ }
6757
+ return {
6758
+ rpnGroups: unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnGroup),
6759
+ totalCount: data.total_count
6760
+ };
6761
+ };
6762
+ const unmarshalListRpnInvitesResponse = data => {
6763
+ if (!isJSONObject(data)) {
6764
+ throw new TypeError(`Unmarshalling the type 'ListRpnInvitesResponse' failed as data isn't a dictionary.`);
6765
+ }
6766
+ return {
6767
+ members: unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
6768
+ totalCount: data.total_count
6769
+ };
6770
+ };
6771
+ const unmarshalRpnSanSummary = data => {
6772
+ if (!isJSONObject(data)) {
6773
+ throw new TypeError(`Unmarshalling the type 'RpnSanSummary' failed as data isn't a dictionary.`);
6774
+ }
6775
+ return {
6776
+ createdAt: unmarshalDate(data.created_at),
6777
+ datacenterName: data.datacenter_name,
6778
+ deliveredAt: unmarshalDate(data.delivered_at),
6779
+ expiresAt: unmarshalDate(data.expires_at),
6780
+ id: data.id,
6781
+ iqnSuffix: data.iqn_suffix,
6782
+ offerId: data.offer_id,
6783
+ offerName: data.offer_name,
6784
+ organizationId: data.organization_id,
6785
+ projectId: data.project_id,
6786
+ rpnv1Compatible: data.rpnv1_compatible,
6787
+ rpnv1Implicit: data.rpnv1_implicit,
6788
+ serverHostname: data.server_hostname,
6789
+ status: data.status,
6790
+ storageSize: data.storage_size,
6791
+ terminatedAt: unmarshalDate(data.terminated_at)
6792
+ };
6793
+ };
6794
+ const unmarshalListRpnSansResponse = data => {
6795
+ if (!isJSONObject(data)) {
6796
+ throw new TypeError(`Unmarshalling the type 'ListRpnSansResponse' failed as data isn't a dictionary.`);
6797
+ }
6798
+ return {
6799
+ rpnSans: unmarshalArrayOfObject(data.rpn_sans, unmarshalRpnSanSummary),
6800
+ totalCount: data.total_count
6801
+ };
6802
+ };
6803
+ const unmarshalRpnServerCapability = data => {
6804
+ if (!isJSONObject(data)) {
6805
+ throw new TypeError(`Unmarshalling the type 'RpnServerCapability' failed as data isn't a dictionary.`);
6806
+ }
6807
+ return {
6808
+ canJoinQinqGroup: data.can_join_qinq_group,
6809
+ canJoinRpnv2Group: data.can_join_rpnv2_group,
6810
+ compatibleQinq: data.compatible_qinq,
6811
+ datacenterName: data.datacenter_name,
6812
+ hostname: data.hostname,
6813
+ id: data.id,
6814
+ ipAddress: data.ip_address,
6815
+ rpnVersion: data.rpn_version,
6816
+ rpnv1GroupCount: data.rpnv1_group_count,
6817
+ rpnv2GroupCount: data.rpnv2_group_count,
6818
+ zone: data.zone
6819
+ };
6820
+ };
6821
+ const unmarshalListRpnServerCapabilitiesResponse = data => {
6822
+ if (!isJSONObject(data)) {
6823
+ throw new TypeError(`Unmarshalling the type 'ListRpnServerCapabilitiesResponse' failed as data isn't a dictionary.`);
6824
+ }
6825
+ return {
6826
+ servers: unmarshalArrayOfObject(data.servers, unmarshalRpnServerCapability),
6827
+ totalCount: data.total_count
6828
+ };
6829
+ };
6830
+ const unmarshalListRpnV2CapableResourcesResponse = data => {
6831
+ if (!isJSONObject(data)) {
6832
+ throw new TypeError(`Unmarshalling the type 'ListRpnV2CapableResourcesResponse' failed as data isn't a dictionary.`);
6833
+ }
6834
+ return {
6835
+ servers: unmarshalArrayOfObject(data.servers, unmarshalServer$1),
6836
+ totalCount: data.total_count
6837
+ };
6838
+ };
6839
+ const unmarshalRpnV2Member = data => {
6840
+ if (!isJSONObject(data)) {
6841
+ throw new TypeError(`Unmarshalling the type 'RpnV2Member' failed as data isn't a dictionary.`);
6842
+ }
6843
+ return {
6844
+ id: data.id,
6845
+ rpnv1Group: data.rpnv1_group ? unmarshalRpnGroup(data.rpnv1_group) : undefined,
6846
+ server: data.server ? unmarshalServer$1(data.server) : undefined,
6847
+ speed: data.speed,
6848
+ status: data.status,
6849
+ vlan: data.vlan
6850
+ };
6851
+ };
6852
+ const unmarshalLog$1 = data => {
6853
+ if (!isJSONObject(data)) {
6854
+ throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
6855
+ }
6856
+ return {
6857
+ action: data.action,
6858
+ createdAt: unmarshalDate(data.created_at),
6859
+ finishedAt: unmarshalDate(data.finished_at),
6860
+ group: data.group ? unmarshalRpnV2Group(data.group) : undefined,
6861
+ id: data.id,
6862
+ member: data.member ? unmarshalRpnV2Member(data.member) : undefined,
6863
+ status: data.status
6864
+ };
6865
+ };
6866
+ const unmarshalListRpnV2GroupLogsResponse = data => {
6867
+ if (!isJSONObject(data)) {
6868
+ throw new TypeError(`Unmarshalling the type 'ListRpnV2GroupLogsResponse' failed as data isn't a dictionary.`);
6869
+ }
6870
+ return {
6871
+ logs: unmarshalArrayOfObject(data.logs, unmarshalLog$1),
6872
+ totalCount: data.total_count
6873
+ };
6874
+ };
6875
+ const unmarshalListRpnV2GroupsResponse = data => {
6876
+ if (!isJSONObject(data)) {
6877
+ throw new TypeError(`Unmarshalling the type 'ListRpnV2GroupsResponse' failed as data isn't a dictionary.`);
6878
+ }
6879
+ return {
6880
+ rpnGroups: unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnV2Group),
6881
+ totalCount: data.total_count
6882
+ };
6883
+ };
6884
+ const unmarshalListRpnV2MembersResponse = data => {
6885
+ if (!isJSONObject(data)) {
6886
+ throw new TypeError(`Unmarshalling the type 'ListRpnV2MembersResponse' failed as data isn't a dictionary.`);
6887
+ }
6888
+ return {
6889
+ members: unmarshalArrayOfObject(data.members, unmarshalRpnV2Member),
6890
+ totalCount: data.total_count
6891
+ };
6892
+ };
6893
+ const unmarshalServerDisk = data => {
6894
+ if (!isJSONObject(data)) {
6895
+ throw new TypeError(`Unmarshalling the type 'ServerDisk' failed as data isn't a dictionary.`);
6896
+ }
6897
+ return {
6898
+ capacity: data.capacity,
6899
+ connector: data.connector,
6900
+ id: data.id,
6901
+ isAddon: data.is_addon,
6902
+ type: data.type
6903
+ };
6904
+ };
6905
+ const unmarshalListServerDisksResponse = data => {
6906
+ if (!isJSONObject(data)) {
6907
+ throw new TypeError(`Unmarshalling the type 'ListServerDisksResponse' failed as data isn't a dictionary.`);
6908
+ }
6909
+ return {
6910
+ disks: unmarshalArrayOfObject(data.disks, unmarshalServerDisk),
6911
+ totalCount: data.total_count
6912
+ };
6913
+ };
6914
+ const unmarshalServerEvent = data => {
6915
+ if (!isJSONObject(data)) {
6916
+ throw new TypeError(`Unmarshalling the type 'ServerEvent' failed as data isn't a dictionary.`);
6917
+ }
6918
+ return {
6919
+ date: unmarshalDate(data.date),
6920
+ description: data.description,
6921
+ eventId: data.event_id
6922
+ };
6923
+ };
6924
+ const unmarshalListServerEventsResponse = data => {
6925
+ if (!isJSONObject(data)) {
6926
+ throw new TypeError(`Unmarshalling the type 'ListServerEventsResponse' failed as data isn't a dictionary.`);
6927
+ }
6928
+ return {
6929
+ events: unmarshalArrayOfObject(data.events, unmarshalServerEvent),
6930
+ totalCount: data.total_count
6931
+ };
6932
+ };
6933
+ const unmarshalServerSummary$1 = data => {
6934
+ if (!isJSONObject(data)) {
6935
+ throw new TypeError(`Unmarshalling the type 'ServerSummary' failed as data isn't a dictionary.`);
6936
+ }
6937
+ return {
6938
+ createdAt: unmarshalDate(data.created_at),
6939
+ datacenterName: data.datacenter_name,
6940
+ expiredAt: unmarshalDate(data.expired_at),
6941
+ hostname: data.hostname,
6942
+ id: data.id,
6943
+ interfaces: unmarshalArrayOfObject(data.interfaces, unmarshalNetworkInterface),
6944
+ isOutsourced: data.is_outsourced,
6945
+ level: data.level ? unmarshalServiceLevel(data.level) : undefined,
6946
+ offerId: data.offer_id,
6947
+ offerName: data.offer_name,
6948
+ organizationId: data.organization_id,
6949
+ osId: data.os_id,
6950
+ projectId: data.project_id,
6951
+ qinq: data.qinq,
6952
+ rpnVersion: data.rpn_version,
6953
+ status: data.status,
6954
+ updatedAt: unmarshalDate(data.updated_at),
6955
+ zone: data.zone
6956
+ };
6957
+ };
6958
+ const unmarshalListServersResponse$1 = data => {
6959
+ if (!isJSONObject(data)) {
6960
+ throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
6961
+ }
6962
+ return {
6963
+ servers: unmarshalArrayOfObject(data.servers, unmarshalServerSummary$1),
6964
+ totalCount: data.total_count
6965
+ };
6966
+ };
6967
+ const unmarshalListServicesResponse = data => {
6968
+ if (!isJSONObject(data)) {
6969
+ throw new TypeError(`Unmarshalling the type 'ListServicesResponse' failed as data isn't a dictionary.`);
6970
+ }
6971
+ return {
6972
+ services: unmarshalArrayOfObject(data.services, unmarshalService),
6973
+ totalCount: data.total_count
6974
+ };
6975
+ };
6976
+ const unmarshalListSubscribableServerOptionsResponse = data => {
6977
+ if (!isJSONObject(data)) {
6978
+ throw new TypeError(`Unmarshalling the type 'ListSubscribableServerOptionsResponse' failed as data isn't a dictionary.`);
6979
+ }
6980
+ return {
6981
+ serverOptions: unmarshalArrayOfObject(data.server_options, unmarshalOffer$1),
6982
+ totalCount: data.total_count
6983
+ };
6984
+ };
6985
+ const unmarshalRaidArray = data => {
6986
+ if (!isJSONObject(data)) {
6987
+ throw new TypeError(`Unmarshalling the type 'RaidArray' failed as data isn't a dictionary.`);
6988
+ }
6989
+ return {
6990
+ disks: unmarshalArrayOfObject(data.disks, unmarshalServerDisk),
6991
+ raidLevel: data.raid_level
6992
+ };
6993
+ };
6994
+ const unmarshalRaid = data => {
6995
+ if (!isJSONObject(data)) {
6996
+ throw new TypeError(`Unmarshalling the type 'Raid' failed as data isn't a dictionary.`);
6997
+ }
6998
+ return {
6999
+ raidArrays: unmarshalArrayOfObject(data.raid_arrays, unmarshalRaidArray)
7000
+ };
7001
+ };
7002
+ const unmarshalRefund = data => {
7003
+ if (!isJSONObject(data)) {
7004
+ throw new TypeError(`Unmarshalling the type 'Refund' failed as data isn't a dictionary.`);
7005
+ }
7006
+ return {
7007
+ content: data.content,
7008
+ createdAt: unmarshalDate(data.created_at),
7009
+ id: data.id,
7010
+ method: data.method,
7011
+ refundedAt: unmarshalDate(data.refunded_at),
7012
+ status: data.status,
7013
+ totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : undefined,
7014
+ totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : undefined
7015
+ };
7016
+ };
7017
+ const unmarshalRescue = data => {
7018
+ if (!isJSONObject(data)) {
7019
+ throw new TypeError(`Unmarshalling the type 'Rescue' failed as data isn't a dictionary.`);
7020
+ }
7021
+ return {
7022
+ login: data.login,
7023
+ osId: data.os_id,
7024
+ password: data.password,
7025
+ protocol: data.protocol
7026
+ };
7027
+ };
7028
+ const unmarshalPartition = data => {
7029
+ if (!isJSONObject(data)) {
7030
+ throw new TypeError(`Unmarshalling the type 'Partition' failed as data isn't a dictionary.`);
7031
+ }
7032
+ return {
7033
+ capacity: data.capacity,
7034
+ connectors: data.connectors,
7035
+ fileSystem: data.file_system,
7036
+ mountPoint: data.mount_point,
7037
+ raidLevel: data.raid_level,
7038
+ type: data.type
7039
+ };
7040
+ };
7041
+ const unmarshalServerDefaultPartitioning = data => {
7042
+ if (!isJSONObject(data)) {
7043
+ throw new TypeError(`Unmarshalling the type 'ServerDefaultPartitioning' failed as data isn't a dictionary.`);
7044
+ }
7045
+ return {
7046
+ partitions: unmarshalArrayOfObject(data.partitions, unmarshalPartition)
7047
+ };
7048
+ };
7049
+ const unmarshalServerInstall = data => {
7050
+ if (!isJSONObject(data)) {
7051
+ throw new TypeError(`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`);
7052
+ }
7053
+ return {
7054
+ hostname: data.hostname,
7055
+ osId: data.os_id,
7056
+ panelUrl: data.panel_url,
7057
+ partitions: unmarshalArrayOfObject(data.partitions, unmarshalPartition),
7058
+ sshKeyIds: data.ssh_key_ids,
7059
+ status: data.status,
7060
+ userLogin: data.user_login
7061
+ };
7062
+ };
7063
+ const unmarshalSubscribeStorageOptionsResponse = data => {
7064
+ if (!isJSONObject(data)) {
7065
+ throw new TypeError(`Unmarshalling the type 'SubscribeStorageOptionsResponse' failed as data isn't a dictionary.`);
7066
+ }
7067
+ return {
7068
+ services: unmarshalArrayOfObject(data.services, unmarshalService)
7069
+ };
7070
+ };
7071
+ const marshalAttachFailoverIPToMacAddressRequest = (request, defaults) => ({
7072
+ mac: request.mac,
7073
+ type: request.type
7074
+ });
7075
+ const marshalAttachFailoverIPsRequest = (request, defaults) => ({
7076
+ fips_ids: request.fipsIds,
7077
+ server_id: request.serverId
7078
+ });
7079
+ const marshalCreateFailoverIPsRequest = (request, defaults) => ({
7080
+ offer_id: request.offerId,
7081
+ project_id: request.projectId ?? defaults.defaultProjectId,
7082
+ quantity: request.quantity
7083
+ });
7084
+ const marshalCreateServerRequest$1 = (request, defaults) => ({
7085
+ datacenter_name: request.datacenterName,
7086
+ offer_id: request.offerId,
7087
+ project_id: request.projectId ?? defaults.defaultProjectId,
7088
+ server_option_ids: request.serverOptionIds
7089
+ });
7090
+ const marshalDetachFailoverIPsRequest = (request, defaults) => ({
7091
+ fips_ids: request.fipsIds
7092
+ });
7093
+ const marshalIPv6BlockApiCreateIPv6BlockRequest = (request, defaults) => ({
7094
+ project_id: request.projectId ?? defaults.defaultProjectId
7095
+ });
7096
+ const marshalIPv6BlockApiCreateIPv6BlockSubnetRequest = (request, defaults) => ({
7097
+ address: request.address,
7098
+ cidr: request.cidr
7099
+ });
7100
+ const marshalIPv6BlockApiUpdateIPv6BlockRequest = (request, defaults) => ({
7101
+ nameservers: request.nameservers
7102
+ });
7103
+ const marshalInstallPartition = (request, defaults) => ({
7104
+ capacity: request.capacity,
7105
+ connectors: request.connectors,
7106
+ file_system: request.fileSystem,
7107
+ mount_point: request.mountPoint,
7108
+ raid_level: request.raidLevel
7109
+ });
7110
+ const marshalInstallServerRequest = (request, defaults) => ({
7111
+ hostname: request.hostname,
7112
+ ip_id: request.ipId,
7113
+ license_offer_id: request.licenseOfferId,
7114
+ os_id: request.osId,
7115
+ panel_password: request.panelPassword,
7116
+ partitions: request.partitions !== undefined ? request.partitions.map(elt => marshalInstallPartition(elt)) : undefined,
7117
+ root_password: request.rootPassword,
7118
+ ssh_key_ids: request.sshKeyIds,
7119
+ user_login: request.userLogin,
7120
+ user_password: request.userPassword
7121
+ });
7122
+ const marshalRpnSanApiAddIpRequest = (request, defaults) => ({
7123
+ ip_ids: request.ipIds
7124
+ });
7125
+ const marshalRpnSanApiCreateRpnSanRequest = (request, defaults) => ({
7126
+ offer_id: request.offerId,
7127
+ project_id: request.projectId ?? defaults.defaultProjectId
7128
+ });
7129
+ const marshalRpnSanApiRemoveIpRequest = (request, defaults) => ({
7130
+ ip_ids: request.ipIds
7131
+ });
7132
+ const marshalRpnV1ApiAddRpnGroupMembersRequest = (request, defaults) => ({
7133
+ san_server_ids: request.sanServerIds,
7134
+ server_ids: request.serverIds
7135
+ });
7136
+ const marshalRpnV1ApiCreateRpnGroupRequest = (request, defaults) => ({
7137
+ name: request.name,
7138
+ project_id: request.projectId ?? defaults.defaultProjectId,
7139
+ san_server_ids: request.sanServerIds,
7140
+ server_ids: request.serverIds
7141
+ });
7142
+ const marshalRpnV1ApiDeleteRpnGroupMembersRequest = (request, defaults) => ({
7143
+ member_ids: request.memberIds
7144
+ });
7145
+ const marshalRpnV1ApiLeaveRpnGroupRequest = (request, defaults) => ({
7146
+ member_ids: request.memberIds,
7147
+ project_id: request.projectId ?? defaults.defaultProjectId
7148
+ });
7149
+ const marshalRpnV1ApiRpnGroupInviteRequest = (request, defaults) => ({
7150
+ project_id: request.projectId ?? defaults.defaultProjectId,
7151
+ server_ids: request.serverIds
7152
+ });
7153
+ const marshalRpnV1ApiUpdateRpnGroupNameRequest = (request, defaults) => ({
7154
+ name: request.name
7155
+ });
7156
+ const marshalRpnV2ApiAddRpnV2MembersRequest = (request, defaults) => ({
7157
+ servers: request.servers
7158
+ });
7159
+ const marshalRpnV2ApiCreateRpnV2GroupRequest = (request, defaults) => ({
7160
+ name: request.name,
7161
+ project_id: request.projectId ?? defaults.defaultProjectId,
7162
+ servers: request.servers,
7163
+ type: request.type
7164
+ });
7165
+ const marshalRpnV2ApiDeleteRpnV2MembersRequest = (request, defaults) => ({
7166
+ member_ids: request.memberIds
7167
+ });
7168
+ const marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest = (request, defaults) => ({
7169
+ rpnv1_group_id: request.rpnv1GroupId
7170
+ });
7171
+ const marshalRpnV2ApiUpdateRpnV2GroupNameRequest = (request, defaults) => ({
7172
+ name: request.name
7173
+ });
7174
+ const marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest = (request, defaults) => ({
7175
+ member_ids: request.memberIds,
7176
+ vlan: request.vlan
7177
+ });
7178
+ const marshalStartBMCAccessRequest = (request, defaults) => ({
7179
+ ip: request.ip
7180
+ });
7181
+ const marshalStartRescueRequest = (request, defaults) => ({
7182
+ os_id: request.osId
7183
+ });
7184
+ const marshalSubscribeServerOptionRequest = (request, defaults) => ({
7185
+ option_id: request.optionId
7186
+ });
7187
+ const marshalSubscribeStorageOptionsRequest = (request, defaults) => ({
7188
+ options_ids: request.optionsIds
7189
+ });
7190
+ const marshalUpdatableRaidArray = (request, defaults) => ({
7191
+ disk_ids: request.diskIds,
7192
+ raid_level: request.raidLevel
7193
+ });
7194
+ const marshalUpdateRaidRequest = (request, defaults) => ({
7195
+ raid_arrays: request.raidArrays.map(elt => marshalUpdatableRaidArray(elt))
7196
+ });
7197
+ const marshalUpdateReverseRequest = (request, defaults) => ({
7198
+ reverse: request.reverse
7199
+ });
7200
+ const marshalUpdateServerBackupRequest = (request, defaults) => ({
7201
+ acl_enabled: request.aclEnabled,
7202
+ autologin: request.autologin,
7203
+ password: request.password
7204
+ });
7205
+ const marshalUpdateServerRequest$1 = (request, defaults) => ({
7206
+ enable_ipv6: request.enableIpv6,
7207
+ hostname: request.hostname
7208
+ });
7209
+ const marshalUpdateServerTagsRequest = (request, defaults) => ({
7210
+ tags: request.tags
7211
+ });
7212
+
7213
+ // This file was automatically generated. DO NOT EDIT.
7214
+ // If you have any remark or suggestion do not hesitate to open an issue.
7215
+ const jsonContentHeaders$q = {
7216
+ 'Content-Type': 'application/json; charset=utf-8'
7217
+ };
7218
+
7219
+ /** Dedibox Phoenix API. */
7220
+ let API$q = class API extends API$z {
7221
+ /** Lists the available zones of the API. */
7222
+ static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
7223
+ pageOfListServers = (request = {}) => this.client.fetch({
7224
+ method: 'GET',
7225
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
7226
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['search', request.search])
7227
+ }, unmarshalListServersResponse$1);
7228
+
7229
+ /**
7230
+ * List baremetal servers for project.
7231
+ *
7232
+ * @param request - The request {@link ListServersRequest}
7233
+ * @returns A Promise of ListServersResponse
7234
+ */
7235
+ listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
7236
+
7237
+ /**
7238
+ * Get a specific baremetal server. Get the server associated with the given
7239
+ * ID.
7240
+ *
7241
+ * @param request - The request {@link GetServerRequest}
7242
+ * @returns A Promise of Server
7243
+ */
7244
+ getServer = request => this.client.fetch({
7245
+ method: 'GET',
7246
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
7247
+ }, unmarshalServer$1);
7248
+
7249
+ /**
7250
+ * Waits for {@link Server} to be in a final state.
7251
+ *
7252
+ * @param request - The request {@link GetServerRequest}
7253
+ * @param options - The waiting options
7254
+ * @returns A Promise of Server
7255
+ */
7256
+ waitForServer = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!SERVER_TRANSIENT_STATUSES$1.includes(res.status))), this.getServer, request, options);
7257
+ getServerBackup = request => this.client.fetch({
7258
+ method: 'GET',
7259
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/backups`
7260
+ }, unmarshalBackup);
7261
+ updateServerBackup = request => this.client.fetch({
7262
+ body: JSON.stringify(marshalUpdateServerBackupRequest(request, this.client.settings)),
7263
+ headers: jsonContentHeaders$q,
7264
+ method: 'PATCH',
7265
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/backups`
7266
+ }, unmarshalBackup);
7267
+ pageOfListSubscribableServerOptions = request => this.client.fetch({
7268
+ method: 'GET',
7269
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/subscribable-server-options`,
7270
+ urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
7271
+ }, unmarshalListSubscribableServerOptionsResponse);
7272
+
7273
+ /**
7274
+ * List subscribable server options. List subscribable options associated to
7275
+ * the given server ID.
7276
+ *
7277
+ * @param request - The request {@link ListSubscribableServerOptionsRequest}
7278
+ * @returns A Promise of ListSubscribableServerOptionsResponse
7279
+ */
7280
+ listSubscribableServerOptions = request => enrichForPagination('serverOptions', this.pageOfListSubscribableServerOptions, request);
7281
+
7282
+ /**
7283
+ * Subscribe server option. Subscribe option for the given server ID.
7284
+ *
7285
+ * @param request - The request {@link SubscribeServerOptionRequest}
7286
+ * @returns A Promise of Service
7287
+ */
7288
+ subscribeServerOption = request => this.client.fetch({
7289
+ body: JSON.stringify(marshalSubscribeServerOptionRequest(request, this.client.settings)),
7290
+ headers: jsonContentHeaders$q,
7291
+ method: 'PATCH',
7292
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/subscribe-server-option`
7293
+ }, unmarshalService);
7294
+
7295
+ /**
7296
+ * Create a baremetal server. Create a new baremetal server. The order return
7297
+ * you a service ID to follow the provisionning status you could call
7298
+ * GetService.
7299
+ *
7300
+ * @param request - The request {@link CreateServerRequest}
7301
+ * @returns A Promise of Service
7302
+ */
7303
+ createServer = request => this.client.fetch({
7304
+ body: JSON.stringify(marshalCreateServerRequest$1(request, this.client.settings)),
7305
+ headers: jsonContentHeaders$q,
7306
+ method: 'POST',
7307
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
7308
+ }, unmarshalService);
7309
+
7310
+ /**
7311
+ * Subscribe storage server option. Subscribe storage option for the given
7312
+ * server ID.
7313
+ *
7314
+ * @param request - The request {@link SubscribeStorageOptionsRequest}
7315
+ * @returns A Promise of SubscribeStorageOptionsResponse
7316
+ */
7317
+ subscribeStorageOptions = request => this.client.fetch({
7318
+ body: JSON.stringify(marshalSubscribeStorageOptionsRequest(request, this.client.settings)),
7319
+ headers: jsonContentHeaders$q,
7320
+ method: 'POST',
7321
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/subscribe-storage-options`
7322
+ }, unmarshalSubscribeStorageOptionsResponse);
7323
+
7324
+ /**
7325
+ * Update a baremetal server. Update the server associated with the given ID.
7326
+ *
7327
+ * @param request - The request {@link UpdateServerRequest}
7328
+ * @returns A Promise of Server
7329
+ */
7330
+ updateServer = request => this.client.fetch({
7331
+ body: JSON.stringify(marshalUpdateServerRequest$1(request, this.client.settings)),
7332
+ headers: jsonContentHeaders$q,
7333
+ method: 'PATCH',
7334
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
7335
+ }, unmarshalServer$1);
7336
+ updateServerTags = request => this.client.fetch({
7337
+ body: JSON.stringify(marshalUpdateServerTagsRequest(request, this.client.settings)),
7338
+ headers: jsonContentHeaders$q,
7339
+ method: 'POST',
7340
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/tags`
7341
+ }, unmarshalServer$1);
7342
+
7343
+ /**
7344
+ * Reboot a baremetal server. Reboot the server associated with the given ID,
7345
+ * use boot param to reboot in rescue.
7346
+ *
7347
+ * @param request - The request {@link RebootServerRequest}
7348
+ */
7349
+ rebootServer = request => this.client.fetch({
7350
+ body: '{}',
7351
+ headers: jsonContentHeaders$q,
7352
+ method: 'POST',
7353
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
7354
+ });
7355
+
7356
+ /**
7357
+ * Start a baremetal server. Start the server associated with the given ID.
7358
+ *
7359
+ * @param request - The request {@link StartServerRequest}
7360
+ */
7361
+ startServer = request => this.client.fetch({
7362
+ body: '{}',
7363
+ headers: jsonContentHeaders$q,
7364
+ method: 'POST',
7365
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
7366
+ });
7367
+
7368
+ /**
7369
+ * Stop a baremetal server. Stop the server associated with the given ID.
7370
+ *
7371
+ * @param request - The request {@link StopServerRequest}
7372
+ */
7373
+ stopServer = request => this.client.fetch({
7374
+ body: '{}',
7375
+ headers: jsonContentHeaders$q,
7376
+ method: 'POST',
7377
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/stop`
7378
+ });
7379
+
7380
+ /**
7381
+ * Delete a baremetal server. Delete the server associated with the given ID.
7382
+ *
7383
+ * @param request - The request {@link DeleteServerRequest}
7384
+ */
7385
+ deleteServer = request => this.client.fetch({
7386
+ method: 'DELETE',
7387
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
7388
+ });
7389
+ pageOfListServerEvents = request => this.client.fetch({
7390
+ method: 'GET',
7391
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/events`,
7392
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
7393
+ }, unmarshalListServerEventsResponse);
7394
+
7395
+ /**
7396
+ * List server events. List events associated to the given server ID.
7397
+ *
7398
+ * @param request - The request {@link ListServerEventsRequest}
7399
+ * @returns A Promise of ListServerEventsResponse
7400
+ */
7401
+ listServerEvents = request => enrichForPagination('events', this.pageOfListServerEvents, request);
7402
+ pageOfListServerDisks = request => this.client.fetch({
7403
+ method: 'GET',
7404
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/disks`,
7405
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
7406
+ }, unmarshalListServerDisksResponse);
7407
+
7408
+ /**
7409
+ * List server disks. List disks associated to the given server ID.
7410
+ *
7411
+ * @param request - The request {@link ListServerDisksRequest}
7412
+ * @returns A Promise of ListServerDisksResponse
7413
+ */
7414
+ listServerDisks = request => enrichForPagination('disks', this.pageOfListServerDisks, request);
7415
+ getOrderedService = request => this.client.fetch({
7416
+ method: 'GET',
7417
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ordered-services/${validatePathParam('orderedServiceId', request.orderedServiceId)}`
7418
+ }, unmarshalService);
7419
+
7420
+ /**
7421
+ * Get a specific service. Get the service associated with the given ID.
7422
+ *
7423
+ * @param request - The request {@link GetServiceRequest}
7424
+ * @returns A Promise of Service
7425
+ */
7426
+ getService = request => this.client.fetch({
7427
+ body: '{}',
7428
+ headers: jsonContentHeaders$q,
7429
+ method: 'PATCH',
7430
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/services/${validatePathParam('serviceId', request.serviceId)}`
7431
+ }, unmarshalService);
7432
+
7433
+ /**
7434
+ * Delete a specific service. Delete the service associated with the given ID.
7435
+ *
7436
+ * @param request - The request {@link DeleteServiceRequest}
7437
+ * @returns A Promise of Service
7438
+ */
7439
+ deleteService = request => this.client.fetch({
7440
+ method: 'DELETE',
7441
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/services/${validatePathParam('serviceId', request.serviceId)}`
7442
+ }, unmarshalService);
7443
+ pageOfListServices = (request = {}) => this.client.fetch({
7444
+ method: 'GET',
7445
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/services`,
7446
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
7447
+ }, unmarshalListServicesResponse);
7448
+
7449
+ /**
7450
+ * List services.
7451
+ *
7452
+ * @param request - The request {@link ListServicesRequest}
7453
+ * @returns A Promise of ListServicesResponse
7454
+ */
7455
+ listServices = (request = {}) => enrichForPagination('services', this.pageOfListServices, request);
7456
+
7457
+ /**
7458
+ * Install a baremetal server. Install an OS on the server associated with the
7459
+ * given ID.
7460
+ *
7461
+ * @param request - The request {@link InstallServerRequest}
7462
+ * @returns A Promise of ServerInstall
7463
+ */
7464
+ installServer = request => this.client.fetch({
7465
+ body: JSON.stringify(marshalInstallServerRequest(request, this.client.settings)),
7466
+ headers: jsonContentHeaders$q,
7467
+ method: 'POST',
7468
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
7469
+ }, unmarshalServerInstall);
7470
+
7471
+ /**
7472
+ * Get a specific server installation status. Get the server installation
7473
+ * status associated with the given server ID.
7474
+ *
7475
+ * @param request - The request {@link GetServerInstallRequest}
7476
+ * @returns A Promise of ServerInstall
7477
+ */
7478
+ getServerInstall = request => this.client.fetch({
7479
+ method: 'GET',
7480
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
7481
+ }, unmarshalServerInstall);
7482
+
7483
+ /**
7484
+ * Waits for {@link ServerInstall} to be in a final state.
7485
+ *
7486
+ * @param request - The request {@link GetServerInstallRequest}
7487
+ * @param options - The waiting options
7488
+ * @returns A Promise of ServerInstall
7489
+ */
7490
+ waitForServerInstall = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!SERVER_INSTALL_TRANSIENT_STATUSES.includes(res.status))), this.getServerInstall, request, options);
7491
+
7492
+ /**
7493
+ * Cancels the current (running) server installation. Cancels the current
7494
+ * server installation associated with the given server ID.
7495
+ *
7496
+ * @param request - The request {@link CancelServerInstallRequest}
7497
+ */
7498
+ cancelServerInstall = request => this.client.fetch({
7499
+ method: 'POST',
7500
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/cancel-install`
7501
+ });
7502
+
7503
+ /**
7504
+ * Get server default partitioning. Get the server default partitioning schema
7505
+ * associated with the given server ID and OS ID.
7506
+ *
7507
+ * @param request - The request {@link GetServerDefaultPartitioningRequest}
7508
+ * @returns A Promise of ServerDefaultPartitioning
7509
+ */
7510
+ getServerDefaultPartitioning = request => this.client.fetch({
7511
+ method: 'GET',
7512
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/partitioning/${validatePathParam('osId', request.osId)}`
7513
+ }, unmarshalServerDefaultPartitioning);
7514
+
7515
+ /**
7516
+ * Start BMC (Baseboard Management Controller) access for a given baremetal
7517
+ * server. Start BMC (Baseboard Management Controller) access associated with
7518
+ * the given ID. The BMC (Baseboard Management Controller) access is available
7519
+ * one hour after the installation of the server.
7520
+ *
7521
+ * @param request - The request {@link StartBMCAccessRequest}
7522
+ */
7523
+ startBMCAccess = request => this.client.fetch({
7524
+ body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
7525
+ headers: jsonContentHeaders$q,
7526
+ method: 'POST',
7527
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
7528
+ });
7529
+
7530
+ /**
7531
+ * Get BMC (Baseboard Management Controller) access for a given baremetal
7532
+ * server. Get the BMC (Baseboard Management Controller) access associated
7533
+ * with the given ID.
7534
+ *
7535
+ * @param request - The request {@link GetBMCAccessRequest}
7536
+ * @returns A Promise of BMCAccess
7537
+ */
7538
+ getBMCAccess = request => this.client.fetch({
7539
+ method: 'GET',
7540
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
7541
+ }, unmarshalBMCAccess);
7542
+
7543
+ /**
7544
+ * Waits for {@link BMCAccess} to be in a final state.
7545
+ *
7546
+ * @param request - The request {@link GetBMCAccessRequest}
7547
+ * @param options - The waiting options
7548
+ * @returns A Promise of BMCAccess
7549
+ */
7550
+ waitForBMCAccess = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status))), this.getBMCAccess, request, options);
7551
+
7552
+ /**
7553
+ * Stop BMC (Baseboard Management Controller) access for a given baremetal
7554
+ * server. Stop BMC (Baseboard Management Controller) access associated with
7555
+ * the given ID.
7556
+ *
7557
+ * @param request - The request {@link StopBMCAccessRequest}
7558
+ */
7559
+ stopBMCAccess = request => this.client.fetch({
7560
+ method: 'DELETE',
7561
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
7562
+ });
7563
+ pageOfListOffers = (request = {}) => this.client.fetch({
7564
+ method: 'GET',
7565
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/offers`,
7566
+ urlParams: urlParams(['available_only', request.availableOnly], ['catalog', request.catalog], ['commercial_range', request.commercialRange], ['is_failover_block', request.isFailoverBlock], ['is_failover_ip', request.isFailoverIp], ['is_rpn_san', request.isRpnSan], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['sold_in', request.soldIn && request.soldIn.length > 0 ? request.soldIn.join(',') : undefined])
7567
+ }, unmarshalListOffersResponse$1);
7568
+
7569
+ /**
7570
+ * List offers. List all available server offers.
7571
+ *
7572
+ * @param request - The request {@link ListOffersRequest}
7573
+ * @returns A Promise of ListOffersResponse
7574
+ */
7575
+ listOffers = (request = {}) => enrichForPagination('offers', this.pageOfListOffers, request);
7576
+
7577
+ /**
7578
+ * Get offer. Return specific offer for the given ID.
7579
+ *
7580
+ * @param request - The request {@link GetOfferRequest}
7581
+ * @returns A Promise of Offer
7582
+ */
7583
+ getOffer = request => this.client.fetch({
7584
+ method: 'GET',
7585
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/offers/${validatePathParam('offerId', request.offerId)}`,
7586
+ urlParams: urlParams(['project_id', request.projectId])
7587
+ }, unmarshalOffer$1);
7588
+ pageOfListOS = request => this.client.fetch({
7589
+ method: 'GET',
7590
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os`,
7591
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['server_id', request.serverId], ['type', request.type])
7592
+ }, unmarshalListOSResponse);
7593
+
7594
+ /**
7595
+ * List all available OS that can be install on a baremetal server.
7596
+ *
7597
+ * @param request - The request {@link ListOSRequest}
7598
+ * @returns A Promise of ListOSResponse
7599
+ */
7600
+ listOS = request => enrichForPagination('os', this.pageOfListOS, request);
7601
+
7602
+ /**
7603
+ * Get an OS with a given ID. Return specific OS for the given ID.
7604
+ *
7605
+ * @param request - The request {@link GetOSRequest}
7606
+ * @returns A Promise of OS
7607
+ */
7608
+ getOS = request => this.client.fetch({
7609
+ method: 'GET',
7610
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os/${validatePathParam('osId', request.osId)}`,
7611
+ urlParams: urlParams(['project_id', request.projectId], ['server_id', request.serverId])
7612
+ }, unmarshalOS);
7613
+
7614
+ /**
7615
+ * Update reverse of ip. Update reverse of ip associated with the given ID.
7616
+ *
7617
+ * @param request - The request {@link UpdateReverseRequest}
7618
+ * @returns A Promise of IP
7619
+ */
7620
+ updateReverse = request => this.client.fetch({
7621
+ body: JSON.stringify(marshalUpdateReverseRequest(request, this.client.settings)),
7622
+ headers: jsonContentHeaders$q,
7623
+ method: 'PATCH',
7624
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/reverses/${validatePathParam('ipId', request.ipId)}`
7625
+ }, unmarshalIP$2);
7626
+
7627
+ /**
7628
+ * Order failover IPs. Order X failover IPs.
7629
+ *
7630
+ * @param request - The request {@link CreateFailoverIPsRequest}
7631
+ * @returns A Promise of CreateFailoverIPsResponse
7632
+ */
7633
+ createFailoverIPs = request => this.client.fetch({
7634
+ body: JSON.stringify(marshalCreateFailoverIPsRequest(request, this.client.settings)),
7635
+ headers: jsonContentHeaders$q,
7636
+ method: 'POST',
7637
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/failover-ips`
7638
+ }, unmarshalCreateFailoverIPsResponse);
7639
+
7640
+ /**
7641
+ * Attach failovers on baremetal server. Attach failovers on the server
7642
+ * associated with the given ID.
7643
+ *
7644
+ * @param request - The request {@link AttachFailoverIPsRequest}
7645
+ */
7646
+ attachFailoverIPs = request => this.client.fetch({
7647
+ body: JSON.stringify(marshalAttachFailoverIPsRequest(request, this.client.settings)),
7648
+ headers: jsonContentHeaders$q,
7649
+ method: 'POST',
7650
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/failover-ips/attach`
7651
+ });
7652
+
7653
+ /**
7654
+ * Detach failovers on baremetal server. Detach failovers on the server
7655
+ * associated with the given ID.
7656
+ *
7657
+ * @param request - The request {@link DetachFailoverIPsRequest}
7658
+ */
7659
+ detachFailoverIPs = request => this.client.fetch({
7660
+ body: JSON.stringify(marshalDetachFailoverIPsRequest(request, this.client.settings)),
7661
+ headers: jsonContentHeaders$q,
7662
+ method: 'POST',
7663
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/failover-ips/detach`
7664
+ });
7665
+
7666
+ /**
7667
+ * Attach a failover IP to a MAC address.
7668
+ *
7669
+ * @param request - The request {@link AttachFailoverIPToMacAddressRequest}
7670
+ * @returns A Promise of IP
7671
+ */
7672
+ attachFailoverIPToMacAddress = request => this.client.fetch({
7673
+ body: JSON.stringify(marshalAttachFailoverIPToMacAddressRequest(request, this.client.settings)),
7674
+ headers: jsonContentHeaders$q,
7675
+ method: 'POST',
7676
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/failover-ips/${validatePathParam('ipId', request.ipId)}/attach-to-mac-address`
7677
+ }, unmarshalIP$2);
7678
+
7679
+ /**
7680
+ * Detach a failover IP from a MAC address.
7681
+ *
7682
+ * @param request - The request {@link DetachFailoverIPFromMacAddressRequest}
7683
+ * @returns A Promise of IP
7684
+ */
7685
+ detachFailoverIPFromMacAddress = request => this.client.fetch({
7686
+ body: '{}',
7687
+ headers: jsonContentHeaders$q,
7688
+ method: 'POST',
7689
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/failover-ips/${validatePathParam('ipId', request.ipId)}/detach-from-mac-address`
7690
+ }, unmarshalIP$2);
7691
+
7692
+ /**
7693
+ * Delete a failover server. Delete the failover associated with the given ID.
7694
+ *
7695
+ * @param request - The request {@link DeleteFailoverIPRequest}
7696
+ */
7697
+ deleteFailoverIP = request => this.client.fetch({
7698
+ method: 'DELETE',
7699
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/failover-ips/${validatePathParam('ipId', request.ipId)}`
7700
+ });
7701
+ pageOfListFailoverIPs = (request = {}) => this.client.fetch({
7702
+ method: 'GET',
7703
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/failover-ips`,
7704
+ urlParams: urlParams(['only_available', request.onlyAvailable], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['search', request.search])
7705
+ }, unmarshalListFailoverIPsResponse);
7706
+
7707
+ /**
7708
+ * List failovers for project. List failovers servers for project.
7709
+ *
7710
+ * @param request - The request {@link ListFailoverIPsRequest}
7711
+ * @returns A Promise of ListFailoverIPsResponse
7712
+ */
7713
+ listFailoverIPs = (request = {}) => enrichForPagination('failoverIps', this.pageOfListFailoverIPs, request);
7714
+
7715
+ /**
7716
+ * Get a specific baremetal server. Get the server associated with the given
7717
+ * ID.
7718
+ *
7719
+ * @param request - The request {@link GetFailoverIPRequest}
7720
+ * @returns A Promise of FailoverIP
7721
+ */
7722
+ getFailoverIP = request => this.client.fetch({
7723
+ method: 'GET',
7724
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/failover-ips/${validatePathParam('ipId', request.ipId)}`
7725
+ }, unmarshalFailoverIP);
7726
+
7727
+ /**
7728
+ * Get remaining quota.
7729
+ *
7730
+ * @param request - The request {@link GetRemainingQuotaRequest}
7731
+ * @returns A Promise of GetRemainingQuotaResponse
7732
+ */
7733
+ getRemainingQuota = (request = {}) => this.client.fetch({
7734
+ method: 'GET',
7735
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/remaining-quota`,
7736
+ urlParams: urlParams(['project_id', request.projectId])
7737
+ }, unmarshalGetRemainingQuotaResponse);
7738
+
7739
+ /**
7740
+ * Get raid. Return raid for the given server ID.
7741
+ *
7742
+ * @param request - The request {@link GetRaidRequest}
7743
+ * @returns A Promise of Raid
7744
+ */
7745
+ getRaid = request => this.client.fetch({
7746
+ method: 'GET',
7747
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/raid`
7748
+ }, unmarshalRaid);
7749
+
7750
+ /**
7751
+ * Update RAID. Update RAID associated with the given server ID.
7752
+ *
7753
+ * @param request - The request {@link UpdateRaidRequest}
7754
+ */
7755
+ updateRaid = request => this.client.fetch({
7756
+ body: JSON.stringify(marshalUpdateRaidRequest(request, this.client.settings)),
7757
+ headers: jsonContentHeaders$q,
7758
+ method: 'POST',
7759
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/update-raid`
7760
+ });
7761
+
7762
+ /**
7763
+ * Start in rescue baremetal server. Start in rescue the server associated
7764
+ * with the given ID.
7765
+ *
7766
+ * @param request - The request {@link StartRescueRequest}
7767
+ * @returns A Promise of Rescue
7768
+ */
7769
+ startRescue = request => this.client.fetch({
7770
+ body: JSON.stringify(marshalStartRescueRequest(request, this.client.settings)),
7771
+ headers: jsonContentHeaders$q,
7772
+ method: 'POST',
7773
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/rescue`
7774
+ }, unmarshalRescue);
7775
+
7776
+ /**
7777
+ * Get rescue information. Return rescue information for the given server ID.
7778
+ *
7779
+ * @param request - The request {@link GetRescueRequest}
7780
+ * @returns A Promise of Rescue
7781
+ */
7782
+ getRescue = request => this.client.fetch({
7783
+ method: 'GET',
7784
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/rescue`
7785
+ }, unmarshalRescue);
7786
+
7787
+ /**
7788
+ * Stop rescue on baremetal server. Stop rescue on the server associated with
7789
+ * the given ID.
7790
+ *
7791
+ * @param request - The request {@link StopRescueRequest}
7792
+ */
7793
+ stopRescue = request => this.client.fetch({
7794
+ method: 'DELETE',
7795
+ path: `/dedibox/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/rescue`
7796
+ });
7797
+ };
7798
+
7799
+ /** Dedibox Phoenix Billing API. */
7800
+ class BillingAPI extends API$z {
7801
+ pageOfListInvoices = (request = {}) => this.client.fetch({
7802
+ method: 'GET',
7803
+ path: `/dedibox/v1/invoices`,
7804
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
7805
+ }, unmarshalListInvoicesResponse);
7806
+ listInvoices = (request = {}) => enrichForPagination('invoices', this.pageOfListInvoices, request);
7807
+ getInvoice = request => this.client.fetch({
7808
+ method: 'GET',
7809
+ path: `/dedibox/v1/invoices/${validatePathParam('invoiceId', request.invoiceId)}`
7810
+ }, unmarshalInvoice);
7811
+ downloadInvoice = request => this.client.fetch({
7812
+ method: 'GET',
7813
+ path: `/dedibox/v1/invoices/${validatePathParam('invoiceId', request.invoiceId)}/download`,
7814
+ urlParams: urlParams(['dl', 1]),
7815
+ responseType: 'blob'
7816
+ });
7817
+ pageOfListRefunds = (request = {}) => this.client.fetch({
7818
+ method: 'GET',
7819
+ path: `/dedibox/v1/refunds`,
7820
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
7821
+ }, unmarshalListRefundsResponse);
7822
+ listRefunds = (request = {}) => enrichForPagination('refunds', this.pageOfListRefunds, request);
7823
+ getRefund = request => this.client.fetch({
7824
+ method: 'GET',
7825
+ path: `/dedibox/v1/refunds/${validatePathParam('refundId', request.refundId)}`
7826
+ }, unmarshalRefund);
7827
+ downloadRefund = request => this.client.fetch({
7828
+ method: 'GET',
7829
+ path: `/dedibox/v1/refunds/${validatePathParam('refundId', request.refundId)}/download`,
7830
+ urlParams: urlParams(['dl', 1]),
7831
+ responseType: 'blob'
7832
+ });
7833
+ canOrder = (request = {}) => this.client.fetch({
7834
+ method: 'GET',
7835
+ path: `/dedibox/v1/can-order`,
7836
+ urlParams: urlParams(['project_id', request.projectId ?? this.client.settings.defaultProjectId])
7837
+ }, unmarshalCanOrderResponse);
7838
+ }
7839
+
7840
+ /** Dedibox Phoenix IPv6 Block API. */
7841
+ class IPv6BlockAPI extends API$z {
7842
+ /**
7843
+ * Get IPv6 block quota. Get IPv6 block quota with the given project ID. /48
7844
+ * one per organization. /56 link to your number of server. /64 link to your
7845
+ * number of failover IP.
7846
+ *
7847
+ * @param request - The request {@link IPv6BlockApiGetIPv6BlockQuotasRequest}
7848
+ * @returns A Promise of GetIPv6BlockQuotasResponse
7849
+ */
7850
+ getIPv6BlockQuotas = (request = {}) => this.client.fetch({
7851
+ method: 'GET',
7852
+ path: `/dedibox/v1/ipv6-block-quotas`,
7853
+ urlParams: urlParams(['project_id', request.projectId])
7854
+ }, unmarshalGetIPv6BlockQuotasResponse);
7855
+
7856
+ /**
7857
+ * Create IPv6 block for baremetal server. Create IPv6 block associated with
7858
+ * the given project ID.
7859
+ *
7860
+ * @param request - The request {@link IPv6BlockApiCreateIPv6BlockRequest}
7861
+ * @returns A Promise of IPv6Block
7862
+ */
7863
+ createIPv6Block = (request = {}) => this.client.fetch({
7864
+ body: JSON.stringify(marshalIPv6BlockApiCreateIPv6BlockRequest(request, this.client.settings)),
7865
+ headers: jsonContentHeaders$q,
7866
+ method: 'POST',
7867
+ path: `/dedibox/v1/ipv6-block`
7868
+ }, unmarshalIPv6Block);
7869
+
7870
+ /**
7871
+ * Get a specific IPv6 block. Get the IPv6 block associated with the given ID.
7872
+ *
7873
+ * @param request - The request {@link IPv6BlockApiGetIPv6BlockRequest}
7874
+ * @returns A Promise of IPv6Block
7875
+ */
7876
+ getIPv6Block = (request = {}) => this.client.fetch({
7877
+ method: 'GET',
7878
+ path: `/dedibox/v1/ipv6-block`,
7879
+ urlParams: urlParams(['project_id', request.projectId])
7880
+ }, unmarshalIPv6Block);
7881
+
7882
+ /**
7883
+ * Update IPv6 block. Update DNS associated to IPv6 block. If DNS is used,
7884
+ * minimum of 2 is necessary and maximum of 5 (no duplicate).
7885
+ *
7886
+ * @param request - The request {@link IPv6BlockApiUpdateIPv6BlockRequest}
7887
+ * @returns A Promise of IPv6Block
7888
+ */
7889
+ updateIPv6Block = request => this.client.fetch({
7890
+ body: JSON.stringify(marshalIPv6BlockApiUpdateIPv6BlockRequest(request, this.client.settings)),
7891
+ headers: jsonContentHeaders$q,
7892
+ method: 'PATCH',
7893
+ path: `/dedibox/v1/ipv6-blocks/${validatePathParam('blockId', request.blockId)}`
7894
+ }, unmarshalIPv6Block);
7895
+
7896
+ /**
7897
+ * Delete IPv6 block. Delete IPv6 block subnet with the given ID.
7898
+ *
7899
+ * @param request - The request {@link IPv6BlockApiDeleteIPv6BlockRequest}
7900
+ */
7901
+ deleteIPv6Block = request => this.client.fetch({
7902
+ method: 'DELETE',
7903
+ path: `/dedibox/v1/ipv6-blocks/${validatePathParam('blockId', request.blockId)}`
7904
+ });
7905
+
7906
+ /**
7907
+ * Create IPv6 block subnet. Create IPv6 block subnet for the given IP ID. /48
7908
+ * could create subnet in /56 (quota link to your number of server). /56 could
7909
+ * create subnet in /64 (quota link to your number of failover IP).
7910
+ *
7911
+ * @param request - The request
7912
+ * {@link IPv6BlockApiCreateIPv6BlockSubnetRequest}
7913
+ * @returns A Promise of IPv6Block
7914
+ */
7915
+ createIPv6BlockSubnet = request => this.client.fetch({
7916
+ body: JSON.stringify(marshalIPv6BlockApiCreateIPv6BlockSubnetRequest(request, this.client.settings)),
7917
+ headers: jsonContentHeaders$q,
7918
+ method: 'POST',
7919
+ path: `/dedibox/v1/ipv6-blocks/${validatePathParam('blockId', request.blockId)}/subnets`
7920
+ }, unmarshalIPv6Block);
7921
+
7922
+ /**
7923
+ * List available IPv6 block subnets. List all available IPv6 block subnets
7924
+ * for given IP ID.
7925
+ *
7926
+ * @param request - The request
7927
+ * {@link IPv6BlockApiListIPv6BlockSubnetsAvailableRequest}
7928
+ * @returns A Promise of ListIPv6BlockSubnetsAvailableResponse
7929
+ */
7930
+ listIPv6BlockSubnetsAvailable = request => this.client.fetch({
7931
+ method: 'GET',
7932
+ path: `/dedibox/v1/ipv6-blocks/${validatePathParam('blockId', request.blockId)}/subnets`
7933
+ }, unmarshalListIPv6BlockSubnetsAvailableResponse);
7934
+ }
7935
+
7936
+ /** Dedibox Phoenix RPN API. */
7937
+ class RpnAPI extends API$z {
7938
+ pageOfListRpnServerCapabilities = (request = {}) => this.client.fetch({
7939
+ method: 'GET',
7940
+ path: `/dedibox/v1/rpn/server-capabilities`,
7941
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
7942
+ }, unmarshalListRpnServerCapabilitiesResponse);
7943
+ listRpnServerCapabilities = (request = {}) => enrichForPagination('servers', this.pageOfListRpnServerCapabilities, request);
7944
+ getRpnStatus = (request = {}) => this.client.fetch({
7945
+ method: 'GET',
7946
+ path: `/dedibox/v1/rpn/status`,
7947
+ urlParams: urlParams(['project_id', request.projectId], ['rpnv1_group_id', request.rpnv1GroupId], ['rpnv2_group_id', request.rpnv2GroupId])
7948
+ }, unmarshalGetRpnStatusResponse);
7949
+ }
7950
+
7951
+ /** Dedibox Phoenix RPN SAN API. */
7952
+ class RpnSanAPI extends API$z {
7953
+ pageOfListRpnSans = (request = {}) => this.client.fetch({
7954
+ method: 'GET',
7955
+ path: `/dedibox/v1/rpn-sans`,
7956
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
7957
+ }, unmarshalListRpnSansResponse);
7958
+ listRpnSans = (request = {}) => enrichForPagination('rpnSans', this.pageOfListRpnSans, request);
7959
+ getRpnSan = request => this.client.fetch({
7960
+ method: 'GET',
7961
+ path: `/dedibox/v1/rpn-sans/${validatePathParam('rpnSanId', request.rpnSanId)}`
7962
+ }, unmarshalRpnSan);
7963
+
7964
+ /**
7965
+ * Waits for {@link RpnSan} to be in a final state.
7966
+ *
7967
+ * @param request - The request {@link RpnSanApiGetRpnSanRequest}
7968
+ * @param options - The waiting options
7969
+ * @returns A Promise of RpnSan
7970
+ */
7971
+ waitForRpnSan = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!RPN_SAN_TRANSIENT_STATUSES.includes(res.status))), this.getRpnSan, request, options);
7972
+ deleteRpnSan = request => this.client.fetch({
7973
+ method: 'DELETE',
7974
+ path: `/dedibox/v1/rpn-sans/${validatePathParam('rpnSanId', request.rpnSanId)}`
7975
+ });
7976
+ createRpnSan = request => this.client.fetch({
7977
+ body: JSON.stringify(marshalRpnSanApiCreateRpnSanRequest(request, this.client.settings)),
7978
+ headers: jsonContentHeaders$q,
7979
+ method: 'POST',
7980
+ path: `/dedibox/v1/rpn-sans`
7981
+ }, unmarshalService);
7982
+ listIps = request => this.client.fetch({
7983
+ method: 'GET',
7984
+ path: `/dedibox/v1/rpn-sans/${validatePathParam('rpnSanId', request.rpnSanId)}/ips`,
7985
+ urlParams: urlParams(['type', request.type])
7986
+ }, unmarshalListIpsResponse$2);
7987
+ addIp = request => this.client.fetch({
7988
+ body: JSON.stringify(marshalRpnSanApiAddIpRequest(request, this.client.settings)),
7989
+ headers: jsonContentHeaders$q,
7990
+ method: 'POST',
7991
+ path: `/dedibox/v1/rpn-sans/${validatePathParam('rpnSanId', request.rpnSanId)}/ips`
7992
+ });
7993
+ removeIp = request => this.client.fetch({
7994
+ body: JSON.stringify(marshalRpnSanApiRemoveIpRequest(request, this.client.settings)),
7995
+ headers: jsonContentHeaders$q,
7996
+ method: 'DELETE',
7997
+ path: `/dedibox/v1/rpn-sans/${validatePathParam('rpnSanId', request.rpnSanId)}/ips`
7998
+ });
7999
+ listAvailableIps = request => this.client.fetch({
8000
+ method: 'GET',
8001
+ path: `/dedibox/v1/rpn-sans/${validatePathParam('rpnSanId', request.rpnSanId)}/available-ips`,
8002
+ urlParams: urlParams(['type', request.type])
8003
+ }, unmarshalListIpsResponse$2);
8004
+ }
8005
+
8006
+ /** Dedibox Phoenix RPN v1 API. */
8007
+ class RpnV1API extends API$z {
8008
+ pageOfListRpnGroups = (request = {}) => this.client.fetch({
8009
+ method: 'GET',
8010
+ path: `/dedibox/v1/rpnv1/groups`,
8011
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
8012
+ }, unmarshalListRpnGroupsResponse);
8013
+ listRpnGroups = (request = {}) => enrichForPagination('rpnGroups', this.pageOfListRpnGroups, request);
8014
+ getRpnGroup = request => this.client.fetch({
8015
+ method: 'GET',
8016
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam('groupId', request.groupId)}`
8017
+ }, unmarshalRpnGroup);
8018
+ createRpnGroup = request => this.client.fetch({
8019
+ body: JSON.stringify(marshalRpnV1ApiCreateRpnGroupRequest(request, this.client.settings)),
8020
+ headers: jsonContentHeaders$q,
8021
+ method: 'POST',
8022
+ path: `/dedibox/v1/rpnv1/groups`
8023
+ }, unmarshalRpnGroup);
8024
+ deleteRpnGroup = request => this.client.fetch({
8025
+ method: 'DELETE',
8026
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam('groupId', request.groupId)}`
8027
+ });
8028
+ updateRpnGroupName = request => this.client.fetch({
8029
+ body: JSON.stringify(marshalRpnV1ApiUpdateRpnGroupNameRequest(request, this.client.settings)),
8030
+ headers: jsonContentHeaders$q,
8031
+ method: 'PATCH',
8032
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam('groupId', request.groupId)}`
8033
+ }, unmarshalRpnGroup);
8034
+ pageOfListRpnGroupMembers = request => this.client.fetch({
8035
+ method: 'GET',
8036
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam('groupId', request.groupId)}/members`,
8037
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
8038
+ }, unmarshalListRpnGroupMembersResponse);
8039
+ listRpnGroupMembers = request => enrichForPagination('members', this.pageOfListRpnGroupMembers, request);
8040
+ rpnGroupInvite = request => this.client.fetch({
8041
+ body: JSON.stringify(marshalRpnV1ApiRpnGroupInviteRequest(request, this.client.settings)),
8042
+ headers: jsonContentHeaders$q,
8043
+ method: 'POST',
8044
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam('groupId', request.groupId)}/invite`
8045
+ });
8046
+ leaveRpnGroup = request => this.client.fetch({
8047
+ body: JSON.stringify(marshalRpnV1ApiLeaveRpnGroupRequest(request, this.client.settings)),
8048
+ headers: jsonContentHeaders$q,
8049
+ method: 'POST',
8050
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam('groupId', request.groupId)}/leave`
8051
+ });
8052
+ addRpnGroupMembers = request => this.client.fetch({
8053
+ body: JSON.stringify(marshalRpnV1ApiAddRpnGroupMembersRequest(request, this.client.settings)),
8054
+ headers: jsonContentHeaders$q,
8055
+ method: 'POST',
8056
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam('groupId', request.groupId)}/members`
8057
+ }, unmarshalRpnGroup);
8058
+ deleteRpnGroupMembers = request => this.client.fetch({
8059
+ body: JSON.stringify(marshalRpnV1ApiDeleteRpnGroupMembersRequest(request, this.client.settings)),
8060
+ headers: jsonContentHeaders$q,
8061
+ method: 'DELETE',
8062
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam('groupId', request.groupId)}/members`
8063
+ }, unmarshalRpnGroup);
8064
+ pageOfListRpnCapableServers = (request = {}) => this.client.fetch({
8065
+ method: 'GET',
8066
+ path: `/dedibox/v1/rpnv1/capable-servers`,
8067
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
8068
+ }, unmarshalListRpnCapableServersResponse);
8069
+ listRpnCapableServers = (request = {}) => enrichForPagination('servers', this.pageOfListRpnCapableServers, request);
8070
+ pageOfListRpnCapableSanServers = (request = {}) => this.client.fetch({
8071
+ method: 'GET',
8072
+ path: `/dedibox/v1/rpnv1/capable-san-servers`,
8073
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
8074
+ }, unmarshalListRpnCapableSanServersResponse);
8075
+ listRpnCapableSanServers = (request = {}) => enrichForPagination('sanServers', this.pageOfListRpnCapableSanServers, request);
8076
+ pageOfListRpnInvites = (request = {}) => this.client.fetch({
8077
+ method: 'GET',
8078
+ path: `/dedibox/v1/rpnv1/invites`,
8079
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
8080
+ }, unmarshalListRpnInvitesResponse);
8081
+ listRpnInvites = (request = {}) => enrichForPagination('members', this.pageOfListRpnInvites, request);
8082
+ acceptRpnInvite = request => this.client.fetch({
8083
+ method: 'POST',
8084
+ path: `/dedibox/v1/rpnv1/invites/${validatePathParam('memberId', request.memberId)}/accept`
8085
+ });
8086
+ refuseRpnInvite = request => this.client.fetch({
8087
+ method: 'POST',
8088
+ path: `/dedibox/v1/rpnv1/invites/${validatePathParam('memberId', request.memberId)}/refuse`
8089
+ });
8090
+ }
8091
+
8092
+ /** Dedibox Phoenix RPN v2 API. */
8093
+ class RpnV2API extends API$z {
8094
+ pageOfListRpnV2Groups = (request = {}) => this.client.fetch({
8095
+ method: 'GET',
8096
+ path: `/dedibox/v1/rpnv2/groups`,
8097
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
8098
+ }, unmarshalListRpnV2GroupsResponse);
8099
+ listRpnV2Groups = (request = {}) => enrichForPagination('rpnGroups', this.pageOfListRpnV2Groups, request);
8100
+ pageOfListRpnV2Members = request => this.client.fetch({
8101
+ method: 'GET',
8102
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}/members`,
8103
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['type', request.type])
8104
+ }, unmarshalListRpnV2MembersResponse);
8105
+ listRpnV2Members = request => enrichForPagination('members', this.pageOfListRpnV2Members, request);
8106
+ getRpnV2Group = request => this.client.fetch({
8107
+ method: 'GET',
8108
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}`
8109
+ }, unmarshalRpnV2Group);
8110
+
8111
+ /**
8112
+ * Waits for {@link RpnV2Group} to be in a final state.
8113
+ *
8114
+ * @param request - The request {@link RpnV2ApiGetRpnV2GroupRequest}
8115
+ * @param options - The waiting options
8116
+ * @returns A Promise of RpnV2Group
8117
+ */
8118
+ waitForRpnV2Group = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!RPN_V2_GROUP_TRANSIENT_STATUSES.includes(res.status))), this.getRpnV2Group, request, options);
8119
+ createRpnV2Group = request => this.client.fetch({
8120
+ body: JSON.stringify(marshalRpnV2ApiCreateRpnV2GroupRequest(request, this.client.settings)),
8121
+ headers: jsonContentHeaders$q,
8122
+ method: 'POST',
8123
+ path: `/dedibox/v1/rpnv2/groups`
8124
+ }, unmarshalRpnV2Group);
8125
+ deleteRpnV2Group = request => this.client.fetch({
8126
+ method: 'DELETE',
8127
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}`
8128
+ });
8129
+ updateRpnV2GroupName = request => this.client.fetch({
8130
+ body: JSON.stringify(marshalRpnV2ApiUpdateRpnV2GroupNameRequest(request, this.client.settings)),
8131
+ headers: jsonContentHeaders$q,
8132
+ method: 'PATCH',
8133
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}`
8134
+ }, unmarshalRpnV2Group);
8135
+ addRpnV2Members = request => this.client.fetch({
8136
+ body: JSON.stringify(marshalRpnV2ApiAddRpnV2MembersRequest(request, this.client.settings)),
8137
+ headers: jsonContentHeaders$q,
8138
+ method: 'POST',
8139
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}/members`
8140
+ });
8141
+ deleteRpnV2Members = request => this.client.fetch({
8142
+ body: JSON.stringify(marshalRpnV2ApiDeleteRpnV2MembersRequest(request, this.client.settings)),
8143
+ headers: jsonContentHeaders$q,
8144
+ method: 'DELETE',
8145
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}/members`
8146
+ });
8147
+ pageOfListRpnV2CapableResources = (request = {}) => this.client.fetch({
8148
+ method: 'GET',
8149
+ path: `/dedibox/v1/rpnv2/groups/capable`,
8150
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
8151
+ }, unmarshalListRpnV2CapableResourcesResponse);
8152
+ listRpnV2CapableResources = (request = {}) => enrichForPagination('servers', this.pageOfListRpnV2CapableResources, request);
8153
+ pageOfListRpnV2GroupLogs = request => this.client.fetch({
8154
+ method: 'GET',
8155
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}/logs`,
8156
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
8157
+ }, unmarshalListRpnV2GroupLogsResponse);
8158
+ listRpnV2GroupLogs = request => enrichForPagination('logs', this.pageOfListRpnV2GroupLogs, request);
8159
+ updateRpnV2VlanForMembers = request => this.client.fetch({
8160
+ body: JSON.stringify(marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest(request, this.client.settings)),
8161
+ headers: jsonContentHeaders$q,
8162
+ method: 'PATCH',
8163
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}/vlan`
8164
+ });
8165
+ enableRpnV2GroupCompatibility = request => this.client.fetch({
8166
+ body: JSON.stringify(marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest(request, this.client.settings)),
8167
+ headers: jsonContentHeaders$q,
8168
+ method: 'POST',
8169
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}/enable-compatibility`
8170
+ });
8171
+ disableRpnV2GroupCompatibility = request => this.client.fetch({
8172
+ body: '{}',
8173
+ headers: jsonContentHeaders$q,
8174
+ method: 'POST',
8175
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam('groupId', request.groupId)}/disable-compatibility`
8176
+ });
8177
+ }
8178
+
8179
+ // This file was automatically generated. DO NOT EDIT.
8180
+ // If you have any remark or suggestion do not hesitate to open an issue.
8181
+
8182
+ const AttachFailoverIPToMacAddressRequest = {
8183
+ ipId: {
8184
+ greaterThan: 0
8185
+ }
8186
+ };
8187
+ const AttachFailoverIPsRequest = {
8188
+ serverId: {
8189
+ greaterThan: 0
8190
+ }
8191
+ };
8192
+ const BillingApiDownloadInvoiceRequest = {
8193
+ invoiceId: {
8194
+ greaterThan: 0
8195
+ }
8196
+ };
8197
+ const BillingApiDownloadRefundRequest = {
8198
+ refundId: {
8199
+ greaterThan: 0
8200
+ }
8201
+ };
8202
+ const BillingApiGetInvoiceRequest = {
8203
+ invoiceId: {
8204
+ greaterThan: 0
8205
+ }
8206
+ };
8207
+ const BillingApiGetRefundRequest = {
8208
+ refundId: {
8209
+ greaterThan: 0
8210
+ }
8211
+ };
8212
+ const BillingApiListInvoicesRequest = {
8213
+ page: {
8214
+ greaterThan: 0
8215
+ },
8216
+ pageSize: {
8217
+ greaterThan: 0,
8218
+ lessThanOrEqual: 100
8219
+ }
8220
+ };
8221
+ const BillingApiListRefundsRequest = {
8222
+ page: {
8223
+ greaterThan: 0
8224
+ },
8225
+ pageSize: {
8226
+ greaterThan: 0,
8227
+ lessThanOrEqual: 100
8228
+ }
8229
+ };
8230
+ const CancelServerInstallRequest = {
8231
+ serverId: {
8232
+ greaterThan: 0
8233
+ }
8234
+ };
8235
+ const DeleteFailoverIPRequest = {
8236
+ ipId: {
8237
+ greaterThan: 0
8238
+ }
8239
+ };
8240
+ const DeleteServerRequest = {
8241
+ serverId: {
8242
+ greaterThan: 0
8243
+ }
8244
+ };
8245
+ const DeleteServiceRequest = {
8246
+ serviceId: {
8247
+ greaterThan: 0
8248
+ }
8249
+ };
8250
+ const DetachFailoverIPFromMacAddressRequest = {
8251
+ ipId: {
8252
+ greaterThan: 0
8253
+ }
8254
+ };
8255
+ const GetBMCAccessRequest = {
8256
+ serverId: {
8257
+ greaterThan: 0
8258
+ }
8259
+ };
8260
+ const GetFailoverIPRequest = {
8261
+ ipId: {
8262
+ greaterThan: 0
8263
+ }
8264
+ };
8265
+ const GetOSRequest = {
8266
+ osId: {
8267
+ greaterThan: 0
8268
+ },
8269
+ serverId: {
8270
+ greaterThan: 0
8271
+ }
8272
+ };
8273
+ const GetOfferRequest = {
8274
+ offerId: {
8275
+ greaterThan: 0
8276
+ }
8277
+ };
8278
+ const GetOrderedServiceRequest = {
8279
+ orderedServiceId: {
8280
+ greaterThan: 0
8281
+ }
8282
+ };
8283
+ const GetRaidRequest = {
8284
+ serverId: {
8285
+ greaterThan: 0
8286
+ }
8287
+ };
8288
+ const GetRescueRequest = {
8289
+ serverId: {
8290
+ greaterThan: 0
8291
+ }
8292
+ };
8293
+ const GetServerBackupRequest = {
8294
+ serverId: {
8295
+ greaterThan: 0
8296
+ }
8297
+ };
8298
+ const GetServerInstallRequest = {
8299
+ serverId: {
8300
+ greaterThan: 0
8301
+ }
8302
+ };
8303
+ const GetServerRequest = {
8304
+ serverId: {
8305
+ greaterThan: 0
8306
+ }
8307
+ };
8308
+ const GetServiceRequest = {
8309
+ serviceId: {
8310
+ greaterThan: 0
8311
+ }
8312
+ };
8313
+ const IPv6Block = {
8314
+ id: {
8315
+ greaterThan: 0
8316
+ }
8317
+ };
8318
+ const IPv6BlockApiCreateIPv6BlockSubnetRequest = {
8319
+ blockId: {
8320
+ greaterThan: 0
8321
+ }
8322
+ };
8323
+ const IPv6BlockApiDeleteIPv6BlockRequest = {
8324
+ blockId: {
8325
+ greaterThan: 0
8326
+ }
8327
+ };
8328
+ const IPv6BlockApiListIPv6BlockSubnetsAvailableRequest = {
8329
+ blockId: {
8330
+ greaterThan: 0
8331
+ }
8332
+ };
8333
+ const IPv6BlockApiUpdateIPv6BlockRequest = {
8334
+ blockId: {
8335
+ greaterThan: 0
8336
+ }
8337
+ };
8338
+ const InstallServerRequest = {
8339
+ osId: {
8340
+ greaterThan: 0
8341
+ },
8342
+ serverId: {
8343
+ greaterThan: 0
8344
+ }
8345
+ };
8346
+ const ListFailoverIPsRequest = {
8347
+ page: {
8348
+ greaterThan: 0
8349
+ },
8350
+ pageSize: {
8351
+ greaterThan: 0,
8352
+ lessThanOrEqual: 100
8353
+ }
8354
+ };
8355
+ const ListOSRequest = {
8356
+ page: {
8357
+ greaterThan: 0
8358
+ },
8359
+ pageSize: {
8360
+ greaterThan: 0,
8361
+ lessThanOrEqual: 100
8362
+ },
8363
+ serverId: {
8364
+ greaterThan: 0
8365
+ }
8366
+ };
8367
+ const ListOffersRequest = {
8368
+ page: {
8369
+ greaterThan: 0
8370
+ },
8371
+ pageSize: {
8372
+ greaterThan: 0,
8373
+ lessThanOrEqual: 100
8374
+ }
8375
+ };
8376
+ const ListServerDisksRequest = {
8377
+ page: {
8378
+ greaterThan: 0
8379
+ },
8380
+ pageSize: {
8381
+ greaterThan: 0,
8382
+ lessThanOrEqual: 100
8383
+ },
8384
+ serverId: {
8385
+ greaterThan: 0
8386
+ }
8387
+ };
8388
+ const ListServerEventsRequest = {
8389
+ page: {
8390
+ greaterThan: 0
8391
+ },
8392
+ pageSize: {
8393
+ greaterThan: 0,
8394
+ lessThanOrEqual: 100
8395
+ },
8396
+ serverId: {
8397
+ greaterThan: 0
8398
+ }
8399
+ };
8400
+ const ListServersRequest = {
8401
+ page: {
8402
+ greaterThan: 0
8403
+ },
8404
+ pageSize: {
8405
+ greaterThan: 0,
8406
+ lessThanOrEqual: 100
8407
+ }
8408
+ };
8409
+ const ListServicesRequest = {
8410
+ page: {
8411
+ greaterThan: 0
8412
+ },
8413
+ pageSize: {
8414
+ greaterThan: 0,
8415
+ lessThanOrEqual: 100
8416
+ }
8417
+ };
8418
+ const ListSubscribableServerOptionsRequest = {
8419
+ page: {
8420
+ greaterThan: 0
8421
+ },
8422
+ pageSize: {
8423
+ greaterThan: 0,
8424
+ lessThanOrEqual: 100
8425
+ },
8426
+ serverId: {
8427
+ greaterThan: 0
8428
+ }
8429
+ };
8430
+ const RebootServerRequest = {
8431
+ serverId: {
8432
+ greaterThan: 0
8433
+ }
8434
+ };
8435
+ const RpnApiListRpnServerCapabilitiesRequest = {
8436
+ page: {
8437
+ greaterThan: 0
5925
8438
  },
5926
- name: {
5927
- maxLength: 50,
5928
- minLength: 1
8439
+ pageSize: {
8440
+ greaterThan: 0,
8441
+ lessThanOrEqual: 100
5929
8442
  }
5930
8443
  };
5931
- const CreateTriggerRequestMnqNatsClientConfig$1 = {
5932
- mnqRegion: {
5933
- maxLength: 20,
5934
- minLength: 1
8444
+ const RpnSanApiAddIpRequest = {
8445
+ rpnSanId: {
8446
+ greaterThan: 0
8447
+ }
8448
+ };
8449
+ const RpnSanApiDeleteRpnSanRequest = {
8450
+ rpnSanId: {
8451
+ greaterThan: 0
8452
+ }
8453
+ };
8454
+ const RpnSanApiGetRpnSanRequest = {
8455
+ rpnSanId: {
8456
+ greaterThan: 0
8457
+ }
8458
+ };
8459
+ const RpnSanApiListAvailableIpsRequest = {
8460
+ rpnSanId: {
8461
+ greaterThan: 0
8462
+ }
8463
+ };
8464
+ const RpnSanApiListIpsRequest = {
8465
+ rpnSanId: {
8466
+ greaterThan: 0
8467
+ }
8468
+ };
8469
+ const RpnSanApiListRpnSansRequest = {
8470
+ page: {
8471
+ greaterThan: 0
5935
8472
  },
5936
- subject: {
5937
- maxLength: 100,
5938
- minLength: 1,
5939
- pattern: /^[^\s]+$/
8473
+ pageSize: {
8474
+ greaterThan: 0,
8475
+ lessThanOrEqual: 100
5940
8476
  }
5941
8477
  };
5942
- const CreateTriggerRequestMnqSqsClientConfig$1 = {
5943
- mnqRegion: {
5944
- maxLength: 20,
5945
- minLength: 1
8478
+ const RpnSanApiRemoveIpRequest = {
8479
+ rpnSanId: {
8480
+ greaterThan: 0
8481
+ }
8482
+ };
8483
+ const RpnV1ApiAcceptRpnInviteRequest = {
8484
+ memberId: {
8485
+ greaterThan: 0
8486
+ }
8487
+ };
8488
+ const RpnV1ApiAddRpnGroupMembersRequest = {
8489
+ groupId: {
8490
+ greaterThan: 0
8491
+ }
8492
+ };
8493
+ const RpnV1ApiDeleteRpnGroupMembersRequest = {
8494
+ groupId: {
8495
+ greaterThan: 0
8496
+ }
8497
+ };
8498
+ const RpnV1ApiDeleteRpnGroupRequest = {
8499
+ groupId: {
8500
+ greaterThan: 0
8501
+ }
8502
+ };
8503
+ const RpnV1ApiGetRpnGroupRequest = {
8504
+ groupId: {
8505
+ greaterThan: 0
8506
+ }
8507
+ };
8508
+ const RpnV1ApiLeaveRpnGroupRequest = {
8509
+ groupId: {
8510
+ greaterThan: 0
8511
+ }
8512
+ };
8513
+ const RpnV1ApiListRpnCapableSanServersRequest = {
8514
+ page: {
8515
+ greaterThan: 0
5946
8516
  },
5947
- queue: {
5948
- maxLength: 100,
5949
- minLength: 1
8517
+ pageSize: {
8518
+ greaterThan: 0,
8519
+ lessThanOrEqual: 100
5950
8520
  }
5951
8521
  };
5952
- const UpdateTriggerRequest$1 = {
5953
- description: {
5954
- maxLength: 255
8522
+ const RpnV1ApiListRpnCapableServersRequest = {
8523
+ page: {
8524
+ greaterThan: 0
5955
8525
  },
5956
- name: {
5957
- maxLength: 50,
5958
- minLength: 1
8526
+ pageSize: {
8527
+ greaterThan: 0,
8528
+ lessThanOrEqual: 100
8529
+ }
8530
+ };
8531
+ const RpnV1ApiListRpnGroupMembersRequest = {
8532
+ groupId: {
8533
+ greaterThan: 0
8534
+ },
8535
+ page: {
8536
+ greaterThan: 0
8537
+ },
8538
+ pageSize: {
8539
+ greaterThan: 0,
8540
+ lessThanOrEqual: 100
8541
+ }
8542
+ };
8543
+ const RpnV1ApiListRpnGroupsRequest = {
8544
+ page: {
8545
+ greaterThan: 0
8546
+ },
8547
+ pageSize: {
8548
+ greaterThan: 0,
8549
+ lessThanOrEqual: 100
8550
+ }
8551
+ };
8552
+ const RpnV1ApiListRpnInvitesRequest = {
8553
+ page: {
8554
+ greaterThan: 0
8555
+ },
8556
+ pageSize: {
8557
+ greaterThan: 0,
8558
+ lessThanOrEqual: 100
8559
+ }
8560
+ };
8561
+ const RpnV1ApiRefuseRpnInviteRequest = {
8562
+ memberId: {
8563
+ greaterThan: 0
8564
+ }
8565
+ };
8566
+ const RpnV1ApiRpnGroupInviteRequest = {
8567
+ groupId: {
8568
+ greaterThan: 0
8569
+ }
8570
+ };
8571
+ const RpnV1ApiUpdateRpnGroupNameRequest = {
8572
+ groupId: {
8573
+ greaterThan: 0
8574
+ }
8575
+ };
8576
+ const RpnV2ApiAddRpnV2MembersRequest = {
8577
+ groupId: {
8578
+ greaterThan: 0
8579
+ }
8580
+ };
8581
+ const RpnV2ApiDeleteRpnV2GroupRequest = {
8582
+ groupId: {
8583
+ greaterThan: 0
8584
+ }
8585
+ };
8586
+ const RpnV2ApiDeleteRpnV2MembersRequest = {
8587
+ groupId: {
8588
+ greaterThan: 0
8589
+ }
8590
+ };
8591
+ const RpnV2ApiDisableRpnV2GroupCompatibilityRequest = {
8592
+ groupId: {
8593
+ greaterThan: 0
8594
+ }
8595
+ };
8596
+ const RpnV2ApiEnableRpnV2GroupCompatibilityRequest = {
8597
+ groupId: {
8598
+ greaterThan: 0
8599
+ }
8600
+ };
8601
+ const RpnV2ApiGetRpnV2GroupRequest = {
8602
+ groupId: {
8603
+ greaterThan: 0
8604
+ }
8605
+ };
8606
+ const RpnV2ApiListRpnV2CapableResourcesRequest = {
8607
+ page: {
8608
+ greaterThan: 0
8609
+ },
8610
+ pageSize: {
8611
+ greaterThan: 0,
8612
+ lessThanOrEqual: 100
8613
+ }
8614
+ };
8615
+ const RpnV2ApiListRpnV2GroupLogsRequest = {
8616
+ groupId: {
8617
+ greaterThan: 0
8618
+ },
8619
+ page: {
8620
+ greaterThan: 0
8621
+ },
8622
+ pageSize: {
8623
+ greaterThan: 0,
8624
+ lessThanOrEqual: 100
8625
+ }
8626
+ };
8627
+ const RpnV2ApiListRpnV2GroupsRequest = {
8628
+ page: {
8629
+ greaterThan: 0
8630
+ },
8631
+ pageSize: {
8632
+ greaterThan: 0,
8633
+ lessThanOrEqual: 100
8634
+ }
8635
+ };
8636
+ const RpnV2ApiListRpnV2MembersRequest = {
8637
+ groupId: {
8638
+ greaterThan: 0
8639
+ },
8640
+ page: {
8641
+ greaterThan: 0
8642
+ },
8643
+ pageSize: {
8644
+ greaterThan: 0,
8645
+ lessThanOrEqual: 100
8646
+ }
8647
+ };
8648
+ const RpnV2ApiUpdateRpnV2GroupNameRequest = {
8649
+ groupId: {
8650
+ greaterThan: 0
8651
+ }
8652
+ };
8653
+ const RpnV2ApiUpdateRpnV2VlanForMembersRequest = {
8654
+ groupId: {
8655
+ greaterThan: 0
8656
+ }
8657
+ };
8658
+ const StartRescueRequest = {
8659
+ serverId: {
8660
+ greaterThan: 0
8661
+ }
8662
+ };
8663
+ const StartServerRequest = {
8664
+ serverId: {
8665
+ greaterThan: 0
8666
+ }
8667
+ };
8668
+ const StopBMCAccessRequest = {
8669
+ serverId: {
8670
+ greaterThan: 0
8671
+ }
8672
+ };
8673
+ const StopRescueRequest = {
8674
+ serverId: {
8675
+ greaterThan: 0
8676
+ }
8677
+ };
8678
+ const StopServerRequest = {
8679
+ serverId: {
8680
+ greaterThan: 0
8681
+ }
8682
+ };
8683
+ const SubscribeServerOptionRequest = {
8684
+ optionId: {
8685
+ greaterThan: 0
8686
+ },
8687
+ serverId: {
8688
+ greaterThan: 0
8689
+ }
8690
+ };
8691
+ const SubscribeStorageOptionsRequest = {
8692
+ serverId: {
8693
+ greaterThan: 0
8694
+ }
8695
+ };
8696
+ const UpdateRaidRequest = {
8697
+ serverId: {
8698
+ greaterThan: 0
8699
+ }
8700
+ };
8701
+ const UpdateReverseRequest = {
8702
+ ipId: {
8703
+ greaterThan: 0
8704
+ }
8705
+ };
8706
+ const UpdateServerBackupRequest = {
8707
+ serverId: {
8708
+ greaterThan: 0
8709
+ }
8710
+ };
8711
+ const UpdateServerRequest = {
8712
+ serverId: {
8713
+ greaterThan: 0
8714
+ }
8715
+ };
8716
+ const UpdateServerTagsRequest = {
8717
+ serverId: {
8718
+ greaterThan: 0
5959
8719
  }
5960
8720
  };
5961
8721
 
5962
8722
  var validationRules_gen$c = /*#__PURE__*/Object.freeze({
5963
8723
  __proto__: null,
5964
- CreateTriggerRequest: CreateTriggerRequest$1,
5965
- CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig$1,
5966
- CreateTriggerRequestMnqSqsClientConfig: CreateTriggerRequestMnqSqsClientConfig$1,
5967
- UpdateTriggerRequest: UpdateTriggerRequest$1
8724
+ AttachFailoverIPToMacAddressRequest: AttachFailoverIPToMacAddressRequest,
8725
+ AttachFailoverIPsRequest: AttachFailoverIPsRequest,
8726
+ BillingApiDownloadInvoiceRequest: BillingApiDownloadInvoiceRequest,
8727
+ BillingApiDownloadRefundRequest: BillingApiDownloadRefundRequest,
8728
+ BillingApiGetInvoiceRequest: BillingApiGetInvoiceRequest,
8729
+ BillingApiGetRefundRequest: BillingApiGetRefundRequest,
8730
+ BillingApiListInvoicesRequest: BillingApiListInvoicesRequest,
8731
+ BillingApiListRefundsRequest: BillingApiListRefundsRequest,
8732
+ CancelServerInstallRequest: CancelServerInstallRequest,
8733
+ DeleteFailoverIPRequest: DeleteFailoverIPRequest,
8734
+ DeleteServerRequest: DeleteServerRequest,
8735
+ DeleteServiceRequest: DeleteServiceRequest,
8736
+ DetachFailoverIPFromMacAddressRequest: DetachFailoverIPFromMacAddressRequest,
8737
+ GetBMCAccessRequest: GetBMCAccessRequest,
8738
+ GetFailoverIPRequest: GetFailoverIPRequest,
8739
+ GetOSRequest: GetOSRequest,
8740
+ GetOfferRequest: GetOfferRequest,
8741
+ GetOrderedServiceRequest: GetOrderedServiceRequest,
8742
+ GetRaidRequest: GetRaidRequest,
8743
+ GetRescueRequest: GetRescueRequest,
8744
+ GetServerBackupRequest: GetServerBackupRequest,
8745
+ GetServerInstallRequest: GetServerInstallRequest,
8746
+ GetServerRequest: GetServerRequest,
8747
+ GetServiceRequest: GetServiceRequest,
8748
+ IPv6Block: IPv6Block,
8749
+ IPv6BlockApiCreateIPv6BlockSubnetRequest: IPv6BlockApiCreateIPv6BlockSubnetRequest,
8750
+ IPv6BlockApiDeleteIPv6BlockRequest: IPv6BlockApiDeleteIPv6BlockRequest,
8751
+ IPv6BlockApiListIPv6BlockSubnetsAvailableRequest: IPv6BlockApiListIPv6BlockSubnetsAvailableRequest,
8752
+ IPv6BlockApiUpdateIPv6BlockRequest: IPv6BlockApiUpdateIPv6BlockRequest,
8753
+ InstallServerRequest: InstallServerRequest,
8754
+ ListFailoverIPsRequest: ListFailoverIPsRequest,
8755
+ ListOSRequest: ListOSRequest,
8756
+ ListOffersRequest: ListOffersRequest,
8757
+ ListServerDisksRequest: ListServerDisksRequest,
8758
+ ListServerEventsRequest: ListServerEventsRequest,
8759
+ ListServersRequest: ListServersRequest,
8760
+ ListServicesRequest: ListServicesRequest,
8761
+ ListSubscribableServerOptionsRequest: ListSubscribableServerOptionsRequest,
8762
+ RebootServerRequest: RebootServerRequest,
8763
+ RpnApiListRpnServerCapabilitiesRequest: RpnApiListRpnServerCapabilitiesRequest,
8764
+ RpnSanApiAddIpRequest: RpnSanApiAddIpRequest,
8765
+ RpnSanApiDeleteRpnSanRequest: RpnSanApiDeleteRpnSanRequest,
8766
+ RpnSanApiGetRpnSanRequest: RpnSanApiGetRpnSanRequest,
8767
+ RpnSanApiListAvailableIpsRequest: RpnSanApiListAvailableIpsRequest,
8768
+ RpnSanApiListIpsRequest: RpnSanApiListIpsRequest,
8769
+ RpnSanApiListRpnSansRequest: RpnSanApiListRpnSansRequest,
8770
+ RpnSanApiRemoveIpRequest: RpnSanApiRemoveIpRequest,
8771
+ RpnV1ApiAcceptRpnInviteRequest: RpnV1ApiAcceptRpnInviteRequest,
8772
+ RpnV1ApiAddRpnGroupMembersRequest: RpnV1ApiAddRpnGroupMembersRequest,
8773
+ RpnV1ApiDeleteRpnGroupMembersRequest: RpnV1ApiDeleteRpnGroupMembersRequest,
8774
+ RpnV1ApiDeleteRpnGroupRequest: RpnV1ApiDeleteRpnGroupRequest,
8775
+ RpnV1ApiGetRpnGroupRequest: RpnV1ApiGetRpnGroupRequest,
8776
+ RpnV1ApiLeaveRpnGroupRequest: RpnV1ApiLeaveRpnGroupRequest,
8777
+ RpnV1ApiListRpnCapableSanServersRequest: RpnV1ApiListRpnCapableSanServersRequest,
8778
+ RpnV1ApiListRpnCapableServersRequest: RpnV1ApiListRpnCapableServersRequest,
8779
+ RpnV1ApiListRpnGroupMembersRequest: RpnV1ApiListRpnGroupMembersRequest,
8780
+ RpnV1ApiListRpnGroupsRequest: RpnV1ApiListRpnGroupsRequest,
8781
+ RpnV1ApiListRpnInvitesRequest: RpnV1ApiListRpnInvitesRequest,
8782
+ RpnV1ApiRefuseRpnInviteRequest: RpnV1ApiRefuseRpnInviteRequest,
8783
+ RpnV1ApiRpnGroupInviteRequest: RpnV1ApiRpnGroupInviteRequest,
8784
+ RpnV1ApiUpdateRpnGroupNameRequest: RpnV1ApiUpdateRpnGroupNameRequest,
8785
+ RpnV2ApiAddRpnV2MembersRequest: RpnV2ApiAddRpnV2MembersRequest,
8786
+ RpnV2ApiDeleteRpnV2GroupRequest: RpnV2ApiDeleteRpnV2GroupRequest,
8787
+ RpnV2ApiDeleteRpnV2MembersRequest: RpnV2ApiDeleteRpnV2MembersRequest,
8788
+ RpnV2ApiDisableRpnV2GroupCompatibilityRequest: RpnV2ApiDisableRpnV2GroupCompatibilityRequest,
8789
+ RpnV2ApiEnableRpnV2GroupCompatibilityRequest: RpnV2ApiEnableRpnV2GroupCompatibilityRequest,
8790
+ RpnV2ApiGetRpnV2GroupRequest: RpnV2ApiGetRpnV2GroupRequest,
8791
+ RpnV2ApiListRpnV2CapableResourcesRequest: RpnV2ApiListRpnV2CapableResourcesRequest,
8792
+ RpnV2ApiListRpnV2GroupLogsRequest: RpnV2ApiListRpnV2GroupLogsRequest,
8793
+ RpnV2ApiListRpnV2GroupsRequest: RpnV2ApiListRpnV2GroupsRequest,
8794
+ RpnV2ApiListRpnV2MembersRequest: RpnV2ApiListRpnV2MembersRequest,
8795
+ RpnV2ApiUpdateRpnV2GroupNameRequest: RpnV2ApiUpdateRpnV2GroupNameRequest,
8796
+ RpnV2ApiUpdateRpnV2VlanForMembersRequest: RpnV2ApiUpdateRpnV2VlanForMembersRequest,
8797
+ StartRescueRequest: StartRescueRequest,
8798
+ StartServerRequest: StartServerRequest,
8799
+ StopBMCAccessRequest: StopBMCAccessRequest,
8800
+ StopRescueRequest: StopRescueRequest,
8801
+ StopServerRequest: StopServerRequest,
8802
+ SubscribeServerOptionRequest: SubscribeServerOptionRequest,
8803
+ SubscribeStorageOptionsRequest: SubscribeStorageOptionsRequest,
8804
+ UpdateRaidRequest: UpdateRaidRequest,
8805
+ UpdateReverseRequest: UpdateReverseRequest,
8806
+ UpdateServerBackupRequest: UpdateServerBackupRequest,
8807
+ UpdateServerRequest: UpdateServerRequest,
8808
+ UpdateServerTagsRequest: UpdateServerTagsRequest
5968
8809
  });
5969
8810
 
5970
8811
  // This file was automatically generated. DO NOT EDIT.
@@ -5973,18 +8814,27 @@ var validationRules_gen$c = /*#__PURE__*/Object.freeze({
5973
8814
  var index_gen$p = /*#__PURE__*/Object.freeze({
5974
8815
  __proto__: null,
5975
8816
  API: API$q,
5976
- CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
5977
- CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
5978
- DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
5979
- NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$2,
5980
- TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1,
5981
- TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1,
8817
+ BMC_ACCESS_TRANSIENT_STATUSES: BMC_ACCESS_TRANSIENT_STATUSES,
8818
+ BillingAPI: BillingAPI,
8819
+ IPv6BlockAPI: IPv6BlockAPI,
8820
+ I_PV6_BLOCK_DELEGATION_TRANSIENT_STATUSES: I_PV6_BLOCK_DELEGATION_TRANSIENT_STATUSES,
8821
+ RPN_GROUP_MEMBER_TRANSIENT_STATUSES: RPN_GROUP_MEMBER_TRANSIENT_STATUSES,
8822
+ RPN_SAN_TRANSIENT_STATUSES: RPN_SAN_TRANSIENT_STATUSES,
8823
+ RPN_V2_GROUP_TRANSIENT_STATUSES: RPN_V2_GROUP_TRANSIENT_STATUSES,
8824
+ RPN_V2_MEMBER_TRANSIENT_STATUSES: RPN_V2_MEMBER_TRANSIENT_STATUSES,
8825
+ RpnAPI: RpnAPI,
8826
+ RpnSanAPI: RpnSanAPI,
8827
+ RpnV1API: RpnV1API,
8828
+ RpnV2API: RpnV2API,
8829
+ SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES,
8830
+ SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$1,
8831
+ SERVICE_PROVISIONING_TRANSIENT_STATUSES: SERVICE_PROVISIONING_TRANSIENT_STATUSES,
5982
8832
  ValidationRules: validationRules_gen$c
5983
8833
  });
5984
8834
 
5985
8835
  var index$s = /*#__PURE__*/Object.freeze({
5986
8836
  __proto__: null,
5987
- v1beta1: index_gen$p
8837
+ v1: index_gen$p
5988
8838
  });
5989
8839
 
5990
8840
  // This file was automatically generated. DO NOT EDIT.
@@ -6662,7 +9512,7 @@ const jsonContentHeaders$p = {
6662
9512
  };
6663
9513
 
6664
9514
  /** Managed Document Databases API. */
6665
- let API$p = class API extends API$y {
9515
+ let API$p = class API extends API$z {
6666
9516
  /** Lists the available regions of the API. */
6667
9517
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
6668
9518
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -8688,7 +11538,7 @@ const jsonContentHeaders$o = {
8688
11538
  *
8689
11539
  * Manage your domains, DNS zones and records with the Domains and DNS API.
8690
11540
  */
8691
- let API$o = class API extends API$y {
11541
+ let API$o = class API extends API$z {
8692
11542
  pageOfListDNSZones = request => this.client.fetch({
8693
11543
  method: 'GET',
8694
11544
  path: `/domain/v2beta1/dns-zones`,
@@ -9040,7 +11890,7 @@ let API$o = class API extends API$y {
9040
11890
  *
9041
11891
  * Manage your domains and contacts.
9042
11892
  */
9043
- class RegistrarAPI extends API$y {
11893
+ class RegistrarAPI extends API$z {
9044
11894
  pageOfListTasks = (request = {}) => this.client.fetch({
9045
11895
  method: 'GET',
9046
11896
  path: `/domain/v2beta1/tasks`,
@@ -9578,7 +12428,7 @@ const jsonContentHeaders$n = {
9578
12428
  };
9579
12429
 
9580
12430
  /** Elastic Metal - Flexible IP API. */
9581
- let API$n = class API extends API$y {
12431
+ let API$n = class API extends API$z {
9582
12432
  /** Lists the available zones of the API. */
9583
12433
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
9584
12434
 
@@ -10169,7 +13019,7 @@ const jsonContentHeaders$m = {
10169
13019
  };
10170
13020
 
10171
13021
  /** Serverless Functions API. */
10172
- let API$m = class API extends API$y {
13022
+ let API$m = class API extends API$z {
10173
13023
  /** Lists the available regions of the API. */
10174
13024
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
10175
13025
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -11167,7 +14017,7 @@ const jsonContentHeaders$l = {
11167
14017
  };
11168
14018
 
11169
14019
  /** IAM API. */
11170
- let API$l = class API extends API$y {
14020
+ let API$l = class API extends API$z {
11171
14021
  pageOfListSSHKeys = (request = {}) => this.client.fetch({
11172
14022
  method: 'GET',
11173
14023
  path: `/iam/v1alpha1/ssh-keys`,
@@ -11742,7 +14592,7 @@ let API$l = class API extends API$y {
11742
14592
  pageOfListQuota = (request = {}) => this.client.fetch({
11743
14593
  method: 'GET',
11744
14594
  path: `/iam/v1alpha1/quota`,
11745
- urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
14595
+ urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['quotum_names', request.quotumNames])
11746
14596
  }, unmarshalListQuotaResponse);
11747
14597
 
11748
14598
  /**
@@ -13593,7 +16443,7 @@ const jsonContentHeaders$k = {
13593
16443
  };
13594
16444
 
13595
16445
  /** Instance API. */
13596
- let API$k = class API extends API$y {
16446
+ let API$k = class API extends API$z {
13597
16447
  /** Lists the available zones of the API. */
13598
16448
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
13599
16449
 
@@ -15180,7 +18030,7 @@ const jsonContentHeaders$j = {
15180
18030
  *
15181
18031
  * This API allows you to manage IoT hubs and devices.
15182
18032
  */
15183
- let API$j = class API extends API$y {
18033
+ let API$j = class API extends API$z {
15184
18034
  /** Lists the available regions of the API. */
15185
18035
  static LOCALITIES = ['fr-par'];
15186
18036
  pageOfListHubs = (request = {}) => this.client.fetch({
@@ -15784,7 +18634,7 @@ const jsonContentHeaders$i = {
15784
18634
  * This API allows you to manage IP addresses with Scaleway's IP Address
15785
18635
  * Management tool.
15786
18636
  */
15787
- let API$i = class API extends API$y {
18637
+ let API$i = class API extends API$z {
15788
18638
  /** Lists the available regions of the API. */
15789
18639
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
15790
18640
 
@@ -16077,7 +18927,7 @@ const jsonContentHeaders$h = {
16077
18927
  };
16078
18928
 
16079
18929
  /** IPFS Pinning service API. */
16080
- let API$h = class API extends API$y {
18930
+ let API$h = class API extends API$z {
16081
18931
  /** Lists the available regions of the API. */
16082
18932
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16083
18933
 
@@ -16259,7 +19109,7 @@ let API$h = class API extends API$y {
16259
19109
  };
16260
19110
 
16261
19111
  /** IPFS Naming service API. */
16262
- class IpnsAPI extends API$y {
19112
+ class IpnsAPI extends API$z {
16263
19113
  /** Lists the available regions of the API. */
16264
19114
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16265
19115
 
@@ -16503,7 +19353,7 @@ const jsonContentHeaders$g = {
16503
19353
  };
16504
19354
 
16505
19355
  /** Serverless Jobs API. */
16506
- let API$g = class API extends API$y {
19356
+ let API$g = class API extends API$z {
16507
19357
  /** Lists the available regions of the API. */
16508
19358
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16509
19359
 
@@ -17188,7 +20038,7 @@ const jsonContentHeaders$f = {
17188
20038
  };
17189
20039
 
17190
20040
  /** Kubernetes API. */
17191
- let API$f = class API extends API$y {
20041
+ let API$f = class API extends API$z {
17192
20042
  /** Lists the available regions of the API. */
17193
20043
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
17194
20044
  pageOfListClusters = (request = {}) => this.client.fetch({
@@ -18795,7 +21645,7 @@ const jsonContentHeaders$e = {
18795
21645
  *
18796
21646
  * This API allows you to manage your Scaleway Load Balancer services.
18797
21647
  */
18798
- class ZonedAPI extends API$y {
21648
+ class ZonedAPI extends API$z {
18799
21649
  /** Lists the available zones of the API. */
18800
21650
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
18801
21651
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -19598,7 +22448,7 @@ class ZonedAPI extends API$y {
19598
22448
  *
19599
22449
  * This API allows you to manage your load balancer service.
19600
22450
  */
19601
- let API$e = class API extends API$y {
22451
+ let API$e = class API extends API$z {
19602
22452
  /** Lists the available regions of the API. */
19603
22453
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
19604
22454
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -20593,7 +23443,7 @@ const jsonContentHeaders$d = {
20593
23443
  };
20594
23444
 
20595
23445
  /** LLM Inference API. */
20596
- let API$d = class API extends API$y {
23446
+ let API$d = class API extends API$z {
20597
23447
  /** Lists the available regions of the API. */
20598
23448
  static LOCALITIES = ['fr-par'];
20599
23449
  pageOfListDeployments = (request = {}) => this.client.fetch({
@@ -20981,7 +23831,7 @@ const unmarshalListVersionsResponse = data => {
20981
23831
  // This file was automatically generated. DO NOT EDIT.
20982
23832
  // If you have any remark or suggestion do not hesitate to open an issue.
20983
23833
  /** Marketplace API. */
20984
- let API$c = class API extends API$y {
23834
+ let API$c = class API extends API$z {
20985
23835
  pageOfListImages = request => this.client.fetch({
20986
23836
  method: 'GET',
20987
23837
  path: `/marketplace/v2/images`,
@@ -21333,7 +24183,7 @@ const jsonContentHeaders$c = {
21333
24183
  *
21334
24184
  * This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
21335
24185
  */
21336
- class NatsAPI extends API$y {
24186
+ class NatsAPI extends API$z {
21337
24187
  /** Lists the available regions of the API. */
21338
24188
  static LOCALITIES = ['fr-par', 'nl-ams'];
21339
24189
 
@@ -21469,7 +24319,7 @@ class NatsAPI extends API$y {
21469
24319
  *
21470
24320
  * This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
21471
24321
  */
21472
- class SnsAPI extends API$y {
24322
+ class SnsAPI extends API$z {
21473
24323
  /** Lists the available regions of the API. */
21474
24324
  static LOCALITIES = ['fr-par', 'nl-ams'];
21475
24325
 
@@ -21591,7 +24441,7 @@ class SnsAPI extends API$y {
21591
24441
  *
21592
24442
  * This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
21593
24443
  */
21594
- class SqsAPI extends API$y {
24444
+ class SqsAPI extends API$z {
21595
24445
  /** Lists the available regions of the API. */
21596
24446
  static LOCALITIES = ['fr-par', 'nl-ams'];
21597
24447
 
@@ -22551,7 +25401,7 @@ const jsonContentHeaders$b = {
22551
25401
  };
22552
25402
 
22553
25403
  /** Managed Database for PostgreSQL and MySQL API. */
22554
- let API$b = class API extends API$y {
25404
+ let API$b = class API extends API$z {
22555
25405
  /** Lists the available regions of the API. */
22556
25406
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
22557
25407
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -23785,7 +26635,7 @@ const jsonContentHeaders$a = {
23785
26635
  };
23786
26636
 
23787
26637
  /** Managed Database for Redis™ API. */
23788
- let API$a = class API extends API$y {
26638
+ let API$a = class API extends API$z {
23789
26639
  /** Lists the available zones of the API. */
23790
26640
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
23791
26641
 
@@ -24279,7 +27129,7 @@ const jsonContentHeaders$9 = {
24279
27129
  };
24280
27130
 
24281
27131
  /** Container Registry API. */
24282
- let API$9 = class API extends API$y {
27132
+ let API$9 = class API extends API$z {
24283
27133
  /** Lists the available regions of the API. */
24284
27134
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
24285
27135
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -24695,7 +27545,7 @@ const jsonContentHeaders$8 = {
24695
27545
  * Secret Manager API. This API allows you to conveniently store, access and
24696
27546
  * share sensitive data.
24697
27547
  */
24698
- let API$8 = class API extends API$y {
27548
+ let API$8 = class API extends API$z {
24699
27549
  /** Lists the available regions of the API. */
24700
27550
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
24701
27551
 
@@ -25140,7 +27990,8 @@ const unmarshalAccessSecretVersionResponse = data => {
25140
27990
  data: data.data,
25141
27991
  dataCrc32: data.data_crc32,
25142
27992
  revision: data.revision,
25143
- secretId: data.secret_id
27993
+ secretId: data.secret_id,
27994
+ type: data.type
25144
27995
  };
25145
27996
  };
25146
27997
  const unmarshalBrowseSecretsResponseItemFolderDetails = data => {
@@ -25263,12 +28114,13 @@ const jsonContentHeaders$7 = {
25263
28114
  * This API allows you to conveniently store, access and share sensitive data
25264
28115
  * such as passwords, API keys and certificates.
25265
28116
  */
25266
- let API$7 = class API extends API$y {
28117
+ let API$7 = class API extends API$z {
25267
28118
  /** Lists the available regions of the API. */
25268
28119
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
25269
28120
 
25270
28121
  /**
25271
- * Create a secret. You must specify the `region` to create a secret.
28122
+ * Create a secret. Create a secret in a given region specified by the
28123
+ * `region` parameter.
25272
28124
  *
25273
28125
  * @param request - The request {@link CreateSecretRequest}
25274
28126
  * @returns A Promise of Secret
@@ -25615,7 +28467,7 @@ const jsonContentHeaders$6 = {
25615
28467
  *
25616
28468
  * This API allows you to manage your Serverless SQL DB databases.
25617
28469
  */
25618
- let API$6 = class API extends API$y {
28470
+ let API$6 = class API extends API$z {
25619
28471
  /** Lists the available regions of the API. */
25620
28472
  static LOCALITIES = ['fr-par'];
25621
28473
 
@@ -25939,7 +28791,7 @@ const jsonContentHeaders$5 = {
25939
28791
  *
25940
28792
  * No Auth Service for end-to-end testing.
25941
28793
  */
25942
- let API$5 = class API extends API$y {
28794
+ let API$5 = class API extends API$z {
25943
28795
  /**
25944
28796
  * Register a user. Register a human and return a access-key and a secret-key
25945
28797
  * that must be used in all other commands.
@@ -26297,7 +29149,7 @@ const jsonContentHeaders$4 = {
26297
29149
  };
26298
29150
 
26299
29151
  /** Transactional Email API. */
26300
- let API$4 = class API extends API$y {
29152
+ let API$4 = class API extends API$z {
26301
29153
  /** Lists the available regions of the API. */
26302
29154
  static LOCALITIES = ['fr-par'];
26303
29155
 
@@ -26538,7 +29390,7 @@ const jsonContentHeaders$3 = {
26538
29390
  };
26539
29391
 
26540
29392
  /** VPC API. */
26541
- let API$3 = class API extends API$y {
29393
+ let API$3 = class API extends API$z {
26542
29394
  /** Lists the available zones of the API. */
26543
29395
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
26544
29396
  pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
@@ -26760,7 +29612,7 @@ const jsonContentHeaders$2 = {
26760
29612
  };
26761
29613
 
26762
29614
  /** VPC API. */
26763
- let API$2 = class API extends API$y {
29615
+ let API$2 = class API extends API$z {
26764
29616
  /** Lists the available regions of the API. */
26765
29617
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
26766
29618
  pageOfListVPCs = (request = {}) => this.client.fetch({
@@ -26923,6 +29775,20 @@ let API$2 = class API extends API$y {
26923
29775
  path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/enable-dhcp`
26924
29776
  }, unmarshalPrivateNetwork);
26925
29777
 
29778
+ /**
29779
+ * Enable routing on a VPC. Enable routing on an existing VPC. Note that you
29780
+ * will not be able to deactivate it afterwards.
29781
+ *
29782
+ * @param request - The request {@link EnableRoutingRequest}
29783
+ * @returns A Promise of VPC
29784
+ */
29785
+ enableRouting = request => this.client.fetch({
29786
+ body: '{}',
29787
+ headers: jsonContentHeaders$2,
29788
+ method: 'POST',
29789
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam('vpcId', request.vpcId)}/enable-routing`
29790
+ }, unmarshalVPC);
29791
+
26926
29792
  /**
26927
29793
  * Set the subnets of a Private Network. Set subnets for an existing Private
26928
29794
  * Network. Note that the method is PUT and not PATCH. Any existing subnets
@@ -27358,7 +30224,7 @@ const jsonContentHeaders$1 = {
27358
30224
  };
27359
30225
 
27360
30226
  /** Public Gateways API. */
27361
- let API$1 = class API extends API$y {
30227
+ let API$1 = class API extends API$z {
27362
30228
  /** Lists the available zones of the API. */
27363
30229
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
27364
30230
  pageOfListGateways = (request = {}) => this.client.fetch({
@@ -28117,7 +30983,7 @@ const jsonContentHeaders = {
28117
30983
  };
28118
30984
 
28119
30985
  /** Web Hosting API. */
28120
- class API extends API$y {
30986
+ class API extends API$z {
28121
30987
  /** Lists the available regions of the API. */
28122
30988
  static LOCALITIES = ['fr-par', 'nl-ams'];
28123
30989
 
@@ -28301,17 +31167,18 @@ var index = /*#__PURE__*/Object.freeze({
28301
31167
  v1alpha1: index_gen
28302
31168
  });
28303
31169
 
28304
- exports.API = API$y;
28305
- exports.Account = index$z;
28306
- exports.AppleSilicon = index$y;
28307
- exports.BareMetal = index$w;
28308
- exports.Billing = index$v;
28309
- exports.Block = index$u;
28310
- exports.Cockpit = index$t;
28311
- exports.Container = index$s;
31170
+ exports.API = API$z;
31171
+ exports.Account = index$A;
31172
+ exports.AppleSilicon = index$z;
31173
+ exports.BareMetal = index$x;
31174
+ exports.Billing = index$w;
31175
+ exports.Block = index$v;
31176
+ exports.Cockpit = index$u;
31177
+ exports.Container = index$t;
31178
+ exports.Dedibox = index$s;
28312
31179
  exports.DocumentDB = index$r;
28313
31180
  exports.Domain = index$q;
28314
- exports.Errors = index$A;
31181
+ exports.Errors = index$B;
28315
31182
  exports.FlexibleIP = index$p;
28316
31183
  exports.Function = index$o;
28317
31184
  exports.IAM = index$n;