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_com-1.6.461/files_com.egg-info → files_com-1.6.463}/PKG-INFO +1 -1
- files_com-1.6.463/_VERSION +1 -0
- {files_com-1.6.461 → files_com-1.6.463/files_com.egg-info}/PKG-INFO +1 -1
- {files_com-1.6.461 → files_com-1.6.463}/files_com.egg-info/SOURCES.txt +0 -10
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/__init__.py +1 -11
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/__init__.py +0 -5
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_subscription.py +16 -0
- {files_com-1.6.461 → files_com-1.6.463}/pyproject.toml +1 -1
- files_com-1.6.461/_VERSION +0 -1
- files_com-1.6.461/files_sdk/models/message.py +0 -256
- files_com-1.6.461/files_sdk/models/message_comment.py +0 -230
- files_com-1.6.461/files_sdk/models/message_comment_reaction.py +0 -190
- files_com-1.6.461/files_sdk/models/message_reaction.py +0 -175
- files_com-1.6.461/files_sdk/models/project.py +0 -217
- files_com-1.6.461/tests/test_message.py +0 -79
- files_com-1.6.461/tests/test_message_comment.py +0 -73
- files_com-1.6.461/tests/test_message_comment_reaction.py +0 -55
- files_com-1.6.461/tests/test_message_reaction.py +0 -55
- files_com-1.6.461/tests/test_project.py +0 -70
- {files_com-1.6.461 → files_com-1.6.463}/LICENSE +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/README.md +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_com.egg-info/dependency_links.txt +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_com.egg-info/requires.txt +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_com.egg-info/top_level.txt +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/api.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/api_client.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/error.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/list_obj.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/account_line_item.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/action.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/action_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/action_notification_export.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/action_notification_export_result.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/agent_node.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/agent_node_connection.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/agent_node_instance.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/agent_push_update.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/ai_assistant_personality.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/ai_task.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/api_key.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/api_request_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/app.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/as2_incoming_message.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/as2_outgoing_message.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/as2_partner.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/as2_station.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/auto.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation_authoring_schema.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation_execution_node.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/automation_run.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/behavior.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_action.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_download.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_notification.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_path.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_recipient.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/bundle_registration.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/chat_message.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/chat_session.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/child_site_management_policy.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/clickwrap.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/custom_domain.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/desktop_configuration_profile.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/direct_connection_info.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/dns_record.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/email_incoming_message.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/email_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/errors.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_channel.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_delivery_attempt.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_record.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/event_target.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/exavault_api_request_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/expectation.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/expectation_evaluation.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/expectation_incident.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/external_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_action.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_comment.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_comment_reaction.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_migration.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_migration_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/file_upload_part.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/folder.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/form_field.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/form_field_set.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/ftp_action_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/gpg_key.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/group.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/group_user.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/history.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/history_export.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/history_export_result.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/holiday_calendar.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/holiday_region.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/image.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/inbound_s3_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/inbox_recipient.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/inbox_registration.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/inbox_upload.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/integration_centric_profile.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/invoice.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/invoice_line_item.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/ip_address.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/key_lifecycle_rule.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/lock.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/metadata_category.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/notification.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/outbound_connection_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner_channel.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner_channel_template.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner_site.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/partner_site_request.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/payment.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/payment_line_item.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/pending_work_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/permission.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/preview.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/public_hosting_request_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/public_ip_address.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/public_key.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_mount_backend.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_server.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/remote_server_credential.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/request.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/restore.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/schedule.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/scheduled_export.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/scim_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/secret.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/session.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/settings_change.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sftp_action_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sftp_host_key.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/share_group.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/share_group_member.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/siem_http_destination.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/siem_http_destination_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/site.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/site_subdomain_redirect.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sso_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sso_strategy.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/status.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/style.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sync.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sync_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sync_run.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/sync_run_live_transfer.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/usage_by_top_level_dir.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/usage_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_additional_email_recipient.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_cipher_use.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_lifecycle_rule.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_request.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_security_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/user_sftp_client_use.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/web_dav_action_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/webhook_test.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/workspace.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/models/zip_list_entry.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/path_util.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/files_sdk/util.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/setup.cfg +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_account_line_item.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_action.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_action_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_action_notification_export.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_action_notification_export_result.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_agent_node.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_agent_node_connection.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_agent_node_instance.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_agent_push_update.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_ai_assistant_personality.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_ai_task.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_api_errors.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_api_key.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_api_request_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_app.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_as2_incoming_message.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_as2_outgoing_message.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_as2_partner.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_as2_station.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_auto.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation_authoring_schema.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation_execution_node.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_automation_run.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_bandwidth_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_behavior.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_action.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_download.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_notification.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_path.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_recipient.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_bundle_registration.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_chat_message.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_chat_session.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_child_site_management_policy.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_clickwrap.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_connection_adapter.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_custom_domain.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_decimal_contract.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_desktop_configuration_profile.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_direct_connection_info.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_dns_record.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_email_incoming_message.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_email_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_errors.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_channel.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_delivery_attempt.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_record.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_subscription.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_event_target.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_exavault_api_request_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_expectation.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_expectation_evaluation.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_expectation_incident.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_external_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_file.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_action.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_comment.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_comment_reaction.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_migration.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_migration_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_underscore_destinations.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_file_upload_part.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_folder.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_form_field.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_form_field_set.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_ftp_action_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_gpg_key.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_group.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_group_user.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_history.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_history_export.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_history_export_result.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_holiday_calendar.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_holiday_region.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_image.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_inbound_s3_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_inbox_recipient.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_inbox_registration.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_inbox_upload.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_integration_centric_profile.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_invoice.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_invoice_line_item.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_ip_address.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_key_lifecycle_rule.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_lock.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_metadata_category.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_notification.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_outbound_connection_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner_channel.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner_channel_template.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner_site.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_partner_site_request.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_path_parameter_encoding.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_path_util.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_payment.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_payment_line_item.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_pending_work_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_permission.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_preview.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_public_hosting_request_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_public_ip_address.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_public_key.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_mount_backend.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_server.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_server_configuration_file.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_remote_server_credential.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_request.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_restore.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_schedule.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_scheduled_export.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_scim_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_secret.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_session.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_settings_change.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_sftp_action_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_sftp_host_key.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_share_group.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_share_group_member.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_siem_http_destination.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_siem_http_destination_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_site.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_site_subdomain_redirect.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_sso_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_sso_strategy.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_status.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_style.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_sync.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_sync_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_sync_run.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_sync_run_live_transfer.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_usage_by_top_level_dir.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_usage_daily_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_usage_snapshot.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_user.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_additional_email_recipient.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_cipher_use.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_lifecycle_rule.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_request.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_security_event.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_user_sftp_client_use.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_web_dav_action_log.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_webhook_test.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_workspace.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_workspace_id.py +0 -0
- {files_com-1.6.461 → files_com-1.6.463}/tests/test_zip_list_entry.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.6.463
|
|
@@ -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.
|
|
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(
|
files_com-1.6.461/_VERSION
DELETED
|
@@ -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)
|