Files.com 1.6.381__tar.gz → 1.6.382__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.
Files changed (286) hide show
  1. {files_com-1.6.381/files_com.egg-info → files_com-1.6.382}/PKG-INFO +1 -1
  2. files_com-1.6.382/_VERSION +1 -0
  3. {files_com-1.6.381 → files_com-1.6.382/files_com.egg-info}/PKG-INFO +1 -1
  4. {files_com-1.6.381 → files_com-1.6.382}/files_com.egg-info/SOURCES.txt +2 -0
  5. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/__init__.py +3 -1
  6. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/__init__.py +1 -0
  7. files_com-1.6.382/files_sdk/models/scheduled_export.py +416 -0
  8. {files_com-1.6.381 → files_com-1.6.382}/pyproject.toml +1 -1
  9. files_com-1.6.382/tests/test_scheduled_export.py +69 -0
  10. files_com-1.6.381/_VERSION +0 -1
  11. {files_com-1.6.381 → files_com-1.6.382}/LICENSE +0 -0
  12. {files_com-1.6.381 → files_com-1.6.382}/README.md +0 -0
  13. {files_com-1.6.381 → files_com-1.6.382}/files_com.egg-info/dependency_links.txt +0 -0
  14. {files_com-1.6.381 → files_com-1.6.382}/files_com.egg-info/requires.txt +0 -0
  15. {files_com-1.6.381 → files_com-1.6.382}/files_com.egg-info/top_level.txt +0 -0
  16. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/api.py +0 -0
  17. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/api_client.py +0 -0
  18. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/error.py +0 -0
  19. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/list_obj.py +0 -0
  20. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/account_line_item.py +0 -0
  21. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/action.py +0 -0
  22. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/action_log.py +0 -0
  23. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/action_notification_export.py +0 -0
  24. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/action_notification_export_result.py +0 -0
  25. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/agent_push_update.py +0 -0
  26. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/api_key.py +0 -0
  27. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/api_request_log.py +0 -0
  28. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/app.py +0 -0
  29. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/as2_incoming_message.py +0 -0
  30. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/as2_outgoing_message.py +0 -0
  31. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/as2_partner.py +0 -0
  32. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/as2_station.py +0 -0
  33. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/auto.py +0 -0
  34. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/automation.py +0 -0
  35. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/automation_log.py +0 -0
  36. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/automation_run.py +0 -0
  37. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/bandwidth_snapshot.py +0 -0
  38. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/behavior.py +0 -0
  39. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/bundle.py +0 -0
  40. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/bundle_action.py +0 -0
  41. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/bundle_download.py +0 -0
  42. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/bundle_notification.py +0 -0
  43. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/bundle_path.py +0 -0
  44. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/bundle_recipient.py +0 -0
  45. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/bundle_registration.py +0 -0
  46. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/child_site_management_policy.py +0 -0
  47. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/clickwrap.py +0 -0
  48. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/desktop_configuration_profile.py +0 -0
  49. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/dns_record.py +0 -0
  50. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/email_incoming_message.py +0 -0
  51. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/email_log.py +0 -0
  52. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/errors.py +0 -0
  53. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/event_channel.py +0 -0
  54. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/event_delivery_attempt.py +0 -0
  55. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/event_record.py +0 -0
  56. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/event_subscription.py +0 -0
  57. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/event_target.py +0 -0
  58. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/exavault_api_request_log.py +0 -0
  59. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/expectation.py +0 -0
  60. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/expectation_evaluation.py +0 -0
  61. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/expectation_incident.py +0 -0
  62. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/external_event.py +0 -0
  63. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/file.py +0 -0
  64. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/file_action.py +0 -0
  65. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/file_comment.py +0 -0
  66. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/file_comment_reaction.py +0 -0
  67. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/file_migration.py +0 -0
  68. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/file_migration_log.py +0 -0
  69. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/file_upload_part.py +0 -0
  70. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/folder.py +0 -0
  71. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/form_field.py +0 -0
  72. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/form_field_set.py +0 -0
  73. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/ftp_action_log.py +0 -0
  74. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/gpg_key.py +0 -0
  75. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/group.py +0 -0
  76. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/group_user.py +0 -0
  77. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/history.py +0 -0
  78. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/history_export.py +0 -0
  79. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/history_export_result.py +0 -0
  80. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/holiday_region.py +0 -0
  81. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/image.py +0 -0
  82. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/inbound_s3_log.py +0 -0
  83. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/inbox_recipient.py +0 -0
  84. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/inbox_registration.py +0 -0
  85. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/inbox_upload.py +0 -0
  86. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/invoice.py +0 -0
  87. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/invoice_line_item.py +0 -0
  88. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/ip_address.py +0 -0
  89. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/key_lifecycle_rule.py +0 -0
  90. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/lock.py +0 -0
  91. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/message.py +0 -0
  92. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/message_comment.py +0 -0
  93. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/message_comment_reaction.py +0 -0
  94. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/message_reaction.py +0 -0
  95. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/metadata_category.py +0 -0
  96. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/notification.py +0 -0
  97. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/outbound_connection_log.py +0 -0
  98. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/partner.py +0 -0
  99. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/partner_site.py +0 -0
  100. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/partner_site_request.py +0 -0
  101. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/payment.py +0 -0
  102. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/payment_line_item.py +0 -0
  103. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/pending_work_event.py +0 -0
  104. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/permission.py +0 -0
  105. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/preview.py +0 -0
  106. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/project.py +0 -0
  107. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/public_hosting_request_log.py +0 -0
  108. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/public_ip_address.py +0 -0
  109. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/public_key.py +0 -0
  110. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  111. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/remote_mount_backend.py +0 -0
  112. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/remote_server.py +0 -0
  113. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/remote_server_configuration_file.py +0 -0
  114. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/remote_server_credential.py +0 -0
  115. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/request.py +0 -0
  116. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/restore.py +0 -0
  117. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/scim_log.py +0 -0
  118. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/session.py +0 -0
  119. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/settings_change.py +0 -0
  120. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/sftp_action_log.py +0 -0
  121. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/sftp_host_key.py +0 -0
  122. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/share_group.py +0 -0
  123. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/share_group_member.py +0 -0
  124. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/siem_http_destination.py +0 -0
  125. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/siem_http_destination_event.py +0 -0
  126. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/site.py +0 -0
  127. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/site_subdomain_redirect.py +0 -0
  128. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/snapshot.py +0 -0
  129. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/sso_event.py +0 -0
  130. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/sso_strategy.py +0 -0
  131. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/status.py +0 -0
  132. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/style.py +0 -0
  133. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/sync.py +0 -0
  134. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/sync_log.py +0 -0
  135. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/sync_run.py +0 -0
  136. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/sync_run_live_transfer.py +0 -0
  137. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/usage_by_top_level_dir.py +0 -0
  138. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/usage_daily_snapshot.py +0 -0
  139. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/usage_snapshot.py +0 -0
  140. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/user.py +0 -0
  141. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/user_cipher_use.py +0 -0
  142. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/user_lifecycle_rule.py +0 -0
  143. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/user_request.py +0 -0
  144. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/user_security_event.py +0 -0
  145. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/user_sftp_client_use.py +0 -0
  146. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/web_dav_action_log.py +0 -0
  147. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/webhook_test.py +0 -0
  148. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/workspace.py +0 -0
  149. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/models/zip_list_entry.py +0 -0
  150. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/path_util.py +0 -0
  151. {files_com-1.6.381 → files_com-1.6.382}/files_sdk/util.py +0 -0
  152. {files_com-1.6.381 → files_com-1.6.382}/setup.cfg +0 -0
  153. {files_com-1.6.381 → files_com-1.6.382}/tests/test_account_line_item.py +0 -0
  154. {files_com-1.6.381 → files_com-1.6.382}/tests/test_action.py +0 -0
  155. {files_com-1.6.381 → files_com-1.6.382}/tests/test_action_log.py +0 -0
  156. {files_com-1.6.381 → files_com-1.6.382}/tests/test_action_notification_export.py +0 -0
  157. {files_com-1.6.381 → files_com-1.6.382}/tests/test_action_notification_export_result.py +0 -0
  158. {files_com-1.6.381 → files_com-1.6.382}/tests/test_agent_push_update.py +0 -0
  159. {files_com-1.6.381 → files_com-1.6.382}/tests/test_api_errors.py +0 -0
  160. {files_com-1.6.381 → files_com-1.6.382}/tests/test_api_key.py +0 -0
  161. {files_com-1.6.381 → files_com-1.6.382}/tests/test_api_request_log.py +0 -0
  162. {files_com-1.6.381 → files_com-1.6.382}/tests/test_app.py +0 -0
  163. {files_com-1.6.381 → files_com-1.6.382}/tests/test_as2_incoming_message.py +0 -0
  164. {files_com-1.6.381 → files_com-1.6.382}/tests/test_as2_outgoing_message.py +0 -0
  165. {files_com-1.6.381 → files_com-1.6.382}/tests/test_as2_partner.py +0 -0
  166. {files_com-1.6.381 → files_com-1.6.382}/tests/test_as2_station.py +0 -0
  167. {files_com-1.6.381 → files_com-1.6.382}/tests/test_auto.py +0 -0
  168. {files_com-1.6.381 → files_com-1.6.382}/tests/test_automation.py +0 -0
  169. {files_com-1.6.381 → files_com-1.6.382}/tests/test_automation_log.py +0 -0
  170. {files_com-1.6.381 → files_com-1.6.382}/tests/test_automation_run.py +0 -0
  171. {files_com-1.6.381 → files_com-1.6.382}/tests/test_bandwidth_snapshot.py +0 -0
  172. {files_com-1.6.381 → files_com-1.6.382}/tests/test_behavior.py +0 -0
  173. {files_com-1.6.381 → files_com-1.6.382}/tests/test_bundle.py +0 -0
  174. {files_com-1.6.381 → files_com-1.6.382}/tests/test_bundle_action.py +0 -0
  175. {files_com-1.6.381 → files_com-1.6.382}/tests/test_bundle_download.py +0 -0
  176. {files_com-1.6.381 → files_com-1.6.382}/tests/test_bundle_notification.py +0 -0
  177. {files_com-1.6.381 → files_com-1.6.382}/tests/test_bundle_path.py +0 -0
  178. {files_com-1.6.381 → files_com-1.6.382}/tests/test_bundle_recipient.py +0 -0
  179. {files_com-1.6.381 → files_com-1.6.382}/tests/test_bundle_registration.py +0 -0
  180. {files_com-1.6.381 → files_com-1.6.382}/tests/test_child_site_management_policy.py +0 -0
  181. {files_com-1.6.381 → files_com-1.6.382}/tests/test_clickwrap.py +0 -0
  182. {files_com-1.6.381 → files_com-1.6.382}/tests/test_connection_adapter.py +0 -0
  183. {files_com-1.6.381 → files_com-1.6.382}/tests/test_decimal_contract.py +0 -0
  184. {files_com-1.6.381 → files_com-1.6.382}/tests/test_desktop_configuration_profile.py +0 -0
  185. {files_com-1.6.381 → files_com-1.6.382}/tests/test_dns_record.py +0 -0
  186. {files_com-1.6.381 → files_com-1.6.382}/tests/test_email_incoming_message.py +0 -0
  187. {files_com-1.6.381 → files_com-1.6.382}/tests/test_email_log.py +0 -0
  188. {files_com-1.6.381 → files_com-1.6.382}/tests/test_errors.py +0 -0
  189. {files_com-1.6.381 → files_com-1.6.382}/tests/test_event_channel.py +0 -0
  190. {files_com-1.6.381 → files_com-1.6.382}/tests/test_event_delivery_attempt.py +0 -0
  191. {files_com-1.6.381 → files_com-1.6.382}/tests/test_event_record.py +0 -0
  192. {files_com-1.6.381 → files_com-1.6.382}/tests/test_event_subscription.py +0 -0
  193. {files_com-1.6.381 → files_com-1.6.382}/tests/test_event_target.py +0 -0
  194. {files_com-1.6.381 → files_com-1.6.382}/tests/test_exavault_api_request_log.py +0 -0
  195. {files_com-1.6.381 → files_com-1.6.382}/tests/test_expectation.py +0 -0
  196. {files_com-1.6.381 → files_com-1.6.382}/tests/test_expectation_evaluation.py +0 -0
  197. {files_com-1.6.381 → files_com-1.6.382}/tests/test_expectation_incident.py +0 -0
  198. {files_com-1.6.381 → files_com-1.6.382}/tests/test_external_event.py +0 -0
  199. {files_com-1.6.381 → files_com-1.6.382}/tests/test_file.py +0 -0
  200. {files_com-1.6.381 → files_com-1.6.382}/tests/test_file_action.py +0 -0
  201. {files_com-1.6.381 → files_com-1.6.382}/tests/test_file_comment.py +0 -0
  202. {files_com-1.6.381 → files_com-1.6.382}/tests/test_file_comment_reaction.py +0 -0
  203. {files_com-1.6.381 → files_com-1.6.382}/tests/test_file_migration.py +0 -0
  204. {files_com-1.6.381 → files_com-1.6.382}/tests/test_file_migration_log.py +0 -0
  205. {files_com-1.6.381 → files_com-1.6.382}/tests/test_file_upload_part.py +0 -0
  206. {files_com-1.6.381 → files_com-1.6.382}/tests/test_folder.py +0 -0
  207. {files_com-1.6.381 → files_com-1.6.382}/tests/test_form_field.py +0 -0
  208. {files_com-1.6.381 → files_com-1.6.382}/tests/test_form_field_set.py +0 -0
  209. {files_com-1.6.381 → files_com-1.6.382}/tests/test_ftp_action_log.py +0 -0
  210. {files_com-1.6.381 → files_com-1.6.382}/tests/test_gpg_key.py +0 -0
  211. {files_com-1.6.381 → files_com-1.6.382}/tests/test_group.py +0 -0
  212. {files_com-1.6.381 → files_com-1.6.382}/tests/test_group_user.py +0 -0
  213. {files_com-1.6.381 → files_com-1.6.382}/tests/test_history.py +0 -0
  214. {files_com-1.6.381 → files_com-1.6.382}/tests/test_history_export.py +0 -0
  215. {files_com-1.6.381 → files_com-1.6.382}/tests/test_history_export_result.py +0 -0
  216. {files_com-1.6.381 → files_com-1.6.382}/tests/test_holiday_region.py +0 -0
  217. {files_com-1.6.381 → files_com-1.6.382}/tests/test_image.py +0 -0
  218. {files_com-1.6.381 → files_com-1.6.382}/tests/test_inbound_s3_log.py +0 -0
  219. {files_com-1.6.381 → files_com-1.6.382}/tests/test_inbox_recipient.py +0 -0
  220. {files_com-1.6.381 → files_com-1.6.382}/tests/test_inbox_registration.py +0 -0
  221. {files_com-1.6.381 → files_com-1.6.382}/tests/test_inbox_upload.py +0 -0
  222. {files_com-1.6.381 → files_com-1.6.382}/tests/test_invoice.py +0 -0
  223. {files_com-1.6.381 → files_com-1.6.382}/tests/test_invoice_line_item.py +0 -0
  224. {files_com-1.6.381 → files_com-1.6.382}/tests/test_ip_address.py +0 -0
  225. {files_com-1.6.381 → files_com-1.6.382}/tests/test_key_lifecycle_rule.py +0 -0
  226. {files_com-1.6.381 → files_com-1.6.382}/tests/test_lock.py +0 -0
  227. {files_com-1.6.381 → files_com-1.6.382}/tests/test_message.py +0 -0
  228. {files_com-1.6.381 → files_com-1.6.382}/tests/test_message_comment.py +0 -0
  229. {files_com-1.6.381 → files_com-1.6.382}/tests/test_message_comment_reaction.py +0 -0
  230. {files_com-1.6.381 → files_com-1.6.382}/tests/test_message_reaction.py +0 -0
  231. {files_com-1.6.381 → files_com-1.6.382}/tests/test_metadata_category.py +0 -0
  232. {files_com-1.6.381 → files_com-1.6.382}/tests/test_notification.py +0 -0
  233. {files_com-1.6.381 → files_com-1.6.382}/tests/test_outbound_connection_log.py +0 -0
  234. {files_com-1.6.381 → files_com-1.6.382}/tests/test_partner.py +0 -0
  235. {files_com-1.6.381 → files_com-1.6.382}/tests/test_partner_site.py +0 -0
  236. {files_com-1.6.381 → files_com-1.6.382}/tests/test_partner_site_request.py +0 -0
  237. {files_com-1.6.381 → files_com-1.6.382}/tests/test_path_util.py +0 -0
  238. {files_com-1.6.381 → files_com-1.6.382}/tests/test_payment.py +0 -0
  239. {files_com-1.6.381 → files_com-1.6.382}/tests/test_payment_line_item.py +0 -0
  240. {files_com-1.6.381 → files_com-1.6.382}/tests/test_pending_work_event.py +0 -0
  241. {files_com-1.6.381 → files_com-1.6.382}/tests/test_permission.py +0 -0
  242. {files_com-1.6.381 → files_com-1.6.382}/tests/test_preview.py +0 -0
  243. {files_com-1.6.381 → files_com-1.6.382}/tests/test_project.py +0 -0
  244. {files_com-1.6.381 → files_com-1.6.382}/tests/test_public_hosting_request_log.py +0 -0
  245. {files_com-1.6.381 → files_com-1.6.382}/tests/test_public_ip_address.py +0 -0
  246. {files_com-1.6.381 → files_com-1.6.382}/tests/test_public_key.py +0 -0
  247. {files_com-1.6.381 → files_com-1.6.382}/tests/test_remote_bandwidth_snapshot.py +0 -0
  248. {files_com-1.6.381 → files_com-1.6.382}/tests/test_remote_mount_backend.py +0 -0
  249. {files_com-1.6.381 → files_com-1.6.382}/tests/test_remote_server.py +0 -0
  250. {files_com-1.6.381 → files_com-1.6.382}/tests/test_remote_server_configuration_file.py +0 -0
  251. {files_com-1.6.381 → files_com-1.6.382}/tests/test_remote_server_credential.py +0 -0
  252. {files_com-1.6.381 → files_com-1.6.382}/tests/test_request.py +0 -0
  253. {files_com-1.6.381 → files_com-1.6.382}/tests/test_restore.py +0 -0
  254. {files_com-1.6.381 → files_com-1.6.382}/tests/test_scim_log.py +0 -0
  255. {files_com-1.6.381 → files_com-1.6.382}/tests/test_session.py +0 -0
  256. {files_com-1.6.381 → files_com-1.6.382}/tests/test_settings_change.py +0 -0
  257. {files_com-1.6.381 → files_com-1.6.382}/tests/test_sftp_action_log.py +0 -0
  258. {files_com-1.6.381 → files_com-1.6.382}/tests/test_sftp_host_key.py +0 -0
  259. {files_com-1.6.381 → files_com-1.6.382}/tests/test_share_group.py +0 -0
  260. {files_com-1.6.381 → files_com-1.6.382}/tests/test_share_group_member.py +0 -0
  261. {files_com-1.6.381 → files_com-1.6.382}/tests/test_siem_http_destination.py +0 -0
  262. {files_com-1.6.381 → files_com-1.6.382}/tests/test_siem_http_destination_event.py +0 -0
  263. {files_com-1.6.381 → files_com-1.6.382}/tests/test_site.py +0 -0
  264. {files_com-1.6.381 → files_com-1.6.382}/tests/test_site_subdomain_redirect.py +0 -0
  265. {files_com-1.6.381 → files_com-1.6.382}/tests/test_snapshot.py +0 -0
  266. {files_com-1.6.381 → files_com-1.6.382}/tests/test_sso_event.py +0 -0
  267. {files_com-1.6.381 → files_com-1.6.382}/tests/test_sso_strategy.py +0 -0
  268. {files_com-1.6.381 → files_com-1.6.382}/tests/test_status.py +0 -0
  269. {files_com-1.6.381 → files_com-1.6.382}/tests/test_style.py +0 -0
  270. {files_com-1.6.381 → files_com-1.6.382}/tests/test_sync.py +0 -0
  271. {files_com-1.6.381 → files_com-1.6.382}/tests/test_sync_log.py +0 -0
  272. {files_com-1.6.381 → files_com-1.6.382}/tests/test_sync_run.py +0 -0
  273. {files_com-1.6.381 → files_com-1.6.382}/tests/test_sync_run_live_transfer.py +0 -0
  274. {files_com-1.6.381 → files_com-1.6.382}/tests/test_usage_by_top_level_dir.py +0 -0
  275. {files_com-1.6.381 → files_com-1.6.382}/tests/test_usage_daily_snapshot.py +0 -0
  276. {files_com-1.6.381 → files_com-1.6.382}/tests/test_usage_snapshot.py +0 -0
  277. {files_com-1.6.381 → files_com-1.6.382}/tests/test_user.py +0 -0
  278. {files_com-1.6.381 → files_com-1.6.382}/tests/test_user_cipher_use.py +0 -0
  279. {files_com-1.6.381 → files_com-1.6.382}/tests/test_user_lifecycle_rule.py +0 -0
  280. {files_com-1.6.381 → files_com-1.6.382}/tests/test_user_request.py +0 -0
  281. {files_com-1.6.381 → files_com-1.6.382}/tests/test_user_security_event.py +0 -0
  282. {files_com-1.6.381 → files_com-1.6.382}/tests/test_user_sftp_client_use.py +0 -0
  283. {files_com-1.6.381 → files_com-1.6.382}/tests/test_web_dav_action_log.py +0 -0
  284. {files_com-1.6.381 → files_com-1.6.382}/tests/test_webhook_test.py +0 -0
  285. {files_com-1.6.381 → files_com-1.6.382}/tests/test_workspace.py +0 -0
  286. {files_com-1.6.381 → files_com-1.6.382}/tests/test_zip_list_entry.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.381
3
+ Version: 1.6.382
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.382
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.381
3
+ Version: 1.6.382
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -113,6 +113,7 @@ files_sdk/models/remote_server_configuration_file.py
113
113
  files_sdk/models/remote_server_credential.py
114
114
  files_sdk/models/request.py
115
115
  files_sdk/models/restore.py
116
+ files_sdk/models/scheduled_export.py
116
117
  files_sdk/models/scim_log.py
117
118
  files_sdk/models/session.py
118
119
  files_sdk/models/settings_change.py
@@ -247,6 +248,7 @@ tests/test_remote_server_configuration_file.py
247
248
  tests/test_remote_server_credential.py
248
249
  tests/test_request.py
249
250
  tests/test_restore.py
251
+ tests/test_scheduled_export.py
250
252
  tests/test_scim_log.py
251
253
  tests/test_session.py
252
254
  tests/test_settings_change.py
@@ -96,6 +96,7 @@ import files_sdk.models.remote_server_configuration_file as remote_server_config
96
96
  import files_sdk.models.remote_server_credential as remote_server_credential
97
97
  import files_sdk.models.request as request
98
98
  import files_sdk.models.restore as restore
99
+ import files_sdk.models.scheduled_export as scheduled_export
99
100
  import files_sdk.models.scim_log as scim_log
100
101
  import files_sdk.models.session as session
101
102
  import files_sdk.models.settings_change as settings_change
@@ -237,6 +238,7 @@ from files_sdk.models.remote_server_configuration_file import (
237
238
  from files_sdk.models.remote_server_credential import RemoteServerCredential
238
239
  from files_sdk.models.request import Request
239
240
  from files_sdk.models.restore import Restore
241
+ from files_sdk.models.scheduled_export import ScheduledExport
240
242
  from files_sdk.models.scim_log import ScimLog
241
243
  from files_sdk.models.session import Session
242
244
  from files_sdk.models.settings_change import SettingsChange
@@ -283,7 +285,7 @@ session_id = None
283
285
  source_ip = None
284
286
  base_url = "https://app.files.com"
285
287
  base_path = "api/rest/v1"
286
- version = "1.6.381"
288
+ version = "1.6.382"
287
289
 
288
290
  __version__ = version
289
291
 
@@ -105,6 +105,7 @@ from files_sdk.models.remote_server_configuration_file import (
105
105
  from files_sdk.models.remote_server_credential import RemoteServerCredential
106
106
  from files_sdk.models.request import Request
107
107
  from files_sdk.models.restore import Restore
108
+ from files_sdk.models.scheduled_export import ScheduledExport
108
109
  from files_sdk.models.scim_log import ScimLog
109
110
  from files_sdk.models.session import Session
110
111
  from files_sdk.models.settings_change import SettingsChange
@@ -0,0 +1,416 @@
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 ScheduledExport:
12
+ default_attributes = {
13
+ "id": None, # int64 - Scheduled Export ID
14
+ "name": None, # string - Name for this scheduled export.
15
+ "export_type": None, # string - Export report type. Valid values: folder_size_audit, group_membership_audit, permission_audit, share_link_audit
16
+ "report_name": None, # string - Human-readable report name.
17
+ "export_options": None, # object - Report-specific options. `permission_audit` supports `group_by` with `user` or `path`.
18
+ "user_id": None, # int64 - Site Admin user who receives the completed export e-mail.
19
+ "disabled": None, # boolean - If true, this scheduled export will not run.
20
+ "trigger": None, # string - Schedule trigger type: `daily` or `custom_schedule`.
21
+ "interval": None, # string - If trigger is `daily`, this specifies how often to run the scheduled export.
22
+ "recurring_day": None, # int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
23
+ "schedule_days_of_week": None, # array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
24
+ "schedule_times_of_day": None, # array(string) - Times of day in HH:MM format for schedule-driven exports.
25
+ "schedule_time_zone": None, # string - Time zone used by the scheduled export.
26
+ "holiday_region": None, # string - Optional holiday region used by schedule-driven exports.
27
+ "human_readable_schedule": None, # string - Human-readable schedule description.
28
+ "last_run_at": None, # date-time - Most recent scheduled run time.
29
+ "last_export_id": None, # int64 - Most recent Export ID created by this schedule.
30
+ "created_at": None, # date-time - Creation time.
31
+ "updated_at": None, # date-time - Last update time.
32
+ }
33
+
34
+ def __init__(self, attributes=None, options=None):
35
+ if not isinstance(attributes, dict):
36
+ attributes = {}
37
+ if not isinstance(options, dict):
38
+ options = {}
39
+ self.set_attributes(attributes)
40
+ self.options = options
41
+
42
+ def set_attributes(self, attributes):
43
+ for (
44
+ attribute,
45
+ default_value,
46
+ ) in ScheduledExport.default_attributes.items():
47
+ value = attributes.get(attribute, default_value)
48
+ setattr(self, attribute, value)
49
+
50
+ def get_attributes(self):
51
+ attrs = {
52
+ k: getattr(self, k, None)
53
+ for k in ScheduledExport.default_attributes
54
+ if getattr(self, k, None) is not None
55
+ }
56
+ return attrs
57
+
58
+ # Parameters:
59
+ # name - string - Name for this scheduled export.
60
+ # export_type - string - Export report type. Valid values: folder_size_audit, group_membership_audit, permission_audit, share_link_audit
61
+ # export_options - object - Report-specific options. `permission_audit` supports `group_by` with `user` or `path`.
62
+ # user_id - int64 - Site Admin user who receives the completed export e-mail.
63
+ # disabled - boolean - If true, this scheduled export will not run.
64
+ # trigger - string - Schedule trigger type: `daily` or `custom_schedule`.
65
+ # interval - string - If trigger is `daily`, this specifies how often to run the scheduled export.
66
+ # recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
67
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
68
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for schedule-driven exports.
69
+ # schedule_time_zone - string - Time zone used by the scheduled export.
70
+ # holiday_region - string - Optional holiday region used by schedule-driven exports.
71
+ def update(self, params=None):
72
+ if not isinstance(params, dict):
73
+ params = {}
74
+
75
+ if hasattr(self, "id") and self.id:
76
+ params["id"] = self.id
77
+ else:
78
+ raise MissingParameterError("Current object doesn't have a id")
79
+ if "id" not in params:
80
+ raise MissingParameterError("Parameter missing: id")
81
+ if "id" in params and not isinstance(params["id"], int):
82
+ raise InvalidParameterError("Bad parameter: id must be an int")
83
+ if "name" in params and not isinstance(params["name"], str):
84
+ raise InvalidParameterError("Bad parameter: name must be an str")
85
+ if "export_type" in params and not isinstance(
86
+ params["export_type"], str
87
+ ):
88
+ raise InvalidParameterError(
89
+ "Bad parameter: export_type must be an str"
90
+ )
91
+ if "user_id" in params and not isinstance(params["user_id"], int):
92
+ raise InvalidParameterError(
93
+ "Bad parameter: user_id must be an int"
94
+ )
95
+ if "trigger" in params and not isinstance(params["trigger"], str):
96
+ raise InvalidParameterError(
97
+ "Bad parameter: trigger must be an str"
98
+ )
99
+ if "interval" in params and not isinstance(params["interval"], str):
100
+ raise InvalidParameterError(
101
+ "Bad parameter: interval must be an str"
102
+ )
103
+ if "recurring_day" in params and not isinstance(
104
+ params["recurring_day"], int
105
+ ):
106
+ raise InvalidParameterError(
107
+ "Bad parameter: recurring_day must be an int"
108
+ )
109
+ if "schedule_days_of_week" in params and not isinstance(
110
+ params["schedule_days_of_week"], builtins.list
111
+ ):
112
+ raise InvalidParameterError(
113
+ "Bad parameter: schedule_days_of_week must be an list"
114
+ )
115
+ if "schedule_times_of_day" in params and not isinstance(
116
+ params["schedule_times_of_day"], builtins.list
117
+ ):
118
+ raise InvalidParameterError(
119
+ "Bad parameter: schedule_times_of_day must be an list"
120
+ )
121
+ if "schedule_time_zone" in params and not isinstance(
122
+ params["schedule_time_zone"], str
123
+ ):
124
+ raise InvalidParameterError(
125
+ "Bad parameter: schedule_time_zone must be an str"
126
+ )
127
+ if "holiday_region" in params and not isinstance(
128
+ params["holiday_region"], str
129
+ ):
130
+ raise InvalidParameterError(
131
+ "Bad parameter: holiday_region must be an str"
132
+ )
133
+ response, _options = Api.send_request(
134
+ "PATCH",
135
+ "/scheduled_exports/{id}".format(id=params["id"]),
136
+ params,
137
+ self.options,
138
+ )
139
+ return response.data
140
+
141
+ def delete(self, params=None):
142
+ if not isinstance(params, dict):
143
+ params = {}
144
+
145
+ if hasattr(self, "id") and self.id:
146
+ params["id"] = self.id
147
+ else:
148
+ raise MissingParameterError("Current object doesn't have a id")
149
+ if "id" not in params:
150
+ raise MissingParameterError("Parameter missing: id")
151
+ if "id" in params and not isinstance(params["id"], int):
152
+ raise InvalidParameterError("Bad parameter: id must be an int")
153
+ Api.send_request(
154
+ "DELETE",
155
+ "/scheduled_exports/{id}".format(id=params["id"]),
156
+ params,
157
+ self.options,
158
+ )
159
+
160
+ def destroy(self, params=None):
161
+ self.delete(params)
162
+
163
+ def save(self):
164
+ if hasattr(self, "id") and self.id:
165
+ new_obj = self.update(self.get_attributes())
166
+ self.set_attributes(new_obj.get_attributes())
167
+ return True
168
+ else:
169
+ new_obj = create(self.get_attributes(), self.options)
170
+ self.set_attributes(new_obj.get_attributes())
171
+ return True
172
+
173
+
174
+ # Parameters:
175
+ # 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.
176
+ # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
177
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `export_type` or `disabled`.
178
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled` and `export_type`.
179
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `export_type`.
180
+ def list(params=None, options=None):
181
+ if not isinstance(params, dict):
182
+ params = {}
183
+ if not isinstance(options, dict):
184
+ options = {}
185
+ if "cursor" in params and not isinstance(params["cursor"], str):
186
+ raise InvalidParameterError("Bad parameter: cursor must be an str")
187
+ if "per_page" in params and not isinstance(params["per_page"], int):
188
+ raise InvalidParameterError("Bad parameter: per_page must be an int")
189
+ if "sort_by" in params and not isinstance(params["sort_by"], dict):
190
+ raise InvalidParameterError("Bad parameter: sort_by must be an dict")
191
+ if "filter" in params and not isinstance(params["filter"], dict):
192
+ raise InvalidParameterError("Bad parameter: filter must be an dict")
193
+ if "filter_prefix" in params and not isinstance(
194
+ params["filter_prefix"], dict
195
+ ):
196
+ raise InvalidParameterError(
197
+ "Bad parameter: filter_prefix must be an dict"
198
+ )
199
+ return ListObj(
200
+ ScheduledExport, "GET", "/scheduled_exports", params, options
201
+ )
202
+
203
+
204
+ def all(params=None, options=None):
205
+ list(params, options)
206
+
207
+
208
+ # Parameters:
209
+ # id (required) - int64 - Scheduled Export ID.
210
+ def find(id, params=None, options=None):
211
+ if not isinstance(params, dict):
212
+ params = {}
213
+ if not isinstance(options, dict):
214
+ options = {}
215
+ params["id"] = id
216
+ if "id" in params and not isinstance(params["id"], int):
217
+ raise InvalidParameterError("Bad parameter: id must be an int")
218
+ if "id" not in params:
219
+ raise MissingParameterError("Parameter missing: id")
220
+ response, options = Api.send_request(
221
+ "GET",
222
+ "/scheduled_exports/{id}".format(id=params["id"]),
223
+ params,
224
+ options,
225
+ )
226
+ return ScheduledExport(response.data, options)
227
+
228
+
229
+ def get(id, params=None, options=None):
230
+ find(id, params, options)
231
+
232
+
233
+ # Parameters:
234
+ # name (required) - string - Name for this scheduled export.
235
+ # export_type (required) - string - Export report type. Valid values: folder_size_audit, group_membership_audit, permission_audit, share_link_audit
236
+ # export_options - object - Report-specific options. `permission_audit` supports `group_by` with `user` or `path`.
237
+ # user_id - int64 - Site Admin user who receives the completed export e-mail.
238
+ # disabled - boolean - If true, this scheduled export will not run.
239
+ # trigger - string - Schedule trigger type: `daily` or `custom_schedule`.
240
+ # interval - string - If trigger is `daily`, this specifies how often to run the scheduled export.
241
+ # recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
242
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
243
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for schedule-driven exports.
244
+ # schedule_time_zone - string - Time zone used by the scheduled export.
245
+ # holiday_region - string - Optional holiday region used by schedule-driven exports.
246
+ def create(params=None, options=None):
247
+ if not isinstance(params, dict):
248
+ params = {}
249
+ if not isinstance(options, dict):
250
+ options = {}
251
+ if "name" in params and not isinstance(params["name"], str):
252
+ raise InvalidParameterError("Bad parameter: name must be an str")
253
+ if "export_type" in params and not isinstance(params["export_type"], str):
254
+ raise InvalidParameterError(
255
+ "Bad parameter: export_type must be an str"
256
+ )
257
+ if "export_options" in params and not isinstance(
258
+ params["export_options"], dict
259
+ ):
260
+ raise InvalidParameterError(
261
+ "Bad parameter: export_options must be an dict"
262
+ )
263
+ if "user_id" in params and not isinstance(params["user_id"], int):
264
+ raise InvalidParameterError("Bad parameter: user_id must be an int")
265
+ if "disabled" in params and not isinstance(params["disabled"], bool):
266
+ raise InvalidParameterError("Bad parameter: disabled must be an bool")
267
+ if "trigger" in params and not isinstance(params["trigger"], str):
268
+ raise InvalidParameterError("Bad parameter: trigger must be an str")
269
+ if "interval" in params and not isinstance(params["interval"], str):
270
+ raise InvalidParameterError("Bad parameter: interval must be an str")
271
+ if "recurring_day" in params and not isinstance(
272
+ params["recurring_day"], int
273
+ ):
274
+ raise InvalidParameterError(
275
+ "Bad parameter: recurring_day must be an int"
276
+ )
277
+ if "schedule_days_of_week" in params and not isinstance(
278
+ params["schedule_days_of_week"], builtins.list
279
+ ):
280
+ raise InvalidParameterError(
281
+ "Bad parameter: schedule_days_of_week must be an list"
282
+ )
283
+ if "schedule_times_of_day" in params and not isinstance(
284
+ params["schedule_times_of_day"], builtins.list
285
+ ):
286
+ raise InvalidParameterError(
287
+ "Bad parameter: schedule_times_of_day must be an list"
288
+ )
289
+ if "schedule_time_zone" in params and not isinstance(
290
+ params["schedule_time_zone"], str
291
+ ):
292
+ raise InvalidParameterError(
293
+ "Bad parameter: schedule_time_zone must be an str"
294
+ )
295
+ if "holiday_region" in params and not isinstance(
296
+ params["holiday_region"], str
297
+ ):
298
+ raise InvalidParameterError(
299
+ "Bad parameter: holiday_region must be an str"
300
+ )
301
+ if "name" not in params:
302
+ raise MissingParameterError("Parameter missing: name")
303
+ if "export_type" not in params:
304
+ raise MissingParameterError("Parameter missing: export_type")
305
+ response, options = Api.send_request(
306
+ "POST", "/scheduled_exports", params, options
307
+ )
308
+ return ScheduledExport(response.data, options)
309
+
310
+
311
+ # Parameters:
312
+ # name - string - Name for this scheduled export.
313
+ # export_type - string - Export report type. Valid values: folder_size_audit, group_membership_audit, permission_audit, share_link_audit
314
+ # export_options - object - Report-specific options. `permission_audit` supports `group_by` with `user` or `path`.
315
+ # user_id - int64 - Site Admin user who receives the completed export e-mail.
316
+ # disabled - boolean - If true, this scheduled export will not run.
317
+ # trigger - string - Schedule trigger type: `daily` or `custom_schedule`.
318
+ # interval - string - If trigger is `daily`, this specifies how often to run the scheduled export.
319
+ # recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
320
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
321
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for schedule-driven exports.
322
+ # schedule_time_zone - string - Time zone used by the scheduled export.
323
+ # holiday_region - string - Optional holiday region used by schedule-driven exports.
324
+ def update(id, params=None, options=None):
325
+ if not isinstance(params, dict):
326
+ params = {}
327
+ if not isinstance(options, dict):
328
+ options = {}
329
+ params["id"] = id
330
+ if "id" in params and not isinstance(params["id"], int):
331
+ raise InvalidParameterError("Bad parameter: id must be an int")
332
+ if "name" in params and not isinstance(params["name"], str):
333
+ raise InvalidParameterError("Bad parameter: name must be an str")
334
+ if "export_type" in params and not isinstance(params["export_type"], str):
335
+ raise InvalidParameterError(
336
+ "Bad parameter: export_type must be an str"
337
+ )
338
+ if "export_options" in params and not isinstance(
339
+ params["export_options"], dict
340
+ ):
341
+ raise InvalidParameterError(
342
+ "Bad parameter: export_options must be an dict"
343
+ )
344
+ if "user_id" in params and not isinstance(params["user_id"], int):
345
+ raise InvalidParameterError("Bad parameter: user_id must be an int")
346
+ if "disabled" in params and not isinstance(params["disabled"], bool):
347
+ raise InvalidParameterError("Bad parameter: disabled must be an bool")
348
+ if "trigger" in params and not isinstance(params["trigger"], str):
349
+ raise InvalidParameterError("Bad parameter: trigger must be an str")
350
+ if "interval" in params and not isinstance(params["interval"], str):
351
+ raise InvalidParameterError("Bad parameter: interval must be an str")
352
+ if "recurring_day" in params and not isinstance(
353
+ params["recurring_day"], int
354
+ ):
355
+ raise InvalidParameterError(
356
+ "Bad parameter: recurring_day must be an int"
357
+ )
358
+ if "schedule_days_of_week" in params and not isinstance(
359
+ params["schedule_days_of_week"], builtins.list
360
+ ):
361
+ raise InvalidParameterError(
362
+ "Bad parameter: schedule_days_of_week must be an list"
363
+ )
364
+ if "schedule_times_of_day" in params and not isinstance(
365
+ params["schedule_times_of_day"], builtins.list
366
+ ):
367
+ raise InvalidParameterError(
368
+ "Bad parameter: schedule_times_of_day must be an list"
369
+ )
370
+ if "schedule_time_zone" in params and not isinstance(
371
+ params["schedule_time_zone"], str
372
+ ):
373
+ raise InvalidParameterError(
374
+ "Bad parameter: schedule_time_zone must be an str"
375
+ )
376
+ if "holiday_region" in params and not isinstance(
377
+ params["holiday_region"], str
378
+ ):
379
+ raise InvalidParameterError(
380
+ "Bad parameter: holiday_region must be an str"
381
+ )
382
+ if "id" not in params:
383
+ raise MissingParameterError("Parameter missing: id")
384
+ response, options = Api.send_request(
385
+ "PATCH",
386
+ "/scheduled_exports/{id}".format(id=params["id"]),
387
+ params,
388
+ options,
389
+ )
390
+ return ScheduledExport(response.data, options)
391
+
392
+
393
+ def delete(id, params=None, options=None):
394
+ if not isinstance(params, dict):
395
+ params = {}
396
+ if not isinstance(options, dict):
397
+ options = {}
398
+ params["id"] = id
399
+ if "id" in params and not isinstance(params["id"], int):
400
+ raise InvalidParameterError("Bad parameter: id must be an int")
401
+ if "id" not in params:
402
+ raise MissingParameterError("Parameter missing: id")
403
+ Api.send_request(
404
+ "DELETE",
405
+ "/scheduled_exports/{id}".format(id=params["id"]),
406
+ params,
407
+ options,
408
+ )
409
+
410
+
411
+ def destroy(id, params=None, options=None):
412
+ delete(id, params, options)
413
+
414
+
415
+ def new(*args, **kwargs):
416
+ return ScheduledExport(*args, **kwargs)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "files_com"
7
- version = "1.6.381"
7
+ version = "1.6.382"
8
8
  description = "Python bindings for the Files.com API"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -0,0 +1,69 @@
1
+ import unittest
2
+ import inspect
3
+ import files_sdk
4
+ from tests.base import TestBase
5
+ from files_sdk.models import ScheduledExport
6
+ from files_sdk import scheduled_export
7
+
8
+ class ScheduledExportTest(TestBase):
9
+ pass
10
+ # Instance Methods
11
+ @unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/scheduled_exports/{id}"), "Mock path does not exist")
12
+ def test_update(self):
13
+ params = {
14
+ "id" : 12345,
15
+ }
16
+ scheduled_export = ScheduledExport(params)
17
+ scheduled_export.update(params)
18
+
19
+ @unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/scheduled_exports/{id}"), "Mock path does not exist")
20
+ def test_delete(self):
21
+ params = {
22
+ "id" : 12345,
23
+ }
24
+ scheduled_export = ScheduledExport(params)
25
+ scheduled_export.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", "/scheduled_exports"), "Mock path does not exist")
33
+ def test_list(self):
34
+ resp = scheduled_export.list()
35
+
36
+ @unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/scheduled_exports/{id}"), "Mock path does not exist")
37
+ def test_find(self):
38
+ id = 12345
39
+ params = {
40
+ "id" : 12345,
41
+ }
42
+ scheduled_export.find(id, params)
43
+
44
+ @unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/scheduled_exports"), "Mock path does not exist")
45
+ def test_create(self):
46
+ params = {
47
+ "name" : "foo",
48
+ "export_type" : "foo",
49
+ }
50
+ scheduled_export.create(params)
51
+
52
+ @unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/scheduled_exports/{id}"), "Mock path does not exist")
53
+ def test_update(self):
54
+ id = 12345
55
+ params = {
56
+ "id" : 12345,
57
+ }
58
+ scheduled_export.update(id, params)
59
+
60
+ @unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/scheduled_exports/{id}"), "Mock path does not exist")
61
+ def test_delete(self):
62
+ id = 12345
63
+ params = {
64
+ "id" : 12345,
65
+ }
66
+ scheduled_export.delete(id, params)
67
+
68
+ if __name__ == '__main__':
69
+ unittest.main()
@@ -1 +0,0 @@
1
- 1.6.381
File without changes
File without changes