files.com 1.1.160 → 1.1.162
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/history.md +4 -4
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/history.rb +4 -4
- data/lib/files.com/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 711ec7264f5d9f65cb4ccdd2afe0482e9995420412b055cf8238bc0050a98363
|
4
|
+
data.tar.gz: c3fcb2c2c8db232fdbeb1e459d7b9a15edb41cd10caff3b938f8dd817bd1a8c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38844c639795abfe4dca3b63ff1466962981595f9cb142d00da6a4b6080f48de3b95bfbbcc8f253df53c322ecb9fdab215d822be1dea5da35b4e4cdf48db48dc
|
7
|
+
data.tar.gz: 2a57927b4edcd352ab66305a20e3d8163e8a5932ec4955d3d6cc75f493adaff743bf0376dc17beb152c1fba7896cb4c00bb501f1d35df0926699aab66c5e073e
|
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.162
|
data/docs/history.md
CHANGED
@@ -56,7 +56,7 @@ Files::History.list_for_file(path,
|
|
56
56
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
57
57
|
* `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.
|
58
58
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
59
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
59
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `path` or `created_at`.
|
60
60
|
* `path` (string): Required - Path to operate on.
|
61
61
|
|
62
62
|
|
@@ -77,7 +77,7 @@ Files::History.list_for_folder(path,
|
|
77
77
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
78
78
|
* `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.
|
79
79
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
80
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
80
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `folder` or `created_at`.
|
81
81
|
* `path` (string): Required - Path to operate on.
|
82
82
|
|
83
83
|
|
@@ -98,7 +98,7 @@ Files::History.list_for_user(user_id,
|
|
98
98
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
99
99
|
* `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.
|
100
100
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
101
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id
|
101
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
|
102
102
|
* `user_id` (int64): Required - User ID.
|
103
103
|
|
104
104
|
|
@@ -119,7 +119,7 @@ Files::History.list_logins(
|
|
119
119
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
120
120
|
* `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.
|
121
121
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
122
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
122
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
|
123
123
|
|
124
124
|
|
125
125
|
---
|
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
|
@@ -85,7 +85,7 @@ module Files
|
|
85
85
|
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
86
86
|
# 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.
|
87
87
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
88
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
88
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `path` or `created_at`.
|
89
89
|
# path (required) - string - Path to operate on.
|
90
90
|
def self.list_for_file(path, params = {}, options = {})
|
91
91
|
params ||= {}
|
@@ -110,7 +110,7 @@ module Files
|
|
110
110
|
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
111
111
|
# 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.
|
112
112
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
113
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
113
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `folder` or `created_at`.
|
114
114
|
# path (required) - string - Path to operate on.
|
115
115
|
def self.list_for_folder(path, params = {}, options = {})
|
116
116
|
params ||= {}
|
@@ -135,7 +135,7 @@ module Files
|
|
135
135
|
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
136
136
|
# 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.
|
137
137
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
138
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id
|
138
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
|
139
139
|
# user_id (required) - int64 - User ID.
|
140
140
|
def self.list_for_user(user_id, params = {}, options = {})
|
141
141
|
params ||= {}
|
@@ -160,7 +160,7 @@ module Files
|
|
160
160
|
# display - string - Display format. Leave blank or set to `full` or `parent`.
|
161
161
|
# 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.
|
162
162
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
163
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
163
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
|
164
164
|
def self.list_logins(params = {}, options = {})
|
165
165
|
raise InvalidParameterError.new("Bad parameter: start_at must be an String") if params[:start_at] and !params[:start_at].is_a?(String)
|
166
166
|
raise InvalidParameterError.new("Bad parameter: end_at must be an String") if params[:end_at] and !params[:end_at].is_a?(String)
|
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.162
|
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-10-
|
11
|
+
date: 2024-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
354
|
- !ruby/object:Gem::Version
|
355
355
|
version: '0'
|
356
356
|
requirements: []
|
357
|
-
rubygems_version: 3.5.
|
357
|
+
rubygems_version: 3.5.20
|
358
358
|
signing_key:
|
359
359
|
specification_version: 4
|
360
360
|
summary: Files.com Ruby client.
|