immich 1.2.1__py3-none-any.whl
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.
- immich/.openapi-generator/FILES +372 -0
- immich/.openapi-generator/VERSION +1 -0
- immich/.openapi-generator-ignore +48 -0
- immich/__init__.py +3 -0
- immich/client/__init__.py +1162 -0
- immich/client/api/__init__.py +39 -0
- immich/client/api/activities_api.py +1092 -0
- immich/client/api/albums_api.py +3228 -0
- immich/client/api/api_keys_api.py +1484 -0
- immich/client/api/assets_api.py +5834 -0
- immich/client/api/authentication_admin_api.py +254 -0
- immich/client/api/authentication_api.py +3881 -0
- immich/client/api/deprecated_api.py +2199 -0
- immich/client/api/download_api.py +603 -0
- immich/client/api/duplicates_api.py +743 -0
- immich/client/api/faces_api.py +1053 -0
- immich/client/api/jobs_api.py +783 -0
- immich/client/api/libraries_api.py +2004 -0
- immich/client/api/maintenance_admin_api.py +533 -0
- immich/client/api/map_api.py +640 -0
- immich/client/api/memories_api.py +2250 -0
- immich/client/api/notifications_admin_api.py +808 -0
- immich/client/api/notifications_api.py +1564 -0
- immich/client/api/partners_api.py +1278 -0
- immich/client/api/people_api.py +2905 -0
- immich/client/api/plugins_api.py +730 -0
- immich/client/api/queues_api.py +1292 -0
- immich/client/api/search_api.py +3198 -0
- immich/client/api/server_api.py +3466 -0
- immich/client/api/sessions_api.py +1472 -0
- immich/client/api/shared_links_api.py +2177 -0
- immich/client/api/stacks_api.py +1769 -0
- immich/client/api/sync_api.py +1512 -0
- immich/client/api/system_config_api.py +967 -0
- immich/client/api/system_metadata_api.py +964 -0
- immich/client/api/tags_api.py +2296 -0
- immich/client/api/timeline_api.py +1193 -0
- immich/client/api/trash_api.py +739 -0
- immich/client/api/users_admin_api.py +2607 -0
- immich/client/api/users_api.py +3577 -0
- immich/client/api/views_api.py +503 -0
- immich/client/api/workflows_api.py +1257 -0
- immich/client/api_client.py +756 -0
- immich/client/api_response.py +20 -0
- immich/client/configuration.py +638 -0
- immich/client/exceptions.py +222 -0
- immich/client/models/__init__.py +424 -0
- immich/client/models/activity_create_dto.py +94 -0
- immich/client/models/activity_response_dto.py +121 -0
- immich/client/models/activity_statistics_response_dto.py +85 -0
- immich/client/models/add_users_dto.py +101 -0
- immich/client/models/admin_onboarding_update_dto.py +82 -0
- immich/client/models/album_response_dto.py +199 -0
- immich/client/models/album_statistics_response_dto.py +90 -0
- immich/client/models/album_user_add_dto.py +87 -0
- immich/client/models/album_user_create_dto.py +87 -0
- immich/client/models/album_user_response_dto.py +95 -0
- immich/client/models/album_user_role.py +34 -0
- immich/client/models/albums_add_assets_dto.py +86 -0
- immich/client/models/albums_add_assets_response_dto.py +86 -0
- immich/client/models/albums_response.py +83 -0
- immich/client/models/albums_update.py +85 -0
- immich/client/models/api_key_create_dto.py +87 -0
- immich/client/models/api_key_create_response_dto.py +94 -0
- immich/client/models/api_key_response_dto.py +102 -0
- immich/client/models/api_key_update_dto.py +87 -0
- immich/client/models/asset_bulk_delete_dto.py +84 -0
- immich/client/models/asset_bulk_update_dto.py +143 -0
- immich/client/models/asset_bulk_upload_check_dto.py +98 -0
- immich/client/models/asset_bulk_upload_check_item.py +85 -0
- immich/client/models/asset_bulk_upload_check_response_dto.py +101 -0
- immich/client/models/asset_bulk_upload_check_result.py +126 -0
- immich/client/models/asset_copy_dto.py +113 -0
- immich/client/models/asset_delta_sync_dto.py +87 -0
- immich/client/models/asset_delta_sync_response_dto.py +102 -0
- immich/client/models/asset_face_create_dto.py +110 -0
- immich/client/models/asset_face_delete_dto.py +82 -0
- immich/client/models/asset_face_response_dto.py +125 -0
- immich/client/models/asset_face_update_dto.py +96 -0
- immich/client/models/asset_face_update_item.py +86 -0
- immich/client/models/asset_face_without_person_response_dto.py +111 -0
- immich/client/models/asset_full_sync_dto.py +95 -0
- immich/client/models/asset_ids_dto.py +83 -0
- immich/client/models/asset_ids_response_dto.py +109 -0
- immich/client/models/asset_job_name.py +36 -0
- immich/client/models/asset_jobs_dto.py +87 -0
- immich/client/models/asset_media_response_dto.py +84 -0
- immich/client/models/asset_media_size.py +35 -0
- immich/client/models/asset_media_status.py +35 -0
- immich/client/models/asset_metadata_key.py +33 -0
- immich/client/models/asset_metadata_response_dto.py +92 -0
- immich/client/models/asset_metadata_upsert_dto.py +101 -0
- immich/client/models/asset_metadata_upsert_item_dto.py +84 -0
- immich/client/models/asset_ocr_response_dto.py +145 -0
- immich/client/models/asset_order.py +34 -0
- immich/client/models/asset_response_dto.py +291 -0
- immich/client/models/asset_stack_response_dto.py +90 -0
- immich/client/models/asset_stats_response_dto.py +90 -0
- immich/client/models/asset_type_enum.py +36 -0
- immich/client/models/asset_visibility.py +36 -0
- immich/client/models/audio_codec.py +36 -0
- immich/client/models/auth_status_response_dto.py +100 -0
- immich/client/models/avatar_update.py +83 -0
- immich/client/models/bulk_id_error_reason.py +36 -0
- immich/client/models/bulk_id_response_dto.py +102 -0
- immich/client/models/bulk_ids_dto.py +83 -0
- immich/client/models/cast_response.py +88 -0
- immich/client/models/cast_update.py +82 -0
- immich/client/models/change_password_dto.py +101 -0
- immich/client/models/check_existing_assets_dto.py +91 -0
- immich/client/models/check_existing_assets_response_dto.py +82 -0
- immich/client/models/clip_config.py +85 -0
- immich/client/models/colorspace.py +34 -0
- immich/client/models/contributor_count_response_dto.py +85 -0
- immich/client/models/cq_mode.py +35 -0
- immich/client/models/create_album_dto.py +112 -0
- immich/client/models/create_library_dto.py +103 -0
- immich/client/models/create_profile_image_response_dto.py +95 -0
- immich/client/models/database_backup_config.py +94 -0
- immich/client/models/download_archive_info.py +85 -0
- immich/client/models/download_info_dto.py +96 -0
- immich/client/models/download_response.py +90 -0
- immich/client/models/download_response_dto.py +100 -0
- immich/client/models/download_update.py +93 -0
- immich/client/models/duplicate_detection_config.py +89 -0
- immich/client/models/duplicate_response_dto.py +98 -0
- immich/client/models/email_notifications_response.py +90 -0
- immich/client/models/email_notifications_update.py +90 -0
- immich/client/models/exif_response_dto.py +284 -0
- immich/client/models/face_dto.py +83 -0
- immich/client/models/facial_recognition_config.py +107 -0
- immich/client/models/folders_response.py +92 -0
- immich/client/models/folders_update.py +85 -0
- immich/client/models/image_format.py +34 -0
- immich/client/models/job_create_dto.py +83 -0
- immich/client/models/job_name.py +87 -0
- immich/client/models/job_settings_dto.py +83 -0
- immich/client/models/library_response_dto.py +118 -0
- immich/client/models/library_stats_response_dto.py +92 -0
- immich/client/models/license_key_dto.py +98 -0
- immich/client/models/license_response_dto.py +101 -0
- immich/client/models/log_level.py +38 -0
- immich/client/models/login_credential_dto.py +85 -0
- immich/client/models/login_response_dto.py +109 -0
- immich/client/models/logout_response_dto.py +85 -0
- immich/client/models/machine_learning_availability_checks_dto.py +90 -0
- immich/client/models/maintenance_action.py +34 -0
- immich/client/models/maintenance_auth_dto.py +82 -0
- immich/client/models/maintenance_login_dto.py +82 -0
- immich/client/models/manual_job_name.py +38 -0
- immich/client/models/map_marker_response_dto.py +111 -0
- immich/client/models/map_reverse_geocode_response_dto.py +105 -0
- immich/client/models/memories_response.py +92 -0
- immich/client/models/memories_update.py +86 -0
- immich/client/models/memory_create_dto.py +112 -0
- immich/client/models/memory_response_dto.py +142 -0
- immich/client/models/memory_search_order.py +35 -0
- immich/client/models/memory_statistics_response_dto.py +82 -0
- immich/client/models/memory_type.py +33 -0
- immich/client/models/memory_update_dto.py +91 -0
- immich/client/models/merge_person_dto.py +83 -0
- immich/client/models/metadata_search_dto.py +277 -0
- immich/client/models/notification_create_dto.py +120 -0
- immich/client/models/notification_delete_all_dto.py +83 -0
- immich/client/models/notification_dto.py +112 -0
- immich/client/models/notification_level.py +36 -0
- immich/client/models/notification_type.py +38 -0
- immich/client/models/notification_update_all_dto.py +90 -0
- immich/client/models/notification_update_dto.py +88 -0
- immich/client/models/o_auth_authorize_response_dto.py +82 -0
- immich/client/models/o_auth_callback_dto.py +90 -0
- immich/client/models/o_auth_config_dto.py +90 -0
- immich/client/models/o_auth_token_endpoint_auth_method.py +34 -0
- immich/client/models/ocr_config.py +109 -0
- immich/client/models/on_this_day_dto.py +86 -0
- immich/client/models/onboarding_dto.py +82 -0
- immich/client/models/onboarding_response_dto.py +82 -0
- immich/client/models/partner_create_dto.py +83 -0
- immich/client/models/partner_direction.py +34 -0
- immich/client/models/partner_response_dto.py +108 -0
- immich/client/models/partner_update_dto.py +82 -0
- immich/client/models/people_response.py +92 -0
- immich/client/models/people_response_dto.py +104 -0
- immich/client/models/people_update.py +85 -0
- immich/client/models/people_update_dto.py +96 -0
- immich/client/models/people_update_item.py +128 -0
- immich/client/models/permission.py +177 -0
- immich/client/models/person_create_dto.py +117 -0
- immich/client/models/person_response_dto.py +115 -0
- immich/client/models/person_statistics_response_dto.py +82 -0
- immich/client/models/person_update_dto.py +125 -0
- immich/client/models/person_with_faces_response_dto.py +133 -0
- immich/client/models/pin_code_change_dto.py +90 -0
- immich/client/models/pin_code_reset_dto.py +85 -0
- immich/client/models/pin_code_setup_dto.py +82 -0
- immich/client/models/places_response_dto.py +100 -0
- immich/client/models/plugin_action_response_dto.py +112 -0
- immich/client/models/plugin_context_type.py +35 -0
- immich/client/models/plugin_filter_response_dto.py +112 -0
- immich/client/models/plugin_response_dto.py +139 -0
- immich/client/models/plugin_trigger_response_dto.py +87 -0
- immich/client/models/plugin_trigger_type.py +34 -0
- immich/client/models/purchase_response.py +88 -0
- immich/client/models/purchase_update.py +92 -0
- immich/client/models/queue_command.py +37 -0
- immich/client/models/queue_command_dto.py +86 -0
- immich/client/models/queue_delete_dto.py +85 -0
- immich/client/models/queue_job_response_dto.py +93 -0
- immich/client/models/queue_job_status.py +38 -0
- immich/client/models/queue_name.py +49 -0
- immich/client/models/queue_response_dto.py +97 -0
- immich/client/models/queue_response_legacy_dto.py +100 -0
- immich/client/models/queue_statistics_dto.py +103 -0
- immich/client/models/queue_status_legacy_dto.py +85 -0
- immich/client/models/queue_update_dto.py +82 -0
- immich/client/models/queues_response_legacy_dto.py +242 -0
- immich/client/models/random_search_dto.py +234 -0
- immich/client/models/ratings_response.py +84 -0
- immich/client/models/ratings_update.py +82 -0
- immich/client/models/reaction_level.py +34 -0
- immich/client/models/reaction_type.py +34 -0
- immich/client/models/reverse_geocoding_state_response_dto.py +101 -0
- immich/client/models/search_album_response_dto.py +114 -0
- immich/client/models/search_asset_response_dto.py +127 -0
- immich/client/models/search_explore_item.py +94 -0
- immich/client/models/search_explore_response_dto.py +98 -0
- immich/client/models/search_facet_count_response_dto.py +85 -0
- immich/client/models/search_facet_response_dto.py +103 -0
- immich/client/models/search_response_dto.py +100 -0
- immich/client/models/search_statistics_response_dto.py +82 -0
- immich/client/models/search_suggestion_type.py +38 -0
- immich/client/models/server_about_response_dto.py +156 -0
- immich/client/models/server_apk_links_dto.py +97 -0
- immich/client/models/server_config_dto.py +118 -0
- immich/client/models/server_features_dto.py +130 -0
- immich/client/models/server_media_types_response_dto.py +90 -0
- immich/client/models/server_ping_response.py +87 -0
- immich/client/models/server_stats_response_dto.py +119 -0
- immich/client/models/server_storage_response_dto.py +108 -0
- immich/client/models/server_theme_dto.py +82 -0
- immich/client/models/server_version_history_response_dto.py +91 -0
- immich/client/models/server_version_response_dto.py +90 -0
- immich/client/models/session_create_dto.py +96 -0
- immich/client/models/session_create_response_dto.py +120 -0
- immich/client/models/session_response_dto.py +117 -0
- immich/client/models/session_unlock_dto.py +85 -0
- immich/client/models/session_update_dto.py +84 -0
- immich/client/models/set_maintenance_mode_dto.py +83 -0
- immich/client/models/shared_link_create_dto.py +142 -0
- immich/client/models/shared_link_edit_dto.py +134 -0
- immich/client/models/shared_link_response_dto.py +173 -0
- immich/client/models/shared_link_type.py +34 -0
- immich/client/models/shared_links_response.py +92 -0
- immich/client/models/shared_links_update.py +85 -0
- immich/client/models/sign_up_dto.py +90 -0
- immich/client/models/smart_search_dto.py +245 -0
- immich/client/models/source_type.py +35 -0
- immich/client/models/stack_create_dto.py +86 -0
- immich/client/models/stack_response_dto.py +100 -0
- immich/client/models/stack_update_dto.py +83 -0
- immich/client/models/statistics_search_dto.py +217 -0
- immich/client/models/sync_ack_delete_dto.py +83 -0
- immich/client/models/sync_ack_dto.py +84 -0
- immich/client/models/sync_ack_set_dto.py +83 -0
- immich/client/models/sync_album_delete_v1.py +82 -0
- immich/client/models/sync_album_to_asset_delete_v1.py +85 -0
- immich/client/models/sync_album_to_asset_v1.py +85 -0
- immich/client/models/sync_album_user_delete_v1.py +85 -0
- immich/client/models/sync_album_user_v1.py +91 -0
- immich/client/models/sync_album_v1.py +122 -0
- immich/client/models/sync_asset_delete_v1.py +82 -0
- immich/client/models/sync_asset_exif_v1.py +296 -0
- immich/client/models/sync_asset_face_delete_v1.py +82 -0
- immich/client/models/sync_asset_face_v1.py +120 -0
- immich/client/models/sync_asset_metadata_delete_v1.py +86 -0
- immich/client/models/sync_asset_metadata_v1.py +91 -0
- immich/client/models/sync_asset_v1.py +187 -0
- immich/client/models/sync_auth_user_v1.py +154 -0
- immich/client/models/sync_entity_type.py +79 -0
- immich/client/models/sync_memory_asset_delete_v1.py +85 -0
- immich/client/models/sync_memory_asset_v1.py +85 -0
- immich/client/models/sync_memory_delete_v1.py +82 -0
- immich/client/models/sync_memory_v1.py +143 -0
- immich/client/models/sync_partner_delete_v1.py +88 -0
- immich/client/models/sync_partner_v1.py +90 -0
- immich/client/models/sync_person_delete_v1.py +82 -0
- immich/client/models/sync_person_v1.py +131 -0
- immich/client/models/sync_request_type.py +52 -0
- immich/client/models/sync_stack_delete_v1.py +82 -0
- immich/client/models/sync_stack_v1.py +101 -0
- immich/client/models/sync_stream_dto.py +86 -0
- immich/client/models/sync_user_delete_v1.py +82 -0
- immich/client/models/sync_user_metadata_delete_v1.py +84 -0
- immich/client/models/sync_user_metadata_v1.py +91 -0
- immich/client/models/sync_user_v1.py +118 -0
- immich/client/models/system_config_backups_dto.py +92 -0
- immich/client/models/system_config_dto.py +302 -0
- immich/client/models/system_config_f_fmpeg_dto.py +156 -0
- immich/client/models/system_config_faces_dto.py +82 -0
- immich/client/models/system_config_generated_fullsize_image_dto.py +92 -0
- immich/client/models/system_config_generated_image_dto.py +92 -0
- immich/client/models/system_config_image_dto.py +124 -0
- immich/client/models/system_config_job_dto.py +194 -0
- immich/client/models/system_config_library_dto.py +104 -0
- immich/client/models/system_config_library_scan_dto.py +85 -0
- immich/client/models/system_config_library_watch_dto.py +82 -0
- immich/client/models/system_config_logging_dto.py +86 -0
- immich/client/models/system_config_machine_learning_dto.py +147 -0
- immich/client/models/system_config_map_dto.py +90 -0
- immich/client/models/system_config_metadata_dto.py +92 -0
- immich/client/models/system_config_new_version_check_dto.py +82 -0
- immich/client/models/system_config_nightly_tasks_dto.py +103 -0
- immich/client/models/system_config_notifications_dto.py +92 -0
- immich/client/models/system_config_o_auth_dto.py +155 -0
- immich/client/models/system_config_password_login_dto.py +82 -0
- immich/client/models/system_config_reverse_geocoding_dto.py +82 -0
- immich/client/models/system_config_server_dto.py +94 -0
- immich/client/models/system_config_smtp_dto.py +100 -0
- immich/client/models/system_config_smtp_transport_dto.py +107 -0
- immich/client/models/system_config_storage_template_dto.py +94 -0
- immich/client/models/system_config_template_emails_dto.py +94 -0
- immich/client/models/system_config_template_storage_option_dto.py +109 -0
- immich/client/models/system_config_templates_dto.py +94 -0
- immich/client/models/system_config_theme_dto.py +82 -0
- immich/client/models/system_config_trash_dto.py +86 -0
- immich/client/models/system_config_user_dto.py +83 -0
- immich/client/models/tag_bulk_assets_dto.py +86 -0
- immich/client/models/tag_bulk_assets_response_dto.py +82 -0
- immich/client/models/tag_create_dto.py +111 -0
- immich/client/models/tag_response_dto.py +107 -0
- immich/client/models/tag_update_dto.py +87 -0
- immich/client/models/tag_upsert_dto.py +82 -0
- immich/client/models/tags_response.py +92 -0
- immich/client/models/tags_update.py +85 -0
- immich/client/models/template_dto.py +82 -0
- immich/client/models/template_response_dto.py +83 -0
- immich/client/models/test_email_response_dto.py +82 -0
- immich/client/models/time_bucket_asset_response_dto.py +195 -0
- immich/client/models/time_buckets_response_dto.py +88 -0
- immich/client/models/tone_mapping.py +36 -0
- immich/client/models/transcode_hw_accel.py +37 -0
- immich/client/models/transcode_policy.py +37 -0
- immich/client/models/trash_response_dto.py +82 -0
- immich/client/models/update_album_dto.py +106 -0
- immich/client/models/update_album_user_dto.py +83 -0
- immich/client/models/update_asset_dto.py +135 -0
- immich/client/models/update_library_dto.py +95 -0
- immich/client/models/usage_by_user_dto.py +117 -0
- immich/client/models/user_admin_create_dto.py +136 -0
- immich/client/models/user_admin_delete_dto.py +82 -0
- immich/client/models/user_admin_response_dto.py +176 -0
- immich/client/models/user_admin_update_dto.py +141 -0
- immich/client/models/user_avatar_color.py +42 -0
- immich/client/models/user_license.py +91 -0
- immich/client/models/user_metadata_key.py +35 -0
- immich/client/models/user_preferences_response_dto.py +186 -0
- immich/client/models/user_preferences_update_dto.py +197 -0
- immich/client/models/user_response_dto.py +105 -0
- immich/client/models/user_status.py +35 -0
- immich/client/models/user_update_me_dto.py +98 -0
- immich/client/models/validate_access_token_response_dto.py +82 -0
- immich/client/models/validate_library_dto.py +93 -0
- immich/client/models/validate_library_import_path_response_dto.py +92 -0
- immich/client/models/validate_library_response_dto.py +103 -0
- immich/client/models/version_check_state_response_dto.py +98 -0
- immich/client/models/video_codec.py +36 -0
- immich/client/models/video_container.py +36 -0
- immich/client/models/workflow_action_item_dto.py +89 -0
- immich/client/models/workflow_action_response_dto.py +105 -0
- immich/client/models/workflow_create_dto.py +128 -0
- immich/client/models/workflow_filter_item_dto.py +89 -0
- immich/client/models/workflow_filter_response_dto.py +105 -0
- immich/client/models/workflow_response_dto.py +144 -0
- immich/client/models/workflow_update_dto.py +128 -0
- immich/client/py.typed +0 -0
- immich/client/rest.py +199 -0
- immich/client_wrapper/__init__.py +15 -0
- immich/client_wrapper/assets_api_wrapped.py +87 -0
- immich/client_wrapper/download_api_wrapped.py +111 -0
- immich/client_wrapper/users_api_wrapped.py +41 -0
- immich/py.typed +0 -0
- immich/sdk.py +365 -0
- immich/utils.py +100 -0
- immich-1.2.1.dist-info/METADATA +166 -0
- immich-1.2.1.dist-info/RECORD +387 -0
- immich-1.2.1.dist-info/WHEEL +4 -0
- immich-1.2.1.dist-info/licenses/LICENSE +9 -0
|
@@ -0,0 +1,2199 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Immich
|
|
5
|
+
|
|
6
|
+
Immich API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
from pydantic import StrictBytes
|
|
21
|
+
from uuid import UUID
|
|
22
|
+
from immich.client.models.asset_delta_sync_dto import AssetDeltaSyncDto
|
|
23
|
+
from immich.client.models.asset_delta_sync_response_dto import AssetDeltaSyncResponseDto
|
|
24
|
+
from immich.client.models.asset_full_sync_dto import AssetFullSyncDto
|
|
25
|
+
from immich.client.models.asset_media_response_dto import AssetMediaResponseDto
|
|
26
|
+
from immich.client.models.asset_response_dto import AssetResponseDto
|
|
27
|
+
from immich.client.models.partner_response_dto import PartnerResponseDto
|
|
28
|
+
from immich.client.models.queue_command_dto import QueueCommandDto
|
|
29
|
+
from immich.client.models.queue_name import QueueName
|
|
30
|
+
from immich.client.models.queue_response_legacy_dto import QueueResponseLegacyDto
|
|
31
|
+
from immich.client.models.queues_response_legacy_dto import QueuesResponseLegacyDto
|
|
32
|
+
|
|
33
|
+
from immich.client.api_client import ApiClient, RequestSerialized
|
|
34
|
+
from immich.client.api_response import ApiResponse
|
|
35
|
+
from immich.client.rest import RESTResponseType
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class DeprecatedApi:
|
|
39
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
40
|
+
Ref: https://openapi-generator.tech
|
|
41
|
+
|
|
42
|
+
Do not edit the class manually.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def __init__(self, api_client=None) -> None:
|
|
46
|
+
if api_client is None:
|
|
47
|
+
api_client = ApiClient.get_default()
|
|
48
|
+
self.api_client = api_client
|
|
49
|
+
|
|
50
|
+
@validate_call
|
|
51
|
+
async def create_partner_deprecated(
|
|
52
|
+
self,
|
|
53
|
+
id: UUID,
|
|
54
|
+
_request_timeout: Union[
|
|
55
|
+
None,
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Tuple[
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
59
|
+
],
|
|
60
|
+
] = None,
|
|
61
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_content_type: Optional[StrictStr] = None,
|
|
63
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
64
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
65
|
+
) -> PartnerResponseDto:
|
|
66
|
+
"""(Deprecated) Create a partner
|
|
67
|
+
|
|
68
|
+
Create a new partner to share assets with.
|
|
69
|
+
|
|
70
|
+
:param id: (required)
|
|
71
|
+
:type id: UUID
|
|
72
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
73
|
+
number provided, it will be total request
|
|
74
|
+
timeout. It can also be a pair (tuple) of
|
|
75
|
+
(connection, read) timeouts.
|
|
76
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
77
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
78
|
+
request; this effectively ignores the
|
|
79
|
+
authentication in the spec for a single request.
|
|
80
|
+
:type _request_auth: dict, optional
|
|
81
|
+
:param _content_type: force content-type for the request.
|
|
82
|
+
:type _content_type: str, Optional
|
|
83
|
+
:param _headers: set to override the headers for a single
|
|
84
|
+
request; this effectively ignores the headers
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _headers: dict, optional
|
|
87
|
+
:param _host_index: set to override the host_index for a single
|
|
88
|
+
request; this effectively ignores the host_index
|
|
89
|
+
in the spec for a single request.
|
|
90
|
+
:type _host_index: int, optional
|
|
91
|
+
:return: Returns the result object.
|
|
92
|
+
""" # noqa: E501
|
|
93
|
+
warnings.warn("POST /partners/{id} is deprecated.", DeprecationWarning)
|
|
94
|
+
|
|
95
|
+
_param = self._create_partner_deprecated_serialize(
|
|
96
|
+
id=id,
|
|
97
|
+
_request_auth=_request_auth,
|
|
98
|
+
_content_type=_content_type,
|
|
99
|
+
_headers=_headers,
|
|
100
|
+
_host_index=_host_index,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
104
|
+
"201": "PartnerResponseDto",
|
|
105
|
+
}
|
|
106
|
+
response_data = await self.api_client.call_api(
|
|
107
|
+
*_param, _request_timeout=_request_timeout
|
|
108
|
+
)
|
|
109
|
+
await response_data.read()
|
|
110
|
+
return self.api_client.response_deserialize(
|
|
111
|
+
response_data=response_data,
|
|
112
|
+
response_types_map=_response_types_map,
|
|
113
|
+
).data
|
|
114
|
+
|
|
115
|
+
@validate_call
|
|
116
|
+
async def create_partner_deprecated_with_http_info(
|
|
117
|
+
self,
|
|
118
|
+
id: UUID,
|
|
119
|
+
_request_timeout: Union[
|
|
120
|
+
None,
|
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
122
|
+
Tuple[
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
124
|
+
],
|
|
125
|
+
] = None,
|
|
126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
+
_content_type: Optional[StrictStr] = None,
|
|
128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
+
) -> ApiResponse[PartnerResponseDto]:
|
|
131
|
+
"""(Deprecated) Create a partner
|
|
132
|
+
|
|
133
|
+
Create a new partner to share assets with.
|
|
134
|
+
|
|
135
|
+
:param id: (required)
|
|
136
|
+
:type id: UUID
|
|
137
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
138
|
+
number provided, it will be total request
|
|
139
|
+
timeout. It can also be a pair (tuple) of
|
|
140
|
+
(connection, read) timeouts.
|
|
141
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
142
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
143
|
+
request; this effectively ignores the
|
|
144
|
+
authentication in the spec for a single request.
|
|
145
|
+
:type _request_auth: dict, optional
|
|
146
|
+
:param _content_type: force content-type for the request.
|
|
147
|
+
:type _content_type: str, Optional
|
|
148
|
+
:param _headers: set to override the headers for a single
|
|
149
|
+
request; this effectively ignores the headers
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _headers: dict, optional
|
|
152
|
+
:param _host_index: set to override the host_index for a single
|
|
153
|
+
request; this effectively ignores the host_index
|
|
154
|
+
in the spec for a single request.
|
|
155
|
+
:type _host_index: int, optional
|
|
156
|
+
:return: Returns the result object.
|
|
157
|
+
""" # noqa: E501
|
|
158
|
+
warnings.warn("POST /partners/{id} is deprecated.", DeprecationWarning)
|
|
159
|
+
|
|
160
|
+
_param = self._create_partner_deprecated_serialize(
|
|
161
|
+
id=id,
|
|
162
|
+
_request_auth=_request_auth,
|
|
163
|
+
_content_type=_content_type,
|
|
164
|
+
_headers=_headers,
|
|
165
|
+
_host_index=_host_index,
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
169
|
+
"201": "PartnerResponseDto",
|
|
170
|
+
}
|
|
171
|
+
response_data = await self.api_client.call_api(
|
|
172
|
+
*_param, _request_timeout=_request_timeout
|
|
173
|
+
)
|
|
174
|
+
await response_data.read()
|
|
175
|
+
return self.api_client.response_deserialize(
|
|
176
|
+
response_data=response_data,
|
|
177
|
+
response_types_map=_response_types_map,
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
@validate_call
|
|
181
|
+
async def create_partner_deprecated_without_preload_content(
|
|
182
|
+
self,
|
|
183
|
+
id: UUID,
|
|
184
|
+
_request_timeout: Union[
|
|
185
|
+
None,
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Tuple[
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
189
|
+
],
|
|
190
|
+
] = None,
|
|
191
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_content_type: Optional[StrictStr] = None,
|
|
193
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
194
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
195
|
+
) -> RESTResponseType:
|
|
196
|
+
"""(Deprecated) Create a partner
|
|
197
|
+
|
|
198
|
+
Create a new partner to share assets with.
|
|
199
|
+
|
|
200
|
+
:param id: (required)
|
|
201
|
+
:type id: UUID
|
|
202
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
203
|
+
number provided, it will be total request
|
|
204
|
+
timeout. It can also be a pair (tuple) of
|
|
205
|
+
(connection, read) timeouts.
|
|
206
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
207
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
208
|
+
request; this effectively ignores the
|
|
209
|
+
authentication in the spec for a single request.
|
|
210
|
+
:type _request_auth: dict, optional
|
|
211
|
+
:param _content_type: force content-type for the request.
|
|
212
|
+
:type _content_type: str, Optional
|
|
213
|
+
:param _headers: set to override the headers for a single
|
|
214
|
+
request; this effectively ignores the headers
|
|
215
|
+
in the spec for a single request.
|
|
216
|
+
:type _headers: dict, optional
|
|
217
|
+
:param _host_index: set to override the host_index for a single
|
|
218
|
+
request; this effectively ignores the host_index
|
|
219
|
+
in the spec for a single request.
|
|
220
|
+
:type _host_index: int, optional
|
|
221
|
+
:return: Returns the result object.
|
|
222
|
+
""" # noqa: E501
|
|
223
|
+
warnings.warn("POST /partners/{id} is deprecated.", DeprecationWarning)
|
|
224
|
+
|
|
225
|
+
_param = self._create_partner_deprecated_serialize(
|
|
226
|
+
id=id,
|
|
227
|
+
_request_auth=_request_auth,
|
|
228
|
+
_content_type=_content_type,
|
|
229
|
+
_headers=_headers,
|
|
230
|
+
_host_index=_host_index,
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
234
|
+
"201": "PartnerResponseDto",
|
|
235
|
+
}
|
|
236
|
+
response_data = await self.api_client.call_api(
|
|
237
|
+
*_param, _request_timeout=_request_timeout
|
|
238
|
+
)
|
|
239
|
+
return response_data.response
|
|
240
|
+
|
|
241
|
+
def _create_partner_deprecated_serialize(
|
|
242
|
+
self,
|
|
243
|
+
id,
|
|
244
|
+
_request_auth,
|
|
245
|
+
_content_type,
|
|
246
|
+
_headers,
|
|
247
|
+
_host_index,
|
|
248
|
+
) -> RequestSerialized:
|
|
249
|
+
_host = None
|
|
250
|
+
|
|
251
|
+
_collection_formats: Dict[str, str] = {}
|
|
252
|
+
|
|
253
|
+
_path_params: Dict[str, str] = {}
|
|
254
|
+
_query_params: List[Tuple[str, str]] = []
|
|
255
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
256
|
+
_form_params: List[Tuple[str, str]] = []
|
|
257
|
+
_files: Dict[
|
|
258
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
259
|
+
] = {}
|
|
260
|
+
_body_params: Optional[bytes] = None
|
|
261
|
+
|
|
262
|
+
# process the path parameters
|
|
263
|
+
if id is not None:
|
|
264
|
+
_path_params["id"] = id
|
|
265
|
+
# process the query parameters
|
|
266
|
+
# process the header parameters
|
|
267
|
+
# process the form parameters
|
|
268
|
+
# process the body parameter
|
|
269
|
+
|
|
270
|
+
# set the HTTP header `Accept`
|
|
271
|
+
if "Accept" not in _header_params:
|
|
272
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
273
|
+
["application/json"]
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
# authentication setting
|
|
277
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
278
|
+
|
|
279
|
+
return self.api_client.param_serialize(
|
|
280
|
+
method="POST",
|
|
281
|
+
resource_path="/partners/{id}",
|
|
282
|
+
path_params=_path_params,
|
|
283
|
+
query_params=_query_params,
|
|
284
|
+
header_params=_header_params,
|
|
285
|
+
body=_body_params,
|
|
286
|
+
post_params=_form_params,
|
|
287
|
+
files=_files,
|
|
288
|
+
auth_settings=_auth_settings,
|
|
289
|
+
collection_formats=_collection_formats,
|
|
290
|
+
_host=_host,
|
|
291
|
+
_request_auth=_request_auth,
|
|
292
|
+
)
|
|
293
|
+
|
|
294
|
+
@validate_call
|
|
295
|
+
async def get_all_user_assets_by_device_id(
|
|
296
|
+
self,
|
|
297
|
+
device_id: StrictStr,
|
|
298
|
+
_request_timeout: Union[
|
|
299
|
+
None,
|
|
300
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
301
|
+
Tuple[
|
|
302
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
303
|
+
],
|
|
304
|
+
] = None,
|
|
305
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
306
|
+
_content_type: Optional[StrictStr] = None,
|
|
307
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
308
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
309
|
+
) -> List[str]:
|
|
310
|
+
"""(Deprecated) Retrieve assets by device ID
|
|
311
|
+
|
|
312
|
+
Get all asset of a device that are in the database, ID only.
|
|
313
|
+
|
|
314
|
+
:param device_id: (required)
|
|
315
|
+
:type device_id: str
|
|
316
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
317
|
+
number provided, it will be total request
|
|
318
|
+
timeout. It can also be a pair (tuple) of
|
|
319
|
+
(connection, read) timeouts.
|
|
320
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
321
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
322
|
+
request; this effectively ignores the
|
|
323
|
+
authentication in the spec for a single request.
|
|
324
|
+
:type _request_auth: dict, optional
|
|
325
|
+
:param _content_type: force content-type for the request.
|
|
326
|
+
:type _content_type: str, Optional
|
|
327
|
+
:param _headers: set to override the headers for a single
|
|
328
|
+
request; this effectively ignores the headers
|
|
329
|
+
in the spec for a single request.
|
|
330
|
+
:type _headers: dict, optional
|
|
331
|
+
:param _host_index: set to override the host_index for a single
|
|
332
|
+
request; this effectively ignores the host_index
|
|
333
|
+
in the spec for a single request.
|
|
334
|
+
:type _host_index: int, optional
|
|
335
|
+
:return: Returns the result object.
|
|
336
|
+
""" # noqa: E501
|
|
337
|
+
warnings.warn(
|
|
338
|
+
"GET /assets/device/{deviceId} is deprecated.", DeprecationWarning
|
|
339
|
+
)
|
|
340
|
+
|
|
341
|
+
_param = self._get_all_user_assets_by_device_id_serialize(
|
|
342
|
+
device_id=device_id,
|
|
343
|
+
_request_auth=_request_auth,
|
|
344
|
+
_content_type=_content_type,
|
|
345
|
+
_headers=_headers,
|
|
346
|
+
_host_index=_host_index,
|
|
347
|
+
)
|
|
348
|
+
|
|
349
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
350
|
+
"200": "List[str]",
|
|
351
|
+
}
|
|
352
|
+
response_data = await self.api_client.call_api(
|
|
353
|
+
*_param, _request_timeout=_request_timeout
|
|
354
|
+
)
|
|
355
|
+
await response_data.read()
|
|
356
|
+
return self.api_client.response_deserialize(
|
|
357
|
+
response_data=response_data,
|
|
358
|
+
response_types_map=_response_types_map,
|
|
359
|
+
).data
|
|
360
|
+
|
|
361
|
+
@validate_call
|
|
362
|
+
async def get_all_user_assets_by_device_id_with_http_info(
|
|
363
|
+
self,
|
|
364
|
+
device_id: StrictStr,
|
|
365
|
+
_request_timeout: Union[
|
|
366
|
+
None,
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
368
|
+
Tuple[
|
|
369
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
370
|
+
],
|
|
371
|
+
] = None,
|
|
372
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
373
|
+
_content_type: Optional[StrictStr] = None,
|
|
374
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
375
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
376
|
+
) -> ApiResponse[List[str]]:
|
|
377
|
+
"""(Deprecated) Retrieve assets by device ID
|
|
378
|
+
|
|
379
|
+
Get all asset of a device that are in the database, ID only.
|
|
380
|
+
|
|
381
|
+
:param device_id: (required)
|
|
382
|
+
:type device_id: str
|
|
383
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
384
|
+
number provided, it will be total request
|
|
385
|
+
timeout. It can also be a pair (tuple) of
|
|
386
|
+
(connection, read) timeouts.
|
|
387
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
388
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
389
|
+
request; this effectively ignores the
|
|
390
|
+
authentication in the spec for a single request.
|
|
391
|
+
:type _request_auth: dict, optional
|
|
392
|
+
:param _content_type: force content-type for the request.
|
|
393
|
+
:type _content_type: str, Optional
|
|
394
|
+
:param _headers: set to override the headers for a single
|
|
395
|
+
request; this effectively ignores the headers
|
|
396
|
+
in the spec for a single request.
|
|
397
|
+
:type _headers: dict, optional
|
|
398
|
+
:param _host_index: set to override the host_index for a single
|
|
399
|
+
request; this effectively ignores the host_index
|
|
400
|
+
in the spec for a single request.
|
|
401
|
+
:type _host_index: int, optional
|
|
402
|
+
:return: Returns the result object.
|
|
403
|
+
""" # noqa: E501
|
|
404
|
+
warnings.warn(
|
|
405
|
+
"GET /assets/device/{deviceId} is deprecated.", DeprecationWarning
|
|
406
|
+
)
|
|
407
|
+
|
|
408
|
+
_param = self._get_all_user_assets_by_device_id_serialize(
|
|
409
|
+
device_id=device_id,
|
|
410
|
+
_request_auth=_request_auth,
|
|
411
|
+
_content_type=_content_type,
|
|
412
|
+
_headers=_headers,
|
|
413
|
+
_host_index=_host_index,
|
|
414
|
+
)
|
|
415
|
+
|
|
416
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
417
|
+
"200": "List[str]",
|
|
418
|
+
}
|
|
419
|
+
response_data = await self.api_client.call_api(
|
|
420
|
+
*_param, _request_timeout=_request_timeout
|
|
421
|
+
)
|
|
422
|
+
await response_data.read()
|
|
423
|
+
return self.api_client.response_deserialize(
|
|
424
|
+
response_data=response_data,
|
|
425
|
+
response_types_map=_response_types_map,
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
@validate_call
|
|
429
|
+
async def get_all_user_assets_by_device_id_without_preload_content(
|
|
430
|
+
self,
|
|
431
|
+
device_id: StrictStr,
|
|
432
|
+
_request_timeout: Union[
|
|
433
|
+
None,
|
|
434
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
435
|
+
Tuple[
|
|
436
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
437
|
+
],
|
|
438
|
+
] = None,
|
|
439
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
440
|
+
_content_type: Optional[StrictStr] = None,
|
|
441
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
442
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
443
|
+
) -> RESTResponseType:
|
|
444
|
+
"""(Deprecated) Retrieve assets by device ID
|
|
445
|
+
|
|
446
|
+
Get all asset of a device that are in the database, ID only.
|
|
447
|
+
|
|
448
|
+
:param device_id: (required)
|
|
449
|
+
:type device_id: str
|
|
450
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
451
|
+
number provided, it will be total request
|
|
452
|
+
timeout. It can also be a pair (tuple) of
|
|
453
|
+
(connection, read) timeouts.
|
|
454
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
455
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
456
|
+
request; this effectively ignores the
|
|
457
|
+
authentication in the spec for a single request.
|
|
458
|
+
:type _request_auth: dict, optional
|
|
459
|
+
:param _content_type: force content-type for the request.
|
|
460
|
+
:type _content_type: str, Optional
|
|
461
|
+
:param _headers: set to override the headers for a single
|
|
462
|
+
request; this effectively ignores the headers
|
|
463
|
+
in the spec for a single request.
|
|
464
|
+
:type _headers: dict, optional
|
|
465
|
+
:param _host_index: set to override the host_index for a single
|
|
466
|
+
request; this effectively ignores the host_index
|
|
467
|
+
in the spec for a single request.
|
|
468
|
+
:type _host_index: int, optional
|
|
469
|
+
:return: Returns the result object.
|
|
470
|
+
""" # noqa: E501
|
|
471
|
+
warnings.warn(
|
|
472
|
+
"GET /assets/device/{deviceId} is deprecated.", DeprecationWarning
|
|
473
|
+
)
|
|
474
|
+
|
|
475
|
+
_param = self._get_all_user_assets_by_device_id_serialize(
|
|
476
|
+
device_id=device_id,
|
|
477
|
+
_request_auth=_request_auth,
|
|
478
|
+
_content_type=_content_type,
|
|
479
|
+
_headers=_headers,
|
|
480
|
+
_host_index=_host_index,
|
|
481
|
+
)
|
|
482
|
+
|
|
483
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
484
|
+
"200": "List[str]",
|
|
485
|
+
}
|
|
486
|
+
response_data = await self.api_client.call_api(
|
|
487
|
+
*_param, _request_timeout=_request_timeout
|
|
488
|
+
)
|
|
489
|
+
return response_data.response
|
|
490
|
+
|
|
491
|
+
def _get_all_user_assets_by_device_id_serialize(
|
|
492
|
+
self,
|
|
493
|
+
device_id,
|
|
494
|
+
_request_auth,
|
|
495
|
+
_content_type,
|
|
496
|
+
_headers,
|
|
497
|
+
_host_index,
|
|
498
|
+
) -> RequestSerialized:
|
|
499
|
+
_host = None
|
|
500
|
+
|
|
501
|
+
_collection_formats: Dict[str, str] = {}
|
|
502
|
+
|
|
503
|
+
_path_params: Dict[str, str] = {}
|
|
504
|
+
_query_params: List[Tuple[str, str]] = []
|
|
505
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
506
|
+
_form_params: List[Tuple[str, str]] = []
|
|
507
|
+
_files: Dict[
|
|
508
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
509
|
+
] = {}
|
|
510
|
+
_body_params: Optional[bytes] = None
|
|
511
|
+
|
|
512
|
+
# process the path parameters
|
|
513
|
+
if device_id is not None:
|
|
514
|
+
_path_params["deviceId"] = device_id
|
|
515
|
+
# process the query parameters
|
|
516
|
+
# process the header parameters
|
|
517
|
+
# process the form parameters
|
|
518
|
+
# process the body parameter
|
|
519
|
+
|
|
520
|
+
# set the HTTP header `Accept`
|
|
521
|
+
if "Accept" not in _header_params:
|
|
522
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
523
|
+
["application/json"]
|
|
524
|
+
)
|
|
525
|
+
|
|
526
|
+
# authentication setting
|
|
527
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
528
|
+
|
|
529
|
+
return self.api_client.param_serialize(
|
|
530
|
+
method="GET",
|
|
531
|
+
resource_path="/assets/device/{deviceId}",
|
|
532
|
+
path_params=_path_params,
|
|
533
|
+
query_params=_query_params,
|
|
534
|
+
header_params=_header_params,
|
|
535
|
+
body=_body_params,
|
|
536
|
+
post_params=_form_params,
|
|
537
|
+
files=_files,
|
|
538
|
+
auth_settings=_auth_settings,
|
|
539
|
+
collection_formats=_collection_formats,
|
|
540
|
+
_host=_host,
|
|
541
|
+
_request_auth=_request_auth,
|
|
542
|
+
)
|
|
543
|
+
|
|
544
|
+
@validate_call
|
|
545
|
+
async def get_delta_sync(
|
|
546
|
+
self,
|
|
547
|
+
asset_delta_sync_dto: AssetDeltaSyncDto,
|
|
548
|
+
_request_timeout: Union[
|
|
549
|
+
None,
|
|
550
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
551
|
+
Tuple[
|
|
552
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
553
|
+
],
|
|
554
|
+
] = None,
|
|
555
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
556
|
+
_content_type: Optional[StrictStr] = None,
|
|
557
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
558
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
559
|
+
) -> AssetDeltaSyncResponseDto:
|
|
560
|
+
"""(Deprecated) Get delta sync for user
|
|
561
|
+
|
|
562
|
+
Retrieve changed assets since the last sync for the authenticated user.
|
|
563
|
+
|
|
564
|
+
:param asset_delta_sync_dto: (required)
|
|
565
|
+
:type asset_delta_sync_dto: AssetDeltaSyncDto
|
|
566
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
567
|
+
number provided, it will be total request
|
|
568
|
+
timeout. It can also be a pair (tuple) of
|
|
569
|
+
(connection, read) timeouts.
|
|
570
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
571
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
572
|
+
request; this effectively ignores the
|
|
573
|
+
authentication in the spec for a single request.
|
|
574
|
+
:type _request_auth: dict, optional
|
|
575
|
+
:param _content_type: force content-type for the request.
|
|
576
|
+
:type _content_type: str, Optional
|
|
577
|
+
:param _headers: set to override the headers for a single
|
|
578
|
+
request; this effectively ignores the headers
|
|
579
|
+
in the spec for a single request.
|
|
580
|
+
:type _headers: dict, optional
|
|
581
|
+
:param _host_index: set to override the host_index for a single
|
|
582
|
+
request; this effectively ignores the host_index
|
|
583
|
+
in the spec for a single request.
|
|
584
|
+
:type _host_index: int, optional
|
|
585
|
+
:return: Returns the result object.
|
|
586
|
+
""" # noqa: E501
|
|
587
|
+
warnings.warn("POST /sync/delta-sync is deprecated.", DeprecationWarning)
|
|
588
|
+
|
|
589
|
+
_param = self._get_delta_sync_serialize(
|
|
590
|
+
asset_delta_sync_dto=asset_delta_sync_dto,
|
|
591
|
+
_request_auth=_request_auth,
|
|
592
|
+
_content_type=_content_type,
|
|
593
|
+
_headers=_headers,
|
|
594
|
+
_host_index=_host_index,
|
|
595
|
+
)
|
|
596
|
+
|
|
597
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
598
|
+
"200": "AssetDeltaSyncResponseDto",
|
|
599
|
+
}
|
|
600
|
+
response_data = await self.api_client.call_api(
|
|
601
|
+
*_param, _request_timeout=_request_timeout
|
|
602
|
+
)
|
|
603
|
+
await response_data.read()
|
|
604
|
+
return self.api_client.response_deserialize(
|
|
605
|
+
response_data=response_data,
|
|
606
|
+
response_types_map=_response_types_map,
|
|
607
|
+
).data
|
|
608
|
+
|
|
609
|
+
@validate_call
|
|
610
|
+
async def get_delta_sync_with_http_info(
|
|
611
|
+
self,
|
|
612
|
+
asset_delta_sync_dto: AssetDeltaSyncDto,
|
|
613
|
+
_request_timeout: Union[
|
|
614
|
+
None,
|
|
615
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
616
|
+
Tuple[
|
|
617
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
618
|
+
],
|
|
619
|
+
] = None,
|
|
620
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
621
|
+
_content_type: Optional[StrictStr] = None,
|
|
622
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
623
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
624
|
+
) -> ApiResponse[AssetDeltaSyncResponseDto]:
|
|
625
|
+
"""(Deprecated) Get delta sync for user
|
|
626
|
+
|
|
627
|
+
Retrieve changed assets since the last sync for the authenticated user.
|
|
628
|
+
|
|
629
|
+
:param asset_delta_sync_dto: (required)
|
|
630
|
+
:type asset_delta_sync_dto: AssetDeltaSyncDto
|
|
631
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
632
|
+
number provided, it will be total request
|
|
633
|
+
timeout. It can also be a pair (tuple) of
|
|
634
|
+
(connection, read) timeouts.
|
|
635
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
636
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
637
|
+
request; this effectively ignores the
|
|
638
|
+
authentication in the spec for a single request.
|
|
639
|
+
:type _request_auth: dict, optional
|
|
640
|
+
:param _content_type: force content-type for the request.
|
|
641
|
+
:type _content_type: str, Optional
|
|
642
|
+
:param _headers: set to override the headers for a single
|
|
643
|
+
request; this effectively ignores the headers
|
|
644
|
+
in the spec for a single request.
|
|
645
|
+
:type _headers: dict, optional
|
|
646
|
+
:param _host_index: set to override the host_index for a single
|
|
647
|
+
request; this effectively ignores the host_index
|
|
648
|
+
in the spec for a single request.
|
|
649
|
+
:type _host_index: int, optional
|
|
650
|
+
:return: Returns the result object.
|
|
651
|
+
""" # noqa: E501
|
|
652
|
+
warnings.warn("POST /sync/delta-sync is deprecated.", DeprecationWarning)
|
|
653
|
+
|
|
654
|
+
_param = self._get_delta_sync_serialize(
|
|
655
|
+
asset_delta_sync_dto=asset_delta_sync_dto,
|
|
656
|
+
_request_auth=_request_auth,
|
|
657
|
+
_content_type=_content_type,
|
|
658
|
+
_headers=_headers,
|
|
659
|
+
_host_index=_host_index,
|
|
660
|
+
)
|
|
661
|
+
|
|
662
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
663
|
+
"200": "AssetDeltaSyncResponseDto",
|
|
664
|
+
}
|
|
665
|
+
response_data = await self.api_client.call_api(
|
|
666
|
+
*_param, _request_timeout=_request_timeout
|
|
667
|
+
)
|
|
668
|
+
await response_data.read()
|
|
669
|
+
return self.api_client.response_deserialize(
|
|
670
|
+
response_data=response_data,
|
|
671
|
+
response_types_map=_response_types_map,
|
|
672
|
+
)
|
|
673
|
+
|
|
674
|
+
@validate_call
|
|
675
|
+
async def get_delta_sync_without_preload_content(
|
|
676
|
+
self,
|
|
677
|
+
asset_delta_sync_dto: AssetDeltaSyncDto,
|
|
678
|
+
_request_timeout: Union[
|
|
679
|
+
None,
|
|
680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
681
|
+
Tuple[
|
|
682
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
683
|
+
],
|
|
684
|
+
] = None,
|
|
685
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
686
|
+
_content_type: Optional[StrictStr] = None,
|
|
687
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
688
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
689
|
+
) -> RESTResponseType:
|
|
690
|
+
"""(Deprecated) Get delta sync for user
|
|
691
|
+
|
|
692
|
+
Retrieve changed assets since the last sync for the authenticated user.
|
|
693
|
+
|
|
694
|
+
:param asset_delta_sync_dto: (required)
|
|
695
|
+
:type asset_delta_sync_dto: AssetDeltaSyncDto
|
|
696
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
697
|
+
number provided, it will be total request
|
|
698
|
+
timeout. It can also be a pair (tuple) of
|
|
699
|
+
(connection, read) timeouts.
|
|
700
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
701
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
702
|
+
request; this effectively ignores the
|
|
703
|
+
authentication in the spec for a single request.
|
|
704
|
+
:type _request_auth: dict, optional
|
|
705
|
+
:param _content_type: force content-type for the request.
|
|
706
|
+
:type _content_type: str, Optional
|
|
707
|
+
:param _headers: set to override the headers for a single
|
|
708
|
+
request; this effectively ignores the headers
|
|
709
|
+
in the spec for a single request.
|
|
710
|
+
:type _headers: dict, optional
|
|
711
|
+
:param _host_index: set to override the host_index for a single
|
|
712
|
+
request; this effectively ignores the host_index
|
|
713
|
+
in the spec for a single request.
|
|
714
|
+
:type _host_index: int, optional
|
|
715
|
+
:return: Returns the result object.
|
|
716
|
+
""" # noqa: E501
|
|
717
|
+
warnings.warn("POST /sync/delta-sync is deprecated.", DeprecationWarning)
|
|
718
|
+
|
|
719
|
+
_param = self._get_delta_sync_serialize(
|
|
720
|
+
asset_delta_sync_dto=asset_delta_sync_dto,
|
|
721
|
+
_request_auth=_request_auth,
|
|
722
|
+
_content_type=_content_type,
|
|
723
|
+
_headers=_headers,
|
|
724
|
+
_host_index=_host_index,
|
|
725
|
+
)
|
|
726
|
+
|
|
727
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
728
|
+
"200": "AssetDeltaSyncResponseDto",
|
|
729
|
+
}
|
|
730
|
+
response_data = await self.api_client.call_api(
|
|
731
|
+
*_param, _request_timeout=_request_timeout
|
|
732
|
+
)
|
|
733
|
+
return response_data.response
|
|
734
|
+
|
|
735
|
+
def _get_delta_sync_serialize(
|
|
736
|
+
self,
|
|
737
|
+
asset_delta_sync_dto,
|
|
738
|
+
_request_auth,
|
|
739
|
+
_content_type,
|
|
740
|
+
_headers,
|
|
741
|
+
_host_index,
|
|
742
|
+
) -> RequestSerialized:
|
|
743
|
+
_host = None
|
|
744
|
+
|
|
745
|
+
_collection_formats: Dict[str, str] = {}
|
|
746
|
+
|
|
747
|
+
_path_params: Dict[str, str] = {}
|
|
748
|
+
_query_params: List[Tuple[str, str]] = []
|
|
749
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
750
|
+
_form_params: List[Tuple[str, str]] = []
|
|
751
|
+
_files: Dict[
|
|
752
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
753
|
+
] = {}
|
|
754
|
+
_body_params: Optional[bytes] = None
|
|
755
|
+
|
|
756
|
+
# process the path parameters
|
|
757
|
+
# process the query parameters
|
|
758
|
+
# process the header parameters
|
|
759
|
+
# process the form parameters
|
|
760
|
+
# process the body parameter
|
|
761
|
+
if asset_delta_sync_dto is not None:
|
|
762
|
+
_body_params = asset_delta_sync_dto
|
|
763
|
+
|
|
764
|
+
# set the HTTP header `Accept`
|
|
765
|
+
if "Accept" not in _header_params:
|
|
766
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
767
|
+
["application/json"]
|
|
768
|
+
)
|
|
769
|
+
|
|
770
|
+
# set the HTTP header `Content-Type`
|
|
771
|
+
if _content_type:
|
|
772
|
+
_header_params["Content-Type"] = _content_type
|
|
773
|
+
else:
|
|
774
|
+
_default_content_type = self.api_client.select_header_content_type(
|
|
775
|
+
["application/json"]
|
|
776
|
+
)
|
|
777
|
+
if _default_content_type is not None:
|
|
778
|
+
_header_params["Content-Type"] = _default_content_type
|
|
779
|
+
|
|
780
|
+
# authentication setting
|
|
781
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
782
|
+
|
|
783
|
+
return self.api_client.param_serialize(
|
|
784
|
+
method="POST",
|
|
785
|
+
resource_path="/sync/delta-sync",
|
|
786
|
+
path_params=_path_params,
|
|
787
|
+
query_params=_query_params,
|
|
788
|
+
header_params=_header_params,
|
|
789
|
+
body=_body_params,
|
|
790
|
+
post_params=_form_params,
|
|
791
|
+
files=_files,
|
|
792
|
+
auth_settings=_auth_settings,
|
|
793
|
+
collection_formats=_collection_formats,
|
|
794
|
+
_host=_host,
|
|
795
|
+
_request_auth=_request_auth,
|
|
796
|
+
)
|
|
797
|
+
|
|
798
|
+
@validate_call
|
|
799
|
+
async def get_full_sync_for_user(
|
|
800
|
+
self,
|
|
801
|
+
asset_full_sync_dto: AssetFullSyncDto,
|
|
802
|
+
_request_timeout: Union[
|
|
803
|
+
None,
|
|
804
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
805
|
+
Tuple[
|
|
806
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
807
|
+
],
|
|
808
|
+
] = None,
|
|
809
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
810
|
+
_content_type: Optional[StrictStr] = None,
|
|
811
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
812
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
813
|
+
) -> List[AssetResponseDto]:
|
|
814
|
+
"""(Deprecated) Get full sync for user
|
|
815
|
+
|
|
816
|
+
Retrieve all assets for a full synchronization for the authenticated user.
|
|
817
|
+
|
|
818
|
+
:param asset_full_sync_dto: (required)
|
|
819
|
+
:type asset_full_sync_dto: AssetFullSyncDto
|
|
820
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
821
|
+
number provided, it will be total request
|
|
822
|
+
timeout. It can also be a pair (tuple) of
|
|
823
|
+
(connection, read) timeouts.
|
|
824
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
825
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
826
|
+
request; this effectively ignores the
|
|
827
|
+
authentication in the spec for a single request.
|
|
828
|
+
:type _request_auth: dict, optional
|
|
829
|
+
:param _content_type: force content-type for the request.
|
|
830
|
+
:type _content_type: str, Optional
|
|
831
|
+
:param _headers: set to override the headers for a single
|
|
832
|
+
request; this effectively ignores the headers
|
|
833
|
+
in the spec for a single request.
|
|
834
|
+
:type _headers: dict, optional
|
|
835
|
+
:param _host_index: set to override the host_index for a single
|
|
836
|
+
request; this effectively ignores the host_index
|
|
837
|
+
in the spec for a single request.
|
|
838
|
+
:type _host_index: int, optional
|
|
839
|
+
:return: Returns the result object.
|
|
840
|
+
""" # noqa: E501
|
|
841
|
+
warnings.warn("POST /sync/full-sync is deprecated.", DeprecationWarning)
|
|
842
|
+
|
|
843
|
+
_param = self._get_full_sync_for_user_serialize(
|
|
844
|
+
asset_full_sync_dto=asset_full_sync_dto,
|
|
845
|
+
_request_auth=_request_auth,
|
|
846
|
+
_content_type=_content_type,
|
|
847
|
+
_headers=_headers,
|
|
848
|
+
_host_index=_host_index,
|
|
849
|
+
)
|
|
850
|
+
|
|
851
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
852
|
+
"200": "List[AssetResponseDto]",
|
|
853
|
+
}
|
|
854
|
+
response_data = await self.api_client.call_api(
|
|
855
|
+
*_param, _request_timeout=_request_timeout
|
|
856
|
+
)
|
|
857
|
+
await response_data.read()
|
|
858
|
+
return self.api_client.response_deserialize(
|
|
859
|
+
response_data=response_data,
|
|
860
|
+
response_types_map=_response_types_map,
|
|
861
|
+
).data
|
|
862
|
+
|
|
863
|
+
@validate_call
|
|
864
|
+
async def get_full_sync_for_user_with_http_info(
|
|
865
|
+
self,
|
|
866
|
+
asset_full_sync_dto: AssetFullSyncDto,
|
|
867
|
+
_request_timeout: Union[
|
|
868
|
+
None,
|
|
869
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
870
|
+
Tuple[
|
|
871
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
872
|
+
],
|
|
873
|
+
] = None,
|
|
874
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
875
|
+
_content_type: Optional[StrictStr] = None,
|
|
876
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
877
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
878
|
+
) -> ApiResponse[List[AssetResponseDto]]:
|
|
879
|
+
"""(Deprecated) Get full sync for user
|
|
880
|
+
|
|
881
|
+
Retrieve all assets for a full synchronization for the authenticated user.
|
|
882
|
+
|
|
883
|
+
:param asset_full_sync_dto: (required)
|
|
884
|
+
:type asset_full_sync_dto: AssetFullSyncDto
|
|
885
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
886
|
+
number provided, it will be total request
|
|
887
|
+
timeout. It can also be a pair (tuple) of
|
|
888
|
+
(connection, read) timeouts.
|
|
889
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
890
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
891
|
+
request; this effectively ignores the
|
|
892
|
+
authentication in the spec for a single request.
|
|
893
|
+
:type _request_auth: dict, optional
|
|
894
|
+
:param _content_type: force content-type for the request.
|
|
895
|
+
:type _content_type: str, Optional
|
|
896
|
+
:param _headers: set to override the headers for a single
|
|
897
|
+
request; this effectively ignores the headers
|
|
898
|
+
in the spec for a single request.
|
|
899
|
+
:type _headers: dict, optional
|
|
900
|
+
:param _host_index: set to override the host_index for a single
|
|
901
|
+
request; this effectively ignores the host_index
|
|
902
|
+
in the spec for a single request.
|
|
903
|
+
:type _host_index: int, optional
|
|
904
|
+
:return: Returns the result object.
|
|
905
|
+
""" # noqa: E501
|
|
906
|
+
warnings.warn("POST /sync/full-sync is deprecated.", DeprecationWarning)
|
|
907
|
+
|
|
908
|
+
_param = self._get_full_sync_for_user_serialize(
|
|
909
|
+
asset_full_sync_dto=asset_full_sync_dto,
|
|
910
|
+
_request_auth=_request_auth,
|
|
911
|
+
_content_type=_content_type,
|
|
912
|
+
_headers=_headers,
|
|
913
|
+
_host_index=_host_index,
|
|
914
|
+
)
|
|
915
|
+
|
|
916
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
917
|
+
"200": "List[AssetResponseDto]",
|
|
918
|
+
}
|
|
919
|
+
response_data = await self.api_client.call_api(
|
|
920
|
+
*_param, _request_timeout=_request_timeout
|
|
921
|
+
)
|
|
922
|
+
await response_data.read()
|
|
923
|
+
return self.api_client.response_deserialize(
|
|
924
|
+
response_data=response_data,
|
|
925
|
+
response_types_map=_response_types_map,
|
|
926
|
+
)
|
|
927
|
+
|
|
928
|
+
@validate_call
|
|
929
|
+
async def get_full_sync_for_user_without_preload_content(
|
|
930
|
+
self,
|
|
931
|
+
asset_full_sync_dto: AssetFullSyncDto,
|
|
932
|
+
_request_timeout: Union[
|
|
933
|
+
None,
|
|
934
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
935
|
+
Tuple[
|
|
936
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
937
|
+
],
|
|
938
|
+
] = None,
|
|
939
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
940
|
+
_content_type: Optional[StrictStr] = None,
|
|
941
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
942
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
943
|
+
) -> RESTResponseType:
|
|
944
|
+
"""(Deprecated) Get full sync for user
|
|
945
|
+
|
|
946
|
+
Retrieve all assets for a full synchronization for the authenticated user.
|
|
947
|
+
|
|
948
|
+
:param asset_full_sync_dto: (required)
|
|
949
|
+
:type asset_full_sync_dto: AssetFullSyncDto
|
|
950
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
951
|
+
number provided, it will be total request
|
|
952
|
+
timeout. It can also be a pair (tuple) of
|
|
953
|
+
(connection, read) timeouts.
|
|
954
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
955
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
956
|
+
request; this effectively ignores the
|
|
957
|
+
authentication in the spec for a single request.
|
|
958
|
+
:type _request_auth: dict, optional
|
|
959
|
+
:param _content_type: force content-type for the request.
|
|
960
|
+
:type _content_type: str, Optional
|
|
961
|
+
:param _headers: set to override the headers for a single
|
|
962
|
+
request; this effectively ignores the headers
|
|
963
|
+
in the spec for a single request.
|
|
964
|
+
:type _headers: dict, optional
|
|
965
|
+
:param _host_index: set to override the host_index for a single
|
|
966
|
+
request; this effectively ignores the host_index
|
|
967
|
+
in the spec for a single request.
|
|
968
|
+
:type _host_index: int, optional
|
|
969
|
+
:return: Returns the result object.
|
|
970
|
+
""" # noqa: E501
|
|
971
|
+
warnings.warn("POST /sync/full-sync is deprecated.", DeprecationWarning)
|
|
972
|
+
|
|
973
|
+
_param = self._get_full_sync_for_user_serialize(
|
|
974
|
+
asset_full_sync_dto=asset_full_sync_dto,
|
|
975
|
+
_request_auth=_request_auth,
|
|
976
|
+
_content_type=_content_type,
|
|
977
|
+
_headers=_headers,
|
|
978
|
+
_host_index=_host_index,
|
|
979
|
+
)
|
|
980
|
+
|
|
981
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
982
|
+
"200": "List[AssetResponseDto]",
|
|
983
|
+
}
|
|
984
|
+
response_data = await self.api_client.call_api(
|
|
985
|
+
*_param, _request_timeout=_request_timeout
|
|
986
|
+
)
|
|
987
|
+
return response_data.response
|
|
988
|
+
|
|
989
|
+
def _get_full_sync_for_user_serialize(
|
|
990
|
+
self,
|
|
991
|
+
asset_full_sync_dto,
|
|
992
|
+
_request_auth,
|
|
993
|
+
_content_type,
|
|
994
|
+
_headers,
|
|
995
|
+
_host_index,
|
|
996
|
+
) -> RequestSerialized:
|
|
997
|
+
_host = None
|
|
998
|
+
|
|
999
|
+
_collection_formats: Dict[str, str] = {}
|
|
1000
|
+
|
|
1001
|
+
_path_params: Dict[str, str] = {}
|
|
1002
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1003
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1004
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1005
|
+
_files: Dict[
|
|
1006
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1007
|
+
] = {}
|
|
1008
|
+
_body_params: Optional[bytes] = None
|
|
1009
|
+
|
|
1010
|
+
# process the path parameters
|
|
1011
|
+
# process the query parameters
|
|
1012
|
+
# process the header parameters
|
|
1013
|
+
# process the form parameters
|
|
1014
|
+
# process the body parameter
|
|
1015
|
+
if asset_full_sync_dto is not None:
|
|
1016
|
+
_body_params = asset_full_sync_dto
|
|
1017
|
+
|
|
1018
|
+
# set the HTTP header `Accept`
|
|
1019
|
+
if "Accept" not in _header_params:
|
|
1020
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1021
|
+
["application/json"]
|
|
1022
|
+
)
|
|
1023
|
+
|
|
1024
|
+
# set the HTTP header `Content-Type`
|
|
1025
|
+
if _content_type:
|
|
1026
|
+
_header_params["Content-Type"] = _content_type
|
|
1027
|
+
else:
|
|
1028
|
+
_default_content_type = self.api_client.select_header_content_type(
|
|
1029
|
+
["application/json"]
|
|
1030
|
+
)
|
|
1031
|
+
if _default_content_type is not None:
|
|
1032
|
+
_header_params["Content-Type"] = _default_content_type
|
|
1033
|
+
|
|
1034
|
+
# authentication setting
|
|
1035
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
1036
|
+
|
|
1037
|
+
return self.api_client.param_serialize(
|
|
1038
|
+
method="POST",
|
|
1039
|
+
resource_path="/sync/full-sync",
|
|
1040
|
+
path_params=_path_params,
|
|
1041
|
+
query_params=_query_params,
|
|
1042
|
+
header_params=_header_params,
|
|
1043
|
+
body=_body_params,
|
|
1044
|
+
post_params=_form_params,
|
|
1045
|
+
files=_files,
|
|
1046
|
+
auth_settings=_auth_settings,
|
|
1047
|
+
collection_formats=_collection_formats,
|
|
1048
|
+
_host=_host,
|
|
1049
|
+
_request_auth=_request_auth,
|
|
1050
|
+
)
|
|
1051
|
+
|
|
1052
|
+
@validate_call
|
|
1053
|
+
async def get_queues_legacy(
|
|
1054
|
+
self,
|
|
1055
|
+
_request_timeout: Union[
|
|
1056
|
+
None,
|
|
1057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1058
|
+
Tuple[
|
|
1059
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1060
|
+
],
|
|
1061
|
+
] = None,
|
|
1062
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1063
|
+
_content_type: Optional[StrictStr] = None,
|
|
1064
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1065
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1066
|
+
) -> QueuesResponseLegacyDto:
|
|
1067
|
+
"""(Deprecated) Retrieve queue counts and status
|
|
1068
|
+
|
|
1069
|
+
Retrieve the counts of the current queue, as well as the current status.
|
|
1070
|
+
|
|
1071
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1072
|
+
number provided, it will be total request
|
|
1073
|
+
timeout. It can also be a pair (tuple) of
|
|
1074
|
+
(connection, read) timeouts.
|
|
1075
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1076
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1077
|
+
request; this effectively ignores the
|
|
1078
|
+
authentication in the spec for a single request.
|
|
1079
|
+
:type _request_auth: dict, optional
|
|
1080
|
+
:param _content_type: force content-type for the request.
|
|
1081
|
+
:type _content_type: str, Optional
|
|
1082
|
+
:param _headers: set to override the headers for a single
|
|
1083
|
+
request; this effectively ignores the headers
|
|
1084
|
+
in the spec for a single request.
|
|
1085
|
+
:type _headers: dict, optional
|
|
1086
|
+
:param _host_index: set to override the host_index for a single
|
|
1087
|
+
request; this effectively ignores the host_index
|
|
1088
|
+
in the spec for a single request.
|
|
1089
|
+
:type _host_index: int, optional
|
|
1090
|
+
:return: Returns the result object.
|
|
1091
|
+
""" # noqa: E501
|
|
1092
|
+
warnings.warn("GET /jobs is deprecated.", DeprecationWarning)
|
|
1093
|
+
|
|
1094
|
+
_param = self._get_queues_legacy_serialize(
|
|
1095
|
+
_request_auth=_request_auth,
|
|
1096
|
+
_content_type=_content_type,
|
|
1097
|
+
_headers=_headers,
|
|
1098
|
+
_host_index=_host_index,
|
|
1099
|
+
)
|
|
1100
|
+
|
|
1101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1102
|
+
"200": "QueuesResponseLegacyDto",
|
|
1103
|
+
}
|
|
1104
|
+
response_data = await self.api_client.call_api(
|
|
1105
|
+
*_param, _request_timeout=_request_timeout
|
|
1106
|
+
)
|
|
1107
|
+
await response_data.read()
|
|
1108
|
+
return self.api_client.response_deserialize(
|
|
1109
|
+
response_data=response_data,
|
|
1110
|
+
response_types_map=_response_types_map,
|
|
1111
|
+
).data
|
|
1112
|
+
|
|
1113
|
+
@validate_call
|
|
1114
|
+
async def get_queues_legacy_with_http_info(
|
|
1115
|
+
self,
|
|
1116
|
+
_request_timeout: Union[
|
|
1117
|
+
None,
|
|
1118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1119
|
+
Tuple[
|
|
1120
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1121
|
+
],
|
|
1122
|
+
] = None,
|
|
1123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1124
|
+
_content_type: Optional[StrictStr] = None,
|
|
1125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1127
|
+
) -> ApiResponse[QueuesResponseLegacyDto]:
|
|
1128
|
+
"""(Deprecated) Retrieve queue counts and status
|
|
1129
|
+
|
|
1130
|
+
Retrieve the counts of the current queue, as well as the current status.
|
|
1131
|
+
|
|
1132
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1133
|
+
number provided, it will be total request
|
|
1134
|
+
timeout. It can also be a pair (tuple) of
|
|
1135
|
+
(connection, read) timeouts.
|
|
1136
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1137
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1138
|
+
request; this effectively ignores the
|
|
1139
|
+
authentication in the spec for a single request.
|
|
1140
|
+
:type _request_auth: dict, optional
|
|
1141
|
+
:param _content_type: force content-type for the request.
|
|
1142
|
+
:type _content_type: str, Optional
|
|
1143
|
+
:param _headers: set to override the headers for a single
|
|
1144
|
+
request; this effectively ignores the headers
|
|
1145
|
+
in the spec for a single request.
|
|
1146
|
+
:type _headers: dict, optional
|
|
1147
|
+
:param _host_index: set to override the host_index for a single
|
|
1148
|
+
request; this effectively ignores the host_index
|
|
1149
|
+
in the spec for a single request.
|
|
1150
|
+
:type _host_index: int, optional
|
|
1151
|
+
:return: Returns the result object.
|
|
1152
|
+
""" # noqa: E501
|
|
1153
|
+
warnings.warn("GET /jobs is deprecated.", DeprecationWarning)
|
|
1154
|
+
|
|
1155
|
+
_param = self._get_queues_legacy_serialize(
|
|
1156
|
+
_request_auth=_request_auth,
|
|
1157
|
+
_content_type=_content_type,
|
|
1158
|
+
_headers=_headers,
|
|
1159
|
+
_host_index=_host_index,
|
|
1160
|
+
)
|
|
1161
|
+
|
|
1162
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1163
|
+
"200": "QueuesResponseLegacyDto",
|
|
1164
|
+
}
|
|
1165
|
+
response_data = await self.api_client.call_api(
|
|
1166
|
+
*_param, _request_timeout=_request_timeout
|
|
1167
|
+
)
|
|
1168
|
+
await response_data.read()
|
|
1169
|
+
return self.api_client.response_deserialize(
|
|
1170
|
+
response_data=response_data,
|
|
1171
|
+
response_types_map=_response_types_map,
|
|
1172
|
+
)
|
|
1173
|
+
|
|
1174
|
+
@validate_call
|
|
1175
|
+
async def get_queues_legacy_without_preload_content(
|
|
1176
|
+
self,
|
|
1177
|
+
_request_timeout: Union[
|
|
1178
|
+
None,
|
|
1179
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1180
|
+
Tuple[
|
|
1181
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1182
|
+
],
|
|
1183
|
+
] = None,
|
|
1184
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1185
|
+
_content_type: Optional[StrictStr] = None,
|
|
1186
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1187
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1188
|
+
) -> RESTResponseType:
|
|
1189
|
+
"""(Deprecated) Retrieve queue counts and status
|
|
1190
|
+
|
|
1191
|
+
Retrieve the counts of the current queue, as well as the current status.
|
|
1192
|
+
|
|
1193
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1194
|
+
number provided, it will be total request
|
|
1195
|
+
timeout. It can also be a pair (tuple) of
|
|
1196
|
+
(connection, read) timeouts.
|
|
1197
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1198
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1199
|
+
request; this effectively ignores the
|
|
1200
|
+
authentication in the spec for a single request.
|
|
1201
|
+
:type _request_auth: dict, optional
|
|
1202
|
+
:param _content_type: force content-type for the request.
|
|
1203
|
+
:type _content_type: str, Optional
|
|
1204
|
+
:param _headers: set to override the headers for a single
|
|
1205
|
+
request; this effectively ignores the headers
|
|
1206
|
+
in the spec for a single request.
|
|
1207
|
+
:type _headers: dict, optional
|
|
1208
|
+
:param _host_index: set to override the host_index for a single
|
|
1209
|
+
request; this effectively ignores the host_index
|
|
1210
|
+
in the spec for a single request.
|
|
1211
|
+
:type _host_index: int, optional
|
|
1212
|
+
:return: Returns the result object.
|
|
1213
|
+
""" # noqa: E501
|
|
1214
|
+
warnings.warn("GET /jobs is deprecated.", DeprecationWarning)
|
|
1215
|
+
|
|
1216
|
+
_param = self._get_queues_legacy_serialize(
|
|
1217
|
+
_request_auth=_request_auth,
|
|
1218
|
+
_content_type=_content_type,
|
|
1219
|
+
_headers=_headers,
|
|
1220
|
+
_host_index=_host_index,
|
|
1221
|
+
)
|
|
1222
|
+
|
|
1223
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1224
|
+
"200": "QueuesResponseLegacyDto",
|
|
1225
|
+
}
|
|
1226
|
+
response_data = await self.api_client.call_api(
|
|
1227
|
+
*_param, _request_timeout=_request_timeout
|
|
1228
|
+
)
|
|
1229
|
+
return response_data.response
|
|
1230
|
+
|
|
1231
|
+
def _get_queues_legacy_serialize(
|
|
1232
|
+
self,
|
|
1233
|
+
_request_auth,
|
|
1234
|
+
_content_type,
|
|
1235
|
+
_headers,
|
|
1236
|
+
_host_index,
|
|
1237
|
+
) -> RequestSerialized:
|
|
1238
|
+
_host = None
|
|
1239
|
+
|
|
1240
|
+
_collection_formats: Dict[str, str] = {}
|
|
1241
|
+
|
|
1242
|
+
_path_params: Dict[str, str] = {}
|
|
1243
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1244
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1245
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1246
|
+
_files: Dict[
|
|
1247
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1248
|
+
] = {}
|
|
1249
|
+
_body_params: Optional[bytes] = None
|
|
1250
|
+
|
|
1251
|
+
# process the path parameters
|
|
1252
|
+
# process the query parameters
|
|
1253
|
+
# process the header parameters
|
|
1254
|
+
# process the form parameters
|
|
1255
|
+
# process the body parameter
|
|
1256
|
+
|
|
1257
|
+
# set the HTTP header `Accept`
|
|
1258
|
+
if "Accept" not in _header_params:
|
|
1259
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1260
|
+
["application/json"]
|
|
1261
|
+
)
|
|
1262
|
+
|
|
1263
|
+
# authentication setting
|
|
1264
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
1265
|
+
|
|
1266
|
+
return self.api_client.param_serialize(
|
|
1267
|
+
method="GET",
|
|
1268
|
+
resource_path="/jobs",
|
|
1269
|
+
path_params=_path_params,
|
|
1270
|
+
query_params=_query_params,
|
|
1271
|
+
header_params=_header_params,
|
|
1272
|
+
body=_body_params,
|
|
1273
|
+
post_params=_form_params,
|
|
1274
|
+
files=_files,
|
|
1275
|
+
auth_settings=_auth_settings,
|
|
1276
|
+
collection_formats=_collection_formats,
|
|
1277
|
+
_host=_host,
|
|
1278
|
+
_request_auth=_request_auth,
|
|
1279
|
+
)
|
|
1280
|
+
|
|
1281
|
+
@validate_call
|
|
1282
|
+
async def get_random(
|
|
1283
|
+
self,
|
|
1284
|
+
count: Optional[
|
|
1285
|
+
Union[
|
|
1286
|
+
Annotated[float, Field(strict=True, ge=1)],
|
|
1287
|
+
Annotated[int, Field(strict=True, ge=1)],
|
|
1288
|
+
]
|
|
1289
|
+
] = None,
|
|
1290
|
+
_request_timeout: Union[
|
|
1291
|
+
None,
|
|
1292
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1293
|
+
Tuple[
|
|
1294
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1295
|
+
],
|
|
1296
|
+
] = None,
|
|
1297
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1298
|
+
_content_type: Optional[StrictStr] = None,
|
|
1299
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1300
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1301
|
+
) -> List[AssetResponseDto]:
|
|
1302
|
+
"""(Deprecated) Get random assets
|
|
1303
|
+
|
|
1304
|
+
Retrieve a specified number of random assets for the authenticated user.
|
|
1305
|
+
|
|
1306
|
+
:param count:
|
|
1307
|
+
:type count: float
|
|
1308
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1309
|
+
number provided, it will be total request
|
|
1310
|
+
timeout. It can also be a pair (tuple) of
|
|
1311
|
+
(connection, read) timeouts.
|
|
1312
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1313
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1314
|
+
request; this effectively ignores the
|
|
1315
|
+
authentication in the spec for a single request.
|
|
1316
|
+
:type _request_auth: dict, optional
|
|
1317
|
+
:param _content_type: force content-type for the request.
|
|
1318
|
+
:type _content_type: str, Optional
|
|
1319
|
+
:param _headers: set to override the headers for a single
|
|
1320
|
+
request; this effectively ignores the headers
|
|
1321
|
+
in the spec for a single request.
|
|
1322
|
+
:type _headers: dict, optional
|
|
1323
|
+
:param _host_index: set to override the host_index for a single
|
|
1324
|
+
request; this effectively ignores the host_index
|
|
1325
|
+
in the spec for a single request.
|
|
1326
|
+
:type _host_index: int, optional
|
|
1327
|
+
:return: Returns the result object.
|
|
1328
|
+
""" # noqa: E501
|
|
1329
|
+
warnings.warn("GET /assets/random is deprecated.", DeprecationWarning)
|
|
1330
|
+
|
|
1331
|
+
_param = self._get_random_serialize(
|
|
1332
|
+
count=count,
|
|
1333
|
+
_request_auth=_request_auth,
|
|
1334
|
+
_content_type=_content_type,
|
|
1335
|
+
_headers=_headers,
|
|
1336
|
+
_host_index=_host_index,
|
|
1337
|
+
)
|
|
1338
|
+
|
|
1339
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1340
|
+
"200": "List[AssetResponseDto]",
|
|
1341
|
+
}
|
|
1342
|
+
response_data = await self.api_client.call_api(
|
|
1343
|
+
*_param, _request_timeout=_request_timeout
|
|
1344
|
+
)
|
|
1345
|
+
await response_data.read()
|
|
1346
|
+
return self.api_client.response_deserialize(
|
|
1347
|
+
response_data=response_data,
|
|
1348
|
+
response_types_map=_response_types_map,
|
|
1349
|
+
).data
|
|
1350
|
+
|
|
1351
|
+
@validate_call
|
|
1352
|
+
async def get_random_with_http_info(
|
|
1353
|
+
self,
|
|
1354
|
+
count: Optional[
|
|
1355
|
+
Union[
|
|
1356
|
+
Annotated[float, Field(strict=True, ge=1)],
|
|
1357
|
+
Annotated[int, Field(strict=True, ge=1)],
|
|
1358
|
+
]
|
|
1359
|
+
] = None,
|
|
1360
|
+
_request_timeout: Union[
|
|
1361
|
+
None,
|
|
1362
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1363
|
+
Tuple[
|
|
1364
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1365
|
+
],
|
|
1366
|
+
] = None,
|
|
1367
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1368
|
+
_content_type: Optional[StrictStr] = None,
|
|
1369
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1370
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1371
|
+
) -> ApiResponse[List[AssetResponseDto]]:
|
|
1372
|
+
"""(Deprecated) Get random assets
|
|
1373
|
+
|
|
1374
|
+
Retrieve a specified number of random assets for the authenticated user.
|
|
1375
|
+
|
|
1376
|
+
:param count:
|
|
1377
|
+
:type count: float
|
|
1378
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1379
|
+
number provided, it will be total request
|
|
1380
|
+
timeout. It can also be a pair (tuple) of
|
|
1381
|
+
(connection, read) timeouts.
|
|
1382
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1383
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1384
|
+
request; this effectively ignores the
|
|
1385
|
+
authentication in the spec for a single request.
|
|
1386
|
+
:type _request_auth: dict, optional
|
|
1387
|
+
:param _content_type: force content-type for the request.
|
|
1388
|
+
:type _content_type: str, Optional
|
|
1389
|
+
:param _headers: set to override the headers for a single
|
|
1390
|
+
request; this effectively ignores the headers
|
|
1391
|
+
in the spec for a single request.
|
|
1392
|
+
:type _headers: dict, optional
|
|
1393
|
+
:param _host_index: set to override the host_index for a single
|
|
1394
|
+
request; this effectively ignores the host_index
|
|
1395
|
+
in the spec for a single request.
|
|
1396
|
+
:type _host_index: int, optional
|
|
1397
|
+
:return: Returns the result object.
|
|
1398
|
+
""" # noqa: E501
|
|
1399
|
+
warnings.warn("GET /assets/random is deprecated.", DeprecationWarning)
|
|
1400
|
+
|
|
1401
|
+
_param = self._get_random_serialize(
|
|
1402
|
+
count=count,
|
|
1403
|
+
_request_auth=_request_auth,
|
|
1404
|
+
_content_type=_content_type,
|
|
1405
|
+
_headers=_headers,
|
|
1406
|
+
_host_index=_host_index,
|
|
1407
|
+
)
|
|
1408
|
+
|
|
1409
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1410
|
+
"200": "List[AssetResponseDto]",
|
|
1411
|
+
}
|
|
1412
|
+
response_data = await self.api_client.call_api(
|
|
1413
|
+
*_param, _request_timeout=_request_timeout
|
|
1414
|
+
)
|
|
1415
|
+
await response_data.read()
|
|
1416
|
+
return self.api_client.response_deserialize(
|
|
1417
|
+
response_data=response_data,
|
|
1418
|
+
response_types_map=_response_types_map,
|
|
1419
|
+
)
|
|
1420
|
+
|
|
1421
|
+
@validate_call
|
|
1422
|
+
async def get_random_without_preload_content(
|
|
1423
|
+
self,
|
|
1424
|
+
count: Optional[
|
|
1425
|
+
Union[
|
|
1426
|
+
Annotated[float, Field(strict=True, ge=1)],
|
|
1427
|
+
Annotated[int, Field(strict=True, ge=1)],
|
|
1428
|
+
]
|
|
1429
|
+
] = None,
|
|
1430
|
+
_request_timeout: Union[
|
|
1431
|
+
None,
|
|
1432
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1433
|
+
Tuple[
|
|
1434
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1435
|
+
],
|
|
1436
|
+
] = None,
|
|
1437
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1438
|
+
_content_type: Optional[StrictStr] = None,
|
|
1439
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1440
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1441
|
+
) -> RESTResponseType:
|
|
1442
|
+
"""(Deprecated) Get random assets
|
|
1443
|
+
|
|
1444
|
+
Retrieve a specified number of random assets for the authenticated user.
|
|
1445
|
+
|
|
1446
|
+
:param count:
|
|
1447
|
+
:type count: float
|
|
1448
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1449
|
+
number provided, it will be total request
|
|
1450
|
+
timeout. It can also be a pair (tuple) of
|
|
1451
|
+
(connection, read) timeouts.
|
|
1452
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1453
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1454
|
+
request; this effectively ignores the
|
|
1455
|
+
authentication in the spec for a single request.
|
|
1456
|
+
:type _request_auth: dict, optional
|
|
1457
|
+
:param _content_type: force content-type for the request.
|
|
1458
|
+
:type _content_type: str, Optional
|
|
1459
|
+
:param _headers: set to override the headers for a single
|
|
1460
|
+
request; this effectively ignores the headers
|
|
1461
|
+
in the spec for a single request.
|
|
1462
|
+
:type _headers: dict, optional
|
|
1463
|
+
:param _host_index: set to override the host_index for a single
|
|
1464
|
+
request; this effectively ignores the host_index
|
|
1465
|
+
in the spec for a single request.
|
|
1466
|
+
:type _host_index: int, optional
|
|
1467
|
+
:return: Returns the result object.
|
|
1468
|
+
""" # noqa: E501
|
|
1469
|
+
warnings.warn("GET /assets/random is deprecated.", DeprecationWarning)
|
|
1470
|
+
|
|
1471
|
+
_param = self._get_random_serialize(
|
|
1472
|
+
count=count,
|
|
1473
|
+
_request_auth=_request_auth,
|
|
1474
|
+
_content_type=_content_type,
|
|
1475
|
+
_headers=_headers,
|
|
1476
|
+
_host_index=_host_index,
|
|
1477
|
+
)
|
|
1478
|
+
|
|
1479
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1480
|
+
"200": "List[AssetResponseDto]",
|
|
1481
|
+
}
|
|
1482
|
+
response_data = await self.api_client.call_api(
|
|
1483
|
+
*_param, _request_timeout=_request_timeout
|
|
1484
|
+
)
|
|
1485
|
+
return response_data.response
|
|
1486
|
+
|
|
1487
|
+
def _get_random_serialize(
|
|
1488
|
+
self,
|
|
1489
|
+
count,
|
|
1490
|
+
_request_auth,
|
|
1491
|
+
_content_type,
|
|
1492
|
+
_headers,
|
|
1493
|
+
_host_index,
|
|
1494
|
+
) -> RequestSerialized:
|
|
1495
|
+
_host = None
|
|
1496
|
+
|
|
1497
|
+
_collection_formats: Dict[str, str] = {}
|
|
1498
|
+
|
|
1499
|
+
_path_params: Dict[str, str] = {}
|
|
1500
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1501
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1502
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1503
|
+
_files: Dict[
|
|
1504
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1505
|
+
] = {}
|
|
1506
|
+
_body_params: Optional[bytes] = None
|
|
1507
|
+
|
|
1508
|
+
# process the path parameters
|
|
1509
|
+
# process the query parameters
|
|
1510
|
+
if count is not None:
|
|
1511
|
+
_query_params.append(("count", count))
|
|
1512
|
+
|
|
1513
|
+
# process the header parameters
|
|
1514
|
+
# process the form parameters
|
|
1515
|
+
# process the body parameter
|
|
1516
|
+
|
|
1517
|
+
# set the HTTP header `Accept`
|
|
1518
|
+
if "Accept" not in _header_params:
|
|
1519
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1520
|
+
["application/json"]
|
|
1521
|
+
)
|
|
1522
|
+
|
|
1523
|
+
# authentication setting
|
|
1524
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
1525
|
+
|
|
1526
|
+
return self.api_client.param_serialize(
|
|
1527
|
+
method="GET",
|
|
1528
|
+
resource_path="/assets/random",
|
|
1529
|
+
path_params=_path_params,
|
|
1530
|
+
query_params=_query_params,
|
|
1531
|
+
header_params=_header_params,
|
|
1532
|
+
body=_body_params,
|
|
1533
|
+
post_params=_form_params,
|
|
1534
|
+
files=_files,
|
|
1535
|
+
auth_settings=_auth_settings,
|
|
1536
|
+
collection_formats=_collection_formats,
|
|
1537
|
+
_host=_host,
|
|
1538
|
+
_request_auth=_request_auth,
|
|
1539
|
+
)
|
|
1540
|
+
|
|
1541
|
+
@validate_call
|
|
1542
|
+
async def replace_asset(
|
|
1543
|
+
self,
|
|
1544
|
+
id: UUID,
|
|
1545
|
+
asset_data: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
1546
|
+
device_asset_id: StrictStr,
|
|
1547
|
+
device_id: StrictStr,
|
|
1548
|
+
file_created_at: datetime,
|
|
1549
|
+
file_modified_at: datetime,
|
|
1550
|
+
key: Optional[StrictStr] = None,
|
|
1551
|
+
slug: Optional[StrictStr] = None,
|
|
1552
|
+
duration: Optional[StrictStr] = None,
|
|
1553
|
+
filename: Optional[StrictStr] = None,
|
|
1554
|
+
_request_timeout: Union[
|
|
1555
|
+
None,
|
|
1556
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1557
|
+
Tuple[
|
|
1558
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1559
|
+
],
|
|
1560
|
+
] = None,
|
|
1561
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1562
|
+
_content_type: Optional[StrictStr] = None,
|
|
1563
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1564
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1565
|
+
) -> AssetMediaResponseDto:
|
|
1566
|
+
"""(Deprecated) Replace asset
|
|
1567
|
+
|
|
1568
|
+
Replace the asset with new file, without changing its id.
|
|
1569
|
+
|
|
1570
|
+
:param id: (required)
|
|
1571
|
+
:type id: UUID
|
|
1572
|
+
:param asset_data: (required)
|
|
1573
|
+
:type asset_data: bytearray
|
|
1574
|
+
:param device_asset_id: (required)
|
|
1575
|
+
:type device_asset_id: str
|
|
1576
|
+
:param device_id: (required)
|
|
1577
|
+
:type device_id: str
|
|
1578
|
+
:param file_created_at: (required)
|
|
1579
|
+
:type file_created_at: datetime
|
|
1580
|
+
:param file_modified_at: (required)
|
|
1581
|
+
:type file_modified_at: datetime
|
|
1582
|
+
:param key:
|
|
1583
|
+
:type key: str
|
|
1584
|
+
:param slug:
|
|
1585
|
+
:type slug: str
|
|
1586
|
+
:param duration:
|
|
1587
|
+
:type duration: str
|
|
1588
|
+
:param filename:
|
|
1589
|
+
:type filename: str
|
|
1590
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1591
|
+
number provided, it will be total request
|
|
1592
|
+
timeout. It can also be a pair (tuple) of
|
|
1593
|
+
(connection, read) timeouts.
|
|
1594
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1595
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1596
|
+
request; this effectively ignores the
|
|
1597
|
+
authentication in the spec for a single request.
|
|
1598
|
+
:type _request_auth: dict, optional
|
|
1599
|
+
:param _content_type: force content-type for the request.
|
|
1600
|
+
:type _content_type: str, Optional
|
|
1601
|
+
:param _headers: set to override the headers for a single
|
|
1602
|
+
request; this effectively ignores the headers
|
|
1603
|
+
in the spec for a single request.
|
|
1604
|
+
:type _headers: dict, optional
|
|
1605
|
+
:param _host_index: set to override the host_index for a single
|
|
1606
|
+
request; this effectively ignores the host_index
|
|
1607
|
+
in the spec for a single request.
|
|
1608
|
+
:type _host_index: int, optional
|
|
1609
|
+
:return: Returns the result object.
|
|
1610
|
+
""" # noqa: E501
|
|
1611
|
+
warnings.warn("PUT /assets/{id}/original is deprecated.", DeprecationWarning)
|
|
1612
|
+
|
|
1613
|
+
_param = self._replace_asset_serialize(
|
|
1614
|
+
id=id,
|
|
1615
|
+
asset_data=asset_data,
|
|
1616
|
+
device_asset_id=device_asset_id,
|
|
1617
|
+
device_id=device_id,
|
|
1618
|
+
file_created_at=file_created_at,
|
|
1619
|
+
file_modified_at=file_modified_at,
|
|
1620
|
+
key=key,
|
|
1621
|
+
slug=slug,
|
|
1622
|
+
duration=duration,
|
|
1623
|
+
filename=filename,
|
|
1624
|
+
_request_auth=_request_auth,
|
|
1625
|
+
_content_type=_content_type,
|
|
1626
|
+
_headers=_headers,
|
|
1627
|
+
_host_index=_host_index,
|
|
1628
|
+
)
|
|
1629
|
+
|
|
1630
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1631
|
+
"200": "AssetMediaResponseDto",
|
|
1632
|
+
}
|
|
1633
|
+
response_data = await self.api_client.call_api(
|
|
1634
|
+
*_param, _request_timeout=_request_timeout
|
|
1635
|
+
)
|
|
1636
|
+
await response_data.read()
|
|
1637
|
+
return self.api_client.response_deserialize(
|
|
1638
|
+
response_data=response_data,
|
|
1639
|
+
response_types_map=_response_types_map,
|
|
1640
|
+
).data
|
|
1641
|
+
|
|
1642
|
+
@validate_call
|
|
1643
|
+
async def replace_asset_with_http_info(
|
|
1644
|
+
self,
|
|
1645
|
+
id: UUID,
|
|
1646
|
+
asset_data: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
1647
|
+
device_asset_id: StrictStr,
|
|
1648
|
+
device_id: StrictStr,
|
|
1649
|
+
file_created_at: datetime,
|
|
1650
|
+
file_modified_at: datetime,
|
|
1651
|
+
key: Optional[StrictStr] = None,
|
|
1652
|
+
slug: Optional[StrictStr] = None,
|
|
1653
|
+
duration: Optional[StrictStr] = None,
|
|
1654
|
+
filename: Optional[StrictStr] = None,
|
|
1655
|
+
_request_timeout: Union[
|
|
1656
|
+
None,
|
|
1657
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1658
|
+
Tuple[
|
|
1659
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1660
|
+
],
|
|
1661
|
+
] = None,
|
|
1662
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1663
|
+
_content_type: Optional[StrictStr] = None,
|
|
1664
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1665
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1666
|
+
) -> ApiResponse[AssetMediaResponseDto]:
|
|
1667
|
+
"""(Deprecated) Replace asset
|
|
1668
|
+
|
|
1669
|
+
Replace the asset with new file, without changing its id.
|
|
1670
|
+
|
|
1671
|
+
:param id: (required)
|
|
1672
|
+
:type id: UUID
|
|
1673
|
+
:param asset_data: (required)
|
|
1674
|
+
:type asset_data: bytearray
|
|
1675
|
+
:param device_asset_id: (required)
|
|
1676
|
+
:type device_asset_id: str
|
|
1677
|
+
:param device_id: (required)
|
|
1678
|
+
:type device_id: str
|
|
1679
|
+
:param file_created_at: (required)
|
|
1680
|
+
:type file_created_at: datetime
|
|
1681
|
+
:param file_modified_at: (required)
|
|
1682
|
+
:type file_modified_at: datetime
|
|
1683
|
+
:param key:
|
|
1684
|
+
:type key: str
|
|
1685
|
+
:param slug:
|
|
1686
|
+
:type slug: str
|
|
1687
|
+
:param duration:
|
|
1688
|
+
:type duration: str
|
|
1689
|
+
:param filename:
|
|
1690
|
+
:type filename: str
|
|
1691
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1692
|
+
number provided, it will be total request
|
|
1693
|
+
timeout. It can also be a pair (tuple) of
|
|
1694
|
+
(connection, read) timeouts.
|
|
1695
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1696
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1697
|
+
request; this effectively ignores the
|
|
1698
|
+
authentication in the spec for a single request.
|
|
1699
|
+
:type _request_auth: dict, optional
|
|
1700
|
+
:param _content_type: force content-type for the request.
|
|
1701
|
+
:type _content_type: str, Optional
|
|
1702
|
+
:param _headers: set to override the headers for a single
|
|
1703
|
+
request; this effectively ignores the headers
|
|
1704
|
+
in the spec for a single request.
|
|
1705
|
+
:type _headers: dict, optional
|
|
1706
|
+
:param _host_index: set to override the host_index for a single
|
|
1707
|
+
request; this effectively ignores the host_index
|
|
1708
|
+
in the spec for a single request.
|
|
1709
|
+
:type _host_index: int, optional
|
|
1710
|
+
:return: Returns the result object.
|
|
1711
|
+
""" # noqa: E501
|
|
1712
|
+
warnings.warn("PUT /assets/{id}/original is deprecated.", DeprecationWarning)
|
|
1713
|
+
|
|
1714
|
+
_param = self._replace_asset_serialize(
|
|
1715
|
+
id=id,
|
|
1716
|
+
asset_data=asset_data,
|
|
1717
|
+
device_asset_id=device_asset_id,
|
|
1718
|
+
device_id=device_id,
|
|
1719
|
+
file_created_at=file_created_at,
|
|
1720
|
+
file_modified_at=file_modified_at,
|
|
1721
|
+
key=key,
|
|
1722
|
+
slug=slug,
|
|
1723
|
+
duration=duration,
|
|
1724
|
+
filename=filename,
|
|
1725
|
+
_request_auth=_request_auth,
|
|
1726
|
+
_content_type=_content_type,
|
|
1727
|
+
_headers=_headers,
|
|
1728
|
+
_host_index=_host_index,
|
|
1729
|
+
)
|
|
1730
|
+
|
|
1731
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1732
|
+
"200": "AssetMediaResponseDto",
|
|
1733
|
+
}
|
|
1734
|
+
response_data = await self.api_client.call_api(
|
|
1735
|
+
*_param, _request_timeout=_request_timeout
|
|
1736
|
+
)
|
|
1737
|
+
await response_data.read()
|
|
1738
|
+
return self.api_client.response_deserialize(
|
|
1739
|
+
response_data=response_data,
|
|
1740
|
+
response_types_map=_response_types_map,
|
|
1741
|
+
)
|
|
1742
|
+
|
|
1743
|
+
@validate_call
|
|
1744
|
+
async def replace_asset_without_preload_content(
|
|
1745
|
+
self,
|
|
1746
|
+
id: UUID,
|
|
1747
|
+
asset_data: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
1748
|
+
device_asset_id: StrictStr,
|
|
1749
|
+
device_id: StrictStr,
|
|
1750
|
+
file_created_at: datetime,
|
|
1751
|
+
file_modified_at: datetime,
|
|
1752
|
+
key: Optional[StrictStr] = None,
|
|
1753
|
+
slug: Optional[StrictStr] = None,
|
|
1754
|
+
duration: Optional[StrictStr] = None,
|
|
1755
|
+
filename: Optional[StrictStr] = None,
|
|
1756
|
+
_request_timeout: Union[
|
|
1757
|
+
None,
|
|
1758
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1759
|
+
Tuple[
|
|
1760
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1761
|
+
],
|
|
1762
|
+
] = None,
|
|
1763
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1764
|
+
_content_type: Optional[StrictStr] = None,
|
|
1765
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1766
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1767
|
+
) -> RESTResponseType:
|
|
1768
|
+
"""(Deprecated) Replace asset
|
|
1769
|
+
|
|
1770
|
+
Replace the asset with new file, without changing its id.
|
|
1771
|
+
|
|
1772
|
+
:param id: (required)
|
|
1773
|
+
:type id: UUID
|
|
1774
|
+
:param asset_data: (required)
|
|
1775
|
+
:type asset_data: bytearray
|
|
1776
|
+
:param device_asset_id: (required)
|
|
1777
|
+
:type device_asset_id: str
|
|
1778
|
+
:param device_id: (required)
|
|
1779
|
+
:type device_id: str
|
|
1780
|
+
:param file_created_at: (required)
|
|
1781
|
+
:type file_created_at: datetime
|
|
1782
|
+
:param file_modified_at: (required)
|
|
1783
|
+
:type file_modified_at: datetime
|
|
1784
|
+
:param key:
|
|
1785
|
+
:type key: str
|
|
1786
|
+
:param slug:
|
|
1787
|
+
:type slug: str
|
|
1788
|
+
:param duration:
|
|
1789
|
+
:type duration: str
|
|
1790
|
+
:param filename:
|
|
1791
|
+
:type filename: str
|
|
1792
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1793
|
+
number provided, it will be total request
|
|
1794
|
+
timeout. It can also be a pair (tuple) of
|
|
1795
|
+
(connection, read) timeouts.
|
|
1796
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1797
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1798
|
+
request; this effectively ignores the
|
|
1799
|
+
authentication in the spec for a single request.
|
|
1800
|
+
:type _request_auth: dict, optional
|
|
1801
|
+
:param _content_type: force content-type for the request.
|
|
1802
|
+
:type _content_type: str, Optional
|
|
1803
|
+
:param _headers: set to override the headers for a single
|
|
1804
|
+
request; this effectively ignores the headers
|
|
1805
|
+
in the spec for a single request.
|
|
1806
|
+
:type _headers: dict, optional
|
|
1807
|
+
:param _host_index: set to override the host_index for a single
|
|
1808
|
+
request; this effectively ignores the host_index
|
|
1809
|
+
in the spec for a single request.
|
|
1810
|
+
:type _host_index: int, optional
|
|
1811
|
+
:return: Returns the result object.
|
|
1812
|
+
""" # noqa: E501
|
|
1813
|
+
warnings.warn("PUT /assets/{id}/original is deprecated.", DeprecationWarning)
|
|
1814
|
+
|
|
1815
|
+
_param = self._replace_asset_serialize(
|
|
1816
|
+
id=id,
|
|
1817
|
+
asset_data=asset_data,
|
|
1818
|
+
device_asset_id=device_asset_id,
|
|
1819
|
+
device_id=device_id,
|
|
1820
|
+
file_created_at=file_created_at,
|
|
1821
|
+
file_modified_at=file_modified_at,
|
|
1822
|
+
key=key,
|
|
1823
|
+
slug=slug,
|
|
1824
|
+
duration=duration,
|
|
1825
|
+
filename=filename,
|
|
1826
|
+
_request_auth=_request_auth,
|
|
1827
|
+
_content_type=_content_type,
|
|
1828
|
+
_headers=_headers,
|
|
1829
|
+
_host_index=_host_index,
|
|
1830
|
+
)
|
|
1831
|
+
|
|
1832
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1833
|
+
"200": "AssetMediaResponseDto",
|
|
1834
|
+
}
|
|
1835
|
+
response_data = await self.api_client.call_api(
|
|
1836
|
+
*_param, _request_timeout=_request_timeout
|
|
1837
|
+
)
|
|
1838
|
+
return response_data.response
|
|
1839
|
+
|
|
1840
|
+
def _replace_asset_serialize(
|
|
1841
|
+
self,
|
|
1842
|
+
id,
|
|
1843
|
+
asset_data,
|
|
1844
|
+
device_asset_id,
|
|
1845
|
+
device_id,
|
|
1846
|
+
file_created_at,
|
|
1847
|
+
file_modified_at,
|
|
1848
|
+
key,
|
|
1849
|
+
slug,
|
|
1850
|
+
duration,
|
|
1851
|
+
filename,
|
|
1852
|
+
_request_auth,
|
|
1853
|
+
_content_type,
|
|
1854
|
+
_headers,
|
|
1855
|
+
_host_index,
|
|
1856
|
+
) -> RequestSerialized:
|
|
1857
|
+
_host = None
|
|
1858
|
+
|
|
1859
|
+
_collection_formats: Dict[str, str] = {}
|
|
1860
|
+
|
|
1861
|
+
_path_params: Dict[str, str] = {}
|
|
1862
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1863
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1864
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1865
|
+
_files: Dict[
|
|
1866
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1867
|
+
] = {}
|
|
1868
|
+
_body_params: Optional[bytes] = None
|
|
1869
|
+
|
|
1870
|
+
# process the path parameters
|
|
1871
|
+
if id is not None:
|
|
1872
|
+
_path_params["id"] = id
|
|
1873
|
+
# process the query parameters
|
|
1874
|
+
if key is not None:
|
|
1875
|
+
_query_params.append(("key", key))
|
|
1876
|
+
|
|
1877
|
+
if slug is not None:
|
|
1878
|
+
_query_params.append(("slug", slug))
|
|
1879
|
+
|
|
1880
|
+
# process the header parameters
|
|
1881
|
+
# process the form parameters
|
|
1882
|
+
if asset_data is not None:
|
|
1883
|
+
_files["assetData"] = asset_data
|
|
1884
|
+
if device_asset_id is not None:
|
|
1885
|
+
_form_params.append(("deviceAssetId", device_asset_id))
|
|
1886
|
+
if device_id is not None:
|
|
1887
|
+
_form_params.append(("deviceId", device_id))
|
|
1888
|
+
if duration is not None:
|
|
1889
|
+
_form_params.append(("duration", duration))
|
|
1890
|
+
if file_created_at is not None:
|
|
1891
|
+
_form_params.append(("fileCreatedAt", file_created_at))
|
|
1892
|
+
if file_modified_at is not None:
|
|
1893
|
+
_form_params.append(("fileModifiedAt", file_modified_at))
|
|
1894
|
+
if filename is not None:
|
|
1895
|
+
_form_params.append(("filename", filename))
|
|
1896
|
+
# process the body parameter
|
|
1897
|
+
|
|
1898
|
+
# set the HTTP header `Accept`
|
|
1899
|
+
if "Accept" not in _header_params:
|
|
1900
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1901
|
+
["application/json"]
|
|
1902
|
+
)
|
|
1903
|
+
|
|
1904
|
+
# set the HTTP header `Content-Type`
|
|
1905
|
+
if _content_type:
|
|
1906
|
+
_header_params["Content-Type"] = _content_type
|
|
1907
|
+
else:
|
|
1908
|
+
_default_content_type = self.api_client.select_header_content_type(
|
|
1909
|
+
["multipart/form-data"]
|
|
1910
|
+
)
|
|
1911
|
+
if _default_content_type is not None:
|
|
1912
|
+
_header_params["Content-Type"] = _default_content_type
|
|
1913
|
+
|
|
1914
|
+
# authentication setting
|
|
1915
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
1916
|
+
|
|
1917
|
+
return self.api_client.param_serialize(
|
|
1918
|
+
method="PUT",
|
|
1919
|
+
resource_path="/assets/{id}/original",
|
|
1920
|
+
path_params=_path_params,
|
|
1921
|
+
query_params=_query_params,
|
|
1922
|
+
header_params=_header_params,
|
|
1923
|
+
body=_body_params,
|
|
1924
|
+
post_params=_form_params,
|
|
1925
|
+
files=_files,
|
|
1926
|
+
auth_settings=_auth_settings,
|
|
1927
|
+
collection_formats=_collection_formats,
|
|
1928
|
+
_host=_host,
|
|
1929
|
+
_request_auth=_request_auth,
|
|
1930
|
+
)
|
|
1931
|
+
|
|
1932
|
+
@validate_call
|
|
1933
|
+
async def run_queue_command_legacy(
|
|
1934
|
+
self,
|
|
1935
|
+
name: QueueName,
|
|
1936
|
+
queue_command_dto: QueueCommandDto,
|
|
1937
|
+
_request_timeout: Union[
|
|
1938
|
+
None,
|
|
1939
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1940
|
+
Tuple[
|
|
1941
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1942
|
+
],
|
|
1943
|
+
] = None,
|
|
1944
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1945
|
+
_content_type: Optional[StrictStr] = None,
|
|
1946
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1947
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1948
|
+
) -> QueueResponseLegacyDto:
|
|
1949
|
+
"""(Deprecated) Run jobs
|
|
1950
|
+
|
|
1951
|
+
Queue all assets for a specific job type. Defaults to only queueing assets that have not yet been processed, but the force command can be used to re-process all assets.
|
|
1952
|
+
|
|
1953
|
+
:param name: (required)
|
|
1954
|
+
:type name: QueueName
|
|
1955
|
+
:param queue_command_dto: (required)
|
|
1956
|
+
:type queue_command_dto: QueueCommandDto
|
|
1957
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1958
|
+
number provided, it will be total request
|
|
1959
|
+
timeout. It can also be a pair (tuple) of
|
|
1960
|
+
(connection, read) timeouts.
|
|
1961
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1962
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1963
|
+
request; this effectively ignores the
|
|
1964
|
+
authentication in the spec for a single request.
|
|
1965
|
+
:type _request_auth: dict, optional
|
|
1966
|
+
:param _content_type: force content-type for the request.
|
|
1967
|
+
:type _content_type: str, Optional
|
|
1968
|
+
:param _headers: set to override the headers for a single
|
|
1969
|
+
request; this effectively ignores the headers
|
|
1970
|
+
in the spec for a single request.
|
|
1971
|
+
:type _headers: dict, optional
|
|
1972
|
+
:param _host_index: set to override the host_index for a single
|
|
1973
|
+
request; this effectively ignores the host_index
|
|
1974
|
+
in the spec for a single request.
|
|
1975
|
+
:type _host_index: int, optional
|
|
1976
|
+
:return: Returns the result object.
|
|
1977
|
+
""" # noqa: E501
|
|
1978
|
+
warnings.warn("PUT /jobs/{name} is deprecated.", DeprecationWarning)
|
|
1979
|
+
|
|
1980
|
+
_param = self._run_queue_command_legacy_serialize(
|
|
1981
|
+
name=name,
|
|
1982
|
+
queue_command_dto=queue_command_dto,
|
|
1983
|
+
_request_auth=_request_auth,
|
|
1984
|
+
_content_type=_content_type,
|
|
1985
|
+
_headers=_headers,
|
|
1986
|
+
_host_index=_host_index,
|
|
1987
|
+
)
|
|
1988
|
+
|
|
1989
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1990
|
+
"200": "QueueResponseLegacyDto",
|
|
1991
|
+
}
|
|
1992
|
+
response_data = await self.api_client.call_api(
|
|
1993
|
+
*_param, _request_timeout=_request_timeout
|
|
1994
|
+
)
|
|
1995
|
+
await response_data.read()
|
|
1996
|
+
return self.api_client.response_deserialize(
|
|
1997
|
+
response_data=response_data,
|
|
1998
|
+
response_types_map=_response_types_map,
|
|
1999
|
+
).data
|
|
2000
|
+
|
|
2001
|
+
@validate_call
|
|
2002
|
+
async def run_queue_command_legacy_with_http_info(
|
|
2003
|
+
self,
|
|
2004
|
+
name: QueueName,
|
|
2005
|
+
queue_command_dto: QueueCommandDto,
|
|
2006
|
+
_request_timeout: Union[
|
|
2007
|
+
None,
|
|
2008
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2009
|
+
Tuple[
|
|
2010
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
2011
|
+
],
|
|
2012
|
+
] = None,
|
|
2013
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2014
|
+
_content_type: Optional[StrictStr] = None,
|
|
2015
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2016
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2017
|
+
) -> ApiResponse[QueueResponseLegacyDto]:
|
|
2018
|
+
"""(Deprecated) Run jobs
|
|
2019
|
+
|
|
2020
|
+
Queue all assets for a specific job type. Defaults to only queueing assets that have not yet been processed, but the force command can be used to re-process all assets.
|
|
2021
|
+
|
|
2022
|
+
:param name: (required)
|
|
2023
|
+
:type name: QueueName
|
|
2024
|
+
:param queue_command_dto: (required)
|
|
2025
|
+
:type queue_command_dto: QueueCommandDto
|
|
2026
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2027
|
+
number provided, it will be total request
|
|
2028
|
+
timeout. It can also be a pair (tuple) of
|
|
2029
|
+
(connection, read) timeouts.
|
|
2030
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2031
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2032
|
+
request; this effectively ignores the
|
|
2033
|
+
authentication in the spec for a single request.
|
|
2034
|
+
:type _request_auth: dict, optional
|
|
2035
|
+
:param _content_type: force content-type for the request.
|
|
2036
|
+
:type _content_type: str, Optional
|
|
2037
|
+
:param _headers: set to override the headers for a single
|
|
2038
|
+
request; this effectively ignores the headers
|
|
2039
|
+
in the spec for a single request.
|
|
2040
|
+
:type _headers: dict, optional
|
|
2041
|
+
:param _host_index: set to override the host_index for a single
|
|
2042
|
+
request; this effectively ignores the host_index
|
|
2043
|
+
in the spec for a single request.
|
|
2044
|
+
:type _host_index: int, optional
|
|
2045
|
+
:return: Returns the result object.
|
|
2046
|
+
""" # noqa: E501
|
|
2047
|
+
warnings.warn("PUT /jobs/{name} is deprecated.", DeprecationWarning)
|
|
2048
|
+
|
|
2049
|
+
_param = self._run_queue_command_legacy_serialize(
|
|
2050
|
+
name=name,
|
|
2051
|
+
queue_command_dto=queue_command_dto,
|
|
2052
|
+
_request_auth=_request_auth,
|
|
2053
|
+
_content_type=_content_type,
|
|
2054
|
+
_headers=_headers,
|
|
2055
|
+
_host_index=_host_index,
|
|
2056
|
+
)
|
|
2057
|
+
|
|
2058
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2059
|
+
"200": "QueueResponseLegacyDto",
|
|
2060
|
+
}
|
|
2061
|
+
response_data = await self.api_client.call_api(
|
|
2062
|
+
*_param, _request_timeout=_request_timeout
|
|
2063
|
+
)
|
|
2064
|
+
await response_data.read()
|
|
2065
|
+
return self.api_client.response_deserialize(
|
|
2066
|
+
response_data=response_data,
|
|
2067
|
+
response_types_map=_response_types_map,
|
|
2068
|
+
)
|
|
2069
|
+
|
|
2070
|
+
@validate_call
|
|
2071
|
+
async def run_queue_command_legacy_without_preload_content(
|
|
2072
|
+
self,
|
|
2073
|
+
name: QueueName,
|
|
2074
|
+
queue_command_dto: QueueCommandDto,
|
|
2075
|
+
_request_timeout: Union[
|
|
2076
|
+
None,
|
|
2077
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2078
|
+
Tuple[
|
|
2079
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
2080
|
+
],
|
|
2081
|
+
] = None,
|
|
2082
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2083
|
+
_content_type: Optional[StrictStr] = None,
|
|
2084
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2085
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2086
|
+
) -> RESTResponseType:
|
|
2087
|
+
"""(Deprecated) Run jobs
|
|
2088
|
+
|
|
2089
|
+
Queue all assets for a specific job type. Defaults to only queueing assets that have not yet been processed, but the force command can be used to re-process all assets.
|
|
2090
|
+
|
|
2091
|
+
:param name: (required)
|
|
2092
|
+
:type name: QueueName
|
|
2093
|
+
:param queue_command_dto: (required)
|
|
2094
|
+
:type queue_command_dto: QueueCommandDto
|
|
2095
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2096
|
+
number provided, it will be total request
|
|
2097
|
+
timeout. It can also be a pair (tuple) of
|
|
2098
|
+
(connection, read) timeouts.
|
|
2099
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2100
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2101
|
+
request; this effectively ignores the
|
|
2102
|
+
authentication in the spec for a single request.
|
|
2103
|
+
:type _request_auth: dict, optional
|
|
2104
|
+
:param _content_type: force content-type for the request.
|
|
2105
|
+
:type _content_type: str, Optional
|
|
2106
|
+
:param _headers: set to override the headers for a single
|
|
2107
|
+
request; this effectively ignores the headers
|
|
2108
|
+
in the spec for a single request.
|
|
2109
|
+
:type _headers: dict, optional
|
|
2110
|
+
:param _host_index: set to override the host_index for a single
|
|
2111
|
+
request; this effectively ignores the host_index
|
|
2112
|
+
in the spec for a single request.
|
|
2113
|
+
:type _host_index: int, optional
|
|
2114
|
+
:return: Returns the result object.
|
|
2115
|
+
""" # noqa: E501
|
|
2116
|
+
warnings.warn("PUT /jobs/{name} is deprecated.", DeprecationWarning)
|
|
2117
|
+
|
|
2118
|
+
_param = self._run_queue_command_legacy_serialize(
|
|
2119
|
+
name=name,
|
|
2120
|
+
queue_command_dto=queue_command_dto,
|
|
2121
|
+
_request_auth=_request_auth,
|
|
2122
|
+
_content_type=_content_type,
|
|
2123
|
+
_headers=_headers,
|
|
2124
|
+
_host_index=_host_index,
|
|
2125
|
+
)
|
|
2126
|
+
|
|
2127
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2128
|
+
"200": "QueueResponseLegacyDto",
|
|
2129
|
+
}
|
|
2130
|
+
response_data = await self.api_client.call_api(
|
|
2131
|
+
*_param, _request_timeout=_request_timeout
|
|
2132
|
+
)
|
|
2133
|
+
return response_data.response
|
|
2134
|
+
|
|
2135
|
+
def _run_queue_command_legacy_serialize(
|
|
2136
|
+
self,
|
|
2137
|
+
name,
|
|
2138
|
+
queue_command_dto,
|
|
2139
|
+
_request_auth,
|
|
2140
|
+
_content_type,
|
|
2141
|
+
_headers,
|
|
2142
|
+
_host_index,
|
|
2143
|
+
) -> RequestSerialized:
|
|
2144
|
+
_host = None
|
|
2145
|
+
|
|
2146
|
+
_collection_formats: Dict[str, str] = {}
|
|
2147
|
+
|
|
2148
|
+
_path_params: Dict[str, str] = {}
|
|
2149
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2150
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2151
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2152
|
+
_files: Dict[
|
|
2153
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2154
|
+
] = {}
|
|
2155
|
+
_body_params: Optional[bytes] = None
|
|
2156
|
+
|
|
2157
|
+
# process the path parameters
|
|
2158
|
+
if name is not None:
|
|
2159
|
+
_path_params["name"] = name.value
|
|
2160
|
+
# process the query parameters
|
|
2161
|
+
# process the header parameters
|
|
2162
|
+
# process the form parameters
|
|
2163
|
+
# process the body parameter
|
|
2164
|
+
if queue_command_dto is not None:
|
|
2165
|
+
_body_params = queue_command_dto
|
|
2166
|
+
|
|
2167
|
+
# set the HTTP header `Accept`
|
|
2168
|
+
if "Accept" not in _header_params:
|
|
2169
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
2170
|
+
["application/json"]
|
|
2171
|
+
)
|
|
2172
|
+
|
|
2173
|
+
# set the HTTP header `Content-Type`
|
|
2174
|
+
if _content_type:
|
|
2175
|
+
_header_params["Content-Type"] = _content_type
|
|
2176
|
+
else:
|
|
2177
|
+
_default_content_type = self.api_client.select_header_content_type(
|
|
2178
|
+
["application/json"]
|
|
2179
|
+
)
|
|
2180
|
+
if _default_content_type is not None:
|
|
2181
|
+
_header_params["Content-Type"] = _default_content_type
|
|
2182
|
+
|
|
2183
|
+
# authentication setting
|
|
2184
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
2185
|
+
|
|
2186
|
+
return self.api_client.param_serialize(
|
|
2187
|
+
method="PUT",
|
|
2188
|
+
resource_path="/jobs/{name}",
|
|
2189
|
+
path_params=_path_params,
|
|
2190
|
+
query_params=_query_params,
|
|
2191
|
+
header_params=_header_params,
|
|
2192
|
+
body=_body_params,
|
|
2193
|
+
post_params=_form_params,
|
|
2194
|
+
files=_files,
|
|
2195
|
+
auth_settings=_auth_settings,
|
|
2196
|
+
collection_formats=_collection_formats,
|
|
2197
|
+
_host=_host,
|
|
2198
|
+
_request_auth=_request_auth,
|
|
2199
|
+
)
|