files.com 1.1.177 → 1.1.179
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/action_notification_export_result.md +17 -0
- data/docs/api_key.md +21 -0
- data/docs/api_request_log.md +14 -0
- data/docs/app.md +15 -0
- data/docs/as2_incoming_message.md +21 -0
- data/docs/as2_outgoing_message.md +21 -0
- data/docs/as2_partner.md +9 -0
- data/docs/as2_station.md +9 -0
- data/docs/automation.md +18 -0
- data/docs/automation_log.md +14 -0
- data/docs/automation_run.md +17 -0
- data/docs/bandwidth_snapshot.md +18 -0
- data/docs/behavior.md +15 -0
- data/docs/bundle.md +22 -0
- data/docs/bundle_action.md +18 -0
- data/docs/bundle_download.md +23 -0
- data/docs/bundle_notification.md +14 -0
- data/docs/bundle_recipient.md +17 -0
- data/docs/bundle_registration.md +15 -0
- data/docs/clickwrap.md +9 -0
- data/docs/dns_record.md +9 -0
- data/docs/email_incoming_message.md +19 -0
- data/docs/email_log.md +14 -0
- data/docs/exavault_api_request_log.md +14 -0
- data/docs/export.md +27 -1
- data/docs/external_event.md +19 -0
- data/docs/file_migration_log.md +14 -0
- data/docs/form_field_set.md +15 -0
- data/docs/ftp_action_log.md +14 -0
- data/docs/gpg_key.md +16 -0
- data/docs/group.md +27 -3
- data/docs/group_user.md +17 -0
- data/docs/history.md +85 -0
- data/docs/history_export_result.md +17 -0
- data/docs/inbox_recipient.md +17 -0
- data/docs/inbox_registration.md +15 -0
- data/docs/inbox_upload.md +20 -7
- data/docs/invoice.md +9 -0
- data/docs/ip_address.md +36 -0
- data/docs/message.md +17 -0
- data/docs/message_comment.md +17 -0
- data/docs/message_comment_reaction.md +17 -0
- data/docs/message_reaction.md +17 -0
- data/docs/notification.md +20 -0
- data/docs/outbound_connection_log.md +14 -0
- data/docs/payment.md +9 -0
- data/docs/permission.md +21 -0
- data/docs/priority.md +13 -0
- data/docs/project.md +9 -0
- data/docs/public_hosting_request_log.md +14 -0
- data/docs/public_key.md +15 -0
- data/docs/remote_bandwidth_snapshot.md +18 -0
- data/docs/remote_server.md +15 -0
- data/docs/request.md +17 -0
- data/docs/settings_change.md +14 -0
- data/docs/sftp_action_log.md +14 -0
- data/docs/sftp_host_key.md +9 -0
- data/docs/share_group.md +15 -0
- data/docs/siem_http_destination.md +9 -0
- data/docs/site.md +1 -0
- data/docs/snapshot.md +9 -0
- data/docs/sso_strategy.md +9 -0
- data/docs/sync_log.md +14 -0
- data/docs/usage_daily_snapshot.md +18 -0
- data/docs/usage_snapshot.md +9 -0
- data/docs/user.md +31 -2
- data/docs/user_cipher_use.md +15 -0
- data/docs/user_request.md +9 -0
- data/docs/user_sftp_client_use.md +15 -0
- data/docs/web_dav_action_log.md +14 -0
- data/lib/files.com/models/action_notification_export_result.rb +14 -0
- data/lib/files.com/models/api_key.rb +23 -0
- data/lib/files.com/models/api_request_log.rb +13 -0
- data/lib/files.com/models/app.rb +15 -0
- data/lib/files.com/models/as2_incoming_message.rb +23 -0
- data/lib/files.com/models/as2_outgoing_message.rb +23 -0
- data/lib/files.com/models/as2_partner.rb +7 -0
- data/lib/files.com/models/as2_station.rb +7 -0
- data/lib/files.com/models/automation.rb +21 -0
- data/lib/files.com/models/automation_log.rb +13 -0
- data/lib/files.com/models/automation_run.rb +16 -0
- data/lib/files.com/models/bandwidth_snapshot.rb +21 -0
- data/lib/files.com/models/behavior.rb +15 -0
- data/lib/files.com/models/bundle.rb +25 -0
- data/lib/files.com/models/bundle_action.rb +21 -0
- data/lib/files.com/models/bundle_download.rb +25 -0
- data/lib/files.com/models/bundle_notification.rb +13 -0
- data/lib/files.com/models/bundle_recipient.rb +16 -0
- data/lib/files.com/models/bundle_registration.rb +11 -0
- data/lib/files.com/models/clickwrap.rb +7 -0
- data/lib/files.com/models/dns_record.rb +7 -0
- data/lib/files.com/models/email_incoming_message.rb +23 -0
- data/lib/files.com/models/email_log.rb +13 -0
- data/lib/files.com/models/exavault_api_request_log.rb +13 -0
- data/lib/files.com/models/export.rb +98 -0
- data/lib/files.com/models/external_event.rb +23 -0
- data/lib/files.com/models/file_migration_log.rb +13 -0
- data/lib/files.com/models/form_field_set.rb +11 -0
- data/lib/files.com/models/ftp_action_log.rb +13 -0
- data/lib/files.com/models/gpg_key.rb +13 -0
- data/lib/files.com/models/group.rb +29 -1
- data/lib/files.com/models/group_user.rb +13 -0
- data/lib/files.com/models/history.rb +104 -0
- data/lib/files.com/models/history_export_result.rb +14 -0
- data/lib/files.com/models/inbox_recipient.rb +16 -0
- data/lib/files.com/models/inbox_registration.rb +11 -0
- data/lib/files.com/models/inbox_upload.rb +22 -5
- data/lib/files.com/models/invoice.rb +7 -0
- data/lib/files.com/models/ip_address.rb +28 -0
- data/lib/files.com/models/message.rb +14 -0
- data/lib/files.com/models/message_comment.rb +14 -0
- data/lib/files.com/models/message_comment_reaction.rb +14 -0
- data/lib/files.com/models/message_reaction.rb +14 -0
- data/lib/files.com/models/notification.rb +20 -0
- data/lib/files.com/models/outbound_connection_log.rb +13 -0
- data/lib/files.com/models/payment.rb +7 -0
- data/lib/files.com/models/permission.rb +22 -0
- data/lib/files.com/models/priority.rb +14 -0
- data/lib/files.com/models/project.rb +7 -0
- data/lib/files.com/models/public_hosting_request_log.rb +13 -0
- data/lib/files.com/models/public_key.rb +11 -0
- data/lib/files.com/models/remote_bandwidth_snapshot.rb +21 -0
- data/lib/files.com/models/remote_server.rb +15 -0
- data/lib/files.com/models/request.rb +14 -0
- data/lib/files.com/models/settings_change.rb +13 -0
- data/lib/files.com/models/sftp_action_log.rb +13 -0
- data/lib/files.com/models/sftp_host_key.rb +7 -0
- data/lib/files.com/models/share_group.rb +11 -0
- data/lib/files.com/models/siem_http_destination.rb +7 -0
- data/lib/files.com/models/snapshot.rb +7 -0
- data/lib/files.com/models/sso_strategy.rb +7 -0
- data/lib/files.com/models/sync_log.rb +13 -0
- data/lib/files.com/models/usage_daily_snapshot.rb +21 -0
- data/lib/files.com/models/usage_snapshot.rb +7 -0
- data/lib/files.com/models/user.rb +39 -1
- data/lib/files.com/models/user_cipher_use.rb +11 -0
- data/lib/files.com/models/user_request.rb +7 -0
- data/lib/files.com/models/user_sftp_client_use.rb +11 -0
- data/lib/files.com/models/web_dav_action_log.rb +13 -0
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
@@ -108,6 +108,15 @@ module Files
|
|
108
108
|
@attributes[:restapi_permission] = value
|
109
109
|
end
|
110
110
|
|
111
|
+
# int64 - Site ID
|
112
|
+
def site_id
|
113
|
+
@attributes[:site_id]
|
114
|
+
end
|
115
|
+
|
116
|
+
def site_id=(value)
|
117
|
+
@attributes[:site_id] = value
|
118
|
+
end
|
119
|
+
|
111
120
|
# Parameters:
|
112
121
|
# notes - string - Group notes.
|
113
122
|
# user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
@@ -162,10 +171,11 @@ module Files
|
|
162
171
|
# Parameters:
|
163
172
|
# 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.
|
164
173
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
165
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`.
|
174
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id` and `name`.
|
166
175
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
167
176
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
168
177
|
# ids - string - Comma-separated list of group ids to include in results.
|
178
|
+
# include_parent_site_groups - boolean - Include groups from the parent site.
|
169
179
|
def self.list(params = {}, options = {})
|
170
180
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
171
181
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
@@ -221,6 +231,24 @@ module Files
|
|
221
231
|
Group.new(response.data, options)
|
222
232
|
end
|
223
233
|
|
234
|
+
# Parameters:
|
235
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id` and `name`.
|
236
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
237
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
238
|
+
# ids - string - Comma-separated list of group ids to include in results.
|
239
|
+
# include_parent_site_groups - boolean - Include groups from the parent site.
|
240
|
+
def self.create_export(params = {}, options = {})
|
241
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
242
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
243
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
244
|
+
raise InvalidParameterError.new("Bad parameter: ids must be an String") if params[:ids] and !params[:ids].is_a?(String)
|
245
|
+
|
246
|
+
response, options = Api.send_request("/groups/create_export", :post, params, options)
|
247
|
+
response.data.map do |entity_data|
|
248
|
+
Export.new(entity_data, options)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
224
252
|
# Parameters:
|
225
253
|
# notes - string - Group notes.
|
226
254
|
# user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
@@ -148,6 +148,19 @@ module Files
|
|
148
148
|
GroupUser.new(response.data, options)
|
149
149
|
end
|
150
150
|
|
151
|
+
# Parameters:
|
152
|
+
# user_id - int64 - User ID. If provided, will return group_users of this user.
|
153
|
+
# group_id - int64 - Group ID. If provided, will return group_users of this group.
|
154
|
+
def self.create_export(params = {}, options = {})
|
155
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
156
|
+
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params[:group_id] and !params[:group_id].is_a?(Integer)
|
157
|
+
|
158
|
+
response, options = Api.send_request("/group_users/create_export", :post, params, options)
|
159
|
+
response.data.map do |entity_data|
|
160
|
+
Export.new(entity_data, options)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
151
164
|
# Parameters:
|
152
165
|
# group_id (required) - int64 - Group ID to add user to.
|
153
166
|
# user_id (required) - int64 - User ID to add to group.
|
@@ -201,5 +201,109 @@ module Files
|
|
201
201
|
def self.all(params = {}, options = {})
|
202
202
|
list(params, options)
|
203
203
|
end
|
204
|
+
|
205
|
+
# Parameters:
|
206
|
+
# start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
207
|
+
# end_at - string - Leave blank or set to a date/time to filter later entries.
|
208
|
+
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
209
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path` and `created_at`.
|
210
|
+
# path (required) - int64
|
211
|
+
def self.list_for_file_create_export(path, params = {}, options = {})
|
212
|
+
params ||= {}
|
213
|
+
params[:path] = path
|
214
|
+
raise InvalidParameterError.new("Bad parameter: start_at must be an String") if params[:start_at] and !params[:start_at].is_a?(String)
|
215
|
+
raise InvalidParameterError.new("Bad parameter: end_at must be an String") if params[:end_at] and !params[:end_at].is_a?(String)
|
216
|
+
raise InvalidParameterError.new("Bad parameter: display must be an String") if params[:display] and !params[:display].is_a?(String)
|
217
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
218
|
+
raise InvalidParameterError.new("Bad parameter: path must be an Integer") if params[:path] and !params[:path].is_a?(Integer)
|
219
|
+
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
220
|
+
|
221
|
+
response, options = Api.send_request("/history/files/#{params[:path]}/create_export", :post, params, options)
|
222
|
+
response.data.map do |entity_data|
|
223
|
+
Export.new(entity_data, options)
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
# Parameters:
|
228
|
+
# start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
229
|
+
# end_at - string - Leave blank or set to a date/time to filter later entries.
|
230
|
+
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
231
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
232
|
+
# path (required) - int64
|
233
|
+
def self.list_for_folder_create_export(path, params = {}, options = {})
|
234
|
+
params ||= {}
|
235
|
+
params[:path] = path
|
236
|
+
raise InvalidParameterError.new("Bad parameter: start_at must be an String") if params[:start_at] and !params[:start_at].is_a?(String)
|
237
|
+
raise InvalidParameterError.new("Bad parameter: end_at must be an String") if params[:end_at] and !params[:end_at].is_a?(String)
|
238
|
+
raise InvalidParameterError.new("Bad parameter: display must be an String") if params[:display] and !params[:display].is_a?(String)
|
239
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
240
|
+
raise InvalidParameterError.new("Bad parameter: path must be an Integer") if params[:path] and !params[:path].is_a?(Integer)
|
241
|
+
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
242
|
+
|
243
|
+
response, options = Api.send_request("/history/folders/#{params[:path]}/create_export", :post, params, options)
|
244
|
+
response.data.map do |entity_data|
|
245
|
+
Export.new(entity_data, options)
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
# Parameters:
|
250
|
+
# start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
251
|
+
# end_at - string - Leave blank or set to a date/time to filter later entries.
|
252
|
+
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
253
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
|
254
|
+
# user_id (required) - int64 - User ID.
|
255
|
+
def self.list_for_user_create_export(user_id, params = {}, options = {})
|
256
|
+
params ||= {}
|
257
|
+
params[:user_id] = user_id
|
258
|
+
raise InvalidParameterError.new("Bad parameter: start_at must be an String") if params[:start_at] and !params[:start_at].is_a?(String)
|
259
|
+
raise InvalidParameterError.new("Bad parameter: end_at must be an String") if params[:end_at] and !params[:end_at].is_a?(String)
|
260
|
+
raise InvalidParameterError.new("Bad parameter: display must be an String") if params[:display] and !params[:display].is_a?(String)
|
261
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
262
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
263
|
+
raise MissingParameterError.new("Parameter missing: user_id") unless params[:user_id]
|
264
|
+
|
265
|
+
response, options = Api.send_request("/history/users/#{params[:user_id]}/create_export", :post, params, options)
|
266
|
+
response.data.map do |entity_data|
|
267
|
+
Export.new(entity_data, options)
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# Parameters:
|
272
|
+
# start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
273
|
+
# end_at - string - Leave blank or set to a date/time to filter later entries.
|
274
|
+
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
275
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
276
|
+
def self.list_logins_create_export(params = {}, options = {})
|
277
|
+
raise InvalidParameterError.new("Bad parameter: start_at must be an String") if params[:start_at] and !params[:start_at].is_a?(String)
|
278
|
+
raise InvalidParameterError.new("Bad parameter: end_at must be an String") if params[:end_at] and !params[:end_at].is_a?(String)
|
279
|
+
raise InvalidParameterError.new("Bad parameter: display must be an String") if params[:display] and !params[:display].is_a?(String)
|
280
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
281
|
+
|
282
|
+
response, options = Api.send_request("/history/login/create_export", :post, params, options)
|
283
|
+
response.data.map do |entity_data|
|
284
|
+
Export.new(entity_data, options)
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# Parameters:
|
289
|
+
# start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
290
|
+
# end_at - string - Leave blank or set to a date/time to filter later entries.
|
291
|
+
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
292
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `user_id`.
|
293
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`. Valid field combinations are `[ user_id, folder ]`, `[ user_id, path ]`, `[ folder, path ]` or `[ user_id, folder, path ]`.
|
294
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
295
|
+
def self.list_create_export(params = {}, options = {})
|
296
|
+
raise InvalidParameterError.new("Bad parameter: start_at must be an String") if params[:start_at] and !params[:start_at].is_a?(String)
|
297
|
+
raise InvalidParameterError.new("Bad parameter: end_at must be an String") if params[:end_at] and !params[:end_at].is_a?(String)
|
298
|
+
raise InvalidParameterError.new("Bad parameter: display must be an String") if params[:display] and !params[:display].is_a?(String)
|
299
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
300
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
301
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
302
|
+
|
303
|
+
response, options = Api.send_request("/history/create_export", :post, params, options)
|
304
|
+
response.data.map do |entity_data|
|
305
|
+
Export.new(entity_data, options)
|
306
|
+
end
|
307
|
+
end
|
204
308
|
end
|
205
309
|
end
|
@@ -159,5 +159,19 @@ module Files
|
|
159
159
|
def self.all(params = {}, options = {})
|
160
160
|
list(params, options)
|
161
161
|
end
|
162
|
+
|
163
|
+
# Parameters:
|
164
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
165
|
+
# history_export_id (required) - int64 - ID of the associated history export.
|
166
|
+
def self.create_export(params = {}, options = {})
|
167
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
168
|
+
raise InvalidParameterError.new("Bad parameter: history_export_id must be an Integer") if params[:history_export_id] and !params[:history_export_id].is_a?(Integer)
|
169
|
+
raise MissingParameterError.new("Parameter missing: history_export_id") unless params[:history_export_id]
|
170
|
+
|
171
|
+
response, options = Api.send_request("/history_export_results/create_export", :post, params, options)
|
172
|
+
response.data.map do |entity_data|
|
173
|
+
Export.new(entity_data, options)
|
174
|
+
end
|
175
|
+
end
|
162
176
|
end
|
163
177
|
end
|
@@ -125,5 +125,21 @@ module Files
|
|
125
125
|
response, options = Api.send_request("/inbox_recipients", :post, params, options)
|
126
126
|
InboxRecipient.new(response.data, options)
|
127
127
|
end
|
128
|
+
|
129
|
+
# Parameters:
|
130
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
131
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
132
|
+
# inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
133
|
+
def self.create_export(params = {}, options = {})
|
134
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
135
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
136
|
+
raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
|
137
|
+
raise MissingParameterError.new("Parameter missing: inbox_id") unless params[:inbox_id]
|
138
|
+
|
139
|
+
response, options = Api.send_request("/inbox_recipients/create_export", :post, params, options)
|
140
|
+
response.data.map do |entity_data|
|
141
|
+
Export.new(entity_data, options)
|
142
|
+
end
|
143
|
+
end
|
128
144
|
end
|
129
145
|
end
|
@@ -86,5 +86,16 @@ module Files
|
|
86
86
|
def self.all(params = {}, options = {})
|
87
87
|
list(params, options)
|
88
88
|
end
|
89
|
+
|
90
|
+
# Parameters:
|
91
|
+
# folder_behavior_id - int64 - ID of the associated Inbox.
|
92
|
+
def self.create_export(params = {}, options = {})
|
93
|
+
raise InvalidParameterError.new("Bad parameter: folder_behavior_id must be an Integer") if params[:folder_behavior_id] and !params[:folder_behavior_id].is_a?(Integer)
|
94
|
+
|
95
|
+
response, options = Api.send_request("/inbox_registrations/create_export", :post, params, options)
|
96
|
+
response.data.map do |entity_data|
|
97
|
+
Export.new(entity_data, options)
|
98
|
+
end
|
99
|
+
end
|
89
100
|
end
|
90
101
|
end
|
@@ -28,13 +28,11 @@ module Files
|
|
28
28
|
# 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.
|
29
29
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
30
30
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
31
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
31
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `inbox_registration_id`. Valid field combinations are `[ created_at, folder_behavior_id ]`, `[ created_at, inbox_registration_id ]`, `[ folder_behavior_id, inbox_registration_id ]` or `[ created_at, folder_behavior_id, inbox_registration_id ]`.
|
32
32
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
33
33
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
34
34
|
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
35
35
|
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
36
|
-
# inbox_registration_id - int64 - InboxRegistration ID
|
37
|
-
# inbox_id - int64 - Inbox ID
|
38
36
|
def self.list(params = {}, options = {})
|
39
37
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
40
38
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
@@ -44,8 +42,6 @@ module Files
|
|
44
42
|
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
45
43
|
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
46
44
|
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
47
|
-
raise InvalidParameterError.new("Bad parameter: inbox_registration_id must be an Integer") if params[:inbox_registration_id] and !params[:inbox_registration_id].is_a?(Integer)
|
48
|
-
raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
|
49
45
|
|
50
46
|
List.new(InboxUpload, params) do
|
51
47
|
Api.send_request("/inbox_uploads", :get, params, options)
|
@@ -55,5 +51,26 @@ module Files
|
|
55
51
|
def self.all(params = {}, options = {})
|
56
52
|
list(params, options)
|
57
53
|
end
|
54
|
+
|
55
|
+
# Parameters:
|
56
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
57
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `inbox_registration_id`. Valid field combinations are `[ created_at, folder_behavior_id ]`, `[ created_at, inbox_registration_id ]`, `[ folder_behavior_id, inbox_registration_id ]` or `[ created_at, folder_behavior_id, inbox_registration_id ]`.
|
58
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
59
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `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`.
|
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`.
|
62
|
+
def self.create_export(params = {}, options = {})
|
63
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
64
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
65
|
+
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
66
|
+
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
67
|
+
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
68
|
+
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
69
|
+
|
70
|
+
response, options = Api.send_request("/inbox_uploads/create_export", :post, params, options)
|
71
|
+
response.data.map do |entity_data|
|
72
|
+
Export.new(entity_data, options)
|
73
|
+
end
|
74
|
+
end
|
58
75
|
end
|
59
76
|
end
|
@@ -105,5 +105,12 @@ module Files
|
|
105
105
|
def self.get(id, params = {}, options = {})
|
106
106
|
find(id, params, options)
|
107
107
|
end
|
108
|
+
|
109
|
+
def self.create_export(params = {}, options = {})
|
110
|
+
response, options = Api.send_request("/invoices/create_export", :post, params, options)
|
111
|
+
response.data.map do |entity_data|
|
112
|
+
Export.new(entity_data, options)
|
113
|
+
end
|
114
|
+
end
|
108
115
|
end
|
109
116
|
end
|
@@ -80,5 +80,33 @@ module Files
|
|
80
80
|
Api.send_request("/ip_addresses/reserved", :get, params, options)
|
81
81
|
end
|
82
82
|
end
|
83
|
+
|
84
|
+
def self.smartfile_reserved_create_export(params = {}, options = {})
|
85
|
+
response, options = Api.send_request("/ip_addresses/smartfile-reserved/create_export", :post, params, options)
|
86
|
+
response.data.map do |entity_data|
|
87
|
+
Export.new(entity_data, options)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.exavault_reserved_create_export(params = {}, options = {})
|
92
|
+
response, options = Api.send_request("/ip_addresses/exavault-reserved/create_export", :post, params, options)
|
93
|
+
response.data.map do |entity_data|
|
94
|
+
Export.new(entity_data, options)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
def self.reserved_create_export(params = {}, options = {})
|
99
|
+
response, options = Api.send_request("/ip_addresses/reserved/create_export", :post, params, options)
|
100
|
+
response.data.map do |entity_data|
|
101
|
+
Export.new(entity_data, options)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
def self.create_export(params = {}, options = {})
|
106
|
+
response, options = Api.send_request("/ip_addresses/create_export", :post, params, options)
|
107
|
+
response.data.map do |entity_data|
|
108
|
+
Export.new(entity_data, options)
|
109
|
+
end
|
110
|
+
end
|
83
111
|
end
|
84
112
|
end
|
@@ -164,6 +164,20 @@ module Files
|
|
164
164
|
Message.new(response.data, options)
|
165
165
|
end
|
166
166
|
|
167
|
+
# Parameters:
|
168
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
169
|
+
# project_id (required) - int64 - Project for which to return messages.
|
170
|
+
def self.create_export(params = {}, options = {})
|
171
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
172
|
+
raise InvalidParameterError.new("Bad parameter: project_id must be an Integer") if params[:project_id] and !params[:project_id].is_a?(Integer)
|
173
|
+
raise MissingParameterError.new("Parameter missing: project_id") unless params[:project_id]
|
174
|
+
|
175
|
+
response, options = Api.send_request("/messages/create_export", :post, params, options)
|
176
|
+
response.data.map do |entity_data|
|
177
|
+
Export.new(entity_data, options)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
167
181
|
# Parameters:
|
168
182
|
# project_id (required) - int64 - Project to which the message should be attached.
|
169
183
|
# subject (required) - string - Message subject.
|
@@ -134,6 +134,20 @@ module Files
|
|
134
134
|
MessageComment.new(response.data, options)
|
135
135
|
end
|
136
136
|
|
137
|
+
# Parameters:
|
138
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
139
|
+
# message_id (required) - int64 - Message comment to return comments for.
|
140
|
+
def self.create_export(params = {}, options = {})
|
141
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
142
|
+
raise InvalidParameterError.new("Bad parameter: message_id must be an Integer") if params[:message_id] and !params[:message_id].is_a?(Integer)
|
143
|
+
raise MissingParameterError.new("Parameter missing: message_id") unless params[:message_id]
|
144
|
+
|
145
|
+
response, options = Api.send_request("/message_comments/create_export", :post, params, options)
|
146
|
+
response.data.map do |entity_data|
|
147
|
+
Export.new(entity_data, options)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
137
151
|
# Parameters:
|
138
152
|
# body (required) - string - Comment body.
|
139
153
|
def self.update(id, params = {}, options = {})
|
@@ -111,6 +111,20 @@ module Files
|
|
111
111
|
MessageCommentReaction.new(response.data, options)
|
112
112
|
end
|
113
113
|
|
114
|
+
# Parameters:
|
115
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
116
|
+
# message_comment_id (required) - int64 - Message comment to return reactions for.
|
117
|
+
def self.create_export(params = {}, options = {})
|
118
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
119
|
+
raise InvalidParameterError.new("Bad parameter: message_comment_id must be an Integer") if params[:message_comment_id] and !params[:message_comment_id].is_a?(Integer)
|
120
|
+
raise MissingParameterError.new("Parameter missing: message_comment_id") unless params[:message_comment_id]
|
121
|
+
|
122
|
+
response, options = Api.send_request("/message_comment_reactions/create_export", :post, params, options)
|
123
|
+
response.data.map do |entity_data|
|
124
|
+
Export.new(entity_data, options)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
114
128
|
def self.delete(id, params = {}, options = {})
|
115
129
|
params ||= {}
|
116
130
|
params[:id] = id
|
@@ -111,6 +111,20 @@ module Files
|
|
111
111
|
MessageReaction.new(response.data, options)
|
112
112
|
end
|
113
113
|
|
114
|
+
# Parameters:
|
115
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
116
|
+
# message_id (required) - int64 - Message to return reactions for.
|
117
|
+
def self.create_export(params = {}, options = {})
|
118
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
119
|
+
raise InvalidParameterError.new("Bad parameter: message_id must be an Integer") if params[:message_id] and !params[:message_id].is_a?(Integer)
|
120
|
+
raise MissingParameterError.new("Parameter missing: message_id") unless params[:message_id]
|
121
|
+
|
122
|
+
response, options = Api.send_request("/message_reactions/create_export", :post, params, options)
|
123
|
+
response.data.map do |entity_data|
|
124
|
+
Export.new(entity_data, options)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
114
128
|
def self.delete(id, params = {}, options = {})
|
115
129
|
params ||= {}
|
116
130
|
params[:id] = id
|
@@ -338,6 +338,26 @@ module Files
|
|
338
338
|
Notification.new(response.data, options)
|
339
339
|
end
|
340
340
|
|
341
|
+
# Parameters:
|
342
|
+
# 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`.
|
343
|
+
# 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`.
|
344
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
345
|
+
# path - string - Show notifications for this Path.
|
346
|
+
# include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
347
|
+
# group_id - string
|
348
|
+
def self.create_export(params = {}, options = {})
|
349
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
350
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
351
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
352
|
+
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
353
|
+
raise InvalidParameterError.new("Bad parameter: group_id must be an String") if params[:group_id] and !params[:group_id].is_a?(String)
|
354
|
+
|
355
|
+
response, options = Api.send_request("/notifications/create_export", :post, params, options)
|
356
|
+
response.data.map do |entity_data|
|
357
|
+
Export.new(entity_data, options)
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
341
361
|
# Parameters:
|
342
362
|
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
343
363
|
# notify_on_delete - boolean - Trigger on files deleted in this path?
|
@@ -98,5 +98,18 @@ module Files
|
|
98
98
|
def self.all(params = {}, options = {})
|
99
99
|
list(params, options)
|
100
100
|
end
|
101
|
+
|
102
|
+
# Parameters:
|
103
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `operation`, `status`, `src_remote_server_id`, `dest_remote_server_id`, `path` or `client_ip`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ operation ]`, `[ status ]`, `[ src_remote_server_id ]`, `[ dest_remote_server_id ]`, `[ path ]`, `[ client_ip ]`, `[ start_date, end_date ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, src_remote_server_id ]`, `[ start_date, dest_remote_server_id ]`, `[ start_date, path ]`, `[ start_date, client_ip ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, src_remote_server_id ]`, `[ end_date, dest_remote_server_id ]`, `[ end_date, path ]`, `[ end_date, client_ip ]`, `[ operation, status ]`, `[ operation, src_remote_server_id ]`, `[ operation, dest_remote_server_id ]`, `[ operation, path ]`, `[ operation, client_ip ]`, `[ status, src_remote_server_id ]`, `[ status, dest_remote_server_id ]`, `[ status, path ]`, `[ status, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id ]`, `[ src_remote_server_id, path ]`, `[ src_remote_server_id, client_ip ]`, `[ dest_remote_server_id, path ]`, `[ dest_remote_server_id, client_ip ]`, `[ path, client_ip ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, src_remote_server_id ]`, `[ start_date, end_date, dest_remote_server_id ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, client_ip ]`, `[ start_date, operation, status ]`, `[ start_date, operation, src_remote_server_id ]`, `[ start_date, operation, dest_remote_server_id ]`, `[ start_date, operation, path ]`, `[ start_date, operation, client_ip ]`, `[ start_date, status, src_remote_server_id ]`, `[ start_date, status, dest_remote_server_id ]`, `[ start_date, status, path ]`, `[ start_date, status, client_ip ]`, `[ start_date, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, src_remote_server_id, path ]`, `[ start_date, src_remote_server_id, client_ip ]`, `[ start_date, dest_remote_server_id, path ]`, `[ start_date, dest_remote_server_id, client_ip ]`, `[ start_date, path, client_ip ]`, `[ end_date, operation, status ]`, `[ end_date, operation, src_remote_server_id ]`, `[ end_date, operation, dest_remote_server_id ]`, `[ end_date, operation, path ]`, `[ end_date, operation, client_ip ]`, `[ end_date, status, src_remote_server_id ]`, `[ end_date, status, dest_remote_server_id ]`, `[ end_date, status, path ]`, `[ end_date, status, client_ip ]`, `[ end_date, src_remote_server_id, dest_remote_server_id ]`, `[ end_date, src_remote_server_id, path ]`, `[ end_date, src_remote_server_id, client_ip ]`, `[ end_date, dest_remote_server_id, path ]`, `[ end_date, dest_remote_server_id, client_ip ]`, `[ end_date, path, client_ip ]`, `[ operation, status, src_remote_server_id ]`, `[ operation, status, dest_remote_server_id ]`, `[ operation, status, path ]`, `[ operation, status, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id ]`, `[ operation, src_remote_server_id, path ]`, `[ operation, src_remote_server_id, client_ip ]`, `[ operation, dest_remote_server_id, path ]`, `[ operation, dest_remote_server_id, client_ip ]`, `[ operation, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id ]`, `[ status, src_remote_server_id, path ]`, `[ status, src_remote_server_id, client_ip ]`, `[ status, dest_remote_server_id, path ]`, `[ status, dest_remote_server_id, client_ip ]`, `[ status, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ src_remote_server_id, path, client_ip ]`, `[ dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, src_remote_server_id ]`, `[ start_date, end_date, operation, dest_remote_server_id ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id ]`, `[ start_date, end_date, status, dest_remote_server_id ]`, `[ start_date, end_date, status, path ]`, `[ start_date, end_date, status, client_ip ]`, `[ start_date, end_date, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, end_date, src_remote_server_id, path ]`, `[ start_date, end_date, src_remote_server_id, client_ip ]`, `[ start_date, end_date, dest_remote_server_id, path ]`, `[ start_date, end_date, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, path, client_ip ]`, `[ start_date, operation, status, src_remote_server_id ]`, `[ start_date, operation, status, dest_remote_server_id ]`, `[ start_date, operation, status, path ]`, `[ start_date, operation, status, client_ip ]`, `[ start_date, operation, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, operation, src_remote_server_id, path ]`, `[ start_date, operation, src_remote_server_id, client_ip ]`, `[ start_date, operation, dest_remote_server_id, path ]`, `[ start_date, operation, dest_remote_server_id, client_ip ]`, `[ start_date, operation, path, client_ip ]`, `[ start_date, status, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, status, src_remote_server_id, path ]`, `[ start_date, status, src_remote_server_id, client_ip ]`, `[ start_date, status, dest_remote_server_id, path ]`, `[ start_date, status, dest_remote_server_id, client_ip ]`, `[ start_date, status, path, client_ip ]`, `[ start_date, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, src_remote_server_id, path, client_ip ]`, `[ start_date, dest_remote_server_id, path, client_ip ]`, `[ end_date, operation, status, src_remote_server_id ]`, `[ end_date, operation, status, dest_remote_server_id ]`, `[ end_date, operation, status, path ]`, `[ end_date, operation, status, client_ip ]`, `[ end_date, operation, src_remote_server_id, dest_remote_server_id ]`, `[ end_date, operation, src_remote_server_id, path ]`, `[ end_date, operation, src_remote_server_id, client_ip ]`, `[ end_date, operation, dest_remote_server_id, path ]`, `[ end_date, operation, dest_remote_server_id, client_ip ]`, `[ end_date, operation, path, client_ip ]`, `[ end_date, status, src_remote_server_id, dest_remote_server_id ]`, `[ end_date, status, src_remote_server_id, path ]`, `[ end_date, status, src_remote_server_id, client_ip ]`, `[ end_date, status, dest_remote_server_id, path ]`, `[ end_date, status, dest_remote_server_id, client_ip ]`, `[ end_date, status, path, client_ip ]`, `[ end_date, src_remote_server_id, dest_remote_server_id, path ]`, `[ end_date, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ end_date, src_remote_server_id, path, client_ip ]`, `[ end_date, dest_remote_server_id, path, client_ip ]`, `[ 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, dest_remote_server_id, path ]`, `[ operation, status, dest_remote_server_id, client_ip ]`, `[ operation, status, path, client_ip ]`, `[ 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, path, client_ip ]`, `[ operation, dest_remote_server_id, path, client_ip ]`, `[ 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, path, client_ip ]`, `[ status, dest_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status, src_remote_server_id ]`, `[ start_date, end_date, operation, status, dest_remote_server_id ]`, `[ start_date, end_date, operation, status, path ]`, `[ start_date, end_date, operation, status, client_ip ]`, `[ start_date, end_date, operation, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, end_date, operation, src_remote_server_id, path ]`, `[ start_date, end_date, operation, src_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, dest_remote_server_id, path ]`, `[ start_date, end_date, operation, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, path, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, end_date, status, src_remote_server_id, path ]`, `[ start_date, end_date, status, src_remote_server_id, client_ip ]`, `[ start_date, end_date, status, dest_remote_server_id, path ]`, `[ start_date, end_date, status, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, status, path, client_ip ]`, `[ start_date, end_date, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, end_date, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, src_remote_server_id, path, client_ip ]`, `[ start_date, end_date, dest_remote_server_id, path, client_ip ]`, `[ start_date, operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, operation, status, src_remote_server_id, path ]`, `[ start_date, operation, status, src_remote_server_id, client_ip ]`, `[ start_date, operation, status, dest_remote_server_id, path ]`, `[ start_date, operation, status, dest_remote_server_id, client_ip ]`, `[ start_date, operation, status, path, client_ip ]`, `[ start_date, operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, operation, src_remote_server_id, path, client_ip ]`, `[ start_date, operation, dest_remote_server_id, path, client_ip ]`, `[ start_date, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, status, src_remote_server_id, path, client_ip ]`, `[ start_date, status, dest_remote_server_id, path, client_ip ]`, `[ start_date, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ end_date, operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ end_date, operation, status, src_remote_server_id, path ]`, `[ end_date, operation, status, src_remote_server_id, client_ip ]`, `[ end_date, operation, status, dest_remote_server_id, path ]`, `[ end_date, operation, status, dest_remote_server_id, client_ip ]`, `[ end_date, operation, status, path, client_ip ]`, `[ end_date, operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ end_date, operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ end_date, operation, src_remote_server_id, path, client_ip ]`, `[ end_date, operation, dest_remote_server_id, path, client_ip ]`, `[ end_date, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ end_date, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ end_date, status, src_remote_server_id, path, client_ip ]`, `[ end_date, status, dest_remote_server_id, path, client_ip ]`, `[ end_date, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ 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, path, client_ip ]`, `[ operation, status, dest_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, end_date, operation, status, src_remote_server_id, path ]`, `[ start_date, end_date, operation, status, src_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, status, dest_remote_server_id, path ]`, `[ start_date, end_date, operation, status, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, status, path, client_ip ]`, `[ start_date, end_date, operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, end_date, operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, src_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, end_date, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id, path, client_ip ]`, `[ start_date, end_date, status, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, operation, status, src_remote_server_id, path, client_ip ]`, `[ start_date, operation, status, dest_remote_server_id, path, client_ip ]`, `[ start_date, operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ end_date, operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ end_date, operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ end_date, operation, status, src_remote_server_id, path, client_ip ]`, `[ end_date, operation, status, dest_remote_server_id, path, client_ip ]`, `[ end_date, operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ end_date, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, end_date, operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, status, src_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]` or `[ end_date, operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`.
|
104
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `status`, `src_remote_server_id`, `dest_remote_server_id` or `path`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ operation ]`, `[ status ]`, `[ src_remote_server_id ]`, `[ dest_remote_server_id ]`, `[ path ]`, `[ client_ip ]`, `[ start_date, end_date ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, src_remote_server_id ]`, `[ start_date, dest_remote_server_id ]`, `[ start_date, path ]`, `[ start_date, client_ip ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, src_remote_server_id ]`, `[ end_date, dest_remote_server_id ]`, `[ end_date, path ]`, `[ end_date, client_ip ]`, `[ operation, status ]`, `[ operation, src_remote_server_id ]`, `[ operation, dest_remote_server_id ]`, `[ operation, path ]`, `[ operation, client_ip ]`, `[ status, src_remote_server_id ]`, `[ status, dest_remote_server_id ]`, `[ status, path ]`, `[ status, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id ]`, `[ src_remote_server_id, path ]`, `[ src_remote_server_id, client_ip ]`, `[ dest_remote_server_id, path ]`, `[ dest_remote_server_id, client_ip ]`, `[ path, client_ip ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, src_remote_server_id ]`, `[ start_date, end_date, dest_remote_server_id ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, client_ip ]`, `[ start_date, operation, status ]`, `[ start_date, operation, src_remote_server_id ]`, `[ start_date, operation, dest_remote_server_id ]`, `[ start_date, operation, path ]`, `[ start_date, operation, client_ip ]`, `[ start_date, status, src_remote_server_id ]`, `[ start_date, status, dest_remote_server_id ]`, `[ start_date, status, path ]`, `[ start_date, status, client_ip ]`, `[ start_date, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, src_remote_server_id, path ]`, `[ start_date, src_remote_server_id, client_ip ]`, `[ start_date, dest_remote_server_id, path ]`, `[ start_date, dest_remote_server_id, client_ip ]`, `[ start_date, path, client_ip ]`, `[ end_date, operation, status ]`, `[ end_date, operation, src_remote_server_id ]`, `[ end_date, operation, dest_remote_server_id ]`, `[ end_date, operation, path ]`, `[ end_date, operation, client_ip ]`, `[ end_date, status, src_remote_server_id ]`, `[ end_date, status, dest_remote_server_id ]`, `[ end_date, status, path ]`, `[ end_date, status, client_ip ]`, `[ end_date, src_remote_server_id, dest_remote_server_id ]`, `[ end_date, src_remote_server_id, path ]`, `[ end_date, src_remote_server_id, client_ip ]`, `[ end_date, dest_remote_server_id, path ]`, `[ end_date, dest_remote_server_id, client_ip ]`, `[ end_date, path, client_ip ]`, `[ operation, status, src_remote_server_id ]`, `[ operation, status, dest_remote_server_id ]`, `[ operation, status, path ]`, `[ operation, status, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id ]`, `[ operation, src_remote_server_id, path ]`, `[ operation, src_remote_server_id, client_ip ]`, `[ operation, dest_remote_server_id, path ]`, `[ operation, dest_remote_server_id, client_ip ]`, `[ operation, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id ]`, `[ status, src_remote_server_id, path ]`, `[ status, src_remote_server_id, client_ip ]`, `[ status, dest_remote_server_id, path ]`, `[ status, dest_remote_server_id, client_ip ]`, `[ status, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path ]`, `[ src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ src_remote_server_id, path, client_ip ]`, `[ dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, src_remote_server_id ]`, `[ start_date, end_date, operation, dest_remote_server_id ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id ]`, `[ start_date, end_date, status, dest_remote_server_id ]`, `[ start_date, end_date, status, path ]`, `[ start_date, end_date, status, client_ip ]`, `[ start_date, end_date, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, end_date, src_remote_server_id, path ]`, `[ start_date, end_date, src_remote_server_id, client_ip ]`, `[ start_date, end_date, dest_remote_server_id, path ]`, `[ start_date, end_date, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, path, client_ip ]`, `[ start_date, operation, status, src_remote_server_id ]`, `[ start_date, operation, status, dest_remote_server_id ]`, `[ start_date, operation, status, path ]`, `[ start_date, operation, status, client_ip ]`, `[ start_date, operation, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, operation, src_remote_server_id, path ]`, `[ start_date, operation, src_remote_server_id, client_ip ]`, `[ start_date, operation, dest_remote_server_id, path ]`, `[ start_date, operation, dest_remote_server_id, client_ip ]`, `[ start_date, operation, path, client_ip ]`, `[ start_date, status, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, status, src_remote_server_id, path ]`, `[ start_date, status, src_remote_server_id, client_ip ]`, `[ start_date, status, dest_remote_server_id, path ]`, `[ start_date, status, dest_remote_server_id, client_ip ]`, `[ start_date, status, path, client_ip ]`, `[ start_date, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, src_remote_server_id, path, client_ip ]`, `[ start_date, dest_remote_server_id, path, client_ip ]`, `[ end_date, operation, status, src_remote_server_id ]`, `[ end_date, operation, status, dest_remote_server_id ]`, `[ end_date, operation, status, path ]`, `[ end_date, operation, status, client_ip ]`, `[ end_date, operation, src_remote_server_id, dest_remote_server_id ]`, `[ end_date, operation, src_remote_server_id, path ]`, `[ end_date, operation, src_remote_server_id, client_ip ]`, `[ end_date, operation, dest_remote_server_id, path ]`, `[ end_date, operation, dest_remote_server_id, client_ip ]`, `[ end_date, operation, path, client_ip ]`, `[ end_date, status, src_remote_server_id, dest_remote_server_id ]`, `[ end_date, status, src_remote_server_id, path ]`, `[ end_date, status, src_remote_server_id, client_ip ]`, `[ end_date, status, dest_remote_server_id, path ]`, `[ end_date, status, dest_remote_server_id, client_ip ]`, `[ end_date, status, path, client_ip ]`, `[ end_date, src_remote_server_id, dest_remote_server_id, path ]`, `[ end_date, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ end_date, src_remote_server_id, path, client_ip ]`, `[ end_date, dest_remote_server_id, path, client_ip ]`, `[ 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, dest_remote_server_id, path ]`, `[ operation, status, dest_remote_server_id, client_ip ]`, `[ operation, status, path, client_ip ]`, `[ 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, path, client_ip ]`, `[ operation, dest_remote_server_id, path, client_ip ]`, `[ 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, path, client_ip ]`, `[ status, dest_remote_server_id, path, client_ip ]`, `[ src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status, src_remote_server_id ]`, `[ start_date, end_date, operation, status, dest_remote_server_id ]`, `[ start_date, end_date, operation, status, path ]`, `[ start_date, end_date, operation, status, client_ip ]`, `[ start_date, end_date, operation, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, end_date, operation, src_remote_server_id, path ]`, `[ start_date, end_date, operation, src_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, dest_remote_server_id, path ]`, `[ start_date, end_date, operation, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, path, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, end_date, status, src_remote_server_id, path ]`, `[ start_date, end_date, status, src_remote_server_id, client_ip ]`, `[ start_date, end_date, status, dest_remote_server_id, path ]`, `[ start_date, end_date, status, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, status, path, client_ip ]`, `[ start_date, end_date, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, end_date, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, src_remote_server_id, path, client_ip ]`, `[ start_date, end_date, dest_remote_server_id, path, client_ip ]`, `[ start_date, operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, operation, status, src_remote_server_id, path ]`, `[ start_date, operation, status, src_remote_server_id, client_ip ]`, `[ start_date, operation, status, dest_remote_server_id, path ]`, `[ start_date, operation, status, dest_remote_server_id, client_ip ]`, `[ start_date, operation, status, path, client_ip ]`, `[ start_date, operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, operation, src_remote_server_id, path, client_ip ]`, `[ start_date, operation, dest_remote_server_id, path, client_ip ]`, `[ start_date, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, status, src_remote_server_id, path, client_ip ]`, `[ start_date, status, dest_remote_server_id, path, client_ip ]`, `[ start_date, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ end_date, operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ end_date, operation, status, src_remote_server_id, path ]`, `[ end_date, operation, status, src_remote_server_id, client_ip ]`, `[ end_date, operation, status, dest_remote_server_id, path ]`, `[ end_date, operation, status, dest_remote_server_id, client_ip ]`, `[ end_date, operation, status, path, client_ip ]`, `[ end_date, operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ end_date, operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ end_date, operation, src_remote_server_id, path, client_ip ]`, `[ end_date, operation, dest_remote_server_id, path, client_ip ]`, `[ end_date, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ end_date, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ end_date, status, src_remote_server_id, path, client_ip ]`, `[ end_date, status, dest_remote_server_id, path, client_ip ]`, `[ end_date, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ 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, path, client_ip ]`, `[ operation, status, dest_remote_server_id, path, client_ip ]`, `[ operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status, src_remote_server_id, dest_remote_server_id ]`, `[ start_date, end_date, operation, status, src_remote_server_id, path ]`, `[ start_date, end_date, operation, status, src_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, status, dest_remote_server_id, path ]`, `[ start_date, end_date, operation, status, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, status, path, client_ip ]`, `[ start_date, end_date, operation, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, end_date, operation, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, src_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, end_date, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id, path, client_ip ]`, `[ start_date, end_date, status, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, operation, status, src_remote_server_id, path, client_ip ]`, `[ start_date, operation, status, dest_remote_server_id, path, client_ip ]`, `[ start_date, operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ end_date, operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ end_date, operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ end_date, operation, status, src_remote_server_id, path, client_ip ]`, `[ end_date, operation, status, dest_remote_server_id, path, client_ip ]`, `[ end_date, operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ end_date, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status, src_remote_server_id, dest_remote_server_id, path ]`, `[ start_date, end_date, operation, status, src_remote_server_id, dest_remote_server_id, client_ip ]`, `[ start_date, end_date, operation, status, src_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, status, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, operation, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, end_date, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`, `[ start_date, operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]` or `[ end_date, operation, status, src_remote_server_id, dest_remote_server_id, path, client_ip ]`.
|
105
|
+
def self.create_export(params = {}, options = {})
|
106
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
107
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
108
|
+
|
109
|
+
response, options = Api.send_request("/outbound_connection_logs/create_export", :post, params, options)
|
110
|
+
response.data.map do |entity_data|
|
111
|
+
Export.new(entity_data, options)
|
112
|
+
end
|
113
|
+
end
|
101
114
|
end
|
102
115
|
end
|
@@ -105,5 +105,12 @@ module Files
|
|
105
105
|
def self.get(id, params = {}, options = {})
|
106
106
|
find(id, params, options)
|
107
107
|
end
|
108
|
+
|
109
|
+
def self.create_export(params = {}, options = {})
|
110
|
+
response, options = Api.send_request("/payments/create_export", :post, params, options)
|
111
|
+
response.data.map do |entity_data|
|
112
|
+
Export.new(entity_data, options)
|
113
|
+
end
|
114
|
+
end
|
108
115
|
end
|
109
116
|
end
|
@@ -157,6 +157,28 @@ module Files
|
|
157
157
|
Permission.new(response.data, options)
|
158
158
|
end
|
159
159
|
|
160
|
+
# Parameters:
|
161
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path` or `user_id`.
|
162
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ group_id, user_id ]`.
|
163
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
164
|
+
# path - string - Permission path. If provided, will scope all permissions(including upward) to this path.
|
165
|
+
# include_groups - boolean - If searching by user or group, also include user's permissions that are inherited from its groups?
|
166
|
+
# group_id - string
|
167
|
+
# user_id - string
|
168
|
+
def self.create_export(params = {}, options = {})
|
169
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
170
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
171
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
172
|
+
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
173
|
+
raise InvalidParameterError.new("Bad parameter: group_id must be an String") if params[:group_id] and !params[:group_id].is_a?(String)
|
174
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an String") if params[:user_id] and !params[:user_id].is_a?(String)
|
175
|
+
|
176
|
+
response, options = Api.send_request("/permissions/create_export", :post, params, options)
|
177
|
+
response.data.map do |entity_data|
|
178
|
+
Export.new(entity_data, options)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
160
182
|
def self.delete(id, params = {}, options = {})
|
161
183
|
params ||= {}
|
162
184
|
params[:id] = id
|
@@ -39,5 +39,19 @@ module Files
|
|
39
39
|
def self.all(path, params = {}, options = {})
|
40
40
|
list(path, params, options)
|
41
41
|
end
|
42
|
+
|
43
|
+
# Parameters:
|
44
|
+
# path (required) - string - The path to query for priorities
|
45
|
+
def self.create_export(path, params = {}, options = {})
|
46
|
+
params ||= {}
|
47
|
+
params[:path] = path
|
48
|
+
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
49
|
+
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
50
|
+
|
51
|
+
response, options = Api.send_request("/priorities/create_export", :post, params, options)
|
52
|
+
response.data.map do |entity_data|
|
53
|
+
Export.new(entity_data, options)
|
54
|
+
end
|
55
|
+
end
|
42
56
|
end
|
43
57
|
end
|
@@ -109,6 +109,13 @@ module Files
|
|
109
109
|
Project.new(response.data, options)
|
110
110
|
end
|
111
111
|
|
112
|
+
def self.create_export(params = {}, options = {})
|
113
|
+
response, options = Api.send_request("/projects/create_export", :post, params, options)
|
114
|
+
response.data.map do |entity_data|
|
115
|
+
Export.new(entity_data, options)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
112
119
|
# Parameters:
|
113
120
|
# global_access (required) - string - Global permissions. Can be: `none`, `anyone_with_read`, `anyone_with_full`.
|
114
121
|
def self.update(id, params = {}, options = {})
|