files.com 1.1.159 → 1.1.161
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/_VERSION +1 -1
- data/docs/bundle.md +2 -1
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/bundle.rb +3 -1
- 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: 180185b1cb0eca2ba0bf6e1702c0d68059f507c5c76239e9419ce715920be8ca
|
4
|
+
data.tar.gz: e7dd254e99a9acbbd6ad9f4adca3030e0658a2f2bae1215d25c21e98531ccf4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa279304ac9a4e12e6910efed3beb6613884b53f89b7a6c15570eed3671d4e816f15d9c85cc453d5658fe27be448303d43121249d8e8699ab89562549b84ce2b
|
7
|
+
data.tar.gz: d53e24169766d285f5867f838f9ec3cbadc69b3db96b44ae4bf28439d7d160a16bcc453af2603e2fc0e48b43b551494fe36dd7cd8391e4bfae4e506983efaee3
|
data/README.md
CHANGED
@@ -337,6 +337,7 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
|
|
337
337
|
|`DatetimeParseError`| `BadRequestError` |
|
338
338
|
|`DestinationSameError`| `BadRequestError` |
|
339
339
|
|`FolderMustNotBeAFileError`| `BadRequestError` |
|
340
|
+
|`FoldersNotAllowedError`| `BadRequestError` |
|
340
341
|
|`InvalidBodyError`| `BadRequestError` |
|
341
342
|
|`InvalidCursorError`| `BadRequestError` |
|
342
343
|
|`InvalidCursorTypeForSortError`| `BadRequestError` |
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.161
|
data/docs/bundle.md
CHANGED
@@ -151,9 +151,10 @@ Files::Bundle.list(
|
|
151
151
|
* `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.
|
152
152
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
153
153
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `code` or `note`.
|
154
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
154
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `code`, `note` or `created_at`.
|
155
155
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
156
156
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
157
|
+
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code` and `note`.
|
157
158
|
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
158
159
|
* `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
159
160
|
|
data/lib/files.com/errors.rb
CHANGED
@@ -53,6 +53,7 @@ module Files
|
|
53
53
|
class DatetimeParseError < BadRequestError; end
|
54
54
|
class DestinationSameError < BadRequestError; end
|
55
55
|
class FolderMustNotBeAFileError < BadRequestError; end
|
56
|
+
class FoldersNotAllowedError < BadRequestError; end
|
56
57
|
class InvalidBodyError < BadRequestError; end
|
57
58
|
class InvalidCursorError < BadRequestError; end
|
58
59
|
class InvalidCursorTypeForSortError < BadRequestError; end
|
@@ -519,9 +519,10 @@ module Files
|
|
519
519
|
# 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.
|
520
520
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
521
521
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `code` or `note`.
|
522
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
522
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `code`, `note` or `created_at`.
|
523
523
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
524
524
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
525
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code` and `note`.
|
525
526
|
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
526
527
|
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
527
528
|
def self.list(params = {}, options = {})
|
@@ -532,6 +533,7 @@ module Files
|
|
532
533
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
533
534
|
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
534
535
|
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
536
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
535
537
|
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
536
538
|
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
537
539
|
|
data/lib/files.com/version.rb
CHANGED