Files.com 1.3.37__tar.gz → 1.4.0__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 changed (100) hide show
  1. {Files.com-1.3.37 → Files.com-1.4.0}/Files.com.egg-info/PKG-INFO +1 -1
  2. {Files.com-1.3.37 → Files.com-1.4.0}/PKG-INFO +1 -1
  3. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/__init__.py +1 -1
  4. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/error.py +26 -2
  5. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/automation.py +15 -11
  6. {Files.com-1.3.37 → Files.com-1.4.0}/Files.com.egg-info/SOURCES.txt +0 -0
  7. {Files.com-1.3.37 → Files.com-1.4.0}/Files.com.egg-info/dependency_links.txt +0 -0
  8. {Files.com-1.3.37 → Files.com-1.4.0}/Files.com.egg-info/requires.txt +0 -0
  9. {Files.com-1.3.37 → Files.com-1.4.0}/Files.com.egg-info/top_level.txt +0 -0
  10. {Files.com-1.3.37 → Files.com-1.4.0}/README.md +0 -0
  11. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/api.py +0 -0
  12. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/api_client.py +0 -0
  13. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/list_obj.py +0 -0
  14. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/__init__.py +0 -0
  15. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/account_line_item.py +0 -0
  16. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/action.py +0 -0
  17. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/action_notification_export.py +0 -0
  18. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/action_notification_export_result.py +0 -0
  19. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/action_webhook_failure.py +0 -0
  20. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/api_key.py +0 -0
  21. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/app.py +0 -0
  22. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/as2_incoming_message.py +0 -0
  23. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/as2_outgoing_message.py +0 -0
  24. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/as2_partner.py +0 -0
  25. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/as2_station.py +0 -0
  26. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/auto.py +0 -0
  27. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/automation_run.py +0 -0
  28. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/bandwidth_snapshot.py +0 -0
  29. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/behavior.py +0 -0
  30. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/bundle.py +0 -0
  31. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/bundle_download.py +0 -0
  32. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/bundle_notification.py +0 -0
  33. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/bundle_recipient.py +0 -0
  34. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/bundle_registration.py +0 -0
  35. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/clickwrap.py +0 -0
  36. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/dns_record.py +0 -0
  37. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/email_incoming_message.py +0 -0
  38. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/errors.py +0 -0
  39. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/external_event.py +0 -0
  40. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/file.py +0 -0
  41. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/file_action.py +0 -0
  42. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/file_comment.py +0 -0
  43. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/file_comment_reaction.py +0 -0
  44. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/file_migration.py +0 -0
  45. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/file_upload_part.py +0 -0
  46. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/folder.py +0 -0
  47. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/form_field.py +0 -0
  48. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/form_field_set.py +0 -0
  49. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/gpg_key.py +0 -0
  50. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/group.py +0 -0
  51. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/group_user.py +0 -0
  52. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/history.py +0 -0
  53. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/history_export.py +0 -0
  54. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/history_export_result.py +0 -0
  55. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/image.py +0 -0
  56. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/inbox_recipient.py +0 -0
  57. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/inbox_registration.py +0 -0
  58. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/inbox_upload.py +0 -0
  59. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/invoice.py +0 -0
  60. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/invoice_line_item.py +0 -0
  61. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/ip_address.py +0 -0
  62. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/lock.py +0 -0
  63. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/message.py +0 -0
  64. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/message_comment.py +0 -0
  65. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/message_comment_reaction.py +0 -0
  66. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/message_reaction.py +0 -0
  67. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/notification.py +0 -0
  68. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/payment.py +0 -0
  69. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/payment_line_item.py +0 -0
  70. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/permission.py +0 -0
  71. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/preview.py +0 -0
  72. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/priority.py +0 -0
  73. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/project.py +0 -0
  74. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/public_ip_address.py +0 -0
  75. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/public_key.py +0 -0
  76. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  77. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/remote_server.py +0 -0
  78. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/remote_server_configuration_file.py +0 -0
  79. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/request.py +0 -0
  80. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/session.py +0 -0
  81. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/settings_change.py +0 -0
  82. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/sftp_host_key.py +0 -0
  83. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/share_group.py +0 -0
  84. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/share_group_member.py +0 -0
  85. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/site.py +0 -0
  86. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/snapshot.py +0 -0
  87. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/sso_strategy.py +0 -0
  88. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/status.py +0 -0
  89. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/style.py +0 -0
  90. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/usage_daily_snapshot.py +0 -0
  91. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/usage_snapshot.py +0 -0
  92. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/user.py +0 -0
  93. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/user_cipher_use.py +0 -0
  94. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/user_request.py +0 -0
  95. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/models/webhook_test.py +0 -0
  96. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/path_util.py +0 -0
  97. {Files.com-1.3.37 → Files.com-1.4.0}/files_sdk/util.py +0 -0
  98. {Files.com-1.3.37 → Files.com-1.4.0}/pyproject.toml +0 -0
  99. {Files.com-1.3.37 → Files.com-1.4.0}/setup.cfg +0 -0
  100. {Files.com-1.3.37 → Files.com-1.4.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: Files.com
3
- Version: 1.3.37
3
+ Version: 1.4.0
4
4
  Summary: Python bindings for the Files.com API
5
5
  Home-page: UNKNOWN
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: Files.com
3
- Version: 1.3.37
3
+ Version: 1.4.0
4
4
  Summary: Python bindings for the Files.com API
5
5
  Home-page: UNKNOWN
6
6
  License: MIT
@@ -177,7 +177,7 @@ the_api_key = ""
177
177
  session_id = None
178
178
  base_url = "https://app.files.com"
179
179
  base_path = "api/rest/v1"
180
- version = "1.3.37"
180
+ version = "1.4.0"
181
181
 
182
182
  __version__ = version
183
183
 
@@ -8,7 +8,7 @@ class Error(Exception):
8
8
  headers=None,
9
9
  code=None,
10
10
  ):
11
- super(Error, self).__init__(message)
11
+ super().__init__(message)
12
12
 
13
13
  if http_body and hasattr(http_body, "decode"):
14
14
  try:
@@ -38,7 +38,31 @@ class APIConnectionError(Error):
38
38
 
39
39
 
40
40
  class APIError(Error):
41
- pass
41
+ def __init__(
42
+ self,
43
+ message=None,
44
+ http_body=None,
45
+ http_status=None,
46
+ json_body=None,
47
+ headers=None,
48
+ code=None,
49
+ ):
50
+ super().__init__(
51
+ message, http_body, http_status, json_body, headers, code
52
+ )
53
+
54
+ if json_body is None:
55
+ return
56
+
57
+ self.detail = json_body.get("detail")
58
+ self.error = json_body.get("error")
59
+ self.errors = json_body.get("errors")
60
+ self.http_code = json_body.get("http-code")
61
+ self.instance = json_body.get("instance")
62
+ self.model_errors = json_body.get("model-errors")
63
+ self.title = json_body.get("title")
64
+ self.error_type = json_body.get("type")
65
+ self.data = json_body.get("data")
42
66
 
43
67
 
44
68
  class AuthenticationError(Error):
@@ -11,28 +11,29 @@ from files_sdk.error import ( # noqa: F401
11
11
  class Automation:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - Automation ID
14
+ "always_overwrite_size_matching_files": None, # boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
14
15
  "automation": None, # string - Automation type
15
16
  "deleted": None, # boolean - Indicates if the automation has been deleted.
17
+ "description": None, # string - Description for the this Automation.
18
+ "destination_replace_from": None, # string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
19
+ "destination_replace_to": None, # string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
20
+ "destinations": None, # array - Destination Paths
16
21
  "disabled": None, # boolean - If true, this automation will not run.
17
- "trigger": None, # string - How this automation is triggered to run.
22
+ "group_ids": None, # array - IDs of Groups for the Automation (i.e. who to Request File from)
18
23
  "interval": None, # string - If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
19
24
  "last_modified_at": None, # date-time - Time when automation was last modified. Does not change for name or description updates.
20
25
  "name": None, # string - Name for this automation.
26
+ "path": None, # string - Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
27
+ "recurring_day": None, # int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
21
28
  "schedule": None, # object - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
22
29
  "source": None, # string - Source Path
23
- "destinations": None, # array - Destination Paths
24
- "destination_replace_from": None, # string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
25
- "destination_replace_to": None, # string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
26
- "description": None, # string - Description for the this Automation.
27
- "recurring_day": None, # int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
28
- "path": None, # string - Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
29
- "user_id": None, # int64 - User ID of the Automation's creator.
30
30
  "sync_ids": None, # array - IDs of remote sync folder behaviors to run by this Automation
31
- "user_ids": None, # array - IDs of Users for the Automation (i.e. who to Request File from)
32
- "group_ids": None, # array - IDs of Groups for the Automation (i.e. who to Request File from)
33
- "webhook_url": None, # string - If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
34
31
  "trigger_actions": None, # array - 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
32
+ "trigger": None, # string - How this automation is triggered to run.
33
+ "user_id": None, # int64 - User ID of the Automation's creator.
34
+ "user_ids": None, # array - IDs of Users for the Automation (i.e. who to Request File from)
35
35
  "value": None, # object - A Hash of attributes specific to the automation type.
36
+ "webhook_url": None, # string - If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
36
37
  "destination": None, # string - DEPRECATED: Destination Path. Use `destinations` instead.
37
38
  }
38
39
 
@@ -87,6 +88,7 @@ class Automation:
87
88
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
88
89
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
89
90
  # schedule - object - Custom schedule for running this automation.
91
+ # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
90
92
  # description - string - Description for the this Automation.
91
93
  # disabled - boolean - If true, this automation will not run.
92
94
  # name - string - Name for this automation.
@@ -298,6 +300,7 @@ def get(id, params=None, options=None):
298
300
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
299
301
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
300
302
  # schedule - object - Custom schedule for running this automation.
303
+ # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
301
304
  # description - string - Description for the this Automation.
302
305
  # disabled - boolean - If true, this automation will not run.
303
306
  # name - string - Name for this automation.
@@ -410,6 +413,7 @@ def manual_run(id, params=None, options=None):
410
413
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
411
414
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
412
415
  # schedule - object - Custom schedule for running this automation.
416
+ # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
413
417
  # description - string - Description for the this Automation.
414
418
  # disabled - boolean - If true, this automation will not run.
415
419
  # name - string - Name for this automation.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes