files.com 1.0.186 → 1.0.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_VERSION +1 -1
- package/lib/models/Automation.js +3 -17
- package/lib/models/RemoteServer.js +215 -127
- package/package.json +1 -1
- package/src/models/Automation.js +0 -12
- package/src/models/Preview.js +2 -2
- package/src/models/RemoteServer.js +64 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.189
|
package/lib/models/Automation.js
CHANGED
@@ -173,12 +173,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
173
173
|
(0, _defineProperty2.default)(this, "setDestination", function (value) {
|
174
174
|
_this.attributes.destination = value;
|
175
175
|
});
|
176
|
-
(0, _defineProperty2.default)(this, "getClonedFrom", function () {
|
177
|
-
return _this.attributes.cloned_from;
|
178
|
-
});
|
179
|
-
(0, _defineProperty2.default)(this, "setClonedFrom", function (value) {
|
180
|
-
_this.attributes.cloned_from = value;
|
181
|
-
});
|
182
176
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
183
177
|
var params,
|
184
178
|
response,
|
@@ -708,22 +702,14 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
708
702
|
throw new Error("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
|
709
703
|
|
710
704
|
case 32:
|
711
|
-
|
712
|
-
_context5.next = 34;
|
713
|
-
break;
|
714
|
-
}
|
715
|
-
|
716
|
-
throw new Error("Bad parameter: cloned_from must be of type Int, received ".concat((0, _utils.getType)(cloned_from)));
|
717
|
-
|
718
|
-
case 34:
|
719
|
-
_context5.next = 36;
|
705
|
+
_context5.next = 34;
|
720
706
|
return _Api.default.sendRequest("/automations", 'POST', params, options);
|
721
707
|
|
722
|
-
case
|
708
|
+
case 34:
|
723
709
|
response = _context5.sent;
|
724
710
|
return _context5.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, options));
|
725
711
|
|
726
|
-
case
|
712
|
+
case 36:
|
727
713
|
case "end":
|
728
714
|
return _context5.stop();
|
729
715
|
}
|
@@ -239,6 +239,24 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
239
239
|
(0, _defineProperty2.default)(this, "setAzureBlobStorageContainer", function (value) {
|
240
240
|
_this.attributes.azure_blob_storage_container = value;
|
241
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
|
+
});
|
242
260
|
(0, _defineProperty2.default)(this, "getS3CompatibleBucket", function () {
|
243
261
|
return _this.attributes.s3_compatible_bucket;
|
244
262
|
});
|
@@ -335,6 +353,12 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
335
353
|
(0, _defineProperty2.default)(this, "setAzureBlobStorageAccessKey", function (value) {
|
336
354
|
_this.attributes.azure_blob_storage_access_key = value;
|
337
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
|
+
});
|
338
362
|
(0, _defineProperty2.default)(this, "getS3CompatibleSecretKey", function () {
|
339
363
|
return _this.attributes.s3_compatible_secret_key;
|
340
364
|
});
|
@@ -473,264 +497,296 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
473
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)));
|
474
498
|
|
475
499
|
case 32:
|
476
|
-
if (!(params['
|
500
|
+
if (!(params['azure_files_storage_access_key'] && !(0, _utils.isString)(params['azure_files_storage_access_key']))) {
|
477
501
|
_context.next = 34;
|
478
502
|
break;
|
479
503
|
}
|
480
504
|
|
481
|
-
throw new Error("Bad parameter:
|
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)));
|
482
506
|
|
483
507
|
case 34:
|
484
|
-
if (!(params['
|
508
|
+
if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
|
485
509
|
_context.next = 36;
|
486
510
|
break;
|
487
511
|
}
|
488
512
|
|
489
|
-
throw new Error("Bad parameter:
|
513
|
+
throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
|
490
514
|
|
491
515
|
case 36:
|
492
|
-
if (!(params['
|
516
|
+
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
493
517
|
_context.next = 38;
|
494
518
|
break;
|
495
519
|
}
|
496
520
|
|
497
|
-
throw new Error("Bad parameter:
|
521
|
+
throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
|
498
522
|
|
499
523
|
case 38:
|
500
|
-
if (!(params['
|
524
|
+
if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
|
501
525
|
_context.next = 40;
|
502
526
|
break;
|
503
527
|
}
|
504
528
|
|
505
|
-
throw new Error("Bad parameter:
|
529
|
+
throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
|
506
530
|
|
507
531
|
case 40:
|
508
|
-
if (!(params['
|
532
|
+
if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
|
509
533
|
_context.next = 42;
|
510
534
|
break;
|
511
535
|
}
|
512
536
|
|
513
|
-
throw new Error("Bad parameter:
|
537
|
+
throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
|
514
538
|
|
515
539
|
case 42:
|
516
|
-
if (!(params['
|
540
|
+
if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
|
517
541
|
_context.next = 44;
|
518
542
|
break;
|
519
543
|
}
|
520
544
|
|
521
|
-
throw new Error("Bad parameter:
|
545
|
+
throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
|
522
546
|
|
523
547
|
case 44:
|
524
|
-
if (!(params['
|
548
|
+
if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
|
525
549
|
_context.next = 46;
|
526
550
|
break;
|
527
551
|
}
|
528
552
|
|
529
|
-
throw new Error("Bad parameter:
|
553
|
+
throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
|
530
554
|
|
531
555
|
case 46:
|
532
|
-
if (!(params['
|
556
|
+
if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
|
533
557
|
_context.next = 48;
|
534
558
|
break;
|
535
559
|
}
|
536
560
|
|
537
|
-
throw new Error("Bad parameter:
|
561
|
+
throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
|
538
562
|
|
539
563
|
case 48:
|
540
|
-
if (!(params['
|
564
|
+
if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
|
541
565
|
_context.next = 50;
|
542
566
|
break;
|
543
567
|
}
|
544
568
|
|
545
|
-
throw new Error("Bad parameter:
|
569
|
+
throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
|
546
570
|
|
547
571
|
case 50:
|
548
|
-
if (!(params['
|
572
|
+
if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
|
549
573
|
_context.next = 52;
|
550
574
|
break;
|
551
575
|
}
|
552
576
|
|
553
|
-
throw new Error("Bad parameter:
|
577
|
+
throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
|
554
578
|
|
555
579
|
case 52:
|
556
|
-
if (!(params['
|
580
|
+
if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
|
557
581
|
_context.next = 54;
|
558
582
|
break;
|
559
583
|
}
|
560
584
|
|
561
|
-
throw new Error("Bad parameter:
|
585
|
+
throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
|
562
586
|
|
563
587
|
case 54:
|
564
|
-
if (!(params['
|
588
|
+
if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
|
565
589
|
_context.next = 56;
|
566
590
|
break;
|
567
591
|
}
|
568
592
|
|
569
|
-
throw new Error("Bad parameter:
|
593
|
+
throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
|
570
594
|
|
571
595
|
case 56:
|
572
|
-
if (!(params['
|
596
|
+
if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
|
573
597
|
_context.next = 58;
|
574
598
|
break;
|
575
599
|
}
|
576
600
|
|
577
|
-
throw new Error("Bad parameter:
|
601
|
+
throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
|
578
602
|
|
579
603
|
case 58:
|
580
|
-
if (!(params['
|
604
|
+
if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
|
581
605
|
_context.next = 60;
|
582
606
|
break;
|
583
607
|
}
|
584
608
|
|
585
|
-
throw new Error("Bad parameter:
|
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)));
|
586
610
|
|
587
611
|
case 60:
|
588
|
-
if (!(params['
|
612
|
+
if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
|
589
613
|
_context.next = 62;
|
590
614
|
break;
|
591
615
|
}
|
592
616
|
|
593
|
-
throw new Error("Bad parameter:
|
617
|
+
throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
|
594
618
|
|
595
619
|
case 62:
|
596
|
-
if (!(params['
|
620
|
+
if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
|
597
621
|
_context.next = 64;
|
598
622
|
break;
|
599
623
|
}
|
600
624
|
|
601
|
-
throw new Error("Bad parameter:
|
625
|
+
throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
|
602
626
|
|
603
627
|
case 64:
|
604
|
-
if (!(params['
|
628
|
+
if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
|
605
629
|
_context.next = 66;
|
606
630
|
break;
|
607
631
|
}
|
608
632
|
|
609
|
-
throw new Error("Bad parameter:
|
633
|
+
throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
|
610
634
|
|
611
635
|
case 66:
|
612
|
-
if (!(params['
|
636
|
+
if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
|
613
637
|
_context.next = 68;
|
614
638
|
break;
|
615
639
|
}
|
616
640
|
|
617
|
-
throw new Error("Bad parameter:
|
641
|
+
throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
|
618
642
|
|
619
643
|
case 68:
|
620
|
-
if (!(params['
|
644
|
+
if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
|
621
645
|
_context.next = 70;
|
622
646
|
break;
|
623
647
|
}
|
624
648
|
|
625
|
-
throw new Error("Bad parameter:
|
649
|
+
throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
|
626
650
|
|
627
651
|
case 70:
|
628
|
-
if (!(params['
|
652
|
+
if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
|
629
653
|
_context.next = 72;
|
630
654
|
break;
|
631
655
|
}
|
632
656
|
|
633
|
-
throw new Error("Bad parameter:
|
657
|
+
throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
|
634
658
|
|
635
659
|
case 72:
|
636
|
-
if (!(params['
|
660
|
+
if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
|
637
661
|
_context.next = 74;
|
638
662
|
break;
|
639
663
|
}
|
640
664
|
|
641
|
-
throw new Error("Bad parameter:
|
665
|
+
throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
|
642
666
|
|
643
667
|
case 74:
|
644
|
-
if (!(params['
|
668
|
+
if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
|
645
669
|
_context.next = 76;
|
646
670
|
break;
|
647
671
|
}
|
648
672
|
|
649
|
-
throw new Error("Bad parameter:
|
673
|
+
throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
|
650
674
|
|
651
675
|
case 76:
|
652
|
-
if (!(params['
|
676
|
+
if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
|
653
677
|
_context.next = 78;
|
654
678
|
break;
|
655
679
|
}
|
656
680
|
|
657
|
-
throw new Error("Bad parameter:
|
681
|
+
throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
|
658
682
|
|
659
683
|
case 78:
|
660
|
-
if (!(params['
|
684
|
+
if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
|
661
685
|
_context.next = 80;
|
662
686
|
break;
|
663
687
|
}
|
664
688
|
|
665
|
-
throw new Error("Bad parameter:
|
689
|
+
throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
|
666
690
|
|
667
691
|
case 80:
|
668
|
-
if (!(params['
|
692
|
+
if (!(params['azure_blob_storage_sas_token'] && !(0, _utils.isString)(params['azure_blob_storage_sas_token']))) {
|
669
693
|
_context.next = 82;
|
670
694
|
break;
|
671
695
|
}
|
672
696
|
|
673
|
-
throw new Error("Bad parameter:
|
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)));
|
674
698
|
|
675
699
|
case 82:
|
676
|
-
if (!(params['
|
700
|
+
if (!(params['azure_files_storage_account'] && !(0, _utils.isString)(params['azure_files_storage_account']))) {
|
677
701
|
_context.next = 84;
|
678
702
|
break;
|
679
703
|
}
|
680
704
|
|
681
|
-
throw new Error("Bad parameter:
|
705
|
+
throw new Error("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_account)));
|
682
706
|
|
683
707
|
case 84:
|
684
|
-
if (!(params['
|
708
|
+
if (!(params['azure_files_storage_share_name'] && !(0, _utils.isString)(params['azure_files_storage_share_name']))) {
|
685
709
|
_context.next = 86;
|
686
710
|
break;
|
687
711
|
}
|
688
712
|
|
689
|
-
throw new Error("Bad parameter:
|
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)));
|
690
714
|
|
691
715
|
case 86:
|
692
|
-
if (!(params['
|
716
|
+
if (!(params['azure_files_storage_sas_token'] && !(0, _utils.isString)(params['azure_files_storage_sas_token']))) {
|
693
717
|
_context.next = 88;
|
694
718
|
break;
|
695
719
|
}
|
696
720
|
|
697
|
-
throw new Error("Bad parameter:
|
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)));
|
698
722
|
|
699
723
|
case 88:
|
700
|
-
if (!(params['
|
724
|
+
if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
|
701
725
|
_context.next = 90;
|
702
726
|
break;
|
703
727
|
}
|
704
728
|
|
705
|
-
throw new Error("Bad parameter:
|
729
|
+
throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
|
706
730
|
|
707
731
|
case 90:
|
708
|
-
if (params['
|
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']))) {
|
741
|
+
_context.next = 94;
|
742
|
+
break;
|
743
|
+
}
|
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']))) {
|
709
749
|
_context.next = 96;
|
710
750
|
break;
|
711
751
|
}
|
712
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
|
+
|
713
769
|
if (!_this.attributes.id) {
|
714
|
-
_context.next =
|
770
|
+
_context.next = 103;
|
715
771
|
break;
|
716
772
|
}
|
717
773
|
|
718
774
|
params['id'] = _this.id;
|
719
|
-
_context.next =
|
775
|
+
_context.next = 104;
|
720
776
|
break;
|
721
777
|
|
722
|
-
case
|
778
|
+
case 103:
|
723
779
|
throw new Error('Parameter missing: id');
|
724
780
|
|
725
|
-
case
|
726
|
-
_context.next =
|
781
|
+
case 104:
|
782
|
+
_context.next = 106;
|
727
783
|
return _Api.default.sendRequest("/remote_servers/".concat(params['id']), 'PATCH', params, _this.options);
|
728
784
|
|
729
|
-
case
|
785
|
+
case 106:
|
730
786
|
response = _context.sent;
|
731
787
|
return _context.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
732
788
|
|
733
|
-
case
|
789
|
+
case 108:
|
734
790
|
case "end":
|
735
791
|
return _context.stop();
|
736
792
|
}
|
@@ -1054,246 +1110,278 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
1054
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)));
|
1055
1111
|
|
1056
1112
|
case 26:
|
1057
|
-
if (!(params['
|
1113
|
+
if (!(params['azure_files_storage_access_key'] && !(0, _utils.isString)(params['azure_files_storage_access_key']))) {
|
1058
1114
|
_context5.next = 28;
|
1059
1115
|
break;
|
1060
1116
|
}
|
1061
1117
|
|
1062
|
-
throw new Error("Bad parameter:
|
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)));
|
1063
1119
|
|
1064
1120
|
case 28:
|
1065
|
-
if (!(params['
|
1121
|
+
if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
|
1066
1122
|
_context5.next = 30;
|
1067
1123
|
break;
|
1068
1124
|
}
|
1069
1125
|
|
1070
|
-
throw new Error("Bad parameter:
|
1126
|
+
throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
|
1071
1127
|
|
1072
1128
|
case 30:
|
1073
|
-
if (!(params['
|
1129
|
+
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
1074
1130
|
_context5.next = 32;
|
1075
1131
|
break;
|
1076
1132
|
}
|
1077
1133
|
|
1078
|
-
throw new Error("Bad parameter:
|
1134
|
+
throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
|
1079
1135
|
|
1080
1136
|
case 32:
|
1081
|
-
if (!(params['
|
1137
|
+
if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
|
1082
1138
|
_context5.next = 34;
|
1083
1139
|
break;
|
1084
1140
|
}
|
1085
1141
|
|
1086
|
-
throw new Error("Bad parameter:
|
1142
|
+
throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
|
1087
1143
|
|
1088
1144
|
case 34:
|
1089
|
-
if (!(params['
|
1145
|
+
if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
|
1090
1146
|
_context5.next = 36;
|
1091
1147
|
break;
|
1092
1148
|
}
|
1093
1149
|
|
1094
|
-
throw new Error("Bad parameter:
|
1150
|
+
throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
|
1095
1151
|
|
1096
1152
|
case 36:
|
1097
|
-
if (!(params['
|
1153
|
+
if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
|
1098
1154
|
_context5.next = 38;
|
1099
1155
|
break;
|
1100
1156
|
}
|
1101
1157
|
|
1102
|
-
throw new Error("Bad parameter:
|
1158
|
+
throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
|
1103
1159
|
|
1104
1160
|
case 38:
|
1105
|
-
if (!(params['
|
1161
|
+
if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
|
1106
1162
|
_context5.next = 40;
|
1107
1163
|
break;
|
1108
1164
|
}
|
1109
1165
|
|
1110
|
-
throw new Error("Bad parameter:
|
1166
|
+
throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
|
1111
1167
|
|
1112
1168
|
case 40:
|
1113
|
-
if (!(params['
|
1169
|
+
if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
|
1114
1170
|
_context5.next = 42;
|
1115
1171
|
break;
|
1116
1172
|
}
|
1117
1173
|
|
1118
|
-
throw new Error("Bad parameter:
|
1174
|
+
throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
|
1119
1175
|
|
1120
1176
|
case 42:
|
1121
|
-
if (!(params['
|
1177
|
+
if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
|
1122
1178
|
_context5.next = 44;
|
1123
1179
|
break;
|
1124
1180
|
}
|
1125
1181
|
|
1126
|
-
throw new Error("Bad parameter:
|
1182
|
+
throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
|
1127
1183
|
|
1128
1184
|
case 44:
|
1129
|
-
if (!(params['
|
1185
|
+
if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
|
1130
1186
|
_context5.next = 46;
|
1131
1187
|
break;
|
1132
1188
|
}
|
1133
1189
|
|
1134
|
-
throw new Error("Bad parameter:
|
1190
|
+
throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
|
1135
1191
|
|
1136
1192
|
case 46:
|
1137
|
-
if (!(params['
|
1193
|
+
if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
|
1138
1194
|
_context5.next = 48;
|
1139
1195
|
break;
|
1140
1196
|
}
|
1141
1197
|
|
1142
|
-
throw new Error("Bad parameter:
|
1198
|
+
throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
|
1143
1199
|
|
1144
1200
|
case 48:
|
1145
|
-
if (!(params['
|
1201
|
+
if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
|
1146
1202
|
_context5.next = 50;
|
1147
1203
|
break;
|
1148
1204
|
}
|
1149
1205
|
|
1150
|
-
throw new Error("Bad parameter:
|
1206
|
+
throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
|
1151
1207
|
|
1152
1208
|
case 50:
|
1153
|
-
if (!(params['
|
1209
|
+
if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
|
1154
1210
|
_context5.next = 52;
|
1155
1211
|
break;
|
1156
1212
|
}
|
1157
1213
|
|
1158
|
-
throw new Error("Bad parameter:
|
1214
|
+
throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
|
1159
1215
|
|
1160
1216
|
case 52:
|
1161
|
-
if (!(params['
|
1217
|
+
if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
|
1162
1218
|
_context5.next = 54;
|
1163
1219
|
break;
|
1164
1220
|
}
|
1165
1221
|
|
1166
|
-
throw new Error("Bad parameter:
|
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)));
|
1167
1223
|
|
1168
1224
|
case 54:
|
1169
|
-
if (!(params['
|
1225
|
+
if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
|
1170
1226
|
_context5.next = 56;
|
1171
1227
|
break;
|
1172
1228
|
}
|
1173
1229
|
|
1174
|
-
throw new Error("Bad parameter:
|
1230
|
+
throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
|
1175
1231
|
|
1176
1232
|
case 56:
|
1177
|
-
if (!(params['
|
1233
|
+
if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
|
1178
1234
|
_context5.next = 58;
|
1179
1235
|
break;
|
1180
1236
|
}
|
1181
1237
|
|
1182
|
-
throw new Error("Bad parameter:
|
1238
|
+
throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
|
1183
1239
|
|
1184
1240
|
case 58:
|
1185
|
-
if (!(params['
|
1241
|
+
if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
|
1186
1242
|
_context5.next = 60;
|
1187
1243
|
break;
|
1188
1244
|
}
|
1189
1245
|
|
1190
|
-
throw new Error("Bad parameter:
|
1246
|
+
throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
|
1191
1247
|
|
1192
1248
|
case 60:
|
1193
|
-
if (!(params['
|
1249
|
+
if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
|
1194
1250
|
_context5.next = 62;
|
1195
1251
|
break;
|
1196
1252
|
}
|
1197
1253
|
|
1198
|
-
throw new Error("Bad parameter:
|
1254
|
+
throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
|
1199
1255
|
|
1200
1256
|
case 62:
|
1201
|
-
if (!(params['
|
1257
|
+
if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
|
1202
1258
|
_context5.next = 64;
|
1203
1259
|
break;
|
1204
1260
|
}
|
1205
1261
|
|
1206
|
-
throw new Error("Bad parameter:
|
1262
|
+
throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
|
1207
1263
|
|
1208
1264
|
case 64:
|
1209
|
-
if (!(params['
|
1265
|
+
if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
|
1210
1266
|
_context5.next = 66;
|
1211
1267
|
break;
|
1212
1268
|
}
|
1213
1269
|
|
1214
|
-
throw new Error("Bad parameter:
|
1270
|
+
throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
|
1215
1271
|
|
1216
1272
|
case 66:
|
1217
|
-
if (!(params['
|
1273
|
+
if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
|
1218
1274
|
_context5.next = 68;
|
1219
1275
|
break;
|
1220
1276
|
}
|
1221
1277
|
|
1222
|
-
throw new Error("Bad parameter:
|
1278
|
+
throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
|
1223
1279
|
|
1224
1280
|
case 68:
|
1225
|
-
if (!(params['
|
1281
|
+
if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
|
1226
1282
|
_context5.next = 70;
|
1227
1283
|
break;
|
1228
1284
|
}
|
1229
1285
|
|
1230
|
-
throw new Error("Bad parameter:
|
1286
|
+
throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
|
1231
1287
|
|
1232
1288
|
case 70:
|
1233
|
-
if (!(params['
|
1289
|
+
if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
|
1234
1290
|
_context5.next = 72;
|
1235
1291
|
break;
|
1236
1292
|
}
|
1237
1293
|
|
1238
|
-
throw new Error("Bad parameter:
|
1294
|
+
throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
|
1239
1295
|
|
1240
1296
|
case 72:
|
1241
|
-
if (!(params['
|
1297
|
+
if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
|
1242
1298
|
_context5.next = 74;
|
1243
1299
|
break;
|
1244
1300
|
}
|
1245
1301
|
|
1246
|
-
throw new Error("Bad parameter:
|
1302
|
+
throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
|
1247
1303
|
|
1248
1304
|
case 74:
|
1249
|
-
if (!(params['
|
1305
|
+
if (!(params['azure_blob_storage_sas_token'] && !(0, _utils.isString)(params['azure_blob_storage_sas_token']))) {
|
1250
1306
|
_context5.next = 76;
|
1251
1307
|
break;
|
1252
1308
|
}
|
1253
1309
|
|
1254
|
-
throw new Error("Bad parameter:
|
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)));
|
1255
1311
|
|
1256
1312
|
case 76:
|
1257
|
-
if (!(params['
|
1313
|
+
if (!(params['azure_files_storage_account'] && !(0, _utils.isString)(params['azure_files_storage_account']))) {
|
1258
1314
|
_context5.next = 78;
|
1259
1315
|
break;
|
1260
1316
|
}
|
1261
1317
|
|
1262
|
-
throw new Error("Bad parameter:
|
1318
|
+
throw new Error("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_account)));
|
1263
1319
|
|
1264
1320
|
case 78:
|
1265
|
-
if (!(params['
|
1321
|
+
if (!(params['azure_files_storage_share_name'] && !(0, _utils.isString)(params['azure_files_storage_share_name']))) {
|
1266
1322
|
_context5.next = 80;
|
1267
1323
|
break;
|
1268
1324
|
}
|
1269
1325
|
|
1270
|
-
throw new Error("Bad parameter:
|
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)));
|
1271
1327
|
|
1272
1328
|
case 80:
|
1273
|
-
if (!(params['
|
1329
|
+
if (!(params['azure_files_storage_sas_token'] && !(0, _utils.isString)(params['azure_files_storage_sas_token']))) {
|
1274
1330
|
_context5.next = 82;
|
1275
1331
|
break;
|
1276
1332
|
}
|
1277
1333
|
|
1278
|
-
throw new Error("Bad parameter:
|
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)));
|
1279
1335
|
|
1280
1336
|
case 82:
|
1281
|
-
if (!(params['
|
1337
|
+
if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
|
1282
1338
|
_context5.next = 84;
|
1283
1339
|
break;
|
1284
1340
|
}
|
1285
1341
|
|
1286
|
-
throw new Error("Bad parameter:
|
1342
|
+
throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
|
1287
1343
|
|
1288
1344
|
case 84:
|
1289
|
-
|
1290
|
-
|
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)));
|
1291
1351
|
|
1292
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:
|
1293
1381
|
response = _context5.sent;
|
1294
1382
|
return _context5.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
|
1295
1383
|
|
1296
|
-
case
|
1384
|
+
case 96:
|
1297
1385
|
case "end":
|
1298
1386
|
return _context5.stop();
|
1299
1387
|
}
|
package/package.json
CHANGED
package/src/models/Automation.js
CHANGED
@@ -176,13 +176,6 @@ class Automation {
|
|
176
176
|
this.attributes.destination = value
|
177
177
|
}
|
178
178
|
|
179
|
-
// int64 # Set to the ID of automation used a clone template. For
|
180
|
-
getClonedFrom = () => this.attributes.cloned_from
|
181
|
-
|
182
|
-
setClonedFrom = value => {
|
183
|
-
this.attributes.cloned_from = value
|
184
|
-
}
|
185
|
-
|
186
179
|
|
187
180
|
// Parameters:
|
188
181
|
// source - string - Source Path
|
@@ -387,7 +380,6 @@ class Automation {
|
|
387
380
|
// trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
388
381
|
// value - object - A Hash of attributes specific to the automation type.
|
389
382
|
// automation (required) - string - Automation type
|
390
|
-
// cloned_from - int64 - Set to the ID of automation used a clone template. For
|
391
383
|
static create = async (params = {}, options = {}) => {
|
392
384
|
if (!params['automation']) {
|
393
385
|
throw new Error('Parameter missing: automation')
|
@@ -449,10 +441,6 @@ class Automation {
|
|
449
441
|
throw new Error(`Bad parameter: automation must be of type String, received ${getType(automation)}`)
|
450
442
|
}
|
451
443
|
|
452
|
-
if (params['cloned_from'] && !isInt(params['cloned_from'])) {
|
453
|
-
throw new Error(`Bad parameter: cloned_from must be of type Int, received ${getType(cloned_from)}`)
|
454
|
-
}
|
455
|
-
|
456
444
|
const response = await Api.sendRequest(`/automations`, 'POST', params, options)
|
457
445
|
|
458
446
|
return new Automation(response?.data, options)
|
package/src/models/Preview.js
CHANGED
@@ -31,10 +31,10 @@ class Preview {
|
|
31
31
|
// string # Link to download preview
|
32
32
|
getDownloadUri = () => this.attributes.download_uri
|
33
33
|
|
34
|
-
// string # Preview
|
34
|
+
// string # Preview type. Can be image, pdf, pdf_native, video, or audio
|
35
35
|
getType = () => this.attributes.type
|
36
36
|
|
37
|
-
//
|
37
|
+
// string # Preview size
|
38
38
|
getSize = () => this.attributes.size
|
39
39
|
|
40
40
|
}
|
@@ -253,6 +253,27 @@ class RemoteServer {
|
|
253
253
|
this.attributes.azure_blob_storage_container = value
|
254
254
|
}
|
255
255
|
|
256
|
+
// string # Azure File Storage Account name
|
257
|
+
getAzureFilesStorageAccount = () => this.attributes.azure_files_storage_account
|
258
|
+
|
259
|
+
setAzureFilesStorageAccount = value => {
|
260
|
+
this.attributes.azure_files_storage_account = value
|
261
|
+
}
|
262
|
+
|
263
|
+
// string # Shared Access Signature (SAS) token
|
264
|
+
getAzureFilesStorageSasToken = () => this.attributes.azure_files_storage_sas_token
|
265
|
+
|
266
|
+
setAzureFilesStorageSasToken = value => {
|
267
|
+
this.attributes.azure_files_storage_sas_token = value
|
268
|
+
}
|
269
|
+
|
270
|
+
// string # Azure File Storage Share name
|
271
|
+
getAzureFilesStorageShareName = () => this.attributes.azure_files_storage_share_name
|
272
|
+
|
273
|
+
setAzureFilesStorageShareName = value => {
|
274
|
+
this.attributes.azure_files_storage_share_name = value
|
275
|
+
}
|
276
|
+
|
256
277
|
// string # S3-compatible Bucket name
|
257
278
|
getS3CompatibleBucket = () => this.attributes.s3_compatible_bucket
|
258
279
|
|
@@ -365,6 +386,13 @@ class RemoteServer {
|
|
365
386
|
this.attributes.azure_blob_storage_access_key = value
|
366
387
|
}
|
367
388
|
|
389
|
+
// string # Azure File Storage access key.
|
390
|
+
getAzureFilesStorageAccessKey = () => this.attributes.azure_files_storage_access_key
|
391
|
+
|
392
|
+
setAzureFilesStorageAccessKey = value => {
|
393
|
+
this.attributes.azure_files_storage_access_key = value
|
394
|
+
}
|
395
|
+
|
368
396
|
// string # S3-compatible secret key
|
369
397
|
getS3CompatibleSecretKey = () => this.attributes.s3_compatible_secret_key
|
370
398
|
|
@@ -387,6 +415,7 @@ class RemoteServer {
|
|
387
415
|
// rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
388
416
|
// reset_authentication - boolean - Reset authenticated account
|
389
417
|
// azure_blob_storage_access_key - string - Azure Blob Storage secret key.
|
418
|
+
// azure_files_storage_access_key - string - Azure File Storage access key.
|
390
419
|
// hostname - string - Hostname or IP address
|
391
420
|
// name - string - Internal name for your reference
|
392
421
|
// max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -411,6 +440,9 @@ class RemoteServer {
|
|
411
440
|
// azure_blob_storage_account - string - Azure Blob Storage Account name
|
412
441
|
// azure_blob_storage_container - string - Azure Blob Storage Container name
|
413
442
|
// azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
|
443
|
+
// azure_files_storage_account - string - Azure File Storage Account name
|
444
|
+
// azure_files_storage_share_name - string - Azure File Storage Share name
|
445
|
+
// azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
|
414
446
|
// s3_compatible_bucket - string - S3-compatible Bucket name
|
415
447
|
// s3_compatible_endpoint - string - S3-compatible endpoint
|
416
448
|
// s3_compatible_region - string - S3-compatible endpoint
|
@@ -466,6 +498,9 @@ class RemoteServer {
|
|
466
498
|
if (params['azure_blob_storage_access_key'] && !isString(params['azure_blob_storage_access_key'])) {
|
467
499
|
throw new Error(`Bad parameter: azure_blob_storage_access_key must be of type String, received ${getType(azure_blob_storage_access_key)}`)
|
468
500
|
}
|
501
|
+
if (params['azure_files_storage_access_key'] && !isString(params['azure_files_storage_access_key'])) {
|
502
|
+
throw new Error(`Bad parameter: azure_files_storage_access_key must be of type String, received ${getType(azure_files_storage_access_key)}`)
|
503
|
+
}
|
469
504
|
if (params['hostname'] && !isString(params['hostname'])) {
|
470
505
|
throw new Error(`Bad parameter: hostname must be of type String, received ${getType(hostname)}`)
|
471
506
|
}
|
@@ -538,6 +573,15 @@ class RemoteServer {
|
|
538
573
|
if (params['azure_blob_storage_sas_token'] && !isString(params['azure_blob_storage_sas_token'])) {
|
539
574
|
throw new Error(`Bad parameter: azure_blob_storage_sas_token must be of type String, received ${getType(azure_blob_storage_sas_token)}`)
|
540
575
|
}
|
576
|
+
if (params['azure_files_storage_account'] && !isString(params['azure_files_storage_account'])) {
|
577
|
+
throw new Error(`Bad parameter: azure_files_storage_account must be of type String, received ${getType(azure_files_storage_account)}`)
|
578
|
+
}
|
579
|
+
if (params['azure_files_storage_share_name'] && !isString(params['azure_files_storage_share_name'])) {
|
580
|
+
throw new Error(`Bad parameter: azure_files_storage_share_name must be of type String, received ${getType(azure_files_storage_share_name)}`)
|
581
|
+
}
|
582
|
+
if (params['azure_files_storage_sas_token'] && !isString(params['azure_files_storage_sas_token'])) {
|
583
|
+
throw new Error(`Bad parameter: azure_files_storage_sas_token must be of type String, received ${getType(azure_files_storage_sas_token)}`)
|
584
|
+
}
|
541
585
|
if (params['s3_compatible_bucket'] && !isString(params['s3_compatible_bucket'])) {
|
542
586
|
throw new Error(`Bad parameter: s3_compatible_bucket must be of type String, received ${getType(s3_compatible_bucket)}`)
|
543
587
|
}
|
@@ -666,6 +710,7 @@ class RemoteServer {
|
|
666
710
|
// rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
667
711
|
// reset_authentication - boolean - Reset authenticated account
|
668
712
|
// azure_blob_storage_access_key - string - Azure Blob Storage secret key.
|
713
|
+
// azure_files_storage_access_key - string - Azure File Storage access key.
|
669
714
|
// hostname - string - Hostname or IP address
|
670
715
|
// name - string - Internal name for your reference
|
671
716
|
// max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -690,6 +735,9 @@ class RemoteServer {
|
|
690
735
|
// azure_blob_storage_account - string - Azure Blob Storage Account name
|
691
736
|
// azure_blob_storage_container - string - Azure Blob Storage Container name
|
692
737
|
// azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
|
738
|
+
// azure_files_storage_account - string - Azure File Storage Account name
|
739
|
+
// azure_files_storage_share_name - string - Azure File Storage Share name
|
740
|
+
// azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
|
693
741
|
// s3_compatible_bucket - string - S3-compatible Bucket name
|
694
742
|
// s3_compatible_endpoint - string - S3-compatible endpoint
|
695
743
|
// s3_compatible_region - string - S3-compatible endpoint
|
@@ -745,6 +793,10 @@ class RemoteServer {
|
|
745
793
|
throw new Error(`Bad parameter: azure_blob_storage_access_key must be of type String, received ${getType(azure_blob_storage_access_key)}`)
|
746
794
|
}
|
747
795
|
|
796
|
+
if (params['azure_files_storage_access_key'] && !isString(params['azure_files_storage_access_key'])) {
|
797
|
+
throw new Error(`Bad parameter: azure_files_storage_access_key must be of type String, received ${getType(azure_files_storage_access_key)}`)
|
798
|
+
}
|
799
|
+
|
748
800
|
if (params['hostname'] && !isString(params['hostname'])) {
|
749
801
|
throw new Error(`Bad parameter: hostname must be of type String, received ${getType(hostname)}`)
|
750
802
|
}
|
@@ -841,6 +893,18 @@ class RemoteServer {
|
|
841
893
|
throw new Error(`Bad parameter: azure_blob_storage_sas_token must be of type String, received ${getType(azure_blob_storage_sas_token)}`)
|
842
894
|
}
|
843
895
|
|
896
|
+
if (params['azure_files_storage_account'] && !isString(params['azure_files_storage_account'])) {
|
897
|
+
throw new Error(`Bad parameter: azure_files_storage_account must be of type String, received ${getType(azure_files_storage_account)}`)
|
898
|
+
}
|
899
|
+
|
900
|
+
if (params['azure_files_storage_share_name'] && !isString(params['azure_files_storage_share_name'])) {
|
901
|
+
throw new Error(`Bad parameter: azure_files_storage_share_name must be of type String, received ${getType(azure_files_storage_share_name)}`)
|
902
|
+
}
|
903
|
+
|
904
|
+
if (params['azure_files_storage_sas_token'] && !isString(params['azure_files_storage_sas_token'])) {
|
905
|
+
throw new Error(`Bad parameter: azure_files_storage_sas_token must be of type String, received ${getType(azure_files_storage_sas_token)}`)
|
906
|
+
}
|
907
|
+
|
844
908
|
if (params['s3_compatible_bucket'] && !isString(params['s3_compatible_bucket'])) {
|
845
909
|
throw new Error(`Bad parameter: s3_compatible_bucket must be of type String, received ${getType(s3_compatible_bucket)}`)
|
846
910
|
}
|