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,533 @@
|
|
|
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
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from immich.client.models.maintenance_auth_dto import MaintenanceAuthDto
|
|
19
|
+
from immich.client.models.maintenance_login_dto import MaintenanceLoginDto
|
|
20
|
+
from immich.client.models.set_maintenance_mode_dto import SetMaintenanceModeDto
|
|
21
|
+
|
|
22
|
+
from immich.client.api_client import ApiClient, RequestSerialized
|
|
23
|
+
from immich.client.api_response import ApiResponse
|
|
24
|
+
from immich.client.rest import RESTResponseType
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class MaintenanceAdminApi:
|
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
|
+
Ref: https://openapi-generator.tech
|
|
30
|
+
|
|
31
|
+
Do not edit the class manually.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, api_client=None) -> None:
|
|
35
|
+
if api_client is None:
|
|
36
|
+
api_client = ApiClient.get_default()
|
|
37
|
+
self.api_client = api_client
|
|
38
|
+
|
|
39
|
+
@validate_call
|
|
40
|
+
async def maintenance_login(
|
|
41
|
+
self,
|
|
42
|
+
maintenance_login_dto: MaintenanceLoginDto,
|
|
43
|
+
_request_timeout: Union[
|
|
44
|
+
None,
|
|
45
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
+
Tuple[
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
+
],
|
|
49
|
+
] = None,
|
|
50
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
+
_content_type: Optional[StrictStr] = None,
|
|
52
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
+
) -> MaintenanceAuthDto:
|
|
55
|
+
"""Log into maintenance mode
|
|
56
|
+
|
|
57
|
+
Login with maintenance token or cookie to receive current information and perform further actions.
|
|
58
|
+
|
|
59
|
+
:param maintenance_login_dto: (required)
|
|
60
|
+
:type maintenance_login_dto: MaintenanceLoginDto
|
|
61
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
62
|
+
number provided, it will be total request
|
|
63
|
+
timeout. It can also be a pair (tuple) of
|
|
64
|
+
(connection, read) timeouts.
|
|
65
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
66
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
67
|
+
request; this effectively ignores the
|
|
68
|
+
authentication in the spec for a single request.
|
|
69
|
+
:type _request_auth: dict, optional
|
|
70
|
+
:param _content_type: force content-type for the request.
|
|
71
|
+
:type _content_type: str, Optional
|
|
72
|
+
:param _headers: set to override the headers for a single
|
|
73
|
+
request; this effectively ignores the headers
|
|
74
|
+
in the spec for a single request.
|
|
75
|
+
:type _headers: dict, optional
|
|
76
|
+
:param _host_index: set to override the host_index for a single
|
|
77
|
+
request; this effectively ignores the host_index
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _host_index: int, optional
|
|
80
|
+
:return: Returns the result object.
|
|
81
|
+
""" # noqa: E501
|
|
82
|
+
|
|
83
|
+
_param = self._maintenance_login_serialize(
|
|
84
|
+
maintenance_login_dto=maintenance_login_dto,
|
|
85
|
+
_request_auth=_request_auth,
|
|
86
|
+
_content_type=_content_type,
|
|
87
|
+
_headers=_headers,
|
|
88
|
+
_host_index=_host_index,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
92
|
+
"201": "MaintenanceAuthDto",
|
|
93
|
+
}
|
|
94
|
+
response_data = await self.api_client.call_api(
|
|
95
|
+
*_param, _request_timeout=_request_timeout
|
|
96
|
+
)
|
|
97
|
+
await response_data.read()
|
|
98
|
+
return self.api_client.response_deserialize(
|
|
99
|
+
response_data=response_data,
|
|
100
|
+
response_types_map=_response_types_map,
|
|
101
|
+
).data
|
|
102
|
+
|
|
103
|
+
@validate_call
|
|
104
|
+
async def maintenance_login_with_http_info(
|
|
105
|
+
self,
|
|
106
|
+
maintenance_login_dto: MaintenanceLoginDto,
|
|
107
|
+
_request_timeout: Union[
|
|
108
|
+
None,
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
110
|
+
Tuple[
|
|
111
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
112
|
+
],
|
|
113
|
+
] = None,
|
|
114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
115
|
+
_content_type: Optional[StrictStr] = None,
|
|
116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
|
+
) -> ApiResponse[MaintenanceAuthDto]:
|
|
119
|
+
"""Log into maintenance mode
|
|
120
|
+
|
|
121
|
+
Login with maintenance token or cookie to receive current information and perform further actions.
|
|
122
|
+
|
|
123
|
+
:param maintenance_login_dto: (required)
|
|
124
|
+
:type maintenance_login_dto: MaintenanceLoginDto
|
|
125
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
126
|
+
number provided, it will be total request
|
|
127
|
+
timeout. It can also be a pair (tuple) of
|
|
128
|
+
(connection, read) timeouts.
|
|
129
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
130
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
131
|
+
request; this effectively ignores the
|
|
132
|
+
authentication in the spec for a single request.
|
|
133
|
+
:type _request_auth: dict, optional
|
|
134
|
+
:param _content_type: force content-type for the request.
|
|
135
|
+
:type _content_type: str, Optional
|
|
136
|
+
:param _headers: set to override the headers for a single
|
|
137
|
+
request; this effectively ignores the headers
|
|
138
|
+
in the spec for a single request.
|
|
139
|
+
:type _headers: dict, optional
|
|
140
|
+
:param _host_index: set to override the host_index for a single
|
|
141
|
+
request; this effectively ignores the host_index
|
|
142
|
+
in the spec for a single request.
|
|
143
|
+
:type _host_index: int, optional
|
|
144
|
+
:return: Returns the result object.
|
|
145
|
+
""" # noqa: E501
|
|
146
|
+
|
|
147
|
+
_param = self._maintenance_login_serialize(
|
|
148
|
+
maintenance_login_dto=maintenance_login_dto,
|
|
149
|
+
_request_auth=_request_auth,
|
|
150
|
+
_content_type=_content_type,
|
|
151
|
+
_headers=_headers,
|
|
152
|
+
_host_index=_host_index,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
156
|
+
"201": "MaintenanceAuthDto",
|
|
157
|
+
}
|
|
158
|
+
response_data = await self.api_client.call_api(
|
|
159
|
+
*_param, _request_timeout=_request_timeout
|
|
160
|
+
)
|
|
161
|
+
await response_data.read()
|
|
162
|
+
return self.api_client.response_deserialize(
|
|
163
|
+
response_data=response_data,
|
|
164
|
+
response_types_map=_response_types_map,
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
@validate_call
|
|
168
|
+
async def maintenance_login_without_preload_content(
|
|
169
|
+
self,
|
|
170
|
+
maintenance_login_dto: MaintenanceLoginDto,
|
|
171
|
+
_request_timeout: Union[
|
|
172
|
+
None,
|
|
173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
174
|
+
Tuple[
|
|
175
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
176
|
+
],
|
|
177
|
+
] = None,
|
|
178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
179
|
+
_content_type: Optional[StrictStr] = None,
|
|
180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
182
|
+
) -> RESTResponseType:
|
|
183
|
+
"""Log into maintenance mode
|
|
184
|
+
|
|
185
|
+
Login with maintenance token or cookie to receive current information and perform further actions.
|
|
186
|
+
|
|
187
|
+
:param maintenance_login_dto: (required)
|
|
188
|
+
:type maintenance_login_dto: MaintenanceLoginDto
|
|
189
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
190
|
+
number provided, it will be total request
|
|
191
|
+
timeout. It can also be a pair (tuple) of
|
|
192
|
+
(connection, read) timeouts.
|
|
193
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
194
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
195
|
+
request; this effectively ignores the
|
|
196
|
+
authentication in the spec for a single request.
|
|
197
|
+
:type _request_auth: dict, optional
|
|
198
|
+
:param _content_type: force content-type for the request.
|
|
199
|
+
:type _content_type: str, Optional
|
|
200
|
+
:param _headers: set to override the headers for a single
|
|
201
|
+
request; this effectively ignores the headers
|
|
202
|
+
in the spec for a single request.
|
|
203
|
+
:type _headers: dict, optional
|
|
204
|
+
:param _host_index: set to override the host_index for a single
|
|
205
|
+
request; this effectively ignores the host_index
|
|
206
|
+
in the spec for a single request.
|
|
207
|
+
:type _host_index: int, optional
|
|
208
|
+
:return: Returns the result object.
|
|
209
|
+
""" # noqa: E501
|
|
210
|
+
|
|
211
|
+
_param = self._maintenance_login_serialize(
|
|
212
|
+
maintenance_login_dto=maintenance_login_dto,
|
|
213
|
+
_request_auth=_request_auth,
|
|
214
|
+
_content_type=_content_type,
|
|
215
|
+
_headers=_headers,
|
|
216
|
+
_host_index=_host_index,
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
220
|
+
"201": "MaintenanceAuthDto",
|
|
221
|
+
}
|
|
222
|
+
response_data = await self.api_client.call_api(
|
|
223
|
+
*_param, _request_timeout=_request_timeout
|
|
224
|
+
)
|
|
225
|
+
return response_data.response
|
|
226
|
+
|
|
227
|
+
def _maintenance_login_serialize(
|
|
228
|
+
self,
|
|
229
|
+
maintenance_login_dto,
|
|
230
|
+
_request_auth,
|
|
231
|
+
_content_type,
|
|
232
|
+
_headers,
|
|
233
|
+
_host_index,
|
|
234
|
+
) -> RequestSerialized:
|
|
235
|
+
_host = None
|
|
236
|
+
|
|
237
|
+
_collection_formats: Dict[str, str] = {}
|
|
238
|
+
|
|
239
|
+
_path_params: Dict[str, str] = {}
|
|
240
|
+
_query_params: List[Tuple[str, str]] = []
|
|
241
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
242
|
+
_form_params: List[Tuple[str, str]] = []
|
|
243
|
+
_files: Dict[
|
|
244
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
245
|
+
] = {}
|
|
246
|
+
_body_params: Optional[bytes] = None
|
|
247
|
+
|
|
248
|
+
# process the path parameters
|
|
249
|
+
# process the query parameters
|
|
250
|
+
# process the header parameters
|
|
251
|
+
# process the form parameters
|
|
252
|
+
# process the body parameter
|
|
253
|
+
if maintenance_login_dto is not None:
|
|
254
|
+
_body_params = maintenance_login_dto
|
|
255
|
+
|
|
256
|
+
# set the HTTP header `Accept`
|
|
257
|
+
if "Accept" not in _header_params:
|
|
258
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
259
|
+
["application/json"]
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
# set the HTTP header `Content-Type`
|
|
263
|
+
if _content_type:
|
|
264
|
+
_header_params["Content-Type"] = _content_type
|
|
265
|
+
else:
|
|
266
|
+
_default_content_type = self.api_client.select_header_content_type(
|
|
267
|
+
["application/json"]
|
|
268
|
+
)
|
|
269
|
+
if _default_content_type is not None:
|
|
270
|
+
_header_params["Content-Type"] = _default_content_type
|
|
271
|
+
|
|
272
|
+
# authentication setting
|
|
273
|
+
_auth_settings: List[str] = []
|
|
274
|
+
|
|
275
|
+
return self.api_client.param_serialize(
|
|
276
|
+
method="POST",
|
|
277
|
+
resource_path="/admin/maintenance/login",
|
|
278
|
+
path_params=_path_params,
|
|
279
|
+
query_params=_query_params,
|
|
280
|
+
header_params=_header_params,
|
|
281
|
+
body=_body_params,
|
|
282
|
+
post_params=_form_params,
|
|
283
|
+
files=_files,
|
|
284
|
+
auth_settings=_auth_settings,
|
|
285
|
+
collection_formats=_collection_formats,
|
|
286
|
+
_host=_host,
|
|
287
|
+
_request_auth=_request_auth,
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
@validate_call
|
|
291
|
+
async def set_maintenance_mode(
|
|
292
|
+
self,
|
|
293
|
+
set_maintenance_mode_dto: SetMaintenanceModeDto,
|
|
294
|
+
_request_timeout: Union[
|
|
295
|
+
None,
|
|
296
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
297
|
+
Tuple[
|
|
298
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
299
|
+
],
|
|
300
|
+
] = None,
|
|
301
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
302
|
+
_content_type: Optional[StrictStr] = None,
|
|
303
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
304
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
305
|
+
) -> None:
|
|
306
|
+
"""Set maintenance mode
|
|
307
|
+
|
|
308
|
+
Put Immich into or take it out of maintenance mode
|
|
309
|
+
|
|
310
|
+
:param set_maintenance_mode_dto: (required)
|
|
311
|
+
:type set_maintenance_mode_dto: SetMaintenanceModeDto
|
|
312
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
313
|
+
number provided, it will be total request
|
|
314
|
+
timeout. It can also be a pair (tuple) of
|
|
315
|
+
(connection, read) timeouts.
|
|
316
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
317
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
318
|
+
request; this effectively ignores the
|
|
319
|
+
authentication in the spec for a single request.
|
|
320
|
+
:type _request_auth: dict, optional
|
|
321
|
+
:param _content_type: force content-type for the request.
|
|
322
|
+
:type _content_type: str, Optional
|
|
323
|
+
:param _headers: set to override the headers for a single
|
|
324
|
+
request; this effectively ignores the headers
|
|
325
|
+
in the spec for a single request.
|
|
326
|
+
:type _headers: dict, optional
|
|
327
|
+
:param _host_index: set to override the host_index for a single
|
|
328
|
+
request; this effectively ignores the host_index
|
|
329
|
+
in the spec for a single request.
|
|
330
|
+
:type _host_index: int, optional
|
|
331
|
+
:return: Returns the result object.
|
|
332
|
+
""" # noqa: E501
|
|
333
|
+
|
|
334
|
+
_param = self._set_maintenance_mode_serialize(
|
|
335
|
+
set_maintenance_mode_dto=set_maintenance_mode_dto,
|
|
336
|
+
_request_auth=_request_auth,
|
|
337
|
+
_content_type=_content_type,
|
|
338
|
+
_headers=_headers,
|
|
339
|
+
_host_index=_host_index,
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
343
|
+
"201": None,
|
|
344
|
+
}
|
|
345
|
+
response_data = await self.api_client.call_api(
|
|
346
|
+
*_param, _request_timeout=_request_timeout
|
|
347
|
+
)
|
|
348
|
+
await response_data.read()
|
|
349
|
+
return self.api_client.response_deserialize(
|
|
350
|
+
response_data=response_data,
|
|
351
|
+
response_types_map=_response_types_map,
|
|
352
|
+
).data
|
|
353
|
+
|
|
354
|
+
@validate_call
|
|
355
|
+
async def set_maintenance_mode_with_http_info(
|
|
356
|
+
self,
|
|
357
|
+
set_maintenance_mode_dto: SetMaintenanceModeDto,
|
|
358
|
+
_request_timeout: Union[
|
|
359
|
+
None,
|
|
360
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
361
|
+
Tuple[
|
|
362
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
363
|
+
],
|
|
364
|
+
] = None,
|
|
365
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
366
|
+
_content_type: Optional[StrictStr] = None,
|
|
367
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
368
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
369
|
+
) -> ApiResponse[None]:
|
|
370
|
+
"""Set maintenance mode
|
|
371
|
+
|
|
372
|
+
Put Immich into or take it out of maintenance mode
|
|
373
|
+
|
|
374
|
+
:param set_maintenance_mode_dto: (required)
|
|
375
|
+
:type set_maintenance_mode_dto: SetMaintenanceModeDto
|
|
376
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
377
|
+
number provided, it will be total request
|
|
378
|
+
timeout. It can also be a pair (tuple) of
|
|
379
|
+
(connection, read) timeouts.
|
|
380
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
381
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
382
|
+
request; this effectively ignores the
|
|
383
|
+
authentication in the spec for a single request.
|
|
384
|
+
:type _request_auth: dict, optional
|
|
385
|
+
:param _content_type: force content-type for the request.
|
|
386
|
+
:type _content_type: str, Optional
|
|
387
|
+
:param _headers: set to override the headers for a single
|
|
388
|
+
request; this effectively ignores the headers
|
|
389
|
+
in the spec for a single request.
|
|
390
|
+
:type _headers: dict, optional
|
|
391
|
+
:param _host_index: set to override the host_index for a single
|
|
392
|
+
request; this effectively ignores the host_index
|
|
393
|
+
in the spec for a single request.
|
|
394
|
+
:type _host_index: int, optional
|
|
395
|
+
:return: Returns the result object.
|
|
396
|
+
""" # noqa: E501
|
|
397
|
+
|
|
398
|
+
_param = self._set_maintenance_mode_serialize(
|
|
399
|
+
set_maintenance_mode_dto=set_maintenance_mode_dto,
|
|
400
|
+
_request_auth=_request_auth,
|
|
401
|
+
_content_type=_content_type,
|
|
402
|
+
_headers=_headers,
|
|
403
|
+
_host_index=_host_index,
|
|
404
|
+
)
|
|
405
|
+
|
|
406
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
407
|
+
"201": None,
|
|
408
|
+
}
|
|
409
|
+
response_data = await self.api_client.call_api(
|
|
410
|
+
*_param, _request_timeout=_request_timeout
|
|
411
|
+
)
|
|
412
|
+
await response_data.read()
|
|
413
|
+
return self.api_client.response_deserialize(
|
|
414
|
+
response_data=response_data,
|
|
415
|
+
response_types_map=_response_types_map,
|
|
416
|
+
)
|
|
417
|
+
|
|
418
|
+
@validate_call
|
|
419
|
+
async def set_maintenance_mode_without_preload_content(
|
|
420
|
+
self,
|
|
421
|
+
set_maintenance_mode_dto: SetMaintenanceModeDto,
|
|
422
|
+
_request_timeout: Union[
|
|
423
|
+
None,
|
|
424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
425
|
+
Tuple[
|
|
426
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
427
|
+
],
|
|
428
|
+
] = None,
|
|
429
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
430
|
+
_content_type: Optional[StrictStr] = None,
|
|
431
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
432
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
433
|
+
) -> RESTResponseType:
|
|
434
|
+
"""Set maintenance mode
|
|
435
|
+
|
|
436
|
+
Put Immich into or take it out of maintenance mode
|
|
437
|
+
|
|
438
|
+
:param set_maintenance_mode_dto: (required)
|
|
439
|
+
:type set_maintenance_mode_dto: SetMaintenanceModeDto
|
|
440
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
441
|
+
number provided, it will be total request
|
|
442
|
+
timeout. It can also be a pair (tuple) of
|
|
443
|
+
(connection, read) timeouts.
|
|
444
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
445
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
446
|
+
request; this effectively ignores the
|
|
447
|
+
authentication in the spec for a single request.
|
|
448
|
+
:type _request_auth: dict, optional
|
|
449
|
+
:param _content_type: force content-type for the request.
|
|
450
|
+
:type _content_type: str, Optional
|
|
451
|
+
:param _headers: set to override the headers for a single
|
|
452
|
+
request; this effectively ignores the headers
|
|
453
|
+
in the spec for a single request.
|
|
454
|
+
:type _headers: dict, optional
|
|
455
|
+
:param _host_index: set to override the host_index for a single
|
|
456
|
+
request; this effectively ignores the host_index
|
|
457
|
+
in the spec for a single request.
|
|
458
|
+
:type _host_index: int, optional
|
|
459
|
+
:return: Returns the result object.
|
|
460
|
+
""" # noqa: E501
|
|
461
|
+
|
|
462
|
+
_param = self._set_maintenance_mode_serialize(
|
|
463
|
+
set_maintenance_mode_dto=set_maintenance_mode_dto,
|
|
464
|
+
_request_auth=_request_auth,
|
|
465
|
+
_content_type=_content_type,
|
|
466
|
+
_headers=_headers,
|
|
467
|
+
_host_index=_host_index,
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
471
|
+
"201": None,
|
|
472
|
+
}
|
|
473
|
+
response_data = await self.api_client.call_api(
|
|
474
|
+
*_param, _request_timeout=_request_timeout
|
|
475
|
+
)
|
|
476
|
+
return response_data.response
|
|
477
|
+
|
|
478
|
+
def _set_maintenance_mode_serialize(
|
|
479
|
+
self,
|
|
480
|
+
set_maintenance_mode_dto,
|
|
481
|
+
_request_auth,
|
|
482
|
+
_content_type,
|
|
483
|
+
_headers,
|
|
484
|
+
_host_index,
|
|
485
|
+
) -> RequestSerialized:
|
|
486
|
+
_host = None
|
|
487
|
+
|
|
488
|
+
_collection_formats: Dict[str, str] = {}
|
|
489
|
+
|
|
490
|
+
_path_params: Dict[str, str] = {}
|
|
491
|
+
_query_params: List[Tuple[str, str]] = []
|
|
492
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
493
|
+
_form_params: List[Tuple[str, str]] = []
|
|
494
|
+
_files: Dict[
|
|
495
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
496
|
+
] = {}
|
|
497
|
+
_body_params: Optional[bytes] = None
|
|
498
|
+
|
|
499
|
+
# process the path parameters
|
|
500
|
+
# process the query parameters
|
|
501
|
+
# process the header parameters
|
|
502
|
+
# process the form parameters
|
|
503
|
+
# process the body parameter
|
|
504
|
+
if set_maintenance_mode_dto is not None:
|
|
505
|
+
_body_params = set_maintenance_mode_dto
|
|
506
|
+
|
|
507
|
+
# set the HTTP header `Content-Type`
|
|
508
|
+
if _content_type:
|
|
509
|
+
_header_params["Content-Type"] = _content_type
|
|
510
|
+
else:
|
|
511
|
+
_default_content_type = self.api_client.select_header_content_type(
|
|
512
|
+
["application/json"]
|
|
513
|
+
)
|
|
514
|
+
if _default_content_type is not None:
|
|
515
|
+
_header_params["Content-Type"] = _default_content_type
|
|
516
|
+
|
|
517
|
+
# authentication setting
|
|
518
|
+
_auth_settings: List[str] = ["cookie", "api_key", "bearer"]
|
|
519
|
+
|
|
520
|
+
return self.api_client.param_serialize(
|
|
521
|
+
method="POST",
|
|
522
|
+
resource_path="/admin/maintenance",
|
|
523
|
+
path_params=_path_params,
|
|
524
|
+
query_params=_query_params,
|
|
525
|
+
header_params=_header_params,
|
|
526
|
+
body=_body_params,
|
|
527
|
+
post_params=_form_params,
|
|
528
|
+
files=_files,
|
|
529
|
+
auth_settings=_auth_settings,
|
|
530
|
+
collection_formats=_collection_formats,
|
|
531
|
+
_host=_host,
|
|
532
|
+
_request_auth=_request_auth,
|
|
533
|
+
)
|