files-com 1.6.74__tar.gz → 1.6.76__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 (235) hide show
  1. {files_com-1.6.74/files_com.egg-info → files_com-1.6.76}/PKG-INFO +1 -1
  2. files_com-1.6.76/_VERSION +1 -0
  3. {files_com-1.6.74 → files_com-1.6.76/files_com.egg-info}/PKG-INFO +1 -1
  4. {files_com-1.6.74 → files_com-1.6.76}/files_com.egg-info/SOURCES.txt +2 -0
  5. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/__init__.py +3 -1
  6. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/__init__.py +1 -0
  7. files_com-1.6.76/files_sdk/models/partner.py +266 -0
  8. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/permission.py +9 -2
  9. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/user.py +15 -0
  10. {files_com-1.6.74 → files_com-1.6.76}/pyproject.toml +1 -1
  11. files_com-1.6.76/tests/test_partner.py +65 -0
  12. files_com-1.6.74/_VERSION +0 -1
  13. {files_com-1.6.74 → files_com-1.6.76}/LICENSE +0 -0
  14. {files_com-1.6.74 → files_com-1.6.76}/README.md +0 -0
  15. {files_com-1.6.74 → files_com-1.6.76}/files_com.egg-info/dependency_links.txt +0 -0
  16. {files_com-1.6.74 → files_com-1.6.76}/files_com.egg-info/requires.txt +0 -0
  17. {files_com-1.6.74 → files_com-1.6.76}/files_com.egg-info/top_level.txt +0 -0
  18. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/api.py +0 -0
  19. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/api_client.py +0 -0
  20. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/error.py +0 -0
  21. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/list_obj.py +0 -0
  22. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/account_line_item.py +0 -0
  23. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/action.py +0 -0
  24. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/action_notification_export.py +0 -0
  25. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/action_notification_export_result.py +0 -0
  26. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/api_key.py +0 -0
  27. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/api_request_log.py +0 -0
  28. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/app.py +0 -0
  29. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/as2_incoming_message.py +0 -0
  30. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/as2_outgoing_message.py +0 -0
  31. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/as2_partner.py +0 -0
  32. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/as2_station.py +0 -0
  33. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/auto.py +0 -0
  34. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/automation.py +0 -0
  35. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/automation_log.py +0 -0
  36. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/automation_run.py +0 -0
  37. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/bandwidth_snapshot.py +0 -0
  38. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/behavior.py +0 -0
  39. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/bundle.py +0 -0
  40. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/bundle_action.py +0 -0
  41. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/bundle_download.py +0 -0
  42. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/bundle_notification.py +0 -0
  43. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/bundle_path.py +0 -0
  44. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/bundle_recipient.py +0 -0
  45. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/bundle_registration.py +0 -0
  46. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/child_site_management_policy.py +0 -0
  47. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/clickwrap.py +0 -0
  48. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/dns_record.py +0 -0
  49. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/email_incoming_message.py +0 -0
  50. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/email_log.py +0 -0
  51. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/errors.py +0 -0
  52. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/exavault_api_request_log.py +0 -0
  53. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/external_event.py +0 -0
  54. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/file.py +0 -0
  55. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/file_action.py +0 -0
  56. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/file_comment.py +0 -0
  57. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/file_comment_reaction.py +0 -0
  58. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/file_migration.py +0 -0
  59. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/file_migration_log.py +0 -0
  60. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/file_upload_part.py +0 -0
  61. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/folder.py +0 -0
  62. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/form_field.py +0 -0
  63. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/form_field_set.py +0 -0
  64. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/ftp_action_log.py +0 -0
  65. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/gpg_key.py +0 -0
  66. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/group.py +0 -0
  67. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/group_user.py +0 -0
  68. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/history.py +0 -0
  69. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/history_export.py +0 -0
  70. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/history_export_result.py +0 -0
  71. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/holiday_region.py +0 -0
  72. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/image.py +0 -0
  73. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/inbox_recipient.py +0 -0
  74. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/inbox_registration.py +0 -0
  75. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/inbox_upload.py +0 -0
  76. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/invoice.py +0 -0
  77. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/invoice_line_item.py +0 -0
  78. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/ip_address.py +0 -0
  79. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/lock.py +0 -0
  80. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/message.py +0 -0
  81. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/message_comment.py +0 -0
  82. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/message_comment_reaction.py +0 -0
  83. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/message_reaction.py +0 -0
  84. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/notification.py +0 -0
  85. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/outbound_connection_log.py +0 -0
  86. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/payment.py +0 -0
  87. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/payment_line_item.py +0 -0
  88. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/preview.py +0 -0
  89. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/priority.py +0 -0
  90. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/project.py +0 -0
  91. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/public_hosting_request_log.py +0 -0
  92. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/public_ip_address.py +0 -0
  93. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/public_key.py +0 -0
  94. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  95. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/remote_mount_backend.py +0 -0
  96. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/remote_server.py +0 -0
  97. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/remote_server_configuration_file.py +0 -0
  98. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/request.py +0 -0
  99. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/restore.py +0 -0
  100. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/scim_log.py +0 -0
  101. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/session.py +0 -0
  102. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/settings_change.py +0 -0
  103. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/sftp_action_log.py +0 -0
  104. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/sftp_host_key.py +0 -0
  105. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/share_group.py +0 -0
  106. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/share_group_member.py +0 -0
  107. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/siem_http_destination.py +0 -0
  108. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/site.py +0 -0
  109. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/snapshot.py +0 -0
  110. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/sso_strategy.py +0 -0
  111. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/status.py +0 -0
  112. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/style.py +0 -0
  113. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/sync.py +0 -0
  114. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/sync_log.py +0 -0
  115. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/sync_run.py +0 -0
  116. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/usage_by_top_level_dir.py +0 -0
  117. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/usage_daily_snapshot.py +0 -0
  118. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/usage_snapshot.py +0 -0
  119. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/user_cipher_use.py +0 -0
  120. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/user_lifecycle_rule.py +0 -0
  121. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/user_request.py +0 -0
  122. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/user_sftp_client_use.py +0 -0
  123. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/web_dav_action_log.py +0 -0
  124. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/models/webhook_test.py +0 -0
  125. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/path_util.py +0 -0
  126. {files_com-1.6.74 → files_com-1.6.76}/files_sdk/util.py +0 -0
  127. {files_com-1.6.74 → files_com-1.6.76}/setup.cfg +0 -0
  128. {files_com-1.6.74 → files_com-1.6.76}/tests/test_account_line_item.py +0 -0
  129. {files_com-1.6.74 → files_com-1.6.76}/tests/test_action.py +0 -0
  130. {files_com-1.6.74 → files_com-1.6.76}/tests/test_action_notification_export.py +0 -0
  131. {files_com-1.6.74 → files_com-1.6.76}/tests/test_action_notification_export_result.py +0 -0
  132. {files_com-1.6.74 → files_com-1.6.76}/tests/test_api_errors.py +0 -0
  133. {files_com-1.6.74 → files_com-1.6.76}/tests/test_api_key.py +0 -0
  134. {files_com-1.6.74 → files_com-1.6.76}/tests/test_api_request_log.py +0 -0
  135. {files_com-1.6.74 → files_com-1.6.76}/tests/test_app.py +0 -0
  136. {files_com-1.6.74 → files_com-1.6.76}/tests/test_as2_incoming_message.py +0 -0
  137. {files_com-1.6.74 → files_com-1.6.76}/tests/test_as2_outgoing_message.py +0 -0
  138. {files_com-1.6.74 → files_com-1.6.76}/tests/test_as2_partner.py +0 -0
  139. {files_com-1.6.74 → files_com-1.6.76}/tests/test_as2_station.py +0 -0
  140. {files_com-1.6.74 → files_com-1.6.76}/tests/test_auto.py +0 -0
  141. {files_com-1.6.74 → files_com-1.6.76}/tests/test_automation.py +0 -0
  142. {files_com-1.6.74 → files_com-1.6.76}/tests/test_automation_log.py +0 -0
  143. {files_com-1.6.74 → files_com-1.6.76}/tests/test_automation_run.py +0 -0
  144. {files_com-1.6.74 → files_com-1.6.76}/tests/test_bandwidth_snapshot.py +0 -0
  145. {files_com-1.6.74 → files_com-1.6.76}/tests/test_behavior.py +0 -0
  146. {files_com-1.6.74 → files_com-1.6.76}/tests/test_bundle.py +0 -0
  147. {files_com-1.6.74 → files_com-1.6.76}/tests/test_bundle_action.py +0 -0
  148. {files_com-1.6.74 → files_com-1.6.76}/tests/test_bundle_download.py +0 -0
  149. {files_com-1.6.74 → files_com-1.6.76}/tests/test_bundle_notification.py +0 -0
  150. {files_com-1.6.74 → files_com-1.6.76}/tests/test_bundle_path.py +0 -0
  151. {files_com-1.6.74 → files_com-1.6.76}/tests/test_bundle_recipient.py +0 -0
  152. {files_com-1.6.74 → files_com-1.6.76}/tests/test_bundle_registration.py +0 -0
  153. {files_com-1.6.74 → files_com-1.6.76}/tests/test_child_site_management_policy.py +0 -0
  154. {files_com-1.6.74 → files_com-1.6.76}/tests/test_clickwrap.py +0 -0
  155. {files_com-1.6.74 → files_com-1.6.76}/tests/test_connection_adapter.py +0 -0
  156. {files_com-1.6.74 → files_com-1.6.76}/tests/test_dns_record.py +0 -0
  157. {files_com-1.6.74 → files_com-1.6.76}/tests/test_email_incoming_message.py +0 -0
  158. {files_com-1.6.74 → files_com-1.6.76}/tests/test_email_log.py +0 -0
  159. {files_com-1.6.74 → files_com-1.6.76}/tests/test_errors.py +0 -0
  160. {files_com-1.6.74 → files_com-1.6.76}/tests/test_exavault_api_request_log.py +0 -0
  161. {files_com-1.6.74 → files_com-1.6.76}/tests/test_external_event.py +0 -0
  162. {files_com-1.6.74 → files_com-1.6.76}/tests/test_file.py +0 -0
  163. {files_com-1.6.74 → files_com-1.6.76}/tests/test_file_action.py +0 -0
  164. {files_com-1.6.74 → files_com-1.6.76}/tests/test_file_comment.py +0 -0
  165. {files_com-1.6.74 → files_com-1.6.76}/tests/test_file_comment_reaction.py +0 -0
  166. {files_com-1.6.74 → files_com-1.6.76}/tests/test_file_migration.py +0 -0
  167. {files_com-1.6.74 → files_com-1.6.76}/tests/test_file_migration_log.py +0 -0
  168. {files_com-1.6.74 → files_com-1.6.76}/tests/test_file_upload_part.py +0 -0
  169. {files_com-1.6.74 → files_com-1.6.76}/tests/test_folder.py +0 -0
  170. {files_com-1.6.74 → files_com-1.6.76}/tests/test_form_field.py +0 -0
  171. {files_com-1.6.74 → files_com-1.6.76}/tests/test_form_field_set.py +0 -0
  172. {files_com-1.6.74 → files_com-1.6.76}/tests/test_ftp_action_log.py +0 -0
  173. {files_com-1.6.74 → files_com-1.6.76}/tests/test_gpg_key.py +0 -0
  174. {files_com-1.6.74 → files_com-1.6.76}/tests/test_group.py +0 -0
  175. {files_com-1.6.74 → files_com-1.6.76}/tests/test_group_user.py +0 -0
  176. {files_com-1.6.74 → files_com-1.6.76}/tests/test_history.py +0 -0
  177. {files_com-1.6.74 → files_com-1.6.76}/tests/test_history_export.py +0 -0
  178. {files_com-1.6.74 → files_com-1.6.76}/tests/test_history_export_result.py +0 -0
  179. {files_com-1.6.74 → files_com-1.6.76}/tests/test_holiday_region.py +0 -0
  180. {files_com-1.6.74 → files_com-1.6.76}/tests/test_image.py +0 -0
  181. {files_com-1.6.74 → files_com-1.6.76}/tests/test_inbox_recipient.py +0 -0
  182. {files_com-1.6.74 → files_com-1.6.76}/tests/test_inbox_registration.py +0 -0
  183. {files_com-1.6.74 → files_com-1.6.76}/tests/test_inbox_upload.py +0 -0
  184. {files_com-1.6.74 → files_com-1.6.76}/tests/test_invoice.py +0 -0
  185. {files_com-1.6.74 → files_com-1.6.76}/tests/test_invoice_line_item.py +0 -0
  186. {files_com-1.6.74 → files_com-1.6.76}/tests/test_ip_address.py +0 -0
  187. {files_com-1.6.74 → files_com-1.6.76}/tests/test_lock.py +0 -0
  188. {files_com-1.6.74 → files_com-1.6.76}/tests/test_message.py +0 -0
  189. {files_com-1.6.74 → files_com-1.6.76}/tests/test_message_comment.py +0 -0
  190. {files_com-1.6.74 → files_com-1.6.76}/tests/test_message_comment_reaction.py +0 -0
  191. {files_com-1.6.74 → files_com-1.6.76}/tests/test_message_reaction.py +0 -0
  192. {files_com-1.6.74 → files_com-1.6.76}/tests/test_notification.py +0 -0
  193. {files_com-1.6.74 → files_com-1.6.76}/tests/test_outbound_connection_log.py +0 -0
  194. {files_com-1.6.74 → files_com-1.6.76}/tests/test_path_util.py +0 -0
  195. {files_com-1.6.74 → files_com-1.6.76}/tests/test_payment.py +0 -0
  196. {files_com-1.6.74 → files_com-1.6.76}/tests/test_payment_line_item.py +0 -0
  197. {files_com-1.6.74 → files_com-1.6.76}/tests/test_permission.py +0 -0
  198. {files_com-1.6.74 → files_com-1.6.76}/tests/test_preview.py +0 -0
  199. {files_com-1.6.74 → files_com-1.6.76}/tests/test_priority.py +0 -0
  200. {files_com-1.6.74 → files_com-1.6.76}/tests/test_project.py +0 -0
  201. {files_com-1.6.74 → files_com-1.6.76}/tests/test_public_hosting_request_log.py +0 -0
  202. {files_com-1.6.74 → files_com-1.6.76}/tests/test_public_ip_address.py +0 -0
  203. {files_com-1.6.74 → files_com-1.6.76}/tests/test_public_key.py +0 -0
  204. {files_com-1.6.74 → files_com-1.6.76}/tests/test_remote_bandwidth_snapshot.py +0 -0
  205. {files_com-1.6.74 → files_com-1.6.76}/tests/test_remote_mount_backend.py +0 -0
  206. {files_com-1.6.74 → files_com-1.6.76}/tests/test_remote_server.py +0 -0
  207. {files_com-1.6.74 → files_com-1.6.76}/tests/test_remote_server_configuration_file.py +0 -0
  208. {files_com-1.6.74 → files_com-1.6.76}/tests/test_request.py +0 -0
  209. {files_com-1.6.74 → files_com-1.6.76}/tests/test_restore.py +0 -0
  210. {files_com-1.6.74 → files_com-1.6.76}/tests/test_scim_log.py +0 -0
  211. {files_com-1.6.74 → files_com-1.6.76}/tests/test_session.py +0 -0
  212. {files_com-1.6.74 → files_com-1.6.76}/tests/test_settings_change.py +0 -0
  213. {files_com-1.6.74 → files_com-1.6.76}/tests/test_sftp_action_log.py +0 -0
  214. {files_com-1.6.74 → files_com-1.6.76}/tests/test_sftp_host_key.py +0 -0
  215. {files_com-1.6.74 → files_com-1.6.76}/tests/test_share_group.py +0 -0
  216. {files_com-1.6.74 → files_com-1.6.76}/tests/test_share_group_member.py +0 -0
  217. {files_com-1.6.74 → files_com-1.6.76}/tests/test_siem_http_destination.py +0 -0
  218. {files_com-1.6.74 → files_com-1.6.76}/tests/test_site.py +0 -0
  219. {files_com-1.6.74 → files_com-1.6.76}/tests/test_snapshot.py +0 -0
  220. {files_com-1.6.74 → files_com-1.6.76}/tests/test_sso_strategy.py +0 -0
  221. {files_com-1.6.74 → files_com-1.6.76}/tests/test_status.py +0 -0
  222. {files_com-1.6.74 → files_com-1.6.76}/tests/test_style.py +0 -0
  223. {files_com-1.6.74 → files_com-1.6.76}/tests/test_sync.py +0 -0
  224. {files_com-1.6.74 → files_com-1.6.76}/tests/test_sync_log.py +0 -0
  225. {files_com-1.6.74 → files_com-1.6.76}/tests/test_sync_run.py +0 -0
  226. {files_com-1.6.74 → files_com-1.6.76}/tests/test_usage_by_top_level_dir.py +0 -0
  227. {files_com-1.6.74 → files_com-1.6.76}/tests/test_usage_daily_snapshot.py +0 -0
  228. {files_com-1.6.74 → files_com-1.6.76}/tests/test_usage_snapshot.py +0 -0
  229. {files_com-1.6.74 → files_com-1.6.76}/tests/test_user.py +0 -0
  230. {files_com-1.6.74 → files_com-1.6.76}/tests/test_user_cipher_use.py +0 -0
  231. {files_com-1.6.74 → files_com-1.6.76}/tests/test_user_lifecycle_rule.py +0 -0
  232. {files_com-1.6.74 → files_com-1.6.76}/tests/test_user_request.py +0 -0
  233. {files_com-1.6.74 → files_com-1.6.76}/tests/test_user_sftp_client_use.py +0 -0
  234. {files_com-1.6.74 → files_com-1.6.76}/tests/test_web_dav_action_log.py +0 -0
  235. {files_com-1.6.74 → files_com-1.6.76}/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.6.74
3
+ Version: 1.6.76
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -0,0 +1 @@
1
+ 1.6.76
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.74
3
+ Version: 1.6.76
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -80,6 +80,7 @@ files_sdk/models/message_comment_reaction.py
80
80
  files_sdk/models/message_reaction.py
81
81
  files_sdk/models/notification.py
82
82
  files_sdk/models/outbound_connection_log.py
83
+ files_sdk/models/partner.py
83
84
  files_sdk/models/payment.py
84
85
  files_sdk/models/payment_line_item.py
85
86
  files_sdk/models/permission.py
@@ -187,6 +188,7 @@ tests/test_message_comment_reaction.py
187
188
  tests/test_message_reaction.py
188
189
  tests/test_notification.py
189
190
  tests/test_outbound_connection_log.py
191
+ tests/test_partner.py
190
192
  tests/test_path_util.py
191
193
  tests/test_payment.py
192
194
  tests/test_payment_line_item.py
@@ -63,6 +63,7 @@ import files_sdk.models.message_comment_reaction as message_comment_reaction
63
63
  import files_sdk.models.message_reaction as message_reaction
64
64
  import files_sdk.models.notification as notification
65
65
  import files_sdk.models.outbound_connection_log as outbound_connection_log
66
+ import files_sdk.models.partner as partner
66
67
  import files_sdk.models.payment as payment
67
68
  import files_sdk.models.payment_line_item as payment_line_item
68
69
  import files_sdk.models.permission as permission
@@ -175,6 +176,7 @@ from files_sdk.models.message_comment_reaction import MessageCommentReaction
175
176
  from files_sdk.models.message_reaction import MessageReaction
176
177
  from files_sdk.models.notification import Notification
177
178
  from files_sdk.models.outbound_connection_log import OutboundConnectionLog
179
+ from files_sdk.models.partner import Partner
178
180
  from files_sdk.models.payment import Payment
179
181
  from files_sdk.models.payment_line_item import PaymentLineItem
180
182
  from files_sdk.models.permission import Permission
@@ -229,7 +231,7 @@ session_id = None
229
231
  source_ip = None
230
232
  base_url = "https://app.files.com"
231
233
  base_path = "api/rest/v1"
232
- version = "1.6.74"
234
+ version = "1.6.76"
233
235
 
234
236
  __version__ = version
235
237
 
@@ -68,6 +68,7 @@ from files_sdk.models.message_comment_reaction import MessageCommentReaction
68
68
  from files_sdk.models.message_reaction import MessageReaction
69
69
  from files_sdk.models.notification import Notification
70
70
  from files_sdk.models.outbound_connection_log import OutboundConnectionLog
71
+ from files_sdk.models.partner import Partner
71
72
  from files_sdk.models.payment import Payment
72
73
  from files_sdk.models.payment_line_item import PaymentLineItem
73
74
  from files_sdk.models.permission import Permission
@@ -0,0 +1,266 @@
1
+ import builtins # noqa: F401
2
+ from files_sdk.api import Api # noqa: F401
3
+ from files_sdk.list_obj import ListObj
4
+ from files_sdk.error import ( # noqa: F401
5
+ InvalidParameterError,
6
+ MissingParameterError,
7
+ NotImplementedError,
8
+ )
9
+
10
+
11
+ class Partner:
12
+ default_attributes = {
13
+ "allow_bypassing_2fa_policies": None, # boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
14
+ "allow_credential_changes": None, # boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
15
+ "allow_user_creation": None, # boolean - Allow Partner Admins to create users.
16
+ "id": None, # int64 - The unique ID of the Partner.
17
+ "name": None, # string - The name of the Partner.
18
+ "notes": None, # string - Notes about this Partner.
19
+ "root_folder": None, # string - The root folder path for this Partner.
20
+ }
21
+
22
+ def __init__(self, attributes=None, options=None):
23
+ if not isinstance(attributes, dict):
24
+ attributes = {}
25
+ if not isinstance(options, dict):
26
+ options = {}
27
+ self.set_attributes(attributes)
28
+ self.options = options
29
+
30
+ def set_attributes(self, attributes):
31
+ for attribute, default_value in Partner.default_attributes.items():
32
+ setattr(self, attribute, attributes.get(attribute, default_value))
33
+
34
+ def get_attributes(self):
35
+ return {
36
+ k: getattr(self, k, None)
37
+ for k in Partner.default_attributes
38
+ if getattr(self, k, None) is not None
39
+ }
40
+
41
+ # Parameters:
42
+ # allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
43
+ # allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
44
+ # allow_user_creation - boolean - Allow Partner Admins to create users.
45
+ # name - string - The name of the Partner.
46
+ # notes - string - Notes about this Partner.
47
+ # root_folder - string - The root folder path for this Partner.
48
+ def update(self, params=None):
49
+ if not isinstance(params, dict):
50
+ params = {}
51
+
52
+ if hasattr(self, "id") and self.id:
53
+ params["id"] = self.id
54
+ else:
55
+ raise MissingParameterError("Current object doesn't have a id")
56
+ if "id" not in params:
57
+ raise MissingParameterError("Parameter missing: id")
58
+ if "id" in params and not isinstance(params["id"], int):
59
+ raise InvalidParameterError("Bad parameter: id must be an int")
60
+ if "name" in params and not isinstance(params["name"], str):
61
+ raise InvalidParameterError("Bad parameter: name must be an str")
62
+ if "notes" in params and not isinstance(params["notes"], str):
63
+ raise InvalidParameterError("Bad parameter: notes must be an str")
64
+ if "root_folder" in params and not isinstance(
65
+ params["root_folder"], str
66
+ ):
67
+ raise InvalidParameterError(
68
+ "Bad parameter: root_folder must be an str"
69
+ )
70
+ response, _options = Api.send_request(
71
+ "PATCH",
72
+ "/partners/{id}".format(id=params["id"]),
73
+ params,
74
+ self.options,
75
+ )
76
+ return response.data
77
+
78
+ def delete(self, params=None):
79
+ if not isinstance(params, dict):
80
+ params = {}
81
+
82
+ if hasattr(self, "id") and self.id:
83
+ params["id"] = self.id
84
+ else:
85
+ raise MissingParameterError("Current object doesn't have a id")
86
+ if "id" not in params:
87
+ raise MissingParameterError("Parameter missing: id")
88
+ if "id" in params and not isinstance(params["id"], int):
89
+ raise InvalidParameterError("Bad parameter: id must be an int")
90
+ Api.send_request(
91
+ "DELETE",
92
+ "/partners/{id}".format(id=params["id"]),
93
+ params,
94
+ self.options,
95
+ )
96
+
97
+ def destroy(self, params=None):
98
+ self.delete(params)
99
+
100
+ def save(self):
101
+ if hasattr(self, "id") and self.id:
102
+ new_obj = self.update(self.get_attributes())
103
+ self.set_attributes(new_obj.get_attributes())
104
+ return True
105
+ else:
106
+ new_obj = create(self.get_attributes(), self.options)
107
+ self.set_attributes(new_obj.get_attributes())
108
+ return True
109
+
110
+
111
+ # Parameters:
112
+ # 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.
113
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
114
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`.
115
+ def list(params=None, options=None):
116
+ if not isinstance(params, dict):
117
+ params = {}
118
+ if not isinstance(options, dict):
119
+ options = {}
120
+ if "cursor" in params and not isinstance(params["cursor"], str):
121
+ raise InvalidParameterError("Bad parameter: cursor must be an str")
122
+ if "per_page" in params and not isinstance(params["per_page"], int):
123
+ raise InvalidParameterError("Bad parameter: per_page must be an int")
124
+ if "sort_by" in params and not isinstance(params["sort_by"], dict):
125
+ raise InvalidParameterError("Bad parameter: sort_by must be an dict")
126
+ return ListObj(Partner, "GET", "/partners", params, options)
127
+
128
+
129
+ def all(params=None, options=None):
130
+ list(params, options)
131
+
132
+
133
+ # Parameters:
134
+ # id (required) - int64 - Partner ID.
135
+ def find(id, params=None, options=None):
136
+ if not isinstance(params, dict):
137
+ params = {}
138
+ if not isinstance(options, dict):
139
+ options = {}
140
+ params["id"] = id
141
+ if "id" in params and not isinstance(params["id"], int):
142
+ raise InvalidParameterError("Bad parameter: id must be an int")
143
+ if "id" not in params:
144
+ raise MissingParameterError("Parameter missing: id")
145
+ response, options = Api.send_request(
146
+ "GET", "/partners/{id}".format(id=params["id"]), params, options
147
+ )
148
+ return Partner(response.data, options)
149
+
150
+
151
+ def get(id, params=None, options=None):
152
+ find(id, params, options)
153
+
154
+
155
+ # Parameters:
156
+ # allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
157
+ # allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
158
+ # allow_user_creation - boolean - Allow Partner Admins to create users.
159
+ # name - string - The name of the Partner.
160
+ # notes - string - Notes about this Partner.
161
+ # root_folder - string - The root folder path for this Partner.
162
+ def create(params=None, options=None):
163
+ if not isinstance(params, dict):
164
+ params = {}
165
+ if not isinstance(options, dict):
166
+ options = {}
167
+ if "allow_bypassing_2fa_policies" in params and not isinstance(
168
+ params["allow_bypassing_2fa_policies"], bool
169
+ ):
170
+ raise InvalidParameterError(
171
+ "Bad parameter: allow_bypassing_2fa_policies must be an bool"
172
+ )
173
+ if "allow_credential_changes" in params and not isinstance(
174
+ params["allow_credential_changes"], bool
175
+ ):
176
+ raise InvalidParameterError(
177
+ "Bad parameter: allow_credential_changes must be an bool"
178
+ )
179
+ if "allow_user_creation" in params and not isinstance(
180
+ params["allow_user_creation"], bool
181
+ ):
182
+ raise InvalidParameterError(
183
+ "Bad parameter: allow_user_creation must be an bool"
184
+ )
185
+ if "name" in params and not isinstance(params["name"], str):
186
+ raise InvalidParameterError("Bad parameter: name must be an str")
187
+ if "notes" in params and not isinstance(params["notes"], str):
188
+ raise InvalidParameterError("Bad parameter: notes must be an str")
189
+ if "root_folder" in params and not isinstance(params["root_folder"], str):
190
+ raise InvalidParameterError(
191
+ "Bad parameter: root_folder must be an str"
192
+ )
193
+ response, options = Api.send_request("POST", "/partners", params, options)
194
+ return Partner(response.data, options)
195
+
196
+
197
+ # Parameters:
198
+ # allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
199
+ # allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
200
+ # allow_user_creation - boolean - Allow Partner Admins to create users.
201
+ # name - string - The name of the Partner.
202
+ # notes - string - Notes about this Partner.
203
+ # root_folder - string - The root folder path for this Partner.
204
+ def update(id, params=None, options=None):
205
+ if not isinstance(params, dict):
206
+ params = {}
207
+ if not isinstance(options, dict):
208
+ options = {}
209
+ params["id"] = id
210
+ if "id" in params and not isinstance(params["id"], int):
211
+ raise InvalidParameterError("Bad parameter: id must be an int")
212
+ if "allow_bypassing_2fa_policies" in params and not isinstance(
213
+ params["allow_bypassing_2fa_policies"], bool
214
+ ):
215
+ raise InvalidParameterError(
216
+ "Bad parameter: allow_bypassing_2fa_policies must be an bool"
217
+ )
218
+ if "allow_credential_changes" in params and not isinstance(
219
+ params["allow_credential_changes"], bool
220
+ ):
221
+ raise InvalidParameterError(
222
+ "Bad parameter: allow_credential_changes must be an bool"
223
+ )
224
+ if "allow_user_creation" in params and not isinstance(
225
+ params["allow_user_creation"], bool
226
+ ):
227
+ raise InvalidParameterError(
228
+ "Bad parameter: allow_user_creation must be an bool"
229
+ )
230
+ if "name" in params and not isinstance(params["name"], str):
231
+ raise InvalidParameterError("Bad parameter: name must be an str")
232
+ if "notes" in params and not isinstance(params["notes"], str):
233
+ raise InvalidParameterError("Bad parameter: notes must be an str")
234
+ if "root_folder" in params and not isinstance(params["root_folder"], str):
235
+ raise InvalidParameterError(
236
+ "Bad parameter: root_folder must be an str"
237
+ )
238
+ if "id" not in params:
239
+ raise MissingParameterError("Parameter missing: id")
240
+ response, options = Api.send_request(
241
+ "PATCH", "/partners/{id}".format(id=params["id"]), params, options
242
+ )
243
+ return Partner(response.data, options)
244
+
245
+
246
+ def delete(id, params=None, options=None):
247
+ if not isinstance(params, dict):
248
+ params = {}
249
+ if not isinstance(options, dict):
250
+ options = {}
251
+ params["id"] = id
252
+ if "id" in params and not isinstance(params["id"], int):
253
+ raise InvalidParameterError("Bad parameter: id must be an int")
254
+ if "id" not in params:
255
+ raise MissingParameterError("Parameter missing: id")
256
+ Api.send_request(
257
+ "DELETE", "/partners/{id}".format(id=params["id"]), params, options
258
+ )
259
+
260
+
261
+ def destroy(id, params=None, options=None):
262
+ delete(id, params, options)
263
+
264
+
265
+ def new(*args, **kwargs):
266
+ return Partner(*args, **kwargs)
@@ -16,6 +16,7 @@ class Permission:
16
16
  "username": None, # string - Username (if applicable)
17
17
  "group_id": None, # int64 - Group ID
18
18
  "group_name": None, # string - Group name (if applicable)
19
+ "partner_id": None, # int64 - Partner ID (if applicable)
19
20
  "permission": None, # string - Permission type. See the table referenced in the documentation for an explanation of each permission.
20
21
  "recursive": None, # boolean - Recursive: does this permission apply to subfolders?
21
22
  "site_id": None, # int64 - Site ID
@@ -76,12 +77,13 @@ class Permission:
76
77
  # Parameters:
77
78
  # 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.
78
79
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
79
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `group_id`, `path`, `user_id` or `id`.
80
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ group_id, path ]`, `[ user_id, path ]`, `[ user_id, group_id ]` or `[ user_id, group_id, path ]`.
80
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `group_id`, `path`, `user_id`, `partner_id` or `id`.
81
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id`, `partner_id` or `user_id`. Valid field combinations are `[ group_id, path ]`, `[ partner_id, path ]`, `[ user_id, path ]`, `[ user_id, group_id ]`, `[ user_id, group_id, path ]`, `[ user_id, group_id, partner_id ]` or `[ user_id, group_id, partner_id, path ]`.
81
82
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
82
83
  # path - string - Permission path. If provided, will scope all permissions(including upward) to this path.
83
84
  # include_groups - boolean - If searching by user or group, also include user's permissions that are inherited from its groups?
84
85
  # group_id - string
86
+ # partner_id - string
85
87
  # user_id - string
86
88
  def list(params=None, options=None):
87
89
  if not isinstance(params, dict):
@@ -112,6 +114,8 @@ def list(params=None, options=None):
112
114
  )
113
115
  if "group_id" in params and not isinstance(params["group_id"], str):
114
116
  raise InvalidParameterError("Bad parameter: group_id must be an str")
117
+ if "partner_id" in params and not isinstance(params["partner_id"], str):
118
+ raise InvalidParameterError("Bad parameter: partner_id must be an str")
115
119
  if "user_id" in params and not isinstance(params["user_id"], str):
116
120
  raise InvalidParameterError("Bad parameter: user_id must be an str")
117
121
  return ListObj(Permission, "GET", "/permissions", params, options)
@@ -126,6 +130,7 @@ def all(params=None, options=None):
126
130
  # group_id - int64 - Group ID. Provide `group_name` or `group_id`
127
131
  # permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
128
132
  # recursive - boolean - Apply to subfolders recursively?
133
+ # partner_id - int64 - Partner ID if this Permission belongs to a partner.
129
134
  # user_id - int64 - User ID. Provide `username` or `user_id`
130
135
  # username - string - User username. Provide `username` or `user_id`
131
136
  # group_name - string - Group name. Provide `group_name` or `group_id`
@@ -143,6 +148,8 @@ def create(params=None, options=None):
143
148
  raise InvalidParameterError("Bad parameter: permission must be an str")
144
149
  if "recursive" in params and not isinstance(params["recursive"], bool):
145
150
  raise InvalidParameterError("Bad parameter: recursive must be an bool")
151
+ if "partner_id" in params and not isinstance(params["partner_id"], int):
152
+ raise InvalidParameterError("Bad parameter: partner_id must be an int")
146
153
  if "user_id" in params and not isinstance(params["user_id"], int):
147
154
  raise InvalidParameterError("Bad parameter: user_id must be an int")
148
155
  if "username" in params and not isinstance(params["username"], str):
@@ -50,6 +50,8 @@ class User:
50
50
  "notes": None, # string - Any internal notes on the user
51
51
  "notification_daily_send_time": None, # int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
52
52
  "office_integration_enabled": None, # boolean - Enable integration with Office for the web?
53
+ "partner_admin": None, # boolean - Is this user a Partner administrator?
54
+ "partner_id": None, # int64 - Partner ID if this user belongs to a Partner
53
55
  "password_set_at": None, # date-time - Last time the user's password was set
54
56
  "password_validity_days": None, # int64 - Number of days to allow user to use the same password
55
57
  "public_keys_count": None, # int64 - Number of public keys associated with this user
@@ -200,6 +202,7 @@ class User:
200
202
  # company - string - User's company
201
203
  # notes - string - Any internal notes on the user
202
204
  # office_integration_enabled - boolean - Enable integration with Office for the web?
205
+ # partner_id - int64 - Partner ID if this user belongs to a Partner
203
206
  # password_validity_days - int64 - Number of days to allow user to use the same password
204
207
  # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
205
208
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
@@ -323,6 +326,12 @@ class User:
323
326
  )
324
327
  if "notes" in params and not isinstance(params["notes"], str):
325
328
  raise InvalidParameterError("Bad parameter: notes must be an str")
329
+ if "partner_id" in params and not isinstance(
330
+ params["partner_id"], int
331
+ ):
332
+ raise InvalidParameterError(
333
+ "Bad parameter: partner_id must be an int"
334
+ )
326
335
  if "password_validity_days" in params and not isinstance(
327
336
  params["password_validity_days"], int
328
337
  ):
@@ -532,6 +541,7 @@ def get(id, params=None, options=None):
532
541
  # company - string - User's company
533
542
  # notes - string - Any internal notes on the user
534
543
  # office_integration_enabled - boolean - Enable integration with Office for the web?
544
+ # partner_id - int64 - Partner ID if this user belongs to a Partner
535
545
  # password_validity_days - int64 - Number of days to allow user to use the same password
536
546
  # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
537
547
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
@@ -689,6 +699,8 @@ def create(params=None, options=None):
689
699
  raise InvalidParameterError(
690
700
  "Bad parameter: office_integration_enabled must be an bool"
691
701
  )
702
+ if "partner_id" in params and not isinstance(params["partner_id"], int):
703
+ raise InvalidParameterError("Bad parameter: partner_id must be an int")
692
704
  if "password_validity_days" in params and not isinstance(
693
705
  params["password_validity_days"], int
694
706
  ):
@@ -868,6 +880,7 @@ def user_2fa_reset(id, params=None, options=None):
868
880
  # company - string - User's company
869
881
  # notes - string - Any internal notes on the user
870
882
  # office_integration_enabled - boolean - Enable integration with Office for the web?
883
+ # partner_id - int64 - Partner ID if this user belongs to a Partner
871
884
  # password_validity_days - int64 - Number of days to allow user to use the same password
872
885
  # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
873
886
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
@@ -1029,6 +1042,8 @@ def update(id, params=None, options=None):
1029
1042
  raise InvalidParameterError(
1030
1043
  "Bad parameter: office_integration_enabled must be an bool"
1031
1044
  )
1045
+ if "partner_id" in params and not isinstance(params["partner_id"], int):
1046
+ raise InvalidParameterError("Bad parameter: partner_id must be an int")
1032
1047
  if "password_validity_days" in params and not isinstance(
1033
1048
  params["password_validity_days"], int
1034
1049
  ):
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "files_com"
7
- version = "1.6.74"
7
+ version = "1.6.76"
8
8
  description = "Python bindings for the Files.com API"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -0,0 +1,65 @@
1
+ import unittest
2
+ import inspect
3
+ import files_sdk
4
+ from tests.base import TestBase
5
+ from files_sdk.models import Partner
6
+ from files_sdk import partner
7
+
8
+ class PartnerTest(TestBase):
9
+ pass
10
+ # Instance Methods
11
+ @unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/partners/{id}"), "Mock path does not exist")
12
+ def test_update(self):
13
+ params = {
14
+ "id" : 12345,
15
+ }
16
+ partner = Partner(params)
17
+ partner.update(params)
18
+
19
+ @unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/partners/{id}"), "Mock path does not exist")
20
+ def test_delete(self):
21
+ params = {
22
+ "id" : 12345,
23
+ }
24
+ partner = Partner(params)
25
+ partner.delete(params)
26
+
27
+ # Alias of delete
28
+ def test_destroy(self):
29
+ pass
30
+
31
+ # Static Methods
32
+ @unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/partners"), "Mock path does not exist")
33
+ def test_list(self):
34
+ resp = partner.list()
35
+
36
+ @unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/partners/{id}"), "Mock path does not exist")
37
+ def test_find(self):
38
+ id = 12345
39
+ params = {
40
+ "id" : 12345,
41
+ }
42
+ partner.find(id, params)
43
+
44
+ @unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/partners"), "Mock path does not exist")
45
+ def test_create(self):
46
+ resp = partner.create()
47
+
48
+ @unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/partners/{id}"), "Mock path does not exist")
49
+ def test_update(self):
50
+ id = 12345
51
+ params = {
52
+ "id" : 12345,
53
+ }
54
+ partner.update(id, params)
55
+
56
+ @unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/partners/{id}"), "Mock path does not exist")
57
+ def test_delete(self):
58
+ id = 12345
59
+ params = {
60
+ "id" : 12345,
61
+ }
62
+ partner.delete(id, params)
63
+
64
+ if __name__ == '__main__':
65
+ unittest.main()
files_com-1.6.74/_VERSION DELETED
@@ -1 +0,0 @@
1
- 1.6.74
File without changes
File without changes
File without changes