files-com 1.6.137__py3-none-any.whl → 1.6.171__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.
- _VERSION +1 -1
- {files_com-1.6.137.dist-info → files_com-1.6.171.dist-info}/METADATA +1 -1
- {files_com-1.6.137.dist-info → files_com-1.6.171.dist-info}/RECORD +24 -20
- files_sdk/__init__.py +9 -1
- files_sdk/models/__init__.py +4 -0
- files_sdk/models/agent_push_update.py +44 -0
- files_sdk/models/as2_incoming_message.py +1 -8
- files_sdk/models/as2_outgoing_message.py +1 -8
- files_sdk/models/as2_partner.py +6 -0
- files_sdk/models/behavior.py +1 -1
- files_sdk/models/bundle.py +8 -0
- files_sdk/models/file.py +2 -2
- files_sdk/models/folder.py +2 -2
- files_sdk/models/gpg_key.py +23 -23
- files_sdk/models/inbound_s3_log.py +95 -0
- files_sdk/models/key_lifecycle_rule.py +243 -0
- files_sdk/models/remote_server.py +74 -8
- files_sdk/models/remote_server_credential.py +844 -0
- files_sdk/models/restore.py +20 -0
- files_sdk/models/site.py +4 -12
- files_sdk/models/sync.py +6 -0
- {files_com-1.6.137.dist-info → files_com-1.6.171.dist-info}/WHEEL +0 -0
- {files_com-1.6.137.dist-info → files_com-1.6.171.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.137.dist-info → files_com-1.6.171.dist-info}/top_level.txt +0 -0
files_sdk/models/restore.py
CHANGED
|
@@ -19,8 +19,15 @@ class Restore:
|
|
|
19
19
|
"files_errored": None, # int64 - Number of files that were not able to be restored.
|
|
20
20
|
"files_total": None, # int64 - Total number of files processed.
|
|
21
21
|
"prefix": None, # string - Prefix of the files/folders to restore. To restore a folder, add a trailing slash to the folder name. Do not use a leading slash. To restore all deleted items, specify an empty string (`''`) in the prefix field or omit the field from the request.
|
|
22
|
+
"restoration_type": None, # string - Type of restoration to perform. `files` restores deleted filesystem items. `users` restores deleted users and associated access/authentication records.
|
|
22
23
|
"restore_in_place": None, # boolean - If true, we will restore the files in place (into their original paths). If false, we will create a new restoration folder in the root and restore files there.
|
|
23
24
|
"restore_deleted_permissions": None, # boolean - If true, we will also restore any Permissions that match the same path prefix from the same dates.
|
|
25
|
+
"users_restored": None, # int64 - Number of users successfully restored (only present for `restoration_type=users`).
|
|
26
|
+
"users_errored": None, # int64 - Number of users that failed to restore (only present for `restoration_type=users`).
|
|
27
|
+
"users_total": None, # int64 - Total number of users processed (only present for `restoration_type=users`).
|
|
28
|
+
"api_keys_restored": None, # int64 - Number of API keys restored (only present for `restoration_type=users`).
|
|
29
|
+
"public_keys_restored": None, # int64 - Number of public keys restored (only present for `restoration_type=users`).
|
|
30
|
+
"two_factor_authentication_methods_restored": None, # int64 - Number of two factor authentication methods restored (only present for `restoration_type=users`).
|
|
24
31
|
"status": None, # string - Status of the restoration process.
|
|
25
32
|
"update_timestamps": None, # boolean - If true, we will update the last modified timestamp of restored files to today's date. If false, we might trigger File Expiration to delete the file again.
|
|
26
33
|
"error_messages": None, # array(string) - Error messages received while restoring files and/or directories. Only present if there were errors.
|
|
@@ -59,6 +66,8 @@ class Restore:
|
|
|
59
66
|
# Parameters:
|
|
60
67
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
61
68
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
69
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
70
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `restoration_type`.
|
|
62
71
|
def list(params=None, options=None):
|
|
63
72
|
if not isinstance(params, dict):
|
|
64
73
|
params = {}
|
|
@@ -68,6 +77,10 @@ def list(params=None, options=None):
|
|
|
68
77
|
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
69
78
|
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
70
79
|
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
80
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
81
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
82
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
83
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
71
84
|
return ListObj(Restore, "GET", "/restores", params, options)
|
|
72
85
|
|
|
73
86
|
|
|
@@ -78,6 +91,7 @@ def all(params=None, options=None):
|
|
|
78
91
|
# Parameters:
|
|
79
92
|
# earliest_date (required) - string - Restore all files deleted after this date/time. Don't set this earlier than you need. Can not be greater than 365 days prior to the restore request.
|
|
80
93
|
# prefix - string - Prefix of the files/folders to restore. To restore a folder, add a trailing slash to the folder name. Do not use a leading slash. To restore all deleted items, specify an empty string (`''`) in the prefix field or omit the field from the request.
|
|
94
|
+
# restoration_type - string - Type of restoration to perform. `files` restores deleted filesystem items. `users` restores deleted users and associated access/authentication records.
|
|
81
95
|
# restore_deleted_permissions - boolean - If true, we will also restore any Permissions that match the same path prefix from the same dates.
|
|
82
96
|
# restore_in_place - boolean - If true, we will restore the files in place (into their original paths). If false, we will create a new restoration folder in the root and restore files there.
|
|
83
97
|
# update_timestamps - boolean - If true, we will update the last modified timestamp of restored files to today's date. If false, we might trigger File Expiration to delete the file again.
|
|
@@ -94,6 +108,12 @@ def create(params=None, options=None):
|
|
|
94
108
|
)
|
|
95
109
|
if "prefix" in params and not isinstance(params["prefix"], str):
|
|
96
110
|
raise InvalidParameterError("Bad parameter: prefix must be an str")
|
|
111
|
+
if "restoration_type" in params and not isinstance(
|
|
112
|
+
params["restoration_type"], str
|
|
113
|
+
):
|
|
114
|
+
raise InvalidParameterError(
|
|
115
|
+
"Bad parameter: restoration_type must be an str"
|
|
116
|
+
)
|
|
97
117
|
if "restore_deleted_permissions" in params and not isinstance(
|
|
98
118
|
params["restore_deleted_permissions"], bool
|
|
99
119
|
):
|
files_sdk/models/site.py
CHANGED
|
@@ -157,7 +157,6 @@ class Site:
|
|
|
157
157
|
"smtp_from": None, # string - From address to use when mailing through custom SMTP
|
|
158
158
|
"smtp_port": None, # int64 - SMTP server port
|
|
159
159
|
"smtp_username": None, # string - SMTP server username
|
|
160
|
-
"session_expiry": None, # double - Session expiry in hours
|
|
161
160
|
"session_expiry_minutes": None, # int64 - Session expiry in minutes
|
|
162
161
|
"snapshot_sharing_enabled": None, # boolean - Allow snapshot share links creation
|
|
163
162
|
"ssl_required": None, # boolean - Is SSL required? Disabling this is insecure.
|
|
@@ -269,7 +268,7 @@ def get_usage(params=None, options=None):
|
|
|
269
268
|
# legacy_checksums_mode - boolean - Use legacy checksums mode?
|
|
270
269
|
# migrate_remote_server_sync_to_sync - boolean - If true, we will migrate all remote server syncs to the new Sync model.
|
|
271
270
|
# as2_message_retention_days - int64 - Number of days to retain AS2 messages (incoming and outgoing).
|
|
272
|
-
#
|
|
271
|
+
# session_expiry_minutes - int64 - Session expiry in minutes
|
|
273
272
|
# ssl_required - boolean - Is SSL required? Disabling this is insecure.
|
|
274
273
|
# sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
|
|
275
274
|
# sftp_insecure_diffie_hellman - boolean - If true, we will allow weak Diffie Hellman parameters to be used within ciphers for SFTP that are otherwise on our secure list. This has the effect of making the cipher weaker than our normal threshold for security, but is required to support certain legacy or broken SSH and MFT clients. Enabling this weakens security, but not nearly as much as enabling the full `sftp_insecure_ciphers` option.
|
|
@@ -391,7 +390,6 @@ def get_usage(params=None, options=None):
|
|
|
391
390
|
# ldap_password_change - string - New LDAP password.
|
|
392
391
|
# ldap_password_change_confirmation - string - Confirm new LDAP password.
|
|
393
392
|
# smtp_password - string - Password for SMTP server.
|
|
394
|
-
# session_expiry_minutes - int64 - Session expiry in minutes
|
|
395
393
|
def update(params=None, options=None):
|
|
396
394
|
if not isinstance(params, dict):
|
|
397
395
|
params = {}
|
|
@@ -633,11 +631,11 @@ def update(params=None, options=None):
|
|
|
633
631
|
raise InvalidParameterError(
|
|
634
632
|
"Bad parameter: as2_message_retention_days must be an int"
|
|
635
633
|
)
|
|
636
|
-
if "
|
|
637
|
-
params["
|
|
634
|
+
if "session_expiry_minutes" in params and not isinstance(
|
|
635
|
+
params["session_expiry_minutes"], int
|
|
638
636
|
):
|
|
639
637
|
raise InvalidParameterError(
|
|
640
|
-
"Bad parameter:
|
|
638
|
+
"Bad parameter: session_expiry_minutes must be an int"
|
|
641
639
|
)
|
|
642
640
|
if "ssl_required" in params and not isinstance(
|
|
643
641
|
params["ssl_required"], bool
|
|
@@ -1283,12 +1281,6 @@ def update(params=None, options=None):
|
|
|
1283
1281
|
raise InvalidParameterError(
|
|
1284
1282
|
"Bad parameter: smtp_password must be an str"
|
|
1285
1283
|
)
|
|
1286
|
-
if "session_expiry_minutes" in params and not isinstance(
|
|
1287
|
-
params["session_expiry_minutes"], int
|
|
1288
|
-
):
|
|
1289
|
-
raise InvalidParameterError(
|
|
1290
|
-
"Bad parameter: session_expiry_minutes must be an int"
|
|
1291
|
-
)
|
|
1292
1284
|
response, options = Api.send_request("PATCH", "/site", params, options)
|
|
1293
1285
|
return Site(response.data, options)
|
|
1294
1286
|
|
files_sdk/models/sync.py
CHANGED
|
@@ -251,6 +251,8 @@ class Sync:
|
|
|
251
251
|
# Parameters:
|
|
252
252
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
253
253
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
254
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`.
|
|
255
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `src_remote_server_id` and `dest_remote_server_id`.
|
|
254
256
|
def list(params=None, options=None):
|
|
255
257
|
if not isinstance(params, dict):
|
|
256
258
|
params = {}
|
|
@@ -260,6 +262,10 @@ def list(params=None, options=None):
|
|
|
260
262
|
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
261
263
|
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
262
264
|
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
265
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
266
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
267
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
268
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
263
269
|
return ListObj(Sync, "GET", "/syncs", params, options)
|
|
264
270
|
|
|
265
271
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|