@scaleway/sdk-dedibox 2.3.1 → 2.4.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.
@@ -1,5 +1,6 @@
1
1
  import { isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
2
- const unmarshalIP = (data) => {
2
+ //#region src/v1/marshalling.gen.ts
3
+ var unmarshalIP = (data) => {
3
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
4
5
  return {
5
6
  address: data.address,
@@ -130,7 +131,7 @@ var unmarshalOfferStorageInfo = (data) => {
130
131
  size: data.size
131
132
  };
132
133
  };
133
- const unmarshalOffer = (data) => {
134
+ var unmarshalOffer = (data) => {
134
135
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
135
136
  return {
136
137
  antidosInfo: data.antidos_info ? unmarshalOfferAntiDosInfo(data.antidos_info) : void 0,
@@ -152,7 +153,7 @@ const unmarshalOffer = (data) => {
152
153
  usbStorageInfo: data.usb_storage_info ? unmarshalOfferStorageInfo(data.usb_storage_info) : void 0
153
154
  };
154
155
  };
155
- const unmarshalOS = (data) => {
156
+ var unmarshalOS = (data) => {
156
157
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OS' failed as data isn't a dictionary.`);
157
158
  return {
158
159
  allowCustomPartitioning: data.allow_custom_partitioning,
@@ -178,7 +179,7 @@ const unmarshalOS = (data) => {
178
179
  version: data.version
179
180
  };
180
181
  };
181
- const unmarshalRpnSan = (data) => {
182
+ var unmarshalRpnSan = (data) => {
182
183
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RpnSan' failed as data isn't a dictionary.`);
183
184
  return {
184
185
  createdAt: unmarshalDate(data.created_at),
@@ -201,7 +202,7 @@ const unmarshalRpnSan = (data) => {
201
202
  terminatedAt: unmarshalDate(data.terminated_at)
202
203
  };
203
204
  };
204
- const unmarshalRpnGroup = (data) => {
205
+ var unmarshalRpnGroup = (data) => {
205
206
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RpnGroup' failed as data isn't a dictionary.`);
206
207
  return {
207
208
  active: data.active,
@@ -250,7 +251,7 @@ var unmarshalServiceLevel = (data) => {
250
251
  offerId: data.offer_id
251
252
  };
252
253
  };
253
- const unmarshalServer = (data) => {
254
+ var unmarshalServer = (data) => {
254
255
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
255
256
  return {
256
257
  abuseContact: data.abuse_contact,
@@ -287,7 +288,7 @@ var unmarshalRpnV2GroupSubnet = (data) => {
287
288
  cidr: data.cidr
288
289
  };
289
290
  };
290
- const unmarshalRpnV2Group = (data) => {
291
+ var unmarshalRpnV2Group = (data) => {
291
292
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RpnV2Group' failed as data isn't a dictionary.`);
292
293
  return {
293
294
  compatibleRpnv1: data.compatible_rpnv1,
@@ -304,7 +305,7 @@ const unmarshalRpnV2Group = (data) => {
304
305
  type: data.type
305
306
  };
306
307
  };
307
- const unmarshalService = (data) => {
308
+ var unmarshalService = (data) => {
308
309
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Service' failed as data isn't a dictionary.`);
309
310
  return {
310
311
  createdAt: unmarshalDate(data.created_at),
@@ -330,7 +331,7 @@ var unmarshalFailoverBlock = (data) => {
330
331
  netmask: data.netmask
331
332
  };
332
333
  };
333
- const unmarshalFailoverIP = (data) => {
334
+ var unmarshalFailoverIP = (data) => {
334
335
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'FailoverIP' failed as data isn't a dictionary.`);
335
336
  return {
336
337
  address: data.address,
@@ -348,7 +349,7 @@ const unmarshalFailoverIP = (data) => {
348
349
  type: data.type
349
350
  };
350
351
  };
351
- const unmarshalIPv6Block = (data) => {
352
+ var unmarshalIPv6Block = (data) => {
352
353
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'IPv6Block' failed as data isn't a dictionary.`);
353
354
  return {
354
355
  address: data.address,
@@ -360,7 +361,7 @@ const unmarshalIPv6Block = (data) => {
360
361
  subnets: unmarshalArrayOfObject(data.subnets, unmarshalIPv6Block)
361
362
  };
362
363
  };
363
- const unmarshalBMCAccess = (data) => {
364
+ var unmarshalBMCAccess = (data) => {
364
365
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`);
365
366
  return {
366
367
  expiresAt: unmarshalDate(data.expires_at),
@@ -370,7 +371,7 @@ const unmarshalBMCAccess = (data) => {
370
371
  url: data.url
371
372
  };
372
373
  };
373
- const unmarshalBackup = (data) => {
374
+ var unmarshalBackup = (data) => {
374
375
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Backup' failed as data isn't a dictionary.`);
375
376
  return {
376
377
  aclEnabled: data.acl_enabled,
@@ -385,7 +386,7 @@ const unmarshalBackup = (data) => {
385
386
  status: data.status
386
387
  };
387
388
  };
388
- const unmarshalCanOrderResponse = (data) => {
389
+ var unmarshalCanOrderResponse = (data) => {
389
390
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CanOrderResponse' failed as data isn't a dictionary.`);
390
391
  return {
391
392
  billingOk: data.billing_ok,
@@ -398,7 +399,7 @@ const unmarshalCanOrderResponse = (data) => {
398
399
  userConfirmed: data.user_confirmed
399
400
  };
400
401
  };
401
- const unmarshalCreateFailoverIPsResponse = (data) => {
402
+ var unmarshalCreateFailoverIPsResponse = (data) => {
402
403
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateFailoverIPsResponse' failed as data isn't a dictionary.`);
403
404
  return {
404
405
  services: unmarshalArrayOfObject(data.services, unmarshalService),
@@ -412,14 +413,14 @@ var unmarshalGetIPv6BlockQuotasResponseQuota = (data) => {
412
413
  quota: data.quota
413
414
  };
414
415
  };
415
- const unmarshalGetIPv6BlockQuotasResponse = (data) => {
416
+ var unmarshalGetIPv6BlockQuotasResponse = (data) => {
416
417
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetIPv6BlockQuotasResponse' failed as data isn't a dictionary.`);
417
418
  return {
418
419
  quotas: unmarshalArrayOfObject(data.quotas, unmarshalGetIPv6BlockQuotasResponseQuota),
419
420
  totalCount: data.total_count
420
421
  };
421
422
  };
422
- const unmarshalGetRemainingQuotaResponse = (data) => {
423
+ var unmarshalGetRemainingQuotaResponse = (data) => {
423
424
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetRemainingQuotaResponse' failed as data isn't a dictionary.`);
424
425
  return {
425
426
  failoverBlockQuota: data.failover_block_quota,
@@ -428,14 +429,14 @@ const unmarshalGetRemainingQuotaResponse = (data) => {
428
429
  failoverIpRemainingQuota: data.failover_ip_remaining_quota
429
430
  };
430
431
  };
431
- const unmarshalGetRpnStatusResponse = (data) => {
432
+ var unmarshalGetRpnStatusResponse = (data) => {
432
433
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetRpnStatusResponse' failed as data isn't a dictionary.`);
433
434
  return {
434
435
  operationsLeft: data.operations_left,
435
436
  status: data.status
436
437
  };
437
438
  };
438
- const unmarshalInvoice = (data) => {
439
+ var unmarshalInvoice = (data) => {
439
440
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
440
441
  return {
441
442
  content: data.content,
@@ -449,7 +450,7 @@ const unmarshalInvoice = (data) => {
449
450
  transactionId: data.transaction_id
450
451
  };
451
452
  };
452
- const unmarshalListFailoverIPsResponse = (data) => {
453
+ var unmarshalListFailoverIPsResponse = (data) => {
453
454
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFailoverIPsResponse' failed as data isn't a dictionary.`);
454
455
  return {
455
456
  failoverIps: unmarshalArrayOfObject(data.failover_ips, unmarshalFailoverIP),
@@ -463,14 +464,14 @@ var unmarshalListIPv6BlockSubnetsAvailableResponseSubnet = (data) => {
463
464
  cidr: data.cidr
464
465
  };
465
466
  };
466
- const unmarshalListIPv6BlockSubnetsAvailableResponse = (data) => {
467
+ var unmarshalListIPv6BlockSubnetsAvailableResponse = (data) => {
467
468
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponse' failed as data isn't a dictionary.`);
468
469
  return {
469
470
  subnetAvailables: unmarshalArrayOfObject(data.subnet_availables, unmarshalListIPv6BlockSubnetsAvailableResponseSubnet),
470
471
  totalCount: data.total_count
471
472
  };
472
473
  };
473
- const unmarshalListIPv6BlocksResponse = (data) => {
474
+ var unmarshalListIPv6BlocksResponse = (data) => {
474
475
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIPv6BlocksResponse' failed as data isn't a dictionary.`);
475
476
  return {
476
477
  ipv6Blocks: unmarshalArrayOfObject(data.ipv6_blocks, unmarshalIPv6Block),
@@ -490,7 +491,7 @@ var unmarshalInvoiceSummary = (data) => {
490
491
  transactionId: data.transaction_id
491
492
  };
492
493
  };
493
- const unmarshalListInvoicesResponse = (data) => {
494
+ var unmarshalListInvoicesResponse = (data) => {
494
495
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
495
496
  return {
496
497
  invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoiceSummary),
@@ -521,21 +522,21 @@ var unmarshalRpnSanIp = (data) => {
521
522
  type: data.type
522
523
  };
523
524
  };
524
- const unmarshalListIpsResponse = (data) => {
525
+ var unmarshalListIpsResponse = (data) => {
525
526
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`);
526
527
  return {
527
528
  ips: unmarshalArrayOfObject(data.ips, unmarshalRpnSanIp),
528
529
  totalCount: data.total_count
529
530
  };
530
531
  };
531
- const unmarshalListOSResponse = (data) => {
532
+ var unmarshalListOSResponse = (data) => {
532
533
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
533
534
  return {
534
535
  os: unmarshalArrayOfObject(data.os, unmarshalOS),
535
536
  totalCount: data.total_count
536
537
  };
537
538
  };
538
- const unmarshalListOffersResponse = (data) => {
539
+ var unmarshalListOffersResponse = (data) => {
539
540
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
540
541
  return {
541
542
  offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
@@ -554,7 +555,7 @@ var unmarshalRefundSummary = (data) => {
554
555
  totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : void 0
555
556
  };
556
557
  };
557
- const unmarshalListRefundsResponse = (data) => {
558
+ var unmarshalListRefundsResponse = (data) => {
558
559
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRefundsResponse' failed as data isn't a dictionary.`);
559
560
  return {
560
561
  refunds: unmarshalArrayOfObject(data.refunds, unmarshalRefundSummary),
@@ -571,14 +572,14 @@ var unmarshalRpnSanServer = (data) => {
571
572
  zone: data.zone
572
573
  };
573
574
  };
574
- const unmarshalListRpnCapableSanServersResponse = (data) => {
575
+ var unmarshalListRpnCapableSanServersResponse = (data) => {
575
576
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnCapableSanServersResponse' failed as data isn't a dictionary.`);
576
577
  return {
577
578
  sanServers: unmarshalArrayOfObject(data.san_servers, unmarshalRpnSanServer),
578
579
  totalCount: data.total_count
579
580
  };
580
581
  };
581
- const unmarshalListRpnCapableServersResponse = (data) => {
582
+ var unmarshalListRpnCapableServersResponse = (data) => {
582
583
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnCapableServersResponse' failed as data isn't a dictionary.`);
583
584
  return {
584
585
  servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
@@ -599,21 +600,21 @@ var unmarshalRpnGroupMember = (data) => {
599
600
  status: data.status
600
601
  };
601
602
  };
602
- const unmarshalListRpnGroupMembersResponse = (data) => {
603
+ var unmarshalListRpnGroupMembersResponse = (data) => {
603
604
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnGroupMembersResponse' failed as data isn't a dictionary.`);
604
605
  return {
605
606
  members: unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
606
607
  totalCount: data.total_count
607
608
  };
608
609
  };
609
- const unmarshalListRpnGroupsResponse = (data) => {
610
+ var unmarshalListRpnGroupsResponse = (data) => {
610
611
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnGroupsResponse' failed as data isn't a dictionary.`);
611
612
  return {
612
613
  rpnGroups: unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnGroup),
613
614
  totalCount: data.total_count
614
615
  };
615
616
  };
616
- const unmarshalListRpnInvitesResponse = (data) => {
617
+ var unmarshalListRpnInvitesResponse = (data) => {
617
618
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnInvitesResponse' failed as data isn't a dictionary.`);
618
619
  return {
619
620
  members: unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
@@ -641,7 +642,7 @@ var unmarshalRpnSanSummary = (data) => {
641
642
  terminatedAt: unmarshalDate(data.terminated_at)
642
643
  };
643
644
  };
644
- const unmarshalListRpnSansResponse = (data) => {
645
+ var unmarshalListRpnSansResponse = (data) => {
645
646
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnSansResponse' failed as data isn't a dictionary.`);
646
647
  return {
647
648
  rpnSans: unmarshalArrayOfObject(data.rpn_sans, unmarshalRpnSanSummary),
@@ -664,14 +665,14 @@ var unmarshalRpnServerCapability = (data) => {
664
665
  zone: data.zone
665
666
  };
666
667
  };
667
- const unmarshalListRpnServerCapabilitiesResponse = (data) => {
668
+ var unmarshalListRpnServerCapabilitiesResponse = (data) => {
668
669
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnServerCapabilitiesResponse' failed as data isn't a dictionary.`);
669
670
  return {
670
671
  servers: unmarshalArrayOfObject(data.servers, unmarshalRpnServerCapability),
671
672
  totalCount: data.total_count
672
673
  };
673
674
  };
674
- const unmarshalListRpnV2CapableResourcesResponse = (data) => {
675
+ var unmarshalListRpnV2CapableResourcesResponse = (data) => {
675
676
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnV2CapableResourcesResponse' failed as data isn't a dictionary.`);
676
677
  return {
677
678
  servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
@@ -701,21 +702,21 @@ var unmarshalLog = (data) => {
701
702
  status: data.status
702
703
  };
703
704
  };
704
- const unmarshalListRpnV2GroupLogsResponse = (data) => {
705
+ var unmarshalListRpnV2GroupLogsResponse = (data) => {
705
706
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnV2GroupLogsResponse' failed as data isn't a dictionary.`);
706
707
  return {
707
708
  logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
708
709
  totalCount: data.total_count
709
710
  };
710
711
  };
711
- const unmarshalListRpnV2GroupsResponse = (data) => {
712
+ var unmarshalListRpnV2GroupsResponse = (data) => {
712
713
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnV2GroupsResponse' failed as data isn't a dictionary.`);
713
714
  return {
714
715
  rpnGroups: unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnV2Group),
715
716
  totalCount: data.total_count
716
717
  };
717
718
  };
718
- const unmarshalListRpnV2MembersResponse = (data) => {
719
+ var unmarshalListRpnV2MembersResponse = (data) => {
719
720
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnV2MembersResponse' failed as data isn't a dictionary.`);
720
721
  return {
721
722
  members: unmarshalArrayOfObject(data.members, unmarshalRpnV2Member),
@@ -732,7 +733,7 @@ var unmarshalServerDisk = (data) => {
732
733
  type: data.type
733
734
  };
734
735
  };
735
- const unmarshalListServerDisksResponse = (data) => {
736
+ var unmarshalListServerDisksResponse = (data) => {
736
737
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServerDisksResponse' failed as data isn't a dictionary.`);
737
738
  return {
738
739
  disks: unmarshalArrayOfObject(data.disks, unmarshalServerDisk),
@@ -747,7 +748,7 @@ var unmarshalServerEvent = (data) => {
747
748
  eventId: data.event_id
748
749
  };
749
750
  };
750
- const unmarshalListServerEventsResponse = (data) => {
751
+ var unmarshalListServerEventsResponse = (data) => {
751
752
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServerEventsResponse' failed as data isn't a dictionary.`);
752
753
  return {
753
754
  events: unmarshalArrayOfObject(data.events, unmarshalServerEvent),
@@ -778,21 +779,21 @@ var unmarshalServerSummary = (data) => {
778
779
  zone: data.zone
779
780
  };
780
781
  };
781
- const unmarshalListServersResponse = (data) => {
782
+ var unmarshalListServersResponse = (data) => {
782
783
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
783
784
  return {
784
785
  servers: unmarshalArrayOfObject(data.servers, unmarshalServerSummary),
785
786
  totalCount: data.total_count
786
787
  };
787
788
  };
788
- const unmarshalListServicesResponse = (data) => {
789
+ var unmarshalListServicesResponse = (data) => {
789
790
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServicesResponse' failed as data isn't a dictionary.`);
790
791
  return {
791
792
  services: unmarshalArrayOfObject(data.services, unmarshalService),
792
793
  totalCount: data.total_count
793
794
  };
794
795
  };
795
- const unmarshalListSubscribableServerOptionsResponse = (data) => {
796
+ var unmarshalListSubscribableServerOptionsResponse = (data) => {
796
797
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSubscribableServerOptionsResponse' failed as data isn't a dictionary.`);
797
798
  return {
798
799
  serverOptions: unmarshalArrayOfObject(data.server_options, unmarshalOffer),
@@ -806,11 +807,11 @@ var unmarshalRaidArray = (data) => {
806
807
  raidLevel: data.raid_level
807
808
  };
808
809
  };
809
- const unmarshalRaid = (data) => {
810
+ var unmarshalRaid = (data) => {
810
811
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Raid' failed as data isn't a dictionary.`);
811
812
  return { raidArrays: unmarshalArrayOfObject(data.raid_arrays, unmarshalRaidArray) };
812
813
  };
813
- const unmarshalRefund = (data) => {
814
+ var unmarshalRefund = (data) => {
814
815
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Refund' failed as data isn't a dictionary.`);
815
816
  return {
816
817
  content: data.content,
@@ -823,7 +824,7 @@ const unmarshalRefund = (data) => {
823
824
  totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : void 0
824
825
  };
825
826
  };
826
- const unmarshalRescue = (data) => {
827
+ var unmarshalRescue = (data) => {
827
828
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Rescue' failed as data isn't a dictionary.`);
828
829
  return {
829
830
  login: data.login,
@@ -843,11 +844,11 @@ var unmarshalPartition = (data) => {
843
844
  type: data.type
844
845
  };
845
846
  };
846
- const unmarshalServerDefaultPartitioning = (data) => {
847
+ var unmarshalServerDefaultPartitioning = (data) => {
847
848
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerDefaultPartitioning' failed as data isn't a dictionary.`);
848
849
  return { partitions: unmarshalArrayOfObject(data.partitions, unmarshalPartition) };
849
850
  };
850
- const unmarshalServerInstall = (data) => {
851
+ var unmarshalServerInstall = (data) => {
851
852
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`);
852
853
  return {
853
854
  hostname: data.hostname,
@@ -859,36 +860,36 @@ const unmarshalServerInstall = (data) => {
859
860
  userLogin: data.user_login
860
861
  };
861
862
  };
862
- const unmarshalSubscribeStorageOptionsResponse = (data) => {
863
+ var unmarshalSubscribeStorageOptionsResponse = (data) => {
863
864
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SubscribeStorageOptionsResponse' failed as data isn't a dictionary.`);
864
865
  return { services: unmarshalArrayOfObject(data.services, unmarshalService) };
865
866
  };
866
- const marshalAttachFailoverIPToMacAddressRequest = (request, defaults) => ({
867
+ var marshalAttachFailoverIPToMacAddressRequest = (request, defaults) => ({
867
868
  mac: request.mac,
868
869
  type: request.type
869
870
  });
870
- const marshalAttachFailoverIPsRequest = (request, defaults) => ({
871
+ var marshalAttachFailoverIPsRequest = (request, defaults) => ({
871
872
  fips_ids: request.fipsIds,
872
873
  server_id: request.serverId
873
874
  });
874
- const marshalCreateFailoverIPsRequest = (request, defaults) => ({
875
+ var marshalCreateFailoverIPsRequest = (request, defaults) => ({
875
876
  offer_id: request.offerId,
876
877
  project_id: request.projectId ?? defaults.defaultProjectId,
877
878
  quantity: request.quantity
878
879
  });
879
- const marshalCreateServerRequest = (request, defaults) => ({
880
+ var marshalCreateServerRequest = (request, defaults) => ({
880
881
  datacenter_name: request.datacenterName,
881
882
  offer_id: request.offerId,
882
883
  project_id: request.projectId ?? defaults.defaultProjectId,
883
884
  server_option_ids: request.serverOptionIds
884
885
  });
885
- const marshalDetachFailoverIPsRequest = (request, defaults) => ({ fips_ids: request.fipsIds });
886
- const marshalIPv6BlockApiCreateIPv6BlockRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
887
- const marshalIPv6BlockApiCreateIPv6BlockSubnetRequest = (request, defaults) => ({
886
+ var marshalDetachFailoverIPsRequest = (request, defaults) => ({ fips_ids: request.fipsIds });
887
+ var marshalIPv6BlockApiCreateIPv6BlockRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
888
+ var marshalIPv6BlockApiCreateIPv6BlockSubnetRequest = (request, defaults) => ({
888
889
  address: request.address,
889
890
  cidr: request.cidr
890
891
  });
891
- const marshalIPv6BlockApiUpdateIPv6BlockRequest = (request, defaults) => ({ nameservers: request.nameservers });
892
+ var marshalIPv6BlockApiUpdateIPv6BlockRequest = (request, defaults) => ({ nameservers: request.nameservers });
892
893
  var marshalInstallPartition = (request, defaults) => ({
893
894
  capacity: request.capacity,
894
895
  connectors: request.connectors,
@@ -896,7 +897,7 @@ var marshalInstallPartition = (request, defaults) => ({
896
897
  mount_point: request.mountPoint,
897
898
  raid_level: request.raidLevel
898
899
  });
899
- const marshalInstallServerRequest = (request, defaults) => ({
900
+ var marshalInstallServerRequest = (request, defaults) => ({
900
901
  hostname: request.hostname,
901
902
  ip_id: request.ipId,
902
903
  license_offer_id: request.licenseOfferId,
@@ -908,61 +909,62 @@ const marshalInstallServerRequest = (request, defaults) => ({
908
909
  user_login: request.userLogin,
909
910
  user_password: request.userPassword
910
911
  });
911
- const marshalRpnSanApiAddIpRequest = (request, defaults) => ({ ip_ids: request.ipIds });
912
- const marshalRpnSanApiCreateRpnSanRequest = (request, defaults) => ({
912
+ var marshalRpnSanApiAddIpRequest = (request, defaults) => ({ ip_ids: request.ipIds });
913
+ var marshalRpnSanApiCreateRpnSanRequest = (request, defaults) => ({
913
914
  offer_id: request.offerId,
914
915
  project_id: request.projectId ?? defaults.defaultProjectId
915
916
  });
916
- const marshalRpnSanApiRemoveIpRequest = (request, defaults) => ({ ip_ids: request.ipIds });
917
- const marshalRpnV1ApiAddRpnGroupMembersRequest = (request, defaults) => ({
917
+ var marshalRpnSanApiRemoveIpRequest = (request, defaults) => ({ ip_ids: request.ipIds });
918
+ var marshalRpnV1ApiAddRpnGroupMembersRequest = (request, defaults) => ({
918
919
  san_server_ids: request.sanServerIds,
919
920
  server_ids: request.serverIds
920
921
  });
921
- const marshalRpnV1ApiCreateRpnGroupRequest = (request, defaults) => ({
922
+ var marshalRpnV1ApiCreateRpnGroupRequest = (request, defaults) => ({
922
923
  name: request.name,
923
924
  project_id: request.projectId ?? defaults.defaultProjectId,
924
925
  san_server_ids: request.sanServerIds,
925
926
  server_ids: request.serverIds
926
927
  });
927
- const marshalRpnV1ApiDeleteRpnGroupMembersRequest = (request, defaults) => ({ member_ids: request.memberIds });
928
- const marshalRpnV1ApiLeaveRpnGroupRequest = (request, defaults) => ({ member_ids: request.memberIds });
929
- const marshalRpnV1ApiRpnGroupInviteRequest = (request, defaults) => ({
928
+ var marshalRpnV1ApiDeleteRpnGroupMembersRequest = (request, defaults) => ({ member_ids: request.memberIds });
929
+ var marshalRpnV1ApiLeaveRpnGroupRequest = (request, defaults) => ({ member_ids: request.memberIds });
930
+ var marshalRpnV1ApiRpnGroupInviteRequest = (request, defaults) => ({
930
931
  project_id: request.projectId ?? defaults.defaultProjectId,
931
932
  server_ids: request.serverIds
932
933
  });
933
- const marshalRpnV1ApiUpdateRpnGroupNameRequest = (request, defaults) => ({ name: request.name });
934
- const marshalRpnV2ApiAddRpnV2MembersRequest = (request, defaults) => ({ servers: request.servers });
935
- const marshalRpnV2ApiCreateRpnV2GroupRequest = (request, defaults) => ({
934
+ var marshalRpnV1ApiUpdateRpnGroupNameRequest = (request, defaults) => ({ name: request.name });
935
+ var marshalRpnV2ApiAddRpnV2MembersRequest = (request, defaults) => ({ servers: request.servers });
936
+ var marshalRpnV2ApiCreateRpnV2GroupRequest = (request, defaults) => ({
936
937
  name: request.name,
937
938
  project_id: request.projectId ?? defaults.defaultProjectId,
938
939
  servers: request.servers,
939
940
  type: request.type
940
941
  });
941
- const marshalRpnV2ApiDeleteRpnV2MembersRequest = (request, defaults) => ({ member_ids: request.memberIds });
942
- const marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest = (request, defaults) => ({ rpnv1_group_id: request.rpnv1GroupId });
943
- const marshalRpnV2ApiUpdateRpnV2GroupNameRequest = (request, defaults) => ({ name: request.name });
944
- const marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest = (request, defaults) => ({
942
+ var marshalRpnV2ApiDeleteRpnV2MembersRequest = (request, defaults) => ({ member_ids: request.memberIds });
943
+ var marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest = (request, defaults) => ({ rpnv1_group_id: request.rpnv1GroupId });
944
+ var marshalRpnV2ApiUpdateRpnV2GroupNameRequest = (request, defaults) => ({ name: request.name });
945
+ var marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest = (request, defaults) => ({
945
946
  member_ids: request.memberIds,
946
947
  vlan: request.vlan
947
948
  });
948
- const marshalStartBMCAccessRequest = (request, defaults) => ({ ip: request.ip });
949
- const marshalStartRescueRequest = (request, defaults) => ({ os_id: request.osId });
950
- const marshalSubscribeServerOptionRequest = (request, defaults) => ({ option_id: request.optionId });
951
- const marshalSubscribeStorageOptionsRequest = (request, defaults) => ({ options_ids: request.optionsIds });
949
+ var marshalStartBMCAccessRequest = (request, defaults) => ({ ip: request.ip });
950
+ var marshalStartRescueRequest = (request, defaults) => ({ os_id: request.osId });
951
+ var marshalSubscribeServerOptionRequest = (request, defaults) => ({ option_id: request.optionId });
952
+ var marshalSubscribeStorageOptionsRequest = (request, defaults) => ({ options_ids: request.optionsIds });
952
953
  var marshalUpdatableRaidArray = (request, defaults) => ({
953
954
  disk_ids: request.diskIds,
954
955
  raid_level: request.raidLevel
955
956
  });
956
- const marshalUpdateRaidRequest = (request, defaults) => ({ raid_arrays: request.raidArrays.map((elt) => marshalUpdatableRaidArray(elt, defaults)) });
957
- const marshalUpdateReverseRequest = (request, defaults) => ({ reverse: request.reverse });
958
- const marshalUpdateServerBackupRequest = (request, defaults) => ({
957
+ var marshalUpdateRaidRequest = (request, defaults) => ({ raid_arrays: request.raidArrays.map((elt) => marshalUpdatableRaidArray(elt, defaults)) });
958
+ var marshalUpdateReverseRequest = (request, defaults) => ({ reverse: request.reverse });
959
+ var marshalUpdateServerBackupRequest = (request, defaults) => ({
959
960
  acl_enabled: request.aclEnabled,
960
961
  autologin: request.autologin,
961
962
  password: request.password
962
963
  });
963
- const marshalUpdateServerRequest = (request, defaults) => ({
964
+ var marshalUpdateServerRequest = (request, defaults) => ({
964
965
  enable_ipv6: request.enableIpv6,
965
966
  hostname: request.hostname
966
967
  });
967
- const marshalUpdateServerTagsRequest = (request, defaults) => ({ tags: request.tags });
968
+ var marshalUpdateServerTagsRequest = (request, defaults) => ({ tags: request.tags });
969
+ //#endregion
968
970
  export { marshalAttachFailoverIPToMacAddressRequest, marshalAttachFailoverIPsRequest, marshalCreateFailoverIPsRequest, marshalCreateServerRequest, marshalDetachFailoverIPsRequest, marshalIPv6BlockApiCreateIPv6BlockRequest, marshalIPv6BlockApiCreateIPv6BlockSubnetRequest, marshalIPv6BlockApiUpdateIPv6BlockRequest, marshalInstallServerRequest, marshalRpnSanApiAddIpRequest, marshalRpnSanApiCreateRpnSanRequest, marshalRpnSanApiRemoveIpRequest, marshalRpnV1ApiAddRpnGroupMembersRequest, marshalRpnV1ApiCreateRpnGroupRequest, marshalRpnV1ApiDeleteRpnGroupMembersRequest, marshalRpnV1ApiLeaveRpnGroupRequest, marshalRpnV1ApiRpnGroupInviteRequest, marshalRpnV1ApiUpdateRpnGroupNameRequest, marshalRpnV2ApiAddRpnV2MembersRequest, marshalRpnV2ApiCreateRpnV2GroupRequest, marshalRpnV2ApiDeleteRpnV2MembersRequest, marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest, marshalRpnV2ApiUpdateRpnV2GroupNameRequest, marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest, marshalStartBMCAccessRequest, marshalStartRescueRequest, marshalSubscribeServerOptionRequest, marshalSubscribeStorageOptionsRequest, marshalUpdateRaidRequest, marshalUpdateReverseRequest, marshalUpdateServerBackupRequest, marshalUpdateServerRequest, marshalUpdateServerTagsRequest, unmarshalBMCAccess, unmarshalBackup, unmarshalCanOrderResponse, unmarshalCreateFailoverIPsResponse, unmarshalFailoverIP, unmarshalGetIPv6BlockQuotasResponse, unmarshalGetRemainingQuotaResponse, unmarshalGetRpnStatusResponse, unmarshalIP, unmarshalIPv6Block, unmarshalInvoice, unmarshalListFailoverIPsResponse, unmarshalListIPv6BlockSubnetsAvailableResponse, unmarshalListIPv6BlocksResponse, unmarshalListInvoicesResponse, unmarshalListIpsResponse, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListRefundsResponse, unmarshalListRpnCapableSanServersResponse, unmarshalListRpnCapableServersResponse, unmarshalListRpnGroupMembersResponse, unmarshalListRpnGroupsResponse, unmarshalListRpnInvitesResponse, unmarshalListRpnSansResponse, unmarshalListRpnServerCapabilitiesResponse, unmarshalListRpnV2CapableResourcesResponse, unmarshalListRpnV2GroupLogsResponse, unmarshalListRpnV2GroupsResponse, unmarshalListRpnV2MembersResponse, unmarshalListServerDisksResponse, unmarshalListServerEventsResponse, unmarshalListServersResponse, unmarshalListServicesResponse, unmarshalListSubscribableServerOptionsResponse, unmarshalOS, unmarshalOffer, unmarshalRaid, unmarshalRefund, unmarshalRescue, unmarshalRpnGroup, unmarshalRpnSan, unmarshalRpnV2Group, unmarshalServer, unmarshalServerDefaultPartitioning, unmarshalServerInstall, unmarshalService, unmarshalSubscribeStorageOptionsResponse };