files.com 1.0.144 → 1.0.149
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/bundle_registration.md +20 -0
- data/docs/inbox_registration.md +18 -0
- data/docs/usage_snapshot.md +2 -0
- data/lib/files.com/errors.rb +16 -0
- data/lib/files.com/models/bundle_registration.rb +21 -0
- data/lib/files.com/models/inbox_registration.rb +19 -0
- data/lib/files.com/models/usage_snapshot.rb +5 -0
- 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: afd795469d773a6bc190d054f7d487b3f0a7a934cb4e743beb76b1d9924dd0bf
|
4
|
+
data.tar.gz: d7905582db02d9a9fea04c5c68a0d9cc26ef8bb4509f6457236912143e5795cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fec91234ec2e70e0d59c87b2c13aa16e30df5484397d3cd303a3b27dd7494ea7b15b43444067177efb8e5f9746a1156b0a84dabd3fee444df6c3891856474172
|
7
|
+
data.tar.gz: 8cacc51b4d483ea38ca8d2ce44425848577c616477349a8c20830cc3e09db313103604ef051a10c76f752f99049985320e6c225680cceec02b9545f4ff2595a7
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.149
|
data/docs/bundle_registration.md
CHANGED
@@ -21,3 +21,23 @@
|
|
21
21
|
* `inbox_code` (string): InboxRegistration cookie code, if there is an associated InboxRegistration
|
22
22
|
* `form_field_set_id` (int64): Id of associated form field set
|
23
23
|
* `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
|
24
|
+
|
25
|
+
|
26
|
+
---
|
27
|
+
|
28
|
+
## List Bundle Registrations
|
29
|
+
|
30
|
+
```
|
31
|
+
Files::BundleRegistration.list(
|
32
|
+
user_id: 1,
|
33
|
+
per_page: 1,
|
34
|
+
bundle_id: 1
|
35
|
+
)
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
|
40
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
41
|
+
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
42
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
43
|
+
* `bundle_id` (int64): Required - ID of the associated Bundle
|
data/docs/inbox_registration.md
CHANGED
@@ -19,3 +19,21 @@
|
|
19
19
|
* `email` (string): Registrant email address
|
20
20
|
* `form_field_set_id` (int64): Id of associated form field set
|
21
21
|
* `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
|
22
|
+
|
23
|
+
|
24
|
+
---
|
25
|
+
|
26
|
+
## List Inbox Registrations
|
27
|
+
|
28
|
+
```
|
29
|
+
Files::InboxRegistration.list(
|
30
|
+
per_page: 1,
|
31
|
+
folder_behavior_id: 1
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
35
|
+
### Parameters
|
36
|
+
|
37
|
+
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
38
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
39
|
+
* `folder_behavior_id` (int64): Required - ID of the associated Inbox.
|
data/docs/usage_snapshot.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"start_at": "2000-01-01T01:00:00Z",
|
9
9
|
"end_at": "2000-01-01T01:00:00Z",
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
11
|
+
"high_water_user_count": 1.0,
|
11
12
|
"current_storage": 1.0,
|
12
13
|
"high_water_storage": 1.0,
|
13
14
|
"total_downloads": 1,
|
@@ -24,6 +25,7 @@
|
|
24
25
|
* `start_at` (date-time): Site usage report start date/time
|
25
26
|
* `end_at` (date-time): Site usage report end date/time
|
26
27
|
* `created_at` (date-time): Site usage report created at date/time
|
28
|
+
* `high_water_user_count` (double): Site usage report highest usage in time period
|
27
29
|
* `current_storage` (double): Current site usage as of report
|
28
30
|
* `high_water_storage` (double): Site usage report highest usage in time period
|
29
31
|
* `total_downloads` (int64): Number of downloads in report time period
|
data/lib/files.com/errors.rb
CHANGED
@@ -64,7 +64,9 @@ module Files
|
|
64
64
|
class DatetimeParseError < BadRequestError; end
|
65
65
|
class DestinationSameError < BadRequestError; end
|
66
66
|
class FolderMustNotBeAFileError < BadRequestError; end
|
67
|
+
class InvalidBodyError < BadRequestError; end
|
67
68
|
class InvalidCursorError < BadRequestError; end
|
69
|
+
class InvalidEtagsError < BadRequestError; end
|
68
70
|
class InvalidFilterCombinationError < BadRequestError; end
|
69
71
|
class InvalidFilterFieldError < BadRequestError; end
|
70
72
|
class InvalidInputEncodingError < BadRequestError; end
|
@@ -72,8 +74,12 @@ module Files
|
|
72
74
|
class InvalidOauthProviderError < BadRequestError; end
|
73
75
|
class InvalidReturnToUrlError < BadRequestError; end
|
74
76
|
class InvalidUploadOffsetError < BadRequestError; end
|
77
|
+
class InvalidUploadPartGapError < BadRequestError; end
|
78
|
+
class InvalidUploadPartSizeError < BadRequestError; end
|
79
|
+
class MethodNotAllowedError < BadRequestError; end
|
75
80
|
class NoValidInputParamsError < BadRequestError; end
|
76
81
|
class OperationOnNonScimResourceError < BadRequestError; end
|
82
|
+
class PartNumberTooLargeError < BadRequestError; end
|
77
83
|
class ReauthenticationNeededFieldsError < BadRequestError; end
|
78
84
|
class RequestParamPathCannotHaveTrailingWhitespaceError < BadRequestError; end
|
79
85
|
class RequestParamsContainInvalidCharacterError < BadRequestError; end
|
@@ -106,6 +112,7 @@ module Files
|
|
106
112
|
class ApiKeyOnlyForDesktopAppError < NotAuthorizedError; end
|
107
113
|
class ApiKeyOnlyForOfficeIntegrationError < NotAuthorizedError; end
|
108
114
|
class BillingPermissionRequiredError < NotAuthorizedError; end
|
115
|
+
class BundleMaximumUsesReachedError < NotAuthorizedError; end
|
109
116
|
class CannotLoginWhileUsingKeyError < NotAuthorizedError; end
|
110
117
|
class CantActForOtherUserError < NotAuthorizedError; end
|
111
118
|
class ContactAdminForPasswordChangeHelpError < NotAuthorizedError; end
|
@@ -147,23 +154,32 @@ module Files
|
|
147
154
|
|
148
155
|
class ProcessingFailureError < APIError; end
|
149
156
|
class DestinationExistsError < ProcessingFailureError; end
|
157
|
+
class DestinationFolderLimitedError < ProcessingFailureError; end
|
150
158
|
class DestinationParentConflictError < ProcessingFailureError; end
|
151
159
|
class DestinationParentDoesNotExistError < ProcessingFailureError; end
|
160
|
+
class ExpiredPublicKeyError < ProcessingFailureError; end
|
152
161
|
class FailedToChangePasswordError < ProcessingFailureError; end
|
153
162
|
class FileLockedError < ProcessingFailureError; end
|
154
163
|
class FileNotUploadedError < ProcessingFailureError; end
|
155
164
|
class FilePendingProcessingError < ProcessingFailureError; end
|
165
|
+
class FileUploadedToWrongRegionError < ProcessingFailureError; end
|
156
166
|
class FolderLockedError < ProcessingFailureError; end
|
157
167
|
class FolderNotEmptyError < ProcessingFailureError; end
|
158
168
|
class HistoryExportFailureError < ProcessingFailureError; end
|
159
169
|
class HistoryExportNotReadyError < ProcessingFailureError; end
|
160
170
|
class HistoryUnavailableError < ProcessingFailureError; end
|
161
171
|
class InvalidBundleCodeError < ProcessingFailureError; end
|
172
|
+
class InvalidFileTypeError < ProcessingFailureError; end
|
173
|
+
class InvalidFilenameError < ProcessingFailureError; end
|
174
|
+
class InvalidRangeError < ProcessingFailureError; end
|
162
175
|
class ModelSaveErrorError < ProcessingFailureError; end
|
176
|
+
class MultipartUploadsRequiredForRemotesError < ProcessingFailureError; end
|
177
|
+
class MultipleProcessingErrorsError < ProcessingFailureError; end
|
163
178
|
class RemoteServerErrorError < ProcessingFailureError; end
|
164
179
|
class ResourceLockedError < ProcessingFailureError; end
|
165
180
|
class SubfolderLockedError < ProcessingFailureError; end
|
166
181
|
class TwoFactorAuthenticationCodeAlreadySentError < ProcessingFailureError; end
|
182
|
+
class UpdatesNotAllowedForRemotesError < ProcessingFailureError; end
|
167
183
|
|
168
184
|
class RateLimitedError < APIError; end
|
169
185
|
class ReauthenticationRateLimitedError < RateLimitedError; end
|
@@ -43,5 +43,26 @@ module Files
|
|
43
43
|
def form_field_data
|
44
44
|
@attributes[:form_field_data]
|
45
45
|
end
|
46
|
+
|
47
|
+
# Parameters:
|
48
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
49
|
+
# cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
50
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
51
|
+
# bundle_id (required) - int64 - ID of the associated Bundle
|
52
|
+
def self.list(params = {}, options = {})
|
53
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
54
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
55
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
56
|
+
raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params.dig(:bundle_id) and !params.dig(:bundle_id).is_a?(Integer)
|
57
|
+
raise MissingParameterError.new("Parameter missing: bundle_id") unless params.dig(:bundle_id)
|
58
|
+
|
59
|
+
List.new(BundleRegistration, params) do
|
60
|
+
Api.send_request("/bundle_registrations", :get, params, options)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.all(params = {}, options = {})
|
65
|
+
list(params, options)
|
66
|
+
end
|
46
67
|
end
|
47
68
|
end
|
@@ -38,5 +38,24 @@ module Files
|
|
38
38
|
def form_field_data
|
39
39
|
@attributes[:form_field_data]
|
40
40
|
end
|
41
|
+
|
42
|
+
# Parameters:
|
43
|
+
# cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
44
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
45
|
+
# folder_behavior_id (required) - int64 - ID of the associated Inbox.
|
46
|
+
def self.list(params = {}, options = {})
|
47
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
48
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
49
|
+
raise InvalidParameterError.new("Bad parameter: folder_behavior_id must be an Integer") if params.dig(:folder_behavior_id) and !params.dig(:folder_behavior_id).is_a?(Integer)
|
50
|
+
raise MissingParameterError.new("Parameter missing: folder_behavior_id") unless params.dig(:folder_behavior_id)
|
51
|
+
|
52
|
+
List.new(InboxRegistration, params) do
|
53
|
+
Api.send_request("/inbox_registrations", :get, params, options)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.all(params = {}, options = {})
|
58
|
+
list(params, options)
|
59
|
+
end
|
41
60
|
end
|
42
61
|
end
|
@@ -29,6 +29,11 @@ module Files
|
|
29
29
|
@attributes[:created_at]
|
30
30
|
end
|
31
31
|
|
32
|
+
# double - Site usage report highest usage in time period
|
33
|
+
def high_water_user_count
|
34
|
+
@attributes[:high_water_user_count]
|
35
|
+
end
|
36
|
+
|
32
37
|
# double - Current site usage as of report
|
33
38
|
def current_storage
|
34
39
|
@attributes[:current_storage]
|
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.0.
|
4
|
+
version: 1.0.149
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|