Files.com 1.6.343__tar.gz → 1.6.345__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.343/files_com.egg-info → files_com-1.6.345}/PKG-INFO +1 -1
- files_com-1.6.345/_VERSION +1 -0
- {files_com-1.6.343 → files_com-1.6.345/files_com.egg-info}/PKG-INFO +1 -1
- {files_com-1.6.343 → files_com-1.6.345}/files_com.egg-info/SOURCES.txt +4 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/__init__.py +5 -1
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/__init__.py +2 -0
- files_com-1.6.345/files_sdk/models/metadata_category.py +233 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/notification.py +5 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/sync_run.py +1 -0
- files_com-1.6.345/files_sdk/models/sync_run_live_transfer.py +47 -0
- {files_com-1.6.343 → files_com-1.6.345}/pyproject.toml +1 -1
- files_com-1.6.345/tests/test_metadata_category.py +68 -0
- files_com-1.6.345/tests/test_sync_run_live_transfer.py +14 -0
- files_com-1.6.343/_VERSION +0 -1
- {files_com-1.6.343 → files_com-1.6.345}/LICENSE +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/README.md +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_com.egg-info/dependency_links.txt +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_com.egg-info/requires.txt +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_com.egg-info/top_level.txt +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/api.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/api_client.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/error.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/list_obj.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/account_line_item.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/action.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/action_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/action_notification_export.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/action_notification_export_result.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/agent_push_update.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/api_key.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/api_request_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/app.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/as2_incoming_message.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/as2_outgoing_message.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/as2_partner.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/as2_station.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/auto.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/automation.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/automation_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/automation_run.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/behavior.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/bundle.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/bundle_action.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/bundle_download.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/bundle_notification.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/bundle_path.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/bundle_recipient.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/bundle_registration.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/child_site_management_policy.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/clickwrap.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/desktop_configuration_profile.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/dns_record.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/email_incoming_message.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/email_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/errors.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/exavault_api_request_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/expectation.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/expectation_evaluation.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/expectation_incident.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/external_event.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/file.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/file_action.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/file_comment.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/file_comment_reaction.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/file_migration.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/file_migration_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/file_upload_part.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/folder.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/form_field.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/form_field_set.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/ftp_action_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/gpg_key.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/group.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/group_user.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/history.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/history_export.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/history_export_result.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/holiday_region.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/image.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/inbound_s3_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/inbox_recipient.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/inbox_registration.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/inbox_upload.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/invoice.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/invoice_line_item.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/ip_address.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/key_lifecycle_rule.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/lock.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/message.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/message_comment.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/message_comment_reaction.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/message_reaction.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/outbound_connection_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/partner.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/partner_site.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/partner_site_request.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/payment.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/payment_line_item.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/permission.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/preview.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/project.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/public_hosting_request_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/public_ip_address.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/public_key.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/remote_mount_backend.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/remote_server.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/remote_server_credential.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/request.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/restore.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/scim_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/session.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/settings_change.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/sftp_action_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/sftp_host_key.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/share_group.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/share_group_member.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/siem_http_destination.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/site.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/sso_strategy.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/status.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/style.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/sync.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/sync_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/usage_by_top_level_dir.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/usage_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/user.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/user_cipher_use.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/user_lifecycle_rule.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/user_request.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/user_sftp_client_use.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/web_dav_action_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/webhook_test.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/workspace.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/zip_list_entry.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/path_util.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/files_sdk/util.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/setup.cfg +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_account_line_item.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_action.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_action_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_action_notification_export.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_action_notification_export_result.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_agent_push_update.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_api_errors.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_api_key.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_api_request_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_app.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_as2_incoming_message.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_as2_outgoing_message.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_as2_partner.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_as2_station.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_auto.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_automation.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_automation_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_automation_run.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_bandwidth_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_behavior.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_bundle.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_bundle_action.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_bundle_download.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_bundle_notification.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_bundle_path.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_bundle_recipient.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_bundle_registration.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_child_site_management_policy.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_clickwrap.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_connection_adapter.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_decimal_contract.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_desktop_configuration_profile.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_dns_record.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_email_incoming_message.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_email_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_errors.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_exavault_api_request_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_expectation.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_expectation_evaluation.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_expectation_incident.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_external_event.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_file.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_file_action.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_file_comment.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_file_comment_reaction.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_file_migration.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_file_migration_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_file_upload_part.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_folder.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_form_field.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_form_field_set.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_ftp_action_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_gpg_key.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_group.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_group_user.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_history.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_history_export.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_history_export_result.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_holiday_region.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_image.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_inbound_s3_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_inbox_recipient.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_inbox_registration.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_inbox_upload.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_invoice.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_invoice_line_item.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_ip_address.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_key_lifecycle_rule.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_lock.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_message.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_message_comment.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_message_comment_reaction.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_message_reaction.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_notification.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_outbound_connection_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_partner.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_partner_site.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_partner_site_request.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_path_util.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_payment.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_payment_line_item.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_permission.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_preview.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_project.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_public_hosting_request_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_public_ip_address.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_public_key.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_remote_mount_backend.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_remote_server.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_remote_server_configuration_file.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_remote_server_credential.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_request.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_restore.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_scim_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_session.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_settings_change.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_sftp_action_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_sftp_host_key.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_share_group.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_share_group_member.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_siem_http_destination.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_site.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_sso_strategy.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_status.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_style.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_sync.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_sync_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_sync_run.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_usage_by_top_level_dir.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_usage_daily_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_usage_snapshot.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_user.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_user_cipher_use.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_user_lifecycle_rule.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_user_request.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_user_sftp_client_use.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_web_dav_action_log.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_webhook_test.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_workspace.py +0 -0
- {files_com-1.6.343 → files_com-1.6.345}/tests/test_zip_list_entry.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.6.345
|
|
@@ -86,6 +86,7 @@ files_sdk/models/message.py
|
|
|
86
86
|
files_sdk/models/message_comment.py
|
|
87
87
|
files_sdk/models/message_comment_reaction.py
|
|
88
88
|
files_sdk/models/message_reaction.py
|
|
89
|
+
files_sdk/models/metadata_category.py
|
|
89
90
|
files_sdk/models/notification.py
|
|
90
91
|
files_sdk/models/outbound_connection_log.py
|
|
91
92
|
files_sdk/models/partner.py
|
|
@@ -122,6 +123,7 @@ files_sdk/models/style.py
|
|
|
122
123
|
files_sdk/models/sync.py
|
|
123
124
|
files_sdk/models/sync_log.py
|
|
124
125
|
files_sdk/models/sync_run.py
|
|
126
|
+
files_sdk/models/sync_run_live_transfer.py
|
|
125
127
|
files_sdk/models/usage_by_top_level_dir.py
|
|
126
128
|
files_sdk/models/usage_daily_snapshot.py
|
|
127
129
|
files_sdk/models/usage_snapshot.py
|
|
@@ -207,6 +209,7 @@ tests/test_message.py
|
|
|
207
209
|
tests/test_message_comment.py
|
|
208
210
|
tests/test_message_comment_reaction.py
|
|
209
211
|
tests/test_message_reaction.py
|
|
212
|
+
tests/test_metadata_category.py
|
|
210
213
|
tests/test_notification.py
|
|
211
214
|
tests/test_outbound_connection_log.py
|
|
212
215
|
tests/test_partner.py
|
|
@@ -244,6 +247,7 @@ tests/test_style.py
|
|
|
244
247
|
tests/test_sync.py
|
|
245
248
|
tests/test_sync_log.py
|
|
246
249
|
tests/test_sync_run.py
|
|
250
|
+
tests/test_sync_run_live_transfer.py
|
|
247
251
|
tests/test_usage_by_top_level_dir.py
|
|
248
252
|
tests/test_usage_daily_snapshot.py
|
|
249
253
|
tests/test_usage_snapshot.py
|
|
@@ -69,6 +69,7 @@ import files_sdk.models.message as message
|
|
|
69
69
|
import files_sdk.models.message_comment as message_comment
|
|
70
70
|
import files_sdk.models.message_comment_reaction as message_comment_reaction
|
|
71
71
|
import files_sdk.models.message_reaction as message_reaction
|
|
72
|
+
import files_sdk.models.metadata_category as metadata_category
|
|
72
73
|
import files_sdk.models.notification as notification
|
|
73
74
|
import files_sdk.models.outbound_connection_log as outbound_connection_log
|
|
74
75
|
import files_sdk.models.partner as partner
|
|
@@ -105,6 +106,7 @@ import files_sdk.models.style as style
|
|
|
105
106
|
import files_sdk.models.sync as sync
|
|
106
107
|
import files_sdk.models.sync_log as sync_log
|
|
107
108
|
import files_sdk.models.sync_run as sync_run
|
|
109
|
+
import files_sdk.models.sync_run_live_transfer as sync_run_live_transfer
|
|
108
110
|
import files_sdk.models.usage_by_top_level_dir as usage_by_top_level_dir
|
|
109
111
|
import files_sdk.models.usage_daily_snapshot as usage_daily_snapshot
|
|
110
112
|
import files_sdk.models.usage_snapshot as usage_snapshot
|
|
@@ -196,6 +198,7 @@ from files_sdk.models.message import Message
|
|
|
196
198
|
from files_sdk.models.message_comment import MessageComment
|
|
197
199
|
from files_sdk.models.message_comment_reaction import MessageCommentReaction
|
|
198
200
|
from files_sdk.models.message_reaction import MessageReaction
|
|
201
|
+
from files_sdk.models.metadata_category import MetadataCategory
|
|
199
202
|
from files_sdk.models.notification import Notification
|
|
200
203
|
from files_sdk.models.outbound_connection_log import OutboundConnectionLog
|
|
201
204
|
from files_sdk.models.partner import Partner
|
|
@@ -234,6 +237,7 @@ from files_sdk.models.style import Style
|
|
|
234
237
|
from files_sdk.models.sync import Sync
|
|
235
238
|
from files_sdk.models.sync_log import SyncLog
|
|
236
239
|
from files_sdk.models.sync_run import SyncRun
|
|
240
|
+
from files_sdk.models.sync_run_live_transfer import SyncRunLiveTransfer
|
|
237
241
|
from files_sdk.models.usage_by_top_level_dir import UsageByTopLevelDir
|
|
238
242
|
from files_sdk.models.usage_daily_snapshot import UsageDailySnapshot
|
|
239
243
|
from files_sdk.models.usage_snapshot import UsageSnapshot
|
|
@@ -257,7 +261,7 @@ session_id = None
|
|
|
257
261
|
source_ip = None
|
|
258
262
|
base_url = "https://app.files.com"
|
|
259
263
|
base_path = "api/rest/v1"
|
|
260
|
-
version = "1.6.
|
|
264
|
+
version = "1.6.345"
|
|
261
265
|
|
|
262
266
|
__version__ = version
|
|
263
267
|
|
|
@@ -76,6 +76,7 @@ from files_sdk.models.message import Message
|
|
|
76
76
|
from files_sdk.models.message_comment import MessageComment
|
|
77
77
|
from files_sdk.models.message_comment_reaction import MessageCommentReaction
|
|
78
78
|
from files_sdk.models.message_reaction import MessageReaction
|
|
79
|
+
from files_sdk.models.metadata_category import MetadataCategory
|
|
79
80
|
from files_sdk.models.notification import Notification
|
|
80
81
|
from files_sdk.models.outbound_connection_log import OutboundConnectionLog
|
|
81
82
|
from files_sdk.models.partner import Partner
|
|
@@ -114,6 +115,7 @@ from files_sdk.models.style import Style
|
|
|
114
115
|
from files_sdk.models.sync import Sync
|
|
115
116
|
from files_sdk.models.sync_log import SyncLog
|
|
116
117
|
from files_sdk.models.sync_run import SyncRun
|
|
118
|
+
from files_sdk.models.sync_run_live_transfer import SyncRunLiveTransfer
|
|
117
119
|
from files_sdk.models.usage_by_top_level_dir import UsageByTopLevelDir
|
|
118
120
|
from files_sdk.models.usage_daily_snapshot import UsageDailySnapshot
|
|
119
121
|
from files_sdk.models.usage_snapshot import UsageSnapshot
|
|
@@ -0,0 +1,233 @@
|
|
|
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 MetadataCategory:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - Metadata Category ID
|
|
14
|
+
"name": None, # string - Name of the metadata category.
|
|
15
|
+
"definitions": None, # hash(string,array(string)) - Map of key names to arrays of allowed values. An empty array means free-form text.
|
|
16
|
+
"default_columns": None, # array(string) - Metadata keys that should appear as columns in the UI by default.
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
def __init__(self, attributes=None, options=None):
|
|
20
|
+
if not isinstance(attributes, dict):
|
|
21
|
+
attributes = {}
|
|
22
|
+
if not isinstance(options, dict):
|
|
23
|
+
options = {}
|
|
24
|
+
self.set_attributes(attributes)
|
|
25
|
+
self.options = options
|
|
26
|
+
|
|
27
|
+
def set_attributes(self, attributes):
|
|
28
|
+
for (
|
|
29
|
+
attribute,
|
|
30
|
+
default_value,
|
|
31
|
+
) in MetadataCategory.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 MetadataCategory.default_attributes
|
|
39
|
+
if getattr(self, k, None) is not None
|
|
40
|
+
}
|
|
41
|
+
return attrs
|
|
42
|
+
|
|
43
|
+
# Parameters:
|
|
44
|
+
# name - string - Name of the metadata category.
|
|
45
|
+
# default_columns - array(string) - Metadata keys that should appear as columns in the UI by default.
|
|
46
|
+
def update(self, params=None):
|
|
47
|
+
if not isinstance(params, dict):
|
|
48
|
+
params = {}
|
|
49
|
+
|
|
50
|
+
if hasattr(self, "id") and self.id:
|
|
51
|
+
params["id"] = self.id
|
|
52
|
+
else:
|
|
53
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
54
|
+
if "id" not in params:
|
|
55
|
+
raise MissingParameterError("Parameter missing: id")
|
|
56
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
57
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
58
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
59
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
60
|
+
if "default_columns" in params and not isinstance(
|
|
61
|
+
params["default_columns"], builtins.list
|
|
62
|
+
):
|
|
63
|
+
raise InvalidParameterError(
|
|
64
|
+
"Bad parameter: default_columns must be an list"
|
|
65
|
+
)
|
|
66
|
+
response, _options = Api.send_request(
|
|
67
|
+
"PATCH",
|
|
68
|
+
"/metadata_categories/{id}".format(id=params["id"]),
|
|
69
|
+
params,
|
|
70
|
+
self.options,
|
|
71
|
+
)
|
|
72
|
+
return response.data
|
|
73
|
+
|
|
74
|
+
def delete(self, params=None):
|
|
75
|
+
if not isinstance(params, dict):
|
|
76
|
+
params = {}
|
|
77
|
+
|
|
78
|
+
if hasattr(self, "id") and self.id:
|
|
79
|
+
params["id"] = self.id
|
|
80
|
+
else:
|
|
81
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
82
|
+
if "id" not in params:
|
|
83
|
+
raise MissingParameterError("Parameter missing: id")
|
|
84
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
85
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
86
|
+
Api.send_request(
|
|
87
|
+
"DELETE",
|
|
88
|
+
"/metadata_categories/{id}".format(id=params["id"]),
|
|
89
|
+
params,
|
|
90
|
+
self.options,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
def destroy(self, params=None):
|
|
94
|
+
self.delete(params)
|
|
95
|
+
|
|
96
|
+
def save(self):
|
|
97
|
+
if hasattr(self, "id") and self.id:
|
|
98
|
+
new_obj = self.update(self.get_attributes())
|
|
99
|
+
self.set_attributes(new_obj.get_attributes())
|
|
100
|
+
return True
|
|
101
|
+
else:
|
|
102
|
+
new_obj = create(self.get_attributes(), self.options)
|
|
103
|
+
self.set_attributes(new_obj.get_attributes())
|
|
104
|
+
return True
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
# Parameters:
|
|
108
|
+
# 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.
|
|
109
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
110
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
111
|
+
def list(params=None, options=None):
|
|
112
|
+
if not isinstance(params, dict):
|
|
113
|
+
params = {}
|
|
114
|
+
if not isinstance(options, dict):
|
|
115
|
+
options = {}
|
|
116
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
117
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
118
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
119
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
120
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
121
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
122
|
+
return ListObj(
|
|
123
|
+
MetadataCategory, "GET", "/metadata_categories", params, options
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def all(params=None, options=None):
|
|
128
|
+
list(params, options)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
# Parameters:
|
|
132
|
+
# id (required) - int64 - Metadata Category ID.
|
|
133
|
+
def find(id, params=None, options=None):
|
|
134
|
+
if not isinstance(params, dict):
|
|
135
|
+
params = {}
|
|
136
|
+
if not isinstance(options, dict):
|
|
137
|
+
options = {}
|
|
138
|
+
params["id"] = id
|
|
139
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
140
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
141
|
+
if "id" not in params:
|
|
142
|
+
raise MissingParameterError("Parameter missing: id")
|
|
143
|
+
response, options = Api.send_request(
|
|
144
|
+
"GET",
|
|
145
|
+
"/metadata_categories/{id}".format(id=params["id"]),
|
|
146
|
+
params,
|
|
147
|
+
options,
|
|
148
|
+
)
|
|
149
|
+
return MetadataCategory(response.data, options)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
def get(id, params=None, options=None):
|
|
153
|
+
find(id, params, options)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# Parameters:
|
|
157
|
+
# name (required) - string - Name of the metadata category.
|
|
158
|
+
# default_columns - array(string) - Metadata keys that should appear as columns in the UI by default.
|
|
159
|
+
def create(params=None, options=None):
|
|
160
|
+
if not isinstance(params, dict):
|
|
161
|
+
params = {}
|
|
162
|
+
if not isinstance(options, dict):
|
|
163
|
+
options = {}
|
|
164
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
165
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
166
|
+
if "default_columns" in params and not isinstance(
|
|
167
|
+
params["default_columns"], builtins.list
|
|
168
|
+
):
|
|
169
|
+
raise InvalidParameterError(
|
|
170
|
+
"Bad parameter: default_columns must be an list"
|
|
171
|
+
)
|
|
172
|
+
if "name" not in params:
|
|
173
|
+
raise MissingParameterError("Parameter missing: name")
|
|
174
|
+
response, options = Api.send_request(
|
|
175
|
+
"POST", "/metadata_categories", params, options
|
|
176
|
+
)
|
|
177
|
+
return MetadataCategory(response.data, options)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
# Parameters:
|
|
181
|
+
# name - string - Name of the metadata category.
|
|
182
|
+
# default_columns - array(string) - Metadata keys that should appear as columns in the UI by default.
|
|
183
|
+
def update(id, params=None, options=None):
|
|
184
|
+
if not isinstance(params, dict):
|
|
185
|
+
params = {}
|
|
186
|
+
if not isinstance(options, dict):
|
|
187
|
+
options = {}
|
|
188
|
+
params["id"] = id
|
|
189
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
190
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
191
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
192
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
193
|
+
if "default_columns" in params and not isinstance(
|
|
194
|
+
params["default_columns"], builtins.list
|
|
195
|
+
):
|
|
196
|
+
raise InvalidParameterError(
|
|
197
|
+
"Bad parameter: default_columns must be an list"
|
|
198
|
+
)
|
|
199
|
+
if "id" not in params:
|
|
200
|
+
raise MissingParameterError("Parameter missing: id")
|
|
201
|
+
response, options = Api.send_request(
|
|
202
|
+
"PATCH",
|
|
203
|
+
"/metadata_categories/{id}".format(id=params["id"]),
|
|
204
|
+
params,
|
|
205
|
+
options,
|
|
206
|
+
)
|
|
207
|
+
return MetadataCategory(response.data, options)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def delete(id, params=None, options=None):
|
|
211
|
+
if not isinstance(params, dict):
|
|
212
|
+
params = {}
|
|
213
|
+
if not isinstance(options, dict):
|
|
214
|
+
options = {}
|
|
215
|
+
params["id"] = id
|
|
216
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
217
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
218
|
+
if "id" not in params:
|
|
219
|
+
raise MissingParameterError("Parameter missing: id")
|
|
220
|
+
Api.send_request(
|
|
221
|
+
"DELETE",
|
|
222
|
+
"/metadata_categories/{id}".format(id=params["id"]),
|
|
223
|
+
params,
|
|
224
|
+
options,
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
def destroy(id, params=None, options=None):
|
|
229
|
+
delete(id, params, options)
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def new(*args, **kwargs):
|
|
233
|
+
return MetadataCategory(*args, **kwargs)
|
|
@@ -14,6 +14,8 @@ class Notification:
|
|
|
14
14
|
"path": None, # string - Folder path to notify on. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
15
15
|
"group_id": None, # int64 - ID of Group to receive notifications
|
|
16
16
|
"group_name": None, # string - Group name, if a Group ID is set
|
|
17
|
+
"group_ids": None, # array(int64) - Group IDs when the notification requires multiple groups
|
|
18
|
+
"group_names": None, # array(string) - Group names when the notification requires multiple groups
|
|
17
19
|
"triggering_group_ids": None, # array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
18
20
|
"triggering_user_ids": None, # array(int64) - If set, will only notify on actions made one of the specified users
|
|
19
21
|
"trigger_by_share_recipients": None, # boolean - Notify when actions are performed by a share recipient?
|
|
@@ -236,6 +238,7 @@ def get(id, params=None, options=None):
|
|
|
236
238
|
# triggering_user_ids - array(int64) - If set, will only notify on actions made one of the specified users
|
|
237
239
|
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
238
240
|
# group_id - int64 - The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
|
241
|
+
# group_ids - string - Group IDs when the notification requires multiple groups. If sent as a string, it should be comma-delimited.
|
|
239
242
|
# path - string - Path
|
|
240
243
|
# username - string - The username of the user to notify. Provide `user_id`, `username` or `group_id`.
|
|
241
244
|
def create(params=None, options=None):
|
|
@@ -317,6 +320,8 @@ def create(params=None, options=None):
|
|
|
317
320
|
)
|
|
318
321
|
if "group_id" in params and not isinstance(params["group_id"], int):
|
|
319
322
|
raise InvalidParameterError("Bad parameter: group_id must be an int")
|
|
323
|
+
if "group_ids" in params and not isinstance(params["group_ids"], str):
|
|
324
|
+
raise InvalidParameterError("Bad parameter: group_ids must be an str")
|
|
320
325
|
if "path" in params and not isinstance(params["path"], str):
|
|
321
326
|
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
322
327
|
if "username" in params and not isinstance(params["username"], str):
|
|
@@ -32,6 +32,7 @@ class SyncRun:
|
|
|
32
32
|
"sync_id": None, # int64 - ID of the Sync this run belongs to
|
|
33
33
|
"sync_name": None, # string - Name of the Sync this run belongs to
|
|
34
34
|
"updated_at": None, # date-time - When this run was last updated
|
|
35
|
+
"live_transfers": None, # array(object) - Array of in-progress file transfers with progress data. Only present when the sync run status is in_progress.
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
def __init__(self, attributes=None, options=None):
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import builtins # noqa: F401
|
|
2
|
+
from files_sdk.api import Api # noqa: F401
|
|
3
|
+
from files_sdk.error import ( # noqa: F401
|
|
4
|
+
InvalidParameterError,
|
|
5
|
+
MissingParameterError,
|
|
6
|
+
NotImplementedError,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SyncRunLiveTransfer:
|
|
11
|
+
default_attributes = {
|
|
12
|
+
"path": None, # string - The file path being transferred. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
13
|
+
"status": None, # string - Status of this individual transfer
|
|
14
|
+
"bytes_copied": None, # int64 - Bytes transferred so far
|
|
15
|
+
"bytes_total": None, # int64 - Total bytes of the file being transferred
|
|
16
|
+
"percentage": None, # double - Transfer progress from 0.0 to 1.0
|
|
17
|
+
"eta": None, # string - Estimated time remaining (human-readable)
|
|
18
|
+
"started_at": None, # string - When this individual transfer started
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
def __init__(self, attributes=None, options=None):
|
|
22
|
+
if not isinstance(attributes, dict):
|
|
23
|
+
attributes = {}
|
|
24
|
+
if not isinstance(options, dict):
|
|
25
|
+
options = {}
|
|
26
|
+
self.set_attributes(attributes)
|
|
27
|
+
self.options = options
|
|
28
|
+
|
|
29
|
+
def set_attributes(self, attributes):
|
|
30
|
+
for (
|
|
31
|
+
attribute,
|
|
32
|
+
default_value,
|
|
33
|
+
) in SyncRunLiveTransfer.default_attributes.items():
|
|
34
|
+
value = attributes.get(attribute, default_value)
|
|
35
|
+
setattr(self, attribute, value)
|
|
36
|
+
|
|
37
|
+
def get_attributes(self):
|
|
38
|
+
attrs = {
|
|
39
|
+
k: getattr(self, k, None)
|
|
40
|
+
for k in SyncRunLiveTransfer.default_attributes
|
|
41
|
+
if getattr(self, k, None) is not None
|
|
42
|
+
}
|
|
43
|
+
return attrs
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def new(*args, **kwargs):
|
|
47
|
+
return SyncRunLiveTransfer(*args, **kwargs)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
import inspect
|
|
3
|
+
import files_sdk
|
|
4
|
+
from tests.base import TestBase
|
|
5
|
+
from files_sdk.models import MetadataCategory
|
|
6
|
+
from files_sdk import metadata_category
|
|
7
|
+
|
|
8
|
+
class MetadataCategoryTest(TestBase):
|
|
9
|
+
pass
|
|
10
|
+
# Instance Methods
|
|
11
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/metadata_categories/{id}"), "Mock path does not exist")
|
|
12
|
+
def test_update(self):
|
|
13
|
+
params = {
|
|
14
|
+
"id" : 12345,
|
|
15
|
+
}
|
|
16
|
+
metadata_category = MetadataCategory(params)
|
|
17
|
+
metadata_category.update(params)
|
|
18
|
+
|
|
19
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/metadata_categories/{id}"), "Mock path does not exist")
|
|
20
|
+
def test_delete(self):
|
|
21
|
+
params = {
|
|
22
|
+
"id" : 12345,
|
|
23
|
+
}
|
|
24
|
+
metadata_category = MetadataCategory(params)
|
|
25
|
+
metadata_category.delete(params)
|
|
26
|
+
|
|
27
|
+
# Alias of delete
|
|
28
|
+
def test_destroy(self):
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
# Static Methods
|
|
32
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/metadata_categories"), "Mock path does not exist")
|
|
33
|
+
def test_list(self):
|
|
34
|
+
resp = metadata_category.list()
|
|
35
|
+
|
|
36
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/metadata_categories/{id}"), "Mock path does not exist")
|
|
37
|
+
def test_find(self):
|
|
38
|
+
id = 12345
|
|
39
|
+
params = {
|
|
40
|
+
"id" : 12345,
|
|
41
|
+
}
|
|
42
|
+
metadata_category.find(id, params)
|
|
43
|
+
|
|
44
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/metadata_categories"), "Mock path does not exist")
|
|
45
|
+
def test_create(self):
|
|
46
|
+
params = {
|
|
47
|
+
"name" : "foo",
|
|
48
|
+
}
|
|
49
|
+
metadata_category.create(params)
|
|
50
|
+
|
|
51
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/metadata_categories/{id}"), "Mock path does not exist")
|
|
52
|
+
def test_update(self):
|
|
53
|
+
id = 12345
|
|
54
|
+
params = {
|
|
55
|
+
"id" : 12345,
|
|
56
|
+
}
|
|
57
|
+
metadata_category.update(id, params)
|
|
58
|
+
|
|
59
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/metadata_categories/{id}"), "Mock path does not exist")
|
|
60
|
+
def test_delete(self):
|
|
61
|
+
id = 12345
|
|
62
|
+
params = {
|
|
63
|
+
"id" : 12345,
|
|
64
|
+
}
|
|
65
|
+
metadata_category.delete(id, params)
|
|
66
|
+
|
|
67
|
+
if __name__ == '__main__':
|
|
68
|
+
unittest.main()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
import inspect
|
|
3
|
+
import files_sdk
|
|
4
|
+
from tests.base import TestBase
|
|
5
|
+
from files_sdk.models import SyncRunLiveTransfer
|
|
6
|
+
from files_sdk import sync_run_live_transfer
|
|
7
|
+
|
|
8
|
+
class SyncRunLiveTransferTest(TestBase):
|
|
9
|
+
pass
|
|
10
|
+
# Instance Methods
|
|
11
|
+
|
|
12
|
+
# Static Methods
|
|
13
|
+
if __name__ == '__main__':
|
|
14
|
+
unittest.main()
|
files_com-1.6.343/_VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.6.343
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{files_com-1.6.343 → files_com-1.6.345}/files_sdk/models/action_notification_export_result.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|