files.com 1.1.686 → 1.1.687
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/direct_connection_info.md +21 -0
- data/docs/file.md +26 -5
- data/docs/file_upload_part.md +11 -1
- data/docs/folder.md +10 -0
- data/lib/files.com/models/direct_connection_info.rb +37 -0
- data/lib/files.com/models/file.rb +23 -0
- data/lib/files.com/models/file_upload_part.rb +5 -0
- data/lib/files.com/models/folder.rb +9 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35ca8dcc5a237d7b76c6fa8e5b895bbc8e069b3429edf8b7e03b4fbecdd1e6ab
|
|
4
|
+
data.tar.gz: d381dcb01aa97e904c4be016758f914edbd50b7f9176b67229a4dfcd7ae8dfb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc2da7f5c289cd1b596932cd5739d720cad84c76422fd9182e87a97897f9ab7798b18dbe1a4e4ef7b3ceaee944b568a73661820f40c92d14567fb2c2df492221
|
|
7
|
+
data.tar.gz: 44e06277c09e7361f821bad2ae86e9cf2d01a2f2143864047b0315a1c09789ba868af5cd7ed04a0ffb568d7d3054f219992a96306c83635d7d63f32a325c9d69
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.687
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DirectConnectionInfo
|
|
2
|
+
|
|
3
|
+
## Example DirectConnectionInfo Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"version": 1,
|
|
8
|
+
"server_name": "example",
|
|
9
|
+
"addresses": [
|
|
10
|
+
"example"
|
|
11
|
+
],
|
|
12
|
+
"direct_uri": "example",
|
|
13
|
+
"ca_pem": "example"
|
|
14
|
+
}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
* `version` (int64): Direct connection information schema version.
|
|
18
|
+
* `server_name` (string): TLS server name (SNI and Host header) for the Agent's direct transfer listener.
|
|
19
|
+
* `addresses` (array(string)): Validated ip:port candidates that may be dialed over TCP+TLS for this transfer.
|
|
20
|
+
* `direct_uri` (string): Signed HTTPS URI for direct Agent transfer traffic.
|
|
21
|
+
* `ca_pem` (string): PEM-encoded CA certificate used to verify the Agent's direct transfer TLS certificate.
|
data/docs/file.md
CHANGED
|
@@ -41,6 +41,15 @@ may places where a Ruby File object can be used.
|
|
|
41
41
|
"subfolders_locked?": true,
|
|
42
42
|
"is_locked": true,
|
|
43
43
|
"download_uri": "https://mysite.files.com/...",
|
|
44
|
+
"direct_connection_info": {
|
|
45
|
+
"version": 1,
|
|
46
|
+
"server_name": "example",
|
|
47
|
+
"addresses": [
|
|
48
|
+
"example"
|
|
49
|
+
],
|
|
50
|
+
"direct_uri": "example",
|
|
51
|
+
"ca_pem": "example"
|
|
52
|
+
},
|
|
44
53
|
"priority_color": "red",
|
|
45
54
|
"preview_id": 1,
|
|
46
55
|
"preview": {
|
|
@@ -85,6 +94,7 @@ may places where a Ruby File object can be used.
|
|
|
85
94
|
* `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
|
|
86
95
|
* `is_locked` (boolean): Is this folder locked and unable to be modified?
|
|
87
96
|
* `download_uri` (string): Link to download file. Provided only in response to a download request.
|
|
97
|
+
* `direct_connection_info` (DirectConnectionInfo): Optional direct connection information for direct Agent transfer attempts
|
|
88
98
|
* `priority_color` (string): Bookmark/priority color of file/folder
|
|
89
99
|
* `preview_id` (int64): File preview ID
|
|
90
100
|
* `preview` (Preview): File preview
|
|
@@ -99,6 +109,7 @@ may places where a Ruby File object can be used.
|
|
|
99
109
|
* `structure` (string): If copying folder, copy just the structure?
|
|
100
110
|
* `with_rename` (boolean): Allow file rename instead of overwrite?
|
|
101
111
|
* `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.
|
|
112
|
+
* `with_direct_connection_info` (boolean): Include optional direct connection information for a direct Agent transfer attempt?
|
|
102
113
|
|
|
103
114
|
|
|
104
115
|
---
|
|
@@ -108,7 +119,8 @@ may places where a Ruby File object can be used.
|
|
|
108
119
|
```
|
|
109
120
|
Files::File.download(path,
|
|
110
121
|
with_previews: false,
|
|
111
|
-
with_priority_color: false
|
|
122
|
+
with_priority_color: false,
|
|
123
|
+
with_direct_connection_info: false
|
|
112
124
|
)
|
|
113
125
|
```
|
|
114
126
|
|
|
@@ -119,6 +131,7 @@ Files::File.download(path,
|
|
|
119
131
|
* `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
|
120
132
|
* `with_previews` (boolean): Include file preview information?
|
|
121
133
|
* `with_priority_color` (boolean): Include file priority color information?
|
|
134
|
+
* `with_direct_connection_info` (boolean): Include optional direct connection information for a direct Agent transfer attempt?
|
|
122
135
|
|
|
123
136
|
|
|
124
137
|
---
|
|
@@ -136,7 +149,8 @@ Files::File.create(path,
|
|
|
136
149
|
size: 1,
|
|
137
150
|
copy_behaviors: false,
|
|
138
151
|
with_rename: false,
|
|
139
|
-
buffered_upload: false
|
|
152
|
+
buffered_upload: false,
|
|
153
|
+
with_direct_connection_info: false
|
|
140
154
|
)
|
|
141
155
|
```
|
|
142
156
|
|
|
@@ -158,6 +172,7 @@ Files::File.create(path,
|
|
|
158
172
|
* `structure` (string): If copying folder, copy just the structure?
|
|
159
173
|
* `with_rename` (boolean): Allow file rename instead of overwrite?
|
|
160
174
|
* `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.
|
|
175
|
+
* `with_direct_connection_info` (boolean): Include optional direct connection information for a direct Agent transfer attempt?
|
|
161
176
|
|
|
162
177
|
|
|
163
178
|
---
|
|
@@ -396,7 +411,8 @@ Files::File.begin_upload(path,
|
|
|
396
411
|
restart: 1,
|
|
397
412
|
size: 1,
|
|
398
413
|
with_rename: false,
|
|
399
|
-
buffered_upload: false
|
|
414
|
+
buffered_upload: false,
|
|
415
|
+
with_direct_connection_info: false
|
|
400
416
|
)
|
|
401
417
|
```
|
|
402
418
|
|
|
@@ -411,6 +427,7 @@ Files::File.begin_upload(path,
|
|
|
411
427
|
* `size` (int64): Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
|
412
428
|
* `with_rename` (boolean): Allow file rename instead of overwrite?
|
|
413
429
|
* `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.
|
|
430
|
+
* `with_direct_connection_info` (boolean): Include optional direct connection information for a direct Agent transfer attempt?
|
|
414
431
|
|
|
415
432
|
|
|
416
433
|
---
|
|
@@ -422,7 +439,8 @@ file = Files::File.find(path)
|
|
|
422
439
|
|
|
423
440
|
file.download(
|
|
424
441
|
with_previews: false,
|
|
425
|
-
with_priority_color: false
|
|
442
|
+
with_priority_color: false,
|
|
443
|
+
with_direct_connection_info: false
|
|
426
444
|
)
|
|
427
445
|
```
|
|
428
446
|
|
|
@@ -433,6 +451,7 @@ file.download(
|
|
|
433
451
|
* `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
|
434
452
|
* `with_previews` (boolean): Include file preview information?
|
|
435
453
|
* `with_priority_color` (boolean): Include file priority color information?
|
|
454
|
+
* `with_direct_connection_info` (boolean): Include optional direct connection information for a direct Agent transfer attempt?
|
|
436
455
|
|
|
437
456
|
|
|
438
457
|
---
|
|
@@ -653,7 +672,8 @@ file.begin_upload(
|
|
|
653
672
|
restart: 1,
|
|
654
673
|
size: 1,
|
|
655
674
|
with_rename: false,
|
|
656
|
-
buffered_upload: false
|
|
675
|
+
buffered_upload: false,
|
|
676
|
+
with_direct_connection_info: false
|
|
657
677
|
)
|
|
658
678
|
```
|
|
659
679
|
|
|
@@ -668,3 +688,4 @@ file.begin_upload(
|
|
|
668
688
|
* `size` (int64): Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
|
669
689
|
* `with_rename` (boolean): Allow file rename instead of overwrite?
|
|
670
690
|
* `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.
|
|
691
|
+
* `with_direct_connection_info` (boolean): Include optional direct connection information for a direct Agent transfer attempt?
|
data/docs/file_upload_part.md
CHANGED
|
@@ -25,7 +25,16 @@
|
|
|
25
25
|
"partsize": 1,
|
|
26
26
|
"path": "",
|
|
27
27
|
"ref": "upload-1",
|
|
28
|
-
"upload_uri": "example"
|
|
28
|
+
"upload_uri": "example",
|
|
29
|
+
"direct_connection_info": {
|
|
30
|
+
"version": 1,
|
|
31
|
+
"server_name": "example",
|
|
32
|
+
"addresses": [
|
|
33
|
+
"example"
|
|
34
|
+
],
|
|
35
|
+
"direct_uri": "example",
|
|
36
|
+
"ca_pem": "example"
|
|
37
|
+
}
|
|
29
38
|
}
|
|
30
39
|
```
|
|
31
40
|
|
|
@@ -45,3 +54,4 @@
|
|
|
45
54
|
* `path` (string): New file path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
46
55
|
* `ref` (string): Reference name for this upload part
|
|
47
56
|
* `upload_uri` (string): URI to upload this part to
|
|
57
|
+
* `direct_connection_info` (DirectConnectionInfo): Optional direct connection information for direct Agent transfer attempts
|
data/docs/folder.md
CHANGED
|
@@ -43,6 +43,15 @@ Files::Dir is an alias of Files::Folder
|
|
|
43
43
|
"subfolders_locked?": true,
|
|
44
44
|
"is_locked": true,
|
|
45
45
|
"download_uri": "https://mysite.files.com/...",
|
|
46
|
+
"direct_connection_info": {
|
|
47
|
+
"version": 1,
|
|
48
|
+
"server_name": "example",
|
|
49
|
+
"addresses": [
|
|
50
|
+
"example"
|
|
51
|
+
],
|
|
52
|
+
"direct_uri": "example",
|
|
53
|
+
"ca_pem": "example"
|
|
54
|
+
},
|
|
46
55
|
"priority_color": "red",
|
|
47
56
|
"preview_id": 1,
|
|
48
57
|
"preview": {
|
|
@@ -87,6 +96,7 @@ Files::Dir is an alias of Files::Folder
|
|
|
87
96
|
* `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
|
|
88
97
|
* `is_locked` (boolean): Is this folder locked and unable to be modified?
|
|
89
98
|
* `download_uri` (string): Link to download file. Provided only in response to a download request.
|
|
99
|
+
* `direct_connection_info` (DirectConnectionInfo): Optional direct connection information for direct Agent transfer attempts
|
|
90
100
|
* `priority_color` (string): Bookmark/priority color of file/folder
|
|
91
101
|
* `preview_id` (int64): File preview ID
|
|
92
102
|
* `preview` (Preview): File preview
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class DirectConnectionInfo
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Direct connection information schema version.
|
|
13
|
+
def version
|
|
14
|
+
@attributes[:version]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - TLS server name (SNI and Host header) for the Agent's direct transfer listener.
|
|
18
|
+
def server_name
|
|
19
|
+
@attributes[:server_name]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# array(string) - Validated ip:port candidates that may be dialed over TCP+TLS for this transfer.
|
|
23
|
+
def addresses
|
|
24
|
+
@attributes[:addresses]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# string - Signed HTTPS URI for direct Agent transfer traffic.
|
|
28
|
+
def direct_uri
|
|
29
|
+
@attributes[:direct_uri]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# string - PEM-encoded CA certificate used to verify the Agent's direct transfer TLS certificate.
|
|
33
|
+
def ca_pem
|
|
34
|
+
@attributes[:ca_pem]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -917,6 +917,15 @@ module Files
|
|
|
917
917
|
@attributes[:download_uri] = value
|
|
918
918
|
end
|
|
919
919
|
|
|
920
|
+
# DirectConnectionInfo - Optional direct connection information for direct Agent transfer attempts
|
|
921
|
+
def direct_connection_info
|
|
922
|
+
@attributes[:direct_connection_info]
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
def direct_connection_info=(value)
|
|
926
|
+
@attributes[:direct_connection_info] = value
|
|
927
|
+
end
|
|
928
|
+
|
|
920
929
|
# string - Bookmark/priority color of file/folder
|
|
921
930
|
def priority_color
|
|
922
931
|
@attributes[:priority_color]
|
|
@@ -1043,6 +1052,15 @@ module Files
|
|
|
1043
1052
|
@attributes[:buffered_upload] = value
|
|
1044
1053
|
end
|
|
1045
1054
|
|
|
1055
|
+
# boolean - Include optional direct connection information for a direct Agent transfer attempt?
|
|
1056
|
+
def with_direct_connection_info
|
|
1057
|
+
@attributes[:with_direct_connection_info]
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
def with_direct_connection_info=(value)
|
|
1061
|
+
@attributes[:with_direct_connection_info] = value
|
|
1062
|
+
end
|
|
1063
|
+
|
|
1046
1064
|
# Download File
|
|
1047
1065
|
#
|
|
1048
1066
|
# Parameters:
|
|
@@ -1050,6 +1068,7 @@ module Files
|
|
|
1050
1068
|
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
|
1051
1069
|
# with_previews - boolean - Include file preview information?
|
|
1052
1070
|
# with_priority_color - boolean - Include file priority color information?
|
|
1071
|
+
# with_direct_connection_info - boolean - Include optional direct connection information for a direct Agent transfer attempt?
|
|
1053
1072
|
def download(params = {})
|
|
1054
1073
|
params ||= {}
|
|
1055
1074
|
params[:path] = @attributes[:path]
|
|
@@ -1248,6 +1267,7 @@ module Files
|
|
|
1248
1267
|
# size - int64 - Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
|
1249
1268
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
|
1250
1269
|
# 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.
|
|
1270
|
+
# with_direct_connection_info - boolean - Include optional direct connection information for a direct Agent transfer attempt?
|
|
1251
1271
|
def begin_upload(params = {})
|
|
1252
1272
|
params ||= {}
|
|
1253
1273
|
params[:path] = @attributes[:path]
|
|
@@ -1276,6 +1296,7 @@ module Files
|
|
|
1276
1296
|
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
|
1277
1297
|
# with_previews - boolean - Include file preview information?
|
|
1278
1298
|
# with_priority_color - boolean - Include file priority color information?
|
|
1299
|
+
# with_direct_connection_info - boolean - Include optional direct connection information for a direct Agent transfer attempt?
|
|
1279
1300
|
def self.download(path, params = {}, options = {})
|
|
1280
1301
|
params ||= {}
|
|
1281
1302
|
params[:path] = path
|
|
@@ -1305,6 +1326,7 @@ module Files
|
|
|
1305
1326
|
# structure - string - If copying folder, copy just the structure?
|
|
1306
1327
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
|
1307
1328
|
# 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.
|
|
1329
|
+
# with_direct_connection_info - boolean - Include optional direct connection information for a direct Agent transfer attempt?
|
|
1308
1330
|
def self.create(path, params = {}, options = {})
|
|
1309
1331
|
params ||= {}
|
|
1310
1332
|
params[:path] = path
|
|
@@ -1547,6 +1569,7 @@ module Files
|
|
|
1547
1569
|
# size - int64 - Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
|
1548
1570
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
|
1549
1571
|
# 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.
|
|
1572
|
+
# with_direct_connection_info - boolean - Include optional direct connection information for a direct Agent transfer attempt?
|
|
1550
1573
|
def self.begin_upload(path, params = {}, options = {})
|
|
1551
1574
|
params ||= {}
|
|
1552
1575
|
params[:path] = path
|
|
@@ -88,5 +88,10 @@ module Files
|
|
|
88
88
|
def upload_uri
|
|
89
89
|
@attributes[:upload_uri]
|
|
90
90
|
end
|
|
91
|
+
|
|
92
|
+
# DirectConnectionInfo - Optional direct connection information for direct Agent transfer attempts
|
|
93
|
+
def direct_connection_info
|
|
94
|
+
@attributes[:direct_connection_info]
|
|
95
|
+
end
|
|
91
96
|
end
|
|
92
97
|
end
|
|
@@ -434,6 +434,15 @@ module Files
|
|
|
434
434
|
@attributes[:download_uri] = value
|
|
435
435
|
end
|
|
436
436
|
|
|
437
|
+
# DirectConnectionInfo - Optional direct connection information for direct Agent transfer attempts
|
|
438
|
+
def direct_connection_info
|
|
439
|
+
@attributes[:direct_connection_info]
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
def direct_connection_info=(value)
|
|
443
|
+
@attributes[:direct_connection_info] = value
|
|
444
|
+
end
|
|
445
|
+
|
|
437
446
|
# string - Bookmark/priority color of file/folder
|
|
438
447
|
def priority_color
|
|
439
448
|
@attributes[:priority_color]
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -68,6 +68,7 @@ require "files.com/models/child_site_management_policy"
|
|
|
68
68
|
require "files.com/models/clickwrap"
|
|
69
69
|
require "files.com/models/custom_domain"
|
|
70
70
|
require "files.com/models/desktop_configuration_profile"
|
|
71
|
+
require "files.com/models/direct_connection_info"
|
|
71
72
|
require "files.com/models/dns_record"
|
|
72
73
|
require "files.com/models/email_incoming_message"
|
|
73
74
|
require "files.com/models/email_log"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.687
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
@@ -206,6 +206,7 @@ files:
|
|
|
206
206
|
- docs/clickwrap.md
|
|
207
207
|
- docs/custom_domain.md
|
|
208
208
|
- docs/desktop_configuration_profile.md
|
|
209
|
+
- docs/direct_connection_info.md
|
|
209
210
|
- docs/dns_record.md
|
|
210
211
|
- docs/email_incoming_message.md
|
|
211
212
|
- docs/email_log.md
|
|
@@ -356,6 +357,7 @@ files:
|
|
|
356
357
|
- lib/files.com/models/custom_domain.rb
|
|
357
358
|
- lib/files.com/models/desktop_configuration_profile.rb
|
|
358
359
|
- lib/files.com/models/dir.rb
|
|
360
|
+
- lib/files.com/models/direct_connection_info.rb
|
|
359
361
|
- lib/files.com/models/dns_record.rb
|
|
360
362
|
- lib/files.com/models/email_incoming_message.rb
|
|
361
363
|
- lib/files.com/models/email_log.rb
|