files.com 1.1.332 → 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 +4 -4
- data/_VERSION +1 -1
- data/docs/file.md +4 -1
- data/docs/remote_server.md +8 -0
- data/lib/files.com/models/file.rb +10 -0
- data/lib/files.com/models/remote_server.rb +12 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6639f4ebae12e0cbd5172924dbacabc2124059cfcf970604456497d00f0aebe9
|
4
|
+
data.tar.gz: 3749cfbd707dd49122df0e11392fe3672f9ca5773a7b7f1a53dc71efd0a17fa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48a3d0d0e12ccf05540bbe93bf91d519938a0fccbdbaca420d1f6e1ce8b0392add8194b827409e08b2f7cd632a749481f3d2777a6096019bd0bae82317ac26c5
|
7
|
+
data.tar.gz: f3bab5bb1a639c160ec430194813adf9f027517af5c94ba9e53d07b1872e3d3e27eae6602aa85f111df717f5f244e0e1519d5ea19a7755152f9ba808e06ba3cf
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
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
|
---
|
data/docs/remote_server.md
CHANGED
@@ -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
|
@@ -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
|
data/lib/files.com/version.rb
CHANGED