Files.com 1.6.162__tar.gz → 1.6.164__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.162/files_com.egg-info → files_com-1.6.164}/PKG-INFO +1 -1
- files_com-1.6.164/_VERSION +1 -0
- {files_com-1.6.162 → files_com-1.6.164/files_com.egg-info}/PKG-INFO +1 -1
- {files_com-1.6.162 → files_com-1.6.164}/files_com.egg-info/SOURCES.txt +4 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/__init__.py +5 -1
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/__init__.py +2 -0
- files_com-1.6.164/files_sdk/models/agent_push_update.py +44 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/bundle.py +1 -1
- files_com-1.6.164/files_sdk/models/key_lifecycle_rule.py +240 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/remote_server.py +44 -0
- {files_com-1.6.162 → files_com-1.6.164}/pyproject.toml +1 -1
- files_com-1.6.164/tests/test_agent_push_update.py +14 -0
- files_com-1.6.164/tests/test_key_lifecycle_rule.py +65 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_remote_server.py +16 -0
- files_com-1.6.162/_VERSION +0 -1
- {files_com-1.6.162 → files_com-1.6.164}/LICENSE +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/README.md +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_com.egg-info/dependency_links.txt +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_com.egg-info/requires.txt +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_com.egg-info/top_level.txt +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/api.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/api_client.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/error.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/list_obj.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/account_line_item.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/action.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/action_notification_export.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/action_notification_export_result.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/api_key.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/api_request_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/app.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/as2_incoming_message.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/as2_outgoing_message.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/as2_partner.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/as2_station.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/auto.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/automation.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/automation_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/automation_run.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/behavior.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/bundle_action.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/bundle_download.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/bundle_notification.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/bundle_path.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/bundle_recipient.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/bundle_registration.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/child_site_management_policy.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/clickwrap.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/dns_record.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/email_incoming_message.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/email_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/errors.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/exavault_api_request_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/external_event.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/file.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/file_action.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/file_comment.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/file_comment_reaction.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/file_migration.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/file_migration_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/file_upload_part.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/folder.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/form_field.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/form_field_set.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/ftp_action_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/gpg_key.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/group.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/group_user.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/history.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/history_export.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/history_export_result.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/holiday_region.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/image.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/inbound_s3_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/inbox_recipient.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/inbox_registration.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/inbox_upload.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/invoice.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/invoice_line_item.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/ip_address.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/lock.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/message.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/message_comment.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/message_comment_reaction.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/message_reaction.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/notification.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/outbound_connection_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/partner.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/payment.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/payment_line_item.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/permission.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/preview.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/priority.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/project.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/public_hosting_request_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/public_ip_address.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/public_key.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/remote_mount_backend.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/remote_server_credential.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/request.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/restore.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/scim_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/session.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/settings_change.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/sftp_action_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/sftp_host_key.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/share_group.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/share_group_member.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/siem_http_destination.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/site.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/sso_strategy.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/status.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/style.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/sync.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/sync_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/sync_run.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/usage_by_top_level_dir.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/usage_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/user.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/user_cipher_use.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/user_lifecycle_rule.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/user_request.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/user_sftp_client_use.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/web_dav_action_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/models/webhook_test.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/path_util.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/files_sdk/util.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/setup.cfg +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_account_line_item.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_action.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_action_notification_export.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_action_notification_export_result.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_api_errors.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_api_key.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_api_request_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_app.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_as2_incoming_message.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_as2_outgoing_message.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_as2_partner.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_as2_station.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_auto.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_automation.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_automation_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_automation_run.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_bandwidth_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_behavior.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_bundle.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_bundle_action.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_bundle_download.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_bundle_notification.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_bundle_path.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_bundle_recipient.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_bundle_registration.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_child_site_management_policy.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_clickwrap.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_connection_adapter.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_dns_record.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_email_incoming_message.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_email_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_errors.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_exavault_api_request_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_external_event.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_file.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_file_action.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_file_comment.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_file_comment_reaction.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_file_migration.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_file_migration_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_file_upload_part.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_folder.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_form_field.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_form_field_set.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_ftp_action_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_gpg_key.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_group.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_group_user.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_history.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_history_export.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_history_export_result.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_holiday_region.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_image.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_inbound_s3_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_inbox_recipient.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_inbox_registration.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_inbox_upload.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_invoice.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_invoice_line_item.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_ip_address.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_lock.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_message.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_message_comment.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_message_comment_reaction.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_message_reaction.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_notification.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_outbound_connection_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_partner.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_path_util.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_payment.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_payment_line_item.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_permission.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_preview.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_priority.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_project.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_public_hosting_request_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_public_ip_address.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_public_key.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_remote_bandwidth_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_remote_mount_backend.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_remote_server_configuration_file.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_remote_server_credential.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_request.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_restore.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_scim_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_session.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_settings_change.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_sftp_action_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_sftp_host_key.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_share_group.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_share_group_member.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_siem_http_destination.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_site.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_sso_strategy.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_status.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_style.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_sync.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_sync_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_sync_run.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_usage_by_top_level_dir.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_usage_daily_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_usage_snapshot.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_user.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_user_cipher_use.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_user_lifecycle_rule.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_user_request.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_user_sftp_client_use.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_web_dav_action_log.py +0 -0
- {files_com-1.6.162 → files_com-1.6.164}/tests/test_webhook_test.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.6.164
|
|
@@ -20,6 +20,7 @@ files_sdk/models/account_line_item.py
|
|
|
20
20
|
files_sdk/models/action.py
|
|
21
21
|
files_sdk/models/action_notification_export.py
|
|
22
22
|
files_sdk/models/action_notification_export_result.py
|
|
23
|
+
files_sdk/models/agent_push_update.py
|
|
23
24
|
files_sdk/models/api_key.py
|
|
24
25
|
files_sdk/models/api_request_log.py
|
|
25
26
|
files_sdk/models/app.py
|
|
@@ -74,6 +75,7 @@ files_sdk/models/inbox_upload.py
|
|
|
74
75
|
files_sdk/models/invoice.py
|
|
75
76
|
files_sdk/models/invoice_line_item.py
|
|
76
77
|
files_sdk/models/ip_address.py
|
|
78
|
+
files_sdk/models/key_lifecycle_rule.py
|
|
77
79
|
files_sdk/models/lock.py
|
|
78
80
|
files_sdk/models/message.py
|
|
79
81
|
files_sdk/models/message_comment.py
|
|
@@ -128,6 +130,7 @@ tests/test_account_line_item.py
|
|
|
128
130
|
tests/test_action.py
|
|
129
131
|
tests/test_action_notification_export.py
|
|
130
132
|
tests/test_action_notification_export_result.py
|
|
133
|
+
tests/test_agent_push_update.py
|
|
131
134
|
tests/test_api_errors.py
|
|
132
135
|
tests/test_api_key.py
|
|
133
136
|
tests/test_api_request_log.py
|
|
@@ -184,6 +187,7 @@ tests/test_inbox_upload.py
|
|
|
184
187
|
tests/test_invoice.py
|
|
185
188
|
tests/test_invoice_line_item.py
|
|
186
189
|
tests/test_ip_address.py
|
|
190
|
+
tests/test_key_lifecycle_rule.py
|
|
187
191
|
tests/test_lock.py
|
|
188
192
|
tests/test_message.py
|
|
189
193
|
tests/test_message_comment.py
|
|
@@ -3,6 +3,7 @@ import files_sdk.models.account_line_item as account_line_item
|
|
|
3
3
|
import files_sdk.models.action as action
|
|
4
4
|
import files_sdk.models.action_notification_export as action_notification_export
|
|
5
5
|
import files_sdk.models.action_notification_export_result as action_notification_export_result
|
|
6
|
+
import files_sdk.models.agent_push_update as agent_push_update
|
|
6
7
|
import files_sdk.models.api_key as api_key
|
|
7
8
|
import files_sdk.models.api_request_log as api_request_log
|
|
8
9
|
import files_sdk.models.app as app
|
|
@@ -57,6 +58,7 @@ import files_sdk.models.inbox_upload as inbox_upload
|
|
|
57
58
|
import files_sdk.models.invoice as invoice
|
|
58
59
|
import files_sdk.models.invoice_line_item as invoice_line_item
|
|
59
60
|
import files_sdk.models.ip_address as ip_address
|
|
61
|
+
import files_sdk.models.key_lifecycle_rule as key_lifecycle_rule
|
|
60
62
|
import files_sdk.models.lock as lock
|
|
61
63
|
import files_sdk.models.message as message
|
|
62
64
|
import files_sdk.models.message_comment as message_comment
|
|
@@ -116,6 +118,7 @@ from files_sdk.models.action_notification_export import (
|
|
|
116
118
|
from files_sdk.models.action_notification_export_result import (
|
|
117
119
|
ActionNotificationExportResult,
|
|
118
120
|
)
|
|
121
|
+
from files_sdk.models.agent_push_update import AgentPushUpdate
|
|
119
122
|
from files_sdk.models.api_key import ApiKey
|
|
120
123
|
from files_sdk.models.api_request_log import ApiRequestLog
|
|
121
124
|
from files_sdk.models.app import App
|
|
@@ -172,6 +175,7 @@ from files_sdk.models.inbox_upload import InboxUpload
|
|
|
172
175
|
from files_sdk.models.invoice import Invoice
|
|
173
176
|
from files_sdk.models.invoice_line_item import InvoiceLineItem
|
|
174
177
|
from files_sdk.models.ip_address import IpAddress
|
|
178
|
+
from files_sdk.models.key_lifecycle_rule import KeyLifecycleRule
|
|
175
179
|
from files_sdk.models.lock import Lock
|
|
176
180
|
from files_sdk.models.message import Message
|
|
177
181
|
from files_sdk.models.message_comment import MessageComment
|
|
@@ -235,7 +239,7 @@ session_id = None
|
|
|
235
239
|
source_ip = None
|
|
236
240
|
base_url = "https://app.files.com"
|
|
237
241
|
base_path = "api/rest/v1"
|
|
238
|
-
version = "1.6.
|
|
242
|
+
version = "1.6.164"
|
|
239
243
|
|
|
240
244
|
__version__ = version
|
|
241
245
|
|
|
@@ -6,6 +6,7 @@ from files_sdk.models.action_notification_export import (
|
|
|
6
6
|
from files_sdk.models.action_notification_export_result import (
|
|
7
7
|
ActionNotificationExportResult,
|
|
8
8
|
)
|
|
9
|
+
from files_sdk.models.agent_push_update import AgentPushUpdate
|
|
9
10
|
from files_sdk.models.api_key import ApiKey
|
|
10
11
|
from files_sdk.models.api_request_log import ApiRequestLog
|
|
11
12
|
from files_sdk.models.app import App
|
|
@@ -62,6 +63,7 @@ from files_sdk.models.inbox_upload import InboxUpload
|
|
|
62
63
|
from files_sdk.models.invoice import Invoice
|
|
63
64
|
from files_sdk.models.invoice_line_item import InvoiceLineItem
|
|
64
65
|
from files_sdk.models.ip_address import IpAddress
|
|
66
|
+
from files_sdk.models.key_lifecycle_rule import KeyLifecycleRule
|
|
65
67
|
from files_sdk.models.lock import Lock
|
|
66
68
|
from files_sdk.models.message import Message
|
|
67
69
|
from files_sdk.models.message_comment import MessageComment
|
|
@@ -0,0 +1,44 @@
|
|
|
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 AgentPushUpdate:
|
|
11
|
+
default_attributes = {
|
|
12
|
+
"version": None, # string - Pushed agent version
|
|
13
|
+
"message": None, # string - Update accepted or reason
|
|
14
|
+
"current_version": None, # string - Installed agent version
|
|
15
|
+
"pending_version": None, # string - Pending agent version or null
|
|
16
|
+
"last_error": None, # string - Last error message or null
|
|
17
|
+
"error": None, # string - Error code
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
def __init__(self, attributes=None, options=None):
|
|
21
|
+
if not isinstance(attributes, dict):
|
|
22
|
+
attributes = {}
|
|
23
|
+
if not isinstance(options, dict):
|
|
24
|
+
options = {}
|
|
25
|
+
self.set_attributes(attributes)
|
|
26
|
+
self.options = options
|
|
27
|
+
|
|
28
|
+
def set_attributes(self, attributes):
|
|
29
|
+
for (
|
|
30
|
+
attribute,
|
|
31
|
+
default_value,
|
|
32
|
+
) in AgentPushUpdate.default_attributes.items():
|
|
33
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
34
|
+
|
|
35
|
+
def get_attributes(self):
|
|
36
|
+
return {
|
|
37
|
+
k: getattr(self, k, None)
|
|
38
|
+
for k in AgentPushUpdate.default_attributes
|
|
39
|
+
if getattr(self, k, None) is not None
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def new(*args, **kwargs):
|
|
44
|
+
return AgentPushUpdate(*args, **kwargs)
|
|
@@ -264,7 +264,7 @@ class Bundle:
|
|
|
264
264
|
# 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.
|
|
265
265
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
266
266
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
267
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id,
|
|
267
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
268
268
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
269
269
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
270
270
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -0,0 +1,240 @@
|
|
|
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 KeyLifecycleRule:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - Key Lifecycle Rule ID
|
|
14
|
+
"key_type": None, # string - Key type for which the rule will apply (gpg or ssh).
|
|
15
|
+
"inactivity_days": None, # int64 - Number of days of inactivity before the rule applies.
|
|
16
|
+
"name": None, # string - Key Lifecycle Rule name
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
def __init__(self, attributes=None, options=None):
|
|
20
|
+
if not isinstance(attributes, dict):
|
|
21
|
+
attributes = {}
|
|
22
|
+
if not isinstance(options, dict):
|
|
23
|
+
options = {}
|
|
24
|
+
self.set_attributes(attributes)
|
|
25
|
+
self.options = options
|
|
26
|
+
|
|
27
|
+
def set_attributes(self, attributes):
|
|
28
|
+
for (
|
|
29
|
+
attribute,
|
|
30
|
+
default_value,
|
|
31
|
+
) in KeyLifecycleRule.default_attributes.items():
|
|
32
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
33
|
+
|
|
34
|
+
def get_attributes(self):
|
|
35
|
+
return {
|
|
36
|
+
k: getattr(self, k, None)
|
|
37
|
+
for k in KeyLifecycleRule.default_attributes
|
|
38
|
+
if getattr(self, k, None) is not None
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
# Parameters:
|
|
42
|
+
# key_type - string - Key type for which the rule will apply (gpg or ssh).
|
|
43
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies.
|
|
44
|
+
# name - string - Key Lifecycle Rule name
|
|
45
|
+
def update(self, params=None):
|
|
46
|
+
if not isinstance(params, dict):
|
|
47
|
+
params = {}
|
|
48
|
+
|
|
49
|
+
if hasattr(self, "id") and self.id:
|
|
50
|
+
params["id"] = self.id
|
|
51
|
+
else:
|
|
52
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
53
|
+
if "id" not in params:
|
|
54
|
+
raise MissingParameterError("Parameter missing: id")
|
|
55
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
56
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
57
|
+
if "key_type" in params and not isinstance(params["key_type"], str):
|
|
58
|
+
raise InvalidParameterError(
|
|
59
|
+
"Bad parameter: key_type must be an str"
|
|
60
|
+
)
|
|
61
|
+
if "inactivity_days" in params and not isinstance(
|
|
62
|
+
params["inactivity_days"], int
|
|
63
|
+
):
|
|
64
|
+
raise InvalidParameterError(
|
|
65
|
+
"Bad parameter: inactivity_days must be an int"
|
|
66
|
+
)
|
|
67
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
68
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
69
|
+
response, _options = Api.send_request(
|
|
70
|
+
"PATCH",
|
|
71
|
+
"/key_lifecycle_rules/{id}".format(id=params["id"]),
|
|
72
|
+
params,
|
|
73
|
+
self.options,
|
|
74
|
+
)
|
|
75
|
+
return response.data
|
|
76
|
+
|
|
77
|
+
def delete(self, params=None):
|
|
78
|
+
if not isinstance(params, dict):
|
|
79
|
+
params = {}
|
|
80
|
+
|
|
81
|
+
if hasattr(self, "id") and self.id:
|
|
82
|
+
params["id"] = self.id
|
|
83
|
+
else:
|
|
84
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
85
|
+
if "id" not in params:
|
|
86
|
+
raise MissingParameterError("Parameter missing: id")
|
|
87
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
88
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
89
|
+
Api.send_request(
|
|
90
|
+
"DELETE",
|
|
91
|
+
"/key_lifecycle_rules/{id}".format(id=params["id"]),
|
|
92
|
+
params,
|
|
93
|
+
self.options,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
def destroy(self, params=None):
|
|
97
|
+
self.delete(params)
|
|
98
|
+
|
|
99
|
+
def save(self):
|
|
100
|
+
if hasattr(self, "id") and self.id:
|
|
101
|
+
new_obj = self.update(self.get_attributes())
|
|
102
|
+
self.set_attributes(new_obj.get_attributes())
|
|
103
|
+
return True
|
|
104
|
+
else:
|
|
105
|
+
new_obj = create(self.get_attributes(), self.options)
|
|
106
|
+
self.set_attributes(new_obj.get_attributes())
|
|
107
|
+
return True
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# Parameters:
|
|
111
|
+
# 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.
|
|
112
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
113
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
114
|
+
def list(params=None, options=None):
|
|
115
|
+
if not isinstance(params, dict):
|
|
116
|
+
params = {}
|
|
117
|
+
if not isinstance(options, dict):
|
|
118
|
+
options = {}
|
|
119
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
120
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
121
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
122
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
123
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
124
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
125
|
+
return ListObj(
|
|
126
|
+
KeyLifecycleRule, "GET", "/key_lifecycle_rules", params, options
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def all(params=None, options=None):
|
|
131
|
+
list(params, options)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
# Parameters:
|
|
135
|
+
# id (required) - int64 - Key Lifecycle Rule ID.
|
|
136
|
+
def find(id, params=None, options=None):
|
|
137
|
+
if not isinstance(params, dict):
|
|
138
|
+
params = {}
|
|
139
|
+
if not isinstance(options, dict):
|
|
140
|
+
options = {}
|
|
141
|
+
params["id"] = id
|
|
142
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
143
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
144
|
+
if "id" not in params:
|
|
145
|
+
raise MissingParameterError("Parameter missing: id")
|
|
146
|
+
response, options = Api.send_request(
|
|
147
|
+
"GET",
|
|
148
|
+
"/key_lifecycle_rules/{id}".format(id=params["id"]),
|
|
149
|
+
params,
|
|
150
|
+
options,
|
|
151
|
+
)
|
|
152
|
+
return KeyLifecycleRule(response.data, options)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def get(id, params=None, options=None):
|
|
156
|
+
find(id, params, options)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
# Parameters:
|
|
160
|
+
# key_type - string - Key type for which the rule will apply (gpg or ssh).
|
|
161
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies.
|
|
162
|
+
# name - string - Key Lifecycle Rule name
|
|
163
|
+
def create(params=None, options=None):
|
|
164
|
+
if not isinstance(params, dict):
|
|
165
|
+
params = {}
|
|
166
|
+
if not isinstance(options, dict):
|
|
167
|
+
options = {}
|
|
168
|
+
if "key_type" in params and not isinstance(params["key_type"], str):
|
|
169
|
+
raise InvalidParameterError("Bad parameter: key_type must be an str")
|
|
170
|
+
if "inactivity_days" in params and not isinstance(
|
|
171
|
+
params["inactivity_days"], int
|
|
172
|
+
):
|
|
173
|
+
raise InvalidParameterError(
|
|
174
|
+
"Bad parameter: inactivity_days must be an int"
|
|
175
|
+
)
|
|
176
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
177
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
178
|
+
response, options = Api.send_request(
|
|
179
|
+
"POST", "/key_lifecycle_rules", params, options
|
|
180
|
+
)
|
|
181
|
+
return KeyLifecycleRule(response.data, options)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
# Parameters:
|
|
185
|
+
# key_type - string - Key type for which the rule will apply (gpg or ssh).
|
|
186
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies.
|
|
187
|
+
# name - string - Key Lifecycle Rule name
|
|
188
|
+
def update(id, params=None, options=None):
|
|
189
|
+
if not isinstance(params, dict):
|
|
190
|
+
params = {}
|
|
191
|
+
if not isinstance(options, dict):
|
|
192
|
+
options = {}
|
|
193
|
+
params["id"] = id
|
|
194
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
195
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
196
|
+
if "key_type" in params and not isinstance(params["key_type"], str):
|
|
197
|
+
raise InvalidParameterError("Bad parameter: key_type must be an str")
|
|
198
|
+
if "inactivity_days" in params and not isinstance(
|
|
199
|
+
params["inactivity_days"], int
|
|
200
|
+
):
|
|
201
|
+
raise InvalidParameterError(
|
|
202
|
+
"Bad parameter: inactivity_days must be an int"
|
|
203
|
+
)
|
|
204
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
205
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
206
|
+
if "id" not in params:
|
|
207
|
+
raise MissingParameterError("Parameter missing: id")
|
|
208
|
+
response, options = Api.send_request(
|
|
209
|
+
"PATCH",
|
|
210
|
+
"/key_lifecycle_rules/{id}".format(id=params["id"]),
|
|
211
|
+
params,
|
|
212
|
+
options,
|
|
213
|
+
)
|
|
214
|
+
return KeyLifecycleRule(response.data, options)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def delete(id, params=None, options=None):
|
|
218
|
+
if not isinstance(params, dict):
|
|
219
|
+
params = {}
|
|
220
|
+
if not isinstance(options, dict):
|
|
221
|
+
options = {}
|
|
222
|
+
params["id"] = id
|
|
223
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
224
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
225
|
+
if "id" not in params:
|
|
226
|
+
raise MissingParameterError("Parameter missing: id")
|
|
227
|
+
Api.send_request(
|
|
228
|
+
"DELETE",
|
|
229
|
+
"/key_lifecycle_rules/{id}".format(id=params["id"]),
|
|
230
|
+
params,
|
|
231
|
+
options,
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def destroy(id, params=None, options=None):
|
|
236
|
+
delete(id, params, options)
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def new(*args, **kwargs):
|
|
240
|
+
return KeyLifecycleRule(*args, **kwargs)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import builtins # noqa: F401
|
|
2
|
+
from files_sdk.models.agent_push_update import AgentPushUpdate
|
|
2
3
|
from files_sdk.models.remote_server_configuration_file import (
|
|
3
4
|
RemoteServerConfigurationFile,
|
|
4
5
|
)
|
|
@@ -61,6 +62,8 @@ class RemoteServer:
|
|
|
61
62
|
"files_agent_root": None, # string - Agent local root path
|
|
62
63
|
"files_agent_api_token": None, # string - Files Agent API Token
|
|
63
64
|
"files_agent_version": None, # string - Files Agent version
|
|
65
|
+
"files_agent_up_to_date": None, # boolean - If true, the Files Agent is up to date.
|
|
66
|
+
"files_agent_latest_version": None, # string - Latest available Files Agent version
|
|
64
67
|
"outbound_agent_id": None, # int64 - Route traffic to outbound on a files-agent
|
|
65
68
|
"filebase_bucket": None, # string - Filebase: Bucket name
|
|
66
69
|
"filebase_access_key": None, # string - Filebase: Access Key.
|
|
@@ -115,6 +118,27 @@ class RemoteServer:
|
|
|
115
118
|
if getattr(self, k, None) is not None
|
|
116
119
|
}
|
|
117
120
|
|
|
121
|
+
# Push update to Files Agent
|
|
122
|
+
def agent_push_update(self, params=None):
|
|
123
|
+
if not isinstance(params, dict):
|
|
124
|
+
params = {}
|
|
125
|
+
|
|
126
|
+
if hasattr(self, "id") and self.id:
|
|
127
|
+
params["id"] = self.id
|
|
128
|
+
else:
|
|
129
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
130
|
+
if "id" not in params:
|
|
131
|
+
raise MissingParameterError("Parameter missing: id")
|
|
132
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
133
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
134
|
+
response, _options = Api.send_request(
|
|
135
|
+
"POST",
|
|
136
|
+
"/remote_servers/{id}/agent_push_update".format(id=params["id"]),
|
|
137
|
+
params,
|
|
138
|
+
self.options,
|
|
139
|
+
)
|
|
140
|
+
return response.data
|
|
141
|
+
|
|
118
142
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
119
143
|
#
|
|
120
144
|
# Parameters:
|
|
@@ -1232,6 +1256,26 @@ def create(params=None, options=None):
|
|
|
1232
1256
|
return RemoteServer(response.data, options)
|
|
1233
1257
|
|
|
1234
1258
|
|
|
1259
|
+
# Push update to Files Agent
|
|
1260
|
+
def agent_push_update(id, params=None, options=None):
|
|
1261
|
+
if not isinstance(params, dict):
|
|
1262
|
+
params = {}
|
|
1263
|
+
if not isinstance(options, dict):
|
|
1264
|
+
options = {}
|
|
1265
|
+
params["id"] = id
|
|
1266
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
1267
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
1268
|
+
if "id" not in params:
|
|
1269
|
+
raise MissingParameterError("Parameter missing: id")
|
|
1270
|
+
response, options = Api.send_request(
|
|
1271
|
+
"POST",
|
|
1272
|
+
"/remote_servers/{id}/agent_push_update".format(id=params["id"]),
|
|
1273
|
+
params,
|
|
1274
|
+
options,
|
|
1275
|
+
)
|
|
1276
|
+
return AgentPushUpdate(response.data, options)
|
|
1277
|
+
|
|
1278
|
+
|
|
1235
1279
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
1236
1280
|
#
|
|
1237
1281
|
# Parameters:
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
import inspect
|
|
3
|
+
import files_sdk
|
|
4
|
+
from tests.base import TestBase
|
|
5
|
+
from files_sdk.models import AgentPushUpdate
|
|
6
|
+
from files_sdk import agent_push_update
|
|
7
|
+
|
|
8
|
+
class AgentPushUpdateTest(TestBase):
|
|
9
|
+
pass
|
|
10
|
+
# Instance Methods
|
|
11
|
+
|
|
12
|
+
# Static Methods
|
|
13
|
+
if __name__ == '__main__':
|
|
14
|
+
unittest.main()
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
import inspect
|
|
3
|
+
import files_sdk
|
|
4
|
+
from tests.base import TestBase
|
|
5
|
+
from files_sdk.models import KeyLifecycleRule
|
|
6
|
+
from files_sdk import key_lifecycle_rule
|
|
7
|
+
|
|
8
|
+
class KeyLifecycleRuleTest(TestBase):
|
|
9
|
+
pass
|
|
10
|
+
# Instance Methods
|
|
11
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/key_lifecycle_rules/{id}"), "Mock path does not exist")
|
|
12
|
+
def test_update(self):
|
|
13
|
+
params = {
|
|
14
|
+
"id" : 12345,
|
|
15
|
+
}
|
|
16
|
+
key_lifecycle_rule = KeyLifecycleRule(params)
|
|
17
|
+
key_lifecycle_rule.update(params)
|
|
18
|
+
|
|
19
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/key_lifecycle_rules/{id}"), "Mock path does not exist")
|
|
20
|
+
def test_delete(self):
|
|
21
|
+
params = {
|
|
22
|
+
"id" : 12345,
|
|
23
|
+
}
|
|
24
|
+
key_lifecycle_rule = KeyLifecycleRule(params)
|
|
25
|
+
key_lifecycle_rule.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", "/key_lifecycle_rules"), "Mock path does not exist")
|
|
33
|
+
def test_list(self):
|
|
34
|
+
resp = key_lifecycle_rule.list()
|
|
35
|
+
|
|
36
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("GET", "/key_lifecycle_rules/{id}"), "Mock path does not exist")
|
|
37
|
+
def test_find(self):
|
|
38
|
+
id = 12345
|
|
39
|
+
params = {
|
|
40
|
+
"id" : 12345,
|
|
41
|
+
}
|
|
42
|
+
key_lifecycle_rule.find(id, params)
|
|
43
|
+
|
|
44
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/key_lifecycle_rules"), "Mock path does not exist")
|
|
45
|
+
def test_create(self):
|
|
46
|
+
resp = key_lifecycle_rule.create()
|
|
47
|
+
|
|
48
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/key_lifecycle_rules/{id}"), "Mock path does not exist")
|
|
49
|
+
def test_update(self):
|
|
50
|
+
id = 12345
|
|
51
|
+
params = {
|
|
52
|
+
"id" : 12345,
|
|
53
|
+
}
|
|
54
|
+
key_lifecycle_rule.update(id, params)
|
|
55
|
+
|
|
56
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("DELETE", "/key_lifecycle_rules/{id}"), "Mock path does not exist")
|
|
57
|
+
def test_delete(self):
|
|
58
|
+
id = 12345
|
|
59
|
+
params = {
|
|
60
|
+
"id" : 12345,
|
|
61
|
+
}
|
|
62
|
+
key_lifecycle_rule.delete(id, params)
|
|
63
|
+
|
|
64
|
+
if __name__ == '__main__':
|
|
65
|
+
unittest.main()
|
|
@@ -8,6 +8,14 @@ from files_sdk import remote_server
|
|
|
8
8
|
class RemoteServerTest(TestBase):
|
|
9
9
|
pass
|
|
10
10
|
# Instance Methods
|
|
11
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/remote_servers/{id}/agent_push_update"), "Mock path does not exist")
|
|
12
|
+
def test_agent_push_update(self):
|
|
13
|
+
params = {
|
|
14
|
+
"id" : 12345,
|
|
15
|
+
}
|
|
16
|
+
remote_server = RemoteServer(params)
|
|
17
|
+
remote_server.agent_push_update(params)
|
|
18
|
+
|
|
11
19
|
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/remote_servers/{id}/configuration_file"), "Mock path does not exist")
|
|
12
20
|
def test_configuration_file(self):
|
|
13
21
|
params = {
|
|
@@ -61,6 +69,14 @@ class RemoteServerTest(TestBase):
|
|
|
61
69
|
def test_create(self):
|
|
62
70
|
resp = remote_server.create()
|
|
63
71
|
|
|
72
|
+
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/remote_servers/{id}/agent_push_update"), "Mock path does not exist")
|
|
73
|
+
def test_agent_push_update(self):
|
|
74
|
+
id = 12345
|
|
75
|
+
params = {
|
|
76
|
+
"id" : 12345,
|
|
77
|
+
}
|
|
78
|
+
remote_server.agent_push_update(id, params)
|
|
79
|
+
|
|
64
80
|
@unittest.skipUnless(TestBase.mock_server_path_exists("POST", "/remote_servers/{id}/configuration_file"), "Mock path does not exist")
|
|
65
81
|
def test_configuration_file(self):
|
|
66
82
|
id = 12345
|
files_com-1.6.162/_VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.6.162
|
|
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.162 → files_com-1.6.164}/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
|