Files.com 1.4.61__tar.gz → 1.4.63__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 (111) hide show
  1. {Files.com-1.4.61 → Files.com-1.4.63}/Files.com.egg-info/PKG-INFO +1 -1
  2. {Files.com-1.4.61 → Files.com-1.4.63}/PKG-INFO +1 -1
  3. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/__init__.py +1 -1
  4. Files.com-1.4.63/files_sdk/models/automation_log.py +77 -0
  5. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/site.py +2 -0
  6. Files.com-1.4.63/files_sdk/models/sync_log.py +75 -0
  7. Files.com-1.4.61/files_sdk/models/automation_log.py +0 -77
  8. Files.com-1.4.61/files_sdk/models/sync_log.py +0 -73
  9. {Files.com-1.4.61 → Files.com-1.4.63}/Files.com.egg-info/SOURCES.txt +0 -0
  10. {Files.com-1.4.61 → Files.com-1.4.63}/Files.com.egg-info/dependency_links.txt +0 -0
  11. {Files.com-1.4.61 → Files.com-1.4.63}/Files.com.egg-info/requires.txt +0 -0
  12. {Files.com-1.4.61 → Files.com-1.4.63}/Files.com.egg-info/top_level.txt +0 -0
  13. {Files.com-1.4.61 → Files.com-1.4.63}/README.md +0 -0
  14. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/api.py +0 -0
  15. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/api_client.py +0 -0
  16. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/error.py +0 -0
  17. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/list_obj.py +0 -0
  18. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/__init__.py +0 -0
  19. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/account_line_item.py +0 -0
  20. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/action.py +0 -0
  21. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/action_notification_export.py +0 -0
  22. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/action_notification_export_result.py +0 -0
  23. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/action_webhook_failure.py +0 -0
  24. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/api_key.py +0 -0
  25. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/api_request_log.py +0 -0
  26. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/app.py +0 -0
  27. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/as2_incoming_message.py +0 -0
  28. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/as2_outgoing_message.py +0 -0
  29. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/as2_partner.py +0 -0
  30. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/as2_station.py +0 -0
  31. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/auto.py +0 -0
  32. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/automation.py +0 -0
  33. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/automation_run.py +0 -0
  34. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/bandwidth_snapshot.py +0 -0
  35. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/behavior.py +0 -0
  36. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/bundle.py +0 -0
  37. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/bundle_action.py +0 -0
  38. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/bundle_download.py +0 -0
  39. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/bundle_notification.py +0 -0
  40. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/bundle_path.py +0 -0
  41. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/bundle_recipient.py +0 -0
  42. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/bundle_registration.py +0 -0
  43. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/clickwrap.py +0 -0
  44. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/dns_record.py +0 -0
  45. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/email_incoming_message.py +0 -0
  46. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/email_log.py +0 -0
  47. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/errors.py +0 -0
  48. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/exavault_api_request_log.py +0 -0
  49. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/external_event.py +0 -0
  50. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/file.py +0 -0
  51. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/file_action.py +0 -0
  52. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/file_comment.py +0 -0
  53. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/file_comment_reaction.py +0 -0
  54. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/file_migration.py +0 -0
  55. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/file_migration_log.py +0 -0
  56. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/file_upload_part.py +0 -0
  57. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/folder.py +0 -0
  58. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/form_field.py +0 -0
  59. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/form_field_set.py +0 -0
  60. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/gpg_key.py +0 -0
  61. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/group.py +0 -0
  62. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/group_user.py +0 -0
  63. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/history.py +0 -0
  64. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/history_export.py +0 -0
  65. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/history_export_result.py +0 -0
  66. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/image.py +0 -0
  67. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/inbox_recipient.py +0 -0
  68. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/inbox_registration.py +0 -0
  69. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/inbox_upload.py +0 -0
  70. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/invoice.py +0 -0
  71. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/invoice_line_item.py +0 -0
  72. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/ip_address.py +0 -0
  73. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/lock.py +0 -0
  74. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/message.py +0 -0
  75. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/message_comment.py +0 -0
  76. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/message_comment_reaction.py +0 -0
  77. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/message_reaction.py +0 -0
  78. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/notification.py +0 -0
  79. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/payment.py +0 -0
  80. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/payment_line_item.py +0 -0
  81. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/permission.py +0 -0
  82. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/preview.py +0 -0
  83. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/priority.py +0 -0
  84. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/project.py +0 -0
  85. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/public_ip_address.py +0 -0
  86. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/public_key.py +0 -0
  87. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  88. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/remote_server.py +0 -0
  89. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/remote_server_configuration_file.py +0 -0
  90. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/request.py +0 -0
  91. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/session.py +0 -0
  92. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/settings_change.py +0 -0
  93. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/sftp_action_log.py +0 -0
  94. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/sftp_host_key.py +0 -0
  95. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/share_group.py +0 -0
  96. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/share_group_member.py +0 -0
  97. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/snapshot.py +0 -0
  98. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/sso_strategy.py +0 -0
  99. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/status.py +0 -0
  100. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/style.py +0 -0
  101. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/usage_daily_snapshot.py +0 -0
  102. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/usage_snapshot.py +0 -0
  103. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/user.py +0 -0
  104. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/user_cipher_use.py +0 -0
  105. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/user_request.py +0 -0
  106. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/models/webhook_test.py +0 -0
  107. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/path_util.py +0 -0
  108. {Files.com-1.4.61 → Files.com-1.4.63}/files_sdk/util.py +0 -0
  109. {Files.com-1.4.61 → Files.com-1.4.63}/pyproject.toml +0 -0
  110. {Files.com-1.4.61 → Files.com-1.4.63}/setup.cfg +0 -0
  111. {Files.com-1.4.61 → Files.com-1.4.63}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: Files.com
3
- Version: 1.4.61
3
+ Version: 1.4.63
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.4.61
3
+ Version: 1.4.63
4
4
  Summary: Python bindings for the Files.com API
5
5
  Home-page: UNKNOWN
6
6
  License: MIT
@@ -195,7 +195,7 @@ the_api_key = ""
195
195
  session_id = None
196
196
  base_url = "https://app.files.com"
197
197
  base_path = "api/rest/v1"
198
- version = "1.4.61"
198
+ version = "1.4.63"
199
199
 
200
200
  __version__ = version
201
201
 
@@ -0,0 +1,77 @@
1
+ import builtins # noqa: F401
2
+ from files_sdk.api import Api # noqa: F401
3
+ from files_sdk.list_obj import ListObj
4
+ from files_sdk.error import ( # noqa: F401
5
+ InvalidParameterError,
6
+ MissingParameterError,
7
+ NotImplementedError,
8
+ )
9
+
10
+
11
+ class AutomationLog:
12
+ default_attributes = {
13
+ "timestamp": None, # date-time - Start Time of Action
14
+ "automation_id": None, # int64 - Automation ID
15
+ "automation_run_id": None, # int64 - Automation Run ID
16
+ "dest_path": None, # string - Destination path, for moves and copies
17
+ "error_type": None, # string - Error type, if applicable
18
+ "message": None, # string - Message
19
+ "operation": None, # string - Operation type
20
+ "path": None, # string - File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
21
+ "status": None, # string - Status
22
+ }
23
+
24
+ def __init__(self, attributes=None, options=None):
25
+ if not isinstance(attributes, dict):
26
+ attributes = {}
27
+ if not isinstance(options, dict):
28
+ options = {}
29
+ self.set_attributes(attributes)
30
+ self.options = options
31
+
32
+ def set_attributes(self, attributes):
33
+ for (
34
+ attribute,
35
+ default_value,
36
+ ) in AutomationLog.default_attributes.items():
37
+ setattr(self, attribute, attributes.get(attribute, default_value))
38
+
39
+ def get_attributes(self):
40
+ return {
41
+ k: getattr(self, k, None)
42
+ for k in AutomationLog.default_attributes
43
+ if getattr(self, k, None) is not None
44
+ }
45
+
46
+
47
+ # Parameters:
48
+ # 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.
49
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
50
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `automation_id`, `automation_run_id`, `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
51
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
52
+ def list(params=None, options=None):
53
+ if not isinstance(params, dict):
54
+ params = {}
55
+ if not isinstance(options, dict):
56
+ options = {}
57
+ if "cursor" in params and not isinstance(params["cursor"], str):
58
+ raise InvalidParameterError("Bad parameter: cursor must be an str")
59
+ if "per_page" in params and not isinstance(params["per_page"], int):
60
+ raise InvalidParameterError("Bad parameter: per_page must be an int")
61
+ if "filter" in params and not isinstance(params["filter"], dict):
62
+ raise InvalidParameterError("Bad parameter: filter must be an dict")
63
+ if "filter_prefix" in params and not isinstance(
64
+ params["filter_prefix"], dict
65
+ ):
66
+ raise InvalidParameterError(
67
+ "Bad parameter: filter_prefix must be an dict"
68
+ )
69
+ return ListObj(AutomationLog, "GET", "/automation_logs", params, options)
70
+
71
+
72
+ def all(params=None, options=None):
73
+ list(params, options)
74
+
75
+
76
+ def new(*args, **kwargs):
77
+ return AutomationLog(*args, **kwargs)
@@ -18,6 +18,7 @@ class Site:
18
18
  "allowed_2fa_method_webauthn": None, # boolean - Is WebAuthn two factor authentication allowed?
19
19
  "allowed_2fa_method_yubi": None, # boolean - Is yubikey two factor authentication allowed?
20
20
  "allowed_2fa_method_email": None, # boolean - Is OTP via email two factor authentication allowed?
21
+ "allowed_2fa_method_static": None, # boolean - Is OTP via static codes for two factor authentication allowed?
21
22
  "allowed_2fa_method_bypass_for_ftp_sftp_dav": None, # boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
22
23
  "admin_user_id": None, # int64 - User ID for the main site administrator
23
24
  "admins_bypass_locked_subfolders": None, # boolean - Allow admins to bypass the locked subfolders setting.
@@ -308,6 +309,7 @@ def get_usage(params=None, options=None):
308
309
  # allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
309
310
  # allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
310
311
  # allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
312
+ # allowed_2fa_method_static - boolean - Is OTP via static codes for two factor authentication allowed?
311
313
  # allowed_2fa_method_bypass_for_ftp_sftp_dav - boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
312
314
  # require_2fa - boolean - Require two-factor authentication for all users?
313
315
  # require_2fa_user_type - string - What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
@@ -0,0 +1,75 @@
1
+ import builtins # noqa: F401
2
+ from files_sdk.api import Api # noqa: F401
3
+ from files_sdk.list_obj import ListObj
4
+ from files_sdk.error import ( # noqa: F401
5
+ InvalidParameterError,
6
+ MissingParameterError,
7
+ NotImplementedError,
8
+ )
9
+
10
+
11
+ class SyncLog:
12
+ default_attributes = {
13
+ "timestamp": None, # date-time - Start Time of Action
14
+ "sync_id": None, # int64 - Sync ID
15
+ "external_event_id": None, # int64 - External Event ID
16
+ "error_type": None, # string - Error type, if applicable
17
+ "message": None, # string - Message
18
+ "operation": None, # string - Operation type
19
+ "path": None, # string - File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
20
+ "size": None, # string - File size
21
+ "file_type": None, # string - File type
22
+ "status": None, # string - Status
23
+ }
24
+
25
+ def __init__(self, attributes=None, options=None):
26
+ if not isinstance(attributes, dict):
27
+ attributes = {}
28
+ if not isinstance(options, dict):
29
+ options = {}
30
+ self.set_attributes(attributes)
31
+ self.options = options
32
+
33
+ def set_attributes(self, attributes):
34
+ for attribute, default_value in SyncLog.default_attributes.items():
35
+ setattr(self, attribute, attributes.get(attribute, default_value))
36
+
37
+ def get_attributes(self):
38
+ return {
39
+ k: getattr(self, k, None)
40
+ for k in SyncLog.default_attributes
41
+ if getattr(self, k, None) is not None
42
+ }
43
+
44
+
45
+ # Parameters:
46
+ # 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.
47
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
48
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `external_event_id`, `operation`, `status` or `sync_id`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ status, sync_id ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, status, sync_id ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, status, sync_id ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, status, sync_id ]`, `[ operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, operation, status, sync_id ]`, `[ external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, sync_id ]` or `[ end_date, external_event_id, operation, status, sync_id ]`.
49
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation` and `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ status, sync_id ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, status, sync_id ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, status, sync_id ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, status, sync_id ]`, `[ operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, operation, status, sync_id ]`, `[ external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, sync_id ]` or `[ end_date, external_event_id, operation, status, sync_id ]`.
50
+ def list(params=None, options=None):
51
+ if not isinstance(params, dict):
52
+ params = {}
53
+ if not isinstance(options, dict):
54
+ options = {}
55
+ if "cursor" in params and not isinstance(params["cursor"], str):
56
+ raise InvalidParameterError("Bad parameter: cursor must be an str")
57
+ if "per_page" in params and not isinstance(params["per_page"], int):
58
+ raise InvalidParameterError("Bad parameter: per_page must be an int")
59
+ if "filter" in params and not isinstance(params["filter"], dict):
60
+ raise InvalidParameterError("Bad parameter: filter must be an dict")
61
+ if "filter_prefix" in params and not isinstance(
62
+ params["filter_prefix"], dict
63
+ ):
64
+ raise InvalidParameterError(
65
+ "Bad parameter: filter_prefix must be an dict"
66
+ )
67
+ return ListObj(SyncLog, "GET", "/sync_logs", params, options)
68
+
69
+
70
+ def all(params=None, options=None):
71
+ list(params, options)
72
+
73
+
74
+ def new(*args, **kwargs):
75
+ return SyncLog(*args, **kwargs)
@@ -1,77 +0,0 @@
1
- import builtins # noqa: F401
2
- from files_sdk.api import Api # noqa: F401
3
- from files_sdk.list_obj import ListObj
4
- from files_sdk.error import ( # noqa: F401
5
- InvalidParameterError,
6
- MissingParameterError,
7
- NotImplementedError,
8
- )
9
-
10
-
11
- class AutomationLog:
12
- default_attributes = {
13
- "timestamp": None, # date-time - Start Time of Action
14
- "automation_id": None, # int64 - Automation ID
15
- "automation_run_id": None, # int64 - Automation Run ID
16
- "dest_path": None, # string - Destination path, for moves and copies
17
- "error_type": None, # string - Error type, if applicable
18
- "message": None, # string - Message
19
- "operation": None, # string - Operation type
20
- "path": None, # string - File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
21
- "status": None, # string - Status
22
- }
23
-
24
- def __init__(self, attributes=None, options=None):
25
- if not isinstance(attributes, dict):
26
- attributes = {}
27
- if not isinstance(options, dict):
28
- options = {}
29
- self.set_attributes(attributes)
30
- self.options = options
31
-
32
- def set_attributes(self, attributes):
33
- for (
34
- attribute,
35
- default_value,
36
- ) in AutomationLog.default_attributes.items():
37
- setattr(self, attribute, attributes.get(attribute, default_value))
38
-
39
- def get_attributes(self):
40
- return {
41
- k: getattr(self, k, None)
42
- for k in AutomationLog.default_attributes
43
- if getattr(self, k, None) is not None
44
- }
45
-
46
-
47
- # Parameters:
48
- # 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.
49
- # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
50
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `automation_id`, `automation_run_id`, `operation`, `path`, `status` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ start_date, type ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ end_date, type ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, type ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, type ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, type ]`, `[ path, status ]`, `[ path, type ]`, `[ status, type ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, type ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_id, type ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, automation_run_id, type ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, operation, type ]`, `[ start_date, path, status ]`, `[ start_date, path, type ]`, `[ start_date, status, type ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_id, type ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, automation_run_id, type ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, operation, type ]`, `[ end_date, path, status ]`, `[ end_date, path, type ]`, `[ end_date, status, type ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, type ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, type ]`, `[ automation_id, path, status ]`, `[ automation_id, path, type ]`, `[ automation_id, status, type ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, type ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, type ]`, `[ automation_run_id, status, type ]`, `[ operation, path, status ]`, `[ operation, path, type ]`, `[ operation, status, type ]`, `[ path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_id, type ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, automation_run_id, type ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, path, status ]`, `[ start_date, end_date, path, type ]`, `[ start_date, end_date, status, type ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, automation_run_id, type ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, operation, type ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_id, path, type ]`, `[ start_date, automation_id, status, type ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, operation, type ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, automation_run_id, path, type ]`, `[ start_date, automation_run_id, status, type ]`, `[ start_date, operation, path, status ]`, `[ start_date, operation, path, type ]`, `[ start_date, operation, status, type ]`, `[ start_date, path, status, type ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, automation_run_id, type ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, operation, type ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_id, path, type ]`, `[ end_date, automation_id, status, type ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, operation, type ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, automation_run_id, path, type ]`, `[ end_date, automation_run_id, status, type ]`, `[ end_date, operation, path, status ]`, `[ end_date, operation, path, type ]`, `[ end_date, operation, status, type ]`, `[ end_date, path, status, type ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, type ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, type ]`, `[ automation_id, automation_run_id, status, type ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, type ]`, `[ automation_id, operation, status, type ]`, `[ automation_id, path, status, type ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, type ]`, `[ automation_run_id, operation, status, type ]`, `[ automation_run_id, path, status, type ]`, `[ operation, path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, automation_run_id, type ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, operation, type ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_id, path, type ]`, `[ start_date, end_date, automation_id, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, operation, type ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, automation_run_id, path, type ]`, `[ start_date, end_date, automation_run_id, status, type ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, end_date, operation, path, type ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, operation, type ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, automation_run_id, path, type ]`, `[ start_date, automation_id, automation_run_id, status, type ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_id, operation, path, type ]`, `[ start_date, automation_id, operation, status, type ]`, `[ start_date, automation_id, path, status, type ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, type ]`, `[ start_date, automation_run_id, operation, status, type ]`, `[ start_date, automation_run_id, path, status, type ]`, `[ start_date, operation, path, status, type ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, operation, type ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, automation_run_id, path, type ]`, `[ end_date, automation_id, automation_run_id, status, type ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_id, operation, path, type ]`, `[ end_date, automation_id, operation, status, type ]`, `[ end_date, automation_id, path, status, type ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, type ]`, `[ end_date, automation_run_id, operation, status, type ]`, `[ end_date, automation_run_id, path, status, type ]`, `[ end_date, operation, path, status, type ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, type ]`, `[ automation_id, automation_run_id, operation, status, type ]`, `[ automation_id, automation_run_id, path, status, type ]`, `[ automation_id, operation, path, status, type ]`, `[ automation_run_id, operation, path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, type ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, type ]`, `[ start_date, end_date, automation_id, automation_run_id, status, type ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_id, operation, path, type ]`, `[ start_date, end_date, automation_id, operation, status, type ]`, `[ start_date, end_date, automation_id, path, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, type ]`, `[ start_date, end_date, automation_run_id, operation, status, type ]`, `[ start_date, end_date, automation_run_id, path, status, type ]`, `[ start_date, end_date, operation, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, type ]`, `[ start_date, automation_id, automation_run_id, operation, status, type ]`, `[ start_date, automation_id, automation_run_id, path, status, type ]`, `[ start_date, automation_id, operation, path, status, type ]`, `[ start_date, automation_run_id, operation, path, status, type ]`, `[ end_date, automation_id, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path, type ]`, `[ end_date, automation_id, automation_run_id, operation, status, type ]`, `[ end_date, automation_id, automation_run_id, path, status, type ]`, `[ end_date, automation_id, operation, path, status, type ]`, `[ end_date, automation_run_id, operation, path, status, type ]`, `[ automation_id, automation_run_id, operation, path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status, type ]`, `[ start_date, end_date, automation_id, operation, path, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path, status, type ]` or `[ end_date, automation_id, automation_run_id, operation, path, status, type ]`.
51
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ start_date, type ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ end_date, type ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, type ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, type ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, type ]`, `[ path, status ]`, `[ path, type ]`, `[ status, type ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, type ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_id, type ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, automation_run_id, type ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, operation, type ]`, `[ start_date, path, status ]`, `[ start_date, path, type ]`, `[ start_date, status, type ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_id, type ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, automation_run_id, type ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, operation, type ]`, `[ end_date, path, status ]`, `[ end_date, path, type ]`, `[ end_date, status, type ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, type ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, type ]`, `[ automation_id, path, status ]`, `[ automation_id, path, type ]`, `[ automation_id, status, type ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, type ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, type ]`, `[ automation_run_id, status, type ]`, `[ operation, path, status ]`, `[ operation, path, type ]`, `[ operation, status, type ]`, `[ path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_id, type ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, automation_run_id, type ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, path, status ]`, `[ start_date, end_date, path, type ]`, `[ start_date, end_date, status, type ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, automation_run_id, type ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, operation, type ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_id, path, type ]`, `[ start_date, automation_id, status, type ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, operation, type ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, automation_run_id, path, type ]`, `[ start_date, automation_run_id, status, type ]`, `[ start_date, operation, path, status ]`, `[ start_date, operation, path, type ]`, `[ start_date, operation, status, type ]`, `[ start_date, path, status, type ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, automation_run_id, type ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, operation, type ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_id, path, type ]`, `[ end_date, automation_id, status, type ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, operation, type ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, automation_run_id, path, type ]`, `[ end_date, automation_run_id, status, type ]`, `[ end_date, operation, path, status ]`, `[ end_date, operation, path, type ]`, `[ end_date, operation, status, type ]`, `[ end_date, path, status, type ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, type ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, type ]`, `[ automation_id, automation_run_id, status, type ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, type ]`, `[ automation_id, operation, status, type ]`, `[ automation_id, path, status, type ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, type ]`, `[ automation_run_id, operation, status, type ]`, `[ automation_run_id, path, status, type ]`, `[ operation, path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, automation_run_id, type ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, operation, type ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_id, path, type ]`, `[ start_date, end_date, automation_id, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, operation, type ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, automation_run_id, path, type ]`, `[ start_date, end_date, automation_run_id, status, type ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, end_date, operation, path, type ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, operation, type ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, automation_run_id, path, type ]`, `[ start_date, automation_id, automation_run_id, status, type ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_id, operation, path, type ]`, `[ start_date, automation_id, operation, status, type ]`, `[ start_date, automation_id, path, status, type ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, type ]`, `[ start_date, automation_run_id, operation, status, type ]`, `[ start_date, automation_run_id, path, status, type ]`, `[ start_date, operation, path, status, type ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, operation, type ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, automation_run_id, path, type ]`, `[ end_date, automation_id, automation_run_id, status, type ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_id, operation, path, type ]`, `[ end_date, automation_id, operation, status, type ]`, `[ end_date, automation_id, path, status, type ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, type ]`, `[ end_date, automation_run_id, operation, status, type ]`, `[ end_date, automation_run_id, path, status, type ]`, `[ end_date, operation, path, status, type ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, type ]`, `[ automation_id, automation_run_id, operation, status, type ]`, `[ automation_id, automation_run_id, path, status, type ]`, `[ automation_id, operation, path, status, type ]`, `[ automation_run_id, operation, path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, type ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, type ]`, `[ start_date, end_date, automation_id, automation_run_id, status, type ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_id, operation, path, type ]`, `[ start_date, end_date, automation_id, operation, status, type ]`, `[ start_date, end_date, automation_id, path, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, type ]`, `[ start_date, end_date, automation_run_id, operation, status, type ]`, `[ start_date, end_date, automation_run_id, path, status, type ]`, `[ start_date, end_date, operation, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, type ]`, `[ start_date, automation_id, automation_run_id, operation, status, type ]`, `[ start_date, automation_id, automation_run_id, path, status, type ]`, `[ start_date, automation_id, operation, path, status, type ]`, `[ start_date, automation_run_id, operation, path, status, type ]`, `[ end_date, automation_id, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path, type ]`, `[ end_date, automation_id, automation_run_id, operation, status, type ]`, `[ end_date, automation_id, automation_run_id, path, status, type ]`, `[ end_date, automation_id, operation, path, status, type ]`, `[ end_date, automation_run_id, operation, path, status, type ]`, `[ automation_id, automation_run_id, operation, path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status, type ]`, `[ start_date, end_date, automation_id, operation, path, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path, status, type ]` or `[ end_date, automation_id, automation_run_id, operation, path, status, type ]`.
52
- def list(params=None, options=None):
53
- if not isinstance(params, dict):
54
- params = {}
55
- if not isinstance(options, dict):
56
- options = {}
57
- if "cursor" in params and not isinstance(params["cursor"], str):
58
- raise InvalidParameterError("Bad parameter: cursor must be an str")
59
- if "per_page" in params and not isinstance(params["per_page"], int):
60
- raise InvalidParameterError("Bad parameter: per_page must be an int")
61
- if "filter" in params and not isinstance(params["filter"], dict):
62
- raise InvalidParameterError("Bad parameter: filter must be an dict")
63
- if "filter_prefix" in params and not isinstance(
64
- params["filter_prefix"], dict
65
- ):
66
- raise InvalidParameterError(
67
- "Bad parameter: filter_prefix must be an dict"
68
- )
69
- return ListObj(AutomationLog, "GET", "/automation_logs", params, options)
70
-
71
-
72
- def all(params=None, options=None):
73
- list(params, options)
74
-
75
-
76
- def new(*args, **kwargs):
77
- return AutomationLog(*args, **kwargs)
@@ -1,73 +0,0 @@
1
- import builtins # noqa: F401
2
- from files_sdk.api import Api # noqa: F401
3
- from files_sdk.list_obj import ListObj
4
- from files_sdk.error import ( # noqa: F401
5
- InvalidParameterError,
6
- MissingParameterError,
7
- NotImplementedError,
8
- )
9
-
10
-
11
- class SyncLog:
12
- default_attributes = {
13
- "timestamp": None, # date-time - Start Time of Action
14
- "sync_id": None, # int64 - Sync ID
15
- "external_event_id": None, # int64 - External Event ID
16
- "error_type": None, # string - Error type, if applicable
17
- "message": None, # string - Message
18
- "operation": None, # string - Operation type
19
- "path": None, # string - File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
20
- "status": None, # string - Status
21
- }
22
-
23
- def __init__(self, attributes=None, options=None):
24
- if not isinstance(attributes, dict):
25
- attributes = {}
26
- if not isinstance(options, dict):
27
- options = {}
28
- self.set_attributes(attributes)
29
- self.options = options
30
-
31
- def set_attributes(self, attributes):
32
- for attribute, default_value in SyncLog.default_attributes.items():
33
- setattr(self, attribute, attributes.get(attribute, default_value))
34
-
35
- def get_attributes(self):
36
- return {
37
- k: getattr(self, k, None)
38
- for k in SyncLog.default_attributes
39
- if getattr(self, k, None) is not None
40
- }
41
-
42
-
43
- # Parameters:
44
- # 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.
45
- # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `external_event_id`, `operation`, `status`, `sync_id` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ start_date, type ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ end_date, type ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ external_event_id, type ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ operation, type ]`, `[ status, sync_id ]`, `[ status, type ]`, `[ sync_id, type ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, end_date, type ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, external_event_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, operation, type ]`, `[ start_date, status, sync_id ]`, `[ start_date, status, type ]`, `[ start_date, sync_id, type ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, external_event_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, operation, type ]`, `[ end_date, status, sync_id ]`, `[ end_date, status, type ]`, `[ end_date, sync_id, type ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, operation, type ]`, `[ external_event_id, status, sync_id ]`, `[ external_event_id, status, type ]`, `[ external_event_id, sync_id, type ]`, `[ operation, status, sync_id ]`, `[ operation, status, type ]`, `[ operation, sync_id, type ]`, `[ status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, external_event_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, end_date, status, type ]`, `[ start_date, end_date, sync_id, type ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, operation, type ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, external_event_id, status, type ]`, `[ start_date, external_event_id, sync_id, type ]`, `[ start_date, operation, status, sync_id ]`, `[ start_date, operation, status, type ]`, `[ start_date, operation, sync_id, type ]`, `[ start_date, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, operation, type ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, external_event_id, status, type ]`, `[ end_date, external_event_id, sync_id, type ]`, `[ end_date, operation, status, sync_id ]`, `[ end_date, operation, status, type ]`, `[ end_date, operation, sync_id, type ]`, `[ end_date, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id ]`, `[ external_event_id, operation, status, type ]`, `[ external_event_id, operation, sync_id, type ]`, `[ external_event_id, status, sync_id, type ]`, `[ operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, operation, type ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, external_event_id, status, type ]`, `[ start_date, end_date, external_event_id, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, operation, sync_id, type ]`, `[ start_date, end_date, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, type ]`, `[ start_date, external_event_id, operation, sync_id, type ]`, `[ start_date, external_event_id, status, sync_id, type ]`, `[ start_date, operation, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status, type ]`, `[ end_date, external_event_id, operation, sync_id, type ]`, `[ end_date, external_event_id, status, sync_id, type ]`, `[ end_date, operation, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status, type ]`, `[ start_date, end_date, external_event_id, operation, sync_id, type ]`, `[ start_date, end_date, external_event_id, status, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id, type ]` or `[ end_date, external_event_id, operation, status, sync_id, type ]`.
47
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation` and `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ start_date, type ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ end_date, type ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ external_event_id, type ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ operation, type ]`, `[ status, sync_id ]`, `[ status, type ]`, `[ sync_id, type ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, end_date, type ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, external_event_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, operation, type ]`, `[ start_date, status, sync_id ]`, `[ start_date, status, type ]`, `[ start_date, sync_id, type ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, external_event_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, operation, type ]`, `[ end_date, status, sync_id ]`, `[ end_date, status, type ]`, `[ end_date, sync_id, type ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, operation, type ]`, `[ external_event_id, status, sync_id ]`, `[ external_event_id, status, type ]`, `[ external_event_id, sync_id, type ]`, `[ operation, status, sync_id ]`, `[ operation, status, type ]`, `[ operation, sync_id, type ]`, `[ status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, external_event_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, end_date, status, type ]`, `[ start_date, end_date, sync_id, type ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, operation, type ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, external_event_id, status, type ]`, `[ start_date, external_event_id, sync_id, type ]`, `[ start_date, operation, status, sync_id ]`, `[ start_date, operation, status, type ]`, `[ start_date, operation, sync_id, type ]`, `[ start_date, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, operation, type ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, external_event_id, status, type ]`, `[ end_date, external_event_id, sync_id, type ]`, `[ end_date, operation, status, sync_id ]`, `[ end_date, operation, status, type ]`, `[ end_date, operation, sync_id, type ]`, `[ end_date, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id ]`, `[ external_event_id, operation, status, type ]`, `[ external_event_id, operation, sync_id, type ]`, `[ external_event_id, status, sync_id, type ]`, `[ operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, operation, type ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, external_event_id, status, type ]`, `[ start_date, end_date, external_event_id, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, operation, sync_id, type ]`, `[ start_date, end_date, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, type ]`, `[ start_date, external_event_id, operation, sync_id, type ]`, `[ start_date, external_event_id, status, sync_id, type ]`, `[ start_date, operation, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status, type ]`, `[ end_date, external_event_id, operation, sync_id, type ]`, `[ end_date, external_event_id, status, sync_id, type ]`, `[ end_date, operation, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status, type ]`, `[ start_date, end_date, external_event_id, operation, sync_id, type ]`, `[ start_date, end_date, external_event_id, status, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id, type ]` or `[ end_date, external_event_id, operation, status, sync_id, type ]`.
48
- def list(params=None, options=None):
49
- if not isinstance(params, dict):
50
- params = {}
51
- if not isinstance(options, dict):
52
- options = {}
53
- if "cursor" in params and not isinstance(params["cursor"], str):
54
- raise InvalidParameterError("Bad parameter: cursor must be an str")
55
- if "per_page" in params and not isinstance(params["per_page"], int):
56
- raise InvalidParameterError("Bad parameter: per_page must be an int")
57
- if "filter" in params and not isinstance(params["filter"], dict):
58
- raise InvalidParameterError("Bad parameter: filter must be an dict")
59
- if "filter_prefix" in params and not isinstance(
60
- params["filter_prefix"], dict
61
- ):
62
- raise InvalidParameterError(
63
- "Bad parameter: filter_prefix must be an dict"
64
- )
65
- return ListObj(SyncLog, "GET", "/sync_logs", params, options)
66
-
67
-
68
- def all(params=None, options=None):
69
- list(params, options)
70
-
71
-
72
- def new(*args, **kwargs):
73
- return SyncLog(*args, **kwargs)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes