Files.com 1.6.387__tar.gz → 1.6.389__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.387/files_com.egg-info → files_com-1.6.389}/PKG-INFO +1 -1
- files_com-1.6.389/_VERSION +1 -0
- {files_com-1.6.387 → files_com-1.6.389/files_com.egg-info}/PKG-INFO +1 -1
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/__init__.py +1 -1
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/bundle.py +3 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/event_channel.py +24 -2
- files_com-1.6.389/files_sdk/models/partner_site.py +80 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/partner_site_request.py +36 -73
- {files_com-1.6.387 → files_com-1.6.389}/pyproject.toml +1 -1
- files_com-1.6.389/tests/test_partner_site.py +33 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_partner_site_request.py +7 -25
- files_com-1.6.387/_VERSION +0 -1
- files_com-1.6.387/files_sdk/models/partner_site.py +0 -77
- files_com-1.6.387/tests/test_partner_site.py +0 -22
- {files_com-1.6.387 → files_com-1.6.389}/LICENSE +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/README.md +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_com.egg-info/SOURCES.txt +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_com.egg-info/dependency_links.txt +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_com.egg-info/requires.txt +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_com.egg-info/top_level.txt +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/api.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/api_client.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/error.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/list_obj.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/__init__.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/account_line_item.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/action.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/action_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/action_notification_export.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/action_notification_export_result.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/agent_push_update.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/api_key.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/api_request_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/app.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/as2_incoming_message.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/as2_outgoing_message.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/as2_partner.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/as2_station.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/auto.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/automation.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/automation_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/automation_run.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/behavior.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/bundle_action.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/bundle_download.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/bundle_notification.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/bundle_path.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/bundle_recipient.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/bundle_registration.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/child_site_management_policy.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/clickwrap.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/desktop_configuration_profile.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/dns_record.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/email_incoming_message.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/email_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/errors.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/event_delivery_attempt.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/event_record.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/event_subscription.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/event_target.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/exavault_api_request_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/expectation.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/expectation_evaluation.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/expectation_incident.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/external_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/file.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/file_action.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/file_comment.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/file_comment_reaction.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/file_migration.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/file_migration_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/file_upload_part.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/folder.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/form_field.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/form_field_set.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/ftp_action_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/gpg_key.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/group.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/group_user.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/history.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/history_export.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/history_export_result.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/holiday_region.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/image.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/inbound_s3_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/inbox_recipient.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/inbox_registration.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/inbox_upload.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/invoice.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/invoice_line_item.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/ip_address.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/key_lifecycle_rule.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/lock.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/message.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/message_comment.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/message_comment_reaction.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/message_reaction.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/metadata_category.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/notification.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/outbound_connection_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/partner.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/payment.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/payment_line_item.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/pending_work_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/permission.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/preview.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/project.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/public_hosting_request_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/public_ip_address.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/public_key.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/remote_mount_backend.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/remote_server.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/remote_server_credential.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/request.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/restore.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/scheduled_export.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/scim_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/session.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/settings_change.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/sftp_action_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/sftp_host_key.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/share_group.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/share_group_member.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/siem_http_destination.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/siem_http_destination_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/site.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/site_subdomain_redirect.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/sso_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/sso_strategy.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/status.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/style.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/sync.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/sync_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/sync_run.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/sync_run_live_transfer.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/usage_by_top_level_dir.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/usage_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/user.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/user_cipher_use.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/user_lifecycle_rule.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/user_request.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/user_security_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/user_sftp_client_use.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/web_dav_action_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/webhook_test.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/workspace.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/models/zip_list_entry.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/path_util.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/files_sdk/util.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/setup.cfg +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_account_line_item.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_action.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_action_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_action_notification_export.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_action_notification_export_result.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_agent_push_update.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_api_errors.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_api_key.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_api_request_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_app.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_as2_incoming_message.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_as2_outgoing_message.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_as2_partner.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_as2_station.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_auto.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_automation.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_automation_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_automation_run.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_bandwidth_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_behavior.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_bundle.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_bundle_action.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_bundle_download.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_bundle_notification.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_bundle_path.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_bundle_recipient.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_bundle_registration.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_child_site_management_policy.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_clickwrap.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_connection_adapter.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_decimal_contract.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_desktop_configuration_profile.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_dns_record.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_email_incoming_message.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_email_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_errors.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_event_channel.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_event_delivery_attempt.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_event_record.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_event_subscription.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_event_target.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_exavault_api_request_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_expectation.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_expectation_evaluation.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_expectation_incident.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_external_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_file.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_file_action.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_file_comment.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_file_comment_reaction.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_file_migration.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_file_migration_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_file_upload_part.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_folder.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_form_field.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_form_field_set.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_ftp_action_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_gpg_key.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_group.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_group_user.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_history.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_history_export.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_history_export_result.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_holiday_region.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_image.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_inbound_s3_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_inbox_recipient.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_inbox_registration.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_inbox_upload.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_invoice.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_invoice_line_item.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_ip_address.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_key_lifecycle_rule.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_lock.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_message.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_message_comment.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_message_comment_reaction.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_message_reaction.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_metadata_category.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_notification.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_outbound_connection_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_partner.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_path_util.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_payment.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_payment_line_item.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_pending_work_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_permission.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_preview.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_project.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_public_hosting_request_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_public_ip_address.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_public_key.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_remote_mount_backend.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_remote_server.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_remote_server_configuration_file.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_remote_server_credential.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_request.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_restore.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_scheduled_export.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_scim_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_session.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_settings_change.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_sftp_action_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_sftp_host_key.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_share_group.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_share_group_member.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_siem_http_destination.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_siem_http_destination_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_site.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_site_subdomain_redirect.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_sso_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_sso_strategy.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_status.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_style.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_sync.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_sync_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_sync_run.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_sync_run_live_transfer.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_usage_by_top_level_dir.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_usage_daily_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_usage_snapshot.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_user.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_user_cipher_use.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_user_lifecycle_rule.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_user_request.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_user_security_event.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_user_sftp_client_use.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_web_dav_action_log.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_webhook_test.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_workspace.py +0 -0
- {files_com-1.6.387 → files_com-1.6.389}/tests/test_zip_list_entry.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.6.389
|
|
@@ -342,6 +342,7 @@ def all(params=None, options=None):
|
|
|
342
342
|
|
|
343
343
|
# Parameters:
|
|
344
344
|
# id (required) - int64 - Bundle ID.
|
|
345
|
+
# deleted - boolean - If true, show a deleted Share Link.
|
|
345
346
|
def find(id, params=None, options=None):
|
|
346
347
|
if not isinstance(params, dict):
|
|
347
348
|
params = {}
|
|
@@ -350,6 +351,8 @@ def find(id, params=None, options=None):
|
|
|
350
351
|
params["id"] = id
|
|
351
352
|
if "id" in params and not isinstance(params["id"], int):
|
|
352
353
|
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
354
|
+
if "deleted" in params and not isinstance(params["deleted"], bool):
|
|
355
|
+
raise InvalidParameterError("Bad parameter: deleted must be an bool")
|
|
353
356
|
if "id" not in params:
|
|
354
357
|
raise MissingParameterError("Parameter missing: id")
|
|
355
358
|
response, options = Api.send_request(
|
|
@@ -12,6 +12,7 @@ class EventChannel:
|
|
|
12
12
|
default_attributes = {
|
|
13
13
|
"id": None, # int64 - Event Channel ID
|
|
14
14
|
"name": None, # string - Event Channel name.
|
|
15
|
+
"workspace_id": None, # int64 - Workspace ID. 0 means the default workspace.
|
|
15
16
|
"description": None, # string - Event Channel description.
|
|
16
17
|
"enabled": None, # boolean - Whether this Event Channel can dispatch events.
|
|
17
18
|
"default_channel": None, # boolean - Whether this Event Channel is the default destination for newly published events.
|
|
@@ -45,6 +46,7 @@ class EventChannel:
|
|
|
45
46
|
|
|
46
47
|
# Parameters:
|
|
47
48
|
# name - string - Event Channel name.
|
|
49
|
+
# workspace_id - int64 - Workspace ID. 0 means the default workspace.
|
|
48
50
|
# description - string - Event Channel description.
|
|
49
51
|
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
50
52
|
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
@@ -62,6 +64,12 @@ class EventChannel:
|
|
|
62
64
|
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
63
65
|
if "name" in params and not isinstance(params["name"], str):
|
|
64
66
|
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
67
|
+
if "workspace_id" in params and not isinstance(
|
|
68
|
+
params["workspace_id"], int
|
|
69
|
+
):
|
|
70
|
+
raise InvalidParameterError(
|
|
71
|
+
"Bad parameter: workspace_id must be an int"
|
|
72
|
+
)
|
|
65
73
|
if "description" in params and not isinstance(
|
|
66
74
|
params["description"], str
|
|
67
75
|
):
|
|
@@ -112,8 +120,8 @@ class EventChannel:
|
|
|
112
120
|
# Parameters:
|
|
113
121
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
114
122
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
115
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled` or `
|
|
116
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled` and `default_channel`.
|
|
123
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled`, `default_channel` or `workspace_id`.
|
|
124
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`, `default_channel` or `workspace_id`. Valid field combinations are `[ workspace_id, enabled ]` and `[ workspace_id, default_channel ]`.
|
|
117
125
|
def list(params=None, options=None):
|
|
118
126
|
if not isinstance(params, dict):
|
|
119
127
|
params = {}
|
|
@@ -158,6 +166,7 @@ def get(id, params=None, options=None):
|
|
|
158
166
|
|
|
159
167
|
# Parameters:
|
|
160
168
|
# name (required) - string - Event Channel name.
|
|
169
|
+
# workspace_id - int64 - Workspace ID. 0 means the default workspace.
|
|
161
170
|
# description - string - Event Channel description.
|
|
162
171
|
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
163
172
|
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
@@ -168,6 +177,12 @@ def create(params=None, options=None):
|
|
|
168
177
|
options = {}
|
|
169
178
|
if "name" in params and not isinstance(params["name"], str):
|
|
170
179
|
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
180
|
+
if "workspace_id" in params and not isinstance(
|
|
181
|
+
params["workspace_id"], int
|
|
182
|
+
):
|
|
183
|
+
raise InvalidParameterError(
|
|
184
|
+
"Bad parameter: workspace_id must be an int"
|
|
185
|
+
)
|
|
171
186
|
if "description" in params and not isinstance(params["description"], str):
|
|
172
187
|
raise InvalidParameterError(
|
|
173
188
|
"Bad parameter: description must be an str"
|
|
@@ -190,6 +205,7 @@ def create(params=None, options=None):
|
|
|
190
205
|
|
|
191
206
|
# Parameters:
|
|
192
207
|
# name - string - Event Channel name.
|
|
208
|
+
# workspace_id - int64 - Workspace ID. 0 means the default workspace.
|
|
193
209
|
# description - string - Event Channel description.
|
|
194
210
|
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
195
211
|
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
@@ -203,6 +219,12 @@ def update(id, params=None, options=None):
|
|
|
203
219
|
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
204
220
|
if "name" in params and not isinstance(params["name"], str):
|
|
205
221
|
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
222
|
+
if "workspace_id" in params and not isinstance(
|
|
223
|
+
params["workspace_id"], int
|
|
224
|
+
):
|
|
225
|
+
raise InvalidParameterError(
|
|
226
|
+
"Bad parameter: workspace_id must be an int"
|
|
227
|
+
)
|
|
206
228
|
if "description" in params and not isinstance(params["description"], str):
|
|
207
229
|
raise InvalidParameterError(
|
|
208
230
|
"Bad parameter: description must be an str"
|
|
@@ -0,0 +1,80 @@
|
|
|
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 PartnerSite:
|
|
11
|
+
default_attributes = {}
|
|
12
|
+
|
|
13
|
+
def __init__(self, attributes=None, options=None):
|
|
14
|
+
if not isinstance(attributes, dict):
|
|
15
|
+
attributes = {}
|
|
16
|
+
if not isinstance(options, dict):
|
|
17
|
+
options = {}
|
|
18
|
+
self.set_attributes(attributes)
|
|
19
|
+
self.options = options
|
|
20
|
+
|
|
21
|
+
def set_attributes(self, attributes):
|
|
22
|
+
for attribute, default_value in PartnerSite.default_attributes.items():
|
|
23
|
+
value = attributes.get(attribute, default_value)
|
|
24
|
+
setattr(self, attribute, value)
|
|
25
|
+
|
|
26
|
+
def get_attributes(self):
|
|
27
|
+
attrs = {
|
|
28
|
+
k: getattr(self, k, None)
|
|
29
|
+
for k in PartnerSite.default_attributes
|
|
30
|
+
if getattr(self, k, None) is not None
|
|
31
|
+
}
|
|
32
|
+
return attrs
|
|
33
|
+
|
|
34
|
+
def delete(self, params=None):
|
|
35
|
+
if not isinstance(params, dict):
|
|
36
|
+
params = {}
|
|
37
|
+
|
|
38
|
+
if hasattr(self, "id") and self.id:
|
|
39
|
+
params["id"] = self.id
|
|
40
|
+
else:
|
|
41
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
42
|
+
if "id" not in params:
|
|
43
|
+
raise MissingParameterError("Parameter missing: id")
|
|
44
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
45
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
46
|
+
Api.send_request(
|
|
47
|
+
"DELETE",
|
|
48
|
+
"/partner_sites/{id}".format(id=params["id"]),
|
|
49
|
+
params,
|
|
50
|
+
self.options,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
def destroy(self, params=None):
|
|
54
|
+
self.delete(params)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def delete(id, params=None, options=None):
|
|
58
|
+
if not isinstance(params, dict):
|
|
59
|
+
params = {}
|
|
60
|
+
if not isinstance(options, dict):
|
|
61
|
+
options = {}
|
|
62
|
+
params["id"] = id
|
|
63
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
64
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
65
|
+
if "id" not in params:
|
|
66
|
+
raise MissingParameterError("Parameter missing: id")
|
|
67
|
+
Api.send_request(
|
|
68
|
+
"DELETE",
|
|
69
|
+
"/partner_sites/{id}".format(id=params["id"]),
|
|
70
|
+
params,
|
|
71
|
+
options,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def destroy(id, params=None, options=None):
|
|
76
|
+
delete(id, params, options)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def new(*args, **kwargs):
|
|
80
|
+
return PartnerSite(*args, **kwargs)
|
|
@@ -12,13 +12,12 @@ class PartnerSiteRequest:
|
|
|
12
12
|
default_attributes = {
|
|
13
13
|
"id": None, # int64 - Partner Site Request ID
|
|
14
14
|
"host_partner_id": None, # int64 - Host Partner ID
|
|
15
|
-
"
|
|
15
|
+
"guest_site_url": None, # string - Guest Site URL
|
|
16
16
|
"status": None, # string - Request status (pending, approved, rejected)
|
|
17
17
|
"host_site_name": None, # string - Host Site Name
|
|
18
18
|
"pairing_key": None, # string - Pairing key used to approve this request on the Guest Site
|
|
19
19
|
"created_at": None, # date-time - Request creation date/time
|
|
20
20
|
"updated_at": None, # date-time - Request last updated date/time
|
|
21
|
-
"site_url": None, # string - Site URL to link to
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
def __init__(self, attributes=None, options=None):
|
|
@@ -45,46 +44,6 @@ class PartnerSiteRequest:
|
|
|
45
44
|
}
|
|
46
45
|
return attrs
|
|
47
46
|
|
|
48
|
-
# Reject partner site request
|
|
49
|
-
def reject(self, params=None):
|
|
50
|
-
if not isinstance(params, dict):
|
|
51
|
-
params = {}
|
|
52
|
-
|
|
53
|
-
if hasattr(self, "id") and self.id:
|
|
54
|
-
params["id"] = self.id
|
|
55
|
-
else:
|
|
56
|
-
raise MissingParameterError("Current object doesn't have a id")
|
|
57
|
-
if "id" not in params:
|
|
58
|
-
raise MissingParameterError("Parameter missing: id")
|
|
59
|
-
if "id" in params and not isinstance(params["id"], int):
|
|
60
|
-
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
61
|
-
Api.send_request(
|
|
62
|
-
"POST",
|
|
63
|
-
"/partner_site_requests/{id}/reject".format(id=params["id"]),
|
|
64
|
-
params,
|
|
65
|
-
self.options,
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
# Approve partner site request
|
|
69
|
-
def approve(self, params=None):
|
|
70
|
-
if not isinstance(params, dict):
|
|
71
|
-
params = {}
|
|
72
|
-
|
|
73
|
-
if hasattr(self, "id") and self.id:
|
|
74
|
-
params["id"] = self.id
|
|
75
|
-
else:
|
|
76
|
-
raise MissingParameterError("Current object doesn't have a id")
|
|
77
|
-
if "id" not in params:
|
|
78
|
-
raise MissingParameterError("Parameter missing: id")
|
|
79
|
-
if "id" in params and not isinstance(params["id"], int):
|
|
80
|
-
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
81
|
-
Api.send_request(
|
|
82
|
-
"POST",
|
|
83
|
-
"/partner_site_requests/{id}/approve".format(id=params["id"]),
|
|
84
|
-
params,
|
|
85
|
-
self.options,
|
|
86
|
-
)
|
|
87
|
-
|
|
88
47
|
def delete(self, params=None):
|
|
89
48
|
if not isinstance(params, dict):
|
|
90
49
|
params = {}
|
|
@@ -121,6 +80,8 @@ class PartnerSiteRequest:
|
|
|
121
80
|
# Parameters:
|
|
122
81
|
# 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.
|
|
123
82
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
83
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `host_partner_id`.
|
|
84
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `host_partner_id`.
|
|
124
85
|
def list(params=None, options=None):
|
|
125
86
|
if not isinstance(params, dict):
|
|
126
87
|
params = {}
|
|
@@ -130,6 +91,10 @@ def list(params=None, options=None):
|
|
|
130
91
|
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
131
92
|
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
132
93
|
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
94
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
95
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
96
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
97
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
133
98
|
return ListObj(
|
|
134
99
|
PartnerSiteRequest, "GET", "/partner_site_requests", params, options
|
|
135
100
|
)
|
|
@@ -159,7 +124,7 @@ def find_by_pairing_key(params=None, options=None):
|
|
|
159
124
|
|
|
160
125
|
# Parameters:
|
|
161
126
|
# host_partner_id (required) - int64 - Host Partner ID to link with
|
|
162
|
-
#
|
|
127
|
+
# guest_site_url (required) - string - Guest Site URL to link to
|
|
163
128
|
def create(params=None, options=None):
|
|
164
129
|
if not isinstance(params, dict):
|
|
165
130
|
params = {}
|
|
@@ -171,54 +136,52 @@ def create(params=None, options=None):
|
|
|
171
136
|
raise InvalidParameterError(
|
|
172
137
|
"Bad parameter: host_partner_id must be an int"
|
|
173
138
|
)
|
|
174
|
-
if "
|
|
175
|
-
|
|
139
|
+
if "guest_site_url" in params and not isinstance(
|
|
140
|
+
params["guest_site_url"], str
|
|
141
|
+
):
|
|
142
|
+
raise InvalidParameterError(
|
|
143
|
+
"Bad parameter: guest_site_url must be an str"
|
|
144
|
+
)
|
|
176
145
|
if "host_partner_id" not in params:
|
|
177
146
|
raise MissingParameterError("Parameter missing: host_partner_id")
|
|
178
|
-
if "
|
|
179
|
-
raise MissingParameterError("Parameter missing:
|
|
147
|
+
if "guest_site_url" not in params:
|
|
148
|
+
raise MissingParameterError("Parameter missing: guest_site_url")
|
|
180
149
|
response, options = Api.send_request(
|
|
181
150
|
"POST", "/partner_site_requests", params, options
|
|
182
151
|
)
|
|
183
152
|
return PartnerSiteRequest(response.data, options)
|
|
184
153
|
|
|
185
154
|
|
|
186
|
-
#
|
|
187
|
-
|
|
155
|
+
# Parameters:
|
|
156
|
+
# pairing_key (required) - string - Pairing key for the partner site request
|
|
157
|
+
def reject(params=None, options=None):
|
|
188
158
|
if not isinstance(params, dict):
|
|
189
159
|
params = {}
|
|
190
160
|
if not isinstance(options, dict):
|
|
191
161
|
options = {}
|
|
192
|
-
params["
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"/partner_site_requests/{id}/reject".format(id=params["id"]),
|
|
200
|
-
params,
|
|
201
|
-
options,
|
|
202
|
-
)
|
|
162
|
+
if "pairing_key" in params and not isinstance(params["pairing_key"], str):
|
|
163
|
+
raise InvalidParameterError(
|
|
164
|
+
"Bad parameter: pairing_key must be an str"
|
|
165
|
+
)
|
|
166
|
+
if "pairing_key" not in params:
|
|
167
|
+
raise MissingParameterError("Parameter missing: pairing_key")
|
|
168
|
+
Api.send_request("POST", "/partner_site_requests/reject", params, options)
|
|
203
169
|
|
|
204
170
|
|
|
205
|
-
#
|
|
206
|
-
|
|
171
|
+
# Parameters:
|
|
172
|
+
# pairing_key (required) - string - Pairing key for the partner site request
|
|
173
|
+
def approve(params=None, options=None):
|
|
207
174
|
if not isinstance(params, dict):
|
|
208
175
|
params = {}
|
|
209
176
|
if not isinstance(options, dict):
|
|
210
177
|
options = {}
|
|
211
|
-
params["
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"/partner_site_requests/{id}/approve".format(id=params["id"]),
|
|
219
|
-
params,
|
|
220
|
-
options,
|
|
221
|
-
)
|
|
178
|
+
if "pairing_key" in params and not isinstance(params["pairing_key"], str):
|
|
179
|
+
raise InvalidParameterError(
|
|
180
|
+
"Bad parameter: pairing_key must be an str"
|
|
181
|
+
)
|
|
182
|
+
if "pairing_key" not in params:
|
|
183
|
+
raise MissingParameterError("Parameter missing: pairing_key")
|
|
184
|
+
Api.send_request("POST", "/partner_site_requests/approve", params, options)
|
|
222
185
|
|
|
223
186
|
|
|
224
187
|
def delete(id, params=None, options=None):
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
import inspect
|
|
3
|
+
import files_sdk
|
|
4
|
+
from tests.base import TestBase
|
|
5
|
+
from files_sdk.models import PartnerSite
|
|
6
|
+
from files_sdk import partner_site
|
|
7
|
+
|
|
8
|
+
class PartnerSiteTest(TestBase):
|
|
9
|
+
pass
|
|
10
|
+
# Instance Methods
|
|
11
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/partner_sites/{id}"), "Mock path does not exist")
|
|
12
|
+
def test_delete(self):
|
|
13
|
+
params = {
|
|
14
|
+
"id" : 12345,
|
|
15
|
+
}
|
|
16
|
+
partner_site = PartnerSite(params)
|
|
17
|
+
partner_site.delete(params)
|
|
18
|
+
|
|
19
|
+
# Alias of delete
|
|
20
|
+
def test_destroy(self):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
# Static Methods
|
|
24
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/partner_sites/{id}"), "Mock path does not exist")
|
|
25
|
+
def test_delete(self):
|
|
26
|
+
id = 12345
|
|
27
|
+
params = {
|
|
28
|
+
"id" : 12345,
|
|
29
|
+
}
|
|
30
|
+
partner_site.delete(id, params)
|
|
31
|
+
|
|
32
|
+
if __name__ == '__main__':
|
|
33
|
+
unittest.main()
|
|
@@ -8,22 +8,6 @@ from files_sdk import partner_site_request
|
|
|
8
8
|
class PartnerSiteRequestTest(TestBase):
|
|
9
9
|
pass
|
|
10
10
|
# Instance Methods
|
|
11
|
-
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/partner_site_requests/{id}/reject"), "Mock path does not exist")
|
|
12
|
-
def test_reject(self):
|
|
13
|
-
params = {
|
|
14
|
-
"id" : 12345,
|
|
15
|
-
}
|
|
16
|
-
partner_site_request = PartnerSiteRequest(params)
|
|
17
|
-
partner_site_request.reject(params)
|
|
18
|
-
|
|
19
|
-
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/partner_site_requests/{id}/approve"), "Mock path does not exist")
|
|
20
|
-
def test_approve(self):
|
|
21
|
-
params = {
|
|
22
|
-
"id" : 12345,
|
|
23
|
-
}
|
|
24
|
-
partner_site_request = PartnerSiteRequest(params)
|
|
25
|
-
partner_site_request.approve(params)
|
|
26
|
-
|
|
27
11
|
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/partner_site_requests/{id}"), "Mock path does not exist")
|
|
28
12
|
def test_delete(self):
|
|
29
13
|
params = {
|
|
@@ -52,25 +36,23 @@ class PartnerSiteRequestTest(TestBase):
|
|
|
52
36
|
def test_create(self):
|
|
53
37
|
params = {
|
|
54
38
|
"host_partner_id" : 12345,
|
|
55
|
-
"
|
|
39
|
+
"guest_site_url" : "foo",
|
|
56
40
|
}
|
|
57
41
|
partner_site_request.create(params)
|
|
58
42
|
|
|
59
|
-
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/partner_site_requests/
|
|
43
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/partner_site_requests/reject"), "Mock path does not exist")
|
|
60
44
|
def test_reject(self):
|
|
61
|
-
id = 12345
|
|
62
45
|
params = {
|
|
63
|
-
"
|
|
46
|
+
"pairing_key" : "foo",
|
|
64
47
|
}
|
|
65
|
-
partner_site_request.reject(
|
|
48
|
+
partner_site_request.reject(params)
|
|
66
49
|
|
|
67
|
-
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/partner_site_requests/
|
|
50
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/partner_site_requests/approve"), "Mock path does not exist")
|
|
68
51
|
def test_approve(self):
|
|
69
|
-
id = 12345
|
|
70
52
|
params = {
|
|
71
|
-
"
|
|
53
|
+
"pairing_key" : "foo",
|
|
72
54
|
}
|
|
73
|
-
partner_site_request.approve(
|
|
55
|
+
partner_site_request.approve(params)
|
|
74
56
|
|
|
75
57
|
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/partner_site_requests/{id}"), "Mock path does not exist")
|
|
76
58
|
def test_delete(self):
|
files_com-1.6.387/_VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.6.387
|
|
@@ -1,77 +0,0 @@
|
|
|
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 PartnerSite:
|
|
12
|
-
default_attributes = {
|
|
13
|
-
"host_partner_id": None, # int64 - Host Partner ID
|
|
14
|
-
"host_partner_name": None, # string - Host Partner Name
|
|
15
|
-
"guest_partner_id": None, # int64 - Guest Partner ID
|
|
16
|
-
"guest_partner_name": None, # string - Guest Partner Name
|
|
17
|
-
"host_site_id": None, # int64 - Host Site ID
|
|
18
|
-
"host_site_name": None, # string - Host Site Name
|
|
19
|
-
"guest_site_id": None, # int64 - Guest Site ID
|
|
20
|
-
"guest_site_name": None, # string - Guest Site Name
|
|
21
|
-
"workspace_id": None, # int64 - Workspace ID for the Host Partner
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
def __init__(self, attributes=None, options=None):
|
|
25
|
-
if not isinstance(attributes, dict):
|
|
26
|
-
attributes = {}
|
|
27
|
-
if not isinstance(options, dict):
|
|
28
|
-
options = {}
|
|
29
|
-
self.set_attributes(attributes)
|
|
30
|
-
self.options = options
|
|
31
|
-
|
|
32
|
-
def set_attributes(self, attributes):
|
|
33
|
-
for attribute, default_value in PartnerSite.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 PartnerSite.default_attributes
|
|
41
|
-
if getattr(self, k, None) is not None
|
|
42
|
-
}
|
|
43
|
-
return attrs
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def linkeds(params=None, options=None):
|
|
47
|
-
if not isinstance(params, dict):
|
|
48
|
-
params = {}
|
|
49
|
-
if not isinstance(options, dict):
|
|
50
|
-
options = {}
|
|
51
|
-
response, options = Api.send_request(
|
|
52
|
-
"GET", "/partner_sites/linked_partner_sites", params, options
|
|
53
|
-
)
|
|
54
|
-
return [PartnerSite(entity_data, options) for entity_data in response.data]
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
# Parameters:
|
|
58
|
-
# 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.
|
|
59
|
-
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
60
|
-
def list(params=None, options=None):
|
|
61
|
-
if not isinstance(params, dict):
|
|
62
|
-
params = {}
|
|
63
|
-
if not isinstance(options, dict):
|
|
64
|
-
options = {}
|
|
65
|
-
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
66
|
-
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
67
|
-
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
68
|
-
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
69
|
-
return ListObj(PartnerSite, "GET", "/partner_sites", params, options)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def all(params=None, options=None):
|
|
73
|
-
list(params, options)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
def new(*args, **kwargs):
|
|
77
|
-
return PartnerSite(*args, **kwargs)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import unittest
|
|
2
|
-
import inspect
|
|
3
|
-
import files_sdk
|
|
4
|
-
from tests.base import TestBase
|
|
5
|
-
from files_sdk.models import PartnerSite
|
|
6
|
-
from files_sdk import partner_site
|
|
7
|
-
|
|
8
|
-
class PartnerSiteTest(TestBase):
|
|
9
|
-
pass
|
|
10
|
-
# Instance Methods
|
|
11
|
-
|
|
12
|
-
# Static Methods
|
|
13
|
-
@unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/partner_sites/linked_partner_sites"), "Mock path does not exist")
|
|
14
|
-
def test_linkeds(self):
|
|
15
|
-
resp = partner_site.linkeds()
|
|
16
|
-
|
|
17
|
-
@unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/partner_sites"), "Mock path does not exist")
|
|
18
|
-
def test_list(self):
|
|
19
|
-
resp = partner_site.list()
|
|
20
|
-
|
|
21
|
-
if __name__ == '__main__':
|
|
22
|
-
unittest.main()
|
|
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
|
{files_com-1.6.387 → files_com-1.6.389}/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
|