files-com 1.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of files-com might be problematic. Click here for more details.
- README.md +682 -0
- _VERSION +1 -0
- files_com-1.5.0.dist-info/METADATA +694 -0
- files_com-1.5.0.dist-info/RECORD +113 -0
- files_com-1.5.0.dist-info/WHEEL +5 -0
- files_com-1.5.0.dist-info/licenses/LICENSE +21 -0
- files_com-1.5.0.dist-info/top_level.txt +1 -0
- files_sdk/__init__.py +270 -0
- files_sdk/api.py +57 -0
- files_sdk/api_client.py +327 -0
- files_sdk/error.py +2891 -0
- files_sdk/list_obj.py +42 -0
- files_sdk/models/__init__.py +104 -0
- files_sdk/models/account_line_item.py +51 -0
- files_sdk/models/action.py +49 -0
- files_sdk/models/action_notification_export.py +147 -0
- files_sdk/models/action_notification_export_result.py +88 -0
- files_sdk/models/api_key.py +322 -0
- files_sdk/models/api_request_log.py +87 -0
- files_sdk/models/app.py +89 -0
- files_sdk/models/as2_incoming_message.py +123 -0
- files_sdk/models/as2_outgoing_message.py +119 -0
- files_sdk/models/as2_partner.py +374 -0
- files_sdk/models/as2_station.py +271 -0
- files_sdk/models/auto.py +36 -0
- files_sdk/models/automation.py +691 -0
- files_sdk/models/automation_log.py +77 -0
- files_sdk/models/automation_run.py +108 -0
- files_sdk/models/bandwidth_snapshot.py +91 -0
- files_sdk/models/behavior.py +334 -0
- files_sdk/models/bundle.py +550 -0
- files_sdk/models/bundle_action.py +86 -0
- files_sdk/models/bundle_download.py +94 -0
- files_sdk/models/bundle_notification.py +217 -0
- files_sdk/models/bundle_path.py +37 -0
- files_sdk/models/bundle_recipient.py +120 -0
- files_sdk/models/bundle_registration.py +79 -0
- files_sdk/models/clickwrap.py +268 -0
- files_sdk/models/dns_record.py +59 -0
- files_sdk/models/email_incoming_message.py +102 -0
- files_sdk/models/email_log.py +74 -0
- files_sdk/models/errors.py +37 -0
- files_sdk/models/exavault_api_request_log.py +85 -0
- files_sdk/models/external_event.py +148 -0
- files_sdk/models/file.py +791 -0
- files_sdk/models/file_action.py +39 -0
- files_sdk/models/file_comment.py +191 -0
- files_sdk/models/file_comment_reaction.py +125 -0
- files_sdk/models/file_migration.py +69 -0
- files_sdk/models/file_migration_log.py +78 -0
- files_sdk/models/file_upload_part.py +54 -0
- files_sdk/models/folder.py +154 -0
- files_sdk/models/form_field.py +43 -0
- files_sdk/models/form_field_set.py +240 -0
- files_sdk/models/ftp_action_log.py +87 -0
- files_sdk/models/gpg_key.py +254 -0
- files_sdk/models/group.py +276 -0
- files_sdk/models/group_user.py +231 -0
- files_sdk/models/history.py +236 -0
- files_sdk/models/history_export.py +238 -0
- files_sdk/models/history_export_result.py +98 -0
- files_sdk/models/image.py +37 -0
- files_sdk/models/inbox_recipient.py +118 -0
- files_sdk/models/inbox_registration.py +79 -0
- files_sdk/models/inbox_upload.py +80 -0
- files_sdk/models/invoice.py +91 -0
- files_sdk/models/invoice_line_item.py +46 -0
- files_sdk/models/ip_address.py +119 -0
- files_sdk/models/lock.py +158 -0
- files_sdk/models/message.py +244 -0
- files_sdk/models/message_comment.py +223 -0
- files_sdk/models/message_comment_reaction.py +181 -0
- files_sdk/models/message_reaction.py +170 -0
- files_sdk/models/notification.py +357 -0
- files_sdk/models/outbound_connection_log.py +88 -0
- files_sdk/models/payment.py +91 -0
- files_sdk/models/payment_line_item.py +42 -0
- files_sdk/models/permission.py +174 -0
- files_sdk/models/preview.py +40 -0
- files_sdk/models/priority.py +63 -0
- files_sdk/models/project.py +205 -0
- files_sdk/models/public_hosting_request_log.py +82 -0
- files_sdk/models/public_ip_address.py +42 -0
- files_sdk/models/public_key.py +212 -0
- files_sdk/models/remote_bandwidth_snapshot.py +91 -0
- files_sdk/models/remote_server.py +1677 -0
- files_sdk/models/remote_server_configuration_file.py +72 -0
- files_sdk/models/request.py +180 -0
- files_sdk/models/restore.py +104 -0
- files_sdk/models/session.py +100 -0
- files_sdk/models/settings_change.py +71 -0
- files_sdk/models/sftp_action_log.py +91 -0
- files_sdk/models/sftp_host_key.py +215 -0
- files_sdk/models/share_group.py +228 -0
- files_sdk/models/share_group_member.py +41 -0
- files_sdk/models/siem_http_destination.py +773 -0
- files_sdk/models/site.py +767 -0
- files_sdk/models/snapshot.py +255 -0
- files_sdk/models/sso_strategy.py +167 -0
- files_sdk/models/status.py +42 -0
- files_sdk/models/style.py +152 -0
- files_sdk/models/sync_log.py +75 -0
- files_sdk/models/usage_by_top_level_dir.py +41 -0
- files_sdk/models/usage_daily_snapshot.py +93 -0
- files_sdk/models/usage_snapshot.py +73 -0
- files_sdk/models/user.py +893 -0
- files_sdk/models/user_cipher_use.py +68 -0
- files_sdk/models/user_request.py +166 -0
- files_sdk/models/user_sftp_client_use.py +68 -0
- files_sdk/models/web_dav_action_log.py +87 -0
- files_sdk/models/webhook_test.py +104 -0
- files_sdk/path_util.py +42 -0
- files_sdk/util.py +34 -0
|
@@ -0,0 +1,68 @@
|
|
|
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 UserCipherUse:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - UserCipherUse ID
|
|
14
|
+
"protocol_cipher": None, # string - The protocol and cipher employed
|
|
15
|
+
"created_at": None, # date-time - The earliest recorded use of this combination of interface and protocol and cipher (for this user)
|
|
16
|
+
"insecure": None, # boolean - Is this cipher considered insecure?
|
|
17
|
+
"interface": None, # string - The interface accessed
|
|
18
|
+
"updated_at": None, # date-time - The most recent use of this combination of interface and protocol and cipher (for this user)
|
|
19
|
+
"user_id": None, # int64 - ID of the user who performed this access
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
def __init__(self, attributes=None, options=None):
|
|
23
|
+
if not isinstance(attributes, dict):
|
|
24
|
+
attributes = {}
|
|
25
|
+
if not isinstance(options, dict):
|
|
26
|
+
options = {}
|
|
27
|
+
self.set_attributes(attributes)
|
|
28
|
+
self.options = options
|
|
29
|
+
|
|
30
|
+
def set_attributes(self, attributes):
|
|
31
|
+
for (
|
|
32
|
+
attribute,
|
|
33
|
+
default_value,
|
|
34
|
+
) in UserCipherUse.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 UserCipherUse.default_attributes
|
|
41
|
+
if getattr(self, k, None) is not None
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# Parameters:
|
|
46
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
47
|
+
# 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.
|
|
48
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
49
|
+
def list(params=None, options=None):
|
|
50
|
+
if not isinstance(params, dict):
|
|
51
|
+
params = {}
|
|
52
|
+
if not isinstance(options, dict):
|
|
53
|
+
options = {}
|
|
54
|
+
if "user_id" in params and not isinstance(params["user_id"], int):
|
|
55
|
+
raise InvalidParameterError("Bad parameter: user_id must be an int")
|
|
56
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
57
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
58
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
59
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
60
|
+
return ListObj(UserCipherUse, "GET", "/user_cipher_uses", params, options)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def all(params=None, options=None):
|
|
64
|
+
list(params, options)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def new(*args, **kwargs):
|
|
68
|
+
return UserCipherUse(*args, **kwargs)
|
|
@@ -0,0 +1,166 @@
|
|
|
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 UserRequest:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - ID
|
|
14
|
+
"name": None, # string - User's full name
|
|
15
|
+
"email": None, # email - User email address
|
|
16
|
+
"details": None, # string - Details of the user's request
|
|
17
|
+
"company": None, # string - User's company name
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
def __init__(self, attributes=None, options=None):
|
|
21
|
+
if not isinstance(attributes, dict):
|
|
22
|
+
attributes = {}
|
|
23
|
+
if not isinstance(options, dict):
|
|
24
|
+
options = {}
|
|
25
|
+
self.set_attributes(attributes)
|
|
26
|
+
self.options = options
|
|
27
|
+
|
|
28
|
+
def set_attributes(self, attributes):
|
|
29
|
+
for attribute, default_value in UserRequest.default_attributes.items():
|
|
30
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
31
|
+
|
|
32
|
+
def get_attributes(self):
|
|
33
|
+
return {
|
|
34
|
+
k: getattr(self, k, None)
|
|
35
|
+
for k in UserRequest.default_attributes
|
|
36
|
+
if getattr(self, k, None) is not None
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def delete(self, params=None):
|
|
40
|
+
if not isinstance(params, dict):
|
|
41
|
+
params = {}
|
|
42
|
+
|
|
43
|
+
if hasattr(self, "id") and self.id:
|
|
44
|
+
params["id"] = self.id
|
|
45
|
+
else:
|
|
46
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
47
|
+
if "id" not in params:
|
|
48
|
+
raise MissingParameterError("Parameter missing: id")
|
|
49
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
50
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
51
|
+
Api.send_request(
|
|
52
|
+
"DELETE",
|
|
53
|
+
"/user_requests/{id}".format(id=params["id"]),
|
|
54
|
+
params,
|
|
55
|
+
self.options,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
def destroy(self, params=None):
|
|
59
|
+
self.delete(params)
|
|
60
|
+
|
|
61
|
+
def save(self):
|
|
62
|
+
if hasattr(self, "id") and self.id:
|
|
63
|
+
raise NotImplementedError(
|
|
64
|
+
"The UserRequest object doesn't support updates."
|
|
65
|
+
)
|
|
66
|
+
else:
|
|
67
|
+
new_obj = create(self.get_attributes(), self.options)
|
|
68
|
+
self.set_attributes(new_obj.get_attributes())
|
|
69
|
+
return True
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
# Parameters:
|
|
73
|
+
# 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.
|
|
74
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
75
|
+
def list(params=None, options=None):
|
|
76
|
+
if not isinstance(params, dict):
|
|
77
|
+
params = {}
|
|
78
|
+
if not isinstance(options, dict):
|
|
79
|
+
options = {}
|
|
80
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
81
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
82
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
83
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
84
|
+
return ListObj(UserRequest, "GET", "/user_requests", params, options)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def all(params=None, options=None):
|
|
88
|
+
list(params, options)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
# Parameters:
|
|
92
|
+
# id (required) - int64 - User Request ID.
|
|
93
|
+
def find(id, params=None, options=None):
|
|
94
|
+
if not isinstance(params, dict):
|
|
95
|
+
params = {}
|
|
96
|
+
if not isinstance(options, dict):
|
|
97
|
+
options = {}
|
|
98
|
+
params["id"] = id
|
|
99
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
100
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
101
|
+
if "id" not in params:
|
|
102
|
+
raise MissingParameterError("Parameter missing: id")
|
|
103
|
+
response, options = Api.send_request(
|
|
104
|
+
"GET", "/user_requests/{id}".format(id=params["id"]), params, options
|
|
105
|
+
)
|
|
106
|
+
return UserRequest(response.data, options)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def get(id, params=None, options=None):
|
|
110
|
+
find(id, params, options)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# Parameters:
|
|
114
|
+
# name (required) - string - Name of user requested
|
|
115
|
+
# email (required) - string - Email of user requested
|
|
116
|
+
# details (required) - string - Details of the user request
|
|
117
|
+
# company - string - Company of the user requested
|
|
118
|
+
def create(params=None, options=None):
|
|
119
|
+
if not isinstance(params, dict):
|
|
120
|
+
params = {}
|
|
121
|
+
if not isinstance(options, dict):
|
|
122
|
+
options = {}
|
|
123
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
124
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
125
|
+
if "email" in params and not isinstance(params["email"], str):
|
|
126
|
+
raise InvalidParameterError("Bad parameter: email must be an str")
|
|
127
|
+
if "details" in params and not isinstance(params["details"], str):
|
|
128
|
+
raise InvalidParameterError("Bad parameter: details must be an str")
|
|
129
|
+
if "company" in params and not isinstance(params["company"], str):
|
|
130
|
+
raise InvalidParameterError("Bad parameter: company must be an str")
|
|
131
|
+
if "name" not in params:
|
|
132
|
+
raise MissingParameterError("Parameter missing: name")
|
|
133
|
+
if "email" not in params:
|
|
134
|
+
raise MissingParameterError("Parameter missing: email")
|
|
135
|
+
if "details" not in params:
|
|
136
|
+
raise MissingParameterError("Parameter missing: details")
|
|
137
|
+
response, options = Api.send_request(
|
|
138
|
+
"POST", "/user_requests", params, options
|
|
139
|
+
)
|
|
140
|
+
return UserRequest(response.data, options)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def delete(id, params=None, options=None):
|
|
144
|
+
if not isinstance(params, dict):
|
|
145
|
+
params = {}
|
|
146
|
+
if not isinstance(options, dict):
|
|
147
|
+
options = {}
|
|
148
|
+
params["id"] = id
|
|
149
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
150
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
151
|
+
if "id" not in params:
|
|
152
|
+
raise MissingParameterError("Parameter missing: id")
|
|
153
|
+
Api.send_request(
|
|
154
|
+
"DELETE",
|
|
155
|
+
"/user_requests/{id}".format(id=params["id"]),
|
|
156
|
+
params,
|
|
157
|
+
options,
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def destroy(id, params=None, options=None):
|
|
162
|
+
delete(id, params, options)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def new(*args, **kwargs):
|
|
166
|
+
return UserRequest(*args, **kwargs)
|
|
@@ -0,0 +1,68 @@
|
|
|
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 UserSftpClientUse:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - UserSftpClientUse ID
|
|
14
|
+
"sftp_client": None, # string - The SFTP client used
|
|
15
|
+
"created_at": None, # date-time - The earliest recorded use of this SFTP client (for this user)
|
|
16
|
+
"updated_at": None, # date-time - The most recent use of this SFTP client (for this user)
|
|
17
|
+
"user_id": None, # int64 - ID of the user who performed this access
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
def __init__(self, attributes=None, options=None):
|
|
21
|
+
if not isinstance(attributes, dict):
|
|
22
|
+
attributes = {}
|
|
23
|
+
if not isinstance(options, dict):
|
|
24
|
+
options = {}
|
|
25
|
+
self.set_attributes(attributes)
|
|
26
|
+
self.options = options
|
|
27
|
+
|
|
28
|
+
def set_attributes(self, attributes):
|
|
29
|
+
for (
|
|
30
|
+
attribute,
|
|
31
|
+
default_value,
|
|
32
|
+
) in UserSftpClientUse.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 UserSftpClientUse.default_attributes
|
|
39
|
+
if getattr(self, k, None) is not None
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Parameters:
|
|
44
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
45
|
+
# 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.
|
|
46
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
47
|
+
def list(params=None, options=None):
|
|
48
|
+
if not isinstance(params, dict):
|
|
49
|
+
params = {}
|
|
50
|
+
if not isinstance(options, dict):
|
|
51
|
+
options = {}
|
|
52
|
+
if "user_id" in params and not isinstance(params["user_id"], int):
|
|
53
|
+
raise InvalidParameterError("Bad parameter: user_id must be an int")
|
|
54
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
55
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
56
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
57
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
58
|
+
return ListObj(
|
|
59
|
+
UserSftpClientUse, "GET", "/user_sftp_client_uses", params, options
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def all(params=None, options=None):
|
|
64
|
+
list(params, options)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def new(*args, **kwargs):
|
|
68
|
+
return UserSftpClientUse(*args, **kwargs)
|
|
@@ -0,0 +1,87 @@
|
|
|
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 WebDavActionLog:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"timestamp": None, # date-time - Start Time of Action
|
|
14
|
+
"remote_ip": None, # string - IP Address of WebDAV Client
|
|
15
|
+
"server_ip": None, # string - IP Address of WebDAV Server
|
|
16
|
+
"username": None, # string - Username
|
|
17
|
+
"auth_ciphers": None, # string - Authentication Ciphers
|
|
18
|
+
"action_type": None, # string - Action Type
|
|
19
|
+
"path": None, # string - Path as sent by the Client (may not match Files.com path due to user root folders for WebDAV). This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
20
|
+
"true_path": None, # string - Path on Files.com
|
|
21
|
+
"name": None, # string - Name of File
|
|
22
|
+
"http_method": None, # string - Method of the HTTP call.
|
|
23
|
+
"http_path": None, # string - Path of the HTTP call.
|
|
24
|
+
"http_response_code": None, # int64 - HTTP Response Code returned to the WebDAV Client.
|
|
25
|
+
"size": None, # int64 - Size of File That was Uploaded or Downloaded.
|
|
26
|
+
"entries_returned": None, # int64 - Number of entries returned when listing files and folders
|
|
27
|
+
"success": None, # boolean - Whether WebDAV Action was successful.
|
|
28
|
+
"status": None, # string - WebDAV Action status.
|
|
29
|
+
"duration_ms": None, # int64 - Duration (in milliseconds)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, attributes=None, options=None):
|
|
33
|
+
if not isinstance(attributes, dict):
|
|
34
|
+
attributes = {}
|
|
35
|
+
if not isinstance(options, dict):
|
|
36
|
+
options = {}
|
|
37
|
+
self.set_attributes(attributes)
|
|
38
|
+
self.options = options
|
|
39
|
+
|
|
40
|
+
def set_attributes(self, attributes):
|
|
41
|
+
for (
|
|
42
|
+
attribute,
|
|
43
|
+
default_value,
|
|
44
|
+
) in WebDavActionLog.default_attributes.items():
|
|
45
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
46
|
+
|
|
47
|
+
def get_attributes(self):
|
|
48
|
+
return {
|
|
49
|
+
k: getattr(self, k, None)
|
|
50
|
+
for k in WebDavActionLog.default_attributes
|
|
51
|
+
if getattr(self, k, None) is not None
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Parameters:
|
|
56
|
+
# 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.
|
|
57
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
58
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `path`, `true_path`, `remote_ip`, `success`, `status`, `action_type` or `username`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ true_path ]`, `[ remote_ip ]`, `[ success ]`, `[ status ]`, `[ action_type ]`, `[ username ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, true_path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, status ]`, `[ start_date, action_type ]`, `[ start_date, username ]`, `[ end_date, path ]`, `[ end_date, true_path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, status ]`, `[ end_date, action_type ]`, `[ end_date, username ]`, `[ path, true_path ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, status ]`, `[ path, action_type ]`, `[ path, username ]`, `[ true_path, remote_ip ]`, `[ true_path, success ]`, `[ true_path, status ]`, `[ true_path, action_type ]`, `[ true_path, username ]`, `[ remote_ip, success ]`, `[ remote_ip, status ]`, `[ remote_ip, action_type ]`, `[ remote_ip, username ]`, `[ success, status ]`, `[ success, action_type ]`, `[ success, username ]`, `[ status, action_type ]`, `[ status, username ]`, `[ action_type, username ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, true_path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, action_type ]`, `[ start_date, end_date, username ]`, `[ start_date, path, true_path ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, status ]`, `[ start_date, path, action_type ]`, `[ start_date, path, username ]`, `[ start_date, true_path, remote_ip ]`, `[ start_date, true_path, success ]`, `[ start_date, true_path, status ]`, `[ start_date, true_path, action_type ]`, `[ start_date, true_path, username ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, status ]`, `[ start_date, remote_ip, action_type ]`, `[ start_date, remote_ip, username ]`, `[ start_date, success, status ]`, `[ start_date, success, action_type ]`, `[ start_date, success, username ]`, `[ start_date, status, action_type ]`, `[ start_date, status, username ]`, `[ start_date, action_type, username ]`, `[ end_date, path, true_path ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, status ]`, `[ end_date, path, action_type ]`, `[ end_date, path, username ]`, `[ end_date, true_path, remote_ip ]`, `[ end_date, true_path, success ]`, `[ end_date, true_path, status ]`, `[ end_date, true_path, action_type ]`, `[ end_date, true_path, username ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, status ]`, `[ end_date, remote_ip, action_type ]`, `[ end_date, remote_ip, username ]`, `[ end_date, success, status ]`, `[ end_date, success, action_type ]`, `[ end_date, success, username ]`, `[ end_date, status, action_type ]`, `[ end_date, status, username ]`, `[ end_date, action_type, username ]`, `[ path, true_path, remote_ip ]`, `[ path, true_path, success ]`, `[ path, true_path, status ]`, `[ path, true_path, action_type ]`, `[ path, true_path, username ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, status ]`, `[ path, remote_ip, action_type ]`, `[ path, remote_ip, username ]`, `[ path, success, status ]`, `[ path, success, action_type ]`, `[ path, success, username ]`, `[ path, status, action_type ]`, `[ path, status, username ]`, `[ path, action_type, username ]`, `[ true_path, remote_ip, success ]`, `[ true_path, remote_ip, status ]`, `[ true_path, remote_ip, action_type ]`, `[ true_path, remote_ip, username ]`, `[ true_path, success, status ]`, `[ true_path, success, action_type ]`, `[ true_path, success, username ]`, `[ true_path, status, action_type ]`, `[ true_path, status, username ]`, `[ true_path, action_type, username ]`, `[ remote_ip, success, status ]`, `[ remote_ip, success, action_type ]`, `[ remote_ip, success, username ]`, `[ remote_ip, status, action_type ]`, `[ remote_ip, status, username ]`, `[ remote_ip, action_type, username ]`, `[ success, status, action_type ]`, `[ success, status, username ]`, `[ success, action_type, username ]`, `[ status, action_type, username ]`, `[ start_date, end_date, path, true_path ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, status ]`, `[ start_date, end_date, path, action_type ]`, `[ start_date, end_date, path, username ]`, `[ start_date, end_date, true_path, remote_ip ]`, `[ start_date, end_date, true_path, success ]`, `[ start_date, end_date, true_path, status ]`, `[ start_date, end_date, true_path, action_type ]`, `[ start_date, end_date, true_path, username ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, status ]`, `[ start_date, end_date, remote_ip, action_type ]`, `[ start_date, end_date, remote_ip, username ]`, `[ start_date, end_date, success, status ]`, `[ start_date, end_date, success, action_type ]`, `[ start_date, end_date, success, username ]`, `[ start_date, end_date, status, action_type ]`, `[ start_date, end_date, status, username ]`, `[ start_date, end_date, action_type, username ]`, `[ start_date, path, true_path, remote_ip ]`, `[ start_date, path, true_path, success ]`, `[ start_date, path, true_path, status ]`, `[ start_date, path, true_path, action_type ]`, `[ start_date, path, true_path, username ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, status ]`, `[ start_date, path, remote_ip, action_type ]`, `[ start_date, path, remote_ip, username ]`, `[ start_date, path, success, status ]`, `[ start_date, path, success, action_type ]`, `[ start_date, path, success, username ]`, `[ start_date, path, status, action_type ]`, `[ start_date, path, status, username ]`, `[ start_date, path, action_type, username ]`, `[ start_date, true_path, remote_ip, success ]`, `[ start_date, true_path, remote_ip, status ]`, `[ start_date, true_path, remote_ip, action_type ]`, `[ start_date, true_path, remote_ip, username ]`, `[ start_date, true_path, success, status ]`, `[ start_date, true_path, success, action_type ]`, `[ start_date, true_path, success, username ]`, `[ start_date, true_path, status, action_type ]`, `[ start_date, true_path, status, username ]`, `[ start_date, true_path, action_type, username ]`, `[ start_date, remote_ip, success, status ]`, `[ start_date, remote_ip, success, action_type ]`, `[ start_date, remote_ip, success, username ]`, `[ start_date, remote_ip, status, action_type ]`, `[ start_date, remote_ip, status, username ]`, `[ start_date, remote_ip, action_type, username ]`, `[ start_date, success, status, action_type ]`, `[ start_date, success, status, username ]`, `[ start_date, success, action_type, username ]`, `[ start_date, status, action_type, username ]`, `[ end_date, path, true_path, remote_ip ]`, `[ end_date, path, true_path, success ]`, `[ end_date, path, true_path, status ]`, `[ end_date, path, true_path, action_type ]`, `[ end_date, path, true_path, username ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, status ]`, `[ end_date, path, remote_ip, action_type ]`, `[ end_date, path, remote_ip, username ]`, `[ end_date, path, success, status ]`, `[ end_date, path, success, action_type ]`, `[ end_date, path, success, username ]`, `[ end_date, path, status, action_type ]`, `[ end_date, path, status, username ]`, `[ end_date, path, action_type, username ]`, `[ end_date, true_path, remote_ip, success ]`, `[ end_date, true_path, remote_ip, status ]`, `[ end_date, true_path, remote_ip, action_type ]`, `[ end_date, true_path, remote_ip, username ]`, `[ end_date, true_path, success, status ]`, `[ end_date, true_path, success, action_type ]`, `[ end_date, true_path, success, username ]`, `[ end_date, true_path, status, action_type ]`, `[ end_date, true_path, status, username ]`, `[ end_date, true_path, action_type, username ]`, `[ end_date, remote_ip, success, status ]`, `[ end_date, remote_ip, success, action_type ]`, `[ end_date, remote_ip, success, username ]`, `[ end_date, remote_ip, status, action_type ]`, `[ end_date, remote_ip, status, username ]`, `[ end_date, remote_ip, action_type, username ]`, `[ end_date, success, status, action_type ]`, `[ end_date, success, status, username ]`, `[ end_date, success, action_type, username ]`, `[ end_date, status, action_type, username ]`, `[ path, true_path, remote_ip, success ]`, `[ path, true_path, remote_ip, status ]`, `[ path, true_path, remote_ip, action_type ]`, `[ path, true_path, remote_ip, username ]`, `[ path, true_path, success, status ]`, `[ path, true_path, success, action_type ]`, `[ path, true_path, success, username ]`, `[ path, true_path, status, action_type ]`, `[ path, true_path, status, username ]`, `[ path, true_path, action_type, username ]`, `[ path, remote_ip, success, status ]`, `[ path, remote_ip, success, action_type ]`, `[ path, remote_ip, success, username ]`, `[ path, remote_ip, status, action_type ]`, `[ path, remote_ip, status, username ]`, `[ path, remote_ip, action_type, username ]`, `[ path, success, status, action_type ]`, `[ path, success, status, username ]`, `[ path, success, action_type, username ]`, `[ path, status, action_type, username ]`, `[ true_path, remote_ip, success, status ]`, `[ true_path, remote_ip, success, action_type ]`, `[ true_path, remote_ip, success, username ]`, `[ true_path, remote_ip, status, action_type ]`, `[ true_path, remote_ip, status, username ]`, `[ true_path, remote_ip, action_type, username ]`, `[ true_path, success, status, action_type ]`, `[ true_path, success, status, username ]`, `[ true_path, success, action_type, username ]`, `[ true_path, status, action_type, username ]`, `[ remote_ip, success, status, action_type ]`, `[ remote_ip, success, status, username ]`, `[ remote_ip, success, action_type, username ]`, `[ remote_ip, status, action_type, username ]`, `[ success, status, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip ]`, `[ start_date, end_date, path, true_path, success ]`, `[ start_date, end_date, path, true_path, status ]`, `[ start_date, end_date, path, true_path, action_type ]`, `[ start_date, end_date, path, true_path, username ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, status ]`, `[ start_date, end_date, path, remote_ip, action_type ]`, `[ start_date, end_date, path, remote_ip, username ]`, `[ start_date, end_date, path, success, status ]`, `[ start_date, end_date, path, success, action_type ]`, `[ start_date, end_date, path, success, username ]`, `[ start_date, end_date, path, status, action_type ]`, `[ start_date, end_date, path, status, username ]`, `[ start_date, end_date, path, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success ]`, `[ start_date, end_date, true_path, remote_ip, status ]`, `[ start_date, end_date, true_path, remote_ip, action_type ]`, `[ start_date, end_date, true_path, remote_ip, username ]`, `[ start_date, end_date, true_path, success, status ]`, `[ start_date, end_date, true_path, success, action_type ]`, `[ start_date, end_date, true_path, success, username ]`, `[ start_date, end_date, true_path, status, action_type ]`, `[ start_date, end_date, true_path, status, username ]`, `[ start_date, end_date, true_path, action_type, username ]`, `[ start_date, end_date, remote_ip, success, status ]`, `[ start_date, end_date, remote_ip, success, action_type ]`, `[ start_date, end_date, remote_ip, success, username ]`, `[ start_date, end_date, remote_ip, status, action_type ]`, `[ start_date, end_date, remote_ip, status, username ]`, `[ start_date, end_date, remote_ip, action_type, username ]`, `[ start_date, end_date, success, status, action_type ]`, `[ start_date, end_date, success, status, username ]`, `[ start_date, end_date, success, action_type, username ]`, `[ start_date, end_date, status, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success ]`, `[ start_date, path, true_path, remote_ip, status ]`, `[ start_date, path, true_path, remote_ip, action_type ]`, `[ start_date, path, true_path, remote_ip, username ]`, `[ start_date, path, true_path, success, status ]`, `[ start_date, path, true_path, success, action_type ]`, `[ start_date, path, true_path, success, username ]`, `[ start_date, path, true_path, status, action_type ]`, `[ start_date, path, true_path, status, username ]`, `[ start_date, path, true_path, action_type, username ]`, `[ start_date, path, remote_ip, success, status ]`, `[ start_date, path, remote_ip, success, action_type ]`, `[ start_date, path, remote_ip, success, username ]`, `[ start_date, path, remote_ip, status, action_type ]`, `[ start_date, path, remote_ip, status, username ]`, `[ start_date, path, remote_ip, action_type, username ]`, `[ start_date, path, success, status, action_type ]`, `[ start_date, path, success, status, username ]`, `[ start_date, path, success, action_type, username ]`, `[ start_date, path, status, action_type, username ]`, `[ start_date, true_path, remote_ip, success, status ]`, `[ start_date, true_path, remote_ip, success, action_type ]`, `[ start_date, true_path, remote_ip, success, username ]`, `[ start_date, true_path, remote_ip, status, action_type ]`, `[ start_date, true_path, remote_ip, status, username ]`, `[ start_date, true_path, remote_ip, action_type, username ]`, `[ start_date, true_path, success, status, action_type ]`, `[ start_date, true_path, success, status, username ]`, `[ start_date, true_path, success, action_type, username ]`, `[ start_date, true_path, status, action_type, username ]`, `[ start_date, remote_ip, success, status, action_type ]`, `[ start_date, remote_ip, success, status, username ]`, `[ start_date, remote_ip, success, action_type, username ]`, `[ start_date, remote_ip, status, action_type, username ]`, `[ start_date, success, status, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success ]`, `[ end_date, path, true_path, remote_ip, status ]`, `[ end_date, path, true_path, remote_ip, action_type ]`, `[ end_date, path, true_path, remote_ip, username ]`, `[ end_date, path, true_path, success, status ]`, `[ end_date, path, true_path, success, action_type ]`, `[ end_date, path, true_path, success, username ]`, `[ end_date, path, true_path, status, action_type ]`, `[ end_date, path, true_path, status, username ]`, `[ end_date, path, true_path, action_type, username ]`, `[ end_date, path, remote_ip, success, status ]`, `[ end_date, path, remote_ip, success, action_type ]`, `[ end_date, path, remote_ip, success, username ]`, `[ end_date, path, remote_ip, status, action_type ]`, `[ end_date, path, remote_ip, status, username ]`, `[ end_date, path, remote_ip, action_type, username ]`, `[ end_date, path, success, status, action_type ]`, `[ end_date, path, success, status, username ]`, `[ end_date, path, success, action_type, username ]`, `[ end_date, path, status, action_type, username ]`, `[ end_date, true_path, remote_ip, success, status ]`, `[ end_date, true_path, remote_ip, success, action_type ]`, `[ end_date, true_path, remote_ip, success, username ]`, `[ end_date, true_path, remote_ip, status, action_type ]`, `[ end_date, true_path, remote_ip, status, username ]`, `[ end_date, true_path, remote_ip, action_type, username ]`, `[ end_date, true_path, success, status, action_type ]`, `[ end_date, true_path, success, status, username ]`, `[ end_date, true_path, success, action_type, username ]`, `[ end_date, true_path, status, action_type, username ]`, `[ end_date, remote_ip, success, status, action_type ]`, `[ end_date, remote_ip, success, status, username ]`, `[ end_date, remote_ip, success, action_type, username ]`, `[ end_date, remote_ip, status, action_type, username ]`, `[ end_date, success, status, action_type, username ]`, `[ path, true_path, remote_ip, success, status ]`, `[ path, true_path, remote_ip, success, action_type ]`, `[ path, true_path, remote_ip, success, username ]`, `[ path, true_path, remote_ip, status, action_type ]`, `[ path, true_path, remote_ip, status, username ]`, `[ path, true_path, remote_ip, action_type, username ]`, `[ path, true_path, success, status, action_type ]`, `[ path, true_path, success, status, username ]`, `[ path, true_path, success, action_type, username ]`, `[ path, true_path, status, action_type, username ]`, `[ path, remote_ip, success, status, action_type ]`, `[ path, remote_ip, success, status, username ]`, `[ path, remote_ip, success, action_type, username ]`, `[ path, remote_ip, status, action_type, username ]`, `[ path, success, status, action_type, username ]`, `[ true_path, remote_ip, success, status, action_type ]`, `[ true_path, remote_ip, success, status, username ]`, `[ true_path, remote_ip, success, action_type, username ]`, `[ true_path, remote_ip, status, action_type, username ]`, `[ true_path, success, status, action_type, username ]`, `[ remote_ip, success, status, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success ]`, `[ start_date, end_date, path, true_path, remote_ip, status ]`, `[ start_date, end_date, path, true_path, remote_ip, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, username ]`, `[ start_date, end_date, path, true_path, success, status ]`, `[ start_date, end_date, path, true_path, success, action_type ]`, `[ start_date, end_date, path, true_path, success, username ]`, `[ start_date, end_date, path, true_path, status, action_type ]`, `[ start_date, end_date, path, true_path, status, username ]`, `[ start_date, end_date, path, true_path, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, status ]`, `[ start_date, end_date, path, remote_ip, success, action_type ]`, `[ start_date, end_date, path, remote_ip, success, username ]`, `[ start_date, end_date, path, remote_ip, status, action_type ]`, `[ start_date, end_date, path, remote_ip, status, username ]`, `[ start_date, end_date, path, remote_ip, action_type, username ]`, `[ start_date, end_date, path, success, status, action_type ]`, `[ start_date, end_date, path, success, status, username ]`, `[ start_date, end_date, path, success, action_type, username ]`, `[ start_date, end_date, path, status, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, status ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type ]`, `[ start_date, end_date, true_path, remote_ip, success, username ]`, `[ start_date, end_date, true_path, remote_ip, status, action_type ]`, `[ start_date, end_date, true_path, remote_ip, status, username ]`, `[ start_date, end_date, true_path, remote_ip, action_type, username ]`, `[ start_date, end_date, true_path, success, status, action_type ]`, `[ start_date, end_date, true_path, success, status, username ]`, `[ start_date, end_date, true_path, success, action_type, username ]`, `[ start_date, end_date, true_path, status, action_type, username ]`, `[ start_date, end_date, remote_ip, success, status, action_type ]`, `[ start_date, end_date, remote_ip, success, status, username ]`, `[ start_date, end_date, remote_ip, success, action_type, username ]`, `[ start_date, end_date, remote_ip, status, action_type, username ]`, `[ start_date, end_date, success, status, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, status ]`, `[ start_date, path, true_path, remote_ip, success, action_type ]`, `[ start_date, path, true_path, remote_ip, success, username ]`, `[ start_date, path, true_path, remote_ip, status, action_type ]`, `[ start_date, path, true_path, remote_ip, status, username ]`, `[ start_date, path, true_path, remote_ip, action_type, username ]`, `[ start_date, path, true_path, success, status, action_type ]`, `[ start_date, path, true_path, success, status, username ]`, `[ start_date, path, true_path, success, action_type, username ]`, `[ start_date, path, true_path, status, action_type, username ]`, `[ start_date, path, remote_ip, success, status, action_type ]`, `[ start_date, path, remote_ip, success, status, username ]`, `[ start_date, path, remote_ip, success, action_type, username ]`, `[ start_date, path, remote_ip, status, action_type, username ]`, `[ start_date, path, success, status, action_type, username ]`, `[ start_date, true_path, remote_ip, success, status, action_type ]`, `[ start_date, true_path, remote_ip, success, status, username ]`, `[ start_date, true_path, remote_ip, success, action_type, username ]`, `[ start_date, true_path, remote_ip, status, action_type, username ]`, `[ start_date, true_path, success, status, action_type, username ]`, `[ start_date, remote_ip, success, status, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success, status ]`, `[ end_date, path, true_path, remote_ip, success, action_type ]`, `[ end_date, path, true_path, remote_ip, success, username ]`, `[ end_date, path, true_path, remote_ip, status, action_type ]`, `[ end_date, path, true_path, remote_ip, status, username ]`, `[ end_date, path, true_path, remote_ip, action_type, username ]`, `[ end_date, path, true_path, success, status, action_type ]`, `[ end_date, path, true_path, success, status, username ]`, `[ end_date, path, true_path, success, action_type, username ]`, `[ end_date, path, true_path, status, action_type, username ]`, `[ end_date, path, remote_ip, success, status, action_type ]`, `[ end_date, path, remote_ip, success, status, username ]`, `[ end_date, path, remote_ip, success, action_type, username ]`, `[ end_date, path, remote_ip, status, action_type, username ]`, `[ end_date, path, success, status, action_type, username ]`, `[ end_date, true_path, remote_ip, success, status, action_type ]`, `[ end_date, true_path, remote_ip, success, status, username ]`, `[ end_date, true_path, remote_ip, success, action_type, username ]`, `[ end_date, true_path, remote_ip, status, action_type, username ]`, `[ end_date, true_path, success, status, action_type, username ]`, `[ end_date, remote_ip, success, status, action_type, username ]`, `[ path, true_path, remote_ip, success, status, action_type ]`, `[ path, true_path, remote_ip, success, status, username ]`, `[ path, true_path, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, status, action_type, username ]`, `[ path, true_path, success, status, action_type, username ]`, `[ path, remote_ip, success, status, action_type, username ]`, `[ true_path, remote_ip, success, status, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, status ]`, `[ start_date, end_date, path, true_path, remote_ip, success, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, success, username ]`, `[ start_date, end_date, path, true_path, remote_ip, status, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, status, username ]`, `[ start_date, end_date, path, true_path, remote_ip, action_type, username ]`, `[ start_date, end_date, path, true_path, success, status, action_type ]`, `[ start_date, end_date, path, true_path, success, status, username ]`, `[ start_date, end_date, path, true_path, success, action_type, username ]`, `[ start_date, end_date, path, true_path, status, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, status, action_type ]`, `[ start_date, end_date, path, remote_ip, success, status, username ]`, `[ start_date, end_date, path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, remote_ip, status, action_type, username ]`, `[ start_date, end_date, path, success, status, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, status, action_type ]`, `[ start_date, end_date, true_path, remote_ip, success, status, username ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, status, action_type, username ]`, `[ start_date, end_date, true_path, success, status, action_type, username ]`, `[ start_date, end_date, remote_ip, success, status, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, status, action_type ]`, `[ start_date, path, true_path, remote_ip, success, status, username ]`, `[ start_date, path, true_path, remote_ip, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, status, action_type, username ]`, `[ start_date, path, true_path, success, status, action_type, username ]`, `[ start_date, path, remote_ip, success, status, action_type, username ]`, `[ start_date, true_path, remote_ip, success, status, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success, status, action_type ]`, `[ end_date, path, true_path, remote_ip, success, status, username ]`, `[ end_date, path, true_path, remote_ip, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip, status, action_type, username ]`, `[ end_date, path, true_path, success, status, action_type, username ]`, `[ end_date, path, remote_ip, success, status, action_type, username ]`, `[ end_date, true_path, remote_ip, success, status, action_type, username ]`, `[ path, true_path, remote_ip, success, status, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, status, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, success, status, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, status, action_type, username ]`, `[ start_date, end_date, path, true_path, success, status, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, status, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, status, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, status, action_type, username ]` or `[ end_date, path, true_path, remote_ip, success, status, action_type, username ]`.
|
|
59
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`, `true_path`, `status`, `action_type` or `username`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ true_path ]`, `[ remote_ip ]`, `[ success ]`, `[ status ]`, `[ action_type ]`, `[ username ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, true_path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, status ]`, `[ start_date, action_type ]`, `[ start_date, username ]`, `[ end_date, path ]`, `[ end_date, true_path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, status ]`, `[ end_date, action_type ]`, `[ end_date, username ]`, `[ path, true_path ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, status ]`, `[ path, action_type ]`, `[ path, username ]`, `[ true_path, remote_ip ]`, `[ true_path, success ]`, `[ true_path, status ]`, `[ true_path, action_type ]`, `[ true_path, username ]`, `[ remote_ip, success ]`, `[ remote_ip, status ]`, `[ remote_ip, action_type ]`, `[ remote_ip, username ]`, `[ success, status ]`, `[ success, action_type ]`, `[ success, username ]`, `[ status, action_type ]`, `[ status, username ]`, `[ action_type, username ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, true_path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, action_type ]`, `[ start_date, end_date, username ]`, `[ start_date, path, true_path ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, status ]`, `[ start_date, path, action_type ]`, `[ start_date, path, username ]`, `[ start_date, true_path, remote_ip ]`, `[ start_date, true_path, success ]`, `[ start_date, true_path, status ]`, `[ start_date, true_path, action_type ]`, `[ start_date, true_path, username ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, status ]`, `[ start_date, remote_ip, action_type ]`, `[ start_date, remote_ip, username ]`, `[ start_date, success, status ]`, `[ start_date, success, action_type ]`, `[ start_date, success, username ]`, `[ start_date, status, action_type ]`, `[ start_date, status, username ]`, `[ start_date, action_type, username ]`, `[ end_date, path, true_path ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, status ]`, `[ end_date, path, action_type ]`, `[ end_date, path, username ]`, `[ end_date, true_path, remote_ip ]`, `[ end_date, true_path, success ]`, `[ end_date, true_path, status ]`, `[ end_date, true_path, action_type ]`, `[ end_date, true_path, username ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, status ]`, `[ end_date, remote_ip, action_type ]`, `[ end_date, remote_ip, username ]`, `[ end_date, success, status ]`, `[ end_date, success, action_type ]`, `[ end_date, success, username ]`, `[ end_date, status, action_type ]`, `[ end_date, status, username ]`, `[ end_date, action_type, username ]`, `[ path, true_path, remote_ip ]`, `[ path, true_path, success ]`, `[ path, true_path, status ]`, `[ path, true_path, action_type ]`, `[ path, true_path, username ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, status ]`, `[ path, remote_ip, action_type ]`, `[ path, remote_ip, username ]`, `[ path, success, status ]`, `[ path, success, action_type ]`, `[ path, success, username ]`, `[ path, status, action_type ]`, `[ path, status, username ]`, `[ path, action_type, username ]`, `[ true_path, remote_ip, success ]`, `[ true_path, remote_ip, status ]`, `[ true_path, remote_ip, action_type ]`, `[ true_path, remote_ip, username ]`, `[ true_path, success, status ]`, `[ true_path, success, action_type ]`, `[ true_path, success, username ]`, `[ true_path, status, action_type ]`, `[ true_path, status, username ]`, `[ true_path, action_type, username ]`, `[ remote_ip, success, status ]`, `[ remote_ip, success, action_type ]`, `[ remote_ip, success, username ]`, `[ remote_ip, status, action_type ]`, `[ remote_ip, status, username ]`, `[ remote_ip, action_type, username ]`, `[ success, status, action_type ]`, `[ success, status, username ]`, `[ success, action_type, username ]`, `[ status, action_type, username ]`, `[ start_date, end_date, path, true_path ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, status ]`, `[ start_date, end_date, path, action_type ]`, `[ start_date, end_date, path, username ]`, `[ start_date, end_date, true_path, remote_ip ]`, `[ start_date, end_date, true_path, success ]`, `[ start_date, end_date, true_path, status ]`, `[ start_date, end_date, true_path, action_type ]`, `[ start_date, end_date, true_path, username ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, status ]`, `[ start_date, end_date, remote_ip, action_type ]`, `[ start_date, end_date, remote_ip, username ]`, `[ start_date, end_date, success, status ]`, `[ start_date, end_date, success, action_type ]`, `[ start_date, end_date, success, username ]`, `[ start_date, end_date, status, action_type ]`, `[ start_date, end_date, status, username ]`, `[ start_date, end_date, action_type, username ]`, `[ start_date, path, true_path, remote_ip ]`, `[ start_date, path, true_path, success ]`, `[ start_date, path, true_path, status ]`, `[ start_date, path, true_path, action_type ]`, `[ start_date, path, true_path, username ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, status ]`, `[ start_date, path, remote_ip, action_type ]`, `[ start_date, path, remote_ip, username ]`, `[ start_date, path, success, status ]`, `[ start_date, path, success, action_type ]`, `[ start_date, path, success, username ]`, `[ start_date, path, status, action_type ]`, `[ start_date, path, status, username ]`, `[ start_date, path, action_type, username ]`, `[ start_date, true_path, remote_ip, success ]`, `[ start_date, true_path, remote_ip, status ]`, `[ start_date, true_path, remote_ip, action_type ]`, `[ start_date, true_path, remote_ip, username ]`, `[ start_date, true_path, success, status ]`, `[ start_date, true_path, success, action_type ]`, `[ start_date, true_path, success, username ]`, `[ start_date, true_path, status, action_type ]`, `[ start_date, true_path, status, username ]`, `[ start_date, true_path, action_type, username ]`, `[ start_date, remote_ip, success, status ]`, `[ start_date, remote_ip, success, action_type ]`, `[ start_date, remote_ip, success, username ]`, `[ start_date, remote_ip, status, action_type ]`, `[ start_date, remote_ip, status, username ]`, `[ start_date, remote_ip, action_type, username ]`, `[ start_date, success, status, action_type ]`, `[ start_date, success, status, username ]`, `[ start_date, success, action_type, username ]`, `[ start_date, status, action_type, username ]`, `[ end_date, path, true_path, remote_ip ]`, `[ end_date, path, true_path, success ]`, `[ end_date, path, true_path, status ]`, `[ end_date, path, true_path, action_type ]`, `[ end_date, path, true_path, username ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, status ]`, `[ end_date, path, remote_ip, action_type ]`, `[ end_date, path, remote_ip, username ]`, `[ end_date, path, success, status ]`, `[ end_date, path, success, action_type ]`, `[ end_date, path, success, username ]`, `[ end_date, path, status, action_type ]`, `[ end_date, path, status, username ]`, `[ end_date, path, action_type, username ]`, `[ end_date, true_path, remote_ip, success ]`, `[ end_date, true_path, remote_ip, status ]`, `[ end_date, true_path, remote_ip, action_type ]`, `[ end_date, true_path, remote_ip, username ]`, `[ end_date, true_path, success, status ]`, `[ end_date, true_path, success, action_type ]`, `[ end_date, true_path, success, username ]`, `[ end_date, true_path, status, action_type ]`, `[ end_date, true_path, status, username ]`, `[ end_date, true_path, action_type, username ]`, `[ end_date, remote_ip, success, status ]`, `[ end_date, remote_ip, success, action_type ]`, `[ end_date, remote_ip, success, username ]`, `[ end_date, remote_ip, status, action_type ]`, `[ end_date, remote_ip, status, username ]`, `[ end_date, remote_ip, action_type, username ]`, `[ end_date, success, status, action_type ]`, `[ end_date, success, status, username ]`, `[ end_date, success, action_type, username ]`, `[ end_date, status, action_type, username ]`, `[ path, true_path, remote_ip, success ]`, `[ path, true_path, remote_ip, status ]`, `[ path, true_path, remote_ip, action_type ]`, `[ path, true_path, remote_ip, username ]`, `[ path, true_path, success, status ]`, `[ path, true_path, success, action_type ]`, `[ path, true_path, success, username ]`, `[ path, true_path, status, action_type ]`, `[ path, true_path, status, username ]`, `[ path, true_path, action_type, username ]`, `[ path, remote_ip, success, status ]`, `[ path, remote_ip, success, action_type ]`, `[ path, remote_ip, success, username ]`, `[ path, remote_ip, status, action_type ]`, `[ path, remote_ip, status, username ]`, `[ path, remote_ip, action_type, username ]`, `[ path, success, status, action_type ]`, `[ path, success, status, username ]`, `[ path, success, action_type, username ]`, `[ path, status, action_type, username ]`, `[ true_path, remote_ip, success, status ]`, `[ true_path, remote_ip, success, action_type ]`, `[ true_path, remote_ip, success, username ]`, `[ true_path, remote_ip, status, action_type ]`, `[ true_path, remote_ip, status, username ]`, `[ true_path, remote_ip, action_type, username ]`, `[ true_path, success, status, action_type ]`, `[ true_path, success, status, username ]`, `[ true_path, success, action_type, username ]`, `[ true_path, status, action_type, username ]`, `[ remote_ip, success, status, action_type ]`, `[ remote_ip, success, status, username ]`, `[ remote_ip, success, action_type, username ]`, `[ remote_ip, status, action_type, username ]`, `[ success, status, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip ]`, `[ start_date, end_date, path, true_path, success ]`, `[ start_date, end_date, path, true_path, status ]`, `[ start_date, end_date, path, true_path, action_type ]`, `[ start_date, end_date, path, true_path, username ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, status ]`, `[ start_date, end_date, path, remote_ip, action_type ]`, `[ start_date, end_date, path, remote_ip, username ]`, `[ start_date, end_date, path, success, status ]`, `[ start_date, end_date, path, success, action_type ]`, `[ start_date, end_date, path, success, username ]`, `[ start_date, end_date, path, status, action_type ]`, `[ start_date, end_date, path, status, username ]`, `[ start_date, end_date, path, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success ]`, `[ start_date, end_date, true_path, remote_ip, status ]`, `[ start_date, end_date, true_path, remote_ip, action_type ]`, `[ start_date, end_date, true_path, remote_ip, username ]`, `[ start_date, end_date, true_path, success, status ]`, `[ start_date, end_date, true_path, success, action_type ]`, `[ start_date, end_date, true_path, success, username ]`, `[ start_date, end_date, true_path, status, action_type ]`, `[ start_date, end_date, true_path, status, username ]`, `[ start_date, end_date, true_path, action_type, username ]`, `[ start_date, end_date, remote_ip, success, status ]`, `[ start_date, end_date, remote_ip, success, action_type ]`, `[ start_date, end_date, remote_ip, success, username ]`, `[ start_date, end_date, remote_ip, status, action_type ]`, `[ start_date, end_date, remote_ip, status, username ]`, `[ start_date, end_date, remote_ip, action_type, username ]`, `[ start_date, end_date, success, status, action_type ]`, `[ start_date, end_date, success, status, username ]`, `[ start_date, end_date, success, action_type, username ]`, `[ start_date, end_date, status, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success ]`, `[ start_date, path, true_path, remote_ip, status ]`, `[ start_date, path, true_path, remote_ip, action_type ]`, `[ start_date, path, true_path, remote_ip, username ]`, `[ start_date, path, true_path, success, status ]`, `[ start_date, path, true_path, success, action_type ]`, `[ start_date, path, true_path, success, username ]`, `[ start_date, path, true_path, status, action_type ]`, `[ start_date, path, true_path, status, username ]`, `[ start_date, path, true_path, action_type, username ]`, `[ start_date, path, remote_ip, success, status ]`, `[ start_date, path, remote_ip, success, action_type ]`, `[ start_date, path, remote_ip, success, username ]`, `[ start_date, path, remote_ip, status, action_type ]`, `[ start_date, path, remote_ip, status, username ]`, `[ start_date, path, remote_ip, action_type, username ]`, `[ start_date, path, success, status, action_type ]`, `[ start_date, path, success, status, username ]`, `[ start_date, path, success, action_type, username ]`, `[ start_date, path, status, action_type, username ]`, `[ start_date, true_path, remote_ip, success, status ]`, `[ start_date, true_path, remote_ip, success, action_type ]`, `[ start_date, true_path, remote_ip, success, username ]`, `[ start_date, true_path, remote_ip, status, action_type ]`, `[ start_date, true_path, remote_ip, status, username ]`, `[ start_date, true_path, remote_ip, action_type, username ]`, `[ start_date, true_path, success, status, action_type ]`, `[ start_date, true_path, success, status, username ]`, `[ start_date, true_path, success, action_type, username ]`, `[ start_date, true_path, status, action_type, username ]`, `[ start_date, remote_ip, success, status, action_type ]`, `[ start_date, remote_ip, success, status, username ]`, `[ start_date, remote_ip, success, action_type, username ]`, `[ start_date, remote_ip, status, action_type, username ]`, `[ start_date, success, status, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success ]`, `[ end_date, path, true_path, remote_ip, status ]`, `[ end_date, path, true_path, remote_ip, action_type ]`, `[ end_date, path, true_path, remote_ip, username ]`, `[ end_date, path, true_path, success, status ]`, `[ end_date, path, true_path, success, action_type ]`, `[ end_date, path, true_path, success, username ]`, `[ end_date, path, true_path, status, action_type ]`, `[ end_date, path, true_path, status, username ]`, `[ end_date, path, true_path, action_type, username ]`, `[ end_date, path, remote_ip, success, status ]`, `[ end_date, path, remote_ip, success, action_type ]`, `[ end_date, path, remote_ip, success, username ]`, `[ end_date, path, remote_ip, status, action_type ]`, `[ end_date, path, remote_ip, status, username ]`, `[ end_date, path, remote_ip, action_type, username ]`, `[ end_date, path, success, status, action_type ]`, `[ end_date, path, success, status, username ]`, `[ end_date, path, success, action_type, username ]`, `[ end_date, path, status, action_type, username ]`, `[ end_date, true_path, remote_ip, success, status ]`, `[ end_date, true_path, remote_ip, success, action_type ]`, `[ end_date, true_path, remote_ip, success, username ]`, `[ end_date, true_path, remote_ip, status, action_type ]`, `[ end_date, true_path, remote_ip, status, username ]`, `[ end_date, true_path, remote_ip, action_type, username ]`, `[ end_date, true_path, success, status, action_type ]`, `[ end_date, true_path, success, status, username ]`, `[ end_date, true_path, success, action_type, username ]`, `[ end_date, true_path, status, action_type, username ]`, `[ end_date, remote_ip, success, status, action_type ]`, `[ end_date, remote_ip, success, status, username ]`, `[ end_date, remote_ip, success, action_type, username ]`, `[ end_date, remote_ip, status, action_type, username ]`, `[ end_date, success, status, action_type, username ]`, `[ path, true_path, remote_ip, success, status ]`, `[ path, true_path, remote_ip, success, action_type ]`, `[ path, true_path, remote_ip, success, username ]`, `[ path, true_path, remote_ip, status, action_type ]`, `[ path, true_path, remote_ip, status, username ]`, `[ path, true_path, remote_ip, action_type, username ]`, `[ path, true_path, success, status, action_type ]`, `[ path, true_path, success, status, username ]`, `[ path, true_path, success, action_type, username ]`, `[ path, true_path, status, action_type, username ]`, `[ path, remote_ip, success, status, action_type ]`, `[ path, remote_ip, success, status, username ]`, `[ path, remote_ip, success, action_type, username ]`, `[ path, remote_ip, status, action_type, username ]`, `[ path, success, status, action_type, username ]`, `[ true_path, remote_ip, success, status, action_type ]`, `[ true_path, remote_ip, success, status, username ]`, `[ true_path, remote_ip, success, action_type, username ]`, `[ true_path, remote_ip, status, action_type, username ]`, `[ true_path, success, status, action_type, username ]`, `[ remote_ip, success, status, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success ]`, `[ start_date, end_date, path, true_path, remote_ip, status ]`, `[ start_date, end_date, path, true_path, remote_ip, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, username ]`, `[ start_date, end_date, path, true_path, success, status ]`, `[ start_date, end_date, path, true_path, success, action_type ]`, `[ start_date, end_date, path, true_path, success, username ]`, `[ start_date, end_date, path, true_path, status, action_type ]`, `[ start_date, end_date, path, true_path, status, username ]`, `[ start_date, end_date, path, true_path, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, status ]`, `[ start_date, end_date, path, remote_ip, success, action_type ]`, `[ start_date, end_date, path, remote_ip, success, username ]`, `[ start_date, end_date, path, remote_ip, status, action_type ]`, `[ start_date, end_date, path, remote_ip, status, username ]`, `[ start_date, end_date, path, remote_ip, action_type, username ]`, `[ start_date, end_date, path, success, status, action_type ]`, `[ start_date, end_date, path, success, status, username ]`, `[ start_date, end_date, path, success, action_type, username ]`, `[ start_date, end_date, path, status, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, status ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type ]`, `[ start_date, end_date, true_path, remote_ip, success, username ]`, `[ start_date, end_date, true_path, remote_ip, status, action_type ]`, `[ start_date, end_date, true_path, remote_ip, status, username ]`, `[ start_date, end_date, true_path, remote_ip, action_type, username ]`, `[ start_date, end_date, true_path, success, status, action_type ]`, `[ start_date, end_date, true_path, success, status, username ]`, `[ start_date, end_date, true_path, success, action_type, username ]`, `[ start_date, end_date, true_path, status, action_type, username ]`, `[ start_date, end_date, remote_ip, success, status, action_type ]`, `[ start_date, end_date, remote_ip, success, status, username ]`, `[ start_date, end_date, remote_ip, success, action_type, username ]`, `[ start_date, end_date, remote_ip, status, action_type, username ]`, `[ start_date, end_date, success, status, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, status ]`, `[ start_date, path, true_path, remote_ip, success, action_type ]`, `[ start_date, path, true_path, remote_ip, success, username ]`, `[ start_date, path, true_path, remote_ip, status, action_type ]`, `[ start_date, path, true_path, remote_ip, status, username ]`, `[ start_date, path, true_path, remote_ip, action_type, username ]`, `[ start_date, path, true_path, success, status, action_type ]`, `[ start_date, path, true_path, success, status, username ]`, `[ start_date, path, true_path, success, action_type, username ]`, `[ start_date, path, true_path, status, action_type, username ]`, `[ start_date, path, remote_ip, success, status, action_type ]`, `[ start_date, path, remote_ip, success, status, username ]`, `[ start_date, path, remote_ip, success, action_type, username ]`, `[ start_date, path, remote_ip, status, action_type, username ]`, `[ start_date, path, success, status, action_type, username ]`, `[ start_date, true_path, remote_ip, success, status, action_type ]`, `[ start_date, true_path, remote_ip, success, status, username ]`, `[ start_date, true_path, remote_ip, success, action_type, username ]`, `[ start_date, true_path, remote_ip, status, action_type, username ]`, `[ start_date, true_path, success, status, action_type, username ]`, `[ start_date, remote_ip, success, status, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success, status ]`, `[ end_date, path, true_path, remote_ip, success, action_type ]`, `[ end_date, path, true_path, remote_ip, success, username ]`, `[ end_date, path, true_path, remote_ip, status, action_type ]`, `[ end_date, path, true_path, remote_ip, status, username ]`, `[ end_date, path, true_path, remote_ip, action_type, username ]`, `[ end_date, path, true_path, success, status, action_type ]`, `[ end_date, path, true_path, success, status, username ]`, `[ end_date, path, true_path, success, action_type, username ]`, `[ end_date, path, true_path, status, action_type, username ]`, `[ end_date, path, remote_ip, success, status, action_type ]`, `[ end_date, path, remote_ip, success, status, username ]`, `[ end_date, path, remote_ip, success, action_type, username ]`, `[ end_date, path, remote_ip, status, action_type, username ]`, `[ end_date, path, success, status, action_type, username ]`, `[ end_date, true_path, remote_ip, success, status, action_type ]`, `[ end_date, true_path, remote_ip, success, status, username ]`, `[ end_date, true_path, remote_ip, success, action_type, username ]`, `[ end_date, true_path, remote_ip, status, action_type, username ]`, `[ end_date, true_path, success, status, action_type, username ]`, `[ end_date, remote_ip, success, status, action_type, username ]`, `[ path, true_path, remote_ip, success, status, action_type ]`, `[ path, true_path, remote_ip, success, status, username ]`, `[ path, true_path, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, status, action_type, username ]`, `[ path, true_path, success, status, action_type, username ]`, `[ path, remote_ip, success, status, action_type, username ]`, `[ true_path, remote_ip, success, status, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, status ]`, `[ start_date, end_date, path, true_path, remote_ip, success, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, success, username ]`, `[ start_date, end_date, path, true_path, remote_ip, status, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, status, username ]`, `[ start_date, end_date, path, true_path, remote_ip, action_type, username ]`, `[ start_date, end_date, path, true_path, success, status, action_type ]`, `[ start_date, end_date, path, true_path, success, status, username ]`, `[ start_date, end_date, path, true_path, success, action_type, username ]`, `[ start_date, end_date, path, true_path, status, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, status, action_type ]`, `[ start_date, end_date, path, remote_ip, success, status, username ]`, `[ start_date, end_date, path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, remote_ip, status, action_type, username ]`, `[ start_date, end_date, path, success, status, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, status, action_type ]`, `[ start_date, end_date, true_path, remote_ip, success, status, username ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, status, action_type, username ]`, `[ start_date, end_date, true_path, success, status, action_type, username ]`, `[ start_date, end_date, remote_ip, success, status, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, status, action_type ]`, `[ start_date, path, true_path, remote_ip, success, status, username ]`, `[ start_date, path, true_path, remote_ip, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, status, action_type, username ]`, `[ start_date, path, true_path, success, status, action_type, username ]`, `[ start_date, path, remote_ip, success, status, action_type, username ]`, `[ start_date, true_path, remote_ip, success, status, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success, status, action_type ]`, `[ end_date, path, true_path, remote_ip, success, status, username ]`, `[ end_date, path, true_path, remote_ip, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip, status, action_type, username ]`, `[ end_date, path, true_path, success, status, action_type, username ]`, `[ end_date, path, remote_ip, success, status, action_type, username ]`, `[ end_date, true_path, remote_ip, success, status, action_type, username ]`, `[ path, true_path, remote_ip, success, status, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, status, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, success, status, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, status, action_type, username ]`, `[ start_date, end_date, path, true_path, success, status, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, status, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, status, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, status, action_type, username ]` or `[ end_date, path, true_path, remote_ip, success, status, action_type, username ]`.
|
|
60
|
+
def list(params=None, options=None):
|
|
61
|
+
if not isinstance(params, dict):
|
|
62
|
+
params = {}
|
|
63
|
+
if not isinstance(options, dict):
|
|
64
|
+
options = {}
|
|
65
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
66
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
67
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
68
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
69
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
70
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
71
|
+
if "filter_prefix" in params and not isinstance(
|
|
72
|
+
params["filter_prefix"], dict
|
|
73
|
+
):
|
|
74
|
+
raise InvalidParameterError(
|
|
75
|
+
"Bad parameter: filter_prefix must be an dict"
|
|
76
|
+
)
|
|
77
|
+
return ListObj(
|
|
78
|
+
WebDavActionLog, "GET", "/web_dav_action_logs", params, options
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def all(params=None, options=None):
|
|
83
|
+
list(params, options)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def new(*args, **kwargs):
|
|
87
|
+
return WebDavActionLog(*args, **kwargs)
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import builtins # noqa: F401
|
|
2
|
+
from files_sdk.api import Api # noqa: F401
|
|
3
|
+
from files_sdk.error import ( # noqa: F401
|
|
4
|
+
InvalidParameterError,
|
|
5
|
+
MissingParameterError,
|
|
6
|
+
NotImplementedError,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class WebhookTest:
|
|
11
|
+
default_attributes = {
|
|
12
|
+
"code": None, # int64 - Status HTTP code
|
|
13
|
+
"message": None, # string - Error message
|
|
14
|
+
"status": None, # string - Status message
|
|
15
|
+
"data": None, # Auto - Additional data
|
|
16
|
+
"success": None, # boolean - The success status of the webhook test
|
|
17
|
+
"url": None, # string - URL for testing the webhook.
|
|
18
|
+
"method": None, # string - HTTP method(GET or POST).
|
|
19
|
+
"encoding": None, # string - HTTP encoding method. Can be JSON, XML, or RAW (form data).
|
|
20
|
+
"headers": None, # object - Additional request headers.
|
|
21
|
+
"body": None, # object - Additional body parameters.
|
|
22
|
+
"raw_body": None, # string - raw body text
|
|
23
|
+
"file_as_body": None, # boolean - Send the file data as the request body?
|
|
24
|
+
"file_form_field": None, # string - Send the file data as a named parameter in the request POST body
|
|
25
|
+
"action": None, # string - action for test body
|
|
26
|
+
"use_dedicated_ips": None, # boolean - Use dedicated IPs for sending the webhook?
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, attributes=None, options=None):
|
|
30
|
+
if not isinstance(attributes, dict):
|
|
31
|
+
attributes = {}
|
|
32
|
+
if not isinstance(options, dict):
|
|
33
|
+
options = {}
|
|
34
|
+
self.set_attributes(attributes)
|
|
35
|
+
self.options = options
|
|
36
|
+
|
|
37
|
+
def set_attributes(self, attributes):
|
|
38
|
+
for attribute, default_value in WebhookTest.default_attributes.items():
|
|
39
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
40
|
+
|
|
41
|
+
def get_attributes(self):
|
|
42
|
+
return {
|
|
43
|
+
k: getattr(self, k, None)
|
|
44
|
+
for k in WebhookTest.default_attributes
|
|
45
|
+
if getattr(self, k, None) is not None
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
def save(self):
|
|
49
|
+
if hasattr(self, "id") and self.id:
|
|
50
|
+
raise NotImplementedError(
|
|
51
|
+
"The WebhookTest object doesn't support updates."
|
|
52
|
+
)
|
|
53
|
+
else:
|
|
54
|
+
new_obj = create(self.get_attributes(), self.options)
|
|
55
|
+
self.set_attributes(new_obj.get_attributes())
|
|
56
|
+
return True
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
# Parameters:
|
|
60
|
+
# url (required) - string - URL for testing the webhook.
|
|
61
|
+
# method - string - HTTP method(GET or POST).
|
|
62
|
+
# encoding - string - HTTP encoding method. Can be JSON, XML, or RAW (form data).
|
|
63
|
+
# headers - object - Additional request headers.
|
|
64
|
+
# body - object - Additional body parameters.
|
|
65
|
+
# raw_body - string - raw body text
|
|
66
|
+
# file_as_body - boolean - Send the file data as the request body?
|
|
67
|
+
# file_form_field - string - Send the file data as a named parameter in the request POST body
|
|
68
|
+
# action - string - action for test body
|
|
69
|
+
# use_dedicated_ips - boolean - Use dedicated IPs for sending the webhook?
|
|
70
|
+
def create(params=None, options=None):
|
|
71
|
+
if not isinstance(params, dict):
|
|
72
|
+
params = {}
|
|
73
|
+
if not isinstance(options, dict):
|
|
74
|
+
options = {}
|
|
75
|
+
if "url" in params and not isinstance(params["url"], str):
|
|
76
|
+
raise InvalidParameterError("Bad parameter: url must be an str")
|
|
77
|
+
if "method" in params and not isinstance(params["method"], str):
|
|
78
|
+
raise InvalidParameterError("Bad parameter: method must be an str")
|
|
79
|
+
if "encoding" in params and not isinstance(params["encoding"], str):
|
|
80
|
+
raise InvalidParameterError("Bad parameter: encoding must be an str")
|
|
81
|
+
if "headers" in params and not isinstance(params["headers"], dict):
|
|
82
|
+
raise InvalidParameterError("Bad parameter: headers must be an dict")
|
|
83
|
+
if "body" in params and not isinstance(params["body"], dict):
|
|
84
|
+
raise InvalidParameterError("Bad parameter: body must be an dict")
|
|
85
|
+
if "raw_body" in params and not isinstance(params["raw_body"], str):
|
|
86
|
+
raise InvalidParameterError("Bad parameter: raw_body must be an str")
|
|
87
|
+
if "file_form_field" in params and not isinstance(
|
|
88
|
+
params["file_form_field"], str
|
|
89
|
+
):
|
|
90
|
+
raise InvalidParameterError(
|
|
91
|
+
"Bad parameter: file_form_field must be an str"
|
|
92
|
+
)
|
|
93
|
+
if "action" in params and not isinstance(params["action"], str):
|
|
94
|
+
raise InvalidParameterError("Bad parameter: action must be an str")
|
|
95
|
+
if "url" not in params:
|
|
96
|
+
raise MissingParameterError("Parameter missing: url")
|
|
97
|
+
response, options = Api.send_request(
|
|
98
|
+
"POST", "/webhook_tests", params, options
|
|
99
|
+
)
|
|
100
|
+
return WebhookTest(response.data, options)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def new(*args, **kwargs):
|
|
104
|
+
return WebhookTest(*args, **kwargs)
|
files_sdk/path_util.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import unicodedata
|
|
2
|
+
|
|
3
|
+
TRANSLIT_MAP = {
|
|
4
|
+
entry[0]: entry[1:]
|
|
5
|
+
for entry in "ÀA,ÁA,ÂA,ÃA,ÄA,ÅA,ÆAE,ÇC,ÈE,ÉE,ÊE,ËE,ÌI,ÍI,ÎI,ÏI,ÐD,ÑN,ÒO,ÓO,ÔO,ÕO,ÖO,ØO,ÙU,ÚU,ÛU,ÜU,ÝY,ßss,àa,áa,âa,ãa,äa,åa,æae,çc,èe,ée,êe,ëe,ìi,íi,îi,ïi,ðd,ñn,òo,óo,ôo,õo,öo,øo,ùu,úu,ûu,üu,ýy,ÿy,ĀA,āa,ĂA,ăa,ĄA,ąa,ĆC,ćc,ĈC,ĉc,ĊC,ċc,ČC,čc,ĎD,ďd,ĐD,đd,ĒE,ēe,ĔE,ĕe,ĖE,ėe,ĘE,ęe,ĚE,ěe,ĜG,ĝg,ĞG,ğg,ĠG,ġg,ĢG,ģg,ĤH,ĥh,ĦH,ħh,ĨI,ĩi,ĪI,īi,ĬI,ĭi,ĮI,įi,İI,IJIJ,ijij,ĴJ,ĵj,ĶK,ķk,ĹL,ĺl,ĻL,ļl,ĽL,ľl,ŁL,łl,ŃN,ńn,ŅN,ņn,ŇN,ňn,ʼn'n,ŌO,ōo,ŎO,ŏo,ŐO,őo,ŒOE,œoe,ŔR,ŕr,ŖR,ŗr,ŘR,řr,ŚS,śs,ŜS,ŝs,ŞS,şs,ŠS,šs,ŢT,ţt,ŤT,ťt,ŨU,ũu,ŪU,ūu,ŬU,ŭu,ŮU,ůu,ŰU,űu,ŲU,ųu,ŴW,ŵw,ŶY,ŷy,ŸY,ŹZ,źz,ŻZ,żz,ŽZ,žz".split(
|
|
6
|
+
","
|
|
7
|
+
)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _cleanpath(path_element: str) -> bool:
|
|
12
|
+
return path_element not in ["", ".", ".."]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def is_same(a: str, b: str) -> bool:
|
|
16
|
+
return normalize_for_comparison(a) == normalize_for_comparison(b)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def normalize_for_comparison(path_str: str) -> str:
|
|
20
|
+
return (
|
|
21
|
+
unicode_normalize_and_transliterate(normalize(path_str))
|
|
22
|
+
.lower()
|
|
23
|
+
.rstrip()
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def normalize(path_str: str) -> str:
|
|
28
|
+
return "/".join(
|
|
29
|
+
filter(
|
|
30
|
+
_cleanpath,
|
|
31
|
+
path_str.replace("\x00", "").replace("\\", "/").split("/"),
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def unicode_normalize_and_transliterate(path_str: str) -> str:
|
|
37
|
+
# convert multi-code-point characters into single-code-point characters
|
|
38
|
+
normalized_string = unicodedata.normalize("NFKC", path_str)
|
|
39
|
+
|
|
40
|
+
return "".join(
|
|
41
|
+
[TRANSLIT_MAP.get(char, char) for char in normalized_string]
|
|
42
|
+
)
|