files.com 1.0.187 → 1.0.190

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.187
1
+ 1.0.190
@@ -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
- if (!(params['cloned_from'] && !(0, _utils.isInt)(params['cloned_from']))) {
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 36:
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 38:
712
+ case 36:
727
713
  case "end":
728
714
  return _context5.stop();
729
715
  }
@@ -245,17 +245,17 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
245
245
  (0, _defineProperty2.default)(this, "setAzureFilesStorageAccount", function (value) {
246
246
  _this.attributes.azure_files_storage_account = value;
247
247
  });
248
- (0, _defineProperty2.default)(this, "getAzureFilesSasToken", function () {
249
- return _this.attributes.azure_files_sas_token;
248
+ (0, _defineProperty2.default)(this, "getAzureFilesStorageSasToken", function () {
249
+ return _this.attributes.azure_files_storage_sas_token;
250
250
  });
251
- (0, _defineProperty2.default)(this, "setAzureFilesSasToken", function (value) {
252
- _this.attributes.azure_files_sas_token = value;
251
+ (0, _defineProperty2.default)(this, "setAzureFilesStorageSasToken", function (value) {
252
+ _this.attributes.azure_files_storage_sas_token = value;
253
253
  });
254
- (0, _defineProperty2.default)(this, "getAzureFilesShareName", function () {
255
- return _this.attributes.azure_files_share_name;
254
+ (0, _defineProperty2.default)(this, "getAzureFilesStorageShareName", function () {
255
+ return _this.attributes.azure_files_storage_share_name;
256
256
  });
257
- (0, _defineProperty2.default)(this, "setAzureFilesShareName", function (value) {
258
- _this.attributes.azure_files_share_name = value;
257
+ (0, _defineProperty2.default)(this, "setAzureFilesStorageShareName", function (value) {
258
+ _this.attributes.azure_files_storage_share_name = value;
259
259
  });
260
260
  (0, _defineProperty2.default)(this, "getS3CompatibleBucket", function () {
261
261
  return _this.attributes.s3_compatible_bucket;
@@ -305,6 +305,12 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
305
305
  (0, _defineProperty2.default)(this, "setPrivateKey", function (value) {
306
306
  _this.attributes.private_key = value;
307
307
  });
308
+ (0, _defineProperty2.default)(this, "getPrivateKeyPassphrase", function () {
309
+ return _this.attributes.private_key_passphrase;
310
+ });
311
+ (0, _defineProperty2.default)(this, "setPrivateKeyPassphrase", function (value) {
312
+ _this.attributes.private_key_passphrase = value;
313
+ });
308
314
  (0, _defineProperty2.default)(this, "getSslCertificate", function () {
309
315
  return _this.attributes.ssl_certificate;
310
316
  });
@@ -433,360 +439,368 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
433
439
  throw new Error("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
434
440
 
435
441
  case 16:
436
- if (!(params['ssl_certificate'] && !(0, _utils.isString)(params['ssl_certificate']))) {
442
+ if (!(params['private_key_passphrase'] && !(0, _utils.isString)(params['private_key_passphrase']))) {
437
443
  _context.next = 18;
438
444
  break;
439
445
  }
440
446
 
441
- throw new Error("Bad parameter: ssl_certificate must be of type String, received ".concat((0, _utils.getType)(ssl_certificate)));
447
+ throw new Error("Bad parameter: private_key_passphrase must be of type String, received ".concat((0, _utils.getType)(private_key_passphrase)));
442
448
 
443
449
  case 18:
444
- if (!(params['google_cloud_storage_credentials_json'] && !(0, _utils.isString)(params['google_cloud_storage_credentials_json']))) {
450
+ if (!(params['ssl_certificate'] && !(0, _utils.isString)(params['ssl_certificate']))) {
445
451
  _context.next = 20;
446
452
  break;
447
453
  }
448
454
 
449
- throw new Error("Bad parameter: google_cloud_storage_credentials_json must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_credentials_json)));
455
+ throw new Error("Bad parameter: ssl_certificate must be of type String, received ".concat((0, _utils.getType)(ssl_certificate)));
450
456
 
451
457
  case 20:
452
- if (!(params['wasabi_access_key'] && !(0, _utils.isString)(params['wasabi_access_key']))) {
458
+ if (!(params['google_cloud_storage_credentials_json'] && !(0, _utils.isString)(params['google_cloud_storage_credentials_json']))) {
453
459
  _context.next = 22;
454
460
  break;
455
461
  }
456
462
 
457
- throw new Error("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(wasabi_access_key)));
463
+ throw new Error("Bad parameter: google_cloud_storage_credentials_json must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_credentials_json)));
458
464
 
459
465
  case 22:
460
- if (!(params['wasabi_secret_key'] && !(0, _utils.isString)(params['wasabi_secret_key']))) {
466
+ if (!(params['wasabi_access_key'] && !(0, _utils.isString)(params['wasabi_access_key']))) {
461
467
  _context.next = 24;
462
468
  break;
463
469
  }
464
470
 
465
- throw new Error("Bad parameter: wasabi_secret_key must be of type String, received ".concat((0, _utils.getType)(wasabi_secret_key)));
471
+ throw new Error("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(wasabi_access_key)));
466
472
 
467
473
  case 24:
468
- if (!(params['backblaze_b2_key_id'] && !(0, _utils.isString)(params['backblaze_b2_key_id']))) {
474
+ if (!(params['wasabi_secret_key'] && !(0, _utils.isString)(params['wasabi_secret_key']))) {
469
475
  _context.next = 26;
470
476
  break;
471
477
  }
472
478
 
473
- throw new Error("Bad parameter: backblaze_b2_key_id must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_key_id)));
479
+ throw new Error("Bad parameter: wasabi_secret_key must be of type String, received ".concat((0, _utils.getType)(wasabi_secret_key)));
474
480
 
475
481
  case 26:
476
- if (!(params['backblaze_b2_application_key'] && !(0, _utils.isString)(params['backblaze_b2_application_key']))) {
482
+ if (!(params['backblaze_b2_key_id'] && !(0, _utils.isString)(params['backblaze_b2_key_id']))) {
477
483
  _context.next = 28;
478
484
  break;
479
485
  }
480
486
 
481
- throw new Error("Bad parameter: backblaze_b2_application_key must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_application_key)));
487
+ throw new Error("Bad parameter: backblaze_b2_key_id must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_key_id)));
482
488
 
483
489
  case 28:
484
- if (!(params['rackspace_api_key'] && !(0, _utils.isString)(params['rackspace_api_key']))) {
490
+ if (!(params['backblaze_b2_application_key'] && !(0, _utils.isString)(params['backblaze_b2_application_key']))) {
485
491
  _context.next = 30;
486
492
  break;
487
493
  }
488
494
 
489
- throw new Error("Bad parameter: rackspace_api_key must be of type String, received ".concat((0, _utils.getType)(rackspace_api_key)));
495
+ throw new Error("Bad parameter: backblaze_b2_application_key must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_application_key)));
490
496
 
491
497
  case 30:
492
- if (!(params['azure_blob_storage_access_key'] && !(0, _utils.isString)(params['azure_blob_storage_access_key']))) {
498
+ if (!(params['rackspace_api_key'] && !(0, _utils.isString)(params['rackspace_api_key']))) {
493
499
  _context.next = 32;
494
500
  break;
495
501
  }
496
502
 
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)));
503
+ throw new Error("Bad parameter: rackspace_api_key must be of type String, received ".concat((0, _utils.getType)(rackspace_api_key)));
498
504
 
499
505
  case 32:
500
- if (!(params['azure_files_storage_access_key'] && !(0, _utils.isString)(params['azure_files_storage_access_key']))) {
506
+ if (!(params['azure_blob_storage_access_key'] && !(0, _utils.isString)(params['azure_blob_storage_access_key']))) {
501
507
  _context.next = 34;
502
508
  break;
503
509
  }
504
510
 
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)));
511
+ 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)));
506
512
 
507
513
  case 34:
508
- if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
514
+ if (!(params['azure_files_storage_access_key'] && !(0, _utils.isString)(params['azure_files_storage_access_key']))) {
509
515
  _context.next = 36;
510
516
  break;
511
517
  }
512
518
 
513
- throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
519
+ 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)));
514
520
 
515
521
  case 36:
516
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
522
+ if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
517
523
  _context.next = 38;
518
524
  break;
519
525
  }
520
526
 
521
- throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
527
+ throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
522
528
 
523
529
  case 38:
524
- if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
530
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
525
531
  _context.next = 40;
526
532
  break;
527
533
  }
528
534
 
529
- throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
535
+ throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
530
536
 
531
537
  case 40:
532
- if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
538
+ if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
533
539
  _context.next = 42;
534
540
  break;
535
541
  }
536
542
 
537
- throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
543
+ throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
538
544
 
539
545
  case 42:
540
- if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
546
+ if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
541
547
  _context.next = 44;
542
548
  break;
543
549
  }
544
550
 
545
- throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
551
+ throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
546
552
 
547
553
  case 44:
548
- if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
554
+ if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
549
555
  _context.next = 46;
550
556
  break;
551
557
  }
552
558
 
553
- throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
559
+ throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
554
560
 
555
561
  case 46:
556
- if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
562
+ if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
557
563
  _context.next = 48;
558
564
  break;
559
565
  }
560
566
 
561
- throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
567
+ throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
562
568
 
563
569
  case 48:
564
- if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
570
+ if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
565
571
  _context.next = 50;
566
572
  break;
567
573
  }
568
574
 
569
- throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
575
+ throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
570
576
 
571
577
  case 50:
572
- if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
578
+ if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
573
579
  _context.next = 52;
574
580
  break;
575
581
  }
576
582
 
577
- throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
583
+ throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
578
584
 
579
585
  case 52:
580
- if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
586
+ if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
581
587
  _context.next = 54;
582
588
  break;
583
589
  }
584
590
 
585
- throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
591
+ throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
586
592
 
587
593
  case 54:
588
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
594
+ if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
589
595
  _context.next = 56;
590
596
  break;
591
597
  }
592
598
 
593
- throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
599
+ throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
594
600
 
595
601
  case 56:
596
- if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
602
+ if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
597
603
  _context.next = 58;
598
604
  break;
599
605
  }
600
606
 
601
- throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
607
+ throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
602
608
 
603
609
  case 58:
604
- if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
610
+ if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
605
611
  _context.next = 60;
606
612
  break;
607
613
  }
608
614
 
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)));
615
+ throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
610
616
 
611
617
  case 60:
612
- if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
618
+ if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
613
619
  _context.next = 62;
614
620
  break;
615
621
  }
616
622
 
617
- throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
623
+ 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)));
618
624
 
619
625
  case 62:
620
- if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
626
+ if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
621
627
  _context.next = 64;
622
628
  break;
623
629
  }
624
630
 
625
- throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
631
+ throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
626
632
 
627
633
  case 64:
628
- if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
634
+ if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
629
635
  _context.next = 66;
630
636
  break;
631
637
  }
632
638
 
633
- throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
639
+ throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
634
640
 
635
641
  case 66:
636
- if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
642
+ if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
637
643
  _context.next = 68;
638
644
  break;
639
645
  }
640
646
 
641
- throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
647
+ throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
642
648
 
643
649
  case 68:
644
- if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
650
+ if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
645
651
  _context.next = 70;
646
652
  break;
647
653
  }
648
654
 
649
- throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
655
+ throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
650
656
 
651
657
  case 70:
652
- if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
658
+ if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
653
659
  _context.next = 72;
654
660
  break;
655
661
  }
656
662
 
657
- throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
663
+ throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
658
664
 
659
665
  case 72:
660
- if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
666
+ if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
661
667
  _context.next = 74;
662
668
  break;
663
669
  }
664
670
 
665
- throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
671
+ throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
666
672
 
667
673
  case 74:
668
- if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
674
+ if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
669
675
  _context.next = 76;
670
676
  break;
671
677
  }
672
678
 
673
- throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
679
+ throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
674
680
 
675
681
  case 76:
676
- if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
682
+ if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
677
683
  _context.next = 78;
678
684
  break;
679
685
  }
680
686
 
681
- throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
687
+ throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
682
688
 
683
689
  case 78:
684
- if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
690
+ if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
685
691
  _context.next = 80;
686
692
  break;
687
693
  }
688
694
 
689
- throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
695
+ throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
690
696
 
691
697
  case 80:
692
- if (!(params['azure_blob_storage_sas_token'] && !(0, _utils.isString)(params['azure_blob_storage_sas_token']))) {
698
+ if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
693
699
  _context.next = 82;
694
700
  break;
695
701
  }
696
702
 
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)));
703
+ throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
698
704
 
699
705
  case 82:
700
- if (!(params['azure_files_storage_account'] && !(0, _utils.isString)(params['azure_files_storage_account']))) {
706
+ if (!(params['azure_blob_storage_sas_token'] && !(0, _utils.isString)(params['azure_blob_storage_sas_token']))) {
701
707
  _context.next = 84;
702
708
  break;
703
709
  }
704
710
 
705
- throw new Error("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_account)));
711
+ 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)));
706
712
 
707
713
  case 84:
708
- if (!(params['azure_files_share_name'] && !(0, _utils.isString)(params['azure_files_share_name']))) {
714
+ if (!(params['azure_files_storage_account'] && !(0, _utils.isString)(params['azure_files_storage_account']))) {
709
715
  _context.next = 86;
710
716
  break;
711
717
  }
712
718
 
713
- throw new Error("Bad parameter: azure_files_share_name must be of type String, received ".concat((0, _utils.getType)(azure_files_share_name)));
719
+ throw new Error("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_account)));
714
720
 
715
721
  case 86:
716
- if (!(params['azure_files_sas_token'] && !(0, _utils.isString)(params['azure_files_sas_token']))) {
722
+ if (!(params['azure_files_storage_share_name'] && !(0, _utils.isString)(params['azure_files_storage_share_name']))) {
717
723
  _context.next = 88;
718
724
  break;
719
725
  }
720
726
 
721
- throw new Error("Bad parameter: azure_files_sas_token must be of type String, received ".concat((0, _utils.getType)(azure_files_sas_token)));
727
+ 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)));
722
728
 
723
729
  case 88:
724
- if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
730
+ if (!(params['azure_files_storage_sas_token'] && !(0, _utils.isString)(params['azure_files_storage_sas_token']))) {
725
731
  _context.next = 90;
726
732
  break;
727
733
  }
728
734
 
729
- throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
735
+ 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)));
730
736
 
731
737
  case 90:
732
- if (!(params['s3_compatible_endpoint'] && !(0, _utils.isString)(params['s3_compatible_endpoint']))) {
738
+ if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
733
739
  _context.next = 92;
734
740
  break;
735
741
  }
736
742
 
737
- throw new Error("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(s3_compatible_endpoint)));
743
+ throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
738
744
 
739
745
  case 92:
740
- if (!(params['s3_compatible_region'] && !(0, _utils.isString)(params['s3_compatible_region']))) {
746
+ if (!(params['s3_compatible_endpoint'] && !(0, _utils.isString)(params['s3_compatible_endpoint']))) {
741
747
  _context.next = 94;
742
748
  break;
743
749
  }
744
750
 
745
- throw new Error("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(s3_compatible_region)));
751
+ throw new Error("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(s3_compatible_endpoint)));
746
752
 
747
753
  case 94:
748
- if (!(params['s3_compatible_access_key'] && !(0, _utils.isString)(params['s3_compatible_access_key']))) {
754
+ if (!(params['s3_compatible_region'] && !(0, _utils.isString)(params['s3_compatible_region']))) {
749
755
  _context.next = 96;
750
756
  break;
751
757
  }
752
758
 
753
- throw new Error("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_access_key)));
759
+ throw new Error("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(s3_compatible_region)));
754
760
 
755
761
  case 96:
756
- if (!(params['s3_compatible_secret_key'] && !(0, _utils.isString)(params['s3_compatible_secret_key']))) {
762
+ if (!(params['s3_compatible_access_key'] && !(0, _utils.isString)(params['s3_compatible_access_key']))) {
757
763
  _context.next = 98;
758
764
  break;
759
765
  }
760
766
 
761
- throw new Error("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_secret_key)));
767
+ throw new Error("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_access_key)));
762
768
 
763
769
  case 98:
770
+ if (!(params['s3_compatible_secret_key'] && !(0, _utils.isString)(params['s3_compatible_secret_key']))) {
771
+ _context.next = 100;
772
+ break;
773
+ }
774
+
775
+ throw new Error("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_secret_key)));
776
+
777
+ case 100:
764
778
  if (params['id']) {
765
- _context.next = 104;
779
+ _context.next = 106;
766
780
  break;
767
781
  }
768
782
 
769
783
  if (!_this.attributes.id) {
770
- _context.next = 103;
784
+ _context.next = 105;
771
785
  break;
772
786
  }
773
787
 
774
788
  params['id'] = _this.id;
775
- _context.next = 104;
789
+ _context.next = 106;
776
790
  break;
777
791
 
778
- case 103:
792
+ case 105:
779
793
  throw new Error('Parameter missing: id');
780
794
 
781
- case 104:
782
- _context.next = 106;
795
+ case 106:
796
+ _context.next = 108;
783
797
  return _Api.default.sendRequest("/remote_servers/".concat(params['id']), 'PATCH', params, _this.options);
784
798
 
785
- case 106:
799
+ case 108:
786
800
  response = _context.sent;
787
801
  return _context.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
788
802
 
789
- case 108:
803
+ case 110:
790
804
  case "end":
791
805
  return _context.stop();
792
806
  }
@@ -1046,342 +1060,350 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
1046
1060
  throw new Error("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
1047
1061
 
1048
1062
  case 10:
1049
- if (!(params['ssl_certificate'] && !(0, _utils.isString)(params['ssl_certificate']))) {
1063
+ if (!(params['private_key_passphrase'] && !(0, _utils.isString)(params['private_key_passphrase']))) {
1050
1064
  _context5.next = 12;
1051
1065
  break;
1052
1066
  }
1053
1067
 
1054
- throw new Error("Bad parameter: ssl_certificate must be of type String, received ".concat((0, _utils.getType)(ssl_certificate)));
1068
+ throw new Error("Bad parameter: private_key_passphrase must be of type String, received ".concat((0, _utils.getType)(private_key_passphrase)));
1055
1069
 
1056
1070
  case 12:
1057
- if (!(params['google_cloud_storage_credentials_json'] && !(0, _utils.isString)(params['google_cloud_storage_credentials_json']))) {
1071
+ if (!(params['ssl_certificate'] && !(0, _utils.isString)(params['ssl_certificate']))) {
1058
1072
  _context5.next = 14;
1059
1073
  break;
1060
1074
  }
1061
1075
 
1062
- throw new Error("Bad parameter: google_cloud_storage_credentials_json must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_credentials_json)));
1076
+ throw new Error("Bad parameter: ssl_certificate must be of type String, received ".concat((0, _utils.getType)(ssl_certificate)));
1063
1077
 
1064
1078
  case 14:
1065
- if (!(params['wasabi_access_key'] && !(0, _utils.isString)(params['wasabi_access_key']))) {
1079
+ if (!(params['google_cloud_storage_credentials_json'] && !(0, _utils.isString)(params['google_cloud_storage_credentials_json']))) {
1066
1080
  _context5.next = 16;
1067
1081
  break;
1068
1082
  }
1069
1083
 
1070
- throw new Error("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(wasabi_access_key)));
1084
+ throw new Error("Bad parameter: google_cloud_storage_credentials_json must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_credentials_json)));
1071
1085
 
1072
1086
  case 16:
1073
- if (!(params['wasabi_secret_key'] && !(0, _utils.isString)(params['wasabi_secret_key']))) {
1087
+ if (!(params['wasabi_access_key'] && !(0, _utils.isString)(params['wasabi_access_key']))) {
1074
1088
  _context5.next = 18;
1075
1089
  break;
1076
1090
  }
1077
1091
 
1078
- throw new Error("Bad parameter: wasabi_secret_key must be of type String, received ".concat((0, _utils.getType)(wasabi_secret_key)));
1092
+ throw new Error("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(wasabi_access_key)));
1079
1093
 
1080
1094
  case 18:
1081
- if (!(params['backblaze_b2_key_id'] && !(0, _utils.isString)(params['backblaze_b2_key_id']))) {
1095
+ if (!(params['wasabi_secret_key'] && !(0, _utils.isString)(params['wasabi_secret_key']))) {
1082
1096
  _context5.next = 20;
1083
1097
  break;
1084
1098
  }
1085
1099
 
1086
- throw new Error("Bad parameter: backblaze_b2_key_id must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_key_id)));
1100
+ throw new Error("Bad parameter: wasabi_secret_key must be of type String, received ".concat((0, _utils.getType)(wasabi_secret_key)));
1087
1101
 
1088
1102
  case 20:
1089
- if (!(params['backblaze_b2_application_key'] && !(0, _utils.isString)(params['backblaze_b2_application_key']))) {
1103
+ if (!(params['backblaze_b2_key_id'] && !(0, _utils.isString)(params['backblaze_b2_key_id']))) {
1090
1104
  _context5.next = 22;
1091
1105
  break;
1092
1106
  }
1093
1107
 
1094
- throw new Error("Bad parameter: backblaze_b2_application_key must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_application_key)));
1108
+ throw new Error("Bad parameter: backblaze_b2_key_id must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_key_id)));
1095
1109
 
1096
1110
  case 22:
1097
- if (!(params['rackspace_api_key'] && !(0, _utils.isString)(params['rackspace_api_key']))) {
1111
+ if (!(params['backblaze_b2_application_key'] && !(0, _utils.isString)(params['backblaze_b2_application_key']))) {
1098
1112
  _context5.next = 24;
1099
1113
  break;
1100
1114
  }
1101
1115
 
1102
- throw new Error("Bad parameter: rackspace_api_key must be of type String, received ".concat((0, _utils.getType)(rackspace_api_key)));
1116
+ throw new Error("Bad parameter: backblaze_b2_application_key must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_application_key)));
1103
1117
 
1104
1118
  case 24:
1105
- if (!(params['azure_blob_storage_access_key'] && !(0, _utils.isString)(params['azure_blob_storage_access_key']))) {
1119
+ if (!(params['rackspace_api_key'] && !(0, _utils.isString)(params['rackspace_api_key']))) {
1106
1120
  _context5.next = 26;
1107
1121
  break;
1108
1122
  }
1109
1123
 
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)));
1124
+ throw new Error("Bad parameter: rackspace_api_key must be of type String, received ".concat((0, _utils.getType)(rackspace_api_key)));
1111
1125
 
1112
1126
  case 26:
1113
- if (!(params['azure_files_storage_access_key'] && !(0, _utils.isString)(params['azure_files_storage_access_key']))) {
1127
+ if (!(params['azure_blob_storage_access_key'] && !(0, _utils.isString)(params['azure_blob_storage_access_key']))) {
1114
1128
  _context5.next = 28;
1115
1129
  break;
1116
1130
  }
1117
1131
 
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)));
1132
+ 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)));
1119
1133
 
1120
1134
  case 28:
1121
- if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
1135
+ if (!(params['azure_files_storage_access_key'] && !(0, _utils.isString)(params['azure_files_storage_access_key']))) {
1122
1136
  _context5.next = 30;
1123
1137
  break;
1124
1138
  }
1125
1139
 
1126
- throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
1140
+ 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)));
1127
1141
 
1128
1142
  case 30:
1129
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
1143
+ if (!(params['hostname'] && !(0, _utils.isString)(params['hostname']))) {
1130
1144
  _context5.next = 32;
1131
1145
  break;
1132
1146
  }
1133
1147
 
1134
- throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
1148
+ throw new Error("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(hostname)));
1135
1149
 
1136
1150
  case 32:
1137
- if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
1151
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
1138
1152
  _context5.next = 34;
1139
1153
  break;
1140
1154
  }
1141
1155
 
1142
- throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
1156
+ throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
1143
1157
 
1144
1158
  case 34:
1145
- if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
1159
+ if (!(params['max_connections'] && !(0, _utils.isInt)(params['max_connections']))) {
1146
1160
  _context5.next = 36;
1147
1161
  break;
1148
1162
  }
1149
1163
 
1150
- throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
1164
+ throw new Error("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(max_connections)));
1151
1165
 
1152
1166
  case 36:
1153
- if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
1167
+ if (!(params['port'] && !(0, _utils.isInt)(params['port']))) {
1154
1168
  _context5.next = 38;
1155
1169
  break;
1156
1170
  }
1157
1171
 
1158
- throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
1172
+ throw new Error("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(port)));
1159
1173
 
1160
1174
  case 38:
1161
- if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
1175
+ if (!(params['s3_bucket'] && !(0, _utils.isString)(params['s3_bucket']))) {
1162
1176
  _context5.next = 40;
1163
1177
  break;
1164
1178
  }
1165
1179
 
1166
- throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
1180
+ throw new Error("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(s3_bucket)));
1167
1181
 
1168
1182
  case 40:
1169
- if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
1183
+ if (!(params['s3_region'] && !(0, _utils.isString)(params['s3_region']))) {
1170
1184
  _context5.next = 42;
1171
1185
  break;
1172
1186
  }
1173
1187
 
1174
- throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
1188
+ throw new Error("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(s3_region)));
1175
1189
 
1176
1190
  case 42:
1177
- if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
1191
+ if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
1178
1192
  _context5.next = 44;
1179
1193
  break;
1180
1194
  }
1181
1195
 
1182
- throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
1196
+ throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
1183
1197
 
1184
1198
  case 44:
1185
- if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
1199
+ if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
1186
1200
  _context5.next = 46;
1187
1201
  break;
1188
1202
  }
1189
1203
 
1190
- throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
1204
+ throw new Error("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
1191
1205
 
1192
1206
  case 46:
1193
- if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
1207
+ if (!(params['server_type'] && !(0, _utils.isString)(params['server_type']))) {
1194
1208
  _context5.next = 48;
1195
1209
  break;
1196
1210
  }
1197
1211
 
1198
- throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
1212
+ throw new Error("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(server_type)));
1199
1213
 
1200
1214
  case 48:
1201
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
1215
+ if (!(params['ssl'] && !(0, _utils.isString)(params['ssl']))) {
1202
1216
  _context5.next = 50;
1203
1217
  break;
1204
1218
  }
1205
1219
 
1206
- throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
1220
+ throw new Error("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(ssl)));
1207
1221
 
1208
1222
  case 50:
1209
- if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
1223
+ if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
1210
1224
  _context5.next = 52;
1211
1225
  break;
1212
1226
  }
1213
1227
 
1214
- throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
1228
+ throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
1215
1229
 
1216
1230
  case 52:
1217
- if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
1231
+ if (!(params['google_cloud_storage_bucket'] && !(0, _utils.isString)(params['google_cloud_storage_bucket']))) {
1218
1232
  _context5.next = 54;
1219
1233
  break;
1220
1234
  }
1221
1235
 
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)));
1236
+ throw new Error("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(google_cloud_storage_bucket)));
1223
1237
 
1224
1238
  case 54:
1225
- if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
1239
+ if (!(params['google_cloud_storage_project_id'] && !(0, _utils.isString)(params['google_cloud_storage_project_id']))) {
1226
1240
  _context5.next = 56;
1227
1241
  break;
1228
1242
  }
1229
1243
 
1230
- throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
1244
+ 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)));
1231
1245
 
1232
1246
  case 56:
1233
- if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
1247
+ if (!(params['backblaze_b2_bucket'] && !(0, _utils.isString)(params['backblaze_b2_bucket']))) {
1234
1248
  _context5.next = 58;
1235
1249
  break;
1236
1250
  }
1237
1251
 
1238
- throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
1252
+ throw new Error("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_bucket)));
1239
1253
 
1240
1254
  case 58:
1241
- if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
1255
+ if (!(params['backblaze_b2_s3_endpoint'] && !(0, _utils.isString)(params['backblaze_b2_s3_endpoint']))) {
1242
1256
  _context5.next = 60;
1243
1257
  break;
1244
1258
  }
1245
1259
 
1246
- throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
1260
+ throw new Error("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(backblaze_b2_s3_endpoint)));
1247
1261
 
1248
1262
  case 60:
1249
- if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
1263
+ if (!(params['wasabi_bucket'] && !(0, _utils.isString)(params['wasabi_bucket']))) {
1250
1264
  _context5.next = 62;
1251
1265
  break;
1252
1266
  }
1253
1267
 
1254
- throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
1268
+ throw new Error("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(wasabi_bucket)));
1255
1269
 
1256
1270
  case 62:
1257
- if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
1271
+ if (!(params['wasabi_region'] && !(0, _utils.isString)(params['wasabi_region']))) {
1258
1272
  _context5.next = 64;
1259
1273
  break;
1260
1274
  }
1261
1275
 
1262
- throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
1276
+ throw new Error("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(wasabi_region)));
1263
1277
 
1264
1278
  case 64:
1265
- if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
1279
+ if (!(params['rackspace_username'] && !(0, _utils.isString)(params['rackspace_username']))) {
1266
1280
  _context5.next = 66;
1267
1281
  break;
1268
1282
  }
1269
1283
 
1270
- throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
1284
+ throw new Error("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(rackspace_username)));
1271
1285
 
1272
1286
  case 66:
1273
- if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
1287
+ if (!(params['rackspace_region'] && !(0, _utils.isString)(params['rackspace_region']))) {
1274
1288
  _context5.next = 68;
1275
1289
  break;
1276
1290
  }
1277
1291
 
1278
- throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
1292
+ throw new Error("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(rackspace_region)));
1279
1293
 
1280
1294
  case 68:
1281
- if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
1295
+ if (!(params['rackspace_container'] && !(0, _utils.isString)(params['rackspace_container']))) {
1282
1296
  _context5.next = 70;
1283
1297
  break;
1284
1298
  }
1285
1299
 
1286
- throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
1300
+ throw new Error("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(rackspace_container)));
1287
1301
 
1288
1302
  case 70:
1289
- if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
1303
+ if (!(params['one_drive_account_type'] && !(0, _utils.isString)(params['one_drive_account_type']))) {
1290
1304
  _context5.next = 72;
1291
1305
  break;
1292
1306
  }
1293
1307
 
1294
- throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
1308
+ throw new Error("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(one_drive_account_type)));
1295
1309
 
1296
1310
  case 72:
1297
- if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
1311
+ if (!(params['azure_blob_storage_account'] && !(0, _utils.isString)(params['azure_blob_storage_account']))) {
1298
1312
  _context5.next = 74;
1299
1313
  break;
1300
1314
  }
1301
1315
 
1302
- throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
1316
+ throw new Error("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_account)));
1303
1317
 
1304
1318
  case 74:
1305
- if (!(params['azure_blob_storage_sas_token'] && !(0, _utils.isString)(params['azure_blob_storage_sas_token']))) {
1319
+ if (!(params['azure_blob_storage_container'] && !(0, _utils.isString)(params['azure_blob_storage_container']))) {
1306
1320
  _context5.next = 76;
1307
1321
  break;
1308
1322
  }
1309
1323
 
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)));
1324
+ throw new Error("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(azure_blob_storage_container)));
1311
1325
 
1312
1326
  case 76:
1313
- if (!(params['azure_files_storage_account'] && !(0, _utils.isString)(params['azure_files_storage_account']))) {
1327
+ if (!(params['azure_blob_storage_sas_token'] && !(0, _utils.isString)(params['azure_blob_storage_sas_token']))) {
1314
1328
  _context5.next = 78;
1315
1329
  break;
1316
1330
  }
1317
1331
 
1318
- throw new Error("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_account)));
1332
+ 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)));
1319
1333
 
1320
1334
  case 78:
1321
- if (!(params['azure_files_share_name'] && !(0, _utils.isString)(params['azure_files_share_name']))) {
1335
+ if (!(params['azure_files_storage_account'] && !(0, _utils.isString)(params['azure_files_storage_account']))) {
1322
1336
  _context5.next = 80;
1323
1337
  break;
1324
1338
  }
1325
1339
 
1326
- throw new Error("Bad parameter: azure_files_share_name must be of type String, received ".concat((0, _utils.getType)(azure_files_share_name)));
1340
+ throw new Error("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(azure_files_storage_account)));
1327
1341
 
1328
1342
  case 80:
1329
- if (!(params['azure_files_sas_token'] && !(0, _utils.isString)(params['azure_files_sas_token']))) {
1343
+ if (!(params['azure_files_storage_share_name'] && !(0, _utils.isString)(params['azure_files_storage_share_name']))) {
1330
1344
  _context5.next = 82;
1331
1345
  break;
1332
1346
  }
1333
1347
 
1334
- throw new Error("Bad parameter: azure_files_sas_token must be of type String, received ".concat((0, _utils.getType)(azure_files_sas_token)));
1348
+ 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)));
1335
1349
 
1336
1350
  case 82:
1337
- if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
1351
+ if (!(params['azure_files_storage_sas_token'] && !(0, _utils.isString)(params['azure_files_storage_sas_token']))) {
1338
1352
  _context5.next = 84;
1339
1353
  break;
1340
1354
  }
1341
1355
 
1342
- throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
1356
+ 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)));
1343
1357
 
1344
1358
  case 84:
1345
- if (!(params['s3_compatible_endpoint'] && !(0, _utils.isString)(params['s3_compatible_endpoint']))) {
1359
+ if (!(params['s3_compatible_bucket'] && !(0, _utils.isString)(params['s3_compatible_bucket']))) {
1346
1360
  _context5.next = 86;
1347
1361
  break;
1348
1362
  }
1349
1363
 
1350
- throw new Error("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(s3_compatible_endpoint)));
1364
+ throw new Error("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(s3_compatible_bucket)));
1351
1365
 
1352
1366
  case 86:
1353
- if (!(params['s3_compatible_region'] && !(0, _utils.isString)(params['s3_compatible_region']))) {
1367
+ if (!(params['s3_compatible_endpoint'] && !(0, _utils.isString)(params['s3_compatible_endpoint']))) {
1354
1368
  _context5.next = 88;
1355
1369
  break;
1356
1370
  }
1357
1371
 
1358
- throw new Error("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(s3_compatible_region)));
1372
+ throw new Error("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(s3_compatible_endpoint)));
1359
1373
 
1360
1374
  case 88:
1361
- if (!(params['s3_compatible_access_key'] && !(0, _utils.isString)(params['s3_compatible_access_key']))) {
1375
+ if (!(params['s3_compatible_region'] && !(0, _utils.isString)(params['s3_compatible_region']))) {
1362
1376
  _context5.next = 90;
1363
1377
  break;
1364
1378
  }
1365
1379
 
1366
- throw new Error("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_access_key)));
1380
+ throw new Error("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(s3_compatible_region)));
1367
1381
 
1368
1382
  case 90:
1369
- if (!(params['s3_compatible_secret_key'] && !(0, _utils.isString)(params['s3_compatible_secret_key']))) {
1383
+ if (!(params['s3_compatible_access_key'] && !(0, _utils.isString)(params['s3_compatible_access_key']))) {
1370
1384
  _context5.next = 92;
1371
1385
  break;
1372
1386
  }
1373
1387
 
1374
- throw new Error("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_secret_key)));
1388
+ throw new Error("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_access_key)));
1375
1389
 
1376
1390
  case 92:
1377
- _context5.next = 94;
1378
- return _Api.default.sendRequest("/remote_servers", 'POST', params, options);
1391
+ if (!(params['s3_compatible_secret_key'] && !(0, _utils.isString)(params['s3_compatible_secret_key']))) {
1392
+ _context5.next = 94;
1393
+ break;
1394
+ }
1395
+
1396
+ throw new Error("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(s3_compatible_secret_key)));
1379
1397
 
1380
1398
  case 94:
1399
+ _context5.next = 96;
1400
+ return _Api.default.sendRequest("/remote_servers", 'POST', params, options);
1401
+
1402
+ case 96:
1381
1403
  response = _context5.sent;
1382
1404
  return _context5.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
1383
1405
 
1384
- case 96:
1406
+ case 98:
1385
1407
  case "end":
1386
1408
  return _context5.stop();
1387
1409
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.187",
3
+ "version": "1.0.190",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -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
@@ -314,13 +307,13 @@ class Automation {
314
307
  // Parameters:
315
308
  // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
316
309
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
317
- // sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `last_modified_at` or `disabled`.
318
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
319
- // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
320
- // filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
321
- // filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
322
- // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
323
- // filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
310
+ // sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `disabled` or `last_modified_at`.
311
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
312
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
313
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
314
+ // filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
315
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
316
+ // filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
324
317
  // with_deleted - boolean - Set to true to include deleted automations in the results.
325
318
  // automation - string - DEPRECATED: Type of automation to filter by. Use `filter[automation]` instead.
326
319
  static list = async (params = {}, options = {}) => {
@@ -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)
@@ -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 status. Can be invalid, not_generated, generating, complete, or file_too_large
34
+ // string # Preview type. Can be image, pdf, pdf_native, video, or audio
35
35
  getType = () => this.attributes.type
36
36
 
37
- // int64 # Preview size
37
+ // string # Preview size
38
38
  getSize = () => this.attributes.size
39
39
 
40
40
  }
@@ -261,17 +261,17 @@ class RemoteServer {
261
261
  }
262
262
 
263
263
  // string # Shared Access Signature (SAS) token
264
- getAzureFilesSasToken = () => this.attributes.azure_files_sas_token
264
+ getAzureFilesStorageSasToken = () => this.attributes.azure_files_storage_sas_token
265
265
 
266
- setAzureFilesSasToken = value => {
267
- this.attributes.azure_files_sas_token = value
266
+ setAzureFilesStorageSasToken = value => {
267
+ this.attributes.azure_files_storage_sas_token = value
268
268
  }
269
269
 
270
270
  // string # Azure File Storage Share name
271
- getAzureFilesShareName = () => this.attributes.azure_files_share_name
271
+ getAzureFilesStorageShareName = () => this.attributes.azure_files_storage_share_name
272
272
 
273
- setAzureFilesShareName = value => {
274
- this.attributes.azure_files_share_name = value
273
+ setAzureFilesStorageShareName = value => {
274
+ this.attributes.azure_files_storage_share_name = value
275
275
  }
276
276
 
277
277
  // string # S3-compatible Bucket name
@@ -330,6 +330,13 @@ class RemoteServer {
330
330
  this.attributes.private_key = value
331
331
  }
332
332
 
333
+ // string # Passphrase for private key if needed.
334
+ getPrivateKeyPassphrase = () => this.attributes.private_key_passphrase
335
+
336
+ setPrivateKeyPassphrase = value => {
337
+ this.attributes.private_key_passphrase = value
338
+ }
339
+
333
340
  // string # SSL client certificate.
334
341
  getSslCertificate = () => this.attributes.ssl_certificate
335
342
 
@@ -406,6 +413,7 @@ class RemoteServer {
406
413
  // aws_secret_key - string - AWS secret key.
407
414
  // password - string - Password if needed.
408
415
  // private_key - string - Private key if needed.
416
+ // private_key_passphrase - string - Passphrase for private key if needed.
409
417
  // ssl_certificate - string - SSL client certificate.
410
418
  // google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
411
419
  // wasabi_access_key - string - Wasabi access key.
@@ -441,8 +449,8 @@ class RemoteServer {
441
449
  // azure_blob_storage_container - string - Azure Blob Storage Container name
442
450
  // azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
443
451
  // azure_files_storage_account - string - Azure File Storage Account name
444
- // azure_files_share_name - string - Azure File Storage Share name
445
- // azure_files_sas_token - string - Shared Access Signature (SAS) token
452
+ // azure_files_storage_share_name - string - Azure File Storage Share name
453
+ // azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
446
454
  // s3_compatible_bucket - string - S3-compatible Bucket name
447
455
  // s3_compatible_endpoint - string - S3-compatible endpoint
448
456
  // s3_compatible_region - string - S3-compatible endpoint
@@ -474,6 +482,9 @@ class RemoteServer {
474
482
  if (params['private_key'] && !isString(params['private_key'])) {
475
483
  throw new Error(`Bad parameter: private_key must be of type String, received ${getType(private_key)}`)
476
484
  }
485
+ if (params['private_key_passphrase'] && !isString(params['private_key_passphrase'])) {
486
+ throw new Error(`Bad parameter: private_key_passphrase must be of type String, received ${getType(private_key_passphrase)}`)
487
+ }
477
488
  if (params['ssl_certificate'] && !isString(params['ssl_certificate'])) {
478
489
  throw new Error(`Bad parameter: ssl_certificate must be of type String, received ${getType(ssl_certificate)}`)
479
490
  }
@@ -576,11 +587,11 @@ class RemoteServer {
576
587
  if (params['azure_files_storage_account'] && !isString(params['azure_files_storage_account'])) {
577
588
  throw new Error(`Bad parameter: azure_files_storage_account must be of type String, received ${getType(azure_files_storage_account)}`)
578
589
  }
579
- if (params['azure_files_share_name'] && !isString(params['azure_files_share_name'])) {
580
- throw new Error(`Bad parameter: azure_files_share_name must be of type String, received ${getType(azure_files_share_name)}`)
590
+ if (params['azure_files_storage_share_name'] && !isString(params['azure_files_storage_share_name'])) {
591
+ throw new Error(`Bad parameter: azure_files_storage_share_name must be of type String, received ${getType(azure_files_storage_share_name)}`)
581
592
  }
582
- if (params['azure_files_sas_token'] && !isString(params['azure_files_sas_token'])) {
583
- throw new Error(`Bad parameter: azure_files_sas_token must be of type String, received ${getType(azure_files_sas_token)}`)
593
+ if (params['azure_files_storage_sas_token'] && !isString(params['azure_files_storage_sas_token'])) {
594
+ throw new Error(`Bad parameter: azure_files_storage_sas_token must be of type String, received ${getType(azure_files_storage_sas_token)}`)
584
595
  }
585
596
  if (params['s3_compatible_bucket'] && !isString(params['s3_compatible_bucket'])) {
586
597
  throw new Error(`Bad parameter: s3_compatible_bucket must be of type String, received ${getType(s3_compatible_bucket)}`)
@@ -701,6 +712,7 @@ class RemoteServer {
701
712
  // aws_secret_key - string - AWS secret key.
702
713
  // password - string - Password if needed.
703
714
  // private_key - string - Private key if needed.
715
+ // private_key_passphrase - string - Passphrase for private key if needed.
704
716
  // ssl_certificate - string - SSL client certificate.
705
717
  // google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
706
718
  // wasabi_access_key - string - Wasabi access key.
@@ -736,8 +748,8 @@ class RemoteServer {
736
748
  // azure_blob_storage_container - string - Azure Blob Storage Container name
737
749
  // azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
738
750
  // azure_files_storage_account - string - Azure File Storage Account name
739
- // azure_files_share_name - string - Azure File Storage Share name
740
- // azure_files_sas_token - string - Shared Access Signature (SAS) token
751
+ // azure_files_storage_share_name - string - Azure File Storage Share name
752
+ // azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
741
753
  // s3_compatible_bucket - string - S3-compatible Bucket name
742
754
  // s3_compatible_endpoint - string - S3-compatible endpoint
743
755
  // s3_compatible_region - string - S3-compatible endpoint
@@ -761,6 +773,10 @@ class RemoteServer {
761
773
  throw new Error(`Bad parameter: private_key must be of type String, received ${getType(private_key)}`)
762
774
  }
763
775
 
776
+ if (params['private_key_passphrase'] && !isString(params['private_key_passphrase'])) {
777
+ throw new Error(`Bad parameter: private_key_passphrase must be of type String, received ${getType(private_key_passphrase)}`)
778
+ }
779
+
764
780
  if (params['ssl_certificate'] && !isString(params['ssl_certificate'])) {
765
781
  throw new Error(`Bad parameter: ssl_certificate must be of type String, received ${getType(ssl_certificate)}`)
766
782
  }
@@ -897,12 +913,12 @@ class RemoteServer {
897
913
  throw new Error(`Bad parameter: azure_files_storage_account must be of type String, received ${getType(azure_files_storage_account)}`)
898
914
  }
899
915
 
900
- if (params['azure_files_share_name'] && !isString(params['azure_files_share_name'])) {
901
- throw new Error(`Bad parameter: azure_files_share_name must be of type String, received ${getType(azure_files_share_name)}`)
916
+ if (params['azure_files_storage_share_name'] && !isString(params['azure_files_storage_share_name'])) {
917
+ throw new Error(`Bad parameter: azure_files_storage_share_name must be of type String, received ${getType(azure_files_storage_share_name)}`)
902
918
  }
903
919
 
904
- if (params['azure_files_sas_token'] && !isString(params['azure_files_sas_token'])) {
905
- throw new Error(`Bad parameter: azure_files_sas_token must be of type String, received ${getType(azure_files_sas_token)}`)
920
+ if (params['azure_files_storage_sas_token'] && !isString(params['azure_files_storage_sas_token'])) {
921
+ throw new Error(`Bad parameter: azure_files_storage_sas_token must be of type String, received ${getType(azure_files_storage_sas_token)}`)
906
922
  }
907
923
 
908
924
  if (params['s3_compatible_bucket'] && !isString(params['s3_compatible_bucket'])) {