Files.com 1.4.93__tar.gz → 1.4.95__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.93 → Files.com-1.4.95}/Files.com.egg-info/PKG-INFO +1 -1
- {Files.com-1.4.93 → Files.com-1.4.95}/Files.com.egg-info/SOURCES.txt +2 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/PKG-INFO +1 -1
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/__init__.py +5 -1
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/__init__.py +2 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/behavior.py +0 -14
- Files.com-1.4.95/files_sdk/models/public_hosting_request_log.py +82 -0
- Files.com-1.4.95/files_sdk/models/web_dav_action_log.py +86 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/Files.com.egg-info/dependency_links.txt +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/Files.com.egg-info/requires.txt +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/Files.com.egg-info/top_level.txt +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/README.md +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/api.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/api_client.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/error.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/list_obj.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/account_line_item.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/action.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/action_notification_export.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/action_notification_export_result.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/action_webhook_failure.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/api_key.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/api_request_log.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/app.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/as2_incoming_message.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/as2_outgoing_message.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/as2_partner.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/as2_station.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/auto.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/automation.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/automation_log.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/automation_run.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/bundle.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/bundle_action.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/bundle_download.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/bundle_notification.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/bundle_path.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/bundle_recipient.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/bundle_registration.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/clickwrap.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/dns_record.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/email_incoming_message.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/email_log.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/errors.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/exavault_api_request_log.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/external_event.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/file.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/file_action.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/file_comment.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/file_comment_reaction.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/file_migration.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/file_migration_log.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/file_upload_part.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/folder.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/form_field.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/form_field_set.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/ftp_action_log.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/gpg_key.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/group.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/group_user.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/history.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/history_export.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/history_export_result.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/image.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/inbox_recipient.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/inbox_registration.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/inbox_upload.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/invoice.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/invoice_line_item.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/ip_address.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/lock.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/message.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/message_comment.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/message_comment_reaction.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/message_reaction.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/notification.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/payment.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/payment_line_item.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/permission.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/preview.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/priority.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/project.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/public_ip_address.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/public_key.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/remote_server.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/request.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/session.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/settings_change.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/sftp_action_log.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/sftp_host_key.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/share_group.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/share_group_member.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/site.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/snapshot.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/sso_strategy.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/status.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/style.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/sync_log.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/usage_snapshot.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/user.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/user_cipher_use.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/user_request.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/models/webhook_test.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/path_util.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/files_sdk/util.py +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/pyproject.toml +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/setup.cfg +0 -0
- {Files.com-1.4.93 → Files.com-1.4.95}/setup.py +0 -0
|
@@ -82,6 +82,7 @@ files_sdk/models/permission.py
|
|
|
82
82
|
files_sdk/models/preview.py
|
|
83
83
|
files_sdk/models/priority.py
|
|
84
84
|
files_sdk/models/project.py
|
|
85
|
+
files_sdk/models/public_hosting_request_log.py
|
|
85
86
|
files_sdk/models/public_ip_address.py
|
|
86
87
|
files_sdk/models/public_key.py
|
|
87
88
|
files_sdk/models/remote_bandwidth_snapshot.py
|
|
@@ -105,4 +106,5 @@ files_sdk/models/usage_snapshot.py
|
|
|
105
106
|
files_sdk/models/user.py
|
|
106
107
|
files_sdk/models/user_cipher_use.py
|
|
107
108
|
files_sdk/models/user_request.py
|
|
109
|
+
files_sdk/models/web_dav_action_log.py
|
|
108
110
|
files_sdk/models/webhook_test.py
|
|
@@ -67,6 +67,7 @@ import files_sdk.models.permission as permission
|
|
|
67
67
|
import files_sdk.models.preview as preview
|
|
68
68
|
import files_sdk.models.priority as priority
|
|
69
69
|
import files_sdk.models.project as project
|
|
70
|
+
import files_sdk.models.public_hosting_request_log as public_hosting_request_log
|
|
70
71
|
import files_sdk.models.public_ip_address as public_ip_address
|
|
71
72
|
import files_sdk.models.public_key as public_key
|
|
72
73
|
import files_sdk.models.remote_bandwidth_snapshot as remote_bandwidth_snapshot
|
|
@@ -90,6 +91,7 @@ import files_sdk.models.usage_snapshot as usage_snapshot
|
|
|
90
91
|
import files_sdk.models.user as user
|
|
91
92
|
import files_sdk.models.user_cipher_use as user_cipher_use
|
|
92
93
|
import files_sdk.models.user_request as user_request
|
|
94
|
+
import files_sdk.models.web_dav_action_log as web_dav_action_log
|
|
93
95
|
import files_sdk.models.webhook_test as webhook_test
|
|
94
96
|
|
|
95
97
|
from files_sdk.models.account_line_item import AccountLineItem
|
|
@@ -164,6 +166,7 @@ from files_sdk.models.permission import Permission
|
|
|
164
166
|
from files_sdk.models.preview import Preview
|
|
165
167
|
from files_sdk.models.priority import Priority
|
|
166
168
|
from files_sdk.models.project import Project
|
|
169
|
+
from files_sdk.models.public_hosting_request_log import PublicHostingRequestLog
|
|
167
170
|
from files_sdk.models.public_ip_address import PublicIpAddress
|
|
168
171
|
from files_sdk.models.public_key import PublicKey
|
|
169
172
|
from files_sdk.models.remote_bandwidth_snapshot import RemoteBandwidthSnapshot
|
|
@@ -189,6 +192,7 @@ from files_sdk.models.usage_snapshot import UsageSnapshot
|
|
|
189
192
|
from files_sdk.models.user import User
|
|
190
193
|
from files_sdk.models.user_cipher_use import UserCipherUse
|
|
191
194
|
from files_sdk.models.user_request import UserRequest
|
|
195
|
+
from files_sdk.models.web_dav_action_log import WebDavActionLog
|
|
192
196
|
from files_sdk.models.webhook_test import WebhookTest
|
|
193
197
|
|
|
194
198
|
import files_sdk.path_util
|
|
@@ -200,7 +204,7 @@ session_id = None
|
|
|
200
204
|
source_ip = None
|
|
201
205
|
base_url = "https://app.files.com"
|
|
202
206
|
base_path = "api/rest/v1"
|
|
203
|
-
version = "1.4.
|
|
207
|
+
version = "1.4.95"
|
|
204
208
|
|
|
205
209
|
__version__ = version
|
|
206
210
|
|
|
@@ -70,6 +70,7 @@ from files_sdk.models.permission import Permission
|
|
|
70
70
|
from files_sdk.models.preview import Preview
|
|
71
71
|
from files_sdk.models.priority import Priority
|
|
72
72
|
from files_sdk.models.project import Project
|
|
73
|
+
from files_sdk.models.public_hosting_request_log import PublicHostingRequestLog
|
|
73
74
|
from files_sdk.models.public_ip_address import PublicIpAddress
|
|
74
75
|
from files_sdk.models.public_key import PublicKey
|
|
75
76
|
from files_sdk.models.remote_bandwidth_snapshot import RemoteBandwidthSnapshot
|
|
@@ -95,4 +96,5 @@ from files_sdk.models.usage_snapshot import UsageSnapshot
|
|
|
95
96
|
from files_sdk.models.user import User
|
|
96
97
|
from files_sdk.models.user_cipher_use import UserCipherUse
|
|
97
98
|
from files_sdk.models.user_request import UserRequest
|
|
99
|
+
from files_sdk.models.web_dav_action_log import WebDavActionLog
|
|
98
100
|
from files_sdk.models.webhook_test import WebhookTest
|
|
@@ -49,8 +49,6 @@ class Behavior:
|
|
|
49
49
|
# recursive - boolean - Is behavior recursive?
|
|
50
50
|
# name - string - Name for this behavior.
|
|
51
51
|
# description - string - Description for this behavior.
|
|
52
|
-
# behavior - string - Behavior type.
|
|
53
|
-
# path - string - Folder behaviors path.
|
|
54
52
|
# attachment_delete - boolean - If true, will delete the file stored in attachment
|
|
55
53
|
def update(self, params=None):
|
|
56
54
|
if not isinstance(params, dict):
|
|
@@ -74,12 +72,6 @@ class Behavior:
|
|
|
74
72
|
raise InvalidParameterError(
|
|
75
73
|
"Bad parameter: description must be an str"
|
|
76
74
|
)
|
|
77
|
-
if "behavior" in params and not isinstance(params["behavior"], str):
|
|
78
|
-
raise InvalidParameterError(
|
|
79
|
-
"Bad parameter: behavior must be an str"
|
|
80
|
-
)
|
|
81
|
-
if "path" in params and not isinstance(params["path"], str):
|
|
82
|
-
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
83
75
|
response, _options = Api.send_request(
|
|
84
76
|
"PATCH",
|
|
85
77
|
"/behaviors/{id}".format(id=params["id"]),
|
|
@@ -295,8 +287,6 @@ def webhook_test(params=None, options=None):
|
|
|
295
287
|
# recursive - boolean - Is behavior recursive?
|
|
296
288
|
# name - string - Name for this behavior.
|
|
297
289
|
# description - string - Description for this behavior.
|
|
298
|
-
# behavior - string - Behavior type.
|
|
299
|
-
# path - string - Folder behaviors path.
|
|
300
290
|
# attachment_delete - boolean - If true, will delete the file stored in attachment
|
|
301
291
|
def update(id, params=None, options=None):
|
|
302
292
|
if not isinstance(params, dict):
|
|
@@ -316,10 +306,6 @@ def update(id, params=None, options=None):
|
|
|
316
306
|
raise InvalidParameterError(
|
|
317
307
|
"Bad parameter: description must be an str"
|
|
318
308
|
)
|
|
319
|
-
if "behavior" in params and not isinstance(params["behavior"], str):
|
|
320
|
-
raise InvalidParameterError("Bad parameter: behavior must be an str")
|
|
321
|
-
if "path" in params and not isinstance(params["path"], str):
|
|
322
|
-
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
323
309
|
if "attachment_delete" in params and not isinstance(
|
|
324
310
|
params["attachment_delete"], (str, int, dict)
|
|
325
311
|
):
|
|
@@ -0,0 +1,82 @@
|
|
|
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 PublicHostingRequestLog:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"timestamp": None, # date-time - Start Time of Action
|
|
14
|
+
"remote_ip": None, # string - IP Address of Public Hosting Client
|
|
15
|
+
"server_ip": None, # string - IP Address of Public Hosting Server
|
|
16
|
+
"hostname": None, # string - HTTP Request Hostname
|
|
17
|
+
"path": None, # string - HTTP Request Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
18
|
+
"responseCode": None, # int64 - HTTP Response Code
|
|
19
|
+
"success": None, # boolean - Whether SFTP Action was successful.
|
|
20
|
+
"duration_ms": None, # int64 - Duration (in milliseconds)
|
|
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 (
|
|
33
|
+
attribute,
|
|
34
|
+
default_value,
|
|
35
|
+
) in PublicHostingRequestLog.default_attributes.items():
|
|
36
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
37
|
+
|
|
38
|
+
def get_attributes(self):
|
|
39
|
+
return {
|
|
40
|
+
k: getattr(self, k, None)
|
|
41
|
+
for k in PublicHostingRequestLog.default_attributes
|
|
42
|
+
if getattr(self, k, None) is not None
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# Parameters:
|
|
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
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `path`, `remote_ip` or `success`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ remote_ip, success ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, remote_ip, success ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, remote_ip, success ]`, `[ path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, path, remote_ip, success ]` or `[ end_date, path, remote_ip, success ]`.
|
|
50
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ remote_ip, success ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, remote_ip, success ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, remote_ip, success ]`, `[ path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, path, remote_ip, success ]` or `[ end_date, path, remote_ip, success ]`.
|
|
51
|
+
def list(params=None, options=None):
|
|
52
|
+
if not isinstance(params, dict):
|
|
53
|
+
params = {}
|
|
54
|
+
if not isinstance(options, dict):
|
|
55
|
+
options = {}
|
|
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
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
61
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
62
|
+
if "filter_prefix" in params and not isinstance(
|
|
63
|
+
params["filter_prefix"], dict
|
|
64
|
+
):
|
|
65
|
+
raise InvalidParameterError(
|
|
66
|
+
"Bad parameter: filter_prefix must be an dict"
|
|
67
|
+
)
|
|
68
|
+
return ListObj(
|
|
69
|
+
PublicHostingRequestLog,
|
|
70
|
+
"GET",
|
|
71
|
+
"/public_hosting_request_logs",
|
|
72
|
+
params,
|
|
73
|
+
options,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def all(params=None, options=None):
|
|
78
|
+
list(params, options)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def new(*args, **kwargs):
|
|
82
|
+
return PublicHostingRequestLog(*args, **kwargs)
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
"duration_ms": None, # int64 - Duration (in milliseconds)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, attributes=None, options=None):
|
|
32
|
+
if not isinstance(attributes, dict):
|
|
33
|
+
attributes = {}
|
|
34
|
+
if not isinstance(options, dict):
|
|
35
|
+
options = {}
|
|
36
|
+
self.set_attributes(attributes)
|
|
37
|
+
self.options = options
|
|
38
|
+
|
|
39
|
+
def set_attributes(self, attributes):
|
|
40
|
+
for (
|
|
41
|
+
attribute,
|
|
42
|
+
default_value,
|
|
43
|
+
) in WebDavActionLog.default_attributes.items():
|
|
44
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
45
|
+
|
|
46
|
+
def get_attributes(self):
|
|
47
|
+
return {
|
|
48
|
+
k: getattr(self, k, None)
|
|
49
|
+
for k in WebDavActionLog.default_attributes
|
|
50
|
+
if getattr(self, k, None) is not None
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# Parameters:
|
|
55
|
+
# 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.
|
|
56
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
57
|
+
# 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`, `action_type` or `username`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ true_path ]`, `[ remote_ip ]`, `[ success ]`, `[ action_type ]`, `[ username ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, true_path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, action_type ]`, `[ start_date, username ]`, `[ end_date, path ]`, `[ end_date, true_path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, action_type ]`, `[ end_date, username ]`, `[ path, true_path ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, action_type ]`, `[ path, username ]`, `[ true_path, remote_ip ]`, `[ true_path, success ]`, `[ true_path, action_type ]`, `[ true_path, username ]`, `[ remote_ip, success ]`, `[ remote_ip, action_type ]`, `[ remote_ip, username ]`, `[ success, action_type ]`, `[ success, 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, action_type ]`, `[ start_date, end_date, username ]`, `[ start_date, path, true_path ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, action_type ]`, `[ start_date, path, username ]`, `[ start_date, true_path, remote_ip ]`, `[ start_date, true_path, success ]`, `[ start_date, true_path, action_type ]`, `[ start_date, true_path, username ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, action_type ]`, `[ start_date, remote_ip, username ]`, `[ start_date, success, action_type ]`, `[ start_date, success, username ]`, `[ start_date, action_type, username ]`, `[ end_date, path, true_path ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, action_type ]`, `[ end_date, path, username ]`, `[ end_date, true_path, remote_ip ]`, `[ end_date, true_path, success ]`, `[ end_date, true_path, action_type ]`, `[ end_date, true_path, username ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, action_type ]`, `[ end_date, remote_ip, username ]`, `[ end_date, success, action_type ]`, `[ end_date, success, username ]`, `[ end_date, action_type, username ]`, `[ path, true_path, remote_ip ]`, `[ path, true_path, success ]`, `[ path, true_path, action_type ]`, `[ path, true_path, username ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, action_type ]`, `[ path, remote_ip, username ]`, `[ path, success, action_type ]`, `[ path, success, username ]`, `[ path, action_type, username ]`, `[ true_path, remote_ip, success ]`, `[ true_path, remote_ip, action_type ]`, `[ true_path, remote_ip, username ]`, `[ true_path, success, action_type ]`, `[ true_path, success, username ]`, `[ true_path, action_type, username ]`, `[ remote_ip, success, action_type ]`, `[ remote_ip, success, username ]`, `[ remote_ip, action_type, username ]`, `[ success, 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, 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, action_type ]`, `[ start_date, end_date, true_path, username ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, action_type ]`, `[ start_date, end_date, remote_ip, username ]`, `[ start_date, end_date, success, action_type ]`, `[ start_date, end_date, success, 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, action_type ]`, `[ start_date, path, true_path, username ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, action_type ]`, `[ start_date, path, remote_ip, username ]`, `[ start_date, path, success, action_type ]`, `[ start_date, path, success, username ]`, `[ start_date, path, action_type, username ]`, `[ start_date, true_path, remote_ip, success ]`, `[ start_date, true_path, remote_ip, action_type ]`, `[ start_date, true_path, remote_ip, username ]`, `[ start_date, true_path, success, action_type ]`, `[ start_date, true_path, success, username ]`, `[ start_date, true_path, action_type, username ]`, `[ start_date, remote_ip, success, action_type ]`, `[ start_date, remote_ip, success, username ]`, `[ start_date, remote_ip, action_type, username ]`, `[ start_date, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip ]`, `[ end_date, path, true_path, success ]`, `[ end_date, path, true_path, action_type ]`, `[ end_date, path, true_path, username ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, action_type ]`, `[ end_date, path, remote_ip, username ]`, `[ end_date, path, success, action_type ]`, `[ end_date, path, success, username ]`, `[ end_date, path, action_type, username ]`, `[ end_date, true_path, remote_ip, success ]`, `[ end_date, true_path, remote_ip, action_type ]`, `[ end_date, true_path, remote_ip, username ]`, `[ end_date, true_path, success, action_type ]`, `[ end_date, true_path, success, username ]`, `[ end_date, true_path, action_type, username ]`, `[ end_date, remote_ip, success, action_type ]`, `[ end_date, remote_ip, success, username ]`, `[ end_date, remote_ip, action_type, username ]`, `[ end_date, success, action_type, username ]`, `[ path, true_path, remote_ip, success ]`, `[ path, true_path, remote_ip, action_type ]`, `[ path, true_path, remote_ip, username ]`, `[ path, true_path, success, action_type ]`, `[ path, true_path, success, username ]`, `[ path, true_path, action_type, username ]`, `[ path, remote_ip, success, action_type ]`, `[ path, remote_ip, success, username ]`, `[ path, remote_ip, action_type, username ]`, `[ path, success, action_type, username ]`, `[ true_path, remote_ip, success, action_type ]`, `[ true_path, remote_ip, success, username ]`, `[ true_path, remote_ip, action_type, username ]`, `[ true_path, success, action_type, username ]`, `[ remote_ip, success, 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, 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, action_type ]`, `[ start_date, end_date, path, remote_ip, username ]`, `[ start_date, end_date, path, success, action_type ]`, `[ start_date, end_date, path, success, 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, action_type ]`, `[ start_date, end_date, true_path, remote_ip, username ]`, `[ start_date, end_date, true_path, success, action_type ]`, `[ start_date, end_date, true_path, success, username ]`, `[ start_date, end_date, true_path, action_type, username ]`, `[ start_date, end_date, remote_ip, success, action_type ]`, `[ start_date, end_date, remote_ip, success, username ]`, `[ start_date, end_date, remote_ip, action_type, username ]`, `[ start_date, end_date, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success ]`, `[ start_date, path, true_path, remote_ip, action_type ]`, `[ start_date, path, true_path, remote_ip, username ]`, `[ start_date, path, true_path, success, action_type ]`, `[ start_date, path, true_path, success, username ]`, `[ start_date, path, true_path, action_type, username ]`, `[ start_date, path, remote_ip, success, action_type ]`, `[ start_date, path, remote_ip, success, username ]`, `[ start_date, path, remote_ip, action_type, username ]`, `[ start_date, path, success, action_type, username ]`, `[ start_date, true_path, remote_ip, success, action_type ]`, `[ start_date, true_path, remote_ip, success, username ]`, `[ start_date, true_path, remote_ip, action_type, username ]`, `[ start_date, true_path, success, action_type, username ]`, `[ start_date, remote_ip, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success ]`, `[ end_date, path, true_path, remote_ip, action_type ]`, `[ end_date, path, true_path, remote_ip, username ]`, `[ end_date, path, true_path, success, action_type ]`, `[ end_date, path, true_path, success, username ]`, `[ end_date, path, true_path, action_type, username ]`, `[ end_date, path, remote_ip, success, action_type ]`, `[ end_date, path, remote_ip, success, username ]`, `[ end_date, path, remote_ip, action_type, username ]`, `[ end_date, path, success, action_type, username ]`, `[ end_date, true_path, remote_ip, success, action_type ]`, `[ end_date, true_path, remote_ip, success, username ]`, `[ end_date, true_path, remote_ip, action_type, username ]`, `[ end_date, true_path, success, action_type, username ]`, `[ end_date, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, success, action_type ]`, `[ path, true_path, remote_ip, success, username ]`, `[ path, true_path, remote_ip, action_type, username ]`, `[ path, true_path, success, action_type, username ]`, `[ path, remote_ip, success, action_type, username ]`, `[ true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success ]`, `[ 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, action_type ]`, `[ start_date, end_date, path, true_path, success, username ]`, `[ start_date, end_date, path, true_path, action_type, username ]`, `[ 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, action_type, username ]`, `[ start_date, end_date, path, success, action_type, username ]`, `[ 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, action_type, username ]`, `[ start_date, end_date, true_path, success, action_type, username ]`, `[ start_date, end_date, remote_ip, success, action_type, username ]`, `[ 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, action_type, username ]`, `[ start_date, path, true_path, success, action_type, username ]`, `[ start_date, path, remote_ip, success, action_type, username ]`, `[ start_date, true_path, remote_ip, success, action_type, username ]`, `[ 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, action_type, username ]`, `[ end_date, path, true_path, success, action_type, username ]`, `[ end_date, path, remote_ip, success, action_type, username ]`, `[ end_date, true_path, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, success, action_type, username ]`, `[ 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, action_type, username ]`, `[ start_date, end_date, path, true_path, success, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, action_type, username ]` or `[ end_date, path, true_path, remote_ip, success, action_type, username ]`.
|
|
58
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`, `true_path`, `action_type` or `username`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ true_path ]`, `[ remote_ip ]`, `[ success ]`, `[ action_type ]`, `[ username ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, true_path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, action_type ]`, `[ start_date, username ]`, `[ end_date, path ]`, `[ end_date, true_path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, action_type ]`, `[ end_date, username ]`, `[ path, true_path ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, action_type ]`, `[ path, username ]`, `[ true_path, remote_ip ]`, `[ true_path, success ]`, `[ true_path, action_type ]`, `[ true_path, username ]`, `[ remote_ip, success ]`, `[ remote_ip, action_type ]`, `[ remote_ip, username ]`, `[ success, action_type ]`, `[ success, 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, action_type ]`, `[ start_date, end_date, username ]`, `[ start_date, path, true_path ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, action_type ]`, `[ start_date, path, username ]`, `[ start_date, true_path, remote_ip ]`, `[ start_date, true_path, success ]`, `[ start_date, true_path, action_type ]`, `[ start_date, true_path, username ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, action_type ]`, `[ start_date, remote_ip, username ]`, `[ start_date, success, action_type ]`, `[ start_date, success, username ]`, `[ start_date, action_type, username ]`, `[ end_date, path, true_path ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, action_type ]`, `[ end_date, path, username ]`, `[ end_date, true_path, remote_ip ]`, `[ end_date, true_path, success ]`, `[ end_date, true_path, action_type ]`, `[ end_date, true_path, username ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, action_type ]`, `[ end_date, remote_ip, username ]`, `[ end_date, success, action_type ]`, `[ end_date, success, username ]`, `[ end_date, action_type, username ]`, `[ path, true_path, remote_ip ]`, `[ path, true_path, success ]`, `[ path, true_path, action_type ]`, `[ path, true_path, username ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, action_type ]`, `[ path, remote_ip, username ]`, `[ path, success, action_type ]`, `[ path, success, username ]`, `[ path, action_type, username ]`, `[ true_path, remote_ip, success ]`, `[ true_path, remote_ip, action_type ]`, `[ true_path, remote_ip, username ]`, `[ true_path, success, action_type ]`, `[ true_path, success, username ]`, `[ true_path, action_type, username ]`, `[ remote_ip, success, action_type ]`, `[ remote_ip, success, username ]`, `[ remote_ip, action_type, username ]`, `[ success, 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, 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, action_type ]`, `[ start_date, end_date, true_path, username ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, action_type ]`, `[ start_date, end_date, remote_ip, username ]`, `[ start_date, end_date, success, action_type ]`, `[ start_date, end_date, success, 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, action_type ]`, `[ start_date, path, true_path, username ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, action_type ]`, `[ start_date, path, remote_ip, username ]`, `[ start_date, path, success, action_type ]`, `[ start_date, path, success, username ]`, `[ start_date, path, action_type, username ]`, `[ start_date, true_path, remote_ip, success ]`, `[ start_date, true_path, remote_ip, action_type ]`, `[ start_date, true_path, remote_ip, username ]`, `[ start_date, true_path, success, action_type ]`, `[ start_date, true_path, success, username ]`, `[ start_date, true_path, action_type, username ]`, `[ start_date, remote_ip, success, action_type ]`, `[ start_date, remote_ip, success, username ]`, `[ start_date, remote_ip, action_type, username ]`, `[ start_date, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip ]`, `[ end_date, path, true_path, success ]`, `[ end_date, path, true_path, action_type ]`, `[ end_date, path, true_path, username ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, action_type ]`, `[ end_date, path, remote_ip, username ]`, `[ end_date, path, success, action_type ]`, `[ end_date, path, success, username ]`, `[ end_date, path, action_type, username ]`, `[ end_date, true_path, remote_ip, success ]`, `[ end_date, true_path, remote_ip, action_type ]`, `[ end_date, true_path, remote_ip, username ]`, `[ end_date, true_path, success, action_type ]`, `[ end_date, true_path, success, username ]`, `[ end_date, true_path, action_type, username ]`, `[ end_date, remote_ip, success, action_type ]`, `[ end_date, remote_ip, success, username ]`, `[ end_date, remote_ip, action_type, username ]`, `[ end_date, success, action_type, username ]`, `[ path, true_path, remote_ip, success ]`, `[ path, true_path, remote_ip, action_type ]`, `[ path, true_path, remote_ip, username ]`, `[ path, true_path, success, action_type ]`, `[ path, true_path, success, username ]`, `[ path, true_path, action_type, username ]`, `[ path, remote_ip, success, action_type ]`, `[ path, remote_ip, success, username ]`, `[ path, remote_ip, action_type, username ]`, `[ path, success, action_type, username ]`, `[ true_path, remote_ip, success, action_type ]`, `[ true_path, remote_ip, success, username ]`, `[ true_path, remote_ip, action_type, username ]`, `[ true_path, success, action_type, username ]`, `[ remote_ip, success, 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, 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, action_type ]`, `[ start_date, end_date, path, remote_ip, username ]`, `[ start_date, end_date, path, success, action_type ]`, `[ start_date, end_date, path, success, 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, action_type ]`, `[ start_date, end_date, true_path, remote_ip, username ]`, `[ start_date, end_date, true_path, success, action_type ]`, `[ start_date, end_date, true_path, success, username ]`, `[ start_date, end_date, true_path, action_type, username ]`, `[ start_date, end_date, remote_ip, success, action_type ]`, `[ start_date, end_date, remote_ip, success, username ]`, `[ start_date, end_date, remote_ip, action_type, username ]`, `[ start_date, end_date, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success ]`, `[ start_date, path, true_path, remote_ip, action_type ]`, `[ start_date, path, true_path, remote_ip, username ]`, `[ start_date, path, true_path, success, action_type ]`, `[ start_date, path, true_path, success, username ]`, `[ start_date, path, true_path, action_type, username ]`, `[ start_date, path, remote_ip, success, action_type ]`, `[ start_date, path, remote_ip, success, username ]`, `[ start_date, path, remote_ip, action_type, username ]`, `[ start_date, path, success, action_type, username ]`, `[ start_date, true_path, remote_ip, success, action_type ]`, `[ start_date, true_path, remote_ip, success, username ]`, `[ start_date, true_path, remote_ip, action_type, username ]`, `[ start_date, true_path, success, action_type, username ]`, `[ start_date, remote_ip, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success ]`, `[ end_date, path, true_path, remote_ip, action_type ]`, `[ end_date, path, true_path, remote_ip, username ]`, `[ end_date, path, true_path, success, action_type ]`, `[ end_date, path, true_path, success, username ]`, `[ end_date, path, true_path, action_type, username ]`, `[ end_date, path, remote_ip, success, action_type ]`, `[ end_date, path, remote_ip, success, username ]`, `[ end_date, path, remote_ip, action_type, username ]`, `[ end_date, path, success, action_type, username ]`, `[ end_date, true_path, remote_ip, success, action_type ]`, `[ end_date, true_path, remote_ip, success, username ]`, `[ end_date, true_path, remote_ip, action_type, username ]`, `[ end_date, true_path, success, action_type, username ]`, `[ end_date, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, success, action_type ]`, `[ path, true_path, remote_ip, success, username ]`, `[ path, true_path, remote_ip, action_type, username ]`, `[ path, true_path, success, action_type, username ]`, `[ path, remote_ip, success, action_type, username ]`, `[ true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success ]`, `[ 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, action_type ]`, `[ start_date, end_date, path, true_path, success, username ]`, `[ start_date, end_date, path, true_path, action_type, username ]`, `[ 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, action_type, username ]`, `[ start_date, end_date, path, success, action_type, username ]`, `[ 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, action_type, username ]`, `[ start_date, end_date, true_path, success, action_type, username ]`, `[ start_date, end_date, remote_ip, success, action_type, username ]`, `[ 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, action_type, username ]`, `[ start_date, path, true_path, success, action_type, username ]`, `[ start_date, path, remote_ip, success, action_type, username ]`, `[ start_date, true_path, remote_ip, success, action_type, username ]`, `[ 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, action_type, username ]`, `[ end_date, path, true_path, success, action_type, username ]`, `[ end_date, path, remote_ip, success, action_type, username ]`, `[ end_date, true_path, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, success, action_type, username ]`, `[ 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, action_type, username ]`, `[ start_date, end_date, path, true_path, success, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, action_type, username ]` or `[ end_date, path, true_path, remote_ip, success, action_type, username ]`.
|
|
59
|
+
def list(params=None, options=None):
|
|
60
|
+
if not isinstance(params, dict):
|
|
61
|
+
params = {}
|
|
62
|
+
if not isinstance(options, dict):
|
|
63
|
+
options = {}
|
|
64
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
65
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
66
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
67
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
68
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
69
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
70
|
+
if "filter_prefix" in params and not isinstance(
|
|
71
|
+
params["filter_prefix"], dict
|
|
72
|
+
):
|
|
73
|
+
raise InvalidParameterError(
|
|
74
|
+
"Bad parameter: filter_prefix must be an dict"
|
|
75
|
+
)
|
|
76
|
+
return ListObj(
|
|
77
|
+
WebDavActionLog, "GET", "/web_dav_action_logs", params, options
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def all(params=None, options=None):
|
|
82
|
+
list(params, options)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def new(*args, **kwargs):
|
|
86
|
+
return WebDavActionLog(*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
|