files-com 1.6.208__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 +758 -0
- _VERSION +1 -0
- files_com-1.6.208.dist-info/METADATA +770 -0
- files_com-1.6.208.dist-info/RECORD +126 -0
- files_com-1.6.208.dist-info/WHEEL +5 -0
- files_com-1.6.208.dist-info/licenses/LICENSE +21 -0
- files_com-1.6.208.dist-info/top_level.txt +1 -0
- files_sdk/__init__.py +309 -0
- files_sdk/api.py +63 -0
- files_sdk/api_client.py +336 -0
- files_sdk/error.py +2981 -0
- files_sdk/list_obj.py +42 -0
- files_sdk/models/__init__.py +119 -0
- files_sdk/models/account_line_item.py +51 -0
- files_sdk/models/action.py +49 -0
- files_sdk/models/action_notification_export.py +153 -0
- files_sdk/models/action_notification_export_result.py +88 -0
- files_sdk/models/agent_push_update.py +44 -0
- files_sdk/models/api_key.py +318 -0
- files_sdk/models/api_request_log.py +105 -0
- files_sdk/models/app.py +89 -0
- files_sdk/models/as2_incoming_message.py +117 -0
- files_sdk/models/as2_outgoing_message.py +113 -0
- files_sdk/models/as2_partner.py +415 -0
- files_sdk/models/as2_station.py +282 -0
- files_sdk/models/auto.py +36 -0
- files_sdk/models/automation.py +823 -0
- files_sdk/models/automation_log.py +94 -0
- files_sdk/models/automation_run.py +112 -0
- files_sdk/models/bandwidth_snapshot.py +91 -0
- files_sdk/models/behavior.py +340 -0
- files_sdk/models/bundle.py +686 -0
- files_sdk/models/bundle_action.py +93 -0
- files_sdk/models/bundle_download.py +94 -0
- files_sdk/models/bundle_notification.py +252 -0
- files_sdk/models/bundle_path.py +37 -0
- files_sdk/models/bundle_recipient.py +133 -0
- files_sdk/models/bundle_registration.py +82 -0
- files_sdk/models/child_site_management_policy.py +278 -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 +84 -0
- files_sdk/models/errors.py +37 -0
- files_sdk/models/exavault_api_request_log.py +102 -0
- files_sdk/models/external_event.py +148 -0
- files_sdk/models/file.py +851 -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 +88 -0
- files_sdk/models/file_upload_part.py +54 -0
- files_sdk/models/folder.py +186 -0
- files_sdk/models/form_field.py +43 -0
- files_sdk/models/form_field_set.py +265 -0
- files_sdk/models/ftp_action_log.py +104 -0
- files_sdk/models/gpg_key.py +333 -0
- files_sdk/models/group.py +338 -0
- files_sdk/models/group_user.py +235 -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/holiday_region.py +58 -0
- files_sdk/models/image.py +37 -0
- files_sdk/models/inbound_s3_log.py +95 -0
- files_sdk/models/inbox_recipient.py +124 -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 +51 -0
- files_sdk/models/ip_address.py +119 -0
- files_sdk/models/key_lifecycle_rule.py +243 -0
- files_sdk/models/lock.py +174 -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 +451 -0
- files_sdk/models/outbound_connection_log.py +105 -0
- files_sdk/models/partner.py +307 -0
- files_sdk/models/payment.py +91 -0
- files_sdk/models/payment_line_item.py +42 -0
- files_sdk/models/permission.py +190 -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 +101 -0
- files_sdk/models/public_ip_address.py +42 -0
- files_sdk/models/public_key.py +269 -0
- files_sdk/models/remote_bandwidth_snapshot.py +91 -0
- files_sdk/models/remote_mount_backend.py +438 -0
- files_sdk/models/remote_server.py +1854 -0
- files_sdk/models/remote_server_configuration_file.py +73 -0
- files_sdk/models/remote_server_credential.py +855 -0
- files_sdk/models/request.py +184 -0
- files_sdk/models/restore.py +142 -0
- files_sdk/models/scim_log.py +88 -0
- files_sdk/models/session.py +100 -0
- files_sdk/models/settings_change.py +71 -0
- files_sdk/models/sftp_action_log.py +108 -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 +1074 -0
- files_sdk/models/site.py +1289 -0
- files_sdk/models/snapshot.py +255 -0
- files_sdk/models/sso_strategy.py +168 -0
- files_sdk/models/status.py +42 -0
- files_sdk/models/style.py +152 -0
- files_sdk/models/sync.py +588 -0
- files_sdk/models/sync_log.py +86 -0
- files_sdk/models/sync_run.py +124 -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 +1232 -0
- files_sdk/models/user_cipher_use.py +91 -0
- files_sdk/models/user_lifecycle_rule.py +355 -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 +104 -0
- files_sdk/models/webhook_test.py +116 -0
- files_sdk/models/workspace.py +202 -0
- files_sdk/path_util.py +42 -0
- files_sdk/util.py +34 -0
|
@@ -0,0 +1,451 @@
|
|
|
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 Notification:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - Notification ID
|
|
14
|
+
"path": None, # string - Folder path to notify on. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
15
|
+
"group_id": None, # int64 - ID of Group to receive notifications
|
|
16
|
+
"group_name": None, # string - Group name, if a Group ID is set
|
|
17
|
+
"triggering_group_ids": None, # array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
18
|
+
"triggering_user_ids": None, # array(int64) - If set, will only notify on actions made one of the specified users
|
|
19
|
+
"trigger_by_share_recipients": None, # boolean - Notify when actions are performed by a share recipient?
|
|
20
|
+
"notify_user_actions": None, # boolean - If true, will send notifications about a user's own activity to that user. If false, only activity performed by other users (or anonymous users) will be sent in notifications.
|
|
21
|
+
"notify_on_copy": None, # boolean - Trigger on files copied to this path?
|
|
22
|
+
"notify_on_delete": None, # boolean - Trigger on files deleted in this path?
|
|
23
|
+
"notify_on_download": None, # boolean - Trigger on files downloaded in this path?
|
|
24
|
+
"notify_on_move": None, # boolean - Trigger on files moved to this path?
|
|
25
|
+
"notify_on_upload": None, # boolean - Trigger on files created/uploaded/updated/changed in this path?
|
|
26
|
+
"recursive": None, # boolean - Apply notification recursively? This will enable notifications for each subfolder.
|
|
27
|
+
"send_interval": None, # string - The time interval that notifications are aggregated to
|
|
28
|
+
"message": None, # string - Custom message to include in notification emails
|
|
29
|
+
"triggering_filenames": None, # array(string) - Array of filenames (possibly with wildcards) to scope trigger
|
|
30
|
+
"unsubscribed": None, # boolean - Is the user unsubscribed from this notification?
|
|
31
|
+
"unsubscribed_reason": None, # string - The reason that the user unsubscribed
|
|
32
|
+
"user_id": None, # int64 - Notification user ID
|
|
33
|
+
"username": None, # string - Notification username
|
|
34
|
+
"suppressed_email": None, # boolean - If true, it means that the recipient at this user's email address has manually unsubscribed from all emails, or had their email "hard bounce", which means that we are unable to send mail to this user's current email address. Notifications will resume if the user changes their email address.
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def __init__(self, attributes=None, options=None):
|
|
38
|
+
if not isinstance(attributes, dict):
|
|
39
|
+
attributes = {}
|
|
40
|
+
if not isinstance(options, dict):
|
|
41
|
+
options = {}
|
|
42
|
+
self.set_attributes(attributes)
|
|
43
|
+
self.options = options
|
|
44
|
+
|
|
45
|
+
def set_attributes(self, attributes):
|
|
46
|
+
for (
|
|
47
|
+
attribute,
|
|
48
|
+
default_value,
|
|
49
|
+
) in Notification.default_attributes.items():
|
|
50
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
51
|
+
|
|
52
|
+
def get_attributes(self):
|
|
53
|
+
return {
|
|
54
|
+
k: getattr(self, k, None)
|
|
55
|
+
for k in Notification.default_attributes
|
|
56
|
+
if getattr(self, k, None) is not None
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
# Parameters:
|
|
60
|
+
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
61
|
+
# notify_on_delete - boolean - Trigger on files deleted in this path?
|
|
62
|
+
# notify_on_download - boolean - Trigger on files downloaded in this path?
|
|
63
|
+
# notify_on_move - boolean - Trigger on files moved to this path?
|
|
64
|
+
# notify_on_upload - boolean - Trigger on files created/uploaded/updated/changed in this path?
|
|
65
|
+
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
|
66
|
+
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
|
67
|
+
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
68
|
+
# message - string - Custom message to include in notification emails
|
|
69
|
+
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
|
|
70
|
+
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
71
|
+
# triggering_user_ids - array(int64) - If set, will only notify on actions made one of the specified users
|
|
72
|
+
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
73
|
+
def update(self, params=None):
|
|
74
|
+
if not isinstance(params, dict):
|
|
75
|
+
params = {}
|
|
76
|
+
|
|
77
|
+
if hasattr(self, "id") and self.id:
|
|
78
|
+
params["id"] = self.id
|
|
79
|
+
else:
|
|
80
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
81
|
+
if "id" not in params:
|
|
82
|
+
raise MissingParameterError("Parameter missing: id")
|
|
83
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
84
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
85
|
+
if "send_interval" in params and not isinstance(
|
|
86
|
+
params["send_interval"], str
|
|
87
|
+
):
|
|
88
|
+
raise InvalidParameterError(
|
|
89
|
+
"Bad parameter: send_interval must be an str"
|
|
90
|
+
)
|
|
91
|
+
if "message" in params and not isinstance(params["message"], str):
|
|
92
|
+
raise InvalidParameterError(
|
|
93
|
+
"Bad parameter: message must be an str"
|
|
94
|
+
)
|
|
95
|
+
if "triggering_filenames" in params and not isinstance(
|
|
96
|
+
params["triggering_filenames"], builtins.list
|
|
97
|
+
):
|
|
98
|
+
raise InvalidParameterError(
|
|
99
|
+
"Bad parameter: triggering_filenames must be an list"
|
|
100
|
+
)
|
|
101
|
+
if "triggering_group_ids" in params and not isinstance(
|
|
102
|
+
params["triggering_group_ids"], builtins.list
|
|
103
|
+
):
|
|
104
|
+
raise InvalidParameterError(
|
|
105
|
+
"Bad parameter: triggering_group_ids must be an list"
|
|
106
|
+
)
|
|
107
|
+
if "triggering_user_ids" in params and not isinstance(
|
|
108
|
+
params["triggering_user_ids"], builtins.list
|
|
109
|
+
):
|
|
110
|
+
raise InvalidParameterError(
|
|
111
|
+
"Bad parameter: triggering_user_ids must be an list"
|
|
112
|
+
)
|
|
113
|
+
response, _options = Api.send_request(
|
|
114
|
+
"PATCH",
|
|
115
|
+
"/notifications/{id}".format(id=params["id"]),
|
|
116
|
+
params,
|
|
117
|
+
self.options,
|
|
118
|
+
)
|
|
119
|
+
return response.data
|
|
120
|
+
|
|
121
|
+
def delete(self, params=None):
|
|
122
|
+
if not isinstance(params, dict):
|
|
123
|
+
params = {}
|
|
124
|
+
|
|
125
|
+
if hasattr(self, "id") and self.id:
|
|
126
|
+
params["id"] = self.id
|
|
127
|
+
else:
|
|
128
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
129
|
+
if "id" not in params:
|
|
130
|
+
raise MissingParameterError("Parameter missing: id")
|
|
131
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
132
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
133
|
+
Api.send_request(
|
|
134
|
+
"DELETE",
|
|
135
|
+
"/notifications/{id}".format(id=params["id"]),
|
|
136
|
+
params,
|
|
137
|
+
self.options,
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
def destroy(self, params=None):
|
|
141
|
+
self.delete(params)
|
|
142
|
+
|
|
143
|
+
def save(self):
|
|
144
|
+
if hasattr(self, "id") and self.id:
|
|
145
|
+
new_obj = self.update(self.get_attributes())
|
|
146
|
+
self.set_attributes(new_obj.get_attributes())
|
|
147
|
+
return True
|
|
148
|
+
else:
|
|
149
|
+
new_obj = create(self.get_attributes(), self.options)
|
|
150
|
+
self.set_attributes(new_obj.get_attributes())
|
|
151
|
+
return True
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
# Parameters:
|
|
155
|
+
# 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.
|
|
156
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
157
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `user_id` or `group_id`.
|
|
158
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
|
159
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
160
|
+
# path - string - Show notifications for this Path.
|
|
161
|
+
# include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
|
162
|
+
# group_id - string
|
|
163
|
+
def list(params=None, options=None):
|
|
164
|
+
if not isinstance(params, dict):
|
|
165
|
+
params = {}
|
|
166
|
+
if not isinstance(options, dict):
|
|
167
|
+
options = {}
|
|
168
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
169
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
170
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
171
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
172
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
173
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
174
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
175
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
176
|
+
if "filter_prefix" in params and not isinstance(
|
|
177
|
+
params["filter_prefix"], dict
|
|
178
|
+
):
|
|
179
|
+
raise InvalidParameterError(
|
|
180
|
+
"Bad parameter: filter_prefix must be an dict"
|
|
181
|
+
)
|
|
182
|
+
if "path" in params and not isinstance(params["path"], str):
|
|
183
|
+
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
184
|
+
if "include_ancestors" in params and not isinstance(
|
|
185
|
+
params["include_ancestors"], bool
|
|
186
|
+
):
|
|
187
|
+
raise InvalidParameterError(
|
|
188
|
+
"Bad parameter: include_ancestors must be an bool"
|
|
189
|
+
)
|
|
190
|
+
if "group_id" in params and not isinstance(params["group_id"], str):
|
|
191
|
+
raise InvalidParameterError("Bad parameter: group_id must be an str")
|
|
192
|
+
return ListObj(Notification, "GET", "/notifications", params, options)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def all(params=None, options=None):
|
|
196
|
+
list(params, options)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
# Parameters:
|
|
200
|
+
# id (required) - int64 - Notification ID.
|
|
201
|
+
def find(id, params=None, options=None):
|
|
202
|
+
if not isinstance(params, dict):
|
|
203
|
+
params = {}
|
|
204
|
+
if not isinstance(options, dict):
|
|
205
|
+
options = {}
|
|
206
|
+
params["id"] = id
|
|
207
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
208
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
209
|
+
if "id" not in params:
|
|
210
|
+
raise MissingParameterError("Parameter missing: id")
|
|
211
|
+
response, options = Api.send_request(
|
|
212
|
+
"GET", "/notifications/{id}".format(id=params["id"]), params, options
|
|
213
|
+
)
|
|
214
|
+
return Notification(response.data, options)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def get(id, params=None, options=None):
|
|
218
|
+
find(id, params, options)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
# Parameters:
|
|
222
|
+
# user_id - int64 - The id of the user to notify. Provide `user_id`, `username` or `group_id`.
|
|
223
|
+
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
224
|
+
# notify_on_delete - boolean - Trigger on files deleted in this path?
|
|
225
|
+
# notify_on_download - boolean - Trigger on files downloaded in this path?
|
|
226
|
+
# notify_on_move - boolean - Trigger on files moved to this path?
|
|
227
|
+
# notify_on_upload - boolean - Trigger on files created/uploaded/updated/changed in this path?
|
|
228
|
+
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
|
229
|
+
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
|
230
|
+
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
231
|
+
# message - string - Custom message to include in notification emails
|
|
232
|
+
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
|
|
233
|
+
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
234
|
+
# triggering_user_ids - array(int64) - If set, will only notify on actions made one of the specified users
|
|
235
|
+
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
236
|
+
# group_id - int64 - The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
|
237
|
+
# path - string - Path
|
|
238
|
+
# username - string - The username of the user to notify. Provide `user_id`, `username` or `group_id`.
|
|
239
|
+
def create(params=None, options=None):
|
|
240
|
+
if not isinstance(params, dict):
|
|
241
|
+
params = {}
|
|
242
|
+
if not isinstance(options, dict):
|
|
243
|
+
options = {}
|
|
244
|
+
if "user_id" in params and not isinstance(params["user_id"], int):
|
|
245
|
+
raise InvalidParameterError("Bad parameter: user_id must be an int")
|
|
246
|
+
if "notify_on_copy" in params and not isinstance(
|
|
247
|
+
params["notify_on_copy"], bool
|
|
248
|
+
):
|
|
249
|
+
raise InvalidParameterError(
|
|
250
|
+
"Bad parameter: notify_on_copy must be an bool"
|
|
251
|
+
)
|
|
252
|
+
if "notify_on_delete" in params and not isinstance(
|
|
253
|
+
params["notify_on_delete"], bool
|
|
254
|
+
):
|
|
255
|
+
raise InvalidParameterError(
|
|
256
|
+
"Bad parameter: notify_on_delete must be an bool"
|
|
257
|
+
)
|
|
258
|
+
if "notify_on_download" in params and not isinstance(
|
|
259
|
+
params["notify_on_download"], bool
|
|
260
|
+
):
|
|
261
|
+
raise InvalidParameterError(
|
|
262
|
+
"Bad parameter: notify_on_download must be an bool"
|
|
263
|
+
)
|
|
264
|
+
if "notify_on_move" in params and not isinstance(
|
|
265
|
+
params["notify_on_move"], bool
|
|
266
|
+
):
|
|
267
|
+
raise InvalidParameterError(
|
|
268
|
+
"Bad parameter: notify_on_move must be an bool"
|
|
269
|
+
)
|
|
270
|
+
if "notify_on_upload" in params and not isinstance(
|
|
271
|
+
params["notify_on_upload"], bool
|
|
272
|
+
):
|
|
273
|
+
raise InvalidParameterError(
|
|
274
|
+
"Bad parameter: notify_on_upload must be an bool"
|
|
275
|
+
)
|
|
276
|
+
if "notify_user_actions" in params and not isinstance(
|
|
277
|
+
params["notify_user_actions"], bool
|
|
278
|
+
):
|
|
279
|
+
raise InvalidParameterError(
|
|
280
|
+
"Bad parameter: notify_user_actions must be an bool"
|
|
281
|
+
)
|
|
282
|
+
if "recursive" in params and not isinstance(params["recursive"], bool):
|
|
283
|
+
raise InvalidParameterError("Bad parameter: recursive must be an bool")
|
|
284
|
+
if "send_interval" in params and not isinstance(
|
|
285
|
+
params["send_interval"], str
|
|
286
|
+
):
|
|
287
|
+
raise InvalidParameterError(
|
|
288
|
+
"Bad parameter: send_interval must be an str"
|
|
289
|
+
)
|
|
290
|
+
if "message" in params and not isinstance(params["message"], str):
|
|
291
|
+
raise InvalidParameterError("Bad parameter: message must be an str")
|
|
292
|
+
if "triggering_filenames" in params and not isinstance(
|
|
293
|
+
params["triggering_filenames"], builtins.list
|
|
294
|
+
):
|
|
295
|
+
raise InvalidParameterError(
|
|
296
|
+
"Bad parameter: triggering_filenames must be an list"
|
|
297
|
+
)
|
|
298
|
+
if "triggering_group_ids" in params and not isinstance(
|
|
299
|
+
params["triggering_group_ids"], builtins.list
|
|
300
|
+
):
|
|
301
|
+
raise InvalidParameterError(
|
|
302
|
+
"Bad parameter: triggering_group_ids must be an list"
|
|
303
|
+
)
|
|
304
|
+
if "triggering_user_ids" in params and not isinstance(
|
|
305
|
+
params["triggering_user_ids"], builtins.list
|
|
306
|
+
):
|
|
307
|
+
raise InvalidParameterError(
|
|
308
|
+
"Bad parameter: triggering_user_ids must be an list"
|
|
309
|
+
)
|
|
310
|
+
if "trigger_by_share_recipients" in params and not isinstance(
|
|
311
|
+
params["trigger_by_share_recipients"], bool
|
|
312
|
+
):
|
|
313
|
+
raise InvalidParameterError(
|
|
314
|
+
"Bad parameter: trigger_by_share_recipients must be an bool"
|
|
315
|
+
)
|
|
316
|
+
if "group_id" in params and not isinstance(params["group_id"], int):
|
|
317
|
+
raise InvalidParameterError("Bad parameter: group_id must be an int")
|
|
318
|
+
if "path" in params and not isinstance(params["path"], str):
|
|
319
|
+
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
320
|
+
if "username" in params and not isinstance(params["username"], str):
|
|
321
|
+
raise InvalidParameterError("Bad parameter: username must be an str")
|
|
322
|
+
response, options = Api.send_request(
|
|
323
|
+
"POST", "/notifications", params, options
|
|
324
|
+
)
|
|
325
|
+
return Notification(response.data, options)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
# Parameters:
|
|
329
|
+
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
330
|
+
# notify_on_delete - boolean - Trigger on files deleted in this path?
|
|
331
|
+
# notify_on_download - boolean - Trigger on files downloaded in this path?
|
|
332
|
+
# notify_on_move - boolean - Trigger on files moved to this path?
|
|
333
|
+
# notify_on_upload - boolean - Trigger on files created/uploaded/updated/changed in this path?
|
|
334
|
+
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
|
335
|
+
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
|
336
|
+
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
337
|
+
# message - string - Custom message to include in notification emails
|
|
338
|
+
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
|
|
339
|
+
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
340
|
+
# triggering_user_ids - array(int64) - If set, will only notify on actions made one of the specified users
|
|
341
|
+
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
342
|
+
def update(id, params=None, options=None):
|
|
343
|
+
if not isinstance(params, dict):
|
|
344
|
+
params = {}
|
|
345
|
+
if not isinstance(options, dict):
|
|
346
|
+
options = {}
|
|
347
|
+
params["id"] = id
|
|
348
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
349
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
350
|
+
if "notify_on_copy" in params and not isinstance(
|
|
351
|
+
params["notify_on_copy"], bool
|
|
352
|
+
):
|
|
353
|
+
raise InvalidParameterError(
|
|
354
|
+
"Bad parameter: notify_on_copy must be an bool"
|
|
355
|
+
)
|
|
356
|
+
if "notify_on_delete" in params and not isinstance(
|
|
357
|
+
params["notify_on_delete"], bool
|
|
358
|
+
):
|
|
359
|
+
raise InvalidParameterError(
|
|
360
|
+
"Bad parameter: notify_on_delete must be an bool"
|
|
361
|
+
)
|
|
362
|
+
if "notify_on_download" in params and not isinstance(
|
|
363
|
+
params["notify_on_download"], bool
|
|
364
|
+
):
|
|
365
|
+
raise InvalidParameterError(
|
|
366
|
+
"Bad parameter: notify_on_download must be an bool"
|
|
367
|
+
)
|
|
368
|
+
if "notify_on_move" in params and not isinstance(
|
|
369
|
+
params["notify_on_move"], bool
|
|
370
|
+
):
|
|
371
|
+
raise InvalidParameterError(
|
|
372
|
+
"Bad parameter: notify_on_move must be an bool"
|
|
373
|
+
)
|
|
374
|
+
if "notify_on_upload" in params and not isinstance(
|
|
375
|
+
params["notify_on_upload"], bool
|
|
376
|
+
):
|
|
377
|
+
raise InvalidParameterError(
|
|
378
|
+
"Bad parameter: notify_on_upload must be an bool"
|
|
379
|
+
)
|
|
380
|
+
if "notify_user_actions" in params and not isinstance(
|
|
381
|
+
params["notify_user_actions"], bool
|
|
382
|
+
):
|
|
383
|
+
raise InvalidParameterError(
|
|
384
|
+
"Bad parameter: notify_user_actions must be an bool"
|
|
385
|
+
)
|
|
386
|
+
if "recursive" in params and not isinstance(params["recursive"], bool):
|
|
387
|
+
raise InvalidParameterError("Bad parameter: recursive must be an bool")
|
|
388
|
+
if "send_interval" in params and not isinstance(
|
|
389
|
+
params["send_interval"], str
|
|
390
|
+
):
|
|
391
|
+
raise InvalidParameterError(
|
|
392
|
+
"Bad parameter: send_interval must be an str"
|
|
393
|
+
)
|
|
394
|
+
if "message" in params and not isinstance(params["message"], str):
|
|
395
|
+
raise InvalidParameterError("Bad parameter: message must be an str")
|
|
396
|
+
if "triggering_filenames" in params and not isinstance(
|
|
397
|
+
params["triggering_filenames"], builtins.list
|
|
398
|
+
):
|
|
399
|
+
raise InvalidParameterError(
|
|
400
|
+
"Bad parameter: triggering_filenames must be an list"
|
|
401
|
+
)
|
|
402
|
+
if "triggering_group_ids" in params and not isinstance(
|
|
403
|
+
params["triggering_group_ids"], builtins.list
|
|
404
|
+
):
|
|
405
|
+
raise InvalidParameterError(
|
|
406
|
+
"Bad parameter: triggering_group_ids must be an list"
|
|
407
|
+
)
|
|
408
|
+
if "triggering_user_ids" in params and not isinstance(
|
|
409
|
+
params["triggering_user_ids"], builtins.list
|
|
410
|
+
):
|
|
411
|
+
raise InvalidParameterError(
|
|
412
|
+
"Bad parameter: triggering_user_ids must be an list"
|
|
413
|
+
)
|
|
414
|
+
if "trigger_by_share_recipients" in params and not isinstance(
|
|
415
|
+
params["trigger_by_share_recipients"], bool
|
|
416
|
+
):
|
|
417
|
+
raise InvalidParameterError(
|
|
418
|
+
"Bad parameter: trigger_by_share_recipients must be an bool"
|
|
419
|
+
)
|
|
420
|
+
if "id" not in params:
|
|
421
|
+
raise MissingParameterError("Parameter missing: id")
|
|
422
|
+
response, options = Api.send_request(
|
|
423
|
+
"PATCH", "/notifications/{id}".format(id=params["id"]), params, options
|
|
424
|
+
)
|
|
425
|
+
return Notification(response.data, options)
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
def delete(id, params=None, options=None):
|
|
429
|
+
if not isinstance(params, dict):
|
|
430
|
+
params = {}
|
|
431
|
+
if not isinstance(options, dict):
|
|
432
|
+
options = {}
|
|
433
|
+
params["id"] = id
|
|
434
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
435
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
436
|
+
if "id" not in params:
|
|
437
|
+
raise MissingParameterError("Parameter missing: id")
|
|
438
|
+
Api.send_request(
|
|
439
|
+
"DELETE",
|
|
440
|
+
"/notifications/{id}".format(id=params["id"]),
|
|
441
|
+
params,
|
|
442
|
+
options,
|
|
443
|
+
)
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
def destroy(id, params=None, options=None):
|
|
447
|
+
delete(id, params, options)
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
def new(*args, **kwargs):
|
|
451
|
+
return Notification(*args, **kwargs)
|
|
@@ -0,0 +1,105 @@
|
|
|
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 OutboundConnectionLog:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"timestamp": None, # date-time - Start Time of Action. Deprecrated: Use created_at.
|
|
14
|
+
"path": None, # string - Remote Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
15
|
+
"client_ip": None, # string - End User IP
|
|
16
|
+
"src_remote_server_id": None, # int64 - Source Remote Server ID
|
|
17
|
+
"dest_remote_server_id": None, # int64 - Destination Remote Server ID
|
|
18
|
+
"operation": None, # string - Operation Type
|
|
19
|
+
"error_message": None, # string - Error message, if applicable
|
|
20
|
+
"error_operation": None, # string - Error operation, if applicable
|
|
21
|
+
"error_type": None, # string - Error type, if applicable
|
|
22
|
+
"status": None, # string - Status
|
|
23
|
+
"duration_ms": None, # int64 - Duration (in milliseconds)
|
|
24
|
+
"bytes_uploaded": None, # int64 - Data Length in Bytes. Present for upload actions that transfer data.
|
|
25
|
+
"bytes_downloaded": None, # int64 - Data Length in Bytes. Present for download actions that transfer data.
|
|
26
|
+
"list_count": None, # int64 - Number of entries returned for a folder list action.
|
|
27
|
+
"created_at": None, # date-time - Start Time of Action
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, attributes=None, options=None):
|
|
31
|
+
if not isinstance(attributes, dict):
|
|
32
|
+
attributes = {}
|
|
33
|
+
if not isinstance(options, dict):
|
|
34
|
+
options = {}
|
|
35
|
+
self.set_attributes(attributes)
|
|
36
|
+
self.options = options
|
|
37
|
+
|
|
38
|
+
def set_attributes(self, attributes):
|
|
39
|
+
for (
|
|
40
|
+
attribute,
|
|
41
|
+
default_value,
|
|
42
|
+
) in OutboundConnectionLog.default_attributes.items():
|
|
43
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
44
|
+
|
|
45
|
+
def get_attributes(self):
|
|
46
|
+
return {
|
|
47
|
+
k: getattr(self, k, None)
|
|
48
|
+
for k in OutboundConnectionLog.default_attributes
|
|
49
|
+
if getattr(self, k, None) is not None
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# Parameters:
|
|
54
|
+
# 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.
|
|
55
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
56
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `operation`, `status`, `src_remote_server_id`, `dest_remote_server_id`, `path`, `client_ip` or `created_at`. Valid field combinations are `[ operation ]`, `[ status ]`, `[ src_remote_server_id ]`, `[ dest_remote_server_id ]`, `[ path ]`, `[ client_ip ]`, `[ created_at ]`, `[ operation, status ]`, `[ operation, src_remote_server_id ]`, `[ operation, dest_remote_server_id ]`, `[ operation, path ]`, `[ operation, client_ip ]`, `[ operation, created_at ]`, `[ status, src_remote_server_id ]`, `[ status, dest_remote_server_id ]`, `[ status, path ]`, `[ status, client_ip ]`, `[ status, created_at ]`, `[ src_remote_server_id, dest_remote_server_id ]`, `[ src_remote_server_id, path ]`, `[ src_remote_server_id, client_ip ]`, `[ src_remote_server_id, created_at ]`, `[ dest_remote_server_id, path ]`, `[ dest_remote_server_id, client_ip ]`, `[ dest_remote_server_id, created_at ]`, `[ path, client_ip ]`, `[ path, created_at ]`, `[ client_ip, created_at ]`, `[ operation, status, src_remote_server_id ]`, `[ operation, status, dest_remote_server_id ]`, `[ operation, status, path ]`, `[ operation, status, client_ip ]`, `[ operation, status, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id ]`, `[ operation, src_remote_server_id, path ]`, `[ operation, src_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, created_at ]`, `[ operation, dest_remote_server_id, path ]`, `[ operation, dest_remote_server_id, client_ip ]`, `[ operation, dest_remote_server_id, created_at ]`, `[ operation, path, client_ip ]`, `[ operation, path, created_at ]`, `[ operation, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id ]`, `[ status, src_remote_server_id, path ]`, `[ status, src_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, created_at ]`, `[ status, dest_remote_server_id, path ]`, `[ status, dest_remote_server_id, client_ip ]`, `[ status, dest_remote_server_id, created_at ]`, `[ status, path, client_ip ]`, `[ status, path, created_at ]`, `[ status, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, created_at ]`, `[ src_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, path, created_at ]`, `[ src_remote_server_id, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip ]`, `[ dest_remote_server_id, path, created_at ]`, `[ dest_remote_server_id, client_ip, created_at ]`, `[ path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ operation, status, src_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, created_at ]`, `[ operation, status, dest_remote_server_id, path ]`, `[ operation, status, dest_remote_server_id, client_ip ]`, `[ operation, status, dest_remote_server_id, created_at ]`, `[ operation, status, path, client_ip ]`, `[ operation, status, path, created_at ]`, `[ operation, status, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, src_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip ]`, `[ operation, dest_remote_server_id, path, created_at ]`, `[ operation, dest_remote_server_id, client_ip, created_at ]`, `[ operation, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ status, src_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip ]`, `[ status, dest_remote_server_id, path, created_at ]`, `[ status, dest_remote_server_id, client_ip, created_at ]`, `[ status, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ src_remote_server_id, path, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip ]`, `[ operation, status, dest_remote_server_id, path, created_at ]`, `[ operation, status, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ status, src_remote_server_id, path, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]` or `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`.
|
|
57
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ operation ]`, `[ status ]`, `[ src_remote_server_id ]`, `[ dest_remote_server_id ]`, `[ path ]`, `[ client_ip ]`, `[ created_at ]`, `[ operation, status ]`, `[ operation, src_remote_server_id ]`, `[ operation, dest_remote_server_id ]`, `[ operation, path ]`, `[ operation, client_ip ]`, `[ operation, created_at ]`, `[ status, src_remote_server_id ]`, `[ status, dest_remote_server_id ]`, `[ status, path ]`, `[ status, client_ip ]`, `[ status, created_at ]`, `[ src_remote_server_id, dest_remote_server_id ]`, `[ src_remote_server_id, path ]`, `[ src_remote_server_id, client_ip ]`, `[ src_remote_server_id, created_at ]`, `[ dest_remote_server_id, path ]`, `[ dest_remote_server_id, client_ip ]`, `[ dest_remote_server_id, created_at ]`, `[ path, client_ip ]`, `[ path, created_at ]`, `[ client_ip, created_at ]`, `[ operation, status, src_remote_server_id ]`, `[ operation, status, dest_remote_server_id ]`, `[ operation, status, path ]`, `[ operation, status, client_ip ]`, `[ operation, status, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id ]`, `[ operation, src_remote_server_id, path ]`, `[ operation, src_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, created_at ]`, `[ operation, dest_remote_server_id, path ]`, `[ operation, dest_remote_server_id, client_ip ]`, `[ operation, dest_remote_server_id, created_at ]`, `[ operation, path, client_ip ]`, `[ operation, path, created_at ]`, `[ operation, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id ]`, `[ status, src_remote_server_id, path ]`, `[ status, src_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, created_at ]`, `[ status, dest_remote_server_id, path ]`, `[ status, dest_remote_server_id, client_ip ]`, `[ status, dest_remote_server_id, created_at ]`, `[ status, path, client_ip ]`, `[ status, path, created_at ]`, `[ status, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, created_at ]`, `[ src_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, path, created_at ]`, `[ src_remote_server_id, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip ]`, `[ dest_remote_server_id, path, created_at ]`, `[ dest_remote_server_id, client_ip, created_at ]`, `[ path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ operation, status, src_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, created_at ]`, `[ operation, status, dest_remote_server_id, path ]`, `[ operation, status, dest_remote_server_id, client_ip ]`, `[ operation, status, dest_remote_server_id, created_at ]`, `[ operation, status, path, client_ip ]`, `[ operation, status, path, created_at ]`, `[ operation, status, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, src_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip ]`, `[ operation, dest_remote_server_id, path, created_at ]`, `[ operation, dest_remote_server_id, client_ip, created_at ]`, `[ operation, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ status, src_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip ]`, `[ status, dest_remote_server_id, path, created_at ]`, `[ status, dest_remote_server_id, client_ip, created_at ]`, `[ status, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ src_remote_server_id, path, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip ]`, `[ operation, status, dest_remote_server_id, path, created_at ]`, `[ operation, status, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ status, src_remote_server_id, path, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]` or `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`.
|
|
58
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ operation ]`, `[ status ]`, `[ src_remote_server_id ]`, `[ dest_remote_server_id ]`, `[ path ]`, `[ client_ip ]`, `[ created_at ]`, `[ operation, status ]`, `[ operation, src_remote_server_id ]`, `[ operation, dest_remote_server_id ]`, `[ operation, path ]`, `[ operation, client_ip ]`, `[ operation, created_at ]`, `[ status, src_remote_server_id ]`, `[ status, dest_remote_server_id ]`, `[ status, path ]`, `[ status, client_ip ]`, `[ status, created_at ]`, `[ src_remote_server_id, dest_remote_server_id ]`, `[ src_remote_server_id, path ]`, `[ src_remote_server_id, client_ip ]`, `[ src_remote_server_id, created_at ]`, `[ dest_remote_server_id, path ]`, `[ dest_remote_server_id, client_ip ]`, `[ dest_remote_server_id, created_at ]`, `[ path, client_ip ]`, `[ path, created_at ]`, `[ client_ip, created_at ]`, `[ operation, status, src_remote_server_id ]`, `[ operation, status, dest_remote_server_id ]`, `[ operation, status, path ]`, `[ operation, status, client_ip ]`, `[ operation, status, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id ]`, `[ operation, src_remote_server_id, path ]`, `[ operation, src_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, created_at ]`, `[ operation, dest_remote_server_id, path ]`, `[ operation, dest_remote_server_id, client_ip ]`, `[ operation, dest_remote_server_id, created_at ]`, `[ operation, path, client_ip ]`, `[ operation, path, created_at ]`, `[ operation, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id ]`, `[ status, src_remote_server_id, path ]`, `[ status, src_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, created_at ]`, `[ status, dest_remote_server_id, path ]`, `[ status, dest_remote_server_id, client_ip ]`, `[ status, dest_remote_server_id, created_at ]`, `[ status, path, client_ip ]`, `[ status, path, created_at ]`, `[ status, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, created_at ]`, `[ src_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, path, created_at ]`, `[ src_remote_server_id, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip ]`, `[ dest_remote_server_id, path, created_at ]`, `[ dest_remote_server_id, client_ip, created_at ]`, `[ path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ operation, status, src_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, created_at ]`, `[ operation, status, dest_remote_server_id, path ]`, `[ operation, status, dest_remote_server_id, client_ip ]`, `[ operation, status, dest_remote_server_id, created_at ]`, `[ operation, status, path, client_ip ]`, `[ operation, status, path, created_at ]`, `[ operation, status, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, src_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip ]`, `[ operation, dest_remote_server_id, path, created_at ]`, `[ operation, dest_remote_server_id, client_ip, created_at ]`, `[ operation, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ status, src_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip ]`, `[ status, dest_remote_server_id, path, created_at ]`, `[ status, dest_remote_server_id, client_ip, created_at ]`, `[ status, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ src_remote_server_id, path, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip ]`, `[ operation, status, dest_remote_server_id, path, created_at ]`, `[ operation, status, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ status, src_remote_server_id, path, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]` or `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`.
|
|
59
|
+
# 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 `[ operation ]`, `[ status ]`, `[ src_remote_server_id ]`, `[ dest_remote_server_id ]`, `[ path ]`, `[ client_ip ]`, `[ created_at ]`, `[ operation, status ]`, `[ operation, src_remote_server_id ]`, `[ operation, dest_remote_server_id ]`, `[ operation, path ]`, `[ operation, client_ip ]`, `[ operation, created_at ]`, `[ status, src_remote_server_id ]`, `[ status, dest_remote_server_id ]`, `[ status, path ]`, `[ status, client_ip ]`, `[ status, created_at ]`, `[ src_remote_server_id, dest_remote_server_id ]`, `[ src_remote_server_id, path ]`, `[ src_remote_server_id, client_ip ]`, `[ src_remote_server_id, created_at ]`, `[ dest_remote_server_id, path ]`, `[ dest_remote_server_id, client_ip ]`, `[ dest_remote_server_id, created_at ]`, `[ path, client_ip ]`, `[ path, created_at ]`, `[ client_ip, created_at ]`, `[ operation, status, src_remote_server_id ]`, `[ operation, status, dest_remote_server_id ]`, `[ operation, status, path ]`, `[ operation, status, client_ip ]`, `[ operation, status, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id ]`, `[ operation, src_remote_server_id, path ]`, `[ operation, src_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, created_at ]`, `[ operation, dest_remote_server_id, path ]`, `[ operation, dest_remote_server_id, client_ip ]`, `[ operation, dest_remote_server_id, created_at ]`, `[ operation, path, client_ip ]`, `[ operation, path, created_at ]`, `[ operation, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id ]`, `[ status, src_remote_server_id, path ]`, `[ status, src_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, created_at ]`, `[ status, dest_remote_server_id, path ]`, `[ status, dest_remote_server_id, client_ip ]`, `[ status, dest_remote_server_id, created_at ]`, `[ status, path, client_ip ]`, `[ status, path, created_at ]`, `[ status, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, created_at ]`, `[ src_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, path, created_at ]`, `[ src_remote_server_id, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip ]`, `[ dest_remote_server_id, path, created_at ]`, `[ dest_remote_server_id, client_ip, created_at ]`, `[ path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ operation, status, src_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, created_at ]`, `[ operation, status, dest_remote_server_id, path ]`, `[ operation, status, dest_remote_server_id, client_ip ]`, `[ operation, status, dest_remote_server_id, created_at ]`, `[ operation, status, path, client_ip ]`, `[ operation, status, path, created_at ]`, `[ operation, status, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, src_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip ]`, `[ operation, dest_remote_server_id, path, created_at ]`, `[ operation, dest_remote_server_id, client_ip, created_at ]`, `[ operation, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ status, src_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip ]`, `[ status, dest_remote_server_id, path, created_at ]`, `[ status, dest_remote_server_id, client_ip, created_at ]`, `[ status, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ src_remote_server_id, path, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip ]`, `[ operation, status, dest_remote_server_id, path, created_at ]`, `[ operation, status, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ status, src_remote_server_id, path, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]` or `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`.
|
|
60
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ operation ]`, `[ status ]`, `[ src_remote_server_id ]`, `[ dest_remote_server_id ]`, `[ path ]`, `[ client_ip ]`, `[ created_at ]`, `[ operation, status ]`, `[ operation, src_remote_server_id ]`, `[ operation, dest_remote_server_id ]`, `[ operation, path ]`, `[ operation, client_ip ]`, `[ operation, created_at ]`, `[ status, src_remote_server_id ]`, `[ status, dest_remote_server_id ]`, `[ status, path ]`, `[ status, client_ip ]`, `[ status, created_at ]`, `[ src_remote_server_id, dest_remote_server_id ]`, `[ src_remote_server_id, path ]`, `[ src_remote_server_id, client_ip ]`, `[ src_remote_server_id, created_at ]`, `[ dest_remote_server_id, path ]`, `[ dest_remote_server_id, client_ip ]`, `[ dest_remote_server_id, created_at ]`, `[ path, client_ip ]`, `[ path, created_at ]`, `[ client_ip, created_at ]`, `[ operation, status, src_remote_server_id ]`, `[ operation, status, dest_remote_server_id ]`, `[ operation, status, path ]`, `[ operation, status, client_ip ]`, `[ operation, status, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id ]`, `[ operation, src_remote_server_id, path ]`, `[ operation, src_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, created_at ]`, `[ operation, dest_remote_server_id, path ]`, `[ operation, dest_remote_server_id, client_ip ]`, `[ operation, dest_remote_server_id, created_at ]`, `[ operation, path, client_ip ]`, `[ operation, path, created_at ]`, `[ operation, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id ]`, `[ status, src_remote_server_id, path ]`, `[ status, src_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, created_at ]`, `[ status, dest_remote_server_id, path ]`, `[ status, dest_remote_server_id, client_ip ]`, `[ status, dest_remote_server_id, created_at ]`, `[ status, path, client_ip ]`, `[ status, path, created_at ]`, `[ status, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, created_at ]`, `[ src_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, path, created_at ]`, `[ src_remote_server_id, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip ]`, `[ dest_remote_server_id, path, created_at ]`, `[ dest_remote_server_id, client_ip, created_at ]`, `[ path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ operation, status, src_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, created_at ]`, `[ operation, status, dest_remote_server_id, path ]`, `[ operation, status, dest_remote_server_id, client_ip ]`, `[ operation, status, dest_remote_server_id, created_at ]`, `[ operation, status, path, client_ip ]`, `[ operation, status, path, created_at ]`, `[ operation, status, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, src_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip ]`, `[ operation, dest_remote_server_id, path, created_at ]`, `[ operation, dest_remote_server_id, client_ip, created_at ]`, `[ operation, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ status, src_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip ]`, `[ status, dest_remote_server_id, path, created_at ]`, `[ status, dest_remote_server_id, client_ip, created_at ]`, `[ status, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ src_remote_server_id, path, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip ]`, `[ operation, status, dest_remote_server_id, path, created_at ]`, `[ operation, status, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ status, src_remote_server_id, path, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]` or `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`.
|
|
61
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ operation ]`, `[ status ]`, `[ src_remote_server_id ]`, `[ dest_remote_server_id ]`, `[ path ]`, `[ client_ip ]`, `[ created_at ]`, `[ operation, status ]`, `[ operation, src_remote_server_id ]`, `[ operation, dest_remote_server_id ]`, `[ operation, path ]`, `[ operation, client_ip ]`, `[ operation, created_at ]`, `[ status, src_remote_server_id ]`, `[ status, dest_remote_server_id ]`, `[ status, path ]`, `[ status, client_ip ]`, `[ status, created_at ]`, `[ src_remote_server_id, dest_remote_server_id ]`, `[ src_remote_server_id, path ]`, `[ src_remote_server_id, client_ip ]`, `[ src_remote_server_id, created_at ]`, `[ dest_remote_server_id, path ]`, `[ dest_remote_server_id, client_ip ]`, `[ dest_remote_server_id, created_at ]`, `[ path, client_ip ]`, `[ path, created_at ]`, `[ client_ip, created_at ]`, `[ operation, status, src_remote_server_id ]`, `[ operation, status, dest_remote_server_id ]`, `[ operation, status, path ]`, `[ operation, status, client_ip ]`, `[ operation, status, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id ]`, `[ operation, src_remote_server_id, path ]`, `[ operation, src_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, created_at ]`, `[ operation, dest_remote_server_id, path ]`, `[ operation, dest_remote_server_id, client_ip ]`, `[ operation, dest_remote_server_id, created_at ]`, `[ operation, path, client_ip ]`, `[ operation, path, created_at ]`, `[ operation, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id ]`, `[ status, src_remote_server_id, path ]`, `[ status, src_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, created_at ]`, `[ status, dest_remote_server_id, path ]`, `[ status, dest_remote_server_id, client_ip ]`, `[ status, dest_remote_server_id, created_at ]`, `[ status, path, client_ip ]`, `[ status, path, created_at ]`, `[ status, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, created_at ]`, `[ src_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, path, created_at ]`, `[ src_remote_server_id, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip ]`, `[ dest_remote_server_id, path, created_at ]`, `[ dest_remote_server_id, client_ip, created_at ]`, `[ path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ operation, status, src_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, created_at ]`, `[ operation, status, dest_remote_server_id, path ]`, `[ operation, status, dest_remote_server_id, client_ip ]`, `[ operation, status, dest_remote_server_id, created_at ]`, `[ operation, status, path, client_ip ]`, `[ operation, status, path, created_at ]`, `[ operation, status, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, src_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip ]`, `[ operation, dest_remote_server_id, path, created_at ]`, `[ operation, dest_remote_server_id, client_ip, created_at ]`, `[ operation, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ status, src_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip ]`, `[ status, dest_remote_server_id, path, created_at ]`, `[ status, dest_remote_server_id, client_ip, created_at ]`, `[ status, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ src_remote_server_id, path, client_ip, created_at ]`, `[ dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip ]`, `[ operation, status, dest_remote_server_id, path, created_at ]`, `[ operation, status, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ status, src_remote_server_id, path, client_ip, created_at ]`, `[ status, dest_remote_server_id, path, client_ip, created_at ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, created_at ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, client_ip, created_at ]`, `[ operation, status, src_remote_server_id, path, client_ip, created_at ]`, `[ operation, status, dest_remote_server_id, path, client_ip, created_at ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]` or `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip, created_at ]`.
|
|
62
|
+
def list(params=None, options=None):
|
|
63
|
+
if not isinstance(params, dict):
|
|
64
|
+
params = {}
|
|
65
|
+
if not isinstance(options, dict):
|
|
66
|
+
options = {}
|
|
67
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
68
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
69
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
70
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
71
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
72
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
73
|
+
if "filter_gt" in params and not isinstance(params["filter_gt"], dict):
|
|
74
|
+
raise InvalidParameterError("Bad parameter: filter_gt must be an dict")
|
|
75
|
+
if "filter_gteq" in params and not isinstance(params["filter_gteq"], dict):
|
|
76
|
+
raise InvalidParameterError(
|
|
77
|
+
"Bad parameter: filter_gteq must be an dict"
|
|
78
|
+
)
|
|
79
|
+
if "filter_prefix" in params and not isinstance(
|
|
80
|
+
params["filter_prefix"], dict
|
|
81
|
+
):
|
|
82
|
+
raise InvalidParameterError(
|
|
83
|
+
"Bad parameter: filter_prefix must be an dict"
|
|
84
|
+
)
|
|
85
|
+
if "filter_lt" in params and not isinstance(params["filter_lt"], dict):
|
|
86
|
+
raise InvalidParameterError("Bad parameter: filter_lt must be an dict")
|
|
87
|
+
if "filter_lteq" in params and not isinstance(params["filter_lteq"], dict):
|
|
88
|
+
raise InvalidParameterError(
|
|
89
|
+
"Bad parameter: filter_lteq must be an dict"
|
|
90
|
+
)
|
|
91
|
+
return ListObj(
|
|
92
|
+
OutboundConnectionLog,
|
|
93
|
+
"GET",
|
|
94
|
+
"/outbound_connection_logs",
|
|
95
|
+
params,
|
|
96
|
+
options,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def all(params=None, options=None):
|
|
101
|
+
list(params, options)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def new(*args, **kwargs):
|
|
105
|
+
return OutboundConnectionLog(*args, **kwargs)
|