Files.com 1.6.365__tar.gz → 1.6.366__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.365/files_com.egg-info → files_com-1.6.366}/PKG-INFO +1 -1
- files_com-1.6.366/_VERSION +1 -0
- {files_com-1.6.365 → files_com-1.6.366/files_com.egg-info}/PKG-INFO +1 -1
- {files_com-1.6.365 → files_com-1.6.366}/files_com.egg-info/SOURCES.txt +18 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/__init__.py +21 -1
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/__init__.py +11 -0
- files_com-1.6.366/files_sdk/models/event_channel.py +252 -0
- files_com-1.6.366/files_sdk/models/event_delivery_attempt.py +112 -0
- files_com-1.6.366/files_sdk/models/event_record.py +123 -0
- files_com-1.6.366/files_sdk/models/event_subscription.py +351 -0
- files_com-1.6.366/files_sdk/models/event_target.py +296 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/external_event.py +2 -10
- files_com-1.6.366/files_sdk/models/pending_work_event.py +117 -0
- files_com-1.6.366/files_sdk/models/siem_http_destination_event.py +121 -0
- files_com-1.6.366/files_sdk/models/sso_event.py +122 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/user.py +138 -4
- files_com-1.6.366/files_sdk/models/user_security_event.py +116 -0
- {files_com-1.6.365 → files_com-1.6.366}/pyproject.toml +1 -1
- files_com-1.6.366/tests/test_event_channel.py +68 -0
- files_com-1.6.366/tests/test_event_delivery_attempt.py +26 -0
- files_com-1.6.366/tests/test_event_record.py +26 -0
- files_com-1.6.366/tests/test_event_subscription.py +68 -0
- files_com-1.6.366/tests/test_event_target.py +70 -0
- files_com-1.6.366/tests/test_pending_work_event.py +26 -0
- files_com-1.6.366/tests/test_siem_http_destination_event.py +26 -0
- files_com-1.6.366/tests/test_sso_event.py +26 -0
- files_com-1.6.366/tests/test_user_security_event.py +26 -0
- files_com-1.6.365/_VERSION +0 -1
- {files_com-1.6.365 → files_com-1.6.366}/LICENSE +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/README.md +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_com.egg-info/dependency_links.txt +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_com.egg-info/requires.txt +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_com.egg-info/top_level.txt +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/api.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/api_client.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/error.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/list_obj.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/account_line_item.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/action.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/action_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/action_notification_export.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/action_notification_export_result.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/agent_push_update.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/api_key.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/api_request_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/app.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/as2_incoming_message.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/as2_outgoing_message.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/as2_partner.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/as2_station.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/auto.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/automation.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/automation_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/automation_run.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/behavior.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/bundle.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/bundle_action.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/bundle_download.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/bundle_notification.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/bundle_path.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/bundle_recipient.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/bundle_registration.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/child_site_management_policy.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/clickwrap.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/desktop_configuration_profile.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/dns_record.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/email_incoming_message.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/email_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/errors.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/exavault_api_request_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/expectation.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/expectation_evaluation.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/expectation_incident.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/file.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/file_action.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/file_comment.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/file_comment_reaction.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/file_migration.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/file_migration_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/file_upload_part.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/folder.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/form_field.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/form_field_set.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/ftp_action_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/gpg_key.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/group.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/group_user.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/history.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/history_export.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/history_export_result.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/holiday_region.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/image.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/inbound_s3_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/inbox_recipient.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/inbox_registration.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/inbox_upload.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/invoice.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/invoice_line_item.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/ip_address.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/key_lifecycle_rule.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/lock.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/message.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/message_comment.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/message_comment_reaction.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/message_reaction.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/metadata_category.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/notification.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/outbound_connection_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/partner.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/partner_site.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/partner_site_request.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/payment.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/payment_line_item.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/permission.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/preview.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/project.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/public_hosting_request_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/public_ip_address.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/public_key.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/remote_mount_backend.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/remote_server.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/remote_server_credential.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/request.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/restore.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/scim_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/session.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/settings_change.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/sftp_action_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/sftp_host_key.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/share_group.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/share_group_member.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/siem_http_destination.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/site.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/site_subdomain_redirect.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/sso_strategy.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/status.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/style.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/sync.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/sync_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/sync_run.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/sync_run_live_transfer.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/usage_by_top_level_dir.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/usage_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/user_cipher_use.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/user_lifecycle_rule.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/user_request.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/user_sftp_client_use.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/web_dav_action_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/webhook_test.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/workspace.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/models/zip_list_entry.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/path_util.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/files_sdk/util.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/setup.cfg +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_account_line_item.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_action.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_action_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_action_notification_export.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_action_notification_export_result.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_agent_push_update.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_api_errors.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_api_key.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_api_request_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_app.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_as2_incoming_message.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_as2_outgoing_message.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_as2_partner.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_as2_station.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_auto.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_automation.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_automation_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_automation_run.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_bandwidth_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_behavior.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_bundle.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_bundle_action.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_bundle_download.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_bundle_notification.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_bundle_path.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_bundle_recipient.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_bundle_registration.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_child_site_management_policy.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_clickwrap.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_connection_adapter.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_decimal_contract.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_desktop_configuration_profile.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_dns_record.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_email_incoming_message.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_email_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_errors.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_exavault_api_request_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_expectation.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_expectation_evaluation.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_expectation_incident.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_external_event.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_file.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_file_action.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_file_comment.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_file_comment_reaction.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_file_migration.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_file_migration_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_file_upload_part.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_folder.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_form_field.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_form_field_set.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_ftp_action_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_gpg_key.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_group.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_group_user.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_history.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_history_export.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_history_export_result.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_holiday_region.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_image.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_inbound_s3_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_inbox_recipient.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_inbox_registration.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_inbox_upload.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_invoice.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_invoice_line_item.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_ip_address.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_key_lifecycle_rule.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_lock.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_message.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_message_comment.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_message_comment_reaction.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_message_reaction.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_metadata_category.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_notification.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_outbound_connection_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_partner.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_partner_site.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_partner_site_request.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_path_util.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_payment.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_payment_line_item.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_permission.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_preview.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_project.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_public_hosting_request_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_public_ip_address.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_public_key.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_remote_mount_backend.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_remote_server.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_remote_server_configuration_file.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_remote_server_credential.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_request.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_restore.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_scim_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_session.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_settings_change.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_sftp_action_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_sftp_host_key.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_share_group.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_share_group_member.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_siem_http_destination.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_site.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_site_subdomain_redirect.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_sso_strategy.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_status.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_style.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_sync.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_sync_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_sync_run.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_sync_run_live_transfer.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_usage_by_top_level_dir.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_usage_daily_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_usage_snapshot.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_user.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_user_cipher_use.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_user_lifecycle_rule.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_user_request.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_user_sftp_client_use.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_web_dav_action_log.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_webhook_test.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_workspace.py +0 -0
- {files_com-1.6.365 → files_com-1.6.366}/tests/test_zip_list_entry.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.6.366
|
|
@@ -49,6 +49,11 @@ files_sdk/models/dns_record.py
|
|
|
49
49
|
files_sdk/models/email_incoming_message.py
|
|
50
50
|
files_sdk/models/email_log.py
|
|
51
51
|
files_sdk/models/errors.py
|
|
52
|
+
files_sdk/models/event_channel.py
|
|
53
|
+
files_sdk/models/event_delivery_attempt.py
|
|
54
|
+
files_sdk/models/event_record.py
|
|
55
|
+
files_sdk/models/event_subscription.py
|
|
56
|
+
files_sdk/models/event_target.py
|
|
52
57
|
files_sdk/models/exavault_api_request_log.py
|
|
53
58
|
files_sdk/models/expectation.py
|
|
54
59
|
files_sdk/models/expectation_evaluation.py
|
|
@@ -94,6 +99,7 @@ files_sdk/models/partner_site.py
|
|
|
94
99
|
files_sdk/models/partner_site_request.py
|
|
95
100
|
files_sdk/models/payment.py
|
|
96
101
|
files_sdk/models/payment_line_item.py
|
|
102
|
+
files_sdk/models/pending_work_event.py
|
|
97
103
|
files_sdk/models/permission.py
|
|
98
104
|
files_sdk/models/preview.py
|
|
99
105
|
files_sdk/models/project.py
|
|
@@ -115,9 +121,11 @@ files_sdk/models/sftp_host_key.py
|
|
|
115
121
|
files_sdk/models/share_group.py
|
|
116
122
|
files_sdk/models/share_group_member.py
|
|
117
123
|
files_sdk/models/siem_http_destination.py
|
|
124
|
+
files_sdk/models/siem_http_destination_event.py
|
|
118
125
|
files_sdk/models/site.py
|
|
119
126
|
files_sdk/models/site_subdomain_redirect.py
|
|
120
127
|
files_sdk/models/snapshot.py
|
|
128
|
+
files_sdk/models/sso_event.py
|
|
121
129
|
files_sdk/models/sso_strategy.py
|
|
122
130
|
files_sdk/models/status.py
|
|
123
131
|
files_sdk/models/style.py
|
|
@@ -132,6 +140,7 @@ files_sdk/models/user.py
|
|
|
132
140
|
files_sdk/models/user_cipher_use.py
|
|
133
141
|
files_sdk/models/user_lifecycle_rule.py
|
|
134
142
|
files_sdk/models/user_request.py
|
|
143
|
+
files_sdk/models/user_security_event.py
|
|
135
144
|
files_sdk/models/user_sftp_client_use.py
|
|
136
145
|
files_sdk/models/web_dav_action_log.py
|
|
137
146
|
files_sdk/models/webhook_test.py
|
|
@@ -173,6 +182,11 @@ tests/test_dns_record.py
|
|
|
173
182
|
tests/test_email_incoming_message.py
|
|
174
183
|
tests/test_email_log.py
|
|
175
184
|
tests/test_errors.py
|
|
185
|
+
tests/test_event_channel.py
|
|
186
|
+
tests/test_event_delivery_attempt.py
|
|
187
|
+
tests/test_event_record.py
|
|
188
|
+
tests/test_event_subscription.py
|
|
189
|
+
tests/test_event_target.py
|
|
176
190
|
tests/test_exavault_api_request_log.py
|
|
177
191
|
tests/test_expectation.py
|
|
178
192
|
tests/test_expectation_evaluation.py
|
|
@@ -219,6 +233,7 @@ tests/test_partner_site_request.py
|
|
|
219
233
|
tests/test_path_util.py
|
|
220
234
|
tests/test_payment.py
|
|
221
235
|
tests/test_payment_line_item.py
|
|
236
|
+
tests/test_pending_work_event.py
|
|
222
237
|
tests/test_permission.py
|
|
223
238
|
tests/test_preview.py
|
|
224
239
|
tests/test_project.py
|
|
@@ -240,9 +255,11 @@ tests/test_sftp_host_key.py
|
|
|
240
255
|
tests/test_share_group.py
|
|
241
256
|
tests/test_share_group_member.py
|
|
242
257
|
tests/test_siem_http_destination.py
|
|
258
|
+
tests/test_siem_http_destination_event.py
|
|
243
259
|
tests/test_site.py
|
|
244
260
|
tests/test_site_subdomain_redirect.py
|
|
245
261
|
tests/test_snapshot.py
|
|
262
|
+
tests/test_sso_event.py
|
|
246
263
|
tests/test_sso_strategy.py
|
|
247
264
|
tests/test_status.py
|
|
248
265
|
tests/test_style.py
|
|
@@ -257,6 +274,7 @@ tests/test_user.py
|
|
|
257
274
|
tests/test_user_cipher_use.py
|
|
258
275
|
tests/test_user_lifecycle_rule.py
|
|
259
276
|
tests/test_user_request.py
|
|
277
|
+
tests/test_user_security_event.py
|
|
260
278
|
tests/test_user_sftp_client_use.py
|
|
261
279
|
tests/test_web_dav_action_log.py
|
|
262
280
|
tests/test_webhook_test.py
|
|
@@ -32,6 +32,11 @@ import files_sdk.models.dns_record as dns_record
|
|
|
32
32
|
import files_sdk.models.email_incoming_message as email_incoming_message
|
|
33
33
|
import files_sdk.models.email_log as email_log
|
|
34
34
|
import files_sdk.models.errors as errors
|
|
35
|
+
import files_sdk.models.event_channel as event_channel
|
|
36
|
+
import files_sdk.models.event_delivery_attempt as event_delivery_attempt
|
|
37
|
+
import files_sdk.models.event_record as event_record
|
|
38
|
+
import files_sdk.models.event_subscription as event_subscription
|
|
39
|
+
import files_sdk.models.event_target as event_target
|
|
35
40
|
import files_sdk.models.exavault_api_request_log as exavault_api_request_log
|
|
36
41
|
import files_sdk.models.expectation as expectation
|
|
37
42
|
import files_sdk.models.expectation_evaluation as expectation_evaluation
|
|
@@ -77,6 +82,7 @@ import files_sdk.models.partner_site as partner_site
|
|
|
77
82
|
import files_sdk.models.partner_site_request as partner_site_request
|
|
78
83
|
import files_sdk.models.payment as payment
|
|
79
84
|
import files_sdk.models.payment_line_item as payment_line_item
|
|
85
|
+
import files_sdk.models.pending_work_event as pending_work_event
|
|
80
86
|
import files_sdk.models.permission as permission
|
|
81
87
|
import files_sdk.models.preview as preview
|
|
82
88
|
import files_sdk.models.project as project
|
|
@@ -98,9 +104,11 @@ import files_sdk.models.sftp_host_key as sftp_host_key
|
|
|
98
104
|
import files_sdk.models.share_group as share_group
|
|
99
105
|
import files_sdk.models.share_group_member as share_group_member
|
|
100
106
|
import files_sdk.models.siem_http_destination as siem_http_destination
|
|
107
|
+
import files_sdk.models.siem_http_destination_event as siem_http_destination_event
|
|
101
108
|
import files_sdk.models.site as site
|
|
102
109
|
import files_sdk.models.site_subdomain_redirect as site_subdomain_redirect
|
|
103
110
|
import files_sdk.models.snapshot as snapshot
|
|
111
|
+
import files_sdk.models.sso_event as sso_event
|
|
104
112
|
import files_sdk.models.sso_strategy as sso_strategy
|
|
105
113
|
import files_sdk.models.status as status
|
|
106
114
|
import files_sdk.models.style as style
|
|
@@ -115,6 +123,7 @@ import files_sdk.models.user as user
|
|
|
115
123
|
import files_sdk.models.user_cipher_use as user_cipher_use
|
|
116
124
|
import files_sdk.models.user_lifecycle_rule as user_lifecycle_rule
|
|
117
125
|
import files_sdk.models.user_request as user_request
|
|
126
|
+
import files_sdk.models.user_security_event as user_security_event
|
|
118
127
|
import files_sdk.models.user_sftp_client_use as user_sftp_client_use
|
|
119
128
|
import files_sdk.models.web_dav_action_log as web_dav_action_log
|
|
120
129
|
import files_sdk.models.webhook_test as webhook_test
|
|
@@ -162,6 +171,11 @@ from files_sdk.models.dns_record import DnsRecord
|
|
|
162
171
|
from files_sdk.models.email_incoming_message import EmailIncomingMessage
|
|
163
172
|
from files_sdk.models.email_log import EmailLog
|
|
164
173
|
from files_sdk.models.errors import Errors
|
|
174
|
+
from files_sdk.models.event_channel import EventChannel
|
|
175
|
+
from files_sdk.models.event_delivery_attempt import EventDeliveryAttempt
|
|
176
|
+
from files_sdk.models.event_record import EventRecord
|
|
177
|
+
from files_sdk.models.event_subscription import EventSubscription
|
|
178
|
+
from files_sdk.models.event_target import EventTarget
|
|
165
179
|
from files_sdk.models.exavault_api_request_log import ExavaultApiRequestLog
|
|
166
180
|
from files_sdk.models.expectation import Expectation
|
|
167
181
|
from files_sdk.models.expectation_evaluation import ExpectationEvaluation
|
|
@@ -207,6 +221,7 @@ from files_sdk.models.partner_site import PartnerSite
|
|
|
207
221
|
from files_sdk.models.partner_site_request import PartnerSiteRequest
|
|
208
222
|
from files_sdk.models.payment import Payment
|
|
209
223
|
from files_sdk.models.payment_line_item import PaymentLineItem
|
|
224
|
+
from files_sdk.models.pending_work_event import PendingWorkEvent
|
|
210
225
|
from files_sdk.models.permission import Permission
|
|
211
226
|
from files_sdk.models.preview import Preview
|
|
212
227
|
from files_sdk.models.project import Project
|
|
@@ -230,9 +245,13 @@ from files_sdk.models.sftp_host_key import SftpHostKey
|
|
|
230
245
|
from files_sdk.models.share_group import ShareGroup
|
|
231
246
|
from files_sdk.models.share_group_member import ShareGroupMember
|
|
232
247
|
from files_sdk.models.siem_http_destination import SiemHttpDestination
|
|
248
|
+
from files_sdk.models.siem_http_destination_event import (
|
|
249
|
+
SiemHttpDestinationEvent,
|
|
250
|
+
)
|
|
233
251
|
from files_sdk.models.site import Site
|
|
234
252
|
from files_sdk.models.site_subdomain_redirect import SiteSubdomainRedirect
|
|
235
253
|
from files_sdk.models.snapshot import Snapshot
|
|
254
|
+
from files_sdk.models.sso_event import SsoEvent
|
|
236
255
|
from files_sdk.models.sso_strategy import SsoStrategy
|
|
237
256
|
from files_sdk.models.status import Status
|
|
238
257
|
from files_sdk.models.style import Style
|
|
@@ -247,6 +266,7 @@ from files_sdk.models.user import User
|
|
|
247
266
|
from files_sdk.models.user_cipher_use import UserCipherUse
|
|
248
267
|
from files_sdk.models.user_lifecycle_rule import UserLifecycleRule
|
|
249
268
|
from files_sdk.models.user_request import UserRequest
|
|
269
|
+
from files_sdk.models.user_security_event import UserSecurityEvent
|
|
250
270
|
from files_sdk.models.user_sftp_client_use import UserSftpClientUse
|
|
251
271
|
from files_sdk.models.web_dav_action_log import WebDavActionLog
|
|
252
272
|
from files_sdk.models.webhook_test import WebhookTest
|
|
@@ -263,7 +283,7 @@ session_id = None
|
|
|
263
283
|
source_ip = None
|
|
264
284
|
base_url = "https://app.files.com"
|
|
265
285
|
base_path = "api/rest/v1"
|
|
266
|
-
version = "1.6.
|
|
286
|
+
version = "1.6.366"
|
|
267
287
|
|
|
268
288
|
__version__ = version
|
|
269
289
|
|
|
@@ -39,6 +39,11 @@ from files_sdk.models.dns_record import DnsRecord
|
|
|
39
39
|
from files_sdk.models.email_incoming_message import EmailIncomingMessage
|
|
40
40
|
from files_sdk.models.email_log import EmailLog
|
|
41
41
|
from files_sdk.models.errors import Errors
|
|
42
|
+
from files_sdk.models.event_channel import EventChannel
|
|
43
|
+
from files_sdk.models.event_delivery_attempt import EventDeliveryAttempt
|
|
44
|
+
from files_sdk.models.event_record import EventRecord
|
|
45
|
+
from files_sdk.models.event_subscription import EventSubscription
|
|
46
|
+
from files_sdk.models.event_target import EventTarget
|
|
42
47
|
from files_sdk.models.exavault_api_request_log import ExavaultApiRequestLog
|
|
43
48
|
from files_sdk.models.expectation import Expectation
|
|
44
49
|
from files_sdk.models.expectation_evaluation import ExpectationEvaluation
|
|
@@ -84,6 +89,7 @@ from files_sdk.models.partner_site import PartnerSite
|
|
|
84
89
|
from files_sdk.models.partner_site_request import PartnerSiteRequest
|
|
85
90
|
from files_sdk.models.payment import Payment
|
|
86
91
|
from files_sdk.models.payment_line_item import PaymentLineItem
|
|
92
|
+
from files_sdk.models.pending_work_event import PendingWorkEvent
|
|
87
93
|
from files_sdk.models.permission import Permission
|
|
88
94
|
from files_sdk.models.preview import Preview
|
|
89
95
|
from files_sdk.models.project import Project
|
|
@@ -107,9 +113,13 @@ from files_sdk.models.sftp_host_key import SftpHostKey
|
|
|
107
113
|
from files_sdk.models.share_group import ShareGroup
|
|
108
114
|
from files_sdk.models.share_group_member import ShareGroupMember
|
|
109
115
|
from files_sdk.models.siem_http_destination import SiemHttpDestination
|
|
116
|
+
from files_sdk.models.siem_http_destination_event import (
|
|
117
|
+
SiemHttpDestinationEvent,
|
|
118
|
+
)
|
|
110
119
|
from files_sdk.models.site import Site
|
|
111
120
|
from files_sdk.models.site_subdomain_redirect import SiteSubdomainRedirect
|
|
112
121
|
from files_sdk.models.snapshot import Snapshot
|
|
122
|
+
from files_sdk.models.sso_event import SsoEvent
|
|
113
123
|
from files_sdk.models.sso_strategy import SsoStrategy
|
|
114
124
|
from files_sdk.models.status import Status
|
|
115
125
|
from files_sdk.models.style import Style
|
|
@@ -124,6 +134,7 @@ from files_sdk.models.user import User
|
|
|
124
134
|
from files_sdk.models.user_cipher_use import UserCipherUse
|
|
125
135
|
from files_sdk.models.user_lifecycle_rule import UserLifecycleRule
|
|
126
136
|
from files_sdk.models.user_request import UserRequest
|
|
137
|
+
from files_sdk.models.user_security_event import UserSecurityEvent
|
|
127
138
|
from files_sdk.models.user_sftp_client_use import UserSftpClientUse
|
|
128
139
|
from files_sdk.models.web_dav_action_log import WebDavActionLog
|
|
129
140
|
from files_sdk.models.webhook_test import WebhookTest
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import builtins # noqa: F401
|
|
2
|
+
from files_sdk.api import Api # noqa: F401
|
|
3
|
+
from files_sdk.list_obj import ListObj
|
|
4
|
+
from files_sdk.error import ( # noqa: F401
|
|
5
|
+
InvalidParameterError,
|
|
6
|
+
MissingParameterError,
|
|
7
|
+
NotImplementedError,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class EventChannel:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - Event Channel ID
|
|
14
|
+
"name": None, # string - Event Channel name.
|
|
15
|
+
"description": None, # string - Event Channel description.
|
|
16
|
+
"enabled": None, # boolean - Whether this Event Channel can dispatch events.
|
|
17
|
+
"default_channel": None, # boolean - Whether this Event Channel is the default destination for newly published events.
|
|
18
|
+
"created_at": None, # date-time - Event Channel create date/time.
|
|
19
|
+
"updated_at": None, # date-time - Event Channel update date/time.
|
|
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 (
|
|
32
|
+
attribute,
|
|
33
|
+
default_value,
|
|
34
|
+
) in EventChannel.default_attributes.items():
|
|
35
|
+
value = attributes.get(attribute, default_value)
|
|
36
|
+
setattr(self, attribute, value)
|
|
37
|
+
|
|
38
|
+
def get_attributes(self):
|
|
39
|
+
attrs = {
|
|
40
|
+
k: getattr(self, k, None)
|
|
41
|
+
for k in EventChannel.default_attributes
|
|
42
|
+
if getattr(self, k, None) is not None
|
|
43
|
+
}
|
|
44
|
+
return attrs
|
|
45
|
+
|
|
46
|
+
# Parameters:
|
|
47
|
+
# name - string - Event Channel name.
|
|
48
|
+
# description - string - Event Channel description.
|
|
49
|
+
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
50
|
+
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
51
|
+
def update(self, params=None):
|
|
52
|
+
if not isinstance(params, dict):
|
|
53
|
+
params = {}
|
|
54
|
+
|
|
55
|
+
if hasattr(self, "id") and self.id:
|
|
56
|
+
params["id"] = self.id
|
|
57
|
+
else:
|
|
58
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
59
|
+
if "id" not in params:
|
|
60
|
+
raise MissingParameterError("Parameter missing: id")
|
|
61
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
62
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
63
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
64
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
65
|
+
if "description" in params and not isinstance(
|
|
66
|
+
params["description"], str
|
|
67
|
+
):
|
|
68
|
+
raise InvalidParameterError(
|
|
69
|
+
"Bad parameter: description must be an str"
|
|
70
|
+
)
|
|
71
|
+
response, _options = Api.send_request(
|
|
72
|
+
"PATCH",
|
|
73
|
+
"/event_channels/{id}".format(id=params["id"]),
|
|
74
|
+
params,
|
|
75
|
+
self.options,
|
|
76
|
+
)
|
|
77
|
+
return response.data
|
|
78
|
+
|
|
79
|
+
def delete(self, params=None):
|
|
80
|
+
if not isinstance(params, dict):
|
|
81
|
+
params = {}
|
|
82
|
+
|
|
83
|
+
if hasattr(self, "id") and self.id:
|
|
84
|
+
params["id"] = self.id
|
|
85
|
+
else:
|
|
86
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
87
|
+
if "id" not in params:
|
|
88
|
+
raise MissingParameterError("Parameter missing: id")
|
|
89
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
90
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
91
|
+
Api.send_request(
|
|
92
|
+
"DELETE",
|
|
93
|
+
"/event_channels/{id}".format(id=params["id"]),
|
|
94
|
+
params,
|
|
95
|
+
self.options,
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
def destroy(self, params=None):
|
|
99
|
+
self.delete(params)
|
|
100
|
+
|
|
101
|
+
def save(self):
|
|
102
|
+
if hasattr(self, "id") and self.id:
|
|
103
|
+
new_obj = self.update(self.get_attributes())
|
|
104
|
+
self.set_attributes(new_obj.get_attributes())
|
|
105
|
+
return True
|
|
106
|
+
else:
|
|
107
|
+
new_obj = create(self.get_attributes(), self.options)
|
|
108
|
+
self.set_attributes(new_obj.get_attributes())
|
|
109
|
+
return True
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# Parameters:
|
|
113
|
+
# 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.
|
|
114
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
115
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `enabled` and `default_channel`.
|
|
116
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled` and `default_channel`.
|
|
117
|
+
def list(params=None, options=None):
|
|
118
|
+
if not isinstance(params, dict):
|
|
119
|
+
params = {}
|
|
120
|
+
if not isinstance(options, dict):
|
|
121
|
+
options = {}
|
|
122
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
123
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
124
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
125
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
126
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
127
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
128
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
129
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
130
|
+
return ListObj(EventChannel, "GET", "/event_channels", params, options)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def all(params=None, options=None):
|
|
134
|
+
list(params, options)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
# Parameters:
|
|
138
|
+
# id (required) - int64 - Event Channel ID.
|
|
139
|
+
def find(id, params=None, options=None):
|
|
140
|
+
if not isinstance(params, dict):
|
|
141
|
+
params = {}
|
|
142
|
+
if not isinstance(options, dict):
|
|
143
|
+
options = {}
|
|
144
|
+
params["id"] = id
|
|
145
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
146
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
147
|
+
if "id" not in params:
|
|
148
|
+
raise MissingParameterError("Parameter missing: id")
|
|
149
|
+
response, options = Api.send_request(
|
|
150
|
+
"GET", "/event_channels/{id}".format(id=params["id"]), params, options
|
|
151
|
+
)
|
|
152
|
+
return EventChannel(response.data, options)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def get(id, params=None, options=None):
|
|
156
|
+
find(id, params, options)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
# Parameters:
|
|
160
|
+
# name (required) - string - Event Channel name.
|
|
161
|
+
# description - string - Event Channel description.
|
|
162
|
+
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
163
|
+
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
164
|
+
def create(params=None, options=None):
|
|
165
|
+
if not isinstance(params, dict):
|
|
166
|
+
params = {}
|
|
167
|
+
if not isinstance(options, dict):
|
|
168
|
+
options = {}
|
|
169
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
170
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
171
|
+
if "description" in params and not isinstance(params["description"], str):
|
|
172
|
+
raise InvalidParameterError(
|
|
173
|
+
"Bad parameter: description must be an str"
|
|
174
|
+
)
|
|
175
|
+
if "enabled" in params and not isinstance(params["enabled"], bool):
|
|
176
|
+
raise InvalidParameterError("Bad parameter: enabled must be an bool")
|
|
177
|
+
if "default_channel" in params and not isinstance(
|
|
178
|
+
params["default_channel"], bool
|
|
179
|
+
):
|
|
180
|
+
raise InvalidParameterError(
|
|
181
|
+
"Bad parameter: default_channel must be an bool"
|
|
182
|
+
)
|
|
183
|
+
if "name" not in params:
|
|
184
|
+
raise MissingParameterError("Parameter missing: name")
|
|
185
|
+
response, options = Api.send_request(
|
|
186
|
+
"POST", "/event_channels", params, options
|
|
187
|
+
)
|
|
188
|
+
return EventChannel(response.data, options)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
# Parameters:
|
|
192
|
+
# name - string - Event Channel name.
|
|
193
|
+
# description - string - Event Channel description.
|
|
194
|
+
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
195
|
+
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
196
|
+
def update(id, params=None, options=None):
|
|
197
|
+
if not isinstance(params, dict):
|
|
198
|
+
params = {}
|
|
199
|
+
if not isinstance(options, dict):
|
|
200
|
+
options = {}
|
|
201
|
+
params["id"] = id
|
|
202
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
203
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
204
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
205
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
206
|
+
if "description" in params and not isinstance(params["description"], str):
|
|
207
|
+
raise InvalidParameterError(
|
|
208
|
+
"Bad parameter: description must be an str"
|
|
209
|
+
)
|
|
210
|
+
if "enabled" in params and not isinstance(params["enabled"], bool):
|
|
211
|
+
raise InvalidParameterError("Bad parameter: enabled must be an bool")
|
|
212
|
+
if "default_channel" in params and not isinstance(
|
|
213
|
+
params["default_channel"], bool
|
|
214
|
+
):
|
|
215
|
+
raise InvalidParameterError(
|
|
216
|
+
"Bad parameter: default_channel must be an bool"
|
|
217
|
+
)
|
|
218
|
+
if "id" not in params:
|
|
219
|
+
raise MissingParameterError("Parameter missing: id")
|
|
220
|
+
response, options = Api.send_request(
|
|
221
|
+
"PATCH",
|
|
222
|
+
"/event_channels/{id}".format(id=params["id"]),
|
|
223
|
+
params,
|
|
224
|
+
options,
|
|
225
|
+
)
|
|
226
|
+
return EventChannel(response.data, options)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
def delete(id, params=None, options=None):
|
|
230
|
+
if not isinstance(params, dict):
|
|
231
|
+
params = {}
|
|
232
|
+
if not isinstance(options, dict):
|
|
233
|
+
options = {}
|
|
234
|
+
params["id"] = id
|
|
235
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
236
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
237
|
+
if "id" not in params:
|
|
238
|
+
raise MissingParameterError("Parameter missing: id")
|
|
239
|
+
Api.send_request(
|
|
240
|
+
"DELETE",
|
|
241
|
+
"/event_channels/{id}".format(id=params["id"]),
|
|
242
|
+
params,
|
|
243
|
+
options,
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
def destroy(id, params=None, options=None):
|
|
248
|
+
delete(id, params, options)
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
def new(*args, **kwargs):
|
|
252
|
+
return EventChannel(*args, **kwargs)
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import builtins # noqa: F401
|
|
2
|
+
from files_sdk.api import Api # noqa: F401
|
|
3
|
+
from files_sdk.list_obj import ListObj
|
|
4
|
+
from files_sdk.error import ( # noqa: F401
|
|
5
|
+
InvalidParameterError,
|
|
6
|
+
MissingParameterError,
|
|
7
|
+
NotImplementedError,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class EventDeliveryAttempt:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - Event Delivery Attempt ID
|
|
14
|
+
"event_record_id": None, # int64 - Event Record ID
|
|
15
|
+
"event_subscription_id": None, # int64 - Event Subscription ID
|
|
16
|
+
"event_target_id": None, # int64 - Event Target ID
|
|
17
|
+
"workspace_id": None, # int64 - Workspace ID. 0 means the default workspace or site-wide.
|
|
18
|
+
"status": None, # string - Delivery status.
|
|
19
|
+
"attempt_number": None, # int64 - Number of delivery attempts made.
|
|
20
|
+
"response_code": None, # int64 - HTTP response code, if applicable.
|
|
21
|
+
"error_message": None, # string - Delivery error message, if applicable.
|
|
22
|
+
"response_body": None, # string - Delivery response body, if applicable.
|
|
23
|
+
"latency_ms": None, # int64 - Delivery latency in milliseconds.
|
|
24
|
+
"delivered_at": None, # date-time - Successful delivery date/time.
|
|
25
|
+
"last_attempted_at": None, # date-time - Most recent attempt date/time.
|
|
26
|
+
"next_attempt_at": None, # date-time - Next scheduled attempt date/time.
|
|
27
|
+
"created_at": None, # date-time - Delivery Attempt create date/time.
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, attributes=None, options=None):
|
|
31
|
+
if not isinstance(attributes, dict):
|
|
32
|
+
attributes = {}
|
|
33
|
+
if not isinstance(options, dict):
|
|
34
|
+
options = {}
|
|
35
|
+
self.set_attributes(attributes)
|
|
36
|
+
self.options = options
|
|
37
|
+
|
|
38
|
+
def set_attributes(self, attributes):
|
|
39
|
+
for (
|
|
40
|
+
attribute,
|
|
41
|
+
default_value,
|
|
42
|
+
) in EventDeliveryAttempt.default_attributes.items():
|
|
43
|
+
value = attributes.get(attribute, default_value)
|
|
44
|
+
setattr(self, attribute, value)
|
|
45
|
+
|
|
46
|
+
def get_attributes(self):
|
|
47
|
+
attrs = {
|
|
48
|
+
k: getattr(self, k, None)
|
|
49
|
+
for k in EventDeliveryAttempt.default_attributes
|
|
50
|
+
if getattr(self, k, None) is not None
|
|
51
|
+
}
|
|
52
|
+
return attrs
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Parameters:
|
|
56
|
+
# 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.
|
|
57
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
58
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `status`, `event_record_id`, `event_target_id` or `workspace_id`.
|
|
59
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id`, `event_record_id` or `event_target_id`. Valid field combinations are `[ workspace_id, status ]`, `[ workspace_id, event_record_id ]` or `[ workspace_id, event_target_id ]`.
|
|
60
|
+
def list(params=None, options=None):
|
|
61
|
+
if not isinstance(params, dict):
|
|
62
|
+
params = {}
|
|
63
|
+
if not isinstance(options, dict):
|
|
64
|
+
options = {}
|
|
65
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
66
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
67
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
68
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
69
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
70
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
71
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
72
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
73
|
+
return ListObj(
|
|
74
|
+
EventDeliveryAttempt,
|
|
75
|
+
"GET",
|
|
76
|
+
"/event_delivery_attempts",
|
|
77
|
+
params,
|
|
78
|
+
options,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def all(params=None, options=None):
|
|
83
|
+
list(params, options)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# Parameters:
|
|
87
|
+
# id (required) - int64 - Event Delivery Attempt ID.
|
|
88
|
+
def find(id, params=None, options=None):
|
|
89
|
+
if not isinstance(params, dict):
|
|
90
|
+
params = {}
|
|
91
|
+
if not isinstance(options, dict):
|
|
92
|
+
options = {}
|
|
93
|
+
params["id"] = id
|
|
94
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
95
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
96
|
+
if "id" not in params:
|
|
97
|
+
raise MissingParameterError("Parameter missing: id")
|
|
98
|
+
response, options = Api.send_request(
|
|
99
|
+
"GET",
|
|
100
|
+
"/event_delivery_attempts/{id}".format(id=params["id"]),
|
|
101
|
+
params,
|
|
102
|
+
options,
|
|
103
|
+
)
|
|
104
|
+
return EventDeliveryAttempt(response.data, options)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def get(id, params=None, options=None):
|
|
108
|
+
find(id, params, options)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def new(*args, **kwargs):
|
|
112
|
+
return EventDeliveryAttempt(*args, **kwargs)
|