Files.com 1.4.61__tar.gz → 1.4.62__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {Files.com-1.4.61 → Files.com-1.4.62}/Files.com.egg-info/PKG-INFO +1 -1
- {Files.com-1.4.61 → Files.com-1.4.62}/PKG-INFO +1 -1
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/__init__.py +1 -1
- Files.com-1.4.62/files_sdk/models/automation_log.py +77 -0
- Files.com-1.4.62/files_sdk/models/sync_log.py +75 -0
- Files.com-1.4.61/files_sdk/models/automation_log.py +0 -77
- Files.com-1.4.61/files_sdk/models/sync_log.py +0 -73
- {Files.com-1.4.61 → Files.com-1.4.62}/Files.com.egg-info/SOURCES.txt +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/Files.com.egg-info/dependency_links.txt +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/Files.com.egg-info/requires.txt +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/Files.com.egg-info/top_level.txt +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/README.md +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/api.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/api_client.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/error.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/list_obj.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/__init__.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/account_line_item.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/action.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/action_notification_export.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/action_notification_export_result.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/action_webhook_failure.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/api_key.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/api_request_log.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/app.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/as2_incoming_message.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/as2_outgoing_message.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/as2_partner.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/as2_station.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/auto.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/automation.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/automation_run.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/behavior.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/bundle.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/bundle_action.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/bundle_download.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/bundle_notification.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/bundle_path.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/bundle_recipient.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/bundle_registration.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/clickwrap.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/dns_record.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/email_incoming_message.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/email_log.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/errors.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/exavault_api_request_log.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/external_event.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/file.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/file_action.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/file_comment.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/file_comment_reaction.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/file_migration.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/file_migration_log.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/file_upload_part.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/folder.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/form_field.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/form_field_set.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/gpg_key.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/group.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/group_user.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/history.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/history_export.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/history_export_result.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/image.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/inbox_recipient.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/inbox_registration.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/inbox_upload.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/invoice.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/invoice_line_item.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/ip_address.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/lock.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/message.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/message_comment.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/message_comment_reaction.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/message_reaction.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/notification.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/payment.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/payment_line_item.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/permission.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/preview.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/priority.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/project.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/public_ip_address.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/public_key.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/remote_server.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/request.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/session.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/settings_change.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/sftp_action_log.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/sftp_host_key.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/share_group.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/share_group_member.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/site.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/snapshot.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/sso_strategy.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/status.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/style.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/usage_snapshot.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/user.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/user_cipher_use.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/user_request.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/models/webhook_test.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/path_util.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/files_sdk/util.py +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/pyproject.toml +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/setup.cfg +0 -0
- {Files.com-1.4.61 → Files.com-1.4.62}/setup.py +0 -0
|
@@ -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)
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|