Files.com 1.6.461__tar.gz → 1.6.463__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 (325) hide show
  1. {files_com-1.6.461/files_com.egg-info → files_com-1.6.463}/PKG-INFO +1 -1
  2. files_com-1.6.463/_VERSION +1 -0
  3. {files_com-1.6.461 → files_com-1.6.463/files_com.egg-info}/PKG-INFO +1 -1
  4. {files_com-1.6.461 → files_com-1.6.463}/files_com.egg-info/SOURCES.txt +0 -10
  5. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/__init__.py +1 -11
  6. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/__init__.py +0 -5
  7. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_subscription.py +16 -0
  8. {files_com-1.6.461 → files_com-1.6.463}/pyproject.toml +1 -1
  9. files_com-1.6.461/_VERSION +0 -1
  10. files_com-1.6.461/files_sdk/models/message.py +0 -256
  11. files_com-1.6.461/files_sdk/models/message_comment.py +0 -230
  12. files_com-1.6.461/files_sdk/models/message_comment_reaction.py +0 -190
  13. files_com-1.6.461/files_sdk/models/message_reaction.py +0 -175
  14. files_com-1.6.461/files_sdk/models/project.py +0 -217
  15. files_com-1.6.461/tests/test_message.py +0 -79
  16. files_com-1.6.461/tests/test_message_comment.py +0 -73
  17. files_com-1.6.461/tests/test_message_comment_reaction.py +0 -55
  18. files_com-1.6.461/tests/test_message_reaction.py +0 -55
  19. files_com-1.6.461/tests/test_project.py +0 -70
  20. {files_com-1.6.461 → files_com-1.6.463}/LICENSE +0 -0
  21. {files_com-1.6.461 → files_com-1.6.463}/README.md +0 -0
  22. {files_com-1.6.461 → files_com-1.6.463}/files_com.egg-info/dependency_links.txt +0 -0
  23. {files_com-1.6.461 → files_com-1.6.463}/files_com.egg-info/requires.txt +0 -0
  24. {files_com-1.6.461 → files_com-1.6.463}/files_com.egg-info/top_level.txt +0 -0
  25. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/api.py +0 -0
  26. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/api_client.py +0 -0
  27. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/error.py +0 -0
  28. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/list_obj.py +0 -0
  29. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/account_line_item.py +0 -0
  30. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/action.py +0 -0
  31. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/action_log.py +0 -0
  32. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/action_notification_export.py +0 -0
  33. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/action_notification_export_result.py +0 -0
  34. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/agent_node.py +0 -0
  35. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/agent_node_connection.py +0 -0
  36. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/agent_node_instance.py +0 -0
  37. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/agent_push_update.py +0 -0
  38. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/ai_assistant_personality.py +0 -0
  39. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/ai_task.py +0 -0
  40. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/api_key.py +0 -0
  41. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/api_request_log.py +0 -0
  42. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/app.py +0 -0
  43. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/as2_incoming_message.py +0 -0
  44. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/as2_outgoing_message.py +0 -0
  45. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/as2_partner.py +0 -0
  46. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/as2_station.py +0 -0
  47. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/auto.py +0 -0
  48. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation.py +0 -0
  49. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation_authoring_schema.py +0 -0
  50. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation_execution_node.py +0 -0
  51. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation_log.py +0 -0
  52. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation_run.py +0 -0
  53. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bandwidth_snapshot.py +0 -0
  54. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/behavior.py +0 -0
  55. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle.py +0 -0
  56. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_action.py +0 -0
  57. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_download.py +0 -0
  58. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_notification.py +0 -0
  59. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_path.py +0 -0
  60. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_recipient.py +0 -0
  61. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_registration.py +0 -0
  62. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/chat_message.py +0 -0
  63. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/chat_session.py +0 -0
  64. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/child_site_management_policy.py +0 -0
  65. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/clickwrap.py +0 -0
  66. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/custom_domain.py +0 -0
  67. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/desktop_configuration_profile.py +0 -0
  68. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/direct_connection_info.py +0 -0
  69. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/dns_record.py +0 -0
  70. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/email_incoming_message.py +0 -0
  71. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/email_log.py +0 -0
  72. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/errors.py +0 -0
  73. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_channel.py +0 -0
  74. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_delivery_attempt.py +0 -0
  75. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_record.py +0 -0
  76. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_target.py +0 -0
  77. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/exavault_api_request_log.py +0 -0
  78. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/expectation.py +0 -0
  79. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/expectation_evaluation.py +0 -0
  80. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/expectation_incident.py +0 -0
  81. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/external_event.py +0 -0
  82. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file.py +0 -0
  83. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_action.py +0 -0
  84. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_comment.py +0 -0
  85. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_comment_reaction.py +0 -0
  86. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_migration.py +0 -0
  87. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_migration_log.py +0 -0
  88. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_upload_part.py +0 -0
  89. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/folder.py +0 -0
  90. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/form_field.py +0 -0
  91. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/form_field_set.py +0 -0
  92. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/ftp_action_log.py +0 -0
  93. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/gpg_key.py +0 -0
  94. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/group.py +0 -0
  95. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/group_user.py +0 -0
  96. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/history.py +0 -0
  97. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/history_export.py +0 -0
  98. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/history_export_result.py +0 -0
  99. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/holiday_calendar.py +0 -0
  100. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/holiday_region.py +0 -0
  101. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/image.py +0 -0
  102. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/inbound_s3_log.py +0 -0
  103. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/inbox_recipient.py +0 -0
  104. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/inbox_registration.py +0 -0
  105. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/inbox_upload.py +0 -0
  106. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/integration_centric_profile.py +0 -0
  107. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/invoice.py +0 -0
  108. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/invoice_line_item.py +0 -0
  109. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/ip_address.py +0 -0
  110. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/key_lifecycle_rule.py +0 -0
  111. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/lock.py +0 -0
  112. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/metadata_category.py +0 -0
  113. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/notification.py +0 -0
  114. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/outbound_connection_log.py +0 -0
  115. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner.py +0 -0
  116. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner_channel.py +0 -0
  117. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner_channel_template.py +0 -0
  118. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner_site.py +0 -0
  119. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner_site_request.py +0 -0
  120. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/payment.py +0 -0
  121. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/payment_line_item.py +0 -0
  122. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/pending_work_event.py +0 -0
  123. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/permission.py +0 -0
  124. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/preview.py +0 -0
  125. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/public_hosting_request_log.py +0 -0
  126. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/public_ip_address.py +0 -0
  127. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/public_key.py +0 -0
  128. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  129. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_mount_backend.py +0 -0
  130. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_server.py +0 -0
  131. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_server_configuration_file.py +0 -0
  132. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_server_credential.py +0 -0
  133. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/request.py +0 -0
  134. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/restore.py +0 -0
  135. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/schedule.py +0 -0
  136. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/scheduled_export.py +0 -0
  137. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/scim_log.py +0 -0
  138. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/secret.py +0 -0
  139. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/session.py +0 -0
  140. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/settings_change.py +0 -0
  141. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sftp_action_log.py +0 -0
  142. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sftp_host_key.py +0 -0
  143. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/share_group.py +0 -0
  144. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/share_group_member.py +0 -0
  145. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/siem_http_destination.py +0 -0
  146. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/siem_http_destination_event.py +0 -0
  147. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/site.py +0 -0
  148. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/site_subdomain_redirect.py +0 -0
  149. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/snapshot.py +0 -0
  150. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sso_event.py +0 -0
  151. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sso_strategy.py +0 -0
  152. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/status.py +0 -0
  153. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/style.py +0 -0
  154. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sync.py +0 -0
  155. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sync_log.py +0 -0
  156. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sync_run.py +0 -0
  157. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sync_run_live_transfer.py +0 -0
  158. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/usage_by_top_level_dir.py +0 -0
  159. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/usage_daily_snapshot.py +0 -0
  160. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/usage_snapshot.py +0 -0
  161. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user.py +0 -0
  162. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_additional_email_recipient.py +0 -0
  163. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_cipher_use.py +0 -0
  164. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_lifecycle_rule.py +0 -0
  165. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_request.py +0 -0
  166. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_security_event.py +0 -0
  167. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_sftp_client_use.py +0 -0
  168. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/web_dav_action_log.py +0 -0
  169. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/webhook_test.py +0 -0
  170. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/workspace.py +0 -0
  171. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/zip_list_entry.py +0 -0
  172. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/path_util.py +0 -0
  173. {files_com-1.6.461 → files_com-1.6.463}/files_sdk/util.py +0 -0
  174. {files_com-1.6.461 → files_com-1.6.463}/setup.cfg +0 -0
  175. {files_com-1.6.461 → files_com-1.6.463}/tests/test_account_line_item.py +0 -0
  176. {files_com-1.6.461 → files_com-1.6.463}/tests/test_action.py +0 -0
  177. {files_com-1.6.461 → files_com-1.6.463}/tests/test_action_log.py +0 -0
  178. {files_com-1.6.461 → files_com-1.6.463}/tests/test_action_notification_export.py +0 -0
  179. {files_com-1.6.461 → files_com-1.6.463}/tests/test_action_notification_export_result.py +0 -0
  180. {files_com-1.6.461 → files_com-1.6.463}/tests/test_agent_node.py +0 -0
  181. {files_com-1.6.461 → files_com-1.6.463}/tests/test_agent_node_connection.py +0 -0
  182. {files_com-1.6.461 → files_com-1.6.463}/tests/test_agent_node_instance.py +0 -0
  183. {files_com-1.6.461 → files_com-1.6.463}/tests/test_agent_push_update.py +0 -0
  184. {files_com-1.6.461 → files_com-1.6.463}/tests/test_ai_assistant_personality.py +0 -0
  185. {files_com-1.6.461 → files_com-1.6.463}/tests/test_ai_task.py +0 -0
  186. {files_com-1.6.461 → files_com-1.6.463}/tests/test_api_errors.py +0 -0
  187. {files_com-1.6.461 → files_com-1.6.463}/tests/test_api_key.py +0 -0
  188. {files_com-1.6.461 → files_com-1.6.463}/tests/test_api_request_log.py +0 -0
  189. {files_com-1.6.461 → files_com-1.6.463}/tests/test_app.py +0 -0
  190. {files_com-1.6.461 → files_com-1.6.463}/tests/test_as2_incoming_message.py +0 -0
  191. {files_com-1.6.461 → files_com-1.6.463}/tests/test_as2_outgoing_message.py +0 -0
  192. {files_com-1.6.461 → files_com-1.6.463}/tests/test_as2_partner.py +0 -0
  193. {files_com-1.6.461 → files_com-1.6.463}/tests/test_as2_station.py +0 -0
  194. {files_com-1.6.461 → files_com-1.6.463}/tests/test_auto.py +0 -0
  195. {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation.py +0 -0
  196. {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation_authoring_schema.py +0 -0
  197. {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation_execution_node.py +0 -0
  198. {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation_log.py +0 -0
  199. {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation_run.py +0 -0
  200. {files_com-1.6.461 → files_com-1.6.463}/tests/test_bandwidth_snapshot.py +0 -0
  201. {files_com-1.6.461 → files_com-1.6.463}/tests/test_behavior.py +0 -0
  202. {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle.py +0 -0
  203. {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_action.py +0 -0
  204. {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_download.py +0 -0
  205. {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_notification.py +0 -0
  206. {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_path.py +0 -0
  207. {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_recipient.py +0 -0
  208. {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_registration.py +0 -0
  209. {files_com-1.6.461 → files_com-1.6.463}/tests/test_chat_message.py +0 -0
  210. {files_com-1.6.461 → files_com-1.6.463}/tests/test_chat_session.py +0 -0
  211. {files_com-1.6.461 → files_com-1.6.463}/tests/test_child_site_management_policy.py +0 -0
  212. {files_com-1.6.461 → files_com-1.6.463}/tests/test_clickwrap.py +0 -0
  213. {files_com-1.6.461 → files_com-1.6.463}/tests/test_connection_adapter.py +0 -0
  214. {files_com-1.6.461 → files_com-1.6.463}/tests/test_custom_domain.py +0 -0
  215. {files_com-1.6.461 → files_com-1.6.463}/tests/test_decimal_contract.py +0 -0
  216. {files_com-1.6.461 → files_com-1.6.463}/tests/test_desktop_configuration_profile.py +0 -0
  217. {files_com-1.6.461 → files_com-1.6.463}/tests/test_direct_connection_info.py +0 -0
  218. {files_com-1.6.461 → files_com-1.6.463}/tests/test_dns_record.py +0 -0
  219. {files_com-1.6.461 → files_com-1.6.463}/tests/test_email_incoming_message.py +0 -0
  220. {files_com-1.6.461 → files_com-1.6.463}/tests/test_email_log.py +0 -0
  221. {files_com-1.6.461 → files_com-1.6.463}/tests/test_errors.py +0 -0
  222. {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_channel.py +0 -0
  223. {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_delivery_attempt.py +0 -0
  224. {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_record.py +0 -0
  225. {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_subscription.py +0 -0
  226. {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_target.py +0 -0
  227. {files_com-1.6.461 → files_com-1.6.463}/tests/test_exavault_api_request_log.py +0 -0
  228. {files_com-1.6.461 → files_com-1.6.463}/tests/test_expectation.py +0 -0
  229. {files_com-1.6.461 → files_com-1.6.463}/tests/test_expectation_evaluation.py +0 -0
  230. {files_com-1.6.461 → files_com-1.6.463}/tests/test_expectation_incident.py +0 -0
  231. {files_com-1.6.461 → files_com-1.6.463}/tests/test_external_event.py +0 -0
  232. {files_com-1.6.461 → files_com-1.6.463}/tests/test_file.py +0 -0
  233. {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_action.py +0 -0
  234. {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_comment.py +0 -0
  235. {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_comment_reaction.py +0 -0
  236. {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_migration.py +0 -0
  237. {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_migration_log.py +0 -0
  238. {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_underscore_destinations.py +0 -0
  239. {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_upload_part.py +0 -0
  240. {files_com-1.6.461 → files_com-1.6.463}/tests/test_folder.py +0 -0
  241. {files_com-1.6.461 → files_com-1.6.463}/tests/test_form_field.py +0 -0
  242. {files_com-1.6.461 → files_com-1.6.463}/tests/test_form_field_set.py +0 -0
  243. {files_com-1.6.461 → files_com-1.6.463}/tests/test_ftp_action_log.py +0 -0
  244. {files_com-1.6.461 → files_com-1.6.463}/tests/test_gpg_key.py +0 -0
  245. {files_com-1.6.461 → files_com-1.6.463}/tests/test_group.py +0 -0
  246. {files_com-1.6.461 → files_com-1.6.463}/tests/test_group_user.py +0 -0
  247. {files_com-1.6.461 → files_com-1.6.463}/tests/test_history.py +0 -0
  248. {files_com-1.6.461 → files_com-1.6.463}/tests/test_history_export.py +0 -0
  249. {files_com-1.6.461 → files_com-1.6.463}/tests/test_history_export_result.py +0 -0
  250. {files_com-1.6.461 → files_com-1.6.463}/tests/test_holiday_calendar.py +0 -0
  251. {files_com-1.6.461 → files_com-1.6.463}/tests/test_holiday_region.py +0 -0
  252. {files_com-1.6.461 → files_com-1.6.463}/tests/test_image.py +0 -0
  253. {files_com-1.6.461 → files_com-1.6.463}/tests/test_inbound_s3_log.py +0 -0
  254. {files_com-1.6.461 → files_com-1.6.463}/tests/test_inbox_recipient.py +0 -0
  255. {files_com-1.6.461 → files_com-1.6.463}/tests/test_inbox_registration.py +0 -0
  256. {files_com-1.6.461 → files_com-1.6.463}/tests/test_inbox_upload.py +0 -0
  257. {files_com-1.6.461 → files_com-1.6.463}/tests/test_integration_centric_profile.py +0 -0
  258. {files_com-1.6.461 → files_com-1.6.463}/tests/test_invoice.py +0 -0
  259. {files_com-1.6.461 → files_com-1.6.463}/tests/test_invoice_line_item.py +0 -0
  260. {files_com-1.6.461 → files_com-1.6.463}/tests/test_ip_address.py +0 -0
  261. {files_com-1.6.461 → files_com-1.6.463}/tests/test_key_lifecycle_rule.py +0 -0
  262. {files_com-1.6.461 → files_com-1.6.463}/tests/test_lock.py +0 -0
  263. {files_com-1.6.461 → files_com-1.6.463}/tests/test_metadata_category.py +0 -0
  264. {files_com-1.6.461 → files_com-1.6.463}/tests/test_notification.py +0 -0
  265. {files_com-1.6.461 → files_com-1.6.463}/tests/test_outbound_connection_log.py +0 -0
  266. {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner.py +0 -0
  267. {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner_channel.py +0 -0
  268. {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner_channel_template.py +0 -0
  269. {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner_site.py +0 -0
  270. {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner_site_request.py +0 -0
  271. {files_com-1.6.461 → files_com-1.6.463}/tests/test_path_parameter_encoding.py +0 -0
  272. {files_com-1.6.461 → files_com-1.6.463}/tests/test_path_util.py +0 -0
  273. {files_com-1.6.461 → files_com-1.6.463}/tests/test_payment.py +0 -0
  274. {files_com-1.6.461 → files_com-1.6.463}/tests/test_payment_line_item.py +0 -0
  275. {files_com-1.6.461 → files_com-1.6.463}/tests/test_pending_work_event.py +0 -0
  276. {files_com-1.6.461 → files_com-1.6.463}/tests/test_permission.py +0 -0
  277. {files_com-1.6.461 → files_com-1.6.463}/tests/test_preview.py +0 -0
  278. {files_com-1.6.461 → files_com-1.6.463}/tests/test_public_hosting_request_log.py +0 -0
  279. {files_com-1.6.461 → files_com-1.6.463}/tests/test_public_ip_address.py +0 -0
  280. {files_com-1.6.461 → files_com-1.6.463}/tests/test_public_key.py +0 -0
  281. {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_bandwidth_snapshot.py +0 -0
  282. {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_mount_backend.py +0 -0
  283. {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_server.py +0 -0
  284. {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_server_configuration_file.py +0 -0
  285. {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_server_credential.py +0 -0
  286. {files_com-1.6.461 → files_com-1.6.463}/tests/test_request.py +0 -0
  287. {files_com-1.6.461 → files_com-1.6.463}/tests/test_restore.py +0 -0
  288. {files_com-1.6.461 → files_com-1.6.463}/tests/test_schedule.py +0 -0
  289. {files_com-1.6.461 → files_com-1.6.463}/tests/test_scheduled_export.py +0 -0
  290. {files_com-1.6.461 → files_com-1.6.463}/tests/test_scim_log.py +0 -0
  291. {files_com-1.6.461 → files_com-1.6.463}/tests/test_secret.py +0 -0
  292. {files_com-1.6.461 → files_com-1.6.463}/tests/test_session.py +0 -0
  293. {files_com-1.6.461 → files_com-1.6.463}/tests/test_settings_change.py +0 -0
  294. {files_com-1.6.461 → files_com-1.6.463}/tests/test_sftp_action_log.py +0 -0
  295. {files_com-1.6.461 → files_com-1.6.463}/tests/test_sftp_host_key.py +0 -0
  296. {files_com-1.6.461 → files_com-1.6.463}/tests/test_share_group.py +0 -0
  297. {files_com-1.6.461 → files_com-1.6.463}/tests/test_share_group_member.py +0 -0
  298. {files_com-1.6.461 → files_com-1.6.463}/tests/test_siem_http_destination.py +0 -0
  299. {files_com-1.6.461 → files_com-1.6.463}/tests/test_siem_http_destination_event.py +0 -0
  300. {files_com-1.6.461 → files_com-1.6.463}/tests/test_site.py +0 -0
  301. {files_com-1.6.461 → files_com-1.6.463}/tests/test_site_subdomain_redirect.py +0 -0
  302. {files_com-1.6.461 → files_com-1.6.463}/tests/test_snapshot.py +0 -0
  303. {files_com-1.6.461 → files_com-1.6.463}/tests/test_sso_event.py +0 -0
  304. {files_com-1.6.461 → files_com-1.6.463}/tests/test_sso_strategy.py +0 -0
  305. {files_com-1.6.461 → files_com-1.6.463}/tests/test_status.py +0 -0
  306. {files_com-1.6.461 → files_com-1.6.463}/tests/test_style.py +0 -0
  307. {files_com-1.6.461 → files_com-1.6.463}/tests/test_sync.py +0 -0
  308. {files_com-1.6.461 → files_com-1.6.463}/tests/test_sync_log.py +0 -0
  309. {files_com-1.6.461 → files_com-1.6.463}/tests/test_sync_run.py +0 -0
  310. {files_com-1.6.461 → files_com-1.6.463}/tests/test_sync_run_live_transfer.py +0 -0
  311. {files_com-1.6.461 → files_com-1.6.463}/tests/test_usage_by_top_level_dir.py +0 -0
  312. {files_com-1.6.461 → files_com-1.6.463}/tests/test_usage_daily_snapshot.py +0 -0
  313. {files_com-1.6.461 → files_com-1.6.463}/tests/test_usage_snapshot.py +0 -0
  314. {files_com-1.6.461 → files_com-1.6.463}/tests/test_user.py +0 -0
  315. {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_additional_email_recipient.py +0 -0
  316. {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_cipher_use.py +0 -0
  317. {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_lifecycle_rule.py +0 -0
  318. {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_request.py +0 -0
  319. {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_security_event.py +0 -0
  320. {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_sftp_client_use.py +0 -0
  321. {files_com-1.6.461 → files_com-1.6.463}/tests/test_web_dav_action_log.py +0 -0
  322. {files_com-1.6.461 → files_com-1.6.463}/tests/test_webhook_test.py +0 -0
  323. {files_com-1.6.461 → files_com-1.6.463}/tests/test_workspace.py +0 -0
  324. {files_com-1.6.461 → files_com-1.6.463}/tests/test_workspace_id.py +0 -0
  325. {files_com-1.6.461 → files_com-1.6.463}/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.461
3
+ Version: 1.6.463
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.463
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.461
3
+ Version: 1.6.463
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -100,10 +100,6 @@ files_sdk/models/invoice_line_item.py
100
100
  files_sdk/models/ip_address.py
101
101
  files_sdk/models/key_lifecycle_rule.py
102
102
  files_sdk/models/lock.py
103
- files_sdk/models/message.py
104
- files_sdk/models/message_comment.py
105
- files_sdk/models/message_comment_reaction.py
106
- files_sdk/models/message_reaction.py
107
103
  files_sdk/models/metadata_category.py
108
104
  files_sdk/models/notification.py
109
105
  files_sdk/models/outbound_connection_log.py
@@ -117,7 +113,6 @@ files_sdk/models/payment_line_item.py
117
113
  files_sdk/models/pending_work_event.py
118
114
  files_sdk/models/permission.py
119
115
  files_sdk/models/preview.py
120
- files_sdk/models/project.py
121
116
  files_sdk/models/public_hosting_request_log.py
122
117
  files_sdk/models/public_ip_address.py
123
118
  files_sdk/models/public_key.py
@@ -253,10 +248,6 @@ tests/test_invoice_line_item.py
253
248
  tests/test_ip_address.py
254
249
  tests/test_key_lifecycle_rule.py
255
250
  tests/test_lock.py
256
- tests/test_message.py
257
- tests/test_message_comment.py
258
- tests/test_message_comment_reaction.py
259
- tests/test_message_reaction.py
260
251
  tests/test_metadata_category.py
261
252
  tests/test_notification.py
262
253
  tests/test_outbound_connection_log.py
@@ -272,7 +263,6 @@ tests/test_payment_line_item.py
272
263
  tests/test_pending_work_event.py
273
264
  tests/test_permission.py
274
265
  tests/test_preview.py
275
- tests/test_project.py
276
266
  tests/test_public_hosting_request_log.py
277
267
  tests/test_public_ip_address.py
278
268
  tests/test_public_key.py
@@ -83,10 +83,6 @@ import files_sdk.models.invoice_line_item as invoice_line_item
83
83
  import files_sdk.models.ip_address as ip_address
84
84
  import files_sdk.models.key_lifecycle_rule as key_lifecycle_rule
85
85
  import files_sdk.models.lock as lock
86
- import files_sdk.models.message as message
87
- import files_sdk.models.message_comment as message_comment
88
- import files_sdk.models.message_comment_reaction as message_comment_reaction
89
- import files_sdk.models.message_reaction as message_reaction
90
86
  import files_sdk.models.metadata_category as metadata_category
91
87
  import files_sdk.models.notification as notification
92
88
  import files_sdk.models.outbound_connection_log as outbound_connection_log
@@ -100,7 +96,6 @@ import files_sdk.models.payment_line_item as payment_line_item
100
96
  import files_sdk.models.pending_work_event as pending_work_event
101
97
  import files_sdk.models.permission as permission
102
98
  import files_sdk.models.preview as preview
103
- import files_sdk.models.project as project
104
99
  import files_sdk.models.public_hosting_request_log as public_hosting_request_log
105
100
  import files_sdk.models.public_ip_address as public_ip_address
106
101
  import files_sdk.models.public_key as public_key
@@ -245,10 +240,6 @@ from files_sdk.models.invoice_line_item import InvoiceLineItem
245
240
  from files_sdk.models.ip_address import IpAddress
246
241
  from files_sdk.models.key_lifecycle_rule import KeyLifecycleRule
247
242
  from files_sdk.models.lock import Lock
248
- from files_sdk.models.message import Message
249
- from files_sdk.models.message_comment import MessageComment
250
- from files_sdk.models.message_comment_reaction import MessageCommentReaction
251
- from files_sdk.models.message_reaction import MessageReaction
252
243
  from files_sdk.models.metadata_category import MetadataCategory
253
244
  from files_sdk.models.notification import Notification
254
245
  from files_sdk.models.outbound_connection_log import OutboundConnectionLog
@@ -262,7 +253,6 @@ from files_sdk.models.payment_line_item import PaymentLineItem
262
253
  from files_sdk.models.pending_work_event import PendingWorkEvent
263
254
  from files_sdk.models.permission import Permission
264
255
  from files_sdk.models.preview import Preview
265
- from files_sdk.models.project import Project
266
256
  from files_sdk.models.public_hosting_request_log import PublicHostingRequestLog
267
257
  from files_sdk.models.public_ip_address import PublicIpAddress
268
258
  from files_sdk.models.public_key import PublicKey
@@ -328,7 +318,7 @@ source_ip = None
328
318
  workspace_id = None
329
319
  base_url = "https://app.files.com"
330
320
  base_path = "api/rest/v1"
331
- version = "1.6.461"
321
+ version = "1.6.463"
332
322
 
333
323
  __version__ = version
334
324
 
@@ -94,10 +94,6 @@ from files_sdk.models.invoice_line_item import InvoiceLineItem
94
94
  from files_sdk.models.ip_address import IpAddress
95
95
  from files_sdk.models.key_lifecycle_rule import KeyLifecycleRule
96
96
  from files_sdk.models.lock import Lock
97
- from files_sdk.models.message import Message
98
- from files_sdk.models.message_comment import MessageComment
99
- from files_sdk.models.message_comment_reaction import MessageCommentReaction
100
- from files_sdk.models.message_reaction import MessageReaction
101
97
  from files_sdk.models.metadata_category import MetadataCategory
102
98
  from files_sdk.models.notification import Notification
103
99
  from files_sdk.models.outbound_connection_log import OutboundConnectionLog
@@ -111,7 +107,6 @@ from files_sdk.models.payment_line_item import PaymentLineItem
111
107
  from files_sdk.models.pending_work_event import PendingWorkEvent
112
108
  from files_sdk.models.permission import Permission
113
109
  from files_sdk.models.preview import Preview
114
- from files_sdk.models.project import Project
115
110
  from files_sdk.models.public_hosting_request_log import PublicHostingRequestLog
116
111
  from files_sdk.models.public_ip_address import PublicIpAddress
117
112
  from files_sdk.models.public_key import PublicKey
@@ -18,6 +18,7 @@ class EventSubscription:
18
18
  "name": None, # string - Event Subscription name.
19
19
  "subject": None, # string - Custom subject line to use for notification emails.
20
20
  "message": None, # string - Custom message to include in notification emails.
21
+ "message_only": None, # boolean - If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
21
22
  "enabled": None, # boolean - Whether this Event Subscription can dispatch events.
22
23
  "event_types": None, # array(string) - Event type strings matched by this subscription. Blank means all event types.
23
24
  "filter": None, # object - Structured event payload filter.
@@ -58,6 +59,7 @@ class EventSubscription:
58
59
  # name - string - Event Subscription name.
59
60
  # subject - string - Custom subject line to use for notification emails.
60
61
  # message - string - Custom message to include in notification emails.
62
+ # message_only - boolean - If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
61
63
  # enabled - boolean - Whether this Event Subscription can dispatch events.
62
64
  # event_types - array(string) - Event type strings matched by this subscription. Blank means all event types.
63
65
  # filter - object - Structured event payload filter.
@@ -215,6 +217,7 @@ def get(id, params=None, options=None):
215
217
  # name (required) - string - Event Subscription name.
216
218
  # subject - string - Custom subject line to use for notification emails.
217
219
  # message - string - Custom message to include in notification emails.
220
+ # message_only - boolean - If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
218
221
  # enabled - boolean - Whether this Event Subscription can dispatch events.
219
222
  # event_types - array(string) - Event type strings matched by this subscription. Blank means all event types.
220
223
  # filter - object - Structured event payload filter.
@@ -249,6 +252,12 @@ def create(params=None, options=None):
249
252
  raise InvalidParameterError("Bad parameter: subject must be an str")
250
253
  if "message" in params and not isinstance(params["message"], str):
251
254
  raise InvalidParameterError("Bad parameter: message must be an str")
255
+ if "message_only" in params and not isinstance(
256
+ params["message_only"], bool
257
+ ):
258
+ raise InvalidParameterError(
259
+ "Bad parameter: message_only must be an bool"
260
+ )
252
261
  if "enabled" in params and not isinstance(params["enabled"], bool):
253
262
  raise InvalidParameterError("Bad parameter: enabled must be an bool")
254
263
  if "event_types" in params and not isinstance(
@@ -286,6 +295,7 @@ def create(params=None, options=None):
286
295
  # name - string - Event Subscription name.
287
296
  # subject - string - Custom subject line to use for notification emails.
288
297
  # message - string - Custom message to include in notification emails.
298
+ # message_only - boolean - If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
289
299
  # enabled - boolean - Whether this Event Subscription can dispatch events.
290
300
  # event_types - array(string) - Event type strings matched by this subscription. Blank means all event types.
291
301
  # filter - object - Structured event payload filter.
@@ -323,6 +333,12 @@ def update(id, params=None, options=None):
323
333
  raise InvalidParameterError("Bad parameter: subject must be an str")
324
334
  if "message" in params and not isinstance(params["message"], str):
325
335
  raise InvalidParameterError("Bad parameter: message must be an str")
336
+ if "message_only" in params and not isinstance(
337
+ params["message_only"], bool
338
+ ):
339
+ raise InvalidParameterError(
340
+ "Bad parameter: message_only must be an bool"
341
+ )
326
342
  if "enabled" in params and not isinstance(params["enabled"], bool):
327
343
  raise InvalidParameterError("Bad parameter: enabled must be an bool")
328
344
  if "event_types" in params and not isinstance(
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "files_com"
7
- version = "1.6.461"
7
+ version = "1.6.463"
8
8
  description = "Python bindings for the Files.com API"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -1 +0,0 @@
1
- 1.6.461
@@ -1,256 +0,0 @@
1
- import builtins # noqa: F401
2
- from urllib.parse import quote
3
- from files_sdk.api import Api # noqa: F401
4
- from files_sdk.list_obj import ListObj
5
- from files_sdk.error import ( # noqa: F401
6
- InvalidParameterError,
7
- MissingParameterError,
8
- NotImplementedError,
9
- )
10
-
11
-
12
- class Message:
13
- default_attributes = {
14
- "id": None, # int64 - Message ID
15
- "subject": None, # string - Message subject.
16
- "body": None, # string - Message body.
17
- "comments": None, # array(object) - Comments.
18
- "user_id": None, # int64 - User ID. Provide a value of `0` to operate the current session's user.
19
- "project_id": None, # int64 - Project to which the message should be attached.
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 Message.default_attributes.items():
32
- value = attributes.get(attribute, default_value)
33
- setattr(self, attribute, value)
34
-
35
- def get_attributes(self):
36
- attrs = {
37
- k: getattr(self, k, None)
38
- for k in Message.default_attributes
39
- if getattr(self, k, None) is not None
40
- }
41
- return attrs
42
-
43
- # Parameters:
44
- # project_id (required) - int64 - Project to which the message should be attached.
45
- # subject (required) - string - Message subject.
46
- # body (required) - string - Message body.
47
- def update(self, params=None):
48
- if not isinstance(params, dict):
49
- params = {}
50
-
51
- if hasattr(self, "id") and self.id:
52
- params["id"] = self.id
53
- else:
54
- raise MissingParameterError("Current object doesn't have a id")
55
- if "id" not in params:
56
- raise MissingParameterError("Parameter missing: id")
57
- if "project_id" not in params:
58
- raise MissingParameterError("Parameter missing: project_id")
59
- if "subject" not in params:
60
- raise MissingParameterError("Parameter missing: subject")
61
- if "body" not in params:
62
- raise MissingParameterError("Parameter missing: body")
63
- if "id" in params and not isinstance(params["id"], int):
64
- raise InvalidParameterError("Bad parameter: id must be an int")
65
- if "project_id" in params and not isinstance(
66
- params["project_id"], int
67
- ):
68
- raise InvalidParameterError(
69
- "Bad parameter: project_id must be an int"
70
- )
71
- if "subject" in params and not isinstance(params["subject"], str):
72
- raise InvalidParameterError(
73
- "Bad parameter: subject must be an str"
74
- )
75
- if "body" in params and not isinstance(params["body"], str):
76
- raise InvalidParameterError("Bad parameter: body must be an str")
77
- response, _options = Api.send_request(
78
- "PATCH",
79
- "/messages/{id}".format(id=quote(str(params["id"]), safe="")),
80
- params,
81
- self.options,
82
- )
83
- return response.data
84
-
85
- def delete(self, params=None):
86
- if not isinstance(params, dict):
87
- params = {}
88
-
89
- if hasattr(self, "id") and self.id:
90
- params["id"] = self.id
91
- else:
92
- raise MissingParameterError("Current object doesn't have a id")
93
- if "id" not in params:
94
- raise MissingParameterError("Parameter missing: id")
95
- if "id" in params and not isinstance(params["id"], int):
96
- raise InvalidParameterError("Bad parameter: id must be an int")
97
- Api.send_request(
98
- "DELETE",
99
- "/messages/{id}".format(id=quote(str(params["id"]), safe="")),
100
- params,
101
- self.options,
102
- )
103
-
104
- def destroy(self, params=None):
105
- self.delete(params)
106
-
107
- def save(self):
108
- if hasattr(self, "id") and self.id:
109
- new_obj = self.update(self.get_attributes())
110
- self.set_attributes(new_obj.get_attributes())
111
- return True
112
- else:
113
- new_obj = create(self.get_attributes(), self.options)
114
- self.set_attributes(new_obj.get_attributes())
115
- return True
116
-
117
-
118
- # Parameters:
119
- # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
120
- # 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.
121
- # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
122
- # project_id (required) - int64 - Project for which to return messages.
123
- def list(params=None, options=None):
124
- if not isinstance(params, dict):
125
- params = {}
126
- if not isinstance(options, dict):
127
- options = {}
128
- if "user_id" in params and not isinstance(params["user_id"], int):
129
- raise InvalidParameterError("Bad parameter: user_id must be an int")
130
- if "cursor" in params and not isinstance(params["cursor"], str):
131
- raise InvalidParameterError("Bad parameter: cursor must be an str")
132
- if "per_page" in params and not isinstance(params["per_page"], int):
133
- raise InvalidParameterError("Bad parameter: per_page must be an int")
134
- if "project_id" in params and not isinstance(params["project_id"], int):
135
- raise InvalidParameterError("Bad parameter: project_id must be an int")
136
- if "project_id" not in params:
137
- raise MissingParameterError("Parameter missing: project_id")
138
- return ListObj(Message, "GET", "/messages", params, options)
139
-
140
-
141
- def all(params=None, options=None):
142
- list(params, options)
143
-
144
-
145
- # Parameters:
146
- # id (required) - int64 - Message ID.
147
- def find(id, params=None, options=None):
148
- if not isinstance(params, dict):
149
- params = {}
150
- if not isinstance(options, dict):
151
- options = {}
152
- params["id"] = id
153
- if "id" in params and not isinstance(params["id"], int):
154
- raise InvalidParameterError("Bad parameter: id must be an int")
155
- if "id" not in params:
156
- raise MissingParameterError("Parameter missing: id")
157
- response, options = Api.send_request(
158
- "GET",
159
- "/messages/{id}".format(id=quote(str(params["id"]), safe="")),
160
- params,
161
- options,
162
- )
163
- return Message(response.data, options)
164
-
165
-
166
- def get(id, params=None, options=None):
167
- find(id, params, options)
168
-
169
-
170
- # Parameters:
171
- # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
172
- # project_id (required) - int64 - Project to which the message should be attached.
173
- # subject (required) - string - Message subject.
174
- # body (required) - string - Message body.
175
- def create(params=None, options=None):
176
- if not isinstance(params, dict):
177
- params = {}
178
- if not isinstance(options, dict):
179
- options = {}
180
- if "user_id" in params and not isinstance(params["user_id"], int):
181
- raise InvalidParameterError("Bad parameter: user_id must be an int")
182
- if "project_id" in params and not isinstance(params["project_id"], int):
183
- raise InvalidParameterError("Bad parameter: project_id must be an int")
184
- if "subject" in params and not isinstance(params["subject"], str):
185
- raise InvalidParameterError("Bad parameter: subject must be an str")
186
- if "body" in params and not isinstance(params["body"], str):
187
- raise InvalidParameterError("Bad parameter: body must be an str")
188
- if "project_id" not in params:
189
- raise MissingParameterError("Parameter missing: project_id")
190
- if "subject" not in params:
191
- raise MissingParameterError("Parameter missing: subject")
192
- if "body" not in params:
193
- raise MissingParameterError("Parameter missing: body")
194
- response, options = Api.send_request("POST", "/messages", params, options)
195
- return Message(response.data, options)
196
-
197
-
198
- # Parameters:
199
- # project_id (required) - int64 - Project to which the message should be attached.
200
- # subject (required) - string - Message subject.
201
- # body (required) - string - Message body.
202
- def update(id, params=None, options=None):
203
- if not isinstance(params, dict):
204
- params = {}
205
- if not isinstance(options, dict):
206
- options = {}
207
- params["id"] = id
208
- if "id" in params and not isinstance(params["id"], int):
209
- raise InvalidParameterError("Bad parameter: id must be an int")
210
- if "project_id" in params and not isinstance(params["project_id"], int):
211
- raise InvalidParameterError("Bad parameter: project_id must be an int")
212
- if "subject" in params and not isinstance(params["subject"], str):
213
- raise InvalidParameterError("Bad parameter: subject must be an str")
214
- if "body" in params and not isinstance(params["body"], str):
215
- raise InvalidParameterError("Bad parameter: body must be an str")
216
- if "id" not in params:
217
- raise MissingParameterError("Parameter missing: id")
218
- if "project_id" not in params:
219
- raise MissingParameterError("Parameter missing: project_id")
220
- if "subject" not in params:
221
- raise MissingParameterError("Parameter missing: subject")
222
- if "body" not in params:
223
- raise MissingParameterError("Parameter missing: body")
224
- response, options = Api.send_request(
225
- "PATCH",
226
- "/messages/{id}".format(id=quote(str(params["id"]), safe="")),
227
- params,
228
- options,
229
- )
230
- return Message(response.data, options)
231
-
232
-
233
- def delete(id, params=None, options=None):
234
- if not isinstance(params, dict):
235
- params = {}
236
- if not isinstance(options, dict):
237
- options = {}
238
- params["id"] = id
239
- if "id" in params and not isinstance(params["id"], int):
240
- raise InvalidParameterError("Bad parameter: id must be an int")
241
- if "id" not in params:
242
- raise MissingParameterError("Parameter missing: id")
243
- Api.send_request(
244
- "DELETE",
245
- "/messages/{id}".format(id=quote(str(params["id"]), safe="")),
246
- params,
247
- options,
248
- )
249
-
250
-
251
- def destroy(id, params=None, options=None):
252
- delete(id, params, options)
253
-
254
-
255
- def new(*args, **kwargs):
256
- return Message(*args, **kwargs)