files-com 1.5.5__py3-none-any.whl → 1.6.0__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 +8 -2
- _VERSION +1 -1
- {files_com-1.5.5.dist-info → files_com-1.6.0.dist-info}/METADATA +9 -3
- {files_com-1.5.5.dist-info → files_com-1.6.0.dist-info}/RECORD +33 -33
- files_sdk/__init__.py +13 -2
- files_sdk/api.py +7 -1
- files_sdk/api_client.py +11 -2
- 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 +102 -0
- files_sdk/models/bundle_notification.py +24 -0
- 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.5.dist-info → files_com-1.6.0.dist-info}/WHEEL +0 -0
- {files_com-1.5.5.dist-info → files_com-1.6.0.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.5.5.dist-info → files_com-1.6.0.dist-info}/top_level.txt +0 -0
files_sdk/models/restore.py
CHANGED
|
@@ -94,6 +94,24 @@ def create(params=None, options=None):
|
|
|
94
94
|
)
|
|
95
95
|
if "prefix" in params and not isinstance(params["prefix"], str):
|
|
96
96
|
raise InvalidParameterError("Bad parameter: prefix must be an str")
|
|
97
|
+
if "restore_deleted_permissions" in params and not isinstance(
|
|
98
|
+
params["restore_deleted_permissions"], bool
|
|
99
|
+
):
|
|
100
|
+
raise InvalidParameterError(
|
|
101
|
+
"Bad parameter: restore_deleted_permissions must be an bool"
|
|
102
|
+
)
|
|
103
|
+
if "restore_in_place" in params and not isinstance(
|
|
104
|
+
params["restore_in_place"], bool
|
|
105
|
+
):
|
|
106
|
+
raise InvalidParameterError(
|
|
107
|
+
"Bad parameter: restore_in_place must be an bool"
|
|
108
|
+
)
|
|
109
|
+
if "update_timestamps" in params and not isinstance(
|
|
110
|
+
params["update_timestamps"], bool
|
|
111
|
+
):
|
|
112
|
+
raise InvalidParameterError(
|
|
113
|
+
"Bad parameter: update_timestamps must be an bool"
|
|
114
|
+
)
|
|
97
115
|
if "earliest_date" not in params:
|
|
98
116
|
raise MissingParameterError("Parameter missing: earliest_date")
|
|
99
117
|
response, options = Api.send_request("POST", "/restores", params, options)
|
|
@@ -354,6 +354,12 @@ def create(params=None, options=None):
|
|
|
354
354
|
raise InvalidParameterError(
|
|
355
355
|
"Bad parameter: additional_headers must be an dict"
|
|
356
356
|
)
|
|
357
|
+
if "sending_active" in params and not isinstance(
|
|
358
|
+
params["sending_active"], bool
|
|
359
|
+
):
|
|
360
|
+
raise InvalidParameterError(
|
|
361
|
+
"Bad parameter: sending_active must be an bool"
|
|
362
|
+
)
|
|
357
363
|
if "generic_payload_type" in params and not isinstance(
|
|
358
364
|
params["generic_payload_type"], str
|
|
359
365
|
):
|
|
@@ -435,6 +441,72 @@ def create(params=None, options=None):
|
|
|
435
441
|
raise InvalidParameterError(
|
|
436
442
|
"Bad parameter: datadog_api_key must be an str"
|
|
437
443
|
)
|
|
444
|
+
if "sftp_action_send_enabled" in params and not isinstance(
|
|
445
|
+
params["sftp_action_send_enabled"], bool
|
|
446
|
+
):
|
|
447
|
+
raise InvalidParameterError(
|
|
448
|
+
"Bad parameter: sftp_action_send_enabled must be an bool"
|
|
449
|
+
)
|
|
450
|
+
if "ftp_action_send_enabled" in params and not isinstance(
|
|
451
|
+
params["ftp_action_send_enabled"], bool
|
|
452
|
+
):
|
|
453
|
+
raise InvalidParameterError(
|
|
454
|
+
"Bad parameter: ftp_action_send_enabled must be an bool"
|
|
455
|
+
)
|
|
456
|
+
if "web_dav_action_send_enabled" in params and not isinstance(
|
|
457
|
+
params["web_dav_action_send_enabled"], bool
|
|
458
|
+
):
|
|
459
|
+
raise InvalidParameterError(
|
|
460
|
+
"Bad parameter: web_dav_action_send_enabled must be an bool"
|
|
461
|
+
)
|
|
462
|
+
if "sync_send_enabled" in params and not isinstance(
|
|
463
|
+
params["sync_send_enabled"], bool
|
|
464
|
+
):
|
|
465
|
+
raise InvalidParameterError(
|
|
466
|
+
"Bad parameter: sync_send_enabled must be an bool"
|
|
467
|
+
)
|
|
468
|
+
if "outbound_connection_send_enabled" in params and not isinstance(
|
|
469
|
+
params["outbound_connection_send_enabled"], bool
|
|
470
|
+
):
|
|
471
|
+
raise InvalidParameterError(
|
|
472
|
+
"Bad parameter: outbound_connection_send_enabled must be an bool"
|
|
473
|
+
)
|
|
474
|
+
if "automation_send_enabled" in params and not isinstance(
|
|
475
|
+
params["automation_send_enabled"], bool
|
|
476
|
+
):
|
|
477
|
+
raise InvalidParameterError(
|
|
478
|
+
"Bad parameter: automation_send_enabled must be an bool"
|
|
479
|
+
)
|
|
480
|
+
if "api_request_send_enabled" in params and not isinstance(
|
|
481
|
+
params["api_request_send_enabled"], bool
|
|
482
|
+
):
|
|
483
|
+
raise InvalidParameterError(
|
|
484
|
+
"Bad parameter: api_request_send_enabled must be an bool"
|
|
485
|
+
)
|
|
486
|
+
if "public_hosting_request_send_enabled" in params and not isinstance(
|
|
487
|
+
params["public_hosting_request_send_enabled"], bool
|
|
488
|
+
):
|
|
489
|
+
raise InvalidParameterError(
|
|
490
|
+
"Bad parameter: public_hosting_request_send_enabled must be an bool"
|
|
491
|
+
)
|
|
492
|
+
if "email_send_enabled" in params and not isinstance(
|
|
493
|
+
params["email_send_enabled"], bool
|
|
494
|
+
):
|
|
495
|
+
raise InvalidParameterError(
|
|
496
|
+
"Bad parameter: email_send_enabled must be an bool"
|
|
497
|
+
)
|
|
498
|
+
if "exavault_api_request_send_enabled" in params and not isinstance(
|
|
499
|
+
params["exavault_api_request_send_enabled"], bool
|
|
500
|
+
):
|
|
501
|
+
raise InvalidParameterError(
|
|
502
|
+
"Bad parameter: exavault_api_request_send_enabled must be an bool"
|
|
503
|
+
)
|
|
504
|
+
if "settings_change_send_enabled" in params and not isinstance(
|
|
505
|
+
params["settings_change_send_enabled"], bool
|
|
506
|
+
):
|
|
507
|
+
raise InvalidParameterError(
|
|
508
|
+
"Bad parameter: settings_change_send_enabled must be an bool"
|
|
509
|
+
)
|
|
438
510
|
if "destination_type" in params and not isinstance(
|
|
439
511
|
params["destination_type"], str
|
|
440
512
|
):
|
|
@@ -518,6 +590,12 @@ def send_test_entry(params=None, options=None):
|
|
|
518
590
|
raise InvalidParameterError(
|
|
519
591
|
"Bad parameter: additional_headers must be an dict"
|
|
520
592
|
)
|
|
593
|
+
if "sending_active" in params and not isinstance(
|
|
594
|
+
params["sending_active"], bool
|
|
595
|
+
):
|
|
596
|
+
raise InvalidParameterError(
|
|
597
|
+
"Bad parameter: sending_active must be an bool"
|
|
598
|
+
)
|
|
521
599
|
if "generic_payload_type" in params and not isinstance(
|
|
522
600
|
params["generic_payload_type"], str
|
|
523
601
|
):
|
|
@@ -599,6 +677,72 @@ def send_test_entry(params=None, options=None):
|
|
|
599
677
|
raise InvalidParameterError(
|
|
600
678
|
"Bad parameter: datadog_api_key must be an str"
|
|
601
679
|
)
|
|
680
|
+
if "sftp_action_send_enabled" in params and not isinstance(
|
|
681
|
+
params["sftp_action_send_enabled"], bool
|
|
682
|
+
):
|
|
683
|
+
raise InvalidParameterError(
|
|
684
|
+
"Bad parameter: sftp_action_send_enabled must be an bool"
|
|
685
|
+
)
|
|
686
|
+
if "ftp_action_send_enabled" in params and not isinstance(
|
|
687
|
+
params["ftp_action_send_enabled"], bool
|
|
688
|
+
):
|
|
689
|
+
raise InvalidParameterError(
|
|
690
|
+
"Bad parameter: ftp_action_send_enabled must be an bool"
|
|
691
|
+
)
|
|
692
|
+
if "web_dav_action_send_enabled" in params and not isinstance(
|
|
693
|
+
params["web_dav_action_send_enabled"], bool
|
|
694
|
+
):
|
|
695
|
+
raise InvalidParameterError(
|
|
696
|
+
"Bad parameter: web_dav_action_send_enabled must be an bool"
|
|
697
|
+
)
|
|
698
|
+
if "sync_send_enabled" in params and not isinstance(
|
|
699
|
+
params["sync_send_enabled"], bool
|
|
700
|
+
):
|
|
701
|
+
raise InvalidParameterError(
|
|
702
|
+
"Bad parameter: sync_send_enabled must be an bool"
|
|
703
|
+
)
|
|
704
|
+
if "outbound_connection_send_enabled" in params and not isinstance(
|
|
705
|
+
params["outbound_connection_send_enabled"], bool
|
|
706
|
+
):
|
|
707
|
+
raise InvalidParameterError(
|
|
708
|
+
"Bad parameter: outbound_connection_send_enabled must be an bool"
|
|
709
|
+
)
|
|
710
|
+
if "automation_send_enabled" in params and not isinstance(
|
|
711
|
+
params["automation_send_enabled"], bool
|
|
712
|
+
):
|
|
713
|
+
raise InvalidParameterError(
|
|
714
|
+
"Bad parameter: automation_send_enabled must be an bool"
|
|
715
|
+
)
|
|
716
|
+
if "api_request_send_enabled" in params and not isinstance(
|
|
717
|
+
params["api_request_send_enabled"], bool
|
|
718
|
+
):
|
|
719
|
+
raise InvalidParameterError(
|
|
720
|
+
"Bad parameter: api_request_send_enabled must be an bool"
|
|
721
|
+
)
|
|
722
|
+
if "public_hosting_request_send_enabled" in params and not isinstance(
|
|
723
|
+
params["public_hosting_request_send_enabled"], bool
|
|
724
|
+
):
|
|
725
|
+
raise InvalidParameterError(
|
|
726
|
+
"Bad parameter: public_hosting_request_send_enabled must be an bool"
|
|
727
|
+
)
|
|
728
|
+
if "email_send_enabled" in params and not isinstance(
|
|
729
|
+
params["email_send_enabled"], bool
|
|
730
|
+
):
|
|
731
|
+
raise InvalidParameterError(
|
|
732
|
+
"Bad parameter: email_send_enabled must be an bool"
|
|
733
|
+
)
|
|
734
|
+
if "exavault_api_request_send_enabled" in params and not isinstance(
|
|
735
|
+
params["exavault_api_request_send_enabled"], bool
|
|
736
|
+
):
|
|
737
|
+
raise InvalidParameterError(
|
|
738
|
+
"Bad parameter: exavault_api_request_send_enabled must be an bool"
|
|
739
|
+
)
|
|
740
|
+
if "settings_change_send_enabled" in params and not isinstance(
|
|
741
|
+
params["settings_change_send_enabled"], bool
|
|
742
|
+
):
|
|
743
|
+
raise InvalidParameterError(
|
|
744
|
+
"Bad parameter: settings_change_send_enabled must be an bool"
|
|
745
|
+
)
|
|
602
746
|
Api.send_request(
|
|
603
747
|
"POST", "/siem_http_destinations/send_test_entry", params, options
|
|
604
748
|
)
|
|
@@ -649,6 +793,12 @@ def update(id, params=None, options=None):
|
|
|
649
793
|
raise InvalidParameterError(
|
|
650
794
|
"Bad parameter: additional_headers must be an dict"
|
|
651
795
|
)
|
|
796
|
+
if "sending_active" in params and not isinstance(
|
|
797
|
+
params["sending_active"], bool
|
|
798
|
+
):
|
|
799
|
+
raise InvalidParameterError(
|
|
800
|
+
"Bad parameter: sending_active must be an bool"
|
|
801
|
+
)
|
|
652
802
|
if "generic_payload_type" in params and not isinstance(
|
|
653
803
|
params["generic_payload_type"], str
|
|
654
804
|
):
|
|
@@ -730,6 +880,72 @@ def update(id, params=None, options=None):
|
|
|
730
880
|
raise InvalidParameterError(
|
|
731
881
|
"Bad parameter: datadog_api_key must be an str"
|
|
732
882
|
)
|
|
883
|
+
if "sftp_action_send_enabled" in params and not isinstance(
|
|
884
|
+
params["sftp_action_send_enabled"], bool
|
|
885
|
+
):
|
|
886
|
+
raise InvalidParameterError(
|
|
887
|
+
"Bad parameter: sftp_action_send_enabled must be an bool"
|
|
888
|
+
)
|
|
889
|
+
if "ftp_action_send_enabled" in params and not isinstance(
|
|
890
|
+
params["ftp_action_send_enabled"], bool
|
|
891
|
+
):
|
|
892
|
+
raise InvalidParameterError(
|
|
893
|
+
"Bad parameter: ftp_action_send_enabled must be an bool"
|
|
894
|
+
)
|
|
895
|
+
if "web_dav_action_send_enabled" in params and not isinstance(
|
|
896
|
+
params["web_dav_action_send_enabled"], bool
|
|
897
|
+
):
|
|
898
|
+
raise InvalidParameterError(
|
|
899
|
+
"Bad parameter: web_dav_action_send_enabled must be an bool"
|
|
900
|
+
)
|
|
901
|
+
if "sync_send_enabled" in params and not isinstance(
|
|
902
|
+
params["sync_send_enabled"], bool
|
|
903
|
+
):
|
|
904
|
+
raise InvalidParameterError(
|
|
905
|
+
"Bad parameter: sync_send_enabled must be an bool"
|
|
906
|
+
)
|
|
907
|
+
if "outbound_connection_send_enabled" in params and not isinstance(
|
|
908
|
+
params["outbound_connection_send_enabled"], bool
|
|
909
|
+
):
|
|
910
|
+
raise InvalidParameterError(
|
|
911
|
+
"Bad parameter: outbound_connection_send_enabled must be an bool"
|
|
912
|
+
)
|
|
913
|
+
if "automation_send_enabled" in params and not isinstance(
|
|
914
|
+
params["automation_send_enabled"], bool
|
|
915
|
+
):
|
|
916
|
+
raise InvalidParameterError(
|
|
917
|
+
"Bad parameter: automation_send_enabled must be an bool"
|
|
918
|
+
)
|
|
919
|
+
if "api_request_send_enabled" in params and not isinstance(
|
|
920
|
+
params["api_request_send_enabled"], bool
|
|
921
|
+
):
|
|
922
|
+
raise InvalidParameterError(
|
|
923
|
+
"Bad parameter: api_request_send_enabled must be an bool"
|
|
924
|
+
)
|
|
925
|
+
if "public_hosting_request_send_enabled" in params and not isinstance(
|
|
926
|
+
params["public_hosting_request_send_enabled"], bool
|
|
927
|
+
):
|
|
928
|
+
raise InvalidParameterError(
|
|
929
|
+
"Bad parameter: public_hosting_request_send_enabled must be an bool"
|
|
930
|
+
)
|
|
931
|
+
if "email_send_enabled" in params and not isinstance(
|
|
932
|
+
params["email_send_enabled"], bool
|
|
933
|
+
):
|
|
934
|
+
raise InvalidParameterError(
|
|
935
|
+
"Bad parameter: email_send_enabled must be an bool"
|
|
936
|
+
)
|
|
937
|
+
if "exavault_api_request_send_enabled" in params and not isinstance(
|
|
938
|
+
params["exavault_api_request_send_enabled"], bool
|
|
939
|
+
):
|
|
940
|
+
raise InvalidParameterError(
|
|
941
|
+
"Bad parameter: exavault_api_request_send_enabled must be an bool"
|
|
942
|
+
)
|
|
943
|
+
if "settings_change_send_enabled" in params and not isinstance(
|
|
944
|
+
params["settings_change_send_enabled"], bool
|
|
945
|
+
):
|
|
946
|
+
raise InvalidParameterError(
|
|
947
|
+
"Bad parameter: settings_change_send_enabled must be an bool"
|
|
948
|
+
)
|
|
733
949
|
if "destination_type" in params and not isinstance(
|
|
734
950
|
params["destination_type"], str
|
|
735
951
|
):
|