files.com 1.0.140 → 1.0.145
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/automation.md +14 -4
- data/docs/bundle_registration.md +20 -0
- data/docs/inbox_registration.md +18 -0
- data/docs/remote_server.md +2 -0
- data/lib/files.com/errors.rb +28 -35
- data/lib/files.com/models/automation.rb +19 -4
- 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/remote_server.rb +9 -0
- data/lib/files.com/sizable_io.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: 0d7f071709b40ff9d28f66a27f2bd34644288f32f8670f9689b253a713a6b7de
|
|
4
|
+
data.tar.gz: c539eea97daa72e3b78a8d89357b29612720252f93e6e45ca402826fdc980bab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99b22b0b16d450385db59cf93c657506d27a05abf6f55d07ebd781f56710222299b5ccda88ae58ce02f0350e3c97ce1ee1c5683866cbdefdf984e4a0223f4f58
|
|
7
|
+
data.tar.gz: e3e29c40f669a7e79b0aca20b6a884d805cf89c593cead44b4141be7ff19aa39a11afa55b0f80be568e31ba715a68919c3410fa7028acec8e4c32f5c73197db5
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.145
|
data/docs/automation.md
CHANGED
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"source": "",
|
|
25
25
|
"destination": "",
|
|
26
|
+
"destinations": [
|
|
27
|
+
"destination"
|
|
28
|
+
],
|
|
26
29
|
"destination_replace_from": "",
|
|
27
30
|
"destination_replace_to": "",
|
|
28
31
|
"path": "",
|
|
@@ -49,7 +52,8 @@
|
|
|
49
52
|
* `next_process_on` (string): If trigger is `daily`, date this automation will next run.
|
|
50
53
|
* `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
|
51
54
|
* `source` (string): Source Path
|
|
52
|
-
* `destination` (string): Destination Path
|
|
55
|
+
* `destination` (string): DEPRECATED: Destination Path
|
|
56
|
+
* `destinations` (string): Destination Path
|
|
53
57
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
54
58
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
55
59
|
* `path` (string): Path on which this Automation runs. Supports globs. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
@@ -109,6 +113,7 @@ Files::Automation.create(
|
|
|
109
113
|
automation: "create_folder",
|
|
110
114
|
source: "source",
|
|
111
115
|
destination: "destination",
|
|
116
|
+
destinations: "[\"folder_a/file_a.txt\", {\"folder_path\":\"folder_b\", \"file_path\":\"file_b.txt\"}, {\"folder_path\":\"folder_c\"}]",
|
|
112
117
|
interval: "year",
|
|
113
118
|
user_ids: [1,2],
|
|
114
119
|
group_ids: [1,2],
|
|
@@ -124,7 +129,8 @@ Files::Automation.create(
|
|
|
124
129
|
|
|
125
130
|
* `automation` (string): Required - Automation type
|
|
126
131
|
* `source` (string): Source Path
|
|
127
|
-
* `destination` (string): Destination Path
|
|
132
|
+
* `destination` (string): DEPRECATED: Destination Path
|
|
133
|
+
* `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
|
|
128
134
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
129
135
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
130
136
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
@@ -147,6 +153,7 @@ Files::Automation.update(id,
|
|
|
147
153
|
automation: "create_folder",
|
|
148
154
|
source: "source",
|
|
149
155
|
destination: "destination",
|
|
156
|
+
destinations: "[\"folder_a/file_a.txt\", {\"folder_path\":\"folder_b\", \"file_path\":\"file_b.txt\"}, {\"folder_path\":\"folder_c\"}]",
|
|
150
157
|
interval: "year",
|
|
151
158
|
user_ids: [1,2],
|
|
152
159
|
group_ids: [1,2],
|
|
@@ -163,7 +170,8 @@ Files::Automation.update(id,
|
|
|
163
170
|
* `id` (int64): Required - Automation ID.
|
|
164
171
|
* `automation` (string): Required - Automation type
|
|
165
172
|
* `source` (string): Source Path
|
|
166
|
-
* `destination` (string): Destination Path
|
|
173
|
+
* `destination` (string): DEPRECATED: Destination Path
|
|
174
|
+
* `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
|
|
167
175
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
168
176
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
169
177
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
@@ -201,6 +209,7 @@ automation.update(
|
|
|
201
209
|
automation: "create_folder",
|
|
202
210
|
source: "source",
|
|
203
211
|
destination: "destination",
|
|
212
|
+
destinations: "[\"folder_a/file_a.txt\", {\"folder_path\":\"folder_b\", \"file_path\":\"file_b.txt\"}, {\"folder_path\":\"folder_c\"}]",
|
|
204
213
|
interval: "year",
|
|
205
214
|
user_ids: [1,2],
|
|
206
215
|
group_ids: [1,2],
|
|
@@ -217,7 +226,8 @@ automation.update(
|
|
|
217
226
|
* `id` (int64): Required - Automation ID.
|
|
218
227
|
* `automation` (string): Required - Automation type
|
|
219
228
|
* `source` (string): Source Path
|
|
220
|
-
* `destination` (string): Destination Path
|
|
229
|
+
* `destination` (string): DEPRECATED: Destination Path
|
|
230
|
+
* `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
|
|
221
231
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
222
232
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
223
233
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
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/remote_server.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"id": 1,
|
|
8
8
|
"authentication_method": "password",
|
|
9
9
|
"hostname": "remote-server.com",
|
|
10
|
+
"remote_home_path": "/home/user1",
|
|
10
11
|
"name": "My Remote server",
|
|
11
12
|
"port": 1,
|
|
12
13
|
"max_connections": 1,
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
* `id` (int64): Remote server ID
|
|
39
40
|
* `authentication_method` (string): Type of authentication method
|
|
40
41
|
* `hostname` (string): Hostname or IP address
|
|
42
|
+
* `remote_home_path` (string): Initial home folder on remote server
|
|
41
43
|
* `name` (string): Internal name for your reference
|
|
42
44
|
* `port` (int64): Port for remote server. Not needed for S3.
|
|
43
45
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
data/lib/files.com/errors.rb
CHANGED
|
@@ -56,10 +56,6 @@ module Files
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
class ProcessingPendingError < APIError; end
|
|
60
|
-
|
|
61
|
-
class AccountInBadStandingError < APIError; end
|
|
62
|
-
class AccountOverdueError < AccountInBadStandingError; end
|
|
63
59
|
|
|
64
60
|
class BadRequestError < APIError; end
|
|
65
61
|
class AttachmentTooLargeError < BadRequestError; end
|
|
@@ -68,42 +64,40 @@ module Files
|
|
|
68
64
|
class DatetimeParseError < BadRequestError; end
|
|
69
65
|
class DestinationSameError < BadRequestError; end
|
|
70
66
|
class FolderMustNotBeAFileError < BadRequestError; end
|
|
67
|
+
class InvalidCursorError < BadRequestError; end
|
|
71
68
|
class InvalidFilterCombinationError < BadRequestError; end
|
|
72
69
|
class InvalidFilterFieldError < BadRequestError; end
|
|
73
70
|
class InvalidInputEncodingError < BadRequestError; end
|
|
74
71
|
class InvalidInterfaceError < BadRequestError; end
|
|
75
|
-
class InvalidOauthError < BadRequestError; end
|
|
76
72
|
class InvalidOauthProviderError < BadRequestError; end
|
|
77
73
|
class InvalidReturnToUrlError < BadRequestError; end
|
|
78
74
|
class InvalidUploadOffsetError < BadRequestError; end
|
|
79
|
-
class
|
|
75
|
+
class NoValidInputParamsError < BadRequestError; end
|
|
80
76
|
class OperationOnNonScimResourceError < BadRequestError; end
|
|
77
|
+
class ReauthenticationNeededFieldsError < BadRequestError; end
|
|
78
|
+
class RequestParamPathCannotHaveTrailingWhitespaceError < BadRequestError; end
|
|
79
|
+
class RequestParamsContainInvalidCharacterError < BadRequestError; end
|
|
80
|
+
class RequestParamsInvalidError < BadRequestError; end
|
|
81
|
+
class RequestParamsRequiredError < BadRequestError; end
|
|
82
|
+
class UnsupportedCurrencyError < BadRequestError; end
|
|
81
83
|
class UnsupportedHttpResponseFormatError < BadRequestError; end
|
|
82
84
|
class UnsupportedMediaTypeError < BadRequestError; end
|
|
83
85
|
class UserIdInvalidError < BadRequestError; end
|
|
84
86
|
class UserIdOnUserEndpointError < BadRequestError; end
|
|
85
87
|
class UserRequiredError < BadRequestError; end
|
|
86
88
|
|
|
87
|
-
class InvalidParamsError < APIError; end
|
|
88
|
-
class InvalidCursorError < InvalidParamsError; end
|
|
89
|
-
class NoValidInputParamsError < InvalidParamsError; end
|
|
90
|
-
class ReauthenticationNeededFieldsError < InvalidParamsError; end
|
|
91
|
-
class RequestParamPathCannotHaveTrailingWhitespaceError < InvalidParamsError; end
|
|
92
|
-
class RequestParamsContainInvalidCharacterError < InvalidParamsError; end
|
|
93
|
-
class RequestParamsInvalidError < InvalidParamsError; end
|
|
94
|
-
class RequestParamsRequiredError < InvalidParamsError; end
|
|
95
|
-
class UnsupportedCurrencyError < InvalidParamsError; end
|
|
96
|
-
|
|
97
|
-
class LockedError < APIError; end
|
|
98
|
-
class FileLockedError < LockedError; end
|
|
99
|
-
class FolderLockedError < LockedError; end
|
|
100
|
-
class ResourceLockedError < LockedError; end
|
|
101
|
-
class SubfolderLockedError < LockedError; end
|
|
102
|
-
|
|
103
89
|
class NotAuthenticatedError < APIError; end
|
|
90
|
+
class AuthenticationRequiredError < NotAuthenticatedError; end
|
|
91
|
+
class BundleRegistrationCodeFailedError < NotAuthenticatedError; end
|
|
92
|
+
class InboxRegistrationCodeFailedError < NotAuthenticatedError; end
|
|
93
|
+
class InvalidCredentialsError < NotAuthenticatedError; end
|
|
94
|
+
class InvalidOauthError < NotAuthenticatedError; end
|
|
95
|
+
class InvalidOrExpiredCodeError < NotAuthenticatedError; end
|
|
96
|
+
class InvalidUsernameOrPasswordError < NotAuthenticatedError; end
|
|
97
|
+
class LockedOutError < NotAuthenticatedError; end
|
|
98
|
+
class LockoutRegionMismatchError < NotAuthenticatedError; end
|
|
104
99
|
class OneTimePasswordIncorrectError < NotAuthenticatedError; end
|
|
105
100
|
class TwoFactorAuthenticationErrorError < NotAuthenticatedError; end
|
|
106
|
-
class TwoFactorAuthenticationRequiredError < NotAuthenticatedError; end
|
|
107
101
|
class TwoFactorAuthenticationSetupExpiredError < NotAuthenticatedError; end
|
|
108
102
|
|
|
109
103
|
class NotAuthorizedError < APIError; end
|
|
@@ -111,20 +105,17 @@ module Files
|
|
|
111
105
|
class ApiKeyIsPathRestrictedError < NotAuthorizedError; end
|
|
112
106
|
class ApiKeyOnlyForDesktopAppError < NotAuthorizedError; end
|
|
113
107
|
class ApiKeyOnlyForOfficeIntegrationError < NotAuthorizedError; end
|
|
114
|
-
class
|
|
108
|
+
class BillingPermissionRequiredError < NotAuthorizedError; end
|
|
115
109
|
class CannotLoginWhileUsingKeyError < NotAuthorizedError; end
|
|
116
110
|
class CantActForOtherUserError < NotAuthorizedError; end
|
|
117
111
|
class ContactAdminForPasswordChangeHelpError < NotAuthorizedError; end
|
|
118
|
-
class
|
|
112
|
+
class FolderAdminOrBillingPermissionRequiredError < NotAuthorizedError; end
|
|
119
113
|
class FolderAdminPermissionRequiredError < NotAuthorizedError; end
|
|
120
114
|
class HistoryExportNonAdminsMustQueryByFolderOrPathError < NotAuthorizedError; end
|
|
121
115
|
class HistoryPermissionRequiredError < NotAuthorizedError; end
|
|
122
116
|
class InsufficientPermissionForParamsError < NotAuthorizedError; end
|
|
123
|
-
class LockedOutError < NotAuthorizedError; end
|
|
124
|
-
class LockoutRegionMismatchError < NotAuthorizedError; end
|
|
125
117
|
class MustAuthenticateWithApiKeyError < NotAuthorizedError; end
|
|
126
118
|
class NeedAdminPermissionForInboxError < NotAuthorizedError; end
|
|
127
|
-
class NoBillingPermissionError < NotAuthorizedError; end
|
|
128
119
|
class NotAllowedToCreateBundleError < NotAuthorizedError; end
|
|
129
120
|
class PasswordChangeNotRequiredError < NotAuthorizedError; end
|
|
130
121
|
class PasswordChangeRequiredError < NotAuthorizedError; end
|
|
@@ -134,7 +125,8 @@ module Files
|
|
|
134
125
|
class ReauthenticationFailedFinalError < NotAuthorizedError; end
|
|
135
126
|
class ReauthenticationNeededActionError < NotAuthorizedError; end
|
|
136
127
|
class SelfManagedRequiredError < NotAuthorizedError; end
|
|
137
|
-
class
|
|
128
|
+
class SiteAdminRequiredError < NotAuthorizedError; end
|
|
129
|
+
class TwoFactorAuthenticationRequiredError < NotAuthorizedError; end
|
|
138
130
|
class UserIdWithoutSiteAdminError < NotAuthorizedError; end
|
|
139
131
|
class WritePermissionRequiredError < NotAuthorizedError; end
|
|
140
132
|
class ZipDownloadIpMismatchError < NotAuthorizedError; end
|
|
@@ -147,7 +139,6 @@ module Files
|
|
|
147
139
|
class FileUploadNotFoundError < NotFoundError; end
|
|
148
140
|
class FolderNotFoundError < NotFoundError; end
|
|
149
141
|
class GroupNotFoundError < NotFoundError; end
|
|
150
|
-
class HistoryExportNotReadyError < NotFoundError; end
|
|
151
142
|
class InboxNotFoundError < NotFoundError; end
|
|
152
143
|
class NestedNotFoundError < NotFoundError; end
|
|
153
144
|
class PlanNotFoundError < NotFoundError; end
|
|
@@ -155,22 +146,24 @@ module Files
|
|
|
155
146
|
class UserNotFoundError < NotFoundError; end
|
|
156
147
|
|
|
157
148
|
class ProcessingFailureError < APIError; end
|
|
158
|
-
class BundleRegistrationCodeFailedError < ProcessingFailureError; end
|
|
159
149
|
class DestinationExistsError < ProcessingFailureError; end
|
|
160
150
|
class DestinationParentConflictError < ProcessingFailureError; end
|
|
161
151
|
class DestinationParentDoesNotExistError < ProcessingFailureError; end
|
|
162
152
|
class FailedToChangePasswordError < ProcessingFailureError; end
|
|
153
|
+
class FileLockedError < ProcessingFailureError; end
|
|
163
154
|
class FileNotUploadedError < ProcessingFailureError; end
|
|
155
|
+
class FilePendingProcessingError < ProcessingFailureError; end
|
|
156
|
+
class FolderLockedError < ProcessingFailureError; end
|
|
164
157
|
class FolderNotEmptyError < ProcessingFailureError; end
|
|
165
158
|
class HistoryExportFailureError < ProcessingFailureError; end
|
|
159
|
+
class HistoryExportNotReadyError < ProcessingFailureError; end
|
|
166
160
|
class HistoryUnavailableError < ProcessingFailureError; end
|
|
167
|
-
class InboxRegistrationCodeFailedError < ProcessingFailureError; end
|
|
168
161
|
class InvalidBundleCodeError < ProcessingFailureError; end
|
|
169
|
-
class InvalidOrExpiredCodeError < ProcessingFailureError; end
|
|
170
162
|
class ModelSaveErrorError < ProcessingFailureError; end
|
|
171
163
|
class RemoteServerErrorError < ProcessingFailureError; end
|
|
164
|
+
class ResourceLockedError < ProcessingFailureError; end
|
|
165
|
+
class SubfolderLockedError < ProcessingFailureError; end
|
|
172
166
|
class TwoFactorAuthenticationCodeAlreadySentError < ProcessingFailureError; end
|
|
173
|
-
class UnprocessableEntityError < ProcessingFailureError; end
|
|
174
167
|
|
|
175
168
|
class RateLimitedError < APIError; end
|
|
176
169
|
class ReauthenticationRateLimitedError < RateLimitedError; end
|
|
@@ -179,8 +172,8 @@ module Files
|
|
|
179
172
|
|
|
180
173
|
class SiteConfigurationError < APIError; end
|
|
181
174
|
class AccountAlreadyExistsError < SiteConfigurationError; end
|
|
175
|
+
class AccountOverdueError < SiteConfigurationError; end
|
|
182
176
|
class NoAccountForSiteError < SiteConfigurationError; end
|
|
183
|
-
class SiteAdminRequiredError < SiteConfigurationError; end
|
|
184
177
|
class SiteWasRemovedError < SiteConfigurationError; end
|
|
185
178
|
class TrialExpiredError < SiteConfigurationError; end
|
|
186
179
|
class TrialLockedError < SiteConfigurationError; end
|
|
@@ -72,7 +72,7 @@ module Files
|
|
|
72
72
|
@attributes[:source] = value
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
# string - Destination Path
|
|
75
|
+
# string - DEPRECATED: Destination Path
|
|
76
76
|
def destination
|
|
77
77
|
@attributes[:destination]
|
|
78
78
|
end
|
|
@@ -81,6 +81,15 @@ module Files
|
|
|
81
81
|
@attributes[:destination] = value
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
# string - Destination Path
|
|
85
|
+
def destinations
|
|
86
|
+
@attributes[:destinations]
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def destinations=(value)
|
|
90
|
+
@attributes[:destinations] = value
|
|
91
|
+
end
|
|
92
|
+
|
|
84
93
|
# string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
85
94
|
def destination_replace_from
|
|
86
95
|
@attributes[:destination_replace_from]
|
|
@@ -174,7 +183,8 @@ module Files
|
|
|
174
183
|
# Parameters:
|
|
175
184
|
# automation (required) - string - Automation type
|
|
176
185
|
# source - string - Source Path
|
|
177
|
-
# destination - string - Destination Path
|
|
186
|
+
# destination - string - DEPRECATED: Destination Path
|
|
187
|
+
# destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
|
178
188
|
# destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
179
189
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
180
190
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
@@ -194,6 +204,7 @@ module Files
|
|
|
194
204
|
raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
|
|
195
205
|
raise InvalidParameterError.new("Bad parameter: source must be an String") if params.dig(:source) and !params.dig(:source).is_a?(String)
|
|
196
206
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params.dig(:destination) and !params.dig(:destination).is_a?(String)
|
|
207
|
+
raise InvalidParameterError.new("Bad parameter: destinations must be an Array") if params.dig(:destinations) and !params.dig(:destinations).is_a?(Array)
|
|
197
208
|
raise InvalidParameterError.new("Bad parameter: destination_replace_from must be an String") if params.dig(:destination_replace_from) and !params.dig(:destination_replace_from).is_a?(String)
|
|
198
209
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params.dig(:destination_replace_to) and !params.dig(:destination_replace_to).is_a?(String)
|
|
199
210
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params.dig(:interval) and !params.dig(:interval).is_a?(String)
|
|
@@ -283,7 +294,8 @@ module Files
|
|
|
283
294
|
# Parameters:
|
|
284
295
|
# automation (required) - string - Automation type
|
|
285
296
|
# source - string - Source Path
|
|
286
|
-
# destination - string - Destination Path
|
|
297
|
+
# destination - string - DEPRECATED: Destination Path
|
|
298
|
+
# destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
|
287
299
|
# destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
288
300
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
289
301
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
@@ -299,6 +311,7 @@ module Files
|
|
|
299
311
|
raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
|
|
300
312
|
raise InvalidParameterError.new("Bad parameter: source must be an String") if params.dig(:source) and !params.dig(:source).is_a?(String)
|
|
301
313
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params.dig(:destination) and !params.dig(:destination).is_a?(String)
|
|
314
|
+
raise InvalidParameterError.new("Bad parameter: destinations must be an Array") if params.dig(:destinations) and !params.dig(:destinations).is_a?(Array)
|
|
302
315
|
raise InvalidParameterError.new("Bad parameter: destination_replace_from must be an String") if params.dig(:destination_replace_from) and !params.dig(:destination_replace_from).is_a?(String)
|
|
303
316
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params.dig(:destination_replace_to) and !params.dig(:destination_replace_to).is_a?(String)
|
|
304
317
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params.dig(:interval) and !params.dig(:interval).is_a?(String)
|
|
@@ -319,7 +332,8 @@ module Files
|
|
|
319
332
|
# Parameters:
|
|
320
333
|
# automation (required) - string - Automation type
|
|
321
334
|
# source - string - Source Path
|
|
322
|
-
# destination - string - Destination Path
|
|
335
|
+
# destination - string - DEPRECATED: Destination Path
|
|
336
|
+
# destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
|
323
337
|
# destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
324
338
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
325
339
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
@@ -338,6 +352,7 @@ module Files
|
|
|
338
352
|
raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
|
|
339
353
|
raise InvalidParameterError.new("Bad parameter: source must be an String") if params.dig(:source) and !params.dig(:source).is_a?(String)
|
|
340
354
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params.dig(:destination) and !params.dig(:destination).is_a?(String)
|
|
355
|
+
raise InvalidParameterError.new("Bad parameter: destinations must be an Array") if params.dig(:destinations) and !params.dig(:destinations).is_a?(Array)
|
|
341
356
|
raise InvalidParameterError.new("Bad parameter: destination_replace_from must be an String") if params.dig(:destination_replace_from) and !params.dig(:destination_replace_from).is_a?(String)
|
|
342
357
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params.dig(:destination_replace_to) and !params.dig(:destination_replace_to).is_a?(String)
|
|
343
358
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params.dig(:interval) and !params.dig(:interval).is_a?(String)
|
|
@@ -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
|
|
@@ -36,6 +36,15 @@ module Files
|
|
|
36
36
|
@attributes[:hostname] = value
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
+
# string - Initial home folder on remote server
|
|
40
|
+
def remote_home_path
|
|
41
|
+
@attributes[:remote_home_path]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def remote_home_path=(value)
|
|
45
|
+
@attributes[:remote_home_path] = value
|
|
46
|
+
end
|
|
47
|
+
|
|
39
48
|
# string - Internal name for your reference
|
|
40
49
|
def name
|
|
41
50
|
@attributes[:name]
|
data/lib/files.com/sizable_io.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.0.
|
|
4
|
+
version: 1.0.145
|
|
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-
|
|
11
|
+
date: 2021-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|