files.com 1.0.185 → 1.0.188

Sign up to get free protection for your applications and to get access to all the features.
@@ -227,12 +227,36 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
227
227
  (0, _defineProperty2.default)(this, "setAzureBlobStorageAccount", function (value) {
228
228
  _this.attributes.azure_blob_storage_account = value;
229
229
  });
230
+ (0, _defineProperty2.default)(this, "getAzureBlobStorageSasToken", function () {
231
+ return _this.attributes.azure_blob_storage_sas_token;
232
+ });
233
+ (0, _defineProperty2.default)(this, "setAzureBlobStorageSasToken", function (value) {
234
+ _this.attributes.azure_blob_storage_sas_token = value;
235
+ });
230
236
  (0, _defineProperty2.default)(this, "getAzureBlobStorageContainer", function () {
231
237
  return _this.attributes.azure_blob_storage_container;
232
238
  });
233
239
  (0, _defineProperty2.default)(this, "setAzureBlobStorageContainer", function (value) {
234
240
  _this.attributes.azure_blob_storage_container = value;
235
241
  });
242
+ (0, _defineProperty2.default)(this, "getAzureFilesStorageAccount", function () {
243
+ return _this.attributes.azure_files_storage_account;
244
+ });
245
+ (0, _defineProperty2.default)(this, "setAzureFilesStorageAccount", function (value) {
246
+ _this.attributes.azure_files_storage_account = value;
247
+ });
248
+ (0, _defineProperty2.default)(this, "getAzureFilesStorageSasToken", function () {
249
+ return _this.attributes.azure_files_storage_sas_token;
250
+ });
251
+ (0, _defineProperty2.default)(this, "setAzureFilesStorageSasToken", function (value) {
252
+ _this.attributes.azure_files_storage_sas_token = value;
253
+ });
254
+ (0, _defineProperty2.default)(this, "getAzureFilesStorageShareName", function () {
255
+ return _this.attributes.azure_files_storage_share_name;
256
+ });
257
+ (0, _defineProperty2.default)(this, "setAzureFilesStorageShareName", function (value) {
258
+ _this.attributes.azure_files_storage_share_name = value;
259
+ });
236
260
  (0, _defineProperty2.default)(this, "getS3CompatibleBucket", function () {
237
261
  return _this.attributes.s3_compatible_bucket;
238
262
  });
@@ -329,6 +353,12 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
329
353
  (0, _defineProperty2.default)(this, "setAzureBlobStorageAccessKey", function (value) {
330
354
  _this.attributes.azure_blob_storage_access_key = value;
331
355
  });
356
+ (0, _defineProperty2.default)(this, "getAzureFilesStorageAccessKey", function () {
357
+ return _this.attributes.azure_files_storage_access_key;
358
+ });
359
+ (0, _defineProperty2.default)(this, "setAzureFilesStorageAccessKey", function (value) {
360
+ _this.attributes.azure_files_storage_access_key = value;
361
+ });
332
362
  (0, _defineProperty2.default)(this, "getS3CompatibleSecretKey", function () {
333
363
  return _this.attributes.s3_compatible_secret_key;
334
364
  });
@@ -467,256 +497,296 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
467
497
  throw new Error("Bad parameter: azure_blob_storage_access_key must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_access_key)));
468
498
 
469
499
  case 32:
470
- if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
500
+ if (!(params['azure_files_storage_access_key'] && !(0, _utils.isString)(params['azure_files_storage_access_key']))) {
471
501
  _context.next = 34;
472
502
  break;
473
503
  }
474
504
 
475
- throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
505
+ throw new Error("Bad parameter: azure_files_storage_access_key must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_access_key)));
476
506
 
477
507
  case 34:
478
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
508
+ if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
479
509
  _context.next = 36;
480
510
  break;
481
511
  }
482
512
 
483
- throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
513
+ throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
484
514
 
485
515
  case 36:
486
- if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
516
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
487
517
  _context.next = 38;
488
518
  break;
489
519
  }
490
520
 
491
- throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
521
+ throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
492
522
 
493
523
  case 38:
494
- if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
524
+ if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
495
525
  _context.next = 40;
496
526
  break;
497
527
  }
498
528
 
499
- throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
529
+ throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
500
530
 
501
531
  case 40:
502
- if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
532
+ if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
503
533
  _context.next = 42;
504
534
  break;
505
535
  }
506
536
 
507
- throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
537
+ throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
508
538
 
509
539
  case 42:
510
- if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
540
+ if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
511
541
  _context.next = 44;
512
542
  break;
513
543
  }
514
544
 
515
- throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
545
+ throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
516
546
 
517
547
  case 44:
518
- if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
548
+ if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
519
549
  _context.next = 46;
520
550
  break;
521
551
  }
522
552
 
523
- throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
553
+ throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
524
554
 
525
555
  case 46:
526
- if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
556
+ if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
527
557
  _context.next = 48;
528
558
  break;
529
559
  }
530
560
 
531
- throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
561
+ throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
532
562
 
533
563
  case 48:
534
- if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
564
+ if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
535
565
  _context.next = 50;
536
566
  break;
537
567
  }
538
568
 
539
- throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
569
+ throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
540
570
 
541
571
  case 50:
542
- if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
572
+ if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
543
573
  _context.next = 52;
544
574
  break;
545
575
  }
546
576
 
547
- throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
577
+ throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
548
578
 
549
579
  case 52:
550
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
580
+ if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
551
581
  _context.next = 54;
552
582
  break;
553
583
  }
554
584
 
555
- throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
585
+ throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
556
586
 
557
587
  case 54:
558
- if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
588
+ if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
559
589
  _context.next = 56;
560
590
  break;
561
591
  }
562
592
 
563
- throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
593
+ throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
564
594
 
565
595
  case 56:
566
- if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
596
+ if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
567
597
  _context.next = 58;
568
598
  break;
569
599
  }
570
600
 
571
- throw new Error("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_project_id)));
601
+ throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
572
602
 
573
603
  case 58:
574
- if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
604
+ if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
575
605
  _context.next = 60;
576
606
  break;
577
607
  }
578
608
 
579
- throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
609
+ throw new Error("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_project_id)));
580
610
 
581
611
  case 60:
582
- if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
612
+ if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
583
613
  _context.next = 62;
584
614
  break;
585
615
  }
586
616
 
587
- throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
617
+ throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
588
618
 
589
619
  case 62:
590
- if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
620
+ if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
591
621
  _context.next = 64;
592
622
  break;
593
623
  }
594
624
 
595
- throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
625
+ throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
596
626
 
597
627
  case 64:
598
- if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
628
+ if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
599
629
  _context.next = 66;
600
630
  break;
601
631
  }
602
632
 
603
- throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
633
+ throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
604
634
 
605
635
  case 66:
606
- if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
636
+ if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
607
637
  _context.next = 68;
608
638
  break;
609
639
  }
610
640
 
611
- throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
641
+ throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
612
642
 
613
643
  case 68:
614
- if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
644
+ if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
615
645
  _context.next = 70;
616
646
  break;
617
647
  }
618
648
 
619
- throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
649
+ throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
620
650
 
621
651
  case 70:
622
- if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
652
+ if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
623
653
  _context.next = 72;
624
654
  break;
625
655
  }
626
656
 
627
- throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
657
+ throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
628
658
 
629
659
  case 72:
630
- if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
660
+ if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
631
661
  _context.next = 74;
632
662
  break;
633
663
  }
634
664
 
635
- throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
665
+ throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
636
666
 
637
667
  case 74:
638
- if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
668
+ if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
639
669
  _context.next = 76;
640
670
  break;
641
671
  }
642
672
 
643
- throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
673
+ throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
644
674
 
645
675
  case 76:
646
- if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
676
+ if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
647
677
  _context.next = 78;
648
678
  break;
649
679
  }
650
680
 
651
- throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
681
+ throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
652
682
 
653
683
  case 78:
654
- if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
684
+ if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
655
685
  _context.next = 80;
656
686
  break;
657
687
  }
658
688
 
659
- throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
689
+ throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
660
690
 
661
691
  case 80:
662
- if (!(params['s3_compatible_endpoint'] && !(0, _utils.isString)(params['s3_compatible_endpoint']))) {
692
+ if (!(params['azure_blob_storage_sas_token'] && !(0, _utils.isString)(params['azure_blob_storage_sas_token']))) {
663
693
  _context.next = 82;
664
694
  break;
665
695
  }
666
696
 
667
- throw new Error("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(s3_compatible_endpoint)));
697
+ throw new Error("Bad parameter: azure_blob_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_sas_token)));
668
698
 
669
699
  case 82:
670
- if (!(params['s3_compatible_region'] && !(0, _utils.isString)(params['s3_compatible_region']))) {
700
+ if (!(params['azure_files_storage_account'] && !(0, _utils.isString)(params['azure_files_storage_account']))) {
671
701
  _context.next = 84;
672
702
  break;
673
703
  }
674
704
 
675
- throw new Error("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(s3_compatible_region)));
705
+ throw new Error("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_account)));
676
706
 
677
707
  case 84:
678
- if (!(params['s3_compatible_access_key'] && !(0, _utils.isString)(params['s3_compatible_access_key']))) {
708
+ if (!(params['azure_files_storage_share_name'] && !(0, _utils.isString)(params['azure_files_storage_share_name']))) {
679
709
  _context.next = 86;
680
710
  break;
681
711
  }
682
712
 
683
- throw new Error("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_access_key)));
713
+ throw new Error("Bad parameter: azure_files_storage_share_name must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_share_name)));
684
714
 
685
715
  case 86:
686
- if (!(params['s3_compatible_secret_key'] && !(0, _utils.isString)(params['s3_compatible_secret_key']))) {
716
+ if (!(params['azure_files_storage_sas_token'] && !(0, _utils.isString)(params['azure_files_storage_sas_token']))) {
687
717
  _context.next = 88;
688
718
  break;
689
719
  }
690
720
 
691
- throw new Error("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_secret_key)));
721
+ throw new Error("Bad parameter: azure_files_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_sas_token)));
692
722
 
693
723
  case 88:
694
- if (params['id']) {
724
+ if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
725
+ _context.next = 90;
726
+ break;
727
+ }
728
+
729
+ throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
730
+
731
+ case 90:
732
+ if (!(params['s3_compatible_endpoint'] && !(0, _utils.isString)(params['s3_compatible_endpoint']))) {
733
+ _context.next = 92;
734
+ break;
735
+ }
736
+
737
+ throw new Error("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(s3_compatible_endpoint)));
738
+
739
+ case 92:
740
+ if (!(params['s3_compatible_region'] && !(0, _utils.isString)(params['s3_compatible_region']))) {
695
741
  _context.next = 94;
696
742
  break;
697
743
  }
698
744
 
745
+ throw new Error("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(s3_compatible_region)));
746
+
747
+ case 94:
748
+ if (!(params['s3_compatible_access_key'] && !(0, _utils.isString)(params['s3_compatible_access_key']))) {
749
+ _context.next = 96;
750
+ break;
751
+ }
752
+
753
+ throw new Error("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_access_key)));
754
+
755
+ case 96:
756
+ if (!(params['s3_compatible_secret_key'] && !(0, _utils.isString)(params['s3_compatible_secret_key']))) {
757
+ _context.next = 98;
758
+ break;
759
+ }
760
+
761
+ throw new Error("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_secret_key)));
762
+
763
+ case 98:
764
+ if (params['id']) {
765
+ _context.next = 104;
766
+ break;
767
+ }
768
+
699
769
  if (!_this.attributes.id) {
700
- _context.next = 93;
770
+ _context.next = 103;
701
771
  break;
702
772
  }
703
773
 
704
774
  params['id'] = _this.id;
705
- _context.next = 94;
775
+ _context.next = 104;
706
776
  break;
707
777
 
708
- case 93:
778
+ case 103:
709
779
  throw new Error('Parameter missing: id');
710
780
 
711
- case 94:
712
- _context.next = 96;
781
+ case 104:
782
+ _context.next = 106;
713
783
  return _Api.default.sendRequest("/remote_servers/".concat(params['id']), 'PATCH', params, _this.options);
714
784
 
715
- case 96:
785
+ case 106:
716
786
  response = _context.sent;
717
787
  return _context.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
718
788
 
719
- case 98:
789
+ case 108:
720
790
  case "end":
721
791
  return _context.stop();
722
792
  }
@@ -1040,238 +1110,278 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
1040
1110
  throw new Error("Bad parameter: azure_blob_storage_access_key must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_access_key)));
1041
1111
 
1042
1112
  case 26:
1043
- if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
1113
+ if (!(params['azure_files_storage_access_key'] && !(0, _utils.isString)(params['azure_files_storage_access_key']))) {
1044
1114
  _context5.next = 28;
1045
1115
  break;
1046
1116
  }
1047
1117
 
1048
- throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
1118
+ throw new Error("Bad parameter: azure_files_storage_access_key must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_access_key)));
1049
1119
 
1050
1120
  case 28:
1051
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
1121
+ if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
1052
1122
  _context5.next = 30;
1053
1123
  break;
1054
1124
  }
1055
1125
 
1056
- throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
1126
+ throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
1057
1127
 
1058
1128
  case 30:
1059
- if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
1129
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
1060
1130
  _context5.next = 32;
1061
1131
  break;
1062
1132
  }
1063
1133
 
1064
- throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
1134
+ throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
1065
1135
 
1066
1136
  case 32:
1067
- if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
1137
+ if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
1068
1138
  _context5.next = 34;
1069
1139
  break;
1070
1140
  }
1071
1141
 
1072
- throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
1142
+ throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
1073
1143
 
1074
1144
  case 34:
1075
- if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
1145
+ if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
1076
1146
  _context5.next = 36;
1077
1147
  break;
1078
1148
  }
1079
1149
 
1080
- throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
1150
+ throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
1081
1151
 
1082
1152
  case 36:
1083
- if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
1153
+ if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
1084
1154
  _context5.next = 38;
1085
1155
  break;
1086
1156
  }
1087
1157
 
1088
- throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
1158
+ throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
1089
1159
 
1090
1160
  case 38:
1091
- if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
1161
+ if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
1092
1162
  _context5.next = 40;
1093
1163
  break;
1094
1164
  }
1095
1165
 
1096
- throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
1166
+ throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
1097
1167
 
1098
1168
  case 40:
1099
- if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
1169
+ if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
1100
1170
  _context5.next = 42;
1101
1171
  break;
1102
1172
  }
1103
1173
 
1104
- throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
1174
+ throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
1105
1175
 
1106
1176
  case 42:
1107
- if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
1177
+ if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
1108
1178
  _context5.next = 44;
1109
1179
  break;
1110
1180
  }
1111
1181
 
1112
- throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
1182
+ throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
1113
1183
 
1114
1184
  case 44:
1115
- if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
1185
+ if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
1116
1186
  _context5.next = 46;
1117
1187
  break;
1118
1188
  }
1119
1189
 
1120
- throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
1190
+ throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
1121
1191
 
1122
1192
  case 46:
1123
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
1193
+ if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
1124
1194
  _context5.next = 48;
1125
1195
  break;
1126
1196
  }
1127
1197
 
1128
- throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
1198
+ throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
1129
1199
 
1130
1200
  case 48:
1131
- if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
1201
+ if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
1132
1202
  _context5.next = 50;
1133
1203
  break;
1134
1204
  }
1135
1205
 
1136
- throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
1206
+ throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
1137
1207
 
1138
1208
  case 50:
1139
- if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
1209
+ if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
1140
1210
  _context5.next = 52;
1141
1211
  break;
1142
1212
  }
1143
1213
 
1144
- throw new Error("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_project_id)));
1214
+ throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
1145
1215
 
1146
1216
  case 52:
1147
- if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
1217
+ if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
1148
1218
  _context5.next = 54;
1149
1219
  break;
1150
1220
  }
1151
1221
 
1152
- throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
1222
+ throw new Error("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_project_id)));
1153
1223
 
1154
1224
  case 54:
1155
- if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
1225
+ if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
1156
1226
  _context5.next = 56;
1157
1227
  break;
1158
1228
  }
1159
1229
 
1160
- throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
1230
+ throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
1161
1231
 
1162
1232
  case 56:
1163
- if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
1233
+ if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
1164
1234
  _context5.next = 58;
1165
1235
  break;
1166
1236
  }
1167
1237
 
1168
- throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
1238
+ throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
1169
1239
 
1170
1240
  case 58:
1171
- if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
1241
+ if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
1172
1242
  _context5.next = 60;
1173
1243
  break;
1174
1244
  }
1175
1245
 
1176
- throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
1246
+ throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
1177
1247
 
1178
1248
  case 60:
1179
- if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
1249
+ if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
1180
1250
  _context5.next = 62;
1181
1251
  break;
1182
1252
  }
1183
1253
 
1184
- throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
1254
+ throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
1185
1255
 
1186
1256
  case 62:
1187
- if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
1257
+ if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
1188
1258
  _context5.next = 64;
1189
1259
  break;
1190
1260
  }
1191
1261
 
1192
- throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
1262
+ throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
1193
1263
 
1194
1264
  case 64:
1195
- if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
1265
+ if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
1196
1266
  _context5.next = 66;
1197
1267
  break;
1198
1268
  }
1199
1269
 
1200
- throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
1270
+ throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
1201
1271
 
1202
1272
  case 66:
1203
- if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
1273
+ if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
1204
1274
  _context5.next = 68;
1205
1275
  break;
1206
1276
  }
1207
1277
 
1208
- throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
1278
+ throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
1209
1279
 
1210
1280
  case 68:
1211
- if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
1281
+ if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
1212
1282
  _context5.next = 70;
1213
1283
  break;
1214
1284
  }
1215
1285
 
1216
- throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
1286
+ throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
1217
1287
 
1218
1288
  case 70:
1219
- if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
1289
+ if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
1220
1290
  _context5.next = 72;
1221
1291
  break;
1222
1292
  }
1223
1293
 
1224
- throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
1294
+ throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
1225
1295
 
1226
1296
  case 72:
1227
- if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
1297
+ if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
1228
1298
  _context5.next = 74;
1229
1299
  break;
1230
1300
  }
1231
1301
 
1232
- throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
1302
+ throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
1233
1303
 
1234
1304
  case 74:
1235
- if (!(params['s3_compatible_endpoint'] && !(0, _utils.isString)(params['s3_compatible_endpoint']))) {
1305
+ if (!(params['azure_blob_storage_sas_token'] && !(0, _utils.isString)(params['azure_blob_storage_sas_token']))) {
1236
1306
  _context5.next = 76;
1237
1307
  break;
1238
1308
  }
1239
1309
 
1240
- throw new Error("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(s3_compatible_endpoint)));
1310
+ throw new Error("Bad parameter: azure_blob_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_sas_token)));
1241
1311
 
1242
1312
  case 76:
1243
- if (!(params['s3_compatible_region'] && !(0, _utils.isString)(params['s3_compatible_region']))) {
1313
+ if (!(params['azure_files_storage_account'] && !(0, _utils.isString)(params['azure_files_storage_account']))) {
1244
1314
  _context5.next = 78;
1245
1315
  break;
1246
1316
  }
1247
1317
 
1248
- throw new Error("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(s3_compatible_region)));
1318
+ throw new Error("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_account)));
1249
1319
 
1250
1320
  case 78:
1251
- if (!(params['s3_compatible_access_key'] && !(0, _utils.isString)(params['s3_compatible_access_key']))) {
1321
+ if (!(params['azure_files_storage_share_name'] && !(0, _utils.isString)(params['azure_files_storage_share_name']))) {
1252
1322
  _context5.next = 80;
1253
1323
  break;
1254
1324
  }
1255
1325
 
1256
- throw new Error("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_access_key)));
1326
+ throw new Error("Bad parameter: azure_files_storage_share_name must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_share_name)));
1257
1327
 
1258
1328
  case 80:
1259
- if (!(params['s3_compatible_secret_key'] && !(0, _utils.isString)(params['s3_compatible_secret_key']))) {
1329
+ if (!(params['azure_files_storage_sas_token'] && !(0, _utils.isString)(params['azure_files_storage_sas_token']))) {
1260
1330
  _context5.next = 82;
1261
1331
  break;
1262
1332
  }
1263
1333
 
1264
- throw new Error("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_secret_key)));
1334
+ throw new Error("Bad parameter: azure_files_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_sas_token)));
1265
1335
 
1266
1336
  case 82:
1267
- _context5.next = 84;
1268
- return _Api.default.sendRequest("/remote_servers", 'POST', params, options);
1337
+ if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
1338
+ _context5.next = 84;
1339
+ break;
1340
+ }
1341
+
1342
+ throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
1269
1343
 
1270
1344
  case 84:
1345
+ if (!(params['s3_compatible_endpoint'] && !(0, _utils.isString)(params['s3_compatible_endpoint']))) {
1346
+ _context5.next = 86;
1347
+ break;
1348
+ }
1349
+
1350
+ throw new Error("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(s3_compatible_endpoint)));
1351
+
1352
+ case 86:
1353
+ if (!(params['s3_compatible_region'] && !(0, _utils.isString)(params['s3_compatible_region']))) {
1354
+ _context5.next = 88;
1355
+ break;
1356
+ }
1357
+
1358
+ throw new Error("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(s3_compatible_region)));
1359
+
1360
+ case 88:
1361
+ if (!(params['s3_compatible_access_key'] && !(0, _utils.isString)(params['s3_compatible_access_key']))) {
1362
+ _context5.next = 90;
1363
+ break;
1364
+ }
1365
+
1366
+ throw new Error("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_access_key)));
1367
+
1368
+ case 90:
1369
+ if (!(params['s3_compatible_secret_key'] && !(0, _utils.isString)(params['s3_compatible_secret_key']))) {
1370
+ _context5.next = 92;
1371
+ break;
1372
+ }
1373
+
1374
+ throw new Error("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_secret_key)));
1375
+
1376
+ case 92:
1377
+ _context5.next = 94;
1378
+ return _Api.default.sendRequest("/remote_servers", 'POST', params, options);
1379
+
1380
+ case 94:
1271
1381
  response = _context5.sent;
1272
1382
  return _context5.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
1273
1383
 
1274
- case 86:
1384
+ case 96:
1275
1385
  case "end":
1276
1386
  return _context5.stop();
1277
1387
  }