files.com 1.1.104 → 1.1.105
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/file.md +2 -0
- data/docs/folder.md +1 -0
- data/lib/files.com/models/file.rb +4 -0
- data/lib/files.com/models/folder.rb +2 -0
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fae4bc234f5c3380267d0fa7554532c1dac0893f0c80df77635c15592acd0eb7
|
4
|
+
data.tar.gz: e0af402980966eb954154d0a9bc4c52013ef419036695ba384e646111dc5d84b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 692a3c79ebe846e00ca706cad44e3e59f794ac47e73d51621713ed51acbd7a5e45a408bbff3f8011f2f880bc9b3a42602b42a0634a6695bd3fca865c85179257
|
7
|
+
data.tar.gz: aa56e23948e98698900e5d33d4fccd97a614b84a7f9882e0c429c5786c5c27672def4a548a0b0a423138cd7d2e0147ea55949b1ea964528f9a8de53fd07fca6b
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.105
|
data/docs/file.md
CHANGED
@@ -113,6 +113,7 @@ Files::File.download(path,
|
|
113
113
|
* `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
114
114
|
* `with_previews` (boolean): Include file preview information?
|
115
115
|
* `with_priority_color` (boolean): Include file priority color information?
|
116
|
+
* `point_in_time` (string): Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
|
116
117
|
|
117
118
|
|
118
119
|
---
|
@@ -291,6 +292,7 @@ file.download(
|
|
291
292
|
* `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
292
293
|
* `with_previews` (boolean): Include file preview information?
|
293
294
|
* `with_priority_color` (boolean): Include file priority color information?
|
295
|
+
* `point_in_time` (string): Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
|
294
296
|
|
295
297
|
|
296
298
|
---
|
data/docs/folder.md
CHANGED
@@ -114,6 +114,7 @@ Files::Folder.list_for(path,
|
|
114
114
|
* `search_all` (boolean): Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the UI. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
|
115
115
|
* `with_previews` (boolean): Include file previews?
|
116
116
|
* `with_priority_color` (boolean): Include file priority color information?
|
117
|
+
* `point_in_time` (string): Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
|
117
118
|
|
118
119
|
|
119
120
|
---
|
@@ -947,6 +947,7 @@ module Files
|
|
947
947
|
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
948
948
|
# with_previews - boolean - Include file preview information?
|
949
949
|
# with_priority_color - boolean - Include file priority color information?
|
950
|
+
# point_in_time - string - Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
|
950
951
|
def download(params = {})
|
951
952
|
params ||= {}
|
952
953
|
params[:path] = @attributes[:path]
|
@@ -954,6 +955,7 @@ module Files
|
|
954
955
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
955
956
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
956
957
|
raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
|
958
|
+
raise InvalidParameterError.new("Bad parameter: point_in_time must be an String") if params[:point_in_time] and !params[:point_in_time].is_a?(String)
|
957
959
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
958
960
|
|
959
961
|
Api.send_request("/files/#{@attributes[:path]}", :get, params, @options)
|
@@ -1065,12 +1067,14 @@ module Files
|
|
1065
1067
|
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
1066
1068
|
# with_previews - boolean - Include file preview information?
|
1067
1069
|
# with_priority_color - boolean - Include file priority color information?
|
1070
|
+
# point_in_time - string - Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
|
1068
1071
|
def self.download(path, params = {}, options = {})
|
1069
1072
|
params ||= {}
|
1070
1073
|
params[:path] = path
|
1071
1074
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
1072
1075
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
1073
1076
|
raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
|
1077
|
+
raise InvalidParameterError.new("Bad parameter: point_in_time must be an String") if params[:point_in_time] and !params[:point_in_time].is_a?(String)
|
1074
1078
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
1075
1079
|
|
1076
1080
|
response, options = Api.send_request("/files/#{params[:path]}", :get, params, options)
|
@@ -470,6 +470,7 @@ module Files
|
|
470
470
|
# search_all - boolean - Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the UI. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
|
471
471
|
# with_previews - boolean - Include file previews?
|
472
472
|
# with_priority_color - boolean - Include file priority color information?
|
473
|
+
# point_in_time - string - Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
|
473
474
|
def self.list_for(path, params = {}, options = {})
|
474
475
|
params ||= {}
|
475
476
|
params[:path] = path
|
@@ -481,6 +482,7 @@ module Files
|
|
481
482
|
raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
|
482
483
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
483
484
|
raise InvalidParameterError.new("Bad parameter: search must be an String") if params[:search] and !params[:search].is_a?(String)
|
485
|
+
raise InvalidParameterError.new("Bad parameter: point_in_time must be an String") if params[:point_in_time] and !params[:point_in_time].is_a?(String)
|
484
486
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
485
487
|
|
486
488
|
List.new(File, params) do
|
data/lib/files.com/version.rb
CHANGED
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.
|
4
|
+
version: 1.1.105
|
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-07-
|
11
|
+
date: 2024-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|