files-com 1.5.6__py3-none-any.whl → 1.6.1__py3-none-any.whl
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.
Potentially problematic release.
This version of files-com might be problematic. Click here for more details.
- README.md +1 -1
- _VERSION +1 -1
- {files_com-1.5.6.dist-info → files_com-1.6.1.dist-info}/METADATA +2 -2
- {files_com-1.5.6.dist-info → files_com-1.6.1.dist-info}/RECORD +31 -31
- files_sdk/__init__.py +1 -1
- files_sdk/models/action_notification_export.py +6 -0
- files_sdk/models/as2_partner.py +12 -0
- files_sdk/models/automation.py +64 -0
- files_sdk/models/behavior.py +22 -0
- files_sdk/models/bundle.py +128 -0
- files_sdk/models/bundle_notification.py +32 -4
- files_sdk/models/bundle_recipient.py +6 -0
- files_sdk/models/file.py +52 -0
- files_sdk/models/folder.py +22 -0
- files_sdk/models/form_field_set.py +24 -0
- files_sdk/models/group.py +54 -0
- files_sdk/models/group_user.py +4 -0
- files_sdk/models/inbox_recipient.py +6 -0
- files_sdk/models/lock.py +16 -0
- files_sdk/models/notification.py +94 -0
- files_sdk/models/permission.py +8 -0
- files_sdk/models/remote_server.py +66 -0
- files_sdk/models/request.py +4 -0
- files_sdk/models/restore.py +18 -0
- files_sdk/models/siem_http_destination.py +216 -0
- files_sdk/models/site.py +514 -0
- files_sdk/models/user.py +222 -0
- files_sdk/models/webhook_test.py +12 -0
- {files_com-1.5.6.dist-info → files_com-1.6.1.dist-info}/WHEEL +0 -0
- {files_com-1.5.6.dist-info → files_com-1.6.1.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.5.6.dist-info → files_com-1.6.1.dist-info}/top_level.txt +0 -0
files_sdk/models/site.py
CHANGED
|
@@ -398,6 +398,12 @@ def update(params=None, options=None):
|
|
|
398
398
|
raise InvalidParameterError("Bad parameter: subdomain must be an str")
|
|
399
399
|
if "domain" in params and not isinstance(params["domain"], str):
|
|
400
400
|
raise InvalidParameterError("Bad parameter: domain must be an str")
|
|
401
|
+
if "domain_hsts_header" in params and not isinstance(
|
|
402
|
+
params["domain_hsts_header"], bool
|
|
403
|
+
):
|
|
404
|
+
raise InvalidParameterError(
|
|
405
|
+
"Bad parameter: domain_hsts_header must be an bool"
|
|
406
|
+
)
|
|
401
407
|
if "domain_letsencrypt_chain" in params and not isinstance(
|
|
402
408
|
params["domain_letsencrypt_chain"], str
|
|
403
409
|
):
|
|
@@ -412,12 +418,42 @@ def update(params=None, options=None):
|
|
|
412
418
|
raise InvalidParameterError(
|
|
413
419
|
"Bad parameter: reply_to_email must be an str"
|
|
414
420
|
)
|
|
421
|
+
if "allow_bundle_names" in params and not isinstance(
|
|
422
|
+
params["allow_bundle_names"], bool
|
|
423
|
+
):
|
|
424
|
+
raise InvalidParameterError(
|
|
425
|
+
"Bad parameter: allow_bundle_names must be an bool"
|
|
426
|
+
)
|
|
415
427
|
if "bundle_expiration" in params and not isinstance(
|
|
416
428
|
params["bundle_expiration"], int
|
|
417
429
|
):
|
|
418
430
|
raise InvalidParameterError(
|
|
419
431
|
"Bad parameter: bundle_expiration must be an int"
|
|
420
432
|
)
|
|
433
|
+
if "welcome_email_enabled" in params and not isinstance(
|
|
434
|
+
params["welcome_email_enabled"], bool
|
|
435
|
+
):
|
|
436
|
+
raise InvalidParameterError(
|
|
437
|
+
"Bad parameter: welcome_email_enabled must be an bool"
|
|
438
|
+
)
|
|
439
|
+
if "ask_about_overwrites" in params and not isinstance(
|
|
440
|
+
params["ask_about_overwrites"], bool
|
|
441
|
+
):
|
|
442
|
+
raise InvalidParameterError(
|
|
443
|
+
"Bad parameter: ask_about_overwrites must be an bool"
|
|
444
|
+
)
|
|
445
|
+
if "show_request_access_link" in params and not isinstance(
|
|
446
|
+
params["show_request_access_link"], bool
|
|
447
|
+
):
|
|
448
|
+
raise InvalidParameterError(
|
|
449
|
+
"Bad parameter: show_request_access_link must be an bool"
|
|
450
|
+
)
|
|
451
|
+
if "always_mkdir_parents" in params and not isinstance(
|
|
452
|
+
params["always_mkdir_parents"], bool
|
|
453
|
+
):
|
|
454
|
+
raise InvalidParameterError(
|
|
455
|
+
"Bad parameter: always_mkdir_parents must be an bool"
|
|
456
|
+
)
|
|
421
457
|
if "welcome_email_cc" in params and not isinstance(
|
|
422
458
|
params["welcome_email_cc"], str
|
|
423
459
|
):
|
|
@@ -438,38 +474,94 @@ def update(params=None, options=None):
|
|
|
438
474
|
)
|
|
439
475
|
if "language" in params and not isinstance(params["language"], str):
|
|
440
476
|
raise InvalidParameterError("Bad parameter: language must be an str")
|
|
477
|
+
if "windows_mode_ftp" in params and not isinstance(
|
|
478
|
+
params["windows_mode_ftp"], bool
|
|
479
|
+
):
|
|
480
|
+
raise InvalidParameterError(
|
|
481
|
+
"Bad parameter: windows_mode_ftp must be an bool"
|
|
482
|
+
)
|
|
441
483
|
if "default_time_zone" in params and not isinstance(
|
|
442
484
|
params["default_time_zone"], str
|
|
443
485
|
):
|
|
444
486
|
raise InvalidParameterError(
|
|
445
487
|
"Bad parameter: default_time_zone must be an str"
|
|
446
488
|
)
|
|
489
|
+
if "desktop_app" in params and not isinstance(params["desktop_app"], bool):
|
|
490
|
+
raise InvalidParameterError(
|
|
491
|
+
"Bad parameter: desktop_app must be an bool"
|
|
492
|
+
)
|
|
493
|
+
if "desktop_app_session_ip_pinning" in params and not isinstance(
|
|
494
|
+
params["desktop_app_session_ip_pinning"], bool
|
|
495
|
+
):
|
|
496
|
+
raise InvalidParameterError(
|
|
497
|
+
"Bad parameter: desktop_app_session_ip_pinning must be an bool"
|
|
498
|
+
)
|
|
447
499
|
if "desktop_app_session_lifetime" in params and not isinstance(
|
|
448
500
|
params["desktop_app_session_lifetime"], int
|
|
449
501
|
):
|
|
450
502
|
raise InvalidParameterError(
|
|
451
503
|
"Bad parameter: desktop_app_session_lifetime must be an int"
|
|
452
504
|
)
|
|
505
|
+
if "mobile_app" in params and not isinstance(params["mobile_app"], bool):
|
|
506
|
+
raise InvalidParameterError(
|
|
507
|
+
"Bad parameter: mobile_app must be an bool"
|
|
508
|
+
)
|
|
509
|
+
if "mobile_app_session_ip_pinning" in params and not isinstance(
|
|
510
|
+
params["mobile_app_session_ip_pinning"], bool
|
|
511
|
+
):
|
|
512
|
+
raise InvalidParameterError(
|
|
513
|
+
"Bad parameter: mobile_app_session_ip_pinning must be an bool"
|
|
514
|
+
)
|
|
453
515
|
if "mobile_app_session_lifetime" in params and not isinstance(
|
|
454
516
|
params["mobile_app_session_lifetime"], int
|
|
455
517
|
):
|
|
456
518
|
raise InvalidParameterError(
|
|
457
519
|
"Bad parameter: mobile_app_session_lifetime must be an int"
|
|
458
520
|
)
|
|
521
|
+
if "folder_permissions_groups_only" in params and not isinstance(
|
|
522
|
+
params["folder_permissions_groups_only"], bool
|
|
523
|
+
):
|
|
524
|
+
raise InvalidParameterError(
|
|
525
|
+
"Bad parameter: folder_permissions_groups_only must be an bool"
|
|
526
|
+
)
|
|
459
527
|
if "welcome_screen" in params and not isinstance(
|
|
460
528
|
params["welcome_screen"], str
|
|
461
529
|
):
|
|
462
530
|
raise InvalidParameterError(
|
|
463
531
|
"Bad parameter: welcome_screen must be an str"
|
|
464
532
|
)
|
|
533
|
+
if "office_integration_available" in params and not isinstance(
|
|
534
|
+
params["office_integration_available"], bool
|
|
535
|
+
):
|
|
536
|
+
raise InvalidParameterError(
|
|
537
|
+
"Bad parameter: office_integration_available must be an bool"
|
|
538
|
+
)
|
|
465
539
|
if "office_integration_type" in params and not isinstance(
|
|
466
540
|
params["office_integration_type"], str
|
|
467
541
|
):
|
|
468
542
|
raise InvalidParameterError(
|
|
469
543
|
"Bad parameter: office_integration_type must be an str"
|
|
470
544
|
)
|
|
545
|
+
if "pin_all_remote_servers_to_site_region" in params and not isinstance(
|
|
546
|
+
params["pin_all_remote_servers_to_site_region"], bool
|
|
547
|
+
):
|
|
548
|
+
raise InvalidParameterError(
|
|
549
|
+
"Bad parameter: pin_all_remote_servers_to_site_region must be an bool"
|
|
550
|
+
)
|
|
471
551
|
if "motd_text" in params and not isinstance(params["motd_text"], str):
|
|
472
552
|
raise InvalidParameterError("Bad parameter: motd_text must be an str")
|
|
553
|
+
if "motd_use_for_ftp" in params and not isinstance(
|
|
554
|
+
params["motd_use_for_ftp"], bool
|
|
555
|
+
):
|
|
556
|
+
raise InvalidParameterError(
|
|
557
|
+
"Bad parameter: motd_use_for_ftp must be an bool"
|
|
558
|
+
)
|
|
559
|
+
if "motd_use_for_sftp" in params and not isinstance(
|
|
560
|
+
params["motd_use_for_sftp"], bool
|
|
561
|
+
):
|
|
562
|
+
raise InvalidParameterError(
|
|
563
|
+
"Bad parameter: motd_use_for_sftp must be an bool"
|
|
564
|
+
)
|
|
473
565
|
if "left_navigation_visibility" in params and not isinstance(
|
|
474
566
|
params["left_navigation_visibility"], dict
|
|
475
567
|
):
|
|
@@ -482,12 +574,90 @@ def update(params=None, options=None):
|
|
|
482
574
|
raise InvalidParameterError(
|
|
483
575
|
"Bad parameter: additional_text_file_types must be an list"
|
|
484
576
|
)
|
|
577
|
+
if "bundle_require_note" in params and not isinstance(
|
|
578
|
+
params["bundle_require_note"], bool
|
|
579
|
+
):
|
|
580
|
+
raise InvalidParameterError(
|
|
581
|
+
"Bad parameter: bundle_require_note must be an bool"
|
|
582
|
+
)
|
|
583
|
+
if "bundle_send_shared_receipts" in params and not isinstance(
|
|
584
|
+
params["bundle_send_shared_receipts"], bool
|
|
585
|
+
):
|
|
586
|
+
raise InvalidParameterError(
|
|
587
|
+
"Bad parameter: bundle_send_shared_receipts must be an bool"
|
|
588
|
+
)
|
|
589
|
+
if "calculate_file_checksums_crc32" in params and not isinstance(
|
|
590
|
+
params["calculate_file_checksums_crc32"], bool
|
|
591
|
+
):
|
|
592
|
+
raise InvalidParameterError(
|
|
593
|
+
"Bad parameter: calculate_file_checksums_crc32 must be an bool"
|
|
594
|
+
)
|
|
595
|
+
if "calculate_file_checksums_md5" in params and not isinstance(
|
|
596
|
+
params["calculate_file_checksums_md5"], bool
|
|
597
|
+
):
|
|
598
|
+
raise InvalidParameterError(
|
|
599
|
+
"Bad parameter: calculate_file_checksums_md5 must be an bool"
|
|
600
|
+
)
|
|
601
|
+
if "calculate_file_checksums_sha1" in params and not isinstance(
|
|
602
|
+
params["calculate_file_checksums_sha1"], bool
|
|
603
|
+
):
|
|
604
|
+
raise InvalidParameterError(
|
|
605
|
+
"Bad parameter: calculate_file_checksums_sha1 must be an bool"
|
|
606
|
+
)
|
|
607
|
+
if "calculate_file_checksums_sha256" in params and not isinstance(
|
|
608
|
+
params["calculate_file_checksums_sha256"], bool
|
|
609
|
+
):
|
|
610
|
+
raise InvalidParameterError(
|
|
611
|
+
"Bad parameter: calculate_file_checksums_sha256 must be an bool"
|
|
612
|
+
)
|
|
613
|
+
if "legacy_checksums_mode" in params and not isinstance(
|
|
614
|
+
params["legacy_checksums_mode"], bool
|
|
615
|
+
):
|
|
616
|
+
raise InvalidParameterError(
|
|
617
|
+
"Bad parameter: legacy_checksums_mode must be an bool"
|
|
618
|
+
)
|
|
485
619
|
if "session_expiry" in params and not isinstance(
|
|
486
620
|
params["session_expiry"], float
|
|
487
621
|
):
|
|
488
622
|
raise InvalidParameterError(
|
|
489
623
|
"Bad parameter: session_expiry must be an float"
|
|
490
624
|
)
|
|
625
|
+
if "ssl_required" in params and not isinstance(
|
|
626
|
+
params["ssl_required"], bool
|
|
627
|
+
):
|
|
628
|
+
raise InvalidParameterError(
|
|
629
|
+
"Bad parameter: ssl_required must be an bool"
|
|
630
|
+
)
|
|
631
|
+
if "tls_disabled" in params and not isinstance(
|
|
632
|
+
params["tls_disabled"], bool
|
|
633
|
+
):
|
|
634
|
+
raise InvalidParameterError(
|
|
635
|
+
"Bad parameter: tls_disabled must be an bool"
|
|
636
|
+
)
|
|
637
|
+
if "sftp_insecure_ciphers" in params and not isinstance(
|
|
638
|
+
params["sftp_insecure_ciphers"], bool
|
|
639
|
+
):
|
|
640
|
+
raise InvalidParameterError(
|
|
641
|
+
"Bad parameter: sftp_insecure_ciphers must be an bool"
|
|
642
|
+
)
|
|
643
|
+
if "sftp_insecure_diffie_hellman" in params and not isinstance(
|
|
644
|
+
params["sftp_insecure_diffie_hellman"], bool
|
|
645
|
+
):
|
|
646
|
+
raise InvalidParameterError(
|
|
647
|
+
"Bad parameter: sftp_insecure_diffie_hellman must be an bool"
|
|
648
|
+
)
|
|
649
|
+
if "disable_files_certificate_generation" in params and not isinstance(
|
|
650
|
+
params["disable_files_certificate_generation"], bool
|
|
651
|
+
):
|
|
652
|
+
raise InvalidParameterError(
|
|
653
|
+
"Bad parameter: disable_files_certificate_generation must be an bool"
|
|
654
|
+
)
|
|
655
|
+
if "user_lockout" in params and not isinstance(
|
|
656
|
+
params["user_lockout"], bool
|
|
657
|
+
):
|
|
658
|
+
raise InvalidParameterError(
|
|
659
|
+
"Bad parameter: user_lockout must be an bool"
|
|
660
|
+
)
|
|
491
661
|
if "user_lockout_tries" in params and not isinstance(
|
|
492
662
|
params["user_lockout_tries"], int
|
|
493
663
|
):
|
|
@@ -506,6 +676,12 @@ def update(params=None, options=None):
|
|
|
506
676
|
raise InvalidParameterError(
|
|
507
677
|
"Bad parameter: user_lockout_lock_period must be an int"
|
|
508
678
|
)
|
|
679
|
+
if "include_password_in_welcome_email" in params and not isinstance(
|
|
680
|
+
params["include_password_in_welcome_email"], bool
|
|
681
|
+
):
|
|
682
|
+
raise InvalidParameterError(
|
|
683
|
+
"Bad parameter: include_password_in_welcome_email must be an bool"
|
|
684
|
+
)
|
|
509
685
|
if "allowed_countries" in params and not isinstance(
|
|
510
686
|
params["allowed_countries"], str
|
|
511
687
|
):
|
|
@@ -552,12 +728,90 @@ def update(params=None, options=None):
|
|
|
552
728
|
raise InvalidParameterError(
|
|
553
729
|
"Bad parameter: password_min_length must be an int"
|
|
554
730
|
)
|
|
731
|
+
if "password_require_letter" in params and not isinstance(
|
|
732
|
+
params["password_require_letter"], bool
|
|
733
|
+
):
|
|
734
|
+
raise InvalidParameterError(
|
|
735
|
+
"Bad parameter: password_require_letter must be an bool"
|
|
736
|
+
)
|
|
737
|
+
if "password_require_mixed" in params and not isinstance(
|
|
738
|
+
params["password_require_mixed"], bool
|
|
739
|
+
):
|
|
740
|
+
raise InvalidParameterError(
|
|
741
|
+
"Bad parameter: password_require_mixed must be an bool"
|
|
742
|
+
)
|
|
743
|
+
if "password_require_special" in params and not isinstance(
|
|
744
|
+
params["password_require_special"], bool
|
|
745
|
+
):
|
|
746
|
+
raise InvalidParameterError(
|
|
747
|
+
"Bad parameter: password_require_special must be an bool"
|
|
748
|
+
)
|
|
749
|
+
if "password_require_number" in params and not isinstance(
|
|
750
|
+
params["password_require_number"], bool
|
|
751
|
+
):
|
|
752
|
+
raise InvalidParameterError(
|
|
753
|
+
"Bad parameter: password_require_number must be an bool"
|
|
754
|
+
)
|
|
755
|
+
if "password_require_unbreached" in params and not isinstance(
|
|
756
|
+
params["password_require_unbreached"], bool
|
|
757
|
+
):
|
|
758
|
+
raise InvalidParameterError(
|
|
759
|
+
"Bad parameter: password_require_unbreached must be an bool"
|
|
760
|
+
)
|
|
761
|
+
if "require_logout_from_bundles_and_inboxes" in params and not isinstance(
|
|
762
|
+
params["require_logout_from_bundles_and_inboxes"], bool
|
|
763
|
+
):
|
|
764
|
+
raise InvalidParameterError(
|
|
765
|
+
"Bad parameter: require_logout_from_bundles_and_inboxes must be an bool"
|
|
766
|
+
)
|
|
767
|
+
if "dav_user_root_enabled" in params and not isinstance(
|
|
768
|
+
params["dav_user_root_enabled"], bool
|
|
769
|
+
):
|
|
770
|
+
raise InvalidParameterError(
|
|
771
|
+
"Bad parameter: dav_user_root_enabled must be an bool"
|
|
772
|
+
)
|
|
773
|
+
if "sftp_user_root_enabled" in params and not isinstance(
|
|
774
|
+
params["sftp_user_root_enabled"], bool
|
|
775
|
+
):
|
|
776
|
+
raise InvalidParameterError(
|
|
777
|
+
"Bad parameter: sftp_user_root_enabled must be an bool"
|
|
778
|
+
)
|
|
779
|
+
if "disable_password_reset" in params and not isinstance(
|
|
780
|
+
params["disable_password_reset"], bool
|
|
781
|
+
):
|
|
782
|
+
raise InvalidParameterError(
|
|
783
|
+
"Bad parameter: disable_password_reset must be an bool"
|
|
784
|
+
)
|
|
785
|
+
if "immutable_files" in params and not isinstance(
|
|
786
|
+
params["immutable_files"], bool
|
|
787
|
+
):
|
|
788
|
+
raise InvalidParameterError(
|
|
789
|
+
"Bad parameter: immutable_files must be an bool"
|
|
790
|
+
)
|
|
555
791
|
if "bundle_not_found_message" in params and not isinstance(
|
|
556
792
|
params["bundle_not_found_message"], str
|
|
557
793
|
):
|
|
558
794
|
raise InvalidParameterError(
|
|
559
795
|
"Bad parameter: bundle_not_found_message must be an str"
|
|
560
796
|
)
|
|
797
|
+
if "bundle_password_required" in params and not isinstance(
|
|
798
|
+
params["bundle_password_required"], bool
|
|
799
|
+
):
|
|
800
|
+
raise InvalidParameterError(
|
|
801
|
+
"Bad parameter: bundle_password_required must be an bool"
|
|
802
|
+
)
|
|
803
|
+
if "bundle_require_registration" in params and not isinstance(
|
|
804
|
+
params["bundle_require_registration"], bool
|
|
805
|
+
):
|
|
806
|
+
raise InvalidParameterError(
|
|
807
|
+
"Bad parameter: bundle_require_registration must be an bool"
|
|
808
|
+
)
|
|
809
|
+
if "bundle_require_share_recipient" in params and not isinstance(
|
|
810
|
+
params["bundle_require_share_recipient"], bool
|
|
811
|
+
):
|
|
812
|
+
raise InvalidParameterError(
|
|
813
|
+
"Bad parameter: bundle_require_share_recipient must be an bool"
|
|
814
|
+
)
|
|
561
815
|
if "bundle_registration_notifications" in params and not isinstance(
|
|
562
816
|
params["bundle_registration_notifications"], str
|
|
563
817
|
):
|
|
@@ -576,6 +830,45 @@ def update(params=None, options=None):
|
|
|
576
830
|
raise InvalidParameterError(
|
|
577
831
|
"Bad parameter: bundle_upload_receipt_notifications must be an str"
|
|
578
832
|
)
|
|
833
|
+
if "document_edits_in_bundle_allowed" in params and not isinstance(
|
|
834
|
+
params["document_edits_in_bundle_allowed"], bool
|
|
835
|
+
):
|
|
836
|
+
raise InvalidParameterError(
|
|
837
|
+
"Bad parameter: document_edits_in_bundle_allowed must be an bool"
|
|
838
|
+
)
|
|
839
|
+
if "password_requirements_apply_to_bundles" in params and not isinstance(
|
|
840
|
+
params["password_requirements_apply_to_bundles"], bool
|
|
841
|
+
):
|
|
842
|
+
raise InvalidParameterError(
|
|
843
|
+
"Bad parameter: password_requirements_apply_to_bundles must be an bool"
|
|
844
|
+
)
|
|
845
|
+
if (
|
|
846
|
+
"prevent_root_permissions_for_non_site_admins" in params
|
|
847
|
+
and not isinstance(
|
|
848
|
+
params["prevent_root_permissions_for_non_site_admins"], bool
|
|
849
|
+
)
|
|
850
|
+
):
|
|
851
|
+
raise InvalidParameterError(
|
|
852
|
+
"Bad parameter: prevent_root_permissions_for_non_site_admins must be an bool"
|
|
853
|
+
)
|
|
854
|
+
if "opt_out_global" in params and not isinstance(
|
|
855
|
+
params["opt_out_global"], bool
|
|
856
|
+
):
|
|
857
|
+
raise InvalidParameterError(
|
|
858
|
+
"Bad parameter: opt_out_global must be an bool"
|
|
859
|
+
)
|
|
860
|
+
if "use_provided_modified_at" in params and not isinstance(
|
|
861
|
+
params["use_provided_modified_at"], bool
|
|
862
|
+
):
|
|
863
|
+
raise InvalidParameterError(
|
|
864
|
+
"Bad parameter: use_provided_modified_at must be an bool"
|
|
865
|
+
)
|
|
866
|
+
if "custom_namespace" in params and not isinstance(
|
|
867
|
+
params["custom_namespace"], bool
|
|
868
|
+
):
|
|
869
|
+
raise InvalidParameterError(
|
|
870
|
+
"Bad parameter: custom_namespace must be an bool"
|
|
871
|
+
)
|
|
579
872
|
if (
|
|
580
873
|
"disable_users_from_inactivity_period_days" in params
|
|
581
874
|
and not isinstance(
|
|
@@ -585,6 +878,74 @@ def update(params=None, options=None):
|
|
|
585
878
|
raise InvalidParameterError(
|
|
586
879
|
"Bad parameter: disable_users_from_inactivity_period_days must be an int"
|
|
587
880
|
)
|
|
881
|
+
if "non_sso_groups_allowed" in params and not isinstance(
|
|
882
|
+
params["non_sso_groups_allowed"], bool
|
|
883
|
+
):
|
|
884
|
+
raise InvalidParameterError(
|
|
885
|
+
"Bad parameter: non_sso_groups_allowed must be an bool"
|
|
886
|
+
)
|
|
887
|
+
if "non_sso_users_allowed" in params and not isinstance(
|
|
888
|
+
params["non_sso_users_allowed"], bool
|
|
889
|
+
):
|
|
890
|
+
raise InvalidParameterError(
|
|
891
|
+
"Bad parameter: non_sso_users_allowed must be an bool"
|
|
892
|
+
)
|
|
893
|
+
if "sharing_enabled" in params and not isinstance(
|
|
894
|
+
params["sharing_enabled"], bool
|
|
895
|
+
):
|
|
896
|
+
raise InvalidParameterError(
|
|
897
|
+
"Bad parameter: sharing_enabled must be an bool"
|
|
898
|
+
)
|
|
899
|
+
if "snapshot_sharing_enabled" in params and not isinstance(
|
|
900
|
+
params["snapshot_sharing_enabled"], bool
|
|
901
|
+
):
|
|
902
|
+
raise InvalidParameterError(
|
|
903
|
+
"Bad parameter: snapshot_sharing_enabled must be an bool"
|
|
904
|
+
)
|
|
905
|
+
if "user_requests_enabled" in params and not isinstance(
|
|
906
|
+
params["user_requests_enabled"], bool
|
|
907
|
+
):
|
|
908
|
+
raise InvalidParameterError(
|
|
909
|
+
"Bad parameter: user_requests_enabled must be an bool"
|
|
910
|
+
)
|
|
911
|
+
if "user_requests_notify_admins" in params and not isinstance(
|
|
912
|
+
params["user_requests_notify_admins"], bool
|
|
913
|
+
):
|
|
914
|
+
raise InvalidParameterError(
|
|
915
|
+
"Bad parameter: user_requests_notify_admins must be an bool"
|
|
916
|
+
)
|
|
917
|
+
if "dav_enabled" in params and not isinstance(params["dav_enabled"], bool):
|
|
918
|
+
raise InvalidParameterError(
|
|
919
|
+
"Bad parameter: dav_enabled must be an bool"
|
|
920
|
+
)
|
|
921
|
+
if "ftp_enabled" in params and not isinstance(params["ftp_enabled"], bool):
|
|
922
|
+
raise InvalidParameterError(
|
|
923
|
+
"Bad parameter: ftp_enabled must be an bool"
|
|
924
|
+
)
|
|
925
|
+
if "sftp_enabled" in params and not isinstance(
|
|
926
|
+
params["sftp_enabled"], bool
|
|
927
|
+
):
|
|
928
|
+
raise InvalidParameterError(
|
|
929
|
+
"Bad parameter: sftp_enabled must be an bool"
|
|
930
|
+
)
|
|
931
|
+
if "users_can_create_api_keys" in params and not isinstance(
|
|
932
|
+
params["users_can_create_api_keys"], bool
|
|
933
|
+
):
|
|
934
|
+
raise InvalidParameterError(
|
|
935
|
+
"Bad parameter: users_can_create_api_keys must be an bool"
|
|
936
|
+
)
|
|
937
|
+
if "users_can_create_ssh_keys" in params and not isinstance(
|
|
938
|
+
params["users_can_create_ssh_keys"], bool
|
|
939
|
+
):
|
|
940
|
+
raise InvalidParameterError(
|
|
941
|
+
"Bad parameter: users_can_create_ssh_keys must be an bool"
|
|
942
|
+
)
|
|
943
|
+
if "show_user_notifications_log_in_link" in params and not isinstance(
|
|
944
|
+
params["show_user_notifications_log_in_link"], bool
|
|
945
|
+
):
|
|
946
|
+
raise InvalidParameterError(
|
|
947
|
+
"Bad parameter: show_user_notifications_log_in_link must be an bool"
|
|
948
|
+
)
|
|
588
949
|
if "sftp_host_key_type" in params and not isinstance(
|
|
589
950
|
params["sftp_host_key_type"], str
|
|
590
951
|
):
|
|
@@ -597,18 +958,103 @@ def update(params=None, options=None):
|
|
|
597
958
|
raise InvalidParameterError(
|
|
598
959
|
"Bad parameter: active_sftp_host_key_id must be an int"
|
|
599
960
|
)
|
|
961
|
+
if "protocol_access_groups_only" in params and not isinstance(
|
|
962
|
+
params["protocol_access_groups_only"], bool
|
|
963
|
+
):
|
|
964
|
+
raise InvalidParameterError(
|
|
965
|
+
"Bad parameter: protocol_access_groups_only must be an bool"
|
|
966
|
+
)
|
|
967
|
+
if (
|
|
968
|
+
"revoke_bundle_access_on_disable_or_delete" in params
|
|
969
|
+
and not isinstance(
|
|
970
|
+
params["revoke_bundle_access_on_disable_or_delete"], bool
|
|
971
|
+
)
|
|
972
|
+
):
|
|
973
|
+
raise InvalidParameterError(
|
|
974
|
+
"Bad parameter: revoke_bundle_access_on_disable_or_delete must be an bool"
|
|
975
|
+
)
|
|
600
976
|
if "bundle_watermark_value" in params and not isinstance(
|
|
601
977
|
params["bundle_watermark_value"], dict
|
|
602
978
|
):
|
|
603
979
|
raise InvalidParameterError(
|
|
604
980
|
"Bad parameter: bundle_watermark_value must be an dict"
|
|
605
981
|
)
|
|
982
|
+
if "group_admins_can_set_user_password" in params and not isinstance(
|
|
983
|
+
params["group_admins_can_set_user_password"], bool
|
|
984
|
+
):
|
|
985
|
+
raise InvalidParameterError(
|
|
986
|
+
"Bad parameter: group_admins_can_set_user_password must be an bool"
|
|
987
|
+
)
|
|
988
|
+
if (
|
|
989
|
+
"bundle_recipient_blacklist_free_email_domains" in params
|
|
990
|
+
and not isinstance(
|
|
991
|
+
params["bundle_recipient_blacklist_free_email_domains"], bool
|
|
992
|
+
)
|
|
993
|
+
):
|
|
994
|
+
raise InvalidParameterError(
|
|
995
|
+
"Bad parameter: bundle_recipient_blacklist_free_email_domains must be an bool"
|
|
996
|
+
)
|
|
606
997
|
if "bundle_recipient_blacklist_domains" in params and not isinstance(
|
|
607
998
|
params["bundle_recipient_blacklist_domains"], builtins.list
|
|
608
999
|
):
|
|
609
1000
|
raise InvalidParameterError(
|
|
610
1001
|
"Bad parameter: bundle_recipient_blacklist_domains must be an list"
|
|
611
1002
|
)
|
|
1003
|
+
if "admins_bypass_locked_subfolders" in params and not isinstance(
|
|
1004
|
+
params["admins_bypass_locked_subfolders"], bool
|
|
1005
|
+
):
|
|
1006
|
+
raise InvalidParameterError(
|
|
1007
|
+
"Bad parameter: admins_bypass_locked_subfolders must be an bool"
|
|
1008
|
+
)
|
|
1009
|
+
if "allowed_2fa_method_sms" in params and not isinstance(
|
|
1010
|
+
params["allowed_2fa_method_sms"], bool
|
|
1011
|
+
):
|
|
1012
|
+
raise InvalidParameterError(
|
|
1013
|
+
"Bad parameter: allowed_2fa_method_sms must be an bool"
|
|
1014
|
+
)
|
|
1015
|
+
if "allowed_2fa_method_totp" in params and not isinstance(
|
|
1016
|
+
params["allowed_2fa_method_totp"], bool
|
|
1017
|
+
):
|
|
1018
|
+
raise InvalidParameterError(
|
|
1019
|
+
"Bad parameter: allowed_2fa_method_totp must be an bool"
|
|
1020
|
+
)
|
|
1021
|
+
if "allowed_2fa_method_webauthn" in params and not isinstance(
|
|
1022
|
+
params["allowed_2fa_method_webauthn"], bool
|
|
1023
|
+
):
|
|
1024
|
+
raise InvalidParameterError(
|
|
1025
|
+
"Bad parameter: allowed_2fa_method_webauthn must be an bool"
|
|
1026
|
+
)
|
|
1027
|
+
if "allowed_2fa_method_yubi" in params and not isinstance(
|
|
1028
|
+
params["allowed_2fa_method_yubi"], bool
|
|
1029
|
+
):
|
|
1030
|
+
raise InvalidParameterError(
|
|
1031
|
+
"Bad parameter: allowed_2fa_method_yubi must be an bool"
|
|
1032
|
+
)
|
|
1033
|
+
if "allowed_2fa_method_email" in params and not isinstance(
|
|
1034
|
+
params["allowed_2fa_method_email"], bool
|
|
1035
|
+
):
|
|
1036
|
+
raise InvalidParameterError(
|
|
1037
|
+
"Bad parameter: allowed_2fa_method_email must be an bool"
|
|
1038
|
+
)
|
|
1039
|
+
if "allowed_2fa_method_static" in params and not isinstance(
|
|
1040
|
+
params["allowed_2fa_method_static"], bool
|
|
1041
|
+
):
|
|
1042
|
+
raise InvalidParameterError(
|
|
1043
|
+
"Bad parameter: allowed_2fa_method_static must be an bool"
|
|
1044
|
+
)
|
|
1045
|
+
if (
|
|
1046
|
+
"allowed_2fa_method_bypass_for_ftp_sftp_dav" in params
|
|
1047
|
+
and not isinstance(
|
|
1048
|
+
params["allowed_2fa_method_bypass_for_ftp_sftp_dav"], bool
|
|
1049
|
+
)
|
|
1050
|
+
):
|
|
1051
|
+
raise InvalidParameterError(
|
|
1052
|
+
"Bad parameter: allowed_2fa_method_bypass_for_ftp_sftp_dav must be an bool"
|
|
1053
|
+
)
|
|
1054
|
+
if "require_2fa" in params and not isinstance(params["require_2fa"], bool):
|
|
1055
|
+
raise InvalidParameterError(
|
|
1056
|
+
"Bad parameter: require_2fa must be an bool"
|
|
1057
|
+
)
|
|
612
1058
|
if "require_2fa_user_type" in params and not isinstance(
|
|
613
1059
|
params["require_2fa_user_type"], str
|
|
614
1060
|
):
|
|
@@ -649,6 +1095,12 @@ def update(params=None, options=None):
|
|
|
649
1095
|
raise InvalidParameterError(
|
|
650
1096
|
"Bad parameter: login_help_text must be an str"
|
|
651
1097
|
)
|
|
1098
|
+
if "use_dedicated_ips_for_smtp" in params and not isinstance(
|
|
1099
|
+
params["use_dedicated_ips_for_smtp"], bool
|
|
1100
|
+
):
|
|
1101
|
+
raise InvalidParameterError(
|
|
1102
|
+
"Bad parameter: use_dedicated_ips_for_smtp must be an bool"
|
|
1103
|
+
)
|
|
652
1104
|
if "smtp_address" in params and not isinstance(
|
|
653
1105
|
params["smtp_address"], str
|
|
654
1106
|
):
|
|
@@ -671,6 +1123,12 @@ def update(params=None, options=None):
|
|
|
671
1123
|
)
|
|
672
1124
|
if "smtp_port" in params and not isinstance(params["smtp_port"], int):
|
|
673
1125
|
raise InvalidParameterError("Bad parameter: smtp_port must be an int")
|
|
1126
|
+
if "ldap_enabled" in params and not isinstance(
|
|
1127
|
+
params["ldap_enabled"], bool
|
|
1128
|
+
):
|
|
1129
|
+
raise InvalidParameterError(
|
|
1130
|
+
"Bad parameter: ldap_enabled must be an bool"
|
|
1131
|
+
)
|
|
674
1132
|
if "ldap_type" in params and not isinstance(params["ldap_type"], str):
|
|
675
1133
|
raise InvalidParameterError("Bad parameter: ldap_type must be an str")
|
|
676
1134
|
if "ldap_host" in params and not isinstance(params["ldap_host"], str):
|
|
@@ -685,6 +1143,10 @@ def update(params=None, options=None):
|
|
|
685
1143
|
)
|
|
686
1144
|
if "ldap_port" in params and not isinstance(params["ldap_port"], int):
|
|
687
1145
|
raise InvalidParameterError("Bad parameter: ldap_port must be an int")
|
|
1146
|
+
if "ldap_secure" in params and not isinstance(params["ldap_secure"], bool):
|
|
1147
|
+
raise InvalidParameterError(
|
|
1148
|
+
"Bad parameter: ldap_secure must be an bool"
|
|
1149
|
+
)
|
|
688
1150
|
if "ldap_username" in params and not isinstance(
|
|
689
1151
|
params["ldap_username"], str
|
|
690
1152
|
):
|
|
@@ -737,6 +1199,58 @@ def update(params=None, options=None):
|
|
|
737
1199
|
raise InvalidParameterError(
|
|
738
1200
|
"Bad parameter: ldap_base_dn must be an str"
|
|
739
1201
|
)
|
|
1202
|
+
if "uploads_via_email_authentication" in params and not isinstance(
|
|
1203
|
+
params["uploads_via_email_authentication"], bool
|
|
1204
|
+
):
|
|
1205
|
+
raise InvalidParameterError(
|
|
1206
|
+
"Bad parameter: uploads_via_email_authentication must be an bool"
|
|
1207
|
+
)
|
|
1208
|
+
if "icon16_delete" in params and not isinstance(
|
|
1209
|
+
params["icon16_delete"], bool
|
|
1210
|
+
):
|
|
1211
|
+
raise InvalidParameterError(
|
|
1212
|
+
"Bad parameter: icon16_delete must be an bool"
|
|
1213
|
+
)
|
|
1214
|
+
if "icon32_delete" in params and not isinstance(
|
|
1215
|
+
params["icon32_delete"], bool
|
|
1216
|
+
):
|
|
1217
|
+
raise InvalidParameterError(
|
|
1218
|
+
"Bad parameter: icon32_delete must be an bool"
|
|
1219
|
+
)
|
|
1220
|
+
if "icon48_delete" in params and not isinstance(
|
|
1221
|
+
params["icon48_delete"], bool
|
|
1222
|
+
):
|
|
1223
|
+
raise InvalidParameterError(
|
|
1224
|
+
"Bad parameter: icon48_delete must be an bool"
|
|
1225
|
+
)
|
|
1226
|
+
if "icon128_delete" in params and not isinstance(
|
|
1227
|
+
params["icon128_delete"], bool
|
|
1228
|
+
):
|
|
1229
|
+
raise InvalidParameterError(
|
|
1230
|
+
"Bad parameter: icon128_delete must be an bool"
|
|
1231
|
+
)
|
|
1232
|
+
if "logo_delete" in params and not isinstance(params["logo_delete"], bool):
|
|
1233
|
+
raise InvalidParameterError(
|
|
1234
|
+
"Bad parameter: logo_delete must be an bool"
|
|
1235
|
+
)
|
|
1236
|
+
if "bundle_watermark_attachment_delete" in params and not isinstance(
|
|
1237
|
+
params["bundle_watermark_attachment_delete"], bool
|
|
1238
|
+
):
|
|
1239
|
+
raise InvalidParameterError(
|
|
1240
|
+
"Bad parameter: bundle_watermark_attachment_delete must be an bool"
|
|
1241
|
+
)
|
|
1242
|
+
if "login_page_background_image_delete" in params and not isinstance(
|
|
1243
|
+
params["login_page_background_image_delete"], bool
|
|
1244
|
+
):
|
|
1245
|
+
raise InvalidParameterError(
|
|
1246
|
+
"Bad parameter: login_page_background_image_delete must be an bool"
|
|
1247
|
+
)
|
|
1248
|
+
if "disable_2fa_with_delay" in params and not isinstance(
|
|
1249
|
+
params["disable_2fa_with_delay"], bool
|
|
1250
|
+
):
|
|
1251
|
+
raise InvalidParameterError(
|
|
1252
|
+
"Bad parameter: disable_2fa_with_delay must be an bool"
|
|
1253
|
+
)
|
|
740
1254
|
if "ldap_password_change" in params and not isinstance(
|
|
741
1255
|
params["ldap_password_change"], str
|
|
742
1256
|
):
|