files-com 1.5.5__py3-none-any.whl → 1.6.0__py3-none-any.whl

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.

Potentially problematic release.


This version of files-com might be problematic. Click here for more details.

@@ -161,6 +161,18 @@ def create(params=None, options=None):
161
161
  raise InvalidParameterError("Bad parameter: bundle_id must be an int")
162
162
  if "user_id" in params and not isinstance(params["user_id"], int):
163
163
  raise InvalidParameterError("Bad parameter: user_id must be an int")
164
+ if "notify_on_registration" in params and not isinstance(
165
+ params["notify_on_registration"], bool
166
+ ):
167
+ raise InvalidParameterError(
168
+ "Bad parameter: notify_on_registration must be an bool"
169
+ )
170
+ if "notify_on_upload" in params and not isinstance(
171
+ params["notify_on_upload"], bool
172
+ ):
173
+ raise InvalidParameterError(
174
+ "Bad parameter: notify_on_upload must be an bool"
175
+ )
164
176
  if "bundle_id" not in params:
165
177
  raise MissingParameterError("Parameter missing: bundle_id")
166
178
  response, options = Api.send_request(
@@ -180,6 +192,18 @@ def update(id, params=None, options=None):
180
192
  params["id"] = id
181
193
  if "id" in params and not isinstance(params["id"], int):
182
194
  raise InvalidParameterError("Bad parameter: id must be an int")
195
+ if "notify_on_registration" in params and not isinstance(
196
+ params["notify_on_registration"], bool
197
+ ):
198
+ raise InvalidParameterError(
199
+ "Bad parameter: notify_on_registration must be an bool"
200
+ )
201
+ if "notify_on_upload" in params and not isinstance(
202
+ params["notify_on_upload"], bool
203
+ ):
204
+ raise InvalidParameterError(
205
+ "Bad parameter: notify_on_upload must be an bool"
206
+ )
183
207
  if "id" not in params:
184
208
  raise MissingParameterError("Parameter missing: id")
185
209
  response, options = Api.send_request(
@@ -106,6 +106,12 @@ def create(params=None, options=None):
106
106
  raise InvalidParameterError("Bad parameter: company must be an str")
107
107
  if "note" in params and not isinstance(params["note"], str):
108
108
  raise InvalidParameterError("Bad parameter: note must be an str")
109
+ if "share_after_create" in params and not isinstance(
110
+ params["share_after_create"], bool
111
+ ):
112
+ raise InvalidParameterError(
113
+ "Bad parameter: share_after_create must be an bool"
114
+ )
109
115
  if "bundle_id" not in params:
110
116
  raise MissingParameterError("Parameter missing: bundle_id")
111
117
  if "recipient" not in params:
files_sdk/models/file.py CHANGED
@@ -442,6 +442,18 @@ def download(path, params=None, options=None):
442
442
  raise InvalidParameterError(
443
443
  "Bad parameter: preview_size must be an str"
444
444
  )
445
+ if "with_previews" in params and not isinstance(
446
+ params["with_previews"], bool
447
+ ):
448
+ raise InvalidParameterError(
449
+ "Bad parameter: with_previews must be an bool"
450
+ )
451
+ if "with_priority_color" in params and not isinstance(
452
+ params["with_priority_color"], bool
453
+ ):
454
+ raise InvalidParameterError(
455
+ "Bad parameter: with_priority_color must be an bool"
456
+ )
445
457
  if "path" not in params:
446
458
  raise MissingParameterError("Parameter missing: path")
447
459
  response, options = Api.send_request(
@@ -477,6 +489,12 @@ def create(path, params=None, options=None):
477
489
  raise InvalidParameterError("Bad parameter: action must be an str")
478
490
  if "length" in params and not isinstance(params["length"], int):
479
491
  raise InvalidParameterError("Bad parameter: length must be an int")
492
+ if "mkdir_parents" in params and not isinstance(
493
+ params["mkdir_parents"], bool
494
+ ):
495
+ raise InvalidParameterError(
496
+ "Bad parameter: mkdir_parents must be an bool"
497
+ )
480
498
  if "part" in params and not isinstance(params["part"], int):
481
499
  raise InvalidParameterError("Bad parameter: part must be an int")
482
500
  if "parts" in params and not isinstance(params["parts"], int):
@@ -495,6 +513,10 @@ def create(path, params=None, options=None):
495
513
  raise InvalidParameterError("Bad parameter: size must be an int")
496
514
  if "structure" in params and not isinstance(params["structure"], str):
497
515
  raise InvalidParameterError("Bad parameter: structure must be an str")
516
+ if "with_rename" in params and not isinstance(params["with_rename"], bool):
517
+ raise InvalidParameterError(
518
+ "Bad parameter: with_rename must be an bool"
519
+ )
498
520
  if "path" not in params:
499
521
  raise MissingParameterError("Parameter missing: path")
500
522
  response, options = Api.send_request(
@@ -551,6 +573,8 @@ def delete(path, params=None, options=None):
551
573
  params["path"] = path
552
574
  if "path" in params and not isinstance(params["path"], str):
553
575
  raise InvalidParameterError("Bad parameter: path must be an str")
576
+ if "recursive" in params and not isinstance(params["recursive"], bool):
577
+ raise InvalidParameterError("Bad parameter: recursive must be an bool")
554
578
  if "path" not in params:
555
579
  raise MissingParameterError("Parameter missing: path")
556
580
  Api.send_request(
@@ -581,6 +605,18 @@ def find(path, params=None, options=None):
581
605
  raise InvalidParameterError(
582
606
  "Bad parameter: preview_size must be an str"
583
607
  )
608
+ if "with_previews" in params and not isinstance(
609
+ params["with_previews"], bool
610
+ ):
611
+ raise InvalidParameterError(
612
+ "Bad parameter: with_previews must be an bool"
613
+ )
614
+ if "with_priority_color" in params and not isinstance(
615
+ params["with_priority_color"], bool
616
+ ):
617
+ raise InvalidParameterError(
618
+ "Bad parameter: with_priority_color must be an bool"
619
+ )
584
620
  if "path" not in params:
585
621
  raise MissingParameterError("Parameter missing: path")
586
622
  response, options = Api.send_request(
@@ -614,6 +650,10 @@ def copy(path, params=None, options=None):
614
650
  raise InvalidParameterError(
615
651
  "Bad parameter: destination must be an str"
616
652
  )
653
+ if "structure" in params and not isinstance(params["structure"], bool):
654
+ raise InvalidParameterError("Bad parameter: structure must be an bool")
655
+ if "overwrite" in params and not isinstance(params["overwrite"], bool):
656
+ raise InvalidParameterError("Bad parameter: overwrite must be an bool")
617
657
  if "path" not in params:
618
658
  raise MissingParameterError("Parameter missing: path")
619
659
  if "destination" not in params:
@@ -644,6 +684,8 @@ def move(path, params=None, options=None):
644
684
  raise InvalidParameterError(
645
685
  "Bad parameter: destination must be an str"
646
686
  )
687
+ if "overwrite" in params and not isinstance(params["overwrite"], bool):
688
+ raise InvalidParameterError("Bad parameter: overwrite must be an bool")
647
689
  if "path" not in params:
648
690
  raise MissingParameterError("Parameter missing: path")
649
691
  if "destination" not in params:
@@ -675,6 +717,12 @@ def begin_upload(path, params=None, options=None):
675
717
  params["path"] = path
676
718
  if "path" in params and not isinstance(params["path"], str):
677
719
  raise InvalidParameterError("Bad parameter: path must be an str")
720
+ if "mkdir_parents" in params and not isinstance(
721
+ params["mkdir_parents"], bool
722
+ ):
723
+ raise InvalidParameterError(
724
+ "Bad parameter: mkdir_parents must be an bool"
725
+ )
678
726
  if "part" in params and not isinstance(params["part"], int):
679
727
  raise InvalidParameterError("Bad parameter: part must be an int")
680
728
  if "parts" in params and not isinstance(params["parts"], int):
@@ -685,6 +733,10 @@ def begin_upload(path, params=None, options=None):
685
733
  raise InvalidParameterError("Bad parameter: restart must be an int")
686
734
  if "size" in params and not isinstance(params["size"], int):
687
735
  raise InvalidParameterError("Bad parameter: size must be an int")
736
+ if "with_rename" in params and not isinstance(params["with_rename"], bool):
737
+ raise InvalidParameterError(
738
+ "Bad parameter: with_rename must be an bool"
739
+ )
688
740
  if "path" not in params:
689
741
  raise MissingParameterError("Parameter missing: path")
690
742
  response, options = Api.send_request(
@@ -113,6 +113,22 @@ def list_for(path, params=None, options=None):
113
113
  raise InvalidParameterError(
114
114
  "Bad parameter: search_custom_metadata_key must be an str"
115
115
  )
116
+ if "search_all" in params and not isinstance(params["search_all"], bool):
117
+ raise InvalidParameterError(
118
+ "Bad parameter: search_all must be an bool"
119
+ )
120
+ if "with_previews" in params and not isinstance(
121
+ params["with_previews"], bool
122
+ ):
123
+ raise InvalidParameterError(
124
+ "Bad parameter: with_previews must be an bool"
125
+ )
126
+ if "with_priority_color" in params and not isinstance(
127
+ params["with_priority_color"], bool
128
+ ):
129
+ raise InvalidParameterError(
130
+ "Bad parameter: with_priority_color must be an bool"
131
+ )
116
132
  if "path" not in params:
117
133
  raise MissingParameterError("Parameter missing: path")
118
134
  return ListObj(
@@ -136,6 +152,12 @@ def create(path, params=None, options=None):
136
152
  params["path"] = path
137
153
  if "path" in params and not isinstance(params["path"], str):
138
154
  raise InvalidParameterError("Bad parameter: path must be an str")
155
+ if "mkdir_parents" in params and not isinstance(
156
+ params["mkdir_parents"], bool
157
+ ):
158
+ raise InvalidParameterError(
159
+ "Bad parameter: mkdir_parents must be an bool"
160
+ )
139
161
  if "provided_mtime" in params and not isinstance(
140
162
  params["provided_mtime"], str
141
163
  ):
@@ -169,6 +169,18 @@ def create(params=None, options=None):
169
169
  raise InvalidParameterError("Bad parameter: user_id must be an int")
170
170
  if "title" in params and not isinstance(params["title"], str):
171
171
  raise InvalidParameterError("Bad parameter: title must be an str")
172
+ if "skip_email" in params and not isinstance(params["skip_email"], bool):
173
+ raise InvalidParameterError(
174
+ "Bad parameter: skip_email must be an bool"
175
+ )
176
+ if "skip_name" in params and not isinstance(params["skip_name"], bool):
177
+ raise InvalidParameterError("Bad parameter: skip_name must be an bool")
178
+ if "skip_company" in params and not isinstance(
179
+ params["skip_company"], bool
180
+ ):
181
+ raise InvalidParameterError(
182
+ "Bad parameter: skip_company must be an bool"
183
+ )
172
184
  if "form_fields" in params and not isinstance(
173
185
  params["form_fields"], builtins.list
174
186
  ):
@@ -197,6 +209,18 @@ def update(id, params=None, options=None):
197
209
  raise InvalidParameterError("Bad parameter: id must be an int")
198
210
  if "title" in params and not isinstance(params["title"], str):
199
211
  raise InvalidParameterError("Bad parameter: title must be an str")
212
+ if "skip_email" in params and not isinstance(params["skip_email"], bool):
213
+ raise InvalidParameterError(
214
+ "Bad parameter: skip_email must be an bool"
215
+ )
216
+ if "skip_name" in params and not isinstance(params["skip_name"], bool):
217
+ raise InvalidParameterError("Bad parameter: skip_name must be an bool")
218
+ if "skip_company" in params and not isinstance(
219
+ params["skip_company"], bool
220
+ ):
221
+ raise InvalidParameterError(
222
+ "Bad parameter: skip_company must be an bool"
223
+ )
200
224
  if "form_fields" in params and not isinstance(
201
225
  params["form_fields"], builtins.list
202
226
  ):
files_sdk/models/group.py CHANGED
@@ -153,6 +153,12 @@ def list(params=None, options=None):
153
153
  )
154
154
  if "ids" in params and not isinstance(params["ids"], str):
155
155
  raise InvalidParameterError("Bad parameter: ids must be an str")
156
+ if "include_parent_site_groups" in params and not isinstance(
157
+ params["include_parent_site_groups"], bool
158
+ ):
159
+ raise InvalidParameterError(
160
+ "Bad parameter: include_parent_site_groups must be an bool"
161
+ )
156
162
  return ListObj(Group, "GET", "/groups", params, options)
157
163
 
158
164
 
@@ -203,6 +209,30 @@ def create(params=None, options=None):
203
209
  raise InvalidParameterError("Bad parameter: user_ids must be an str")
204
210
  if "admin_ids" in params and not isinstance(params["admin_ids"], str):
205
211
  raise InvalidParameterError("Bad parameter: admin_ids must be an str")
212
+ if "ftp_permission" in params and not isinstance(
213
+ params["ftp_permission"], bool
214
+ ):
215
+ raise InvalidParameterError(
216
+ "Bad parameter: ftp_permission must be an bool"
217
+ )
218
+ if "sftp_permission" in params and not isinstance(
219
+ params["sftp_permission"], bool
220
+ ):
221
+ raise InvalidParameterError(
222
+ "Bad parameter: sftp_permission must be an bool"
223
+ )
224
+ if "dav_permission" in params and not isinstance(
225
+ params["dav_permission"], bool
226
+ ):
227
+ raise InvalidParameterError(
228
+ "Bad parameter: dav_permission must be an bool"
229
+ )
230
+ if "restapi_permission" in params and not isinstance(
231
+ params["restapi_permission"], bool
232
+ ):
233
+ raise InvalidParameterError(
234
+ "Bad parameter: restapi_permission must be an bool"
235
+ )
206
236
  if "allowed_ips" in params and not isinstance(params["allowed_ips"], str):
207
237
  raise InvalidParameterError(
208
238
  "Bad parameter: allowed_ips must be an str"
@@ -239,6 +269,30 @@ def update(id, params=None, options=None):
239
269
  raise InvalidParameterError("Bad parameter: user_ids must be an str")
240
270
  if "admin_ids" in params and not isinstance(params["admin_ids"], str):
241
271
  raise InvalidParameterError("Bad parameter: admin_ids must be an str")
272
+ if "ftp_permission" in params and not isinstance(
273
+ params["ftp_permission"], bool
274
+ ):
275
+ raise InvalidParameterError(
276
+ "Bad parameter: ftp_permission must be an bool"
277
+ )
278
+ if "sftp_permission" in params and not isinstance(
279
+ params["sftp_permission"], bool
280
+ ):
281
+ raise InvalidParameterError(
282
+ "Bad parameter: sftp_permission must be an bool"
283
+ )
284
+ if "dav_permission" in params and not isinstance(
285
+ params["dav_permission"], bool
286
+ ):
287
+ raise InvalidParameterError(
288
+ "Bad parameter: dav_permission must be an bool"
289
+ )
290
+ if "restapi_permission" in params and not isinstance(
291
+ params["restapi_permission"], bool
292
+ ):
293
+ raise InvalidParameterError(
294
+ "Bad parameter: restapi_permission must be an bool"
295
+ )
242
296
  if "allowed_ips" in params and not isinstance(params["allowed_ips"], str):
243
297
  raise InvalidParameterError(
244
298
  "Bad parameter: allowed_ips must be an str"
@@ -159,6 +159,8 @@ def create(params=None, options=None):
159
159
  raise InvalidParameterError("Bad parameter: group_id must be an int")
160
160
  if "user_id" in params and not isinstance(params["user_id"], int):
161
161
  raise InvalidParameterError("Bad parameter: user_id must be an int")
162
+ if "admin" in params and not isinstance(params["admin"], bool):
163
+ raise InvalidParameterError("Bad parameter: admin must be an bool")
162
164
  if "group_id" not in params:
163
165
  raise MissingParameterError("Parameter missing: group_id")
164
166
  if "user_id" not in params:
@@ -185,6 +187,8 @@ def update(id, params=None, options=None):
185
187
  raise InvalidParameterError("Bad parameter: group_id must be an int")
186
188
  if "user_id" in params and not isinstance(params["user_id"], int):
187
189
  raise InvalidParameterError("Bad parameter: user_id must be an int")
190
+ if "admin" in params and not isinstance(params["admin"], bool):
191
+ raise InvalidParameterError("Bad parameter: admin must be an bool")
188
192
  if "id" not in params:
189
193
  raise MissingParameterError("Parameter missing: id")
190
194
  if "group_id" not in params:
@@ -104,6 +104,12 @@ def create(params=None, options=None):
104
104
  raise InvalidParameterError("Bad parameter: company must be an str")
105
105
  if "note" in params and not isinstance(params["note"], str):
106
106
  raise InvalidParameterError("Bad parameter: note must be an str")
107
+ if "share_after_create" in params and not isinstance(
108
+ params["share_after_create"], bool
109
+ ):
110
+ raise InvalidParameterError(
111
+ "Bad parameter: share_after_create must be an bool"
112
+ )
107
113
  if "inbox_id" not in params:
108
114
  raise MissingParameterError("Parameter missing: inbox_id")
109
115
  if "recipient" not in params:
files_sdk/models/lock.py CHANGED
@@ -94,6 +94,12 @@ def list_for(path, params=None, options=None):
94
94
  raise InvalidParameterError("Bad parameter: per_page must be an int")
95
95
  if "path" in params and not isinstance(params["path"], str):
96
96
  raise InvalidParameterError("Bad parameter: path must be an str")
97
+ if "include_children" in params and not isinstance(
98
+ params["include_children"], bool
99
+ ):
100
+ raise InvalidParameterError(
101
+ "Bad parameter: include_children must be an bool"
102
+ )
97
103
  if "path" not in params:
98
104
  raise MissingParameterError("Parameter missing: path")
99
105
  return ListObj(
@@ -119,6 +125,16 @@ def create(path, params=None, options=None):
119
125
  params["path"] = path
120
126
  if "path" in params and not isinstance(params["path"], str):
121
127
  raise InvalidParameterError("Bad parameter: path must be an str")
128
+ if "allow_access_by_any_user" in params and not isinstance(
129
+ params["allow_access_by_any_user"], bool
130
+ ):
131
+ raise InvalidParameterError(
132
+ "Bad parameter: allow_access_by_any_user must be an bool"
133
+ )
134
+ if "exclusive" in params and not isinstance(params["exclusive"], bool):
135
+ raise InvalidParameterError("Bad parameter: exclusive must be an bool")
136
+ if "recursive" in params and not isinstance(params["recursive"], bool):
137
+ raise InvalidParameterError("Bad parameter: recursive must be an bool")
122
138
  if "timeout" in params and not isinstance(params["timeout"], int):
123
139
  raise InvalidParameterError("Bad parameter: timeout must be an int")
124
140
  if "path" not in params:
@@ -181,6 +181,12 @@ def list(params=None, options=None):
181
181
  )
182
182
  if "path" in params and not isinstance(params["path"], str):
183
183
  raise InvalidParameterError("Bad parameter: path must be an str")
184
+ if "include_ancestors" in params and not isinstance(
185
+ params["include_ancestors"], bool
186
+ ):
187
+ raise InvalidParameterError(
188
+ "Bad parameter: include_ancestors must be an bool"
189
+ )
184
190
  if "group_id" in params and not isinstance(params["group_id"], str):
185
191
  raise InvalidParameterError("Bad parameter: group_id must be an str")
186
192
  return ListObj(Notification, "GET", "/notifications", params, options)
@@ -237,6 +243,44 @@ def create(params=None, options=None):
237
243
  options = {}
238
244
  if "user_id" in params and not isinstance(params["user_id"], int):
239
245
  raise InvalidParameterError("Bad parameter: user_id must be an int")
246
+ if "notify_on_copy" in params and not isinstance(
247
+ params["notify_on_copy"], bool
248
+ ):
249
+ raise InvalidParameterError(
250
+ "Bad parameter: notify_on_copy must be an bool"
251
+ )
252
+ if "notify_on_delete" in params and not isinstance(
253
+ params["notify_on_delete"], bool
254
+ ):
255
+ raise InvalidParameterError(
256
+ "Bad parameter: notify_on_delete must be an bool"
257
+ )
258
+ if "notify_on_download" in params and not isinstance(
259
+ params["notify_on_download"], bool
260
+ ):
261
+ raise InvalidParameterError(
262
+ "Bad parameter: notify_on_download must be an bool"
263
+ )
264
+ if "notify_on_move" in params and not isinstance(
265
+ params["notify_on_move"], bool
266
+ ):
267
+ raise InvalidParameterError(
268
+ "Bad parameter: notify_on_move must be an bool"
269
+ )
270
+ if "notify_on_upload" in params and not isinstance(
271
+ params["notify_on_upload"], bool
272
+ ):
273
+ raise InvalidParameterError(
274
+ "Bad parameter: notify_on_upload must be an bool"
275
+ )
276
+ if "notify_user_actions" in params and not isinstance(
277
+ params["notify_user_actions"], bool
278
+ ):
279
+ raise InvalidParameterError(
280
+ "Bad parameter: notify_user_actions must be an bool"
281
+ )
282
+ if "recursive" in params and not isinstance(params["recursive"], bool):
283
+ raise InvalidParameterError("Bad parameter: recursive must be an bool")
240
284
  if "send_interval" in params and not isinstance(
241
285
  params["send_interval"], str
242
286
  ):
@@ -263,6 +307,12 @@ def create(params=None, options=None):
263
307
  raise InvalidParameterError(
264
308
  "Bad parameter: triggering_user_ids must be an list"
265
309
  )
310
+ if "trigger_by_share_recipients" in params and not isinstance(
311
+ params["trigger_by_share_recipients"], bool
312
+ ):
313
+ raise InvalidParameterError(
314
+ "Bad parameter: trigger_by_share_recipients must be an bool"
315
+ )
266
316
  if "group_id" in params and not isinstance(params["group_id"], int):
267
317
  raise InvalidParameterError("Bad parameter: group_id must be an int")
268
318
  if "path" in params and not isinstance(params["path"], str):
@@ -297,6 +347,44 @@ def update(id, params=None, options=None):
297
347
  params["id"] = id
298
348
  if "id" in params and not isinstance(params["id"], int):
299
349
  raise InvalidParameterError("Bad parameter: id must be an int")
350
+ if "notify_on_copy" in params and not isinstance(
351
+ params["notify_on_copy"], bool
352
+ ):
353
+ raise InvalidParameterError(
354
+ "Bad parameter: notify_on_copy must be an bool"
355
+ )
356
+ if "notify_on_delete" in params and not isinstance(
357
+ params["notify_on_delete"], bool
358
+ ):
359
+ raise InvalidParameterError(
360
+ "Bad parameter: notify_on_delete must be an bool"
361
+ )
362
+ if "notify_on_download" in params and not isinstance(
363
+ params["notify_on_download"], bool
364
+ ):
365
+ raise InvalidParameterError(
366
+ "Bad parameter: notify_on_download must be an bool"
367
+ )
368
+ if "notify_on_move" in params and not isinstance(
369
+ params["notify_on_move"], bool
370
+ ):
371
+ raise InvalidParameterError(
372
+ "Bad parameter: notify_on_move must be an bool"
373
+ )
374
+ if "notify_on_upload" in params and not isinstance(
375
+ params["notify_on_upload"], bool
376
+ ):
377
+ raise InvalidParameterError(
378
+ "Bad parameter: notify_on_upload must be an bool"
379
+ )
380
+ if "notify_user_actions" in params and not isinstance(
381
+ params["notify_user_actions"], bool
382
+ ):
383
+ raise InvalidParameterError(
384
+ "Bad parameter: notify_user_actions must be an bool"
385
+ )
386
+ if "recursive" in params and not isinstance(params["recursive"], bool):
387
+ raise InvalidParameterError("Bad parameter: recursive must be an bool")
300
388
  if "send_interval" in params and not isinstance(
301
389
  params["send_interval"], str
302
390
  ):
@@ -323,6 +411,12 @@ def update(id, params=None, options=None):
323
411
  raise InvalidParameterError(
324
412
  "Bad parameter: triggering_user_ids must be an list"
325
413
  )
414
+ if "trigger_by_share_recipients" in params and not isinstance(
415
+ params["trigger_by_share_recipients"], bool
416
+ ):
417
+ raise InvalidParameterError(
418
+ "Bad parameter: trigger_by_share_recipients must be an bool"
419
+ )
326
420
  if "id" not in params:
327
421
  raise MissingParameterError("Parameter missing: id")
328
422
  response, options = Api.send_request(
@@ -104,6 +104,12 @@ def list(params=None, options=None):
104
104
  )
105
105
  if "path" in params and not isinstance(params["path"], str):
106
106
  raise InvalidParameterError("Bad parameter: path must be an str")
107
+ if "include_groups" in params and not isinstance(
108
+ params["include_groups"], bool
109
+ ):
110
+ raise InvalidParameterError(
111
+ "Bad parameter: include_groups must be an bool"
112
+ )
107
113
  if "group_id" in params and not isinstance(params["group_id"], str):
108
114
  raise InvalidParameterError("Bad parameter: group_id must be an str")
109
115
  if "user_id" in params and not isinstance(params["user_id"], str):
@@ -135,6 +141,8 @@ def create(params=None, options=None):
135
141
  raise InvalidParameterError("Bad parameter: group_id must be an int")
136
142
  if "permission" in params and not isinstance(params["permission"], str):
137
143
  raise InvalidParameterError("Bad parameter: permission must be an str")
144
+ if "recursive" in params and not isinstance(params["recursive"], bool):
145
+ raise InvalidParameterError("Bad parameter: recursive must be an bool")
138
146
  if "user_id" in params and not isinstance(params["user_id"], int):
139
147
  raise InvalidParameterError("Bad parameter: user_id must be an int")
140
148
  if "username" in params and not isinstance(params["username"], str):
@@ -853,6 +853,12 @@ def create(params=None, options=None):
853
853
  raise InvalidParameterError(
854
854
  "Bad parameter: private_key_passphrase must be an str"
855
855
  )
856
+ if "reset_authentication" in params and not isinstance(
857
+ params["reset_authentication"], bool
858
+ ):
859
+ raise InvalidParameterError(
860
+ "Bad parameter: reset_authentication must be an bool"
861
+ )
856
862
  if "ssl_certificate" in params and not isinstance(
857
863
  params["ssl_certificate"], str
858
864
  ):
@@ -976,6 +982,15 @@ def create(params=None, options=None):
976
982
  raise InvalidParameterError(
977
983
  "Bad parameter: azure_blob_storage_dns_suffix must be an str"
978
984
  )
985
+ if (
986
+ "azure_blob_storage_hierarchical_namespace" in params
987
+ and not isinstance(
988
+ params["azure_blob_storage_hierarchical_namespace"], bool
989
+ )
990
+ ):
991
+ raise InvalidParameterError(
992
+ "Bad parameter: azure_blob_storage_hierarchical_namespace must be an bool"
993
+ )
979
994
  if "azure_files_storage_account" in params and not isinstance(
980
995
  params["azure_files_storage_account"], str
981
996
  ):
@@ -1024,6 +1039,18 @@ def create(params=None, options=None):
1024
1039
  raise InvalidParameterError(
1025
1040
  "Bad parameter: cloudflare_endpoint must be an str"
1026
1041
  )
1042
+ if "dropbox_teams" in params and not isinstance(
1043
+ params["dropbox_teams"], bool
1044
+ ):
1045
+ raise InvalidParameterError(
1046
+ "Bad parameter: dropbox_teams must be an bool"
1047
+ )
1048
+ if "enable_dedicated_ips" in params and not isinstance(
1049
+ params["enable_dedicated_ips"], bool
1050
+ ):
1051
+ raise InvalidParameterError(
1052
+ "Bad parameter: enable_dedicated_ips must be an bool"
1053
+ )
1027
1054
  if "filebase_access_key" in params and not isinstance(
1028
1055
  params["filebase_access_key"], str
1029
1056
  ):
@@ -1109,6 +1136,12 @@ def create(params=None, options=None):
1109
1136
  raise InvalidParameterError(
1110
1137
  "Bad parameter: one_drive_account_type must be an str"
1111
1138
  )
1139
+ if "pin_to_site_region" in params and not isinstance(
1140
+ params["pin_to_site_region"], bool
1141
+ ):
1142
+ raise InvalidParameterError(
1143
+ "Bad parameter: pin_to_site_region must be an bool"
1144
+ )
1112
1145
  if "port" in params and not isinstance(params["port"], int):
1113
1146
  raise InvalidParameterError("Bad parameter: port must be an int")
1114
1147
  if "rackspace_container" in params and not isinstance(
@@ -1360,6 +1393,12 @@ def update(id, params=None, options=None):
1360
1393
  raise InvalidParameterError(
1361
1394
  "Bad parameter: private_key_passphrase must be an str"
1362
1395
  )
1396
+ if "reset_authentication" in params and not isinstance(
1397
+ params["reset_authentication"], bool
1398
+ ):
1399
+ raise InvalidParameterError(
1400
+ "Bad parameter: reset_authentication must be an bool"
1401
+ )
1363
1402
  if "ssl_certificate" in params and not isinstance(
1364
1403
  params["ssl_certificate"], str
1365
1404
  ):
@@ -1483,6 +1522,15 @@ def update(id, params=None, options=None):
1483
1522
  raise InvalidParameterError(
1484
1523
  "Bad parameter: azure_blob_storage_dns_suffix must be an str"
1485
1524
  )
1525
+ if (
1526
+ "azure_blob_storage_hierarchical_namespace" in params
1527
+ and not isinstance(
1528
+ params["azure_blob_storage_hierarchical_namespace"], bool
1529
+ )
1530
+ ):
1531
+ raise InvalidParameterError(
1532
+ "Bad parameter: azure_blob_storage_hierarchical_namespace must be an bool"
1533
+ )
1486
1534
  if "azure_files_storage_account" in params and not isinstance(
1487
1535
  params["azure_files_storage_account"], str
1488
1536
  ):
@@ -1531,6 +1579,18 @@ def update(id, params=None, options=None):
1531
1579
  raise InvalidParameterError(
1532
1580
  "Bad parameter: cloudflare_endpoint must be an str"
1533
1581
  )
1582
+ if "dropbox_teams" in params and not isinstance(
1583
+ params["dropbox_teams"], bool
1584
+ ):
1585
+ raise InvalidParameterError(
1586
+ "Bad parameter: dropbox_teams must be an bool"
1587
+ )
1588
+ if "enable_dedicated_ips" in params and not isinstance(
1589
+ params["enable_dedicated_ips"], bool
1590
+ ):
1591
+ raise InvalidParameterError(
1592
+ "Bad parameter: enable_dedicated_ips must be an bool"
1593
+ )
1534
1594
  if "filebase_access_key" in params and not isinstance(
1535
1595
  params["filebase_access_key"], str
1536
1596
  ):
@@ -1616,6 +1676,12 @@ def update(id, params=None, options=None):
1616
1676
  raise InvalidParameterError(
1617
1677
  "Bad parameter: one_drive_account_type must be an str"
1618
1678
  )
1679
+ if "pin_to_site_region" in params and not isinstance(
1680
+ params["pin_to_site_region"], bool
1681
+ ):
1682
+ raise InvalidParameterError(
1683
+ "Bad parameter: pin_to_site_region must be an bool"
1684
+ )
1619
1685
  if "port" in params and not isinstance(params["port"], int):
1620
1686
  raise InvalidParameterError("Bad parameter: port must be an int")
1621
1687
  if "rackspace_container" in params and not isinstance(
@@ -89,6 +89,8 @@ def list(params=None, options=None):
89
89
  raise InvalidParameterError("Bad parameter: per_page must be an int")
90
90
  if "sort_by" in params and not isinstance(params["sort_by"], dict):
91
91
  raise InvalidParameterError("Bad parameter: sort_by must be an dict")
92
+ if "mine" in params and not isinstance(params["mine"], bool):
93
+ raise InvalidParameterError("Bad parameter: mine must be an bool")
92
94
  if "path" in params and not isinstance(params["path"], str):
93
95
  raise InvalidParameterError("Bad parameter: path must be an str")
94
96
  return ListObj(Request, "GET", "/requests", params, options)
@@ -116,6 +118,8 @@ def get_folder(path, params=None, options=None):
116
118
  raise InvalidParameterError("Bad parameter: per_page must be an int")
117
119
  if "sort_by" in params and not isinstance(params["sort_by"], dict):
118
120
  raise InvalidParameterError("Bad parameter: sort_by must be an dict")
121
+ if "mine" in params and not isinstance(params["mine"], bool):
122
+ raise InvalidParameterError("Bad parameter: mine must be an bool")
119
123
  if "path" in params and not isinstance(params["path"], str):
120
124
  raise InvalidParameterError("Bad parameter: path must be an str")
121
125
  if "path" not in params: