files.com 1.2.249 → 1.2.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/User.md +4 -1
  3. package/lib/Api.js +72 -71
  4. package/lib/Files.js +1 -1
  5. package/lib/isomorphic/File.node.js +5 -5
  6. package/lib/models/ActionNotificationExport.js +38 -38
  7. package/lib/models/ActionNotificationExportResult.js +14 -14
  8. package/lib/models/ApiKey.js +100 -100
  9. package/lib/models/ApiRequestLog.js +8 -8
  10. package/lib/models/App.js +8 -8
  11. package/lib/models/As2IncomingMessage.js +10 -10
  12. package/lib/models/As2OutgoingMessage.js +10 -10
  13. package/lib/models/As2Partner.js +101 -101
  14. package/lib/models/As2Station.js +81 -81
  15. package/lib/models/Automation.js +167 -167
  16. package/lib/models/AutomationLog.js +8 -8
  17. package/lib/models/AutomationRun.js +24 -24
  18. package/lib/models/BandwidthSnapshot.js +8 -8
  19. package/lib/models/Behavior.js +106 -106
  20. package/lib/models/Bundle.js +143 -143
  21. package/lib/models/BundleAction.js +10 -10
  22. package/lib/models/BundleDownload.js +12 -12
  23. package/lib/models/BundleNotification.js +69 -69
  24. package/lib/models/BundleRecipient.js +40 -40
  25. package/lib/models/BundleRegistration.js +12 -12
  26. package/lib/models/Clickwrap.js +79 -79
  27. package/lib/models/DnsRecord.js +8 -8
  28. package/lib/models/EmailIncomingMessage.js +8 -8
  29. package/lib/models/EmailLog.js +8 -8
  30. package/lib/models/ExavaultApiRequestLog.js +8 -8
  31. package/lib/models/ExternalEvent.js +36 -36
  32. package/lib/models/File.js +269 -269
  33. package/lib/models/FileComment.js +70 -70
  34. package/lib/models/FileCommentReaction.js +34 -34
  35. package/lib/models/FileMigration.js +10 -10
  36. package/lib/models/FileMigrationLog.js +8 -8
  37. package/lib/models/Folder.js +36 -36
  38. package/lib/models/FormFieldSet.js +71 -71
  39. package/lib/models/FtpActionLog.js +8 -8
  40. package/lib/models/GpgKey.js +81 -81
  41. package/lib/models/Group.js +83 -83
  42. package/lib/models/GroupUser.js +89 -89
  43. package/lib/models/History.js +88 -88
  44. package/lib/models/HistoryExport.js +64 -64
  45. package/lib/models/HistoryExportResult.js +14 -14
  46. package/lib/models/InboxRecipient.js +36 -36
  47. package/lib/models/InboxRegistration.js +10 -10
  48. package/lib/models/InboxUpload.js +8 -8
  49. package/lib/models/Invoice.js +18 -18
  50. package/lib/models/IpAddress.js +32 -32
  51. package/lib/models/Lock.js +51 -51
  52. package/lib/models/Message.js +100 -100
  53. package/lib/models/MessageComment.js +78 -78
  54. package/lib/models/MessageCommentReaction.js +54 -54
  55. package/lib/models/MessageReaction.js +54 -54
  56. package/lib/models/Notification.js +91 -91
  57. package/lib/models/OutboundConnectionLog.js +8 -8
  58. package/lib/models/Payment.js +18 -18
  59. package/lib/models/Permission.js +54 -54
  60. package/lib/models/Priority.js +14 -14
  61. package/lib/models/Project.js +70 -70
  62. package/lib/models/PublicHostingRequestLog.js +8 -8
  63. package/lib/models/PublicKey.js +78 -78
  64. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  65. package/lib/models/RemoteServer.js +362 -362
  66. package/lib/models/Request.js +60 -60
  67. package/lib/models/Restore.js +24 -24
  68. package/lib/models/Session.js +21 -21
  69. package/lib/models/SettingsChange.js +8 -8
  70. package/lib/models/SftpActionLog.js +8 -8
  71. package/lib/models/SftpHostKey.js +67 -67
  72. package/lib/models/ShareGroup.js +79 -79
  73. package/lib/models/SiemHttpDestination.js +158 -158
  74. package/lib/models/Site.js +150 -150
  75. package/lib/models/Snapshot.js +85 -85
  76. package/lib/models/SsoStrategy.js +32 -32
  77. package/lib/models/Style.js +48 -48
  78. package/lib/models/SyncLog.js +8 -8
  79. package/lib/models/UsageDailySnapshot.js +8 -8
  80. package/lib/models/UsageSnapshot.js +8 -8
  81. package/lib/models/User.js +223 -215
  82. package/lib/models/UserCipherUse.js +10 -10
  83. package/lib/models/UserLifecycleRule.js +92 -92
  84. package/lib/models/UserRequest.js +56 -56
  85. package/lib/models/UserSftpClientUse.js +10 -10
  86. package/lib/models/WebDavActionLog.js +8 -8
  87. package/lib/models/WebhookTest.js +24 -24
  88. package/package.json +1 -1
  89. package/src/Files.js +1 -1
  90. package/src/models/User.js +6 -0
@@ -597,116 +597,116 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
597
597
  response,
598
598
  RemoteServerConfigurationFile,
599
599
  _args = arguments;
600
- return _regenerator.default.wrap(function _callee$(_context) {
600
+ return _regenerator.default.wrap(function (_context) {
601
601
  while (1) switch (_context.prev = _context.next) {
602
602
  case 0:
603
603
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
604
604
  if (_this.attributes.id) {
605
- _context.next = 3;
605
+ _context.next = 1;
606
606
  break;
607
607
  }
608
608
  throw new errors.EmptyPropertyError('Current object has no id');
609
- case 3:
609
+ case 1:
610
610
  if ((0, _utils.isObject)(params)) {
611
- _context.next = 5;
611
+ _context.next = 2;
612
612
  break;
613
613
  }
614
614
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
615
- case 5:
615
+ case 2:
616
616
  params.id = _this.attributes.id;
617
617
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
618
- _context.next = 8;
618
+ _context.next = 3;
619
619
  break;
620
620
  }
621
621
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
622
- case 8:
622
+ case 3:
623
623
  if (!(params.api_token && !(0, _utils.isString)(params.api_token))) {
624
- _context.next = 10;
624
+ _context.next = 4;
625
625
  break;
626
626
  }
627
627
  throw new errors.InvalidParameterError("Bad parameter: api_token must be of type String, received ".concat((0, _utils.getType)(params.api_token)));
628
- case 10:
628
+ case 4:
629
629
  if (!(params.permission_set && !(0, _utils.isString)(params.permission_set))) {
630
- _context.next = 12;
630
+ _context.next = 5;
631
631
  break;
632
632
  }
633
633
  throw new errors.InvalidParameterError("Bad parameter: permission_set must be of type String, received ".concat((0, _utils.getType)(params.permission_set)));
634
- case 12:
634
+ case 5:
635
635
  if (!(params.root && !(0, _utils.isString)(params.root))) {
636
- _context.next = 14;
636
+ _context.next = 6;
637
637
  break;
638
638
  }
639
639
  throw new errors.InvalidParameterError("Bad parameter: root must be of type String, received ".concat((0, _utils.getType)(params.root)));
640
- case 14:
640
+ case 6:
641
641
  if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
642
- _context.next = 16;
642
+ _context.next = 7;
643
643
  break;
644
644
  }
645
645
  throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
646
- case 16:
646
+ case 7:
647
647
  if (!(params.port && !(0, _utils.isInt)(params.port))) {
648
- _context.next = 18;
648
+ _context.next = 8;
649
649
  break;
650
650
  }
651
651
  throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
652
- case 18:
652
+ case 8:
653
653
  if (!(params.status && !(0, _utils.isString)(params.status))) {
654
- _context.next = 20;
654
+ _context.next = 9;
655
655
  break;
656
656
  }
657
657
  throw new errors.InvalidParameterError("Bad parameter: status must be of type String, received ".concat((0, _utils.getType)(params.status)));
658
- case 20:
658
+ case 9:
659
659
  if (!(params.config_version && !(0, _utils.isString)(params.config_version))) {
660
- _context.next = 22;
660
+ _context.next = 10;
661
661
  break;
662
662
  }
663
663
  throw new errors.InvalidParameterError("Bad parameter: config_version must be of type String, received ".concat((0, _utils.getType)(params.config_version)));
664
- case 22:
664
+ case 10:
665
665
  if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
666
- _context.next = 24;
666
+ _context.next = 11;
667
667
  break;
668
668
  }
669
669
  throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
670
- case 24:
670
+ case 11:
671
671
  if (!(params.public_key && !(0, _utils.isString)(params.public_key))) {
672
- _context.next = 26;
672
+ _context.next = 12;
673
673
  break;
674
674
  }
675
675
  throw new errors.InvalidParameterError("Bad parameter: public_key must be of type String, received ".concat((0, _utils.getType)(params.public_key)));
676
- case 26:
676
+ case 12:
677
677
  if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
678
- _context.next = 28;
678
+ _context.next = 13;
679
679
  break;
680
680
  }
681
681
  throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
682
- case 28:
682
+ case 13:
683
683
  if (!(params.subdomain && !(0, _utils.isString)(params.subdomain))) {
684
- _context.next = 30;
684
+ _context.next = 14;
685
685
  break;
686
686
  }
687
687
  throw new errors.InvalidParameterError("Bad parameter: subdomain must be of type String, received ".concat((0, _utils.getType)(params.subdomain)));
688
- case 30:
688
+ case 14:
689
689
  if (params.id) {
690
- _context.next = 36;
690
+ _context.next = 16;
691
691
  break;
692
692
  }
693
693
  if (!_this.attributes.id) {
694
- _context.next = 35;
694
+ _context.next = 15;
695
695
  break;
696
696
  }
697
697
  params.id = _this.id;
698
- _context.next = 36;
698
+ _context.next = 16;
699
699
  break;
700
- case 35:
700
+ case 15:
701
701
  throw new errors.MissingParameterError('Parameter missing: id');
702
- case 36:
703
- _context.next = 38;
702
+ case 16:
703
+ _context.next = 17;
704
704
  return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id), "/configuration_file"), 'POST', params, _this.options);
705
- case 38:
705
+ case 17:
706
706
  response = _context.sent;
707
707
  RemoteServerConfigurationFile = require('./RemoteServerConfigurationFile.js').default;
708
708
  return _context.abrupt("return", new RemoteServerConfigurationFile(response === null || response === void 0 ? void 0 : response.data, _this.options));
709
- case 41:
709
+ case 18:
710
710
  case "end":
711
711
  return _context.stop();
712
712
  }
@@ -786,433 +786,433 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
786
786
  var params,
787
787
  response,
788
788
  _args2 = arguments;
789
- return _regenerator.default.wrap(function _callee2$(_context2) {
789
+ return _regenerator.default.wrap(function (_context2) {
790
790
  while (1) switch (_context2.prev = _context2.next) {
791
791
  case 0:
792
792
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
793
793
  if (_this.attributes.id) {
794
- _context2.next = 3;
794
+ _context2.next = 1;
795
795
  break;
796
796
  }
797
797
  throw new errors.EmptyPropertyError('Current object has no id');
798
- case 3:
798
+ case 1:
799
799
  if ((0, _utils.isObject)(params)) {
800
- _context2.next = 5;
800
+ _context2.next = 2;
801
801
  break;
802
802
  }
803
803
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
804
- case 5:
804
+ case 2:
805
805
  params.id = _this.attributes.id;
806
806
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
807
- _context2.next = 8;
807
+ _context2.next = 3;
808
808
  break;
809
809
  }
810
810
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
811
- case 8:
811
+ case 3:
812
812
  if (!(params.password && !(0, _utils.isString)(params.password))) {
813
- _context2.next = 10;
813
+ _context2.next = 4;
814
814
  break;
815
815
  }
816
816
  throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params.password)));
817
- case 10:
817
+ case 4:
818
818
  if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
819
- _context2.next = 12;
819
+ _context2.next = 5;
820
820
  break;
821
821
  }
822
822
  throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
823
- case 12:
823
+ case 5:
824
824
  if (!(params.private_key_passphrase && !(0, _utils.isString)(params.private_key_passphrase))) {
825
- _context2.next = 14;
825
+ _context2.next = 6;
826
826
  break;
827
827
  }
828
828
  throw new errors.InvalidParameterError("Bad parameter: private_key_passphrase must be of type String, received ".concat((0, _utils.getType)(params.private_key_passphrase)));
829
- case 14:
829
+ case 6:
830
830
  if (!(params.ssl_certificate && !(0, _utils.isString)(params.ssl_certificate))) {
831
- _context2.next = 16;
831
+ _context2.next = 7;
832
832
  break;
833
833
  }
834
834
  throw new errors.InvalidParameterError("Bad parameter: ssl_certificate must be of type String, received ".concat((0, _utils.getType)(params.ssl_certificate)));
835
- case 16:
835
+ case 7:
836
836
  if (!(params.aws_secret_key && !(0, _utils.isString)(params.aws_secret_key))) {
837
- _context2.next = 18;
837
+ _context2.next = 8;
838
838
  break;
839
839
  }
840
840
  throw new errors.InvalidParameterError("Bad parameter: aws_secret_key must be of type String, received ".concat((0, _utils.getType)(params.aws_secret_key)));
841
- case 18:
841
+ case 8:
842
842
  if (!(params.azure_blob_storage_access_key && !(0, _utils.isString)(params.azure_blob_storage_access_key))) {
843
- _context2.next = 20;
843
+ _context2.next = 9;
844
844
  break;
845
845
  }
846
846
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_access_key must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_access_key)));
847
- case 20:
847
+ case 9:
848
848
  if (!(params.azure_blob_storage_sas_token && !(0, _utils.isString)(params.azure_blob_storage_sas_token))) {
849
- _context2.next = 22;
849
+ _context2.next = 10;
850
850
  break;
851
851
  }
852
852
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_sas_token)));
853
- case 22:
853
+ case 10:
854
854
  if (!(params.azure_files_storage_access_key && !(0, _utils.isString)(params.azure_files_storage_access_key))) {
855
- _context2.next = 24;
855
+ _context2.next = 11;
856
856
  break;
857
857
  }
858
858
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_access_key must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_access_key)));
859
- case 24:
859
+ case 11:
860
860
  if (!(params.azure_files_storage_sas_token && !(0, _utils.isString)(params.azure_files_storage_sas_token))) {
861
- _context2.next = 26;
861
+ _context2.next = 12;
862
862
  break;
863
863
  }
864
864
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_sas_token)));
865
- case 26:
865
+ case 12:
866
866
  if (!(params.backblaze_b2_application_key && !(0, _utils.isString)(params.backblaze_b2_application_key))) {
867
- _context2.next = 28;
867
+ _context2.next = 13;
868
868
  break;
869
869
  }
870
870
  throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_application_key must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_application_key)));
871
- case 28:
871
+ case 13:
872
872
  if (!(params.backblaze_b2_key_id && !(0, _utils.isString)(params.backblaze_b2_key_id))) {
873
- _context2.next = 30;
873
+ _context2.next = 14;
874
874
  break;
875
875
  }
876
876
  throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_key_id must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_key_id)));
877
- case 30:
877
+ case 14:
878
878
  if (!(params.cloudflare_secret_key && !(0, _utils.isString)(params.cloudflare_secret_key))) {
879
- _context2.next = 32;
879
+ _context2.next = 15;
880
880
  break;
881
881
  }
882
882
  throw new errors.InvalidParameterError("Bad parameter: cloudflare_secret_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_secret_key)));
883
- case 32:
883
+ case 15:
884
884
  if (!(params.filebase_secret_key && !(0, _utils.isString)(params.filebase_secret_key))) {
885
- _context2.next = 34;
885
+ _context2.next = 16;
886
886
  break;
887
887
  }
888
888
  throw new errors.InvalidParameterError("Bad parameter: filebase_secret_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_secret_key)));
889
- case 34:
889
+ case 16:
890
890
  if (!(params.google_cloud_storage_credentials_json && !(0, _utils.isString)(params.google_cloud_storage_credentials_json))) {
891
- _context2.next = 36;
891
+ _context2.next = 17;
892
892
  break;
893
893
  }
894
894
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_credentials_json must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_credentials_json)));
895
- case 36:
895
+ case 17:
896
896
  if (!(params.google_cloud_storage_s3_compatible_secret_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_secret_key))) {
897
- _context2.next = 38;
897
+ _context2.next = 18;
898
898
  break;
899
899
  }
900
900
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_s3_compatible_secret_key)));
901
- case 38:
901
+ case 18:
902
902
  if (!(params.linode_secret_key && !(0, _utils.isString)(params.linode_secret_key))) {
903
- _context2.next = 40;
903
+ _context2.next = 19;
904
904
  break;
905
905
  }
906
906
  throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params.linode_secret_key)));
907
- case 40:
907
+ case 19:
908
908
  if (!(params.rackspace_api_key && !(0, _utils.isString)(params.rackspace_api_key))) {
909
- _context2.next = 42;
909
+ _context2.next = 20;
910
910
  break;
911
911
  }
912
912
  throw new errors.InvalidParameterError("Bad parameter: rackspace_api_key must be of type String, received ".concat((0, _utils.getType)(params.rackspace_api_key)));
913
- case 42:
913
+ case 20:
914
914
  if (!(params.s3_compatible_secret_key && !(0, _utils.isString)(params.s3_compatible_secret_key))) {
915
- _context2.next = 44;
915
+ _context2.next = 21;
916
916
  break;
917
917
  }
918
918
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_secret_key)));
919
- case 44:
919
+ case 21:
920
920
  if (!(params.wasabi_secret_key && !(0, _utils.isString)(params.wasabi_secret_key))) {
921
- _context2.next = 46;
921
+ _context2.next = 22;
922
922
  break;
923
923
  }
924
924
  throw new errors.InvalidParameterError("Bad parameter: wasabi_secret_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_secret_key)));
925
- case 46:
925
+ case 22:
926
926
  if (!(params.aws_access_key && !(0, _utils.isString)(params.aws_access_key))) {
927
- _context2.next = 48;
927
+ _context2.next = 23;
928
928
  break;
929
929
  }
930
930
  throw new errors.InvalidParameterError("Bad parameter: aws_access_key must be of type String, received ".concat((0, _utils.getType)(params.aws_access_key)));
931
- case 48:
931
+ case 23:
932
932
  if (!(params.azure_blob_storage_account && !(0, _utils.isString)(params.azure_blob_storage_account))) {
933
- _context2.next = 50;
933
+ _context2.next = 24;
934
934
  break;
935
935
  }
936
936
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_account)));
937
- case 50:
937
+ case 24:
938
938
  if (!(params.azure_blob_storage_container && !(0, _utils.isString)(params.azure_blob_storage_container))) {
939
- _context2.next = 52;
939
+ _context2.next = 25;
940
940
  break;
941
941
  }
942
942
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_container)));
943
- case 52:
943
+ case 25:
944
944
  if (!(params.azure_blob_storage_dns_suffix && !(0, _utils.isString)(params.azure_blob_storage_dns_suffix))) {
945
- _context2.next = 54;
945
+ _context2.next = 26;
946
946
  break;
947
947
  }
948
948
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_dns_suffix must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_dns_suffix)));
949
- case 54:
949
+ case 26:
950
950
  if (!(params.azure_files_storage_account && !(0, _utils.isString)(params.azure_files_storage_account))) {
951
- _context2.next = 56;
951
+ _context2.next = 27;
952
952
  break;
953
953
  }
954
954
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_account)));
955
- case 56:
955
+ case 27:
956
956
  if (!(params.azure_files_storage_dns_suffix && !(0, _utils.isString)(params.azure_files_storage_dns_suffix))) {
957
- _context2.next = 58;
957
+ _context2.next = 28;
958
958
  break;
959
959
  }
960
960
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_dns_suffix must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_dns_suffix)));
961
- case 58:
961
+ case 28:
962
962
  if (!(params.azure_files_storage_share_name && !(0, _utils.isString)(params.azure_files_storage_share_name))) {
963
- _context2.next = 60;
963
+ _context2.next = 29;
964
964
  break;
965
965
  }
966
966
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_share_name must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_share_name)));
967
- case 60:
967
+ case 29:
968
968
  if (!(params.backblaze_b2_bucket && !(0, _utils.isString)(params.backblaze_b2_bucket))) {
969
- _context2.next = 62;
969
+ _context2.next = 30;
970
970
  break;
971
971
  }
972
972
  throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_bucket)));
973
- case 62:
973
+ case 30:
974
974
  if (!(params.backblaze_b2_s3_endpoint && !(0, _utils.isString)(params.backblaze_b2_s3_endpoint))) {
975
- _context2.next = 64;
975
+ _context2.next = 31;
976
976
  break;
977
977
  }
978
978
  throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_s3_endpoint)));
979
- case 64:
979
+ case 31:
980
980
  if (!(params.cloudflare_access_key && !(0, _utils.isString)(params.cloudflare_access_key))) {
981
- _context2.next = 66;
981
+ _context2.next = 32;
982
982
  break;
983
983
  }
984
984
  throw new errors.InvalidParameterError("Bad parameter: cloudflare_access_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_access_key)));
985
- case 66:
985
+ case 32:
986
986
  if (!(params.cloudflare_bucket && !(0, _utils.isString)(params.cloudflare_bucket))) {
987
- _context2.next = 68;
987
+ _context2.next = 33;
988
988
  break;
989
989
  }
990
990
  throw new errors.InvalidParameterError("Bad parameter: cloudflare_bucket must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_bucket)));
991
- case 68:
991
+ case 33:
992
992
  if (!(params.cloudflare_endpoint && !(0, _utils.isString)(params.cloudflare_endpoint))) {
993
- _context2.next = 70;
993
+ _context2.next = 34;
994
994
  break;
995
995
  }
996
996
  throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_endpoint)));
997
- case 70:
997
+ case 34:
998
998
  if (!(params.filebase_access_key && !(0, _utils.isString)(params.filebase_access_key))) {
999
- _context2.next = 72;
999
+ _context2.next = 35;
1000
1000
  break;
1001
1001
  }
1002
1002
  throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_access_key)));
1003
- case 72:
1003
+ case 35:
1004
1004
  if (!(params.filebase_bucket && !(0, _utils.isString)(params.filebase_bucket))) {
1005
- _context2.next = 74;
1005
+ _context2.next = 36;
1006
1006
  break;
1007
1007
  }
1008
1008
  throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params.filebase_bucket)));
1009
- case 74:
1009
+ case 36:
1010
1010
  if (!(params.files_agent_permission_set && !(0, _utils.isString)(params.files_agent_permission_set))) {
1011
- _context2.next = 76;
1011
+ _context2.next = 37;
1012
1012
  break;
1013
1013
  }
1014
1014
  throw new errors.InvalidParameterError("Bad parameter: files_agent_permission_set must be of type String, received ".concat((0, _utils.getType)(params.files_agent_permission_set)));
1015
- case 76:
1015
+ case 37:
1016
1016
  if (!(params.files_agent_root && !(0, _utils.isString)(params.files_agent_root))) {
1017
- _context2.next = 78;
1017
+ _context2.next = 38;
1018
1018
  break;
1019
1019
  }
1020
1020
  throw new errors.InvalidParameterError("Bad parameter: files_agent_root must be of type String, received ".concat((0, _utils.getType)(params.files_agent_root)));
1021
- case 78:
1021
+ case 38:
1022
1022
  if (!(params.files_agent_version && !(0, _utils.isString)(params.files_agent_version))) {
1023
- _context2.next = 80;
1023
+ _context2.next = 39;
1024
1024
  break;
1025
1025
  }
1026
1026
  throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
1027
- case 80:
1027
+ case 39:
1028
1028
  if (!(params.google_cloud_storage_bucket && !(0, _utils.isString)(params.google_cloud_storage_bucket))) {
1029
- _context2.next = 82;
1029
+ _context2.next = 40;
1030
1030
  break;
1031
1031
  }
1032
1032
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_bucket)));
1033
- case 82:
1033
+ case 40:
1034
1034
  if (!(params.google_cloud_storage_project_id && !(0, _utils.isString)(params.google_cloud_storage_project_id))) {
1035
- _context2.next = 84;
1035
+ _context2.next = 41;
1036
1036
  break;
1037
1037
  }
1038
1038
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_project_id)));
1039
- case 84:
1039
+ case 41:
1040
1040
  if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
1041
- _context2.next = 86;
1041
+ _context2.next = 42;
1042
1042
  break;
1043
1043
  }
1044
1044
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_s3_compatible_access_key)));
1045
- case 86:
1045
+ case 42:
1046
1046
  if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
1047
- _context2.next = 88;
1047
+ _context2.next = 43;
1048
1048
  break;
1049
1049
  }
1050
1050
  throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
1051
- case 88:
1051
+ case 43:
1052
1052
  if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
1053
- _context2.next = 90;
1053
+ _context2.next = 44;
1054
1054
  break;
1055
1055
  }
1056
1056
  throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
1057
- case 90:
1057
+ case 44:
1058
1058
  if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
1059
- _context2.next = 92;
1059
+ _context2.next = 45;
1060
1060
  break;
1061
1061
  }
1062
1062
  throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
1063
- case 92:
1063
+ case 45:
1064
1064
  if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
1065
- _context2.next = 94;
1065
+ _context2.next = 46;
1066
1066
  break;
1067
1067
  }
1068
1068
  throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
1069
- case 94:
1069
+ case 46:
1070
1070
  if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
1071
- _context2.next = 96;
1071
+ _context2.next = 47;
1072
1072
  break;
1073
1073
  }
1074
1074
  throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
1075
- case 96:
1075
+ case 47:
1076
1076
  if (!(params.name && !(0, _utils.isString)(params.name))) {
1077
- _context2.next = 98;
1077
+ _context2.next = 48;
1078
1078
  break;
1079
1079
  }
1080
1080
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
1081
- case 98:
1081
+ case 48:
1082
1082
  if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
1083
- _context2.next = 100;
1083
+ _context2.next = 49;
1084
1084
  break;
1085
1085
  }
1086
1086
  throw new errors.InvalidParameterError("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(params.one_drive_account_type)));
1087
- case 100:
1087
+ case 49:
1088
1088
  if (!(params.port && !(0, _utils.isInt)(params.port))) {
1089
- _context2.next = 102;
1089
+ _context2.next = 50;
1090
1090
  break;
1091
1091
  }
1092
1092
  throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
1093
- case 102:
1093
+ case 50:
1094
1094
  if (!(params.rackspace_container && !(0, _utils.isString)(params.rackspace_container))) {
1095
- _context2.next = 104;
1095
+ _context2.next = 51;
1096
1096
  break;
1097
1097
  }
1098
1098
  throw new errors.InvalidParameterError("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(params.rackspace_container)));
1099
- case 104:
1099
+ case 51:
1100
1100
  if (!(params.rackspace_region && !(0, _utils.isString)(params.rackspace_region))) {
1101
- _context2.next = 106;
1101
+ _context2.next = 52;
1102
1102
  break;
1103
1103
  }
1104
1104
  throw new errors.InvalidParameterError("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(params.rackspace_region)));
1105
- case 106:
1105
+ case 52:
1106
1106
  if (!(params.rackspace_username && !(0, _utils.isString)(params.rackspace_username))) {
1107
- _context2.next = 108;
1107
+ _context2.next = 53;
1108
1108
  break;
1109
1109
  }
1110
1110
  throw new errors.InvalidParameterError("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(params.rackspace_username)));
1111
- case 108:
1111
+ case 53:
1112
1112
  if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
1113
- _context2.next = 110;
1113
+ _context2.next = 54;
1114
1114
  break;
1115
1115
  }
1116
1116
  throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
1117
- case 110:
1117
+ case 54:
1118
1118
  if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
1119
- _context2.next = 112;
1119
+ _context2.next = 55;
1120
1120
  break;
1121
1121
  }
1122
1122
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_access_key)));
1123
- case 112:
1123
+ case 55:
1124
1124
  if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
1125
- _context2.next = 114;
1125
+ _context2.next = 56;
1126
1126
  break;
1127
1127
  }
1128
1128
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
1129
- case 114:
1129
+ case 56:
1130
1130
  if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
1131
- _context2.next = 116;
1131
+ _context2.next = 57;
1132
1132
  break;
1133
1133
  }
1134
1134
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
1135
- case 116:
1135
+ case 57:
1136
1136
  if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
1137
- _context2.next = 118;
1137
+ _context2.next = 58;
1138
1138
  break;
1139
1139
  }
1140
1140
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
1141
- case 118:
1141
+ case 58:
1142
1142
  if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
1143
- _context2.next = 120;
1143
+ _context2.next = 59;
1144
1144
  break;
1145
1145
  }
1146
1146
  throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
1147
- case 120:
1147
+ case 59:
1148
1148
  if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
1149
- _context2.next = 122;
1149
+ _context2.next = 60;
1150
1150
  break;
1151
1151
  }
1152
1152
  throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
1153
- case 122:
1153
+ case 60:
1154
1154
  if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
1155
- _context2.next = 124;
1155
+ _context2.next = 61;
1156
1156
  break;
1157
1157
  }
1158
1158
  throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
1159
- case 124:
1159
+ case 61:
1160
1160
  if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
1161
- _context2.next = 126;
1161
+ _context2.next = 62;
1162
1162
  break;
1163
1163
  }
1164
1164
  throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
1165
- case 126:
1165
+ case 62:
1166
1166
  if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
1167
- _context2.next = 128;
1167
+ _context2.next = 63;
1168
1168
  break;
1169
1169
  }
1170
1170
  throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
1171
- case 128:
1171
+ case 63:
1172
1172
  if (!(params.username && !(0, _utils.isString)(params.username))) {
1173
- _context2.next = 130;
1173
+ _context2.next = 64;
1174
1174
  break;
1175
1175
  }
1176
1176
  throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
1177
- case 130:
1177
+ case 64:
1178
1178
  if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
1179
- _context2.next = 132;
1179
+ _context2.next = 65;
1180
1180
  break;
1181
1181
  }
1182
1182
  throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
1183
- case 132:
1183
+ case 65:
1184
1184
  if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
1185
- _context2.next = 134;
1185
+ _context2.next = 66;
1186
1186
  break;
1187
1187
  }
1188
1188
  throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
1189
- case 134:
1189
+ case 66:
1190
1190
  if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
1191
- _context2.next = 136;
1191
+ _context2.next = 67;
1192
1192
  break;
1193
1193
  }
1194
1194
  throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
1195
- case 136:
1195
+ case 67:
1196
1196
  if (params.id) {
1197
- _context2.next = 142;
1197
+ _context2.next = 69;
1198
1198
  break;
1199
1199
  }
1200
1200
  if (!_this.attributes.id) {
1201
- _context2.next = 141;
1201
+ _context2.next = 68;
1202
1202
  break;
1203
1203
  }
1204
1204
  params.id = _this.id;
1205
- _context2.next = 142;
1205
+ _context2.next = 69;
1206
1206
  break;
1207
- case 141:
1207
+ case 68:
1208
1208
  throw new errors.MissingParameterError('Parameter missing: id');
1209
- case 142:
1210
- _context2.next = 144;
1209
+ case 69:
1210
+ _context2.next = 70;
1211
1211
  return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
1212
- case 144:
1212
+ case 70:
1213
1213
  response = _context2.sent;
1214
1214
  return _context2.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
1215
- case 146:
1215
+ case 71:
1216
1216
  case "end":
1217
1217
  return _context2.stop();
1218
1218
  }
@@ -1221,46 +1221,46 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
1221
1221
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
1222
1222
  var params,
1223
1223
  _args3 = arguments;
1224
- return _regenerator.default.wrap(function _callee3$(_context3) {
1224
+ return _regenerator.default.wrap(function (_context3) {
1225
1225
  while (1) switch (_context3.prev = _context3.next) {
1226
1226
  case 0:
1227
1227
  params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
1228
1228
  if (_this.attributes.id) {
1229
- _context3.next = 3;
1229
+ _context3.next = 1;
1230
1230
  break;
1231
1231
  }
1232
1232
  throw new errors.EmptyPropertyError('Current object has no id');
1233
- case 3:
1233
+ case 1:
1234
1234
  if ((0, _utils.isObject)(params)) {
1235
- _context3.next = 5;
1235
+ _context3.next = 2;
1236
1236
  break;
1237
1237
  }
1238
1238
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
1239
- case 5:
1239
+ case 2:
1240
1240
  params.id = _this.attributes.id;
1241
1241
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
1242
- _context3.next = 8;
1242
+ _context3.next = 3;
1243
1243
  break;
1244
1244
  }
1245
1245
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
1246
- case 8:
1246
+ case 3:
1247
1247
  if (params.id) {
1248
- _context3.next = 14;
1248
+ _context3.next = 5;
1249
1249
  break;
1250
1250
  }
1251
1251
  if (!_this.attributes.id) {
1252
- _context3.next = 13;
1252
+ _context3.next = 4;
1253
1253
  break;
1254
1254
  }
1255
1255
  params.id = _this.id;
1256
- _context3.next = 14;
1256
+ _context3.next = 5;
1257
1257
  break;
1258
- case 13:
1258
+ case 4:
1259
1259
  throw new errors.MissingParameterError('Parameter missing: id');
1260
- case 14:
1261
- _context3.next = 16;
1260
+ case 5:
1261
+ _context3.next = 6;
1262
1262
  return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
1263
- case 16:
1263
+ case 6:
1264
1264
  case "end":
1265
1265
  return _context3.stop();
1266
1266
  }
@@ -1272,27 +1272,27 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
1272
1272
  });
1273
1273
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
1274
1274
  var _newObject, newObject;
1275
- return _regenerator.default.wrap(function _callee4$(_context4) {
1275
+ return _regenerator.default.wrap(function (_context4) {
1276
1276
  while (1) switch (_context4.prev = _context4.next) {
1277
1277
  case 0:
1278
1278
  if (!_this.attributes.id) {
1279
- _context4.next = 6;
1279
+ _context4.next = 2;
1280
1280
  break;
1281
1281
  }
1282
- _context4.next = 3;
1282
+ _context4.next = 1;
1283
1283
  return _this.update(_this.attributes);
1284
- case 3:
1284
+ case 1:
1285
1285
  _newObject = _context4.sent;
1286
1286
  _this.attributes = _objectSpread({}, _newObject.attributes);
1287
1287
  return _context4.abrupt("return", true);
1288
- case 6:
1289
- _context4.next = 8;
1288
+ case 2:
1289
+ _context4.next = 3;
1290
1290
  return RemoteServer.create(_this.attributes, _this.options);
1291
- case 8:
1291
+ case 3:
1292
1292
  newObject = _context4.sent;
1293
1293
  _this.attributes = _objectSpread({}, newObject.attributes);
1294
1294
  return _context4.abrupt("return", true);
1295
- case 11:
1295
+ case 4:
1296
1296
  case "end":
1297
1297
  return _context4.stop();
1298
1298
  }
@@ -1324,31 +1324,31 @@ _RemoteServer = RemoteServer;
1324
1324
  options,
1325
1325
  response,
1326
1326
  _args5 = arguments;
1327
- return _regenerator.default.wrap(function _callee5$(_context5) {
1327
+ return _regenerator.default.wrap(function (_context5) {
1328
1328
  while (1) switch (_context5.prev = _context5.next) {
1329
1329
  case 0:
1330
1330
  params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
1331
1331
  options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
1332
1332
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
1333
- _context5.next = 4;
1333
+ _context5.next = 1;
1334
1334
  break;
1335
1335
  }
1336
1336
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
1337
- case 4:
1337
+ case 1:
1338
1338
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
1339
- _context5.next = 6;
1339
+ _context5.next = 2;
1340
1340
  break;
1341
1341
  }
1342
1342
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
1343
- case 6:
1344
- _context5.next = 8;
1343
+ case 2:
1344
+ _context5.next = 3;
1345
1345
  return _Api.default.sendRequest('/remote_servers', 'GET', params, options);
1346
- case 8:
1346
+ case 3:
1347
1347
  response = _context5.sent;
1348
1348
  return _context5.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
1349
1349
  return new _RemoteServer(obj, options);
1350
1350
  })) || []);
1351
- case 10:
1351
+ case 4:
1352
1352
  case "end":
1353
1353
  return _context5.stop();
1354
1354
  }
@@ -1367,36 +1367,36 @@ _RemoteServer = RemoteServer;
1367
1367
  options,
1368
1368
  response,
1369
1369
  _args6 = arguments;
1370
- return _regenerator.default.wrap(function _callee6$(_context6) {
1370
+ return _regenerator.default.wrap(function (_context6) {
1371
1371
  while (1) switch (_context6.prev = _context6.next) {
1372
1372
  case 0:
1373
1373
  params = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
1374
1374
  options = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : {};
1375
1375
  if ((0, _utils.isObject)(params)) {
1376
- _context6.next = 4;
1376
+ _context6.next = 1;
1377
1377
  break;
1378
1378
  }
1379
1379
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
1380
- case 4:
1380
+ case 1:
1381
1381
  params.id = id;
1382
1382
  if (params.id) {
1383
- _context6.next = 7;
1383
+ _context6.next = 2;
1384
1384
  break;
1385
1385
  }
1386
1386
  throw new errors.MissingParameterError('Parameter missing: id');
1387
- case 7:
1387
+ case 2:
1388
1388
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
1389
- _context6.next = 9;
1389
+ _context6.next = 3;
1390
1390
  break;
1391
1391
  }
1392
1392
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
1393
- case 9:
1394
- _context6.next = 11;
1393
+ case 3:
1394
+ _context6.next = 4;
1395
1395
  return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'GET', params, options);
1396
- case 11:
1396
+ case 4:
1397
1397
  response = _context6.sent;
1398
1398
  return _context6.abrupt("return", new _RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
1399
- case 13:
1399
+ case 5:
1400
1400
  case "end":
1401
1401
  return _context6.stop();
1402
1402
  }
@@ -1420,37 +1420,37 @@ _RemoteServer = RemoteServer;
1420
1420
  response,
1421
1421
  RemoteServerConfigurationFile,
1422
1422
  _args7 = arguments;
1423
- return _regenerator.default.wrap(function _callee7$(_context7) {
1423
+ return _regenerator.default.wrap(function (_context7) {
1424
1424
  while (1) switch (_context7.prev = _context7.next) {
1425
1425
  case 0:
1426
1426
  params = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
1427
1427
  options = _args7.length > 2 && _args7[2] !== undefined ? _args7[2] : {};
1428
1428
  if ((0, _utils.isObject)(params)) {
1429
- _context7.next = 4;
1429
+ _context7.next = 1;
1430
1430
  break;
1431
1431
  }
1432
1432
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
1433
- case 4:
1433
+ case 1:
1434
1434
  params.id = id;
1435
1435
  if (params.id) {
1436
- _context7.next = 7;
1436
+ _context7.next = 2;
1437
1437
  break;
1438
1438
  }
1439
1439
  throw new errors.MissingParameterError('Parameter missing: id');
1440
- case 7:
1440
+ case 2:
1441
1441
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
1442
- _context7.next = 9;
1442
+ _context7.next = 3;
1443
1443
  break;
1444
1444
  }
1445
1445
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
1446
- case 9:
1447
- _context7.next = 11;
1446
+ case 3:
1447
+ _context7.next = 4;
1448
1448
  return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id), "/configuration_file"), 'GET', params, options);
1449
- case 11:
1449
+ case 4:
1450
1450
  response = _context7.sent;
1451
1451
  RemoteServerConfigurationFile = require('./RemoteServerConfigurationFile.js').default;
1452
1452
  return _context7.abrupt("return", new RemoteServerConfigurationFile(response === null || response === void 0 ? void 0 : response.data, options));
1453
- case 14:
1453
+ case 5:
1454
1454
  case "end":
1455
1455
  return _context7.stop();
1456
1456
  }
@@ -1535,401 +1535,401 @@ _RemoteServer = RemoteServer;
1535
1535
  options,
1536
1536
  response,
1537
1537
  _args8 = arguments;
1538
- return _regenerator.default.wrap(function _callee8$(_context8) {
1538
+ return _regenerator.default.wrap(function (_context8) {
1539
1539
  while (1) switch (_context8.prev = _context8.next) {
1540
1540
  case 0:
1541
1541
  params = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
1542
1542
  options = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};
1543
1543
  if (!(params.password && !(0, _utils.isString)(params.password))) {
1544
- _context8.next = 4;
1544
+ _context8.next = 1;
1545
1545
  break;
1546
1546
  }
1547
1547
  throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params.password)));
1548
- case 4:
1548
+ case 1:
1549
1549
  if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
1550
- _context8.next = 6;
1550
+ _context8.next = 2;
1551
1551
  break;
1552
1552
  }
1553
1553
  throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
1554
- case 6:
1554
+ case 2:
1555
1555
  if (!(params.private_key_passphrase && !(0, _utils.isString)(params.private_key_passphrase))) {
1556
- _context8.next = 8;
1556
+ _context8.next = 3;
1557
1557
  break;
1558
1558
  }
1559
1559
  throw new errors.InvalidParameterError("Bad parameter: private_key_passphrase must be of type String, received ".concat((0, _utils.getType)(params.private_key_passphrase)));
1560
- case 8:
1560
+ case 3:
1561
1561
  if (!(params.ssl_certificate && !(0, _utils.isString)(params.ssl_certificate))) {
1562
- _context8.next = 10;
1562
+ _context8.next = 4;
1563
1563
  break;
1564
1564
  }
1565
1565
  throw new errors.InvalidParameterError("Bad parameter: ssl_certificate must be of type String, received ".concat((0, _utils.getType)(params.ssl_certificate)));
1566
- case 10:
1566
+ case 4:
1567
1567
  if (!(params.aws_secret_key && !(0, _utils.isString)(params.aws_secret_key))) {
1568
- _context8.next = 12;
1568
+ _context8.next = 5;
1569
1569
  break;
1570
1570
  }
1571
1571
  throw new errors.InvalidParameterError("Bad parameter: aws_secret_key must be of type String, received ".concat((0, _utils.getType)(params.aws_secret_key)));
1572
- case 12:
1572
+ case 5:
1573
1573
  if (!(params.azure_blob_storage_access_key && !(0, _utils.isString)(params.azure_blob_storage_access_key))) {
1574
- _context8.next = 14;
1574
+ _context8.next = 6;
1575
1575
  break;
1576
1576
  }
1577
1577
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_access_key must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_access_key)));
1578
- case 14:
1578
+ case 6:
1579
1579
  if (!(params.azure_blob_storage_sas_token && !(0, _utils.isString)(params.azure_blob_storage_sas_token))) {
1580
- _context8.next = 16;
1580
+ _context8.next = 7;
1581
1581
  break;
1582
1582
  }
1583
1583
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_sas_token)));
1584
- case 16:
1584
+ case 7:
1585
1585
  if (!(params.azure_files_storage_access_key && !(0, _utils.isString)(params.azure_files_storage_access_key))) {
1586
- _context8.next = 18;
1586
+ _context8.next = 8;
1587
1587
  break;
1588
1588
  }
1589
1589
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_access_key must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_access_key)));
1590
- case 18:
1590
+ case 8:
1591
1591
  if (!(params.azure_files_storage_sas_token && !(0, _utils.isString)(params.azure_files_storage_sas_token))) {
1592
- _context8.next = 20;
1592
+ _context8.next = 9;
1593
1593
  break;
1594
1594
  }
1595
1595
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_sas_token)));
1596
- case 20:
1596
+ case 9:
1597
1597
  if (!(params.backblaze_b2_application_key && !(0, _utils.isString)(params.backblaze_b2_application_key))) {
1598
- _context8.next = 22;
1598
+ _context8.next = 10;
1599
1599
  break;
1600
1600
  }
1601
1601
  throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_application_key must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_application_key)));
1602
- case 22:
1602
+ case 10:
1603
1603
  if (!(params.backblaze_b2_key_id && !(0, _utils.isString)(params.backblaze_b2_key_id))) {
1604
- _context8.next = 24;
1604
+ _context8.next = 11;
1605
1605
  break;
1606
1606
  }
1607
1607
  throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_key_id must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_key_id)));
1608
- case 24:
1608
+ case 11:
1609
1609
  if (!(params.cloudflare_secret_key && !(0, _utils.isString)(params.cloudflare_secret_key))) {
1610
- _context8.next = 26;
1610
+ _context8.next = 12;
1611
1611
  break;
1612
1612
  }
1613
1613
  throw new errors.InvalidParameterError("Bad parameter: cloudflare_secret_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_secret_key)));
1614
- case 26:
1614
+ case 12:
1615
1615
  if (!(params.filebase_secret_key && !(0, _utils.isString)(params.filebase_secret_key))) {
1616
- _context8.next = 28;
1616
+ _context8.next = 13;
1617
1617
  break;
1618
1618
  }
1619
1619
  throw new errors.InvalidParameterError("Bad parameter: filebase_secret_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_secret_key)));
1620
- case 28:
1620
+ case 13:
1621
1621
  if (!(params.google_cloud_storage_credentials_json && !(0, _utils.isString)(params.google_cloud_storage_credentials_json))) {
1622
- _context8.next = 30;
1622
+ _context8.next = 14;
1623
1623
  break;
1624
1624
  }
1625
1625
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_credentials_json must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_credentials_json)));
1626
- case 30:
1626
+ case 14:
1627
1627
  if (!(params.google_cloud_storage_s3_compatible_secret_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_secret_key))) {
1628
- _context8.next = 32;
1628
+ _context8.next = 15;
1629
1629
  break;
1630
1630
  }
1631
1631
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_s3_compatible_secret_key)));
1632
- case 32:
1632
+ case 15:
1633
1633
  if (!(params.linode_secret_key && !(0, _utils.isString)(params.linode_secret_key))) {
1634
- _context8.next = 34;
1634
+ _context8.next = 16;
1635
1635
  break;
1636
1636
  }
1637
1637
  throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params.linode_secret_key)));
1638
- case 34:
1638
+ case 16:
1639
1639
  if (!(params.rackspace_api_key && !(0, _utils.isString)(params.rackspace_api_key))) {
1640
- _context8.next = 36;
1640
+ _context8.next = 17;
1641
1641
  break;
1642
1642
  }
1643
1643
  throw new errors.InvalidParameterError("Bad parameter: rackspace_api_key must be of type String, received ".concat((0, _utils.getType)(params.rackspace_api_key)));
1644
- case 36:
1644
+ case 17:
1645
1645
  if (!(params.s3_compatible_secret_key && !(0, _utils.isString)(params.s3_compatible_secret_key))) {
1646
- _context8.next = 38;
1646
+ _context8.next = 18;
1647
1647
  break;
1648
1648
  }
1649
1649
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_secret_key)));
1650
- case 38:
1650
+ case 18:
1651
1651
  if (!(params.wasabi_secret_key && !(0, _utils.isString)(params.wasabi_secret_key))) {
1652
- _context8.next = 40;
1652
+ _context8.next = 19;
1653
1653
  break;
1654
1654
  }
1655
1655
  throw new errors.InvalidParameterError("Bad parameter: wasabi_secret_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_secret_key)));
1656
- case 40:
1656
+ case 19:
1657
1657
  if (!(params.aws_access_key && !(0, _utils.isString)(params.aws_access_key))) {
1658
- _context8.next = 42;
1658
+ _context8.next = 20;
1659
1659
  break;
1660
1660
  }
1661
1661
  throw new errors.InvalidParameterError("Bad parameter: aws_access_key must be of type String, received ".concat((0, _utils.getType)(params.aws_access_key)));
1662
- case 42:
1662
+ case 20:
1663
1663
  if (!(params.azure_blob_storage_account && !(0, _utils.isString)(params.azure_blob_storage_account))) {
1664
- _context8.next = 44;
1664
+ _context8.next = 21;
1665
1665
  break;
1666
1666
  }
1667
1667
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_account)));
1668
- case 44:
1668
+ case 21:
1669
1669
  if (!(params.azure_blob_storage_container && !(0, _utils.isString)(params.azure_blob_storage_container))) {
1670
- _context8.next = 46;
1670
+ _context8.next = 22;
1671
1671
  break;
1672
1672
  }
1673
1673
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_container)));
1674
- case 46:
1674
+ case 22:
1675
1675
  if (!(params.azure_blob_storage_dns_suffix && !(0, _utils.isString)(params.azure_blob_storage_dns_suffix))) {
1676
- _context8.next = 48;
1676
+ _context8.next = 23;
1677
1677
  break;
1678
1678
  }
1679
1679
  throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_dns_suffix must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_dns_suffix)));
1680
- case 48:
1680
+ case 23:
1681
1681
  if (!(params.azure_files_storage_account && !(0, _utils.isString)(params.azure_files_storage_account))) {
1682
- _context8.next = 50;
1682
+ _context8.next = 24;
1683
1683
  break;
1684
1684
  }
1685
1685
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_account)));
1686
- case 50:
1686
+ case 24:
1687
1687
  if (!(params.azure_files_storage_dns_suffix && !(0, _utils.isString)(params.azure_files_storage_dns_suffix))) {
1688
- _context8.next = 52;
1688
+ _context8.next = 25;
1689
1689
  break;
1690
1690
  }
1691
1691
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_dns_suffix must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_dns_suffix)));
1692
- case 52:
1692
+ case 25:
1693
1693
  if (!(params.azure_files_storage_share_name && !(0, _utils.isString)(params.azure_files_storage_share_name))) {
1694
- _context8.next = 54;
1694
+ _context8.next = 26;
1695
1695
  break;
1696
1696
  }
1697
1697
  throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_share_name must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_share_name)));
1698
- case 54:
1698
+ case 26:
1699
1699
  if (!(params.backblaze_b2_bucket && !(0, _utils.isString)(params.backblaze_b2_bucket))) {
1700
- _context8.next = 56;
1700
+ _context8.next = 27;
1701
1701
  break;
1702
1702
  }
1703
1703
  throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_bucket)));
1704
- case 56:
1704
+ case 27:
1705
1705
  if (!(params.backblaze_b2_s3_endpoint && !(0, _utils.isString)(params.backblaze_b2_s3_endpoint))) {
1706
- _context8.next = 58;
1706
+ _context8.next = 28;
1707
1707
  break;
1708
1708
  }
1709
1709
  throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_s3_endpoint)));
1710
- case 58:
1710
+ case 28:
1711
1711
  if (!(params.cloudflare_access_key && !(0, _utils.isString)(params.cloudflare_access_key))) {
1712
- _context8.next = 60;
1712
+ _context8.next = 29;
1713
1713
  break;
1714
1714
  }
1715
1715
  throw new errors.InvalidParameterError("Bad parameter: cloudflare_access_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_access_key)));
1716
- case 60:
1716
+ case 29:
1717
1717
  if (!(params.cloudflare_bucket && !(0, _utils.isString)(params.cloudflare_bucket))) {
1718
- _context8.next = 62;
1718
+ _context8.next = 30;
1719
1719
  break;
1720
1720
  }
1721
1721
  throw new errors.InvalidParameterError("Bad parameter: cloudflare_bucket must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_bucket)));
1722
- case 62:
1722
+ case 30:
1723
1723
  if (!(params.cloudflare_endpoint && !(0, _utils.isString)(params.cloudflare_endpoint))) {
1724
- _context8.next = 64;
1724
+ _context8.next = 31;
1725
1725
  break;
1726
1726
  }
1727
1727
  throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_endpoint)));
1728
- case 64:
1728
+ case 31:
1729
1729
  if (!(params.filebase_access_key && !(0, _utils.isString)(params.filebase_access_key))) {
1730
- _context8.next = 66;
1730
+ _context8.next = 32;
1731
1731
  break;
1732
1732
  }
1733
1733
  throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_access_key)));
1734
- case 66:
1734
+ case 32:
1735
1735
  if (!(params.filebase_bucket && !(0, _utils.isString)(params.filebase_bucket))) {
1736
- _context8.next = 68;
1736
+ _context8.next = 33;
1737
1737
  break;
1738
1738
  }
1739
1739
  throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params.filebase_bucket)));
1740
- case 68:
1740
+ case 33:
1741
1741
  if (!(params.files_agent_permission_set && !(0, _utils.isString)(params.files_agent_permission_set))) {
1742
- _context8.next = 70;
1742
+ _context8.next = 34;
1743
1743
  break;
1744
1744
  }
1745
1745
  throw new errors.InvalidParameterError("Bad parameter: files_agent_permission_set must be of type String, received ".concat((0, _utils.getType)(params.files_agent_permission_set)));
1746
- case 70:
1746
+ case 34:
1747
1747
  if (!(params.files_agent_root && !(0, _utils.isString)(params.files_agent_root))) {
1748
- _context8.next = 72;
1748
+ _context8.next = 35;
1749
1749
  break;
1750
1750
  }
1751
1751
  throw new errors.InvalidParameterError("Bad parameter: files_agent_root must be of type String, received ".concat((0, _utils.getType)(params.files_agent_root)));
1752
- case 72:
1752
+ case 35:
1753
1753
  if (!(params.files_agent_version && !(0, _utils.isString)(params.files_agent_version))) {
1754
- _context8.next = 74;
1754
+ _context8.next = 36;
1755
1755
  break;
1756
1756
  }
1757
1757
  throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
1758
- case 74:
1758
+ case 36:
1759
1759
  if (!(params.google_cloud_storage_bucket && !(0, _utils.isString)(params.google_cloud_storage_bucket))) {
1760
- _context8.next = 76;
1760
+ _context8.next = 37;
1761
1761
  break;
1762
1762
  }
1763
1763
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_bucket)));
1764
- case 76:
1764
+ case 37:
1765
1765
  if (!(params.google_cloud_storage_project_id && !(0, _utils.isString)(params.google_cloud_storage_project_id))) {
1766
- _context8.next = 78;
1766
+ _context8.next = 38;
1767
1767
  break;
1768
1768
  }
1769
1769
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_project_id)));
1770
- case 78:
1770
+ case 38:
1771
1771
  if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
1772
- _context8.next = 80;
1772
+ _context8.next = 39;
1773
1773
  break;
1774
1774
  }
1775
1775
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_s3_compatible_access_key)));
1776
- case 80:
1776
+ case 39:
1777
1777
  if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
1778
- _context8.next = 82;
1778
+ _context8.next = 40;
1779
1779
  break;
1780
1780
  }
1781
1781
  throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
1782
- case 82:
1782
+ case 40:
1783
1783
  if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
1784
- _context8.next = 84;
1784
+ _context8.next = 41;
1785
1785
  break;
1786
1786
  }
1787
1787
  throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
1788
- case 84:
1788
+ case 41:
1789
1789
  if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
1790
- _context8.next = 86;
1790
+ _context8.next = 42;
1791
1791
  break;
1792
1792
  }
1793
1793
  throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
1794
- case 86:
1794
+ case 42:
1795
1795
  if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
1796
- _context8.next = 88;
1796
+ _context8.next = 43;
1797
1797
  break;
1798
1798
  }
1799
1799
  throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
1800
- case 88:
1800
+ case 43:
1801
1801
  if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
1802
- _context8.next = 90;
1802
+ _context8.next = 44;
1803
1803
  break;
1804
1804
  }
1805
1805
  throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
1806
- case 90:
1806
+ case 44:
1807
1807
  if (!(params.name && !(0, _utils.isString)(params.name))) {
1808
- _context8.next = 92;
1808
+ _context8.next = 45;
1809
1809
  break;
1810
1810
  }
1811
1811
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
1812
- case 92:
1812
+ case 45:
1813
1813
  if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
1814
- _context8.next = 94;
1814
+ _context8.next = 46;
1815
1815
  break;
1816
1816
  }
1817
1817
  throw new errors.InvalidParameterError("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(params.one_drive_account_type)));
1818
- case 94:
1818
+ case 46:
1819
1819
  if (!(params.port && !(0, _utils.isInt)(params.port))) {
1820
- _context8.next = 96;
1820
+ _context8.next = 47;
1821
1821
  break;
1822
1822
  }
1823
1823
  throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
1824
- case 96:
1824
+ case 47:
1825
1825
  if (!(params.rackspace_container && !(0, _utils.isString)(params.rackspace_container))) {
1826
- _context8.next = 98;
1826
+ _context8.next = 48;
1827
1827
  break;
1828
1828
  }
1829
1829
  throw new errors.InvalidParameterError("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(params.rackspace_container)));
1830
- case 98:
1830
+ case 48:
1831
1831
  if (!(params.rackspace_region && !(0, _utils.isString)(params.rackspace_region))) {
1832
- _context8.next = 100;
1832
+ _context8.next = 49;
1833
1833
  break;
1834
1834
  }
1835
1835
  throw new errors.InvalidParameterError("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(params.rackspace_region)));
1836
- case 100:
1836
+ case 49:
1837
1837
  if (!(params.rackspace_username && !(0, _utils.isString)(params.rackspace_username))) {
1838
- _context8.next = 102;
1838
+ _context8.next = 50;
1839
1839
  break;
1840
1840
  }
1841
1841
  throw new errors.InvalidParameterError("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(params.rackspace_username)));
1842
- case 102:
1842
+ case 50:
1843
1843
  if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
1844
- _context8.next = 104;
1844
+ _context8.next = 51;
1845
1845
  break;
1846
1846
  }
1847
1847
  throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
1848
- case 104:
1848
+ case 51:
1849
1849
  if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
1850
- _context8.next = 106;
1850
+ _context8.next = 52;
1851
1851
  break;
1852
1852
  }
1853
1853
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_access_key)));
1854
- case 106:
1854
+ case 52:
1855
1855
  if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
1856
- _context8.next = 108;
1856
+ _context8.next = 53;
1857
1857
  break;
1858
1858
  }
1859
1859
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
1860
- case 108:
1860
+ case 53:
1861
1861
  if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
1862
- _context8.next = 110;
1862
+ _context8.next = 54;
1863
1863
  break;
1864
1864
  }
1865
1865
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
1866
- case 110:
1866
+ case 54:
1867
1867
  if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
1868
- _context8.next = 112;
1868
+ _context8.next = 55;
1869
1869
  break;
1870
1870
  }
1871
1871
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
1872
- case 112:
1872
+ case 55:
1873
1873
  if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
1874
- _context8.next = 114;
1874
+ _context8.next = 56;
1875
1875
  break;
1876
1876
  }
1877
1877
  throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
1878
- case 114:
1878
+ case 56:
1879
1879
  if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
1880
- _context8.next = 116;
1880
+ _context8.next = 57;
1881
1881
  break;
1882
1882
  }
1883
1883
  throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
1884
- case 116:
1884
+ case 57:
1885
1885
  if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
1886
- _context8.next = 118;
1886
+ _context8.next = 58;
1887
1887
  break;
1888
1888
  }
1889
1889
  throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
1890
- case 118:
1890
+ case 58:
1891
1891
  if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
1892
- _context8.next = 120;
1892
+ _context8.next = 59;
1893
1893
  break;
1894
1894
  }
1895
1895
  throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
1896
- case 120:
1896
+ case 59:
1897
1897
  if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
1898
- _context8.next = 122;
1898
+ _context8.next = 60;
1899
1899
  break;
1900
1900
  }
1901
1901
  throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
1902
- case 122:
1902
+ case 60:
1903
1903
  if (!(params.username && !(0, _utils.isString)(params.username))) {
1904
- _context8.next = 124;
1904
+ _context8.next = 61;
1905
1905
  break;
1906
1906
  }
1907
1907
  throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
1908
- case 124:
1908
+ case 61:
1909
1909
  if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
1910
- _context8.next = 126;
1910
+ _context8.next = 62;
1911
1911
  break;
1912
1912
  }
1913
1913
  throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
1914
- case 126:
1914
+ case 62:
1915
1915
  if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
1916
- _context8.next = 128;
1916
+ _context8.next = 63;
1917
1917
  break;
1918
1918
  }
1919
1919
  throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
1920
- case 128:
1920
+ case 63:
1921
1921
  if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
1922
- _context8.next = 130;
1922
+ _context8.next = 64;
1923
1923
  break;
1924
1924
  }
1925
1925
  throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
1926
- case 130:
1927
- _context8.next = 132;
1926
+ case 64:
1927
+ _context8.next = 65;
1928
1928
  return _Api.default.sendRequest('/remote_servers', 'POST', params, options);
1929
- case 132:
1929
+ case 65:
1930
1930
  response = _context8.sent;
1931
1931
  return _context8.abrupt("return", new _RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
1932
- case 134:
1932
+ case 66:
1933
1933
  case "end":
1934
1934
  return _context8.stop();
1935
1935
  }