files.com 1.1.587 → 1.1.589
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 +7 -0
- data/lib/files.com/models/file.rb +12 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +0 -1
- metadata +1 -3
- data/docs/priority.md +0 -28
- data/lib/files.com/models/priority.rb +0 -43
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c425bc08860abfce19896c570e9839ac0837c7cde03bacae445601d44af224b1
|
|
4
|
+
data.tar.gz: b67fd865e85e6ca6c725167a0074518434f3f8cef2770490f76a3ec86bce057f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22cde396547b278b162050d4db6439f86e320be5e23c8a61c82a7039d15b2680e61a3b9346fa438ba1bb2df2188dbbcf4f9bcce6644883afe503ff1ebe3fd315
|
|
7
|
+
data.tar.gz: 7ad317c46635f6b082ad07323a4790fbef882eb328b4fef38e38ec79d989fae715daab041ba829e0b5713a6acae7f947342f8fd4c5470f88312fc0cd8fd84b61
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.589
|
data/docs/file.md
CHANGED
|
@@ -95,6 +95,7 @@ may places where a Ruby File object can be used.
|
|
|
95
95
|
* `parts` (int64): How many parts to fetch?
|
|
96
96
|
* `ref` (string):
|
|
97
97
|
* `restart` (int64): File byte offset to restart from.
|
|
98
|
+
* `copy_behaviors` (boolean): If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
98
99
|
* `structure` (string): If copying folder, copy just the structure?
|
|
99
100
|
* `with_rename` (boolean): Allow file rename instead of overwrite?
|
|
100
101
|
* `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.
|
|
@@ -133,6 +134,7 @@ Files::File.create(path,
|
|
|
133
134
|
provided_mtime: "2000-01-01T01:00:00Z",
|
|
134
135
|
restart: 1,
|
|
135
136
|
size: 1,
|
|
137
|
+
copy_behaviors: false,
|
|
136
138
|
with_rename: false,
|
|
137
139
|
buffered_upload: false
|
|
138
140
|
)
|
|
@@ -152,6 +154,7 @@ Files::File.create(path,
|
|
|
152
154
|
* `ref` (string):
|
|
153
155
|
* `restart` (int64): File byte offset to restart from.
|
|
154
156
|
* `size` (int64): Size of file.
|
|
157
|
+
* `copy_behaviors` (boolean): If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
155
158
|
* `structure` (string): If copying folder, copy just the structure?
|
|
156
159
|
* `with_rename` (boolean): Allow file rename instead of overwrite?
|
|
157
160
|
* `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.
|
|
@@ -232,6 +235,7 @@ Files::File.zip_list_contents(path)
|
|
|
232
235
|
```
|
|
233
236
|
Files::File.copy(path,
|
|
234
237
|
destination: "destination",
|
|
238
|
+
copy_behaviors: false,
|
|
235
239
|
structure: false,
|
|
236
240
|
overwrite: false
|
|
237
241
|
)
|
|
@@ -241,6 +245,7 @@ Files::File.copy(path,
|
|
|
241
245
|
|
|
242
246
|
* `path` (string): Required - Path to operate on.
|
|
243
247
|
* `destination` (string): Required - Copy destination path.
|
|
248
|
+
* `copy_behaviors` (boolean): If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
244
249
|
* `structure` (boolean): Copy structure only?
|
|
245
250
|
* `overwrite` (boolean): Overwrite existing file(s) in the destination?
|
|
246
251
|
|
|
@@ -415,6 +420,7 @@ file = Files::File.find(path)
|
|
|
415
420
|
|
|
416
421
|
file.copy(
|
|
417
422
|
destination: "destination",
|
|
423
|
+
copy_behaviors: false,
|
|
418
424
|
structure: false,
|
|
419
425
|
overwrite: false
|
|
420
426
|
)
|
|
@@ -424,6 +430,7 @@ file.copy(
|
|
|
424
430
|
|
|
425
431
|
* `path` (string): Required - Path to operate on.
|
|
426
432
|
* `destination` (string): Required - Copy destination path.
|
|
433
|
+
* `copy_behaviors` (boolean): If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
427
434
|
* `structure` (boolean): Copy structure only?
|
|
428
435
|
* `overwrite` (boolean): Overwrite existing file(s) in the destination?
|
|
429
436
|
|
|
@@ -940,6 +940,15 @@ module Files
|
|
|
940
940
|
@attributes[:restart] = value
|
|
941
941
|
end
|
|
942
942
|
|
|
943
|
+
# boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
944
|
+
def copy_behaviors
|
|
945
|
+
@attributes[:copy_behaviors]
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
def copy_behaviors=(value)
|
|
949
|
+
@attributes[:copy_behaviors] = value
|
|
950
|
+
end
|
|
951
|
+
|
|
943
952
|
# string - If copying folder, copy just the structure?
|
|
944
953
|
def structure
|
|
945
954
|
@attributes[:structure]
|
|
@@ -1034,6 +1043,7 @@ module Files
|
|
|
1034
1043
|
#
|
|
1035
1044
|
# Parameters:
|
|
1036
1045
|
# destination (required) - string - Copy destination path.
|
|
1046
|
+
# copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
1037
1047
|
# structure - boolean - Copy structure only?
|
|
1038
1048
|
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
|
1039
1049
|
def copy(params = {})
|
|
@@ -1147,6 +1157,7 @@ module Files
|
|
|
1147
1157
|
# ref - string -
|
|
1148
1158
|
# restart - int64 - File byte offset to restart from.
|
|
1149
1159
|
# size - int64 - Size of file.
|
|
1160
|
+
# copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
1150
1161
|
# structure - string - If copying folder, copy just the structure?
|
|
1151
1162
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
|
1152
1163
|
# 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.
|
|
@@ -1240,6 +1251,7 @@ module Files
|
|
|
1240
1251
|
#
|
|
1241
1252
|
# Parameters:
|
|
1242
1253
|
# destination (required) - string - Copy destination path.
|
|
1254
|
+
# copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
1243
1255
|
# structure - boolean - Copy structure only?
|
|
1244
1256
|
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
|
1245
1257
|
def self.copy(path, params = {}, options = {})
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -111,7 +111,6 @@ require "files.com/models/payment"
|
|
|
111
111
|
require "files.com/models/payment_line_item"
|
|
112
112
|
require "files.com/models/permission"
|
|
113
113
|
require "files.com/models/preview"
|
|
114
|
-
require "files.com/models/priority"
|
|
115
114
|
require "files.com/models/project"
|
|
116
115
|
require "files.com/models/public_hosting_request_log"
|
|
117
116
|
require "files.com/models/public_ip_address"
|
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.589
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
@@ -250,7 +250,6 @@ files:
|
|
|
250
250
|
- docs/payment_line_item.md
|
|
251
251
|
- docs/permission.md
|
|
252
252
|
- docs/preview.md
|
|
253
|
-
- docs/priority.md
|
|
254
253
|
- docs/project.md
|
|
255
254
|
- docs/public_hosting_request_log.md
|
|
256
255
|
- docs/public_ip_address.md
|
|
@@ -377,7 +376,6 @@ files:
|
|
|
377
376
|
- lib/files.com/models/payment_line_item.rb
|
|
378
377
|
- lib/files.com/models/permission.rb
|
|
379
378
|
- lib/files.com/models/preview.rb
|
|
380
|
-
- lib/files.com/models/priority.rb
|
|
381
379
|
- lib/files.com/models/project.rb
|
|
382
380
|
- lib/files.com/models/public_hosting_request_log.rb
|
|
383
381
|
- lib/files.com/models/public_ip_address.rb
|
data/docs/priority.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Priority
|
|
2
|
-
|
|
3
|
-
## Example Priority Object
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
{
|
|
7
|
-
"path": "foo/bar",
|
|
8
|
-
"color": "pink"
|
|
9
|
-
}
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
* `path` (string): The path corresponding to the priority color. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
13
|
-
* `color` (string): The priority color
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## List Priorities
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
Files::Priority.list(path)
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### Parameters
|
|
25
|
-
|
|
26
|
-
* `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.
|
|
27
|
-
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
28
|
-
* `path` (string): Required - The path to query for priorities
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class Priority
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# string - The path corresponding to the priority color. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
13
|
-
def path
|
|
14
|
-
@attributes[:path]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - The priority color
|
|
18
|
-
def color
|
|
19
|
-
@attributes[:color]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# Parameters:
|
|
23
|
-
# 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.
|
|
24
|
-
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
25
|
-
# path (required) - string - The path to query for priorities
|
|
26
|
-
def self.list(path, params = {}, options = {})
|
|
27
|
-
params ||= {}
|
|
28
|
-
params[:path] = path
|
|
29
|
-
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
30
|
-
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
31
|
-
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
32
|
-
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
33
|
-
|
|
34
|
-
List.new(Priority, params) do
|
|
35
|
-
Api.send_request("/priorities", :get, params, options)
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def self.all(path, params = {}, options = {})
|
|
40
|
-
list(path, params, options)
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|