files.com 1.0.197 → 1.0.201

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 132a17f2eee373017f7e623e3bc1d670024ab843407abc6efeaa3784cfc622c2
4
- data.tar.gz: ef718a291170b625b796b1f7a4d0840e81db547c1f4ff67bc6ba78b47fd6a586
3
+ metadata.gz: f8b5cd1077ae4d1034afc3d69b932d1d634eb5edef2ca1287dabbf4bcd2248d5
4
+ data.tar.gz: 96543ffd75b2f6c6dc86e7b08aa28b2dcec8ba089bbaacb35473df087d0b51c0
5
5
  SHA512:
6
- metadata.gz: 9cd8c1cb2c3e7cc7f829c793a45780511cbd19e8c81d845a5aa2145526c342da2f28cd3261a92c4ebc39f437ff2219499070b15a896ab081f75d15f059313d06
7
- data.tar.gz: 408dd148d1778eb3cfbdd397ec046abd2224e071b280f712a0505c49608dd652ed30845a0eb2201e646b2e4cd60da371da4d97fb4c14002001cb97b85413d76c
6
+ metadata.gz: 3cc3a0696ff3338286f1515c3cf457fb88e7f62c873eab656a437d9f7b973d31e693e575a477333d2bf171fbd11cec10449c95ffab9bee1a59096fa6a64b1a1c
7
+ data.tar.gz: c19f88ab8382c1e0ed07e1873baef0d292e4d0d2838fc489601bbf989ed1815b29cc3c4b161a4ed867357b966bf0c6c820aee39b709131c38c252976e98c3de5
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.197
1
+ 1.0.201
data/docs/automation.md CHANGED
@@ -8,7 +8,7 @@
8
8
  "automation": "create_folder",
9
9
  "trigger": "realtime",
10
10
  "interval": "week",
11
- "next_process_on": "2020-01-01",
11
+ "name": "",
12
12
  "schedule": {
13
13
  "days_of_week": [
14
14
  0,
@@ -27,6 +27,7 @@
27
27
  ],
28
28
  "destination_replace_from": "",
29
29
  "destination_replace_to": "",
30
+ "description": "",
30
31
  "path": "",
31
32
  "user_id": 1,
32
33
  "user_ids": [
@@ -48,12 +49,13 @@
48
49
  * `automation` (string): Automation type
49
50
  * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
50
51
  * `interval` (string): If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
51
- * `next_process_on` (string): If trigger is `daily`, date this automation will next run.
52
+ * `name` (string): Name for this automation.
52
53
  * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
53
54
  * `source` (string): Source Path
54
55
  * `destinations` (string): Destination Path
55
56
  * `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
56
57
  * `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.
58
+ * `description` (string): Description for the this Automation.
57
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.
58
60
  * `user_id` (int64): User ID of the Automation's creator.
59
61
  * `user_ids` (array): IDs of Users for the Automation (i.e. who to Request File from)
@@ -136,6 +138,8 @@ Files::Automation.create(
136
138
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
137
139
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
138
140
  * `schedule` (object): Custom schedule for running this automation.
141
+ * `description` (string): Description for the this Automation.
142
+ * `name` (string): Name for this automation.
139
143
  * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
140
144
  * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
141
145
  * `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
@@ -176,6 +180,8 @@ Files::Automation.update(id,
176
180
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
177
181
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
178
182
  * `schedule` (object): Custom schedule for running this automation.
183
+ * `description` (string): Description for the this Automation.
184
+ * `name` (string): Name for this automation.
179
185
  * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
180
186
  * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
181
187
  * `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
@@ -231,6 +237,8 @@ automation.update(
231
237
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
232
238
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
233
239
  * `schedule` (object): Custom schedule for running this automation.
240
+ * `description` (string): Description for the this Automation.
241
+ * `name` (string): Name for this automation.
234
242
  * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
235
243
  * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
236
244
  * `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
data/docs/behavior.md CHANGED
@@ -8,6 +8,8 @@
8
8
  "path": "",
9
9
  "attachment_url": "",
10
10
  "behavior": "webhook",
11
+ "name": "",
12
+ "description": "",
11
13
  "value": {
12
14
  "method": "GET"
13
15
  }
@@ -18,6 +20,8 @@
18
20
  * `path` (string): Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
19
21
  * `attachment_url` (string): URL for attached file
20
22
  * `behavior` (string): Behavior type.
23
+ * `name` (string): Name for this behavior.
24
+ * `description` (string): Description for this behavior.
21
25
  * `value` (object): Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
22
26
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
23
27
 
@@ -103,6 +107,8 @@ Files::Behavior.create(
103
107
 
104
108
  * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
105
109
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
110
+ * `name` (string): Name for this behavior.
111
+ * `description` (string): Description for this behavior.
106
112
  * `path` (string): Required - Folder behaviors path.
107
113
  * `behavior` (string): Required - Behavior type.
108
114
 
@@ -148,6 +154,8 @@ Files::Behavior.update(id,
148
154
  * `id` (int64): Required - Behavior ID.
149
155
  * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
150
156
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
157
+ * `name` (string): Name for this behavior.
158
+ * `description` (string): Description for this behavior.
151
159
  * `behavior` (string): Behavior type.
152
160
  * `path` (string): Folder behaviors path.
153
161
 
@@ -183,6 +191,8 @@ behavior.update(
183
191
  * `id` (int64): Required - Behavior ID.
184
192
  * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
185
193
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
194
+ * `name` (string): Name for this behavior.
195
+ * `description` (string): Description for this behavior.
186
196
  * `behavior` (string): Behavior type.
187
197
  * `path` (string): Folder behaviors path.
188
198
 
data/docs/user.md CHANGED
@@ -109,6 +109,7 @@
109
109
  * `change_password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `change_password`.
110
110
  * `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
111
111
  * `group_id` (int64): Group ID to associate this user with.
112
+ * `imported_password_hash` (string): Pre-calculated hash of the user's password.
112
113
  * `password` (string): User password.
113
114
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
114
115
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
@@ -213,6 +214,7 @@ Files::User.create(
213
214
  * `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
214
215
  * `group_id` (int64): Group ID to associate this user with.
215
216
  * `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
217
+ * `imported_password_hash` (string): Pre-calculated hash of the user's password.
216
218
  * `password` (string): User password.
217
219
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
218
220
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
@@ -344,6 +346,7 @@ Files::User.update(id,
344
346
  * `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
345
347
  * `group_id` (int64): Group ID to associate this user with.
346
348
  * `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
349
+ * `imported_password_hash` (string): Pre-calculated hash of the user's password.
347
350
  * `password` (string): User password.
348
351
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
349
352
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
@@ -496,6 +499,7 @@ user.update(
496
499
  * `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
497
500
  * `group_id` (int64): Group ID to associate this user with.
498
501
  * `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
502
+ * `imported_password_hash` (string): Pre-calculated hash of the user's password.
499
503
  * `password` (string): User password.
500
504
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
501
505
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
@@ -119,6 +119,7 @@ module Files
119
119
  class ContactAdminForPasswordChangeHelpError < NotAuthorizedError; end
120
120
  class FolderAdminOrBillingPermissionRequiredError < NotAuthorizedError; end
121
121
  class FolderAdminPermissionRequiredError < NotAuthorizedError; end
122
+ class FullPermissionRequiredError < NotAuthorizedError; end
122
123
  class HistoryPermissionRequiredError < NotAuthorizedError; end
123
124
  class InsufficientPermissionForParamsError < NotAuthorizedError; end
124
125
  class MustAuthenticateWithApiKeyError < NotAuthorizedError; end
@@ -134,6 +135,7 @@ module Files
134
135
  class ReauthenticationNeededActionError < NotAuthorizedError; end
135
136
  class SelfManagedRequiredError < NotAuthorizedError; end
136
137
  class SiteAdminRequiredError < NotAuthorizedError; end
138
+ class SiteFilesAreImmutableError < NotAuthorizedError; end
137
139
  class TwoFactorAuthenticationRequiredError < NotAuthorizedError; end
138
140
  class UserIdWithoutSiteAdminError < NotAuthorizedError; end
139
141
  class WritePermissionRequiredError < NotAuthorizedError; end
@@ -45,13 +45,13 @@ module Files
45
45
  @attributes[:interval] = value
46
46
  end
47
47
 
48
- # string - If trigger is `daily`, date this automation will next run.
49
- def next_process_on
50
- @attributes[:next_process_on]
48
+ # string - Name for this automation.
49
+ def name
50
+ @attributes[:name]
51
51
  end
52
52
 
53
- def next_process_on=(value)
54
- @attributes[:next_process_on] = value
53
+ def name=(value)
54
+ @attributes[:name] = value
55
55
  end
56
56
 
57
57
  # object - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
@@ -99,6 +99,15 @@ module Files
99
99
  @attributes[:destination_replace_to] = value
100
100
  end
101
101
 
102
+ # string - Description for the this Automation.
103
+ def description
104
+ @attributes[:description]
105
+ end
106
+
107
+ def description=(value)
108
+ @attributes[:description] = value
109
+ end
110
+
102
111
  # 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.
103
112
  def path
104
113
  @attributes[:path]
@@ -192,6 +201,8 @@ module Files
192
201
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
193
202
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
194
203
  # schedule - object - Custom schedule for running this automation.
204
+ # description - string - Description for the this Automation.
205
+ # name - string - Name for this automation.
195
206
  # trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
196
207
  # trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
197
208
  # trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
@@ -211,6 +222,8 @@ module Files
211
222
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
212
223
  raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params.dig(:user_ids) and !params.dig(:user_ids).is_a?(String)
213
224
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
225
+ raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
226
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
214
227
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
215
228
  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
216
229
  raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
@@ -303,6 +316,8 @@ module Files
303
316
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
304
317
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
305
318
  # schedule - object - Custom schedule for running this automation.
319
+ # description - string - Description for the this Automation.
320
+ # name - string - Name for this automation.
306
321
  # trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
307
322
  # trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
308
323
  # trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
@@ -319,6 +334,8 @@ module Files
319
334
  raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params.dig(:user_ids) and !params.dig(:user_ids).is_a?(String)
320
335
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
321
336
  raise InvalidParameterError.new("Bad parameter: schedule must be an Hash") if params.dig(:schedule) and !params.dig(:schedule).is_a?(Hash)
337
+ raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
338
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
322
339
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
323
340
  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
324
341
  raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
@@ -341,6 +358,8 @@ module Files
341
358
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
342
359
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
343
360
  # schedule - object - Custom schedule for running this automation.
361
+ # description - string - Description for the this Automation.
362
+ # name - string - Name for this automation.
344
363
  # trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
345
364
  # trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
346
365
  # trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
@@ -360,6 +379,8 @@ module Files
360
379
  raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params.dig(:user_ids) and !params.dig(:user_ids).is_a?(String)
361
380
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
362
381
  raise InvalidParameterError.new("Bad parameter: schedule must be an Hash") if params.dig(:schedule) and !params.dig(:schedule).is_a?(Hash)
382
+ raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
383
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
363
384
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
364
385
  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
365
386
  raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
@@ -45,6 +45,24 @@ module Files
45
45
  @attributes[:behavior] = value
46
46
  end
47
47
 
48
+ # string - Name for this behavior.
49
+ def name
50
+ @attributes[:name]
51
+ end
52
+
53
+ def name=(value)
54
+ @attributes[:name] = value
55
+ end
56
+
57
+ # string - Description for this behavior.
58
+ def description
59
+ @attributes[:description]
60
+ end
61
+
62
+ def description=(value)
63
+ @attributes[:description] = value
64
+ end
65
+
48
66
  # object - Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
49
67
  def value
50
68
  @attributes[:value]
@@ -66,6 +84,8 @@ module Files
66
84
  # Parameters:
67
85
  # value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
68
86
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
87
+ # name - string - Name for this behavior.
88
+ # description - string - Description for this behavior.
69
89
  # behavior - string - Behavior type.
70
90
  # path - string - Folder behaviors path.
71
91
  def update(params = {})
@@ -74,6 +94,8 @@ module Files
74
94
  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
75
95
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
76
96
  raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
97
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
98
+ raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
77
99
  raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
78
100
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
79
101
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
@@ -190,10 +212,14 @@ module Files
190
212
  # Parameters:
191
213
  # value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
192
214
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
215
+ # name - string - Name for this behavior.
216
+ # description - string - Description for this behavior.
193
217
  # path (required) - string - Folder behaviors path.
194
218
  # behavior (required) - string - Behavior type.
195
219
  def self.create(params = {}, options = {})
196
220
  raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
221
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
222
+ raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
197
223
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
198
224
  raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
199
225
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
@@ -226,6 +252,8 @@ module Files
226
252
  # Parameters:
227
253
  # value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
228
254
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
255
+ # name - string - Name for this behavior.
256
+ # description - string - Description for this behavior.
229
257
  # behavior - string - Behavior type.
230
258
  # path - string - Folder behaviors path.
231
259
  def self.update(id, params = {}, options = {})
@@ -233,6 +261,8 @@ module Files
233
261
  params[:id] = id
234
262
  raise InvalidParameterError.new("Bad parameter: id must be one of String, Integer, Hash") if params.dig(:id) and [ String, Integer, Hash ].none? { |klass| params.dig(:id).is_a?(klass) }
235
263
  raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
264
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
265
+ raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
236
266
  raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
237
267
  raise InvalidParameterError.new("Bad parameter: path must be one of String, Integer, Hash") if params.dig(:path) and [ String, Integer, Hash ].none? { |klass| params.dig(:path).is_a?(klass) }
238
268
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
@@ -482,6 +482,15 @@ module Files
482
482
  @attributes[:group_id] = value
483
483
  end
484
484
 
485
+ # string - Pre-calculated hash of the user's password.
486
+ def imported_password_hash
487
+ @attributes[:imported_password_hash]
488
+ end
489
+
490
+ def imported_password_hash=(value)
491
+ @attributes[:imported_password_hash] = value
492
+ end
493
+
485
494
  # string - User password.
486
495
  def password
487
496
  @attributes[:password]
@@ -551,6 +560,7 @@ module Files
551
560
  # grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
552
561
  # group_id - int64 - Group ID to associate this user with.
553
562
  # group_ids - string - A list of group ids to associate this user with. Comma delimited.
563
+ # imported_password_hash - string - Pre-calculated hash of the user's password.
554
564
  # password - string - User password.
555
565
  # password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
556
566
  # announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
@@ -597,6 +607,7 @@ module Files
597
607
  raise InvalidParameterError.new("Bad parameter: grant_permission must be an String") if params.dig(:grant_permission) and !params.dig(:grant_permission).is_a?(String)
598
608
  raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
599
609
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
610
+ raise InvalidParameterError.new("Bad parameter: imported_password_hash must be an String") if params.dig(:imported_password_hash) and !params.dig(:imported_password_hash).is_a?(String)
600
611
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
601
612
  raise InvalidParameterError.new("Bad parameter: password_confirmation must be an String") if params.dig(:password_confirmation) and !params.dig(:password_confirmation).is_a?(String)
602
613
  raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
@@ -709,6 +720,7 @@ module Files
709
720
  # grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
710
721
  # group_id - int64 - Group ID to associate this user with.
711
722
  # group_ids - string - A list of group ids to associate this user with. Comma delimited.
723
+ # imported_password_hash - string - Pre-calculated hash of the user's password.
712
724
  # password - string - User password.
713
725
  # password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
714
726
  # announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
@@ -751,6 +763,7 @@ module Files
751
763
  raise InvalidParameterError.new("Bad parameter: grant_permission must be an String") if params.dig(:grant_permission) and !params.dig(:grant_permission).is_a?(String)
752
764
  raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
753
765
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
766
+ raise InvalidParameterError.new("Bad parameter: imported_password_hash must be an String") if params.dig(:imported_password_hash) and !params.dig(:imported_password_hash).is_a?(String)
754
767
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
755
768
  raise InvalidParameterError.new("Bad parameter: password_confirmation must be an String") if params.dig(:password_confirmation) and !params.dig(:password_confirmation).is_a?(String)
756
769
  raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
@@ -816,6 +829,7 @@ module Files
816
829
  # grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
817
830
  # group_id - int64 - Group ID to associate this user with.
818
831
  # group_ids - string - A list of group ids to associate this user with. Comma delimited.
832
+ # imported_password_hash - string - Pre-calculated hash of the user's password.
819
833
  # password - string - User password.
820
834
  # password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
821
835
  # announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
@@ -861,6 +875,7 @@ module Files
861
875
  raise InvalidParameterError.new("Bad parameter: grant_permission must be an String") if params.dig(:grant_permission) and !params.dig(:grant_permission).is_a?(String)
862
876
  raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
863
877
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
878
+ raise InvalidParameterError.new("Bad parameter: imported_password_hash must be an String") if params.dig(:imported_password_hash) and !params.dig(:imported_password_hash).is_a?(String)
864
879
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
865
880
  raise InvalidParameterError.new("Bad parameter: password_confirmation must be an String") if params.dig(:password_confirmation) and !params.dig(:password_confirmation).is_a?(String)
866
881
  raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
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.197
4
+ version: 1.0.201
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-08-21 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable