files-com 1.5.6__tar.gz → 1.6.1__tar.gz

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.

Files changed (219) hide show
  1. {files_com-1.5.6/files_com.egg-info → files_com-1.6.1}/PKG-INFO +2 -2
  2. {files_com-1.5.6 → files_com-1.6.1}/README.md +1 -1
  3. files_com-1.6.1/_VERSION +1 -0
  4. {files_com-1.5.6 → files_com-1.6.1/files_com.egg-info}/PKG-INFO +2 -2
  5. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/__init__.py +1 -1
  6. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/action_notification_export.py +6 -0
  7. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/as2_partner.py +12 -0
  8. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/automation.py +64 -0
  9. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/behavior.py +22 -0
  10. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/bundle.py +128 -0
  11. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/bundle_notification.py +32 -4
  12. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/bundle_recipient.py +6 -0
  13. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/file.py +52 -0
  14. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/folder.py +22 -0
  15. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/form_field_set.py +24 -0
  16. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/group.py +54 -0
  17. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/group_user.py +4 -0
  18. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/inbox_recipient.py +6 -0
  19. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/lock.py +16 -0
  20. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/notification.py +94 -0
  21. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/permission.py +8 -0
  22. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/remote_server.py +66 -0
  23. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/request.py +4 -0
  24. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/restore.py +18 -0
  25. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/siem_http_destination.py +216 -0
  26. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/site.py +514 -0
  27. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/user.py +222 -0
  28. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/webhook_test.py +12 -0
  29. {files_com-1.5.6 → files_com-1.6.1}/pyproject.toml +1 -1
  30. files_com-1.5.6/_VERSION +0 -1
  31. {files_com-1.5.6 → files_com-1.6.1}/LICENSE +0 -0
  32. {files_com-1.5.6 → files_com-1.6.1}/files_com.egg-info/SOURCES.txt +0 -0
  33. {files_com-1.5.6 → files_com-1.6.1}/files_com.egg-info/dependency_links.txt +0 -0
  34. {files_com-1.5.6 → files_com-1.6.1}/files_com.egg-info/requires.txt +0 -0
  35. {files_com-1.5.6 → files_com-1.6.1}/files_com.egg-info/top_level.txt +0 -0
  36. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/api.py +0 -0
  37. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/api_client.py +0 -0
  38. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/error.py +0 -0
  39. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/list_obj.py +0 -0
  40. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/__init__.py +0 -0
  41. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/account_line_item.py +0 -0
  42. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/action.py +0 -0
  43. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/action_notification_export_result.py +0 -0
  44. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/api_key.py +0 -0
  45. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/api_request_log.py +0 -0
  46. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/app.py +0 -0
  47. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/as2_incoming_message.py +0 -0
  48. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/as2_outgoing_message.py +0 -0
  49. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/as2_station.py +0 -0
  50. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/auto.py +0 -0
  51. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/automation_log.py +0 -0
  52. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/automation_run.py +0 -0
  53. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/bandwidth_snapshot.py +0 -0
  54. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/bundle_action.py +0 -0
  55. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/bundle_download.py +0 -0
  56. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/bundle_path.py +0 -0
  57. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/bundle_registration.py +0 -0
  58. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/clickwrap.py +0 -0
  59. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/dns_record.py +0 -0
  60. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/email_incoming_message.py +0 -0
  61. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/email_log.py +0 -0
  62. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/errors.py +0 -0
  63. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/exavault_api_request_log.py +0 -0
  64. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/external_event.py +0 -0
  65. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/file_action.py +0 -0
  66. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/file_comment.py +0 -0
  67. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/file_comment_reaction.py +0 -0
  68. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/file_migration.py +0 -0
  69. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/file_migration_log.py +0 -0
  70. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/file_upload_part.py +0 -0
  71. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/form_field.py +0 -0
  72. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/ftp_action_log.py +0 -0
  73. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/gpg_key.py +0 -0
  74. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/history.py +0 -0
  75. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/history_export.py +0 -0
  76. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/history_export_result.py +0 -0
  77. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/image.py +0 -0
  78. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/inbox_registration.py +0 -0
  79. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/inbox_upload.py +0 -0
  80. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/invoice.py +0 -0
  81. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/invoice_line_item.py +0 -0
  82. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/ip_address.py +0 -0
  83. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/message.py +0 -0
  84. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/message_comment.py +0 -0
  85. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/message_comment_reaction.py +0 -0
  86. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/message_reaction.py +0 -0
  87. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/outbound_connection_log.py +0 -0
  88. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/payment.py +0 -0
  89. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/payment_line_item.py +0 -0
  90. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/preview.py +0 -0
  91. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/priority.py +0 -0
  92. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/project.py +0 -0
  93. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/public_hosting_request_log.py +0 -0
  94. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/public_ip_address.py +0 -0
  95. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/public_key.py +0 -0
  96. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  97. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/remote_server_configuration_file.py +0 -0
  98. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/session.py +0 -0
  99. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/settings_change.py +0 -0
  100. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/sftp_action_log.py +0 -0
  101. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/sftp_host_key.py +0 -0
  102. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/share_group.py +0 -0
  103. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/share_group_member.py +0 -0
  104. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/snapshot.py +0 -0
  105. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/sso_strategy.py +0 -0
  106. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/status.py +0 -0
  107. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/style.py +0 -0
  108. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/sync_log.py +0 -0
  109. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/usage_by_top_level_dir.py +0 -0
  110. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/usage_daily_snapshot.py +0 -0
  111. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/usage_snapshot.py +0 -0
  112. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/user_cipher_use.py +0 -0
  113. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/user_request.py +0 -0
  114. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/user_sftp_client_use.py +0 -0
  115. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/models/web_dav_action_log.py +0 -0
  116. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/path_util.py +0 -0
  117. {files_com-1.5.6 → files_com-1.6.1}/files_sdk/util.py +0 -0
  118. {files_com-1.5.6 → files_com-1.6.1}/setup.cfg +0 -0
  119. {files_com-1.5.6 → files_com-1.6.1}/tests/test_account_line_item.py +0 -0
  120. {files_com-1.5.6 → files_com-1.6.1}/tests/test_action.py +0 -0
  121. {files_com-1.5.6 → files_com-1.6.1}/tests/test_action_notification_export.py +0 -0
  122. {files_com-1.5.6 → files_com-1.6.1}/tests/test_action_notification_export_result.py +0 -0
  123. {files_com-1.5.6 → files_com-1.6.1}/tests/test_api_errors.py +0 -0
  124. {files_com-1.5.6 → files_com-1.6.1}/tests/test_api_key.py +0 -0
  125. {files_com-1.5.6 → files_com-1.6.1}/tests/test_api_request_log.py +0 -0
  126. {files_com-1.5.6 → files_com-1.6.1}/tests/test_app.py +0 -0
  127. {files_com-1.5.6 → files_com-1.6.1}/tests/test_as2_incoming_message.py +0 -0
  128. {files_com-1.5.6 → files_com-1.6.1}/tests/test_as2_outgoing_message.py +0 -0
  129. {files_com-1.5.6 → files_com-1.6.1}/tests/test_as2_partner.py +0 -0
  130. {files_com-1.5.6 → files_com-1.6.1}/tests/test_as2_station.py +0 -0
  131. {files_com-1.5.6 → files_com-1.6.1}/tests/test_auto.py +0 -0
  132. {files_com-1.5.6 → files_com-1.6.1}/tests/test_automation.py +0 -0
  133. {files_com-1.5.6 → files_com-1.6.1}/tests/test_automation_log.py +0 -0
  134. {files_com-1.5.6 → files_com-1.6.1}/tests/test_automation_run.py +0 -0
  135. {files_com-1.5.6 → files_com-1.6.1}/tests/test_bandwidth_snapshot.py +0 -0
  136. {files_com-1.5.6 → files_com-1.6.1}/tests/test_behavior.py +0 -0
  137. {files_com-1.5.6 → files_com-1.6.1}/tests/test_bundle.py +0 -0
  138. {files_com-1.5.6 → files_com-1.6.1}/tests/test_bundle_action.py +0 -0
  139. {files_com-1.5.6 → files_com-1.6.1}/tests/test_bundle_download.py +0 -0
  140. {files_com-1.5.6 → files_com-1.6.1}/tests/test_bundle_notification.py +0 -0
  141. {files_com-1.5.6 → files_com-1.6.1}/tests/test_bundle_path.py +0 -0
  142. {files_com-1.5.6 → files_com-1.6.1}/tests/test_bundle_recipient.py +0 -0
  143. {files_com-1.5.6 → files_com-1.6.1}/tests/test_bundle_registration.py +0 -0
  144. {files_com-1.5.6 → files_com-1.6.1}/tests/test_clickwrap.py +0 -0
  145. {files_com-1.5.6 → files_com-1.6.1}/tests/test_connection_adapter.py +0 -0
  146. {files_com-1.5.6 → files_com-1.6.1}/tests/test_dns_record.py +0 -0
  147. {files_com-1.5.6 → files_com-1.6.1}/tests/test_email_incoming_message.py +0 -0
  148. {files_com-1.5.6 → files_com-1.6.1}/tests/test_email_log.py +0 -0
  149. {files_com-1.5.6 → files_com-1.6.1}/tests/test_errors.py +0 -0
  150. {files_com-1.5.6 → files_com-1.6.1}/tests/test_exavault_api_request_log.py +0 -0
  151. {files_com-1.5.6 → files_com-1.6.1}/tests/test_external_event.py +0 -0
  152. {files_com-1.5.6 → files_com-1.6.1}/tests/test_file.py +0 -0
  153. {files_com-1.5.6 → files_com-1.6.1}/tests/test_file_action.py +0 -0
  154. {files_com-1.5.6 → files_com-1.6.1}/tests/test_file_comment.py +0 -0
  155. {files_com-1.5.6 → files_com-1.6.1}/tests/test_file_comment_reaction.py +0 -0
  156. {files_com-1.5.6 → files_com-1.6.1}/tests/test_file_migration.py +0 -0
  157. {files_com-1.5.6 → files_com-1.6.1}/tests/test_file_migration_log.py +0 -0
  158. {files_com-1.5.6 → files_com-1.6.1}/tests/test_file_upload_part.py +0 -0
  159. {files_com-1.5.6 → files_com-1.6.1}/tests/test_folder.py +0 -0
  160. {files_com-1.5.6 → files_com-1.6.1}/tests/test_form_field.py +0 -0
  161. {files_com-1.5.6 → files_com-1.6.1}/tests/test_form_field_set.py +0 -0
  162. {files_com-1.5.6 → files_com-1.6.1}/tests/test_ftp_action_log.py +0 -0
  163. {files_com-1.5.6 → files_com-1.6.1}/tests/test_gpg_key.py +0 -0
  164. {files_com-1.5.6 → files_com-1.6.1}/tests/test_group.py +0 -0
  165. {files_com-1.5.6 → files_com-1.6.1}/tests/test_group_user.py +0 -0
  166. {files_com-1.5.6 → files_com-1.6.1}/tests/test_history.py +0 -0
  167. {files_com-1.5.6 → files_com-1.6.1}/tests/test_history_export.py +0 -0
  168. {files_com-1.5.6 → files_com-1.6.1}/tests/test_history_export_result.py +0 -0
  169. {files_com-1.5.6 → files_com-1.6.1}/tests/test_image.py +0 -0
  170. {files_com-1.5.6 → files_com-1.6.1}/tests/test_inbox_recipient.py +0 -0
  171. {files_com-1.5.6 → files_com-1.6.1}/tests/test_inbox_registration.py +0 -0
  172. {files_com-1.5.6 → files_com-1.6.1}/tests/test_inbox_upload.py +0 -0
  173. {files_com-1.5.6 → files_com-1.6.1}/tests/test_invoice.py +0 -0
  174. {files_com-1.5.6 → files_com-1.6.1}/tests/test_invoice_line_item.py +0 -0
  175. {files_com-1.5.6 → files_com-1.6.1}/tests/test_ip_address.py +0 -0
  176. {files_com-1.5.6 → files_com-1.6.1}/tests/test_lock.py +0 -0
  177. {files_com-1.5.6 → files_com-1.6.1}/tests/test_message.py +0 -0
  178. {files_com-1.5.6 → files_com-1.6.1}/tests/test_message_comment.py +0 -0
  179. {files_com-1.5.6 → files_com-1.6.1}/tests/test_message_comment_reaction.py +0 -0
  180. {files_com-1.5.6 → files_com-1.6.1}/tests/test_message_reaction.py +0 -0
  181. {files_com-1.5.6 → files_com-1.6.1}/tests/test_notification.py +0 -0
  182. {files_com-1.5.6 → files_com-1.6.1}/tests/test_outbound_connection_log.py +0 -0
  183. {files_com-1.5.6 → files_com-1.6.1}/tests/test_path_util.py +0 -0
  184. {files_com-1.5.6 → files_com-1.6.1}/tests/test_payment.py +0 -0
  185. {files_com-1.5.6 → files_com-1.6.1}/tests/test_payment_line_item.py +0 -0
  186. {files_com-1.5.6 → files_com-1.6.1}/tests/test_permission.py +0 -0
  187. {files_com-1.5.6 → files_com-1.6.1}/tests/test_preview.py +0 -0
  188. {files_com-1.5.6 → files_com-1.6.1}/tests/test_priority.py +0 -0
  189. {files_com-1.5.6 → files_com-1.6.1}/tests/test_project.py +0 -0
  190. {files_com-1.5.6 → files_com-1.6.1}/tests/test_public_hosting_request_log.py +0 -0
  191. {files_com-1.5.6 → files_com-1.6.1}/tests/test_public_ip_address.py +0 -0
  192. {files_com-1.5.6 → files_com-1.6.1}/tests/test_public_key.py +0 -0
  193. {files_com-1.5.6 → files_com-1.6.1}/tests/test_remote_bandwidth_snapshot.py +0 -0
  194. {files_com-1.5.6 → files_com-1.6.1}/tests/test_remote_server.py +0 -0
  195. {files_com-1.5.6 → files_com-1.6.1}/tests/test_remote_server_configuration_file.py +0 -0
  196. {files_com-1.5.6 → files_com-1.6.1}/tests/test_request.py +0 -0
  197. {files_com-1.5.6 → files_com-1.6.1}/tests/test_restore.py +0 -0
  198. {files_com-1.5.6 → files_com-1.6.1}/tests/test_session.py +0 -0
  199. {files_com-1.5.6 → files_com-1.6.1}/tests/test_settings_change.py +0 -0
  200. {files_com-1.5.6 → files_com-1.6.1}/tests/test_sftp_action_log.py +0 -0
  201. {files_com-1.5.6 → files_com-1.6.1}/tests/test_sftp_host_key.py +0 -0
  202. {files_com-1.5.6 → files_com-1.6.1}/tests/test_share_group.py +0 -0
  203. {files_com-1.5.6 → files_com-1.6.1}/tests/test_share_group_member.py +0 -0
  204. {files_com-1.5.6 → files_com-1.6.1}/tests/test_siem_http_destination.py +0 -0
  205. {files_com-1.5.6 → files_com-1.6.1}/tests/test_site.py +0 -0
  206. {files_com-1.5.6 → files_com-1.6.1}/tests/test_snapshot.py +0 -0
  207. {files_com-1.5.6 → files_com-1.6.1}/tests/test_sso_strategy.py +0 -0
  208. {files_com-1.5.6 → files_com-1.6.1}/tests/test_status.py +0 -0
  209. {files_com-1.5.6 → files_com-1.6.1}/tests/test_style.py +0 -0
  210. {files_com-1.5.6 → files_com-1.6.1}/tests/test_sync_log.py +0 -0
  211. {files_com-1.5.6 → files_com-1.6.1}/tests/test_usage_by_top_level_dir.py +0 -0
  212. {files_com-1.5.6 → files_com-1.6.1}/tests/test_usage_daily_snapshot.py +0 -0
  213. {files_com-1.5.6 → files_com-1.6.1}/tests/test_usage_snapshot.py +0 -0
  214. {files_com-1.5.6 → files_com-1.6.1}/tests/test_user.py +0 -0
  215. {files_com-1.5.6 → files_com-1.6.1}/tests/test_user_cipher_use.py +0 -0
  216. {files_com-1.5.6 → files_com-1.6.1}/tests/test_user_request.py +0 -0
  217. {files_com-1.5.6 → files_com-1.6.1}/tests/test_user_sftp_client_use.py +0 -0
  218. {files_com-1.5.6 → files_com-1.6.1}/tests/test_web_dav_action_log.py +0 -0
  219. {files_com-1.5.6 → files_com-1.6.1}/tests/test_webhook_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.5.6
3
+ Version: 1.6.1
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -369,7 +369,7 @@ except files_sdk.error.Error as err:
369
369
 
370
370
  ## Foreign Language Support
371
371
 
372
- The Files.com PHP SDK supports localized responses by using the `files_sdk.set_language` configuration method.
372
+ The Files.com Python SDK supports localized responses by using the `files_sdk.set_language` configuration method.
373
373
  When configured, this guides the API in selecting a preferred language for applicable response content.
374
374
 
375
375
  Language support currently applies to select human-facing fields only, such as notification messages
@@ -357,7 +357,7 @@ except files_sdk.error.Error as err:
357
357
 
358
358
  ## Foreign Language Support
359
359
 
360
- The Files.com PHP SDK supports localized responses by using the `files_sdk.set_language` configuration method.
360
+ The Files.com Python SDK supports localized responses by using the `files_sdk.set_language` configuration method.
361
361
  When configured, this guides the API in selecting a preferred language for applicable response content.
362
362
 
363
363
  Language support currently applies to select human-facing fields only, such as notification messages
@@ -0,0 +1 @@
1
+ 1.6.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.5.6
3
+ Version: 1.6.1
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -369,7 +369,7 @@ except files_sdk.error.Error as err:
369
369
 
370
370
  ## Foreign Language Support
371
371
 
372
- The Files.com PHP SDK supports localized responses by using the `files_sdk.set_language` configuration method.
372
+ The Files.com Python SDK supports localized responses by using the `files_sdk.set_language` configuration method.
373
373
  When configured, this guides the API in selecting a preferred language for applicable response content.
374
374
 
375
375
  Language support currently applies to select human-facing fields only, such as notification messages
@@ -213,7 +213,7 @@ session_id = None
213
213
  source_ip = None
214
214
  base_url = "https://app.files.com"
215
215
  base_path = "api/rest/v1"
216
- version = "1.5.6"
216
+ version = "1.6.1"
217
217
 
218
218
  __version__ = version
219
219
 
@@ -129,6 +129,12 @@ def create(params=None, options=None):
129
129
  raise InvalidParameterError(
130
130
  "Bad parameter: query_status must be an str"
131
131
  )
132
+ if "query_success" in params and not isinstance(
133
+ params["query_success"], bool
134
+ ):
135
+ raise InvalidParameterError(
136
+ "Bad parameter: query_success must be an bool"
137
+ )
132
138
  if "query_path" in params and not isinstance(params["query_path"], str):
133
139
  raise InvalidParameterError("Bad parameter: query_path must be an str")
134
140
  if "query_folder" in params and not isinstance(
@@ -212,6 +212,12 @@ def create(params=None, options=None):
212
212
  params = {}
213
213
  if not isinstance(options, dict):
214
214
  options = {}
215
+ if "enable_dedicated_ips" in params and not isinstance(
216
+ params["enable_dedicated_ips"], bool
217
+ ):
218
+ raise InvalidParameterError(
219
+ "Bad parameter: enable_dedicated_ips must be an bool"
220
+ )
215
221
  if "http_auth_username" in params and not isinstance(
216
222
  params["http_auth_username"], str
217
223
  ):
@@ -297,6 +303,12 @@ def update(id, params=None, options=None):
297
303
  params["id"] = id
298
304
  if "id" in params and not isinstance(params["id"], int):
299
305
  raise InvalidParameterError("Bad parameter: id must be an int")
306
+ if "enable_dedicated_ips" in params and not isinstance(
307
+ params["enable_dedicated_ips"], bool
308
+ ):
309
+ raise InvalidParameterError(
310
+ "Bad parameter: enable_dedicated_ips must be an bool"
311
+ )
300
312
  if "http_auth_username" in params and not isinstance(
301
313
  params["http_auth_username"], str
302
314
  ):
@@ -438,10 +438,18 @@ def create(params=None, options=None):
438
438
  raise InvalidParameterError(
439
439
  "Bad parameter: schedule_time_zone must be an str"
440
440
  )
441
+ if "always_overwrite_size_matching_files" in params and not isinstance(
442
+ params["always_overwrite_size_matching_files"], bool
443
+ ):
444
+ raise InvalidParameterError(
445
+ "Bad parameter: always_overwrite_size_matching_files must be an bool"
446
+ )
441
447
  if "description" in params and not isinstance(params["description"], str):
442
448
  raise InvalidParameterError(
443
449
  "Bad parameter: description must be an str"
444
450
  )
451
+ if "disabled" in params and not isinstance(params["disabled"], bool):
452
+ raise InvalidParameterError("Bad parameter: disabled must be an bool")
445
453
  if "exclude_pattern" in params and not isinstance(
446
454
  params["exclude_pattern"], str
447
455
  ):
@@ -454,8 +462,32 @@ def create(params=None, options=None):
454
462
  raise InvalidParameterError(
455
463
  "Bad parameter: import_urls must be an list"
456
464
  )
465
+ if "flatten_destination_structure" in params and not isinstance(
466
+ params["flatten_destination_structure"], bool
467
+ ):
468
+ raise InvalidParameterError(
469
+ "Bad parameter: flatten_destination_structure must be an bool"
470
+ )
471
+ if "ignore_locked_folders" in params and not isinstance(
472
+ params["ignore_locked_folders"], bool
473
+ ):
474
+ raise InvalidParameterError(
475
+ "Bad parameter: ignore_locked_folders must be an bool"
476
+ )
477
+ if "legacy_folder_matching" in params and not isinstance(
478
+ params["legacy_folder_matching"], bool
479
+ ):
480
+ raise InvalidParameterError(
481
+ "Bad parameter: legacy_folder_matching must be an bool"
482
+ )
457
483
  if "name" in params and not isinstance(params["name"], str):
458
484
  raise InvalidParameterError("Bad parameter: name must be an str")
485
+ if "overwrite_files" in params and not isinstance(
486
+ params["overwrite_files"], bool
487
+ ):
488
+ raise InvalidParameterError(
489
+ "Bad parameter: overwrite_files must be an bool"
490
+ )
459
491
  if "path_time_zone" in params and not isinstance(
460
492
  params["path_time_zone"], str
461
493
  ):
@@ -606,10 +638,18 @@ def update(id, params=None, options=None):
606
638
  raise InvalidParameterError(
607
639
  "Bad parameter: schedule_time_zone must be an str"
608
640
  )
641
+ if "always_overwrite_size_matching_files" in params and not isinstance(
642
+ params["always_overwrite_size_matching_files"], bool
643
+ ):
644
+ raise InvalidParameterError(
645
+ "Bad parameter: always_overwrite_size_matching_files must be an bool"
646
+ )
609
647
  if "description" in params and not isinstance(params["description"], str):
610
648
  raise InvalidParameterError(
611
649
  "Bad parameter: description must be an str"
612
650
  )
651
+ if "disabled" in params and not isinstance(params["disabled"], bool):
652
+ raise InvalidParameterError("Bad parameter: disabled must be an bool")
613
653
  if "exclude_pattern" in params and not isinstance(
614
654
  params["exclude_pattern"], str
615
655
  ):
@@ -622,8 +662,32 @@ def update(id, params=None, options=None):
622
662
  raise InvalidParameterError(
623
663
  "Bad parameter: import_urls must be an list"
624
664
  )
665
+ if "flatten_destination_structure" in params and not isinstance(
666
+ params["flatten_destination_structure"], bool
667
+ ):
668
+ raise InvalidParameterError(
669
+ "Bad parameter: flatten_destination_structure must be an bool"
670
+ )
671
+ if "ignore_locked_folders" in params and not isinstance(
672
+ params["ignore_locked_folders"], bool
673
+ ):
674
+ raise InvalidParameterError(
675
+ "Bad parameter: ignore_locked_folders must be an bool"
676
+ )
677
+ if "legacy_folder_matching" in params and not isinstance(
678
+ params["legacy_folder_matching"], bool
679
+ ):
680
+ raise InvalidParameterError(
681
+ "Bad parameter: legacy_folder_matching must be an bool"
682
+ )
625
683
  if "name" in params and not isinstance(params["name"], str):
626
684
  raise InvalidParameterError("Bad parameter: name must be an str")
685
+ if "overwrite_files" in params and not isinstance(
686
+ params["overwrite_files"], bool
687
+ ):
688
+ raise InvalidParameterError(
689
+ "Bad parameter: overwrite_files must be an bool"
690
+ )
627
691
  if "path_time_zone" in params and not isinstance(
628
692
  params["path_time_zone"], str
629
693
  ):
@@ -197,6 +197,12 @@ def list_for(path, params=None, options=None):
197
197
  )
198
198
  if "path" in params and not isinstance(params["path"], str):
199
199
  raise InvalidParameterError("Bad parameter: path must be an str")
200
+ if "ancestor_behaviors" in params and not isinstance(
201
+ params["ancestor_behaviors"], bool
202
+ ):
203
+ raise InvalidParameterError(
204
+ "Bad parameter: ancestor_behaviors must be an bool"
205
+ )
200
206
  if "path" not in params:
201
207
  raise MissingParameterError("Parameter missing: path")
202
208
  return ListObj(
@@ -224,6 +230,14 @@ def create(params=None, options=None):
224
230
  options = {}
225
231
  if "value" in params and not isinstance(params["value"], str):
226
232
  raise InvalidParameterError("Bad parameter: value must be an str")
233
+ if "disable_parent_folder_behavior" in params and not isinstance(
234
+ params["disable_parent_folder_behavior"], bool
235
+ ):
236
+ raise InvalidParameterError(
237
+ "Bad parameter: disable_parent_folder_behavior must be an bool"
238
+ )
239
+ if "recursive" in params and not isinstance(params["recursive"], bool):
240
+ raise InvalidParameterError("Bad parameter: recursive must be an bool")
227
241
  if "name" in params and not isinstance(params["name"], str):
228
242
  raise InvalidParameterError("Bad parameter: name must be an str")
229
243
  if "description" in params and not isinstance(params["description"], str):
@@ -291,6 +305,14 @@ def update(id, params=None, options=None):
291
305
  )
292
306
  if "value" in params and not isinstance(params["value"], str):
293
307
  raise InvalidParameterError("Bad parameter: value must be an str")
308
+ if "disable_parent_folder_behavior" in params and not isinstance(
309
+ params["disable_parent_folder_behavior"], bool
310
+ ):
311
+ raise InvalidParameterError(
312
+ "Bad parameter: disable_parent_folder_behavior must be an bool"
313
+ )
314
+ if "recursive" in params and not isinstance(params["recursive"], bool):
315
+ raise InvalidParameterError("Bad parameter: recursive must be an bool")
294
316
  if "name" in params and not isinstance(params["name"], str):
295
317
  raise InvalidParameterError("Bad parameter: name must be an str")
296
318
  if "description" in params and not isinstance(params["description"], str):
@@ -264,6 +264,12 @@ class Bundle:
264
264
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
265
265
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
266
266
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
267
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
268
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
269
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
270
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
271
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
272
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
267
273
  def list(params=None, options=None):
268
274
  if not isinstance(params, dict):
269
275
  params = {}
@@ -277,6 +283,26 @@ def list(params=None, options=None):
277
283
  raise InvalidParameterError("Bad parameter: per_page must be an int")
278
284
  if "sort_by" in params and not isinstance(params["sort_by"], dict):
279
285
  raise InvalidParameterError("Bad parameter: sort_by must be an dict")
286
+ if "filter" in params and not isinstance(params["filter"], dict):
287
+ raise InvalidParameterError("Bad parameter: filter must be an dict")
288
+ if "filter_gt" in params and not isinstance(params["filter_gt"], dict):
289
+ raise InvalidParameterError("Bad parameter: filter_gt must be an dict")
290
+ if "filter_gteq" in params and not isinstance(params["filter_gteq"], dict):
291
+ raise InvalidParameterError(
292
+ "Bad parameter: filter_gteq must be an dict"
293
+ )
294
+ if "filter_prefix" in params and not isinstance(
295
+ params["filter_prefix"], dict
296
+ ):
297
+ raise InvalidParameterError(
298
+ "Bad parameter: filter_prefix must be an dict"
299
+ )
300
+ if "filter_lt" in params and not isinstance(params["filter_lt"], dict):
301
+ raise InvalidParameterError("Bad parameter: filter_lt must be an dict")
302
+ if "filter_lteq" in params and not isinstance(params["filter_lteq"], dict):
303
+ raise InvalidParameterError(
304
+ "Bad parameter: filter_lteq must be an dict"
305
+ )
280
306
  return ListObj(Bundle, "GET", "/bundles", params, options)
281
307
 
282
308
 
@@ -350,8 +376,26 @@ def create(params=None, options=None):
350
376
  raise InvalidParameterError(
351
377
  "Bad parameter: form_field_set_id must be an int"
352
378
  )
379
+ if "create_snapshot" in params and not isinstance(
380
+ params["create_snapshot"], bool
381
+ ):
382
+ raise InvalidParameterError(
383
+ "Bad parameter: create_snapshot must be an bool"
384
+ )
385
+ if "dont_separate_submissions_by_folder" in params and not isinstance(
386
+ params["dont_separate_submissions_by_folder"], bool
387
+ ):
388
+ raise InvalidParameterError(
389
+ "Bad parameter: dont_separate_submissions_by_folder must be an bool"
390
+ )
353
391
  if "expires_at" in params and not isinstance(params["expires_at"], str):
354
392
  raise InvalidParameterError("Bad parameter: expires_at must be an str")
393
+ if "finalize_snapshot" in params and not isinstance(
394
+ params["finalize_snapshot"], bool
395
+ ):
396
+ raise InvalidParameterError(
397
+ "Bad parameter: finalize_snapshot must be an bool"
398
+ )
355
399
  if "max_uses" in params and not isinstance(params["max_uses"], int):
356
400
  raise InvalidParameterError("Bad parameter: max_uses must be an int")
357
401
  if "description" in params and not isinstance(params["description"], str):
@@ -378,6 +422,12 @@ def create(params=None, options=None):
378
422
  raise InvalidParameterError(
379
423
  "Bad parameter: permissions must be an str"
380
424
  )
425
+ if "require_registration" in params and not isinstance(
426
+ params["require_registration"], bool
427
+ ):
428
+ raise InvalidParameterError(
429
+ "Bad parameter: require_registration must be an bool"
430
+ )
381
431
  if "clickwrap_id" in params and not isinstance(
382
432
  params["clickwrap_id"], int
383
433
  ):
@@ -386,6 +436,30 @@ def create(params=None, options=None):
386
436
  )
387
437
  if "inbox_id" in params and not isinstance(params["inbox_id"], int):
388
438
  raise InvalidParameterError("Bad parameter: inbox_id must be an int")
439
+ if "require_share_recipient" in params and not isinstance(
440
+ params["require_share_recipient"], bool
441
+ ):
442
+ raise InvalidParameterError(
443
+ "Bad parameter: require_share_recipient must be an bool"
444
+ )
445
+ if "send_email_receipt_to_uploader" in params and not isinstance(
446
+ params["send_email_receipt_to_uploader"], bool
447
+ ):
448
+ raise InvalidParameterError(
449
+ "Bad parameter: send_email_receipt_to_uploader must be an bool"
450
+ )
451
+ if "skip_email" in params and not isinstance(params["skip_email"], bool):
452
+ raise InvalidParameterError(
453
+ "Bad parameter: skip_email must be an bool"
454
+ )
455
+ if "skip_name" in params and not isinstance(params["skip_name"], bool):
456
+ raise InvalidParameterError("Bad parameter: skip_name must be an bool")
457
+ if "skip_company" in params and not isinstance(
458
+ params["skip_company"], bool
459
+ ):
460
+ raise InvalidParameterError(
461
+ "Bad parameter: skip_company must be an bool"
462
+ )
389
463
  if "start_access_on_date" in params and not isinstance(
390
464
  params["start_access_on_date"], str
391
465
  ):
@@ -485,12 +559,30 @@ def update(id, params=None, options=None):
485
559
  )
486
560
  if "code" in params and not isinstance(params["code"], str):
487
561
  raise InvalidParameterError("Bad parameter: code must be an str")
562
+ if "create_snapshot" in params and not isinstance(
563
+ params["create_snapshot"], bool
564
+ ):
565
+ raise InvalidParameterError(
566
+ "Bad parameter: create_snapshot must be an bool"
567
+ )
488
568
  if "description" in params and not isinstance(params["description"], str):
489
569
  raise InvalidParameterError(
490
570
  "Bad parameter: description must be an str"
491
571
  )
572
+ if "dont_separate_submissions_by_folder" in params and not isinstance(
573
+ params["dont_separate_submissions_by_folder"], bool
574
+ ):
575
+ raise InvalidParameterError(
576
+ "Bad parameter: dont_separate_submissions_by_folder must be an bool"
577
+ )
492
578
  if "expires_at" in params and not isinstance(params["expires_at"], str):
493
579
  raise InvalidParameterError("Bad parameter: expires_at must be an str")
580
+ if "finalize_snapshot" in params and not isinstance(
581
+ params["finalize_snapshot"], bool
582
+ ):
583
+ raise InvalidParameterError(
584
+ "Bad parameter: finalize_snapshot must be an bool"
585
+ )
494
586
  if "inbox_id" in params and not isinstance(params["inbox_id"], int):
495
587
  raise InvalidParameterError("Bad parameter: inbox_id must be an int")
496
588
  if "max_uses" in params and not isinstance(params["max_uses"], int):
@@ -513,12 +605,48 @@ def update(id, params=None, options=None):
513
605
  raise InvalidParameterError(
514
606
  "Bad parameter: permissions must be an str"
515
607
  )
608
+ if "require_registration" in params and not isinstance(
609
+ params["require_registration"], bool
610
+ ):
611
+ raise InvalidParameterError(
612
+ "Bad parameter: require_registration must be an bool"
613
+ )
614
+ if "require_share_recipient" in params and not isinstance(
615
+ params["require_share_recipient"], bool
616
+ ):
617
+ raise InvalidParameterError(
618
+ "Bad parameter: require_share_recipient must be an bool"
619
+ )
620
+ if "send_email_receipt_to_uploader" in params and not isinstance(
621
+ params["send_email_receipt_to_uploader"], bool
622
+ ):
623
+ raise InvalidParameterError(
624
+ "Bad parameter: send_email_receipt_to_uploader must be an bool"
625
+ )
626
+ if "skip_company" in params and not isinstance(
627
+ params["skip_company"], bool
628
+ ):
629
+ raise InvalidParameterError(
630
+ "Bad parameter: skip_company must be an bool"
631
+ )
516
632
  if "start_access_on_date" in params and not isinstance(
517
633
  params["start_access_on_date"], str
518
634
  ):
519
635
  raise InvalidParameterError(
520
636
  "Bad parameter: start_access_on_date must be an str"
521
637
  )
638
+ if "skip_email" in params and not isinstance(params["skip_email"], bool):
639
+ raise InvalidParameterError(
640
+ "Bad parameter: skip_email must be an bool"
641
+ )
642
+ if "skip_name" in params and not isinstance(params["skip_name"], bool):
643
+ raise InvalidParameterError("Bad parameter: skip_name must be an bool")
644
+ if "watermark_attachment_delete" in params and not isinstance(
645
+ params["watermark_attachment_delete"], bool
646
+ ):
647
+ raise InvalidParameterError(
648
+ "Bad parameter: watermark_attachment_delete must be an bool"
649
+ )
522
650
  if "id" not in params:
523
651
  raise MissingParameterError("Parameter missing: id")
524
652
  response, options = Api.send_request(
@@ -14,7 +14,7 @@ class BundleNotification:
14
14
  "id": None, # int64 - Bundle Notification ID
15
15
  "notify_on_registration": None, # boolean - Triggers bundle notification when a registration action occurs for it.
16
16
  "notify_on_upload": None, # boolean - Triggers bundle notification when a upload action occurs for it.
17
- "user_id": None, # int64 - The id of the user to notify.
17
+ "notify_user_id": None, # int64 - The id of the user to notify.
18
18
  }
19
19
 
20
20
  def __init__(self, attributes=None, options=None):
@@ -149,7 +149,7 @@ def get(id, params=None, options=None):
149
149
 
150
150
  # Parameters:
151
151
  # bundle_id (required) - int64 - Bundle ID to notify on
152
- # user_id - int64 - The id of the user to notify.
152
+ # notify_user_id - int64 - The id of the user to notify.
153
153
  # notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
154
154
  # notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
155
155
  def create(params=None, options=None):
@@ -159,8 +159,24 @@ def create(params=None, options=None):
159
159
  options = {}
160
160
  if "bundle_id" in params and not isinstance(params["bundle_id"], int):
161
161
  raise InvalidParameterError("Bad parameter: bundle_id must be an int")
162
- if "user_id" in params and not isinstance(params["user_id"], int):
163
- raise InvalidParameterError("Bad parameter: user_id must be an int")
162
+ if "notify_user_id" in params and not isinstance(
163
+ params["notify_user_id"], int
164
+ ):
165
+ raise InvalidParameterError(
166
+ "Bad parameter: notify_user_id must be an int"
167
+ )
168
+ if "notify_on_registration" in params and not isinstance(
169
+ params["notify_on_registration"], bool
170
+ ):
171
+ raise InvalidParameterError(
172
+ "Bad parameter: notify_on_registration must be an bool"
173
+ )
174
+ if "notify_on_upload" in params and not isinstance(
175
+ params["notify_on_upload"], bool
176
+ ):
177
+ raise InvalidParameterError(
178
+ "Bad parameter: notify_on_upload must be an bool"
179
+ )
164
180
  if "bundle_id" not in params:
165
181
  raise MissingParameterError("Parameter missing: bundle_id")
166
182
  response, options = Api.send_request(
@@ -180,6 +196,18 @@ def update(id, params=None, options=None):
180
196
  params["id"] = id
181
197
  if "id" in params and not isinstance(params["id"], int):
182
198
  raise InvalidParameterError("Bad parameter: id must be an int")
199
+ if "notify_on_registration" in params and not isinstance(
200
+ params["notify_on_registration"], bool
201
+ ):
202
+ raise InvalidParameterError(
203
+ "Bad parameter: notify_on_registration must be an bool"
204
+ )
205
+ if "notify_on_upload" in params and not isinstance(
206
+ params["notify_on_upload"], bool
207
+ ):
208
+ raise InvalidParameterError(
209
+ "Bad parameter: notify_on_upload must be an bool"
210
+ )
183
211
  if "id" not in params:
184
212
  raise MissingParameterError("Parameter missing: id")
185
213
  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:
@@ -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
  ):