files.com 1.1.270 → 1.1.272

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48468bd3b5f62108aadf10f88b6b1c200631fcf1f12e3481562c400023f5c7ce
4
- data.tar.gz: 074af918a8815ca7b9837d944a5fa1be7f63f38eef540b5f7e67a733e692d96f
3
+ metadata.gz: 660e90f86bb6515684f25f05a84edcbe49bdb09f3b37e47681a31088856f4066
4
+ data.tar.gz: 253b1d7d06359b7b12ff70144b2f553181c06623a42f12cefc1dfa8681218220
5
5
  SHA512:
6
- metadata.gz: 45728dc5524b0b95150dafa9e02d12234327b39fc266357e1f2f54d7962dd079898856b2371a4196a2c4f581557ac2751754ef8527c46428e254bcbbc9d4b3ef
7
- data.tar.gz: fa1f8e94a3183717be600d69a4de0a52a969321f643efd13cfe5cad4f7fd941b6c9e6029f24eae0390c4d0145937df584450a95ad94271e58bb66ab8f86ceca8
6
+ metadata.gz: 285ea0c211e68a4e8e83a025f62e6657c63795bb68cc5102fb643fcc0958a25c7e50b44fb28e5ed237b5573ed9bf4fff51471159552df01996e210045a72ca7b
7
+ data.tar.gz: fe66071fd1f2629e1862cdd2416af987db7e34b3b6d8295fcdf013f6055dd44b6ed6393f03119b3d84170113441f648ed6cdf9247c69590fd2fcdfc51cdf8992
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.270
1
+ 1.1.272
@@ -12,19 +12,23 @@
12
12
  "responseCode": 1,
13
13
  "success": true,
14
14
  "duration_ms": 1,
15
- "created_at": "2000-01-01T01:00:00Z"
15
+ "created_at": "2000-01-01T01:00:00Z",
16
+ "bytes_transferred": 1,
17
+ "http_method": "GET"
16
18
  }
17
19
  ```
18
20
 
19
21
  * `timestamp` (date-time): Start Time of Action. Deprecrated: Use created_at.
20
- * `remote_ip` (string): IP Address of Public Hosting Client
21
- * `server_ip` (string): IP Address of Public Hosting Server
22
- * `hostname` (string): HTTP Request Hostname
22
+ * `remote_ip` (string): IP Address of Public Hosting Client.
23
+ * `server_ip` (string): IP Address of Public Hosting Server.
24
+ * `hostname` (string): HTTP Request Hostname.
23
25
  * `path` (string): HTTP Request Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
24
- * `responseCode` (int64): HTTP Response Code
26
+ * `responseCode` (int64): HTTP Response Code.
25
27
  * `success` (boolean): Whether SFTP Action was successful.
26
- * `duration_ms` (int64): Duration (in milliseconds)
27
- * `created_at` (date-time): Start Time of Action
28
+ * `duration_ms` (int64): Duration (in milliseconds).
29
+ * `created_at` (date-time): Start Time of Action.
30
+ * `bytes_transferred` (int64): The number of bytes transferred for file downloads.
31
+ * `http_method` (string): Method of the HTTP call.
28
32
 
29
33
 
30
34
  ---
data/docs/sync.md CHANGED
@@ -17,7 +17,6 @@
17
17
  "keep_after_copy": true,
18
18
  "delete_empty_folders": true,
19
19
  "disabled": true,
20
- "interval": "week",
21
20
  "trigger": "example",
22
21
  "trigger_file": "example",
23
22
  "include_patterns": [
@@ -29,6 +28,7 @@
29
28
  "created_at": "2000-01-01T01:00:00Z",
30
29
  "updated_at": "2000-01-01T01:00:00Z",
31
30
  "sync_interval_minutes": 1,
31
+ "interval": "week",
32
32
  "recurring_day": 25,
33
33
  "schedule_days_of_week": [
34
34
  0,
@@ -56,7 +56,6 @@
56
56
  * `keep_after_copy` (boolean): Keep files after copying?
57
57
  * `delete_empty_folders` (boolean): Delete empty folders after sync?
58
58
  * `disabled` (boolean): Is this sync disabled?
59
- * `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
60
59
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
61
60
  * `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
62
61
  * `include_patterns` (array(string)): Array of glob patterns to include
@@ -64,6 +63,7 @@
64
63
  * `created_at` (date-time): When this sync was created
65
64
  * `updated_at` (date-time): When this sync was last updated
66
65
  * `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
66
+ * `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
67
67
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
68
68
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
69
69
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. Times of day in HH:MM format.
@@ -113,7 +113,7 @@ Files::Sync.create(
113
113
  keep_after_copy: false,
114
114
  delete_empty_folders: false,
115
115
  disabled: false,
116
- interval: 1,
116
+ interval: "week",
117
117
  trigger: "example",
118
118
  trigger_file: "example",
119
119
  recurring_day: 25,
@@ -135,7 +135,7 @@ Files::Sync.create(
135
135
  * `keep_after_copy` (boolean): Keep files after copying?
136
136
  * `delete_empty_folders` (boolean): Delete empty folders after sync?
137
137
  * `disabled` (boolean): Is this sync disabled?
138
- * `interval` (int64): Interval in minutes for sync (if scheduled)
138
+ * `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
139
139
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
140
140
  * `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
141
141
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
@@ -169,7 +169,7 @@ Files::Sync.update(id,
169
169
  keep_after_copy: false,
170
170
  delete_empty_folders: false,
171
171
  disabled: false,
172
- interval: 1,
172
+ interval: "week",
173
173
  trigger: "example",
174
174
  trigger_file: "example",
175
175
  recurring_day: 25,
@@ -192,7 +192,7 @@ Files::Sync.update(id,
192
192
  * `keep_after_copy` (boolean): Keep files after copying?
193
193
  * `delete_empty_folders` (boolean): Delete empty folders after sync?
194
194
  * `disabled` (boolean): Is this sync disabled?
195
- * `interval` (int64): Interval in minutes for sync (if scheduled)
195
+ * `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
196
196
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
197
197
  * `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
198
198
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
@@ -232,7 +232,7 @@ sync.update(
232
232
  keep_after_copy: false,
233
233
  delete_empty_folders: false,
234
234
  disabled: false,
235
- interval: 1,
235
+ interval: "week",
236
236
  trigger: "example",
237
237
  trigger_file: "example",
238
238
  recurring_day: 25,
@@ -255,7 +255,7 @@ sync.update(
255
255
  * `keep_after_copy` (boolean): Keep files after copying?
256
256
  * `delete_empty_folders` (boolean): Delete empty folders after sync?
257
257
  * `disabled` (boolean): Is this sync disabled?
258
- * `interval` (int64): Interval in minutes for sync (if scheduled)
258
+ * `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
259
259
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
260
260
  * `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
261
261
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
@@ -14,17 +14,17 @@ module Files
14
14
  @attributes[:timestamp]
15
15
  end
16
16
 
17
- # string - IP Address of Public Hosting Client
17
+ # string - IP Address of Public Hosting Client.
18
18
  def remote_ip
19
19
  @attributes[:remote_ip]
20
20
  end
21
21
 
22
- # string - IP Address of Public Hosting Server
22
+ # string - IP Address of Public Hosting Server.
23
23
  def server_ip
24
24
  @attributes[:server_ip]
25
25
  end
26
26
 
27
- # string - HTTP Request Hostname
27
+ # string - HTTP Request Hostname.
28
28
  def hostname
29
29
  @attributes[:hostname]
30
30
  end
@@ -34,7 +34,7 @@ module Files
34
34
  @attributes[:path]
35
35
  end
36
36
 
37
- # int64 - HTTP Response Code
37
+ # int64 - HTTP Response Code.
38
38
  def response_code
39
39
  @attributes[:responseCode]
40
40
  end
@@ -44,16 +44,26 @@ module Files
44
44
  @attributes[:success]
45
45
  end
46
46
 
47
- # int64 - Duration (in milliseconds)
47
+ # int64 - Duration (in milliseconds).
48
48
  def duration_ms
49
49
  @attributes[:duration_ms]
50
50
  end
51
51
 
52
- # date-time - Start Time of Action
52
+ # date-time - Start Time of Action.
53
53
  def created_at
54
54
  @attributes[:created_at]
55
55
  end
56
56
 
57
+ # int64 - The number of bytes transferred for file downloads.
58
+ def bytes_transferred
59
+ @attributes[:bytes_transferred]
60
+ end
61
+
62
+ # string - Method of the HTTP call.
63
+ def http_method
64
+ @attributes[:http_method]
65
+ end
66
+
57
67
  # Parameters:
58
68
  # 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.
59
69
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -126,15 +126,6 @@ module Files
126
126
  @attributes[:disabled] = value
127
127
  end
128
128
 
129
- # string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
130
- def interval
131
- @attributes[:interval]
132
- end
133
-
134
- def interval=(value)
135
- @attributes[:interval] = value
136
- end
137
-
138
129
  # string - Trigger type: daily, custom_schedule, or manual
139
130
  def trigger
140
131
  @attributes[:trigger]
@@ -190,6 +181,15 @@ module Files
190
181
  @attributes[:sync_interval_minutes] = value
191
182
  end
192
183
 
184
+ # string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
185
+ def interval
186
+ @attributes[:interval]
187
+ end
188
+
189
+ def interval=(value)
190
+ @attributes[:interval] = value
191
+ end
192
+
193
193
  # int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
194
194
  def recurring_day
195
195
  @attributes[:recurring_day]
@@ -237,7 +237,7 @@ module Files
237
237
  # keep_after_copy - boolean - Keep files after copying?
238
238
  # delete_empty_folders - boolean - Delete empty folders after sync?
239
239
  # disabled - boolean - Is this sync disabled?
240
- # interval - int64 - Interval in minutes for sync (if scheduled)
240
+ # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
241
241
  # trigger - string - Trigger type: daily, custom_schedule, or manual
242
242
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
243
243
  # recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
@@ -255,7 +255,7 @@ module Files
255
255
  raise InvalidParameterError.new("Bad parameter: dest_path must be an String") if params[:dest_path] and !params[:dest_path].is_a?(String)
256
256
  raise InvalidParameterError.new("Bad parameter: src_remote_server_id must be an Integer") if params[:src_remote_server_id] and !params[:src_remote_server_id].is_a?(Integer)
257
257
  raise InvalidParameterError.new("Bad parameter: dest_remote_server_id must be an Integer") if params[:dest_remote_server_id] and !params[:dest_remote_server_id].is_a?(Integer)
258
- raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
258
+ raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
259
259
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
260
260
  raise InvalidParameterError.new("Bad parameter: trigger_file must be an String") if params[:trigger_file] and !params[:trigger_file].is_a?(String)
261
261
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
@@ -336,7 +336,7 @@ module Files
336
336
  # keep_after_copy - boolean - Keep files after copying?
337
337
  # delete_empty_folders - boolean - Delete empty folders after sync?
338
338
  # disabled - boolean - Is this sync disabled?
339
- # interval - int64 - Interval in minutes for sync (if scheduled)
339
+ # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
340
340
  # trigger - string - Trigger type: daily, custom_schedule, or manual
341
341
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
342
342
  # recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
@@ -350,7 +350,7 @@ module Files
350
350
  raise InvalidParameterError.new("Bad parameter: dest_path must be an String") if params[:dest_path] and !params[:dest_path].is_a?(String)
351
351
  raise InvalidParameterError.new("Bad parameter: src_remote_server_id must be an Integer") if params[:src_remote_server_id] and !params[:src_remote_server_id].is_a?(Integer)
352
352
  raise InvalidParameterError.new("Bad parameter: dest_remote_server_id must be an Integer") if params[:dest_remote_server_id] and !params[:dest_remote_server_id].is_a?(Integer)
353
- raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
353
+ raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
354
354
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
355
355
  raise InvalidParameterError.new("Bad parameter: trigger_file must be an String") if params[:trigger_file] and !params[:trigger_file].is_a?(String)
356
356
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
@@ -378,7 +378,7 @@ module Files
378
378
  # keep_after_copy - boolean - Keep files after copying?
379
379
  # delete_empty_folders - boolean - Delete empty folders after sync?
380
380
  # disabled - boolean - Is this sync disabled?
381
- # interval - int64 - Interval in minutes for sync (if scheduled)
381
+ # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
382
382
  # trigger - string - Trigger type: daily, custom_schedule, or manual
383
383
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
384
384
  # recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
@@ -395,7 +395,7 @@ module Files
395
395
  raise InvalidParameterError.new("Bad parameter: dest_path must be an String") if params[:dest_path] and !params[:dest_path].is_a?(String)
396
396
  raise InvalidParameterError.new("Bad parameter: src_remote_server_id must be an Integer") if params[:src_remote_server_id] and !params[:src_remote_server_id].is_a?(Integer)
397
397
  raise InvalidParameterError.new("Bad parameter: dest_remote_server_id must be an Integer") if params[:dest_remote_server_id] and !params[:dest_remote_server_id].is_a?(Integer)
398
- raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
398
+ raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
399
399
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
400
400
  raise InvalidParameterError.new("Bad parameter: trigger_file must be an String") if params[:trigger_file] and !params[:trigger_file].is_a?(String)
401
401
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.270"
4
+ VERSION = "1.1.272"
5
5
  end
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.270
4
+ version: 1.1.272
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-11 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable