files.com 1.1.331 → 1.1.333

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: 68d53421ad1a1f6e2463d8160072fbce783744c8b054d03d0a0765d584e88f07
4
- data.tar.gz: 2bac6081f72a123c4fd6ae86ac3d564cbbaab89a4ec50a39e83b9cad29c43a56
3
+ metadata.gz: 6639f4ebae12e0cbd5172924dbacabc2124059cfcf970604456497d00f0aebe9
4
+ data.tar.gz: 3749cfbd707dd49122df0e11392fe3672f9ca5773a7b7f1a53dc71efd0a17fa6
5
5
  SHA512:
6
- metadata.gz: a9a6762a5239ad692124ad5776789b5e3158d13c59a1ef3c8ef147a08177f27e289389d5bd32a8881d9efe8d6bcff341f181c8f2b0721962c95c6511b62f294d
7
- data.tar.gz: 9add9afbf40f263354ea7592db8cd05ba4555e4ce4d5aa5f184dfcdf8e63f93b3ba926f262d8d46615aaaba39be4a5800a9c008815327abfb247099f4cb5800f
6
+ metadata.gz: 48a3d0d0e12ccf05540bbe93bf91d519938a0fccbdbaca420d1f6e1ce8b0392add8194b827409e08b2f7cd632a749481f3d2777a6096019bd0bae82317ac26c5
7
+ data.tar.gz: f3bab5bb1a639c160ec430194813adf9f027517af5c94ba9e53d07b1872e3d3e27eae6602aa85f111df717f5f244e0e1519d5ea19a7755152f9ba808e06ba3cf
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.331
1
+ 1.1.333
data/docs/file.md CHANGED
@@ -97,6 +97,7 @@ may places where a Ruby File object can be used.
97
97
  * `restart` (int64): File byte offset to restart from.
98
98
  * `structure` (string): If copying folder, copy just the structure?
99
99
  * `with_rename` (boolean): Allow file rename instead of overwrite?
100
+ * `buffered_upload` (boolean): If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
100
101
 
101
102
 
102
103
  ---
@@ -132,7 +133,8 @@ Files::File.create(path,
132
133
  provided_mtime: "2000-01-01T01:00:00Z",
133
134
  restart: 1,
134
135
  size: 1,
135
- with_rename: false
136
+ with_rename: false,
137
+ buffered_upload: false
136
138
  )
137
139
  ```
138
140
 
@@ -152,6 +154,7 @@ Files::File.create(path,
152
154
  * `size` (int64): Size of file.
153
155
  * `structure` (string): If copying folder, copy just the structure?
154
156
  * `with_rename` (boolean): Allow file rename instead of overwrite?
157
+ * `buffered_upload` (boolean): If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
155
158
 
156
159
 
157
160
  ---
@@ -11,6 +11,7 @@
11
11
  "remote_home_path": "/home/user1",
12
12
  "name": "My Remote server",
13
13
  "port": 1,
14
+ "buffer_uploads_always": true,
14
15
  "max_connections": 1,
15
16
  "pin_to_site_region": true,
16
17
  "pinned_region": "us-east-1",
@@ -69,6 +70,7 @@
69
70
  * `remote_home_path` (string): Initial home folder on remote server
70
71
  * `name` (string): Internal name for your reference
71
72
  * `port` (int64): Port for remote server. Not needed for S3.
73
+ * `buffer_uploads_always` (boolean): If true, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com.
72
74
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
73
75
  * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
74
76
  * `pinned_region` (string): If set, all communications with this remote server are made through the provided region.
@@ -198,6 +200,7 @@ Files::RemoteServer.create(
198
200
  azure_files_storage_share_name: "share-name",
199
201
  backblaze_b2_bucket: "my-bucket",
200
202
  backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
203
+ buffer_uploads_always: true,
201
204
  cloudflare_access_key: "example",
202
205
  cloudflare_bucket: "my-bucket",
203
206
  cloudflare_endpoint: "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
@@ -268,6 +271,7 @@ Files::RemoteServer.create(
268
271
  * `azure_files_storage_share_name` (string): Azure Files: Storage Share name
269
272
  * `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage: Bucket name
270
273
  * `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage: S3 Endpoint
274
+ * `buffer_uploads_always` (boolean): If true, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com.
271
275
  * `cloudflare_access_key` (string): Cloudflare: Access Key.
272
276
  * `cloudflare_bucket` (string): Cloudflare: Bucket name
273
277
  * `cloudflare_endpoint` (string): Cloudflare: endpoint
@@ -359,6 +363,7 @@ Files::RemoteServer.update(id,
359
363
  azure_files_storage_share_name: "share-name",
360
364
  backblaze_b2_bucket: "my-bucket",
361
365
  backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
366
+ buffer_uploads_always: true,
362
367
  cloudflare_access_key: "example",
363
368
  cloudflare_bucket: "my-bucket",
364
369
  cloudflare_endpoint: "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
@@ -430,6 +435,7 @@ Files::RemoteServer.update(id,
430
435
  * `azure_files_storage_share_name` (string): Azure Files: Storage Share name
431
436
  * `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage: Bucket name
432
437
  * `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage: S3 Endpoint
438
+ * `buffer_uploads_always` (boolean): If true, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com.
433
439
  * `cloudflare_access_key` (string): Cloudflare: Access Key.
434
440
  * `cloudflare_bucket` (string): Cloudflare: Bucket name
435
441
  * `cloudflare_endpoint` (string): Cloudflare: endpoint
@@ -538,6 +544,7 @@ remote_server.update(
538
544
  azure_files_storage_share_name: "share-name",
539
545
  backblaze_b2_bucket: "my-bucket",
540
546
  backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
547
+ buffer_uploads_always: true,
541
548
  cloudflare_access_key: "example",
542
549
  cloudflare_bucket: "my-bucket",
543
550
  cloudflare_endpoint: "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
@@ -609,6 +616,7 @@ remote_server.update(
609
616
  * `azure_files_storage_share_name` (string): Azure Files: Storage Share name
610
617
  * `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage: Bucket name
611
618
  * `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage: S3 Endpoint
619
+ * `buffer_uploads_always` (boolean): If true, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com.
612
620
  * `cloudflare_access_key` (string): Cloudflare: Access Key.
613
621
  * `cloudflare_bucket` (string): Cloudflare: Bucket name
614
622
  * `cloudflare_endpoint` (string): Cloudflare: endpoint
@@ -6,6 +6,11 @@
6
6
  {
7
7
  "id": 1,
8
8
  "authentication_method": "password",
9
+ "group_ids": [
10
+ 1,
11
+ 2,
12
+ 3
13
+ ],
9
14
  "inactivity_days": 12,
10
15
  "include_folder_admins": true,
11
16
  "include_site_admins": true,
@@ -18,6 +23,7 @@
18
23
 
19
24
  * `id` (int64): User Lifecycle Rule ID
20
25
  * `authentication_method` (string): User authentication method for the rule
26
+ * `group_ids` (array(int64)): Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
21
27
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies
22
28
  * `include_folder_admins` (boolean): Include folder admins in the rule
23
29
  * `include_site_admins` (boolean): Include site admins in the rule
@@ -61,6 +67,7 @@ Files::UserLifecycleRule.find(id)
61
67
  ```
62
68
  Files::UserLifecycleRule.create(
63
69
  authentication_method: "password",
70
+ group_ids: [1,2,3],
64
71
  inactivity_days: 12,
65
72
  include_site_admins: true,
66
73
  include_folder_admins: true,
@@ -73,6 +80,7 @@ Files::UserLifecycleRule.create(
73
80
 
74
81
  * `action` (string): Action to take on inactive users (disable or delete)
75
82
  * `authentication_method` (string): User authentication method for the rule
83
+ * `group_ids` (array(int64)): Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
76
84
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies
77
85
  * `include_site_admins` (boolean): Include site admins in the rule
78
86
  * `include_folder_admins` (boolean): Include folder admins in the rule
@@ -87,6 +95,7 @@ Files::UserLifecycleRule.create(
87
95
  ```
88
96
  Files::UserLifecycleRule.update(id,
89
97
  authentication_method: "password",
98
+ group_ids: [1,2,3],
90
99
  inactivity_days: 12,
91
100
  include_site_admins: true,
92
101
  include_folder_admins: true,
@@ -100,6 +109,7 @@ Files::UserLifecycleRule.update(id,
100
109
  * `id` (int64): Required - User Lifecycle Rule ID.
101
110
  * `action` (string): Action to take on inactive users (disable or delete)
102
111
  * `authentication_method` (string): User authentication method for the rule
112
+ * `group_ids` (array(int64)): Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
103
113
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies
104
114
  * `include_site_admins` (boolean): Include site admins in the rule
105
115
  * `include_folder_admins` (boolean): Include folder admins in the rule
@@ -129,6 +139,7 @@ user_lifecycle_rule = Files::UserLifecycleRule.find(id)
129
139
 
130
140
  user_lifecycle_rule.update(
131
141
  authentication_method: "password",
142
+ group_ids: [1,2,3],
132
143
  inactivity_days: 12,
133
144
  include_site_admins: true,
134
145
  include_folder_admins: true,
@@ -142,6 +153,7 @@ user_lifecycle_rule.update(
142
153
  * `id` (int64): Required - User Lifecycle Rule ID.
143
154
  * `action` (string): Action to take on inactive users (disable or delete)
144
155
  * `authentication_method` (string): User authentication method for the rule
156
+ * `group_ids` (array(int64)): Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
145
157
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies
146
158
  * `include_site_admins` (boolean): Include site admins in the rule
147
159
  * `include_folder_admins` (boolean): Include folder admins in the rule
@@ -958,6 +958,15 @@ module Files
958
958
  @attributes[:with_rename] = value
959
959
  end
960
960
 
961
+ # boolean - If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
962
+ def buffered_upload
963
+ @attributes[:buffered_upload]
964
+ end
965
+
966
+ def buffered_upload=(value)
967
+ @attributes[:buffered_upload] = value
968
+ end
969
+
961
970
  # Download File
962
971
  #
963
972
  # Parameters:
@@ -1110,6 +1119,7 @@ module Files
1110
1119
  # size - int64 - Size of file.
1111
1120
  # structure - string - If copying folder, copy just the structure?
1112
1121
  # with_rename - boolean - Allow file rename instead of overwrite?
1122
+ # buffered_upload - boolean - If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
1113
1123
  def self.create(path, params = {}, options = {})
1114
1124
  params ||= {}
1115
1125
  params[:path] = path
@@ -72,6 +72,15 @@ module Files
72
72
  @attributes[:port] = value
73
73
  end
74
74
 
75
+ # boolean - If true, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com.
76
+ def buffer_uploads_always
77
+ @attributes[:buffer_uploads_always]
78
+ end
79
+
80
+ def buffer_uploads_always=(value)
81
+ @attributes[:buffer_uploads_always] = value
82
+ end
83
+
75
84
  # int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
76
85
  def max_connections
77
86
  @attributes[:max_connections]
@@ -740,6 +749,7 @@ module Files
740
749
  # azure_files_storage_share_name - string - Azure Files: Storage Share name
741
750
  # backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
742
751
  # backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
752
+ # buffer_uploads_always - boolean - If true, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com.
743
753
  # cloudflare_access_key - string - Cloudflare: Access Key.
744
754
  # cloudflare_bucket - string - Cloudflare: Bucket name
745
755
  # cloudflare_endpoint - string - Cloudflare: endpoint
@@ -952,6 +962,7 @@ module Files
952
962
  # azure_files_storage_share_name - string - Azure Files: Storage Share name
953
963
  # backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
954
964
  # backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
965
+ # buffer_uploads_always - boolean - If true, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com.
955
966
  # cloudflare_access_key - string - Cloudflare: Access Key.
956
967
  # cloudflare_bucket - string - Cloudflare: Bucket name
957
968
  # cloudflare_endpoint - string - Cloudflare: endpoint
@@ -1119,6 +1130,7 @@ module Files
1119
1130
  # azure_files_storage_share_name - string - Azure Files: Storage Share name
1120
1131
  # backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
1121
1132
  # backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
1133
+ # buffer_uploads_always - boolean - If true, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com.
1122
1134
  # cloudflare_access_key - string - Cloudflare: Access Key.
1123
1135
  # cloudflare_bucket - string - Cloudflare: Bucket name
1124
1136
  # cloudflare_endpoint - string - Cloudflare: endpoint
@@ -27,6 +27,15 @@ module Files
27
27
  @attributes[:authentication_method] = value
28
28
  end
29
29
 
30
+ # array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
31
+ def group_ids
32
+ @attributes[:group_ids]
33
+ end
34
+
35
+ def group_ids=(value)
36
+ @attributes[:group_ids] = value
37
+ end
38
+
30
39
  # int64 - Number of days of inactivity before the rule applies
31
40
  def inactivity_days
32
41
  @attributes[:inactivity_days]
@@ -93,6 +102,7 @@ module Files
93
102
  # Parameters:
94
103
  # action - string - Action to take on inactive users (disable or delete)
95
104
  # authentication_method - string - User authentication method for the rule
105
+ # group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
96
106
  # inactivity_days - int64 - Number of days of inactivity before the rule applies
97
107
  # include_site_admins - boolean - Include site admins in the rule
98
108
  # include_folder_admins - boolean - Include folder admins in the rule
@@ -105,6 +115,7 @@ module Files
105
115
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
106
116
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
107
117
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
118
+ raise InvalidParameterError.new("Bad parameter: group_ids must be an Array") if params[:group_ids] and !params[:group_ids].is_a?(Array)
108
119
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
109
120
  raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
110
121
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -174,6 +185,7 @@ module Files
174
185
  # Parameters:
175
186
  # action - string - Action to take on inactive users (disable or delete)
176
187
  # authentication_method - string - User authentication method for the rule
188
+ # group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
177
189
  # inactivity_days - int64 - Number of days of inactivity before the rule applies
178
190
  # include_site_admins - boolean - Include site admins in the rule
179
191
  # include_folder_admins - boolean - Include folder admins in the rule
@@ -182,6 +194,7 @@ module Files
182
194
  def self.create(params = {}, options = {})
183
195
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
184
196
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
197
+ raise InvalidParameterError.new("Bad parameter: group_ids must be an Array") if params[:group_ids] and !params[:group_ids].is_a?(Array)
185
198
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
186
199
  raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
187
200
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -193,6 +206,7 @@ module Files
193
206
  # Parameters:
194
207
  # action - string - Action to take on inactive users (disable or delete)
195
208
  # authentication_method - string - User authentication method for the rule
209
+ # group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
196
210
  # inactivity_days - int64 - Number of days of inactivity before the rule applies
197
211
  # include_site_admins - boolean - Include site admins in the rule
198
212
  # include_folder_admins - boolean - Include folder admins in the rule
@@ -204,6 +218,7 @@ module Files
204
218
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
205
219
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
206
220
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
221
+ raise InvalidParameterError.new("Bad parameter: group_ids must be an Array") if params[:group_ids] and !params[:group_ids].is_a?(Array)
207
222
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
208
223
  raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
209
224
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.331"
4
+ VERSION = "1.1.333"
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.331
4
+ version: 1.1.333
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-10-03 00:00:00.000000000 Z
11
+ date: 2025-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable