Files.com 1.6.394__tar.gz → 1.6.396__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.394/files_com.egg-info → files_com-1.6.396}/PKG-INFO +1 -1
- files_com-1.6.396/_VERSION +1 -0
- {files_com-1.6.394 → files_com-1.6.396/files_com.egg-info}/PKG-INFO +1 -1
- {files_com-1.6.394 → files_com-1.6.396}/files_com.egg-info/SOURCES.txt +2 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/__init__.py +3 -1
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/__init__.py +1 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/group_user.py +1 -1
- files_com-1.6.396/files_sdk/models/partner_channel.py +318 -0
- {files_com-1.6.394 → files_com-1.6.396}/pyproject.toml +1 -1
- files_com-1.6.396/tests/test_partner_channel.py +69 -0
- files_com-1.6.394/_VERSION +0 -1
- {files_com-1.6.394 → files_com-1.6.396}/LICENSE +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/README.md +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_com.egg-info/dependency_links.txt +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_com.egg-info/requires.txt +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_com.egg-info/top_level.txt +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/api.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/api_client.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/error.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/list_obj.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/account_line_item.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/action.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/action_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/action_notification_export.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/action_notification_export_result.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/agent_push_update.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/api_key.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/api_request_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/app.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/as2_incoming_message.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/as2_outgoing_message.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/as2_partner.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/as2_station.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/auto.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/automation.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/automation_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/automation_run.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/behavior.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/bundle.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/bundle_action.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/bundle_download.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/bundle_notification.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/bundle_path.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/bundle_recipient.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/bundle_registration.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/child_site_management_policy.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/clickwrap.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/custom_domain.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/desktop_configuration_profile.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/dns_record.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/email_incoming_message.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/email_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/errors.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/event_channel.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/event_delivery_attempt.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/event_record.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/event_subscription.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/event_target.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/exavault_api_request_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/expectation.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/expectation_evaluation.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/expectation_incident.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/external_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/file.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/file_action.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/file_comment.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/file_comment_reaction.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/file_migration.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/file_migration_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/file_upload_part.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/folder.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/form_field.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/form_field_set.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/ftp_action_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/gpg_key.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/group.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/history.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/history_export.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/history_export_result.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/holiday_region.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/image.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/inbound_s3_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/inbox_recipient.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/inbox_registration.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/inbox_upload.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/invoice.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/invoice_line_item.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/ip_address.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/key_lifecycle_rule.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/lock.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/message.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/message_comment.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/message_comment_reaction.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/message_reaction.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/metadata_category.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/notification.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/outbound_connection_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/partner.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/partner_site.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/partner_site_request.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/payment.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/payment_line_item.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/pending_work_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/permission.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/preview.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/project.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/public_hosting_request_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/public_ip_address.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/public_key.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/remote_mount_backend.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/remote_server.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/remote_server_credential.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/request.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/restore.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/scheduled_export.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/scim_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/session.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/settings_change.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/sftp_action_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/sftp_host_key.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/share_group.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/share_group_member.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/siem_http_destination.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/siem_http_destination_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/site.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/site_subdomain_redirect.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/sso_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/sso_strategy.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/status.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/style.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/sync.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/sync_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/sync_run.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/sync_run_live_transfer.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/usage_by_top_level_dir.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/usage_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/user.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/user_cipher_use.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/user_lifecycle_rule.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/user_request.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/user_security_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/user_sftp_client_use.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/web_dav_action_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/webhook_test.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/workspace.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/models/zip_list_entry.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/path_util.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/files_sdk/util.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/setup.cfg +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_account_line_item.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_action.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_action_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_action_notification_export.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_action_notification_export_result.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_agent_push_update.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_api_errors.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_api_key.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_api_request_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_app.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_as2_incoming_message.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_as2_outgoing_message.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_as2_partner.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_as2_station.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_auto.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_automation.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_automation_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_automation_run.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_bandwidth_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_behavior.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_bundle.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_bundle_action.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_bundle_download.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_bundle_notification.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_bundle_path.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_bundle_recipient.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_bundle_registration.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_child_site_management_policy.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_clickwrap.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_connection_adapter.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_custom_domain.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_decimal_contract.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_desktop_configuration_profile.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_dns_record.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_email_incoming_message.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_email_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_errors.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_event_channel.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_event_delivery_attempt.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_event_record.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_event_subscription.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_event_target.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_exavault_api_request_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_expectation.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_expectation_evaluation.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_expectation_incident.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_external_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_file.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_file_action.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_file_comment.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_file_comment_reaction.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_file_migration.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_file_migration_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_file_upload_part.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_folder.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_form_field.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_form_field_set.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_ftp_action_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_gpg_key.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_group.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_group_user.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_history.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_history_export.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_history_export_result.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_holiday_region.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_image.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_inbound_s3_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_inbox_recipient.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_inbox_registration.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_inbox_upload.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_invoice.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_invoice_line_item.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_ip_address.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_key_lifecycle_rule.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_lock.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_message.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_message_comment.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_message_comment_reaction.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_message_reaction.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_metadata_category.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_notification.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_outbound_connection_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_partner.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_partner_site.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_partner_site_request.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_path_util.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_payment.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_payment_line_item.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_pending_work_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_permission.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_preview.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_project.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_public_hosting_request_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_public_ip_address.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_public_key.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_remote_mount_backend.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_remote_server.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_remote_server_configuration_file.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_remote_server_credential.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_request.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_restore.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_scheduled_export.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_scim_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_session.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_settings_change.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_sftp_action_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_sftp_host_key.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_share_group.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_share_group_member.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_siem_http_destination.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_siem_http_destination_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_site.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_site_subdomain_redirect.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_sso_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_sso_strategy.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_status.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_style.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_sync.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_sync_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_sync_run.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_sync_run_live_transfer.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_usage_by_top_level_dir.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_usage_daily_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_usage_snapshot.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_user.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_user_cipher_use.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_user_lifecycle_rule.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_user_request.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_user_security_event.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_user_sftp_client_use.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_web_dav_action_log.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_webhook_test.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_workspace.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_workspace_id.py +0 -0
- {files_com-1.6.394 → files_com-1.6.396}/tests/test_zip_list_entry.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.6.396
|
|
@@ -96,6 +96,7 @@ files_sdk/models/metadata_category.py
|
|
|
96
96
|
files_sdk/models/notification.py
|
|
97
97
|
files_sdk/models/outbound_connection_log.py
|
|
98
98
|
files_sdk/models/partner.py
|
|
99
|
+
files_sdk/models/partner_channel.py
|
|
99
100
|
files_sdk/models/partner_site.py
|
|
100
101
|
files_sdk/models/partner_site_request.py
|
|
101
102
|
files_sdk/models/payment.py
|
|
@@ -231,6 +232,7 @@ tests/test_metadata_category.py
|
|
|
231
232
|
tests/test_notification.py
|
|
232
233
|
tests/test_outbound_connection_log.py
|
|
233
234
|
tests/test_partner.py
|
|
235
|
+
tests/test_partner_channel.py
|
|
234
236
|
tests/test_partner_site.py
|
|
235
237
|
tests/test_partner_site_request.py
|
|
236
238
|
tests/test_path_util.py
|
|
@@ -79,6 +79,7 @@ import files_sdk.models.metadata_category as metadata_category
|
|
|
79
79
|
import files_sdk.models.notification as notification
|
|
80
80
|
import files_sdk.models.outbound_connection_log as outbound_connection_log
|
|
81
81
|
import files_sdk.models.partner as partner
|
|
82
|
+
import files_sdk.models.partner_channel as partner_channel
|
|
82
83
|
import files_sdk.models.partner_site as partner_site
|
|
83
84
|
import files_sdk.models.partner_site_request as partner_site_request
|
|
84
85
|
import files_sdk.models.payment as payment
|
|
@@ -220,6 +221,7 @@ from files_sdk.models.metadata_category import MetadataCategory
|
|
|
220
221
|
from files_sdk.models.notification import Notification
|
|
221
222
|
from files_sdk.models.outbound_connection_log import OutboundConnectionLog
|
|
222
223
|
from files_sdk.models.partner import Partner
|
|
224
|
+
from files_sdk.models.partner_channel import PartnerChannel
|
|
223
225
|
from files_sdk.models.partner_site import PartnerSite
|
|
224
226
|
from files_sdk.models.partner_site_request import PartnerSiteRequest
|
|
225
227
|
from files_sdk.models.payment import Payment
|
|
@@ -288,7 +290,7 @@ source_ip = None
|
|
|
288
290
|
workspace_id = None
|
|
289
291
|
base_url = "https://app.files.com"
|
|
290
292
|
base_path = "api/rest/v1"
|
|
291
|
-
version = "1.6.
|
|
293
|
+
version = "1.6.396"
|
|
292
294
|
|
|
293
295
|
__version__ = version
|
|
294
296
|
|
|
@@ -86,6 +86,7 @@ from files_sdk.models.metadata_category import MetadataCategory
|
|
|
86
86
|
from files_sdk.models.notification import Notification
|
|
87
87
|
from files_sdk.models.outbound_connection_log import OutboundConnectionLog
|
|
88
88
|
from files_sdk.models.partner import Partner
|
|
89
|
+
from files_sdk.models.partner_channel import PartnerChannel
|
|
89
90
|
from files_sdk.models.partner_site import PartnerSite
|
|
90
91
|
from files_sdk.models.partner_site_request import PartnerSiteRequest
|
|
91
92
|
from files_sdk.models.payment import Payment
|
|
@@ -14,7 +14,7 @@ class GroupUser:
|
|
|
14
14
|
"group_id": None, # int64 - Group ID
|
|
15
15
|
"user_id": None, # int64 - User ID
|
|
16
16
|
"admin": None, # boolean - Is this user an administrator of this group?
|
|
17
|
-
"
|
|
17
|
+
"username": None, # string - Username of the user
|
|
18
18
|
"id": None, # int64 - Group User ID.
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -0,0 +1,318 @@
|
|
|
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 PartnerChannel:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - The unique ID of the Partner Channel.
|
|
14
|
+
"workspace_id": None, # int64 - ID of the Workspace associated with this Partner Channel.
|
|
15
|
+
"partner_id": None, # int64 - ID of the Partner this Channel belongs to.
|
|
16
|
+
"path": None, # string - Channel path relative to the Partner root folder. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
17
|
+
"to_partner_folder_name": None, # string - Optional Channel-level to-Partner folder name override.
|
|
18
|
+
"from_partner_folder_name": None, # string - Optional Channel-level from-Partner folder name override.
|
|
19
|
+
"from_partner_route_path": None, # string - Optional route path for files uploaded by the Partner.
|
|
20
|
+
"to_partner_route_path": None, # string - Optional route path for files delivered to the Partner.
|
|
21
|
+
"effective_to_partner_folder_name": None, # string - Resolved to-Partner folder name after Channel override and default.
|
|
22
|
+
"effective_from_partner_folder_name": None, # string - Resolved from-Partner folder name after Channel override and default.
|
|
23
|
+
"channel_path": None, # string - Resolved Channel folder path.
|
|
24
|
+
"to_partner_folder_path": None, # string - Resolved to-Partner folder path.
|
|
25
|
+
"from_partner_folder_path": None, # string - Resolved from-Partner folder path.
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, attributes=None, options=None):
|
|
29
|
+
if not isinstance(attributes, dict):
|
|
30
|
+
attributes = {}
|
|
31
|
+
if not isinstance(options, dict):
|
|
32
|
+
options = {}
|
|
33
|
+
self.set_attributes(attributes)
|
|
34
|
+
self.options = options
|
|
35
|
+
|
|
36
|
+
def set_attributes(self, attributes):
|
|
37
|
+
for (
|
|
38
|
+
attribute,
|
|
39
|
+
default_value,
|
|
40
|
+
) in PartnerChannel.default_attributes.items():
|
|
41
|
+
value = attributes.get(attribute, default_value)
|
|
42
|
+
setattr(self, attribute, value)
|
|
43
|
+
|
|
44
|
+
def get_attributes(self):
|
|
45
|
+
attrs = {
|
|
46
|
+
k: getattr(self, k, None)
|
|
47
|
+
for k in PartnerChannel.default_attributes
|
|
48
|
+
if getattr(self, k, None) is not None
|
|
49
|
+
}
|
|
50
|
+
return attrs
|
|
51
|
+
|
|
52
|
+
# Parameters:
|
|
53
|
+
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
54
|
+
# from_partner_route_path - string - Optional route path for files uploaded by the Partner.
|
|
55
|
+
# to_partner_folder_name - string - Optional Channel-level to-Partner folder name override.
|
|
56
|
+
# to_partner_route_path - string - Optional route path for files delivered to the Partner.
|
|
57
|
+
# path - string - Channel path relative to the Partner root folder.
|
|
58
|
+
def update(self, params=None):
|
|
59
|
+
if not isinstance(params, dict):
|
|
60
|
+
params = {}
|
|
61
|
+
|
|
62
|
+
if hasattr(self, "id") and self.id:
|
|
63
|
+
params["id"] = self.id
|
|
64
|
+
else:
|
|
65
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
66
|
+
if "id" not in params:
|
|
67
|
+
raise MissingParameterError("Parameter missing: id")
|
|
68
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
69
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
70
|
+
if "from_partner_folder_name" in params and not isinstance(
|
|
71
|
+
params["from_partner_folder_name"], str
|
|
72
|
+
):
|
|
73
|
+
raise InvalidParameterError(
|
|
74
|
+
"Bad parameter: from_partner_folder_name must be an str"
|
|
75
|
+
)
|
|
76
|
+
if "from_partner_route_path" in params and not isinstance(
|
|
77
|
+
params["from_partner_route_path"], str
|
|
78
|
+
):
|
|
79
|
+
raise InvalidParameterError(
|
|
80
|
+
"Bad parameter: from_partner_route_path must be an str"
|
|
81
|
+
)
|
|
82
|
+
if "to_partner_folder_name" in params and not isinstance(
|
|
83
|
+
params["to_partner_folder_name"], str
|
|
84
|
+
):
|
|
85
|
+
raise InvalidParameterError(
|
|
86
|
+
"Bad parameter: to_partner_folder_name must be an str"
|
|
87
|
+
)
|
|
88
|
+
if "to_partner_route_path" in params and not isinstance(
|
|
89
|
+
params["to_partner_route_path"], str
|
|
90
|
+
):
|
|
91
|
+
raise InvalidParameterError(
|
|
92
|
+
"Bad parameter: to_partner_route_path must be an str"
|
|
93
|
+
)
|
|
94
|
+
if "path" in params and not isinstance(params["path"], str):
|
|
95
|
+
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
96
|
+
response, _options = Api.send_request(
|
|
97
|
+
"PATCH",
|
|
98
|
+
"/partner_channels/{id}".format(id=params["id"]),
|
|
99
|
+
params,
|
|
100
|
+
self.options,
|
|
101
|
+
)
|
|
102
|
+
return response.data
|
|
103
|
+
|
|
104
|
+
def delete(self, params=None):
|
|
105
|
+
if not isinstance(params, dict):
|
|
106
|
+
params = {}
|
|
107
|
+
|
|
108
|
+
if hasattr(self, "id") and self.id:
|
|
109
|
+
params["id"] = self.id
|
|
110
|
+
else:
|
|
111
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
112
|
+
if "id" not in params:
|
|
113
|
+
raise MissingParameterError("Parameter missing: id")
|
|
114
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
115
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
116
|
+
Api.send_request(
|
|
117
|
+
"DELETE",
|
|
118
|
+
"/partner_channels/{id}".format(id=params["id"]),
|
|
119
|
+
params,
|
|
120
|
+
self.options,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
def destroy(self, params=None):
|
|
124
|
+
self.delete(params)
|
|
125
|
+
|
|
126
|
+
def save(self):
|
|
127
|
+
if hasattr(self, "id") and self.id:
|
|
128
|
+
new_obj = self.update(self.get_attributes())
|
|
129
|
+
self.set_attributes(new_obj.get_attributes())
|
|
130
|
+
return True
|
|
131
|
+
else:
|
|
132
|
+
new_obj = create(self.get_attributes(), self.options)
|
|
133
|
+
self.set_attributes(new_obj.get_attributes())
|
|
134
|
+
return True
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
# Parameters:
|
|
138
|
+
# 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.
|
|
139
|
+
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
140
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `path` or `partner_id`.
|
|
141
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `partner_id` and `workspace_id`. Valid field combinations are `[ workspace_id, partner_id ]`.
|
|
142
|
+
def list(params=None, options=None):
|
|
143
|
+
if not isinstance(params, dict):
|
|
144
|
+
params = {}
|
|
145
|
+
if not isinstance(options, dict):
|
|
146
|
+
options = {}
|
|
147
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
148
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
149
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
150
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
151
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
152
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
153
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
154
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
155
|
+
return ListObj(PartnerChannel, "GET", "/partner_channels", params, options)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def all(params=None, options=None):
|
|
159
|
+
list(params, options)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
# Parameters:
|
|
163
|
+
# id (required) - int64 - Partner Channel ID.
|
|
164
|
+
def find(id, params=None, options=None):
|
|
165
|
+
if not isinstance(params, dict):
|
|
166
|
+
params = {}
|
|
167
|
+
if not isinstance(options, dict):
|
|
168
|
+
options = {}
|
|
169
|
+
params["id"] = id
|
|
170
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
171
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
172
|
+
if "id" not in params:
|
|
173
|
+
raise MissingParameterError("Parameter missing: id")
|
|
174
|
+
response, options = Api.send_request(
|
|
175
|
+
"GET",
|
|
176
|
+
"/partner_channels/{id}".format(id=params["id"]),
|
|
177
|
+
params,
|
|
178
|
+
options,
|
|
179
|
+
)
|
|
180
|
+
return PartnerChannel(response.data, options)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def get(id, params=None, options=None):
|
|
184
|
+
find(id, params, options)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
# Parameters:
|
|
188
|
+
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
189
|
+
# from_partner_route_path - string - Optional route path for files uploaded by the Partner.
|
|
190
|
+
# to_partner_folder_name - string - Optional Channel-level to-Partner folder name override.
|
|
191
|
+
# to_partner_route_path - string - Optional route path for files delivered to the Partner.
|
|
192
|
+
# partner_id (required) - int64 - ID of the Partner this Channel belongs to.
|
|
193
|
+
# path (required) - string - Channel path relative to the Partner root folder.
|
|
194
|
+
# workspace_id - int64 - ID of the Workspace associated with this Partner Channel.
|
|
195
|
+
def create(params=None, options=None):
|
|
196
|
+
if not isinstance(params, dict):
|
|
197
|
+
params = {}
|
|
198
|
+
if not isinstance(options, dict):
|
|
199
|
+
options = {}
|
|
200
|
+
if "from_partner_folder_name" in params and not isinstance(
|
|
201
|
+
params["from_partner_folder_name"], str
|
|
202
|
+
):
|
|
203
|
+
raise InvalidParameterError(
|
|
204
|
+
"Bad parameter: from_partner_folder_name must be an str"
|
|
205
|
+
)
|
|
206
|
+
if "from_partner_route_path" in params and not isinstance(
|
|
207
|
+
params["from_partner_route_path"], str
|
|
208
|
+
):
|
|
209
|
+
raise InvalidParameterError(
|
|
210
|
+
"Bad parameter: from_partner_route_path must be an str"
|
|
211
|
+
)
|
|
212
|
+
if "to_partner_folder_name" in params and not isinstance(
|
|
213
|
+
params["to_partner_folder_name"], str
|
|
214
|
+
):
|
|
215
|
+
raise InvalidParameterError(
|
|
216
|
+
"Bad parameter: to_partner_folder_name must be an str"
|
|
217
|
+
)
|
|
218
|
+
if "to_partner_route_path" in params and not isinstance(
|
|
219
|
+
params["to_partner_route_path"], str
|
|
220
|
+
):
|
|
221
|
+
raise InvalidParameterError(
|
|
222
|
+
"Bad parameter: to_partner_route_path must be an str"
|
|
223
|
+
)
|
|
224
|
+
if "partner_id" in params and not isinstance(params["partner_id"], int):
|
|
225
|
+
raise InvalidParameterError("Bad parameter: partner_id must be an int")
|
|
226
|
+
if "path" in params and not isinstance(params["path"], str):
|
|
227
|
+
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
228
|
+
if "workspace_id" in params and not isinstance(
|
|
229
|
+
params["workspace_id"], int
|
|
230
|
+
):
|
|
231
|
+
raise InvalidParameterError(
|
|
232
|
+
"Bad parameter: workspace_id must be an int"
|
|
233
|
+
)
|
|
234
|
+
if "partner_id" not in params:
|
|
235
|
+
raise MissingParameterError("Parameter missing: partner_id")
|
|
236
|
+
if "path" not in params:
|
|
237
|
+
raise MissingParameterError("Parameter missing: path")
|
|
238
|
+
response, options = Api.send_request(
|
|
239
|
+
"POST", "/partner_channels", params, options
|
|
240
|
+
)
|
|
241
|
+
return PartnerChannel(response.data, options)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
# Parameters:
|
|
245
|
+
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
246
|
+
# from_partner_route_path - string - Optional route path for files uploaded by the Partner.
|
|
247
|
+
# to_partner_folder_name - string - Optional Channel-level to-Partner folder name override.
|
|
248
|
+
# to_partner_route_path - string - Optional route path for files delivered to the Partner.
|
|
249
|
+
# path - string - Channel path relative to the Partner root folder.
|
|
250
|
+
def update(id, params=None, options=None):
|
|
251
|
+
if not isinstance(params, dict):
|
|
252
|
+
params = {}
|
|
253
|
+
if not isinstance(options, dict):
|
|
254
|
+
options = {}
|
|
255
|
+
params["id"] = id
|
|
256
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
257
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
258
|
+
if "from_partner_folder_name" in params and not isinstance(
|
|
259
|
+
params["from_partner_folder_name"], str
|
|
260
|
+
):
|
|
261
|
+
raise InvalidParameterError(
|
|
262
|
+
"Bad parameter: from_partner_folder_name must be an str"
|
|
263
|
+
)
|
|
264
|
+
if "from_partner_route_path" in params and not isinstance(
|
|
265
|
+
params["from_partner_route_path"], str
|
|
266
|
+
):
|
|
267
|
+
raise InvalidParameterError(
|
|
268
|
+
"Bad parameter: from_partner_route_path must be an str"
|
|
269
|
+
)
|
|
270
|
+
if "to_partner_folder_name" in params and not isinstance(
|
|
271
|
+
params["to_partner_folder_name"], str
|
|
272
|
+
):
|
|
273
|
+
raise InvalidParameterError(
|
|
274
|
+
"Bad parameter: to_partner_folder_name must be an str"
|
|
275
|
+
)
|
|
276
|
+
if "to_partner_route_path" in params and not isinstance(
|
|
277
|
+
params["to_partner_route_path"], str
|
|
278
|
+
):
|
|
279
|
+
raise InvalidParameterError(
|
|
280
|
+
"Bad parameter: to_partner_route_path must be an str"
|
|
281
|
+
)
|
|
282
|
+
if "path" in params and not isinstance(params["path"], str):
|
|
283
|
+
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
284
|
+
if "id" not in params:
|
|
285
|
+
raise MissingParameterError("Parameter missing: id")
|
|
286
|
+
response, options = Api.send_request(
|
|
287
|
+
"PATCH",
|
|
288
|
+
"/partner_channels/{id}".format(id=params["id"]),
|
|
289
|
+
params,
|
|
290
|
+
options,
|
|
291
|
+
)
|
|
292
|
+
return PartnerChannel(response.data, options)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
def delete(id, params=None, options=None):
|
|
296
|
+
if not isinstance(params, dict):
|
|
297
|
+
params = {}
|
|
298
|
+
if not isinstance(options, dict):
|
|
299
|
+
options = {}
|
|
300
|
+
params["id"] = id
|
|
301
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
302
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
303
|
+
if "id" not in params:
|
|
304
|
+
raise MissingParameterError("Parameter missing: id")
|
|
305
|
+
Api.send_request(
|
|
306
|
+
"DELETE",
|
|
307
|
+
"/partner_channels/{id}".format(id=params["id"]),
|
|
308
|
+
params,
|
|
309
|
+
options,
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
def destroy(id, params=None, options=None):
|
|
314
|
+
delete(id, params, options)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
def new(*args, **kwargs):
|
|
318
|
+
return PartnerChannel(*args, **kwargs)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
import inspect
|
|
3
|
+
import files_sdk
|
|
4
|
+
from tests.base import TestBase
|
|
5
|
+
from files_sdk.models import PartnerChannel
|
|
6
|
+
from files_sdk import partner_channel
|
|
7
|
+
|
|
8
|
+
class PartnerChannelTest(TestBase):
|
|
9
|
+
pass
|
|
10
|
+
# Instance Methods
|
|
11
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/partner_channels/{id}"), "Mock path does not exist")
|
|
12
|
+
def test_update(self):
|
|
13
|
+
params = {
|
|
14
|
+
"id" : 12345,
|
|
15
|
+
}
|
|
16
|
+
partner_channel = PartnerChannel(params)
|
|
17
|
+
partner_channel.update(params)
|
|
18
|
+
|
|
19
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/partner_channels/{id}"), "Mock path does not exist")
|
|
20
|
+
def test_delete(self):
|
|
21
|
+
params = {
|
|
22
|
+
"id" : 12345,
|
|
23
|
+
}
|
|
24
|
+
partner_channel = PartnerChannel(params)
|
|
25
|
+
partner_channel.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", "/partner_channels"), "Mock path does not exist")
|
|
33
|
+
def test_list(self):
|
|
34
|
+
resp = partner_channel.list()
|
|
35
|
+
|
|
36
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/partner_channels/{id}"), "Mock path does not exist")
|
|
37
|
+
def test_find(self):
|
|
38
|
+
id = 12345
|
|
39
|
+
params = {
|
|
40
|
+
"id" : 12345,
|
|
41
|
+
}
|
|
42
|
+
partner_channel.find(id, params)
|
|
43
|
+
|
|
44
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/partner_channels"), "Mock path does not exist")
|
|
45
|
+
def test_create(self):
|
|
46
|
+
params = {
|
|
47
|
+
"partner_id" : 12345,
|
|
48
|
+
"path" : "foo",
|
|
49
|
+
}
|
|
50
|
+
partner_channel.create(params)
|
|
51
|
+
|
|
52
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/partner_channels/{id}"), "Mock path does not exist")
|
|
53
|
+
def test_update(self):
|
|
54
|
+
id = 12345
|
|
55
|
+
params = {
|
|
56
|
+
"id" : 12345,
|
|
57
|
+
}
|
|
58
|
+
partner_channel.update(id, params)
|
|
59
|
+
|
|
60
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/partner_channels/{id}"), "Mock path does not exist")
|
|
61
|
+
def test_delete(self):
|
|
62
|
+
id = 12345
|
|
63
|
+
params = {
|
|
64
|
+
"id" : 12345,
|
|
65
|
+
}
|
|
66
|
+
partner_channel.delete(id, params)
|
|
67
|
+
|
|
68
|
+
if __name__ == '__main__':
|
|
69
|
+
unittest.main()
|
files_com-1.6.394/_VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.6.394
|
|
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.394 → files_com-1.6.396}/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
|
|
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
|