Files.com 1.4.46__tar.gz → 1.4.48__tar.gz
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.
- {Files.com-1.4.46 → Files.com-1.4.48}/Files.com.egg-info/PKG-INFO +1 -1
- {Files.com-1.4.46 → Files.com-1.4.48}/PKG-INFO +1 -1
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/__init__.py +1 -1
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/error.py +15 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/site.py +6 -4
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/snapshot.py +39 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/Files.com.egg-info/SOURCES.txt +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/Files.com.egg-info/dependency_links.txt +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/Files.com.egg-info/requires.txt +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/Files.com.egg-info/top_level.txt +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/README.md +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/api.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/api_client.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/list_obj.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/__init__.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/account_line_item.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/action.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/action_notification_export.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/action_notification_export_result.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/action_webhook_failure.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/api_key.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/api_request_log.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/app.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/as2_incoming_message.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/as2_outgoing_message.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/as2_partner.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/as2_station.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/auto.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/automation.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/automation_log.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/automation_run.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/behavior.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/bundle.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/bundle_download.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/bundle_notification.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/bundle_path.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/bundle_recipient.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/bundle_registration.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/clickwrap.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/dns_record.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/email_incoming_message.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/email_log.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/errors.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/exavault_api_request_log.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/external_event.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/file.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/file_action.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/file_comment.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/file_comment_reaction.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/file_migration.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/file_migration_log.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/file_upload_part.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/folder.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/form_field.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/form_field_set.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/gpg_key.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/group.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/group_user.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/history.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/history_export.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/history_export_result.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/image.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/inbox_recipient.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/inbox_registration.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/inbox_upload.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/invoice.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/invoice_line_item.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/ip_address.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/lock.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/message.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/message_comment.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/message_comment_reaction.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/message_reaction.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/notification.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/payment.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/payment_line_item.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/permission.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/preview.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/priority.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/project.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/public_ip_address.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/public_key.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/remote_server.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/request.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/session.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/settings_change.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/sftp_action_log.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/sftp_host_key.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/share_group.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/share_group_member.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/sso_strategy.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/status.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/style.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/sync_log.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/usage_snapshot.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/user.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/user_cipher_use.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/user_request.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/models/webhook_test.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/path_util.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/files_sdk/util.py +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/pyproject.toml +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/setup.cfg +0 -0
- {Files.com-1.4.46 → Files.com-1.4.48}/setup.py +0 -0
|
@@ -1702,6 +1702,21 @@ class ProcessingFailureError(APIError):
|
|
|
1702
1702
|
)
|
|
1703
1703
|
|
|
1704
1704
|
|
|
1705
|
+
class AlreadyCompletedError(ProcessingFailureError):
|
|
1706
|
+
def __init__(
|
|
1707
|
+
self,
|
|
1708
|
+
message=None,
|
|
1709
|
+
http_body=None,
|
|
1710
|
+
http_status=None,
|
|
1711
|
+
json_body=None,
|
|
1712
|
+
headers=None,
|
|
1713
|
+
code=None,
|
|
1714
|
+
):
|
|
1715
|
+
super().__init__(
|
|
1716
|
+
message, http_body, http_status, json_body, headers, code
|
|
1717
|
+
)
|
|
1718
|
+
|
|
1719
|
+
|
|
1705
1720
|
class AutomationCannotBeRunManuallyError(ProcessingFailureError):
|
|
1706
1721
|
def __init__(
|
|
1707
1722
|
self,
|
|
@@ -128,7 +128,8 @@ class Site:
|
|
|
128
128
|
"sftp_enabled": None, # boolean - Is SFTP enabled?
|
|
129
129
|
"sftp_host_key_type": None, # string - Sftp Host Key Type
|
|
130
130
|
"active_sftp_host_key_id": None, # int64 - Id of the currently selected custom SFTP Host Key
|
|
131
|
-
"sftp_insecure_ciphers": None, # boolean -
|
|
131
|
+
"sftp_insecure_ciphers": None, # boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severly weakens the security of your site and it is not recommend, except as a last resort for compatibility.
|
|
132
|
+
"sftp_insecure_diffie_hellman": None, # 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.
|
|
132
133
|
"sftp_user_root_enabled": None, # boolean - Use user FTP roots also for SFTP?
|
|
133
134
|
"sharing_enabled": None, # boolean - Allow bundle creation
|
|
134
135
|
"show_request_access_link": None, # boolean - Show request access link for users without access? Currently unused.
|
|
@@ -144,7 +145,7 @@ class Site:
|
|
|
144
145
|
"ssl_required": None, # boolean - Is SSL required? Disabling this is insecure.
|
|
145
146
|
"subdomain": None, # string - Site subdomain
|
|
146
147
|
"switch_to_plan_date": None, # date-time - If switching plans, when does the new plan take effect?
|
|
147
|
-
"tls_disabled": None, # boolean -
|
|
148
|
+
"tls_disabled": None, # boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
|
|
148
149
|
"trial_days_left": None, # int64 - Number of days left in trial
|
|
149
150
|
"trial_until": None, # date-time - When does this Site trial expire?
|
|
150
151
|
"use_provided_modified_at": None, # boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
|
|
@@ -241,8 +242,9 @@ def get_usage(params=None, options=None):
|
|
|
241
242
|
# left_navigation_visibility - object - Visibility settings for account navigation
|
|
242
243
|
# session_expiry - double - Session expiry in hours
|
|
243
244
|
# ssl_required - boolean - Is SSL required? Disabling this is insecure.
|
|
244
|
-
# tls_disabled - boolean -
|
|
245
|
-
# sftp_insecure_ciphers - boolean -
|
|
245
|
+
# tls_disabled - boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
|
|
246
|
+
# sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severly weakens the security of your site and it is not recommend, except as a last resort for compatibility.
|
|
247
|
+
# 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.
|
|
246
248
|
# disable_files_certificate_generation - boolean - If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
|
|
247
249
|
# user_lockout - boolean - Will users be locked out after incorrect login attempts?
|
|
248
250
|
# user_lockout_tries - int64 - Number of login tries within `user_lockout_within` hours before users are locked out
|
|
@@ -38,6 +38,26 @@ class Snapshot:
|
|
|
38
38
|
if getattr(self, k, None) is not None
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
# Finalize Snapshot
|
|
42
|
+
def finalize(self, params=None):
|
|
43
|
+
if not isinstance(params, dict):
|
|
44
|
+
params = {}
|
|
45
|
+
|
|
46
|
+
if hasattr(self, "id") and self.id:
|
|
47
|
+
params["id"] = self.id
|
|
48
|
+
else:
|
|
49
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
50
|
+
if "id" not in params:
|
|
51
|
+
raise MissingParameterError("Parameter missing: id")
|
|
52
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
53
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
54
|
+
Api.send_request(
|
|
55
|
+
"POST",
|
|
56
|
+
"/snapshots/{id}/finalize".format(id=params["id"]),
|
|
57
|
+
params,
|
|
58
|
+
self.options,
|
|
59
|
+
)
|
|
60
|
+
|
|
41
61
|
# Parameters:
|
|
42
62
|
# expires_at - string - When the snapshot expires.
|
|
43
63
|
# name - string - A name for the snapshot.
|
|
@@ -167,6 +187,25 @@ def create(params=None, options=None):
|
|
|
167
187
|
return Snapshot(response.data, options)
|
|
168
188
|
|
|
169
189
|
|
|
190
|
+
# Finalize Snapshot
|
|
191
|
+
def finalize(id, params=None, options=None):
|
|
192
|
+
if not isinstance(params, dict):
|
|
193
|
+
params = {}
|
|
194
|
+
if not isinstance(options, dict):
|
|
195
|
+
options = {}
|
|
196
|
+
params["id"] = id
|
|
197
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
198
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
199
|
+
if "id" not in params:
|
|
200
|
+
raise MissingParameterError("Parameter missing: id")
|
|
201
|
+
Api.send_request(
|
|
202
|
+
"POST",
|
|
203
|
+
"/snapshots/{id}/finalize".format(id=params["id"]),
|
|
204
|
+
params,
|
|
205
|
+
options,
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
|
|
170
209
|
# Parameters:
|
|
171
210
|
# expires_at - string - When the snapshot expires.
|
|
172
211
|
# name - string - A name for the snapshot.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|