files.com 1.1.44 → 1.1.45

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class SyncLog
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # date-time - Start Time of Action
13
+ def timestamp
14
+ @attributes[:timestamp]
15
+ end
16
+
17
+ # int64 - Sync ID
18
+ def sync_id
19
+ @attributes[:sync_id]
20
+ end
21
+
22
+ # int64 - External Event ID
23
+ def external_event_id
24
+ @attributes[:external_event_id]
25
+ end
26
+
27
+ # string - Error type, if applicable
28
+ def error_type
29
+ @attributes[:error_type]
30
+ end
31
+
32
+ # string - Message
33
+ def message
34
+ @attributes[:message]
35
+ end
36
+
37
+ # string - Operation type
38
+ def operation
39
+ @attributes[:operation]
40
+ end
41
+
42
+ # string - File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
43
+ def path
44
+ @attributes[:path]
45
+ end
46
+
47
+ # string - Status
48
+ def status
49
+ @attributes[:status]
50
+ end
51
+
52
+ # Parameters:
53
+ # 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.
54
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
55
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `external_event_id`, `operation`, `status`, `sync_id` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ start_date, type ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ end_date, type ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ external_event_id, type ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ operation, type ]`, `[ status, sync_id ]`, `[ status, type ]`, `[ sync_id, type ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, end_date, type ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, external_event_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, operation, type ]`, `[ start_date, status, sync_id ]`, `[ start_date, status, type ]`, `[ start_date, sync_id, type ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, external_event_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, operation, type ]`, `[ end_date, status, sync_id ]`, `[ end_date, status, type ]`, `[ end_date, sync_id, type ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, operation, type ]`, `[ external_event_id, status, sync_id ]`, `[ external_event_id, status, type ]`, `[ external_event_id, sync_id, type ]`, `[ operation, status, sync_id ]`, `[ operation, status, type ]`, `[ operation, sync_id, type ]`, `[ status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, external_event_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, end_date, status, type ]`, `[ start_date, end_date, sync_id, type ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, operation, type ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, external_event_id, status, type ]`, `[ start_date, external_event_id, sync_id, type ]`, `[ start_date, operation, status, sync_id ]`, `[ start_date, operation, status, type ]`, `[ start_date, operation, sync_id, type ]`, `[ start_date, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, operation, type ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, external_event_id, status, type ]`, `[ end_date, external_event_id, sync_id, type ]`, `[ end_date, operation, status, sync_id ]`, `[ end_date, operation, status, type ]`, `[ end_date, operation, sync_id, type ]`, `[ end_date, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id ]`, `[ external_event_id, operation, status, type ]`, `[ external_event_id, operation, sync_id, type ]`, `[ external_event_id, status, sync_id, type ]`, `[ operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, operation, type ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, external_event_id, status, type ]`, `[ start_date, end_date, external_event_id, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, operation, sync_id, type ]`, `[ start_date, end_date, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, type ]`, `[ start_date, external_event_id, operation, sync_id, type ]`, `[ start_date, external_event_id, status, sync_id, type ]`, `[ start_date, operation, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status, type ]`, `[ end_date, external_event_id, operation, sync_id, type ]`, `[ end_date, external_event_id, status, sync_id, type ]`, `[ end_date, operation, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status, type ]`, `[ start_date, end_date, external_event_id, operation, sync_id, type ]`, `[ start_date, end_date, external_event_id, status, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id, type ]` or `[ end_date, external_event_id, operation, status, sync_id, type ]`.
56
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation` and `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ start_date, type ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ end_date, type ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ external_event_id, type ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ operation, type ]`, `[ status, sync_id ]`, `[ status, type ]`, `[ sync_id, type ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, end_date, type ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, external_event_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, operation, type ]`, `[ start_date, status, sync_id ]`, `[ start_date, status, type ]`, `[ start_date, sync_id, type ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, external_event_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, operation, type ]`, `[ end_date, status, sync_id ]`, `[ end_date, status, type ]`, `[ end_date, sync_id, type ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, operation, type ]`, `[ external_event_id, status, sync_id ]`, `[ external_event_id, status, type ]`, `[ external_event_id, sync_id, type ]`, `[ operation, status, sync_id ]`, `[ operation, status, type ]`, `[ operation, sync_id, type ]`, `[ status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, external_event_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, end_date, status, type ]`, `[ start_date, end_date, sync_id, type ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, operation, type ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, external_event_id, status, type ]`, `[ start_date, external_event_id, sync_id, type ]`, `[ start_date, operation, status, sync_id ]`, `[ start_date, operation, status, type ]`, `[ start_date, operation, sync_id, type ]`, `[ start_date, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, operation, type ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, external_event_id, status, type ]`, `[ end_date, external_event_id, sync_id, type ]`, `[ end_date, operation, status, sync_id ]`, `[ end_date, operation, status, type ]`, `[ end_date, operation, sync_id, type ]`, `[ end_date, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id ]`, `[ external_event_id, operation, status, type ]`, `[ external_event_id, operation, sync_id, type ]`, `[ external_event_id, status, sync_id, type ]`, `[ operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, operation, type ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, external_event_id, status, type ]`, `[ start_date, end_date, external_event_id, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, operation, sync_id, type ]`, `[ start_date, end_date, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, type ]`, `[ start_date, external_event_id, operation, sync_id, type ]`, `[ start_date, external_event_id, status, sync_id, type ]`, `[ start_date, operation, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status, type ]`, `[ end_date, external_event_id, operation, sync_id, type ]`, `[ end_date, external_event_id, status, sync_id, type ]`, `[ end_date, operation, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status, type ]`, `[ start_date, end_date, external_event_id, operation, sync_id, type ]`, `[ start_date, end_date, external_event_id, status, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id, type ]` or `[ end_date, external_event_id, operation, status, sync_id, type ]`.
57
+ def self.list(params = {}, options = {})
58
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
59
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
60
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
61
+ raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
62
+
63
+ List.new(SyncLog, params) do
64
+ Api.send_request("/sync_logs", :get, params, options)
65
+ end
66
+ end
67
+
68
+ def self.all(params = {}, options = {})
69
+ list(params, options)
70
+ end
71
+ end
72
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.44"
4
+ VERSION = "1.1.45"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -38,6 +38,7 @@ require "files.com/models/action_notification_export"
38
38
  require "files.com/models/action_notification_export_result"
39
39
  require "files.com/models/action_webhook_failure"
40
40
  require "files.com/models/api_key"
41
+ require "files.com/models/api_request_log"
41
42
  require "files.com/models/app"
42
43
  require "files.com/models/as2_incoming_message"
43
44
  require "files.com/models/as2_outgoing_message"
@@ -45,6 +46,7 @@ require "files.com/models/as2_partner"
45
46
  require "files.com/models/as2_station"
46
47
  require "files.com/models/auto"
47
48
  require "files.com/models/automation"
49
+ require "files.com/models/automation_log"
48
50
  require "files.com/models/automation_run"
49
51
  require "files.com/models/bandwidth_snapshot"
50
52
  require "files.com/models/behavior"
@@ -56,13 +58,16 @@ require "files.com/models/bundle_registration"
56
58
  require "files.com/models/clickwrap"
57
59
  require "files.com/models/dns_record"
58
60
  require "files.com/models/email_incoming_message"
61
+ require "files.com/models/email_log"
59
62
  require "files.com/models/errors"
63
+ require "files.com/models/exavault_api_request_log"
60
64
  require "files.com/models/external_event"
61
65
  require "files.com/models/file"
62
66
  require "files.com/models/file_action"
63
67
  require "files.com/models/file_comment"
64
68
  require "files.com/models/file_comment_reaction"
65
69
  require "files.com/models/file_migration"
70
+ require "files.com/models/file_migration_log"
66
71
  require "files.com/models/file_upload_part"
67
72
  require "files.com/models/folder"
68
73
  require "files.com/models/form_field"
@@ -100,6 +105,7 @@ require "files.com/models/remote_server_configuration_file"
100
105
  require "files.com/models/request"
101
106
  require "files.com/models/session"
102
107
  require "files.com/models/settings_change"
108
+ require "files.com/models/sftp_action_log"
103
109
  require "files.com/models/sftp_host_key"
104
110
  require "files.com/models/share_group"
105
111
  require "files.com/models/share_group_member"
@@ -108,6 +114,7 @@ require "files.com/models/snapshot"
108
114
  require "files.com/models/sso_strategy"
109
115
  require "files.com/models/status"
110
116
  require "files.com/models/style"
117
+ require "files.com/models/sync_log"
111
118
  require "files.com/models/usage_daily_snapshot"
112
119
  require "files.com/models/usage_snapshot"
113
120
  require "files.com/models/user"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.44
4
+ version: 1.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-16 00:00:00.000000000 Z
11
+ date: 2024-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -120,6 +120,7 @@ files:
120
120
  - docs/action_notification_export_result.md
121
121
  - docs/action_webhook_failure.md
122
122
  - docs/api_key.md
123
+ - docs/api_request_log.md
123
124
  - docs/app.md
124
125
  - docs/as2_incoming_message.md
125
126
  - docs/as2_outgoing_message.md
@@ -127,6 +128,7 @@ files:
127
128
  - docs/as2_station.md
128
129
  - docs/auto.md
129
130
  - docs/automation.md
131
+ - docs/automation_log.md
130
132
  - docs/automation_run.md
131
133
  - docs/bandwidth_snapshot.md
132
134
  - docs/behavior.md
@@ -138,13 +140,16 @@ files:
138
140
  - docs/clickwrap.md
139
141
  - docs/dns_record.md
140
142
  - docs/email_incoming_message.md
143
+ - docs/email_log.md
141
144
  - docs/errors.md
145
+ - docs/exavault_api_request_log.md
142
146
  - docs/external_event.md
143
147
  - docs/file.md
144
148
  - docs/file_action.md
145
149
  - docs/file_comment.md
146
150
  - docs/file_comment_reaction.md
147
151
  - docs/file_migration.md
152
+ - docs/file_migration_log.md
148
153
  - docs/file_upload_part.md
149
154
  - docs/file_utils.md
150
155
  - docs/folder.md
@@ -183,6 +188,7 @@ files:
183
188
  - docs/request.md
184
189
  - docs/session.md
185
190
  - docs/settings_change.md
191
+ - docs/sftp_action_log.md
186
192
  - docs/sftp_host_key.md
187
193
  - docs/share_group.md
188
194
  - docs/share_group_member.md
@@ -191,6 +197,7 @@ files:
191
197
  - docs/sso_strategy.md
192
198
  - docs/status.md
193
199
  - docs/style.md
200
+ - docs/sync_log.md
194
201
  - docs/usage_daily_snapshot.md
195
202
  - docs/usage_snapshot.md
196
203
  - docs/user.md
@@ -209,6 +216,7 @@ files:
209
216
  - lib/files.com/models/action_notification_export_result.rb
210
217
  - lib/files.com/models/action_webhook_failure.rb
211
218
  - lib/files.com/models/api_key.rb
219
+ - lib/files.com/models/api_request_log.rb
212
220
  - lib/files.com/models/app.rb
213
221
  - lib/files.com/models/as2_incoming_message.rb
214
222
  - lib/files.com/models/as2_outgoing_message.rb
@@ -216,6 +224,7 @@ files:
216
224
  - lib/files.com/models/as2_station.rb
217
225
  - lib/files.com/models/auto.rb
218
226
  - lib/files.com/models/automation.rb
227
+ - lib/files.com/models/automation_log.rb
219
228
  - lib/files.com/models/automation_run.rb
220
229
  - lib/files.com/models/bandwidth_snapshot.rb
221
230
  - lib/files.com/models/behavior.rb
@@ -228,13 +237,16 @@ files:
228
237
  - lib/files.com/models/dir.rb
229
238
  - lib/files.com/models/dns_record.rb
230
239
  - lib/files.com/models/email_incoming_message.rb
240
+ - lib/files.com/models/email_log.rb
231
241
  - lib/files.com/models/errors.rb
242
+ - lib/files.com/models/exavault_api_request_log.rb
232
243
  - lib/files.com/models/external_event.rb
233
244
  - lib/files.com/models/file.rb
234
245
  - lib/files.com/models/file_action.rb
235
246
  - lib/files.com/models/file_comment.rb
236
247
  - lib/files.com/models/file_comment_reaction.rb
237
248
  - lib/files.com/models/file_migration.rb
249
+ - lib/files.com/models/file_migration_log.rb
238
250
  - lib/files.com/models/file_upload_part.rb
239
251
  - lib/files.com/models/file_utils.rb
240
252
  - lib/files.com/models/folder.rb
@@ -273,6 +285,7 @@ files:
273
285
  - lib/files.com/models/request.rb
274
286
  - lib/files.com/models/session.rb
275
287
  - lib/files.com/models/settings_change.rb
288
+ - lib/files.com/models/sftp_action_log.rb
276
289
  - lib/files.com/models/sftp_host_key.rb
277
290
  - lib/files.com/models/share_group.rb
278
291
  - lib/files.com/models/share_group_member.rb
@@ -281,6 +294,7 @@ files:
281
294
  - lib/files.com/models/sso_strategy.rb
282
295
  - lib/files.com/models/status.rb
283
296
  - lib/files.com/models/style.rb
297
+ - lib/files.com/models/sync_log.rb
284
298
  - lib/files.com/models/usage_daily_snapshot.rb
285
299
  - lib/files.com/models/usage_snapshot.rb
286
300
  - lib/files.com/models/user.rb